answer stringlengths 15 1.25M |
|---|
// FIXME add rotation
goog.provide('ol.render.Box');
goog.require('goog.Disposable');
goog.require('goog.asserts');
goog.require('ol.geom.Polygon');
/**
* @constructor
* @extends {goog.Disposable}
* @param {string} className CSS class name.
*/
ol.render.Box = function(className) {
/**
* @type {ol.geom.Polygon}
* @private
*/
this.geometry_ = null;
/**
* @type {HTMLDivElement}
* @private
*/
this.element_ = /** @type {HTMLDivElement} */ (document.createElement('div'));
this.element_.style.position = 'absolute';
this.element_.className = 'ol-box ' + className;
/**
* @private
* @type {ol.Map}
*/
this.map_ = null;
/**
* @private
* @type {ol.Pixel}
*/
this.startPixel_ = null;
/**
* @private
* @type {ol.Pixel}
*/
this.endPixel_ = null;
};
goog.inherits(ol.render.Box, goog.Disposable);
/**
* @inheritDoc
*/
ol.render.Box.prototype.disposeInternal = function() {
this.setMap(null);
goog.base(this, 'disposeInternal');
};
/**
* @private
*/
ol.render.Box.prototype.render_ = function() {
var startPixel = this.startPixel_;
var endPixel = this.endPixel_;
goog.asserts.assert(startPixel, 'this.startPixel_ must be truthy');
goog.asserts.assert(endPixel, 'this.endPixel_ must be truthy');
var px = 'px';
var style = this.element_.style;
style.left = Math.min(startPixel[0], endPixel[0]) + px;
style.top = Math.min(startPixel[1], endPixel[1]) + px;
style.width = Math.abs(endPixel[0] - startPixel[0]) + px;
style.height = Math.abs(endPixel[1] - startPixel[1]) + px;
};
/**
* @param {ol.Map} map Map.
*/
ol.render.Box.prototype.setMap = function(map) {
if (this.map_) {
this.map_.getOverlayContainer().removeChild(this.element_);
var style = this.element_.style;
style.left = style.top = style.width = style.height = 'inherit';
}
this.map_ = map;
if (this.map_) {
this.map_.getOverlayContainer().appendChild(this.element_);
}
};
/**
* @param {ol.Pixel} startPixel Start pixel.
* @param {ol.Pixel} endPixel End pixel.
*/
ol.render.Box.prototype.setPixels = function(startPixel, endPixel) {
this.startPixel_ = startPixel;
this.endPixel_ = endPixel;
this.<API key>();
this.render_();
};
/**
* Creates or updates the cached geometry.
*/
ol.render.Box.prototype.<API key> = function() {
goog.asserts.assert(this.startPixel_,
'this.startPixel_ must be truthy');
goog.asserts.assert(this.endPixel_,
'this.endPixel_ must be truthy');
goog.asserts.assert(this.map_, 'this.map_ must be truthy');
var startPixel = this.startPixel_;
var endPixel = this.endPixel_;
var pixels = [
startPixel,
[startPixel[0], endPixel[1]],
endPixel,
[endPixel[0], startPixel[1]]
];
var coordinates = pixels.map(this.map_.<API key>, this.map_);
// close the polygon
coordinates[4] = coordinates[0].slice();
if (!this.geometry_) {
this.geometry_ = new ol.geom.Polygon([coordinates]);
} else {
this.geometry_.setCoordinates([coordinates]);
}
};
/**
* @return {ol.geom.Polygon} Geometry.
*/
ol.render.Box.prototype.getGeometry = function() {
return this.geometry_;
}; |
{- data size display and parsing
-
- Copyright 2011 Joey Hess <id@joeyh.name>
-
- License: BSD-2-clause
-
-
- And now a rant:
-
- In the beginning, we had powers of two, and they were good.
-
- Disk drive manufacturers noticed that some powers of two were
- sorta close to some powers of ten, and that rounding down to the nearest
- power of ten allowed them to advertise their drives were bigger. This
- was sorta annoying.
-
- Then drives got big. Really, really big. This was good.
-
- Except that the small rounding error perpretrated by the drive
- manufacturers suffered the fate of a small error, and became a large
- error. This was bad.
-
- So, a committee was formed. And it arrived at a committee-like decision,
- which satisfied noone, confused everyone, and made the world an uglier
- place. As with all committees, this was meh.
-
- And the drive manufacturers happily continued selling drives that are
- increasingly smaller than you'd expect, if you don't count on your
- fingers. But that are increasingly too big for anyone to much notice.
- This caused me to need git-annex.
-
- Thus, I use units here that I loathe. Because if I didn't, people would
- be confused that their drives seem the wrong size, and other people would
- complain at me for not being standards compliant. And we call this
- progress?
-}
module Utility.DataUnits (
dataUnits,
storageUnits,
memoryUnits,
bandwidthUnits,
oldSchoolUnits,
Unit(..),
roughSize,
compareSizes,
readSize
) where
import Data.List
import Data.Char
import Utility.HumanNumber
type ByteSize = Integer
type Name = String
type Abbrev = String
data Unit = Unit ByteSize Abbrev Name
deriving (Ord, Show, Eq)
dataUnits :: [Unit]
dataUnits = storageUnits ++ memoryUnits
{- Storage units are (stupidly) powers of ten. -}
storageUnits :: [Unit]
storageUnits =
[ Unit (p 8) "YB" "yottabyte"
, Unit (p 7) "ZB" "zettabyte"
, Unit (p 6) "EB" "exabyte"
, Unit (p 5) "PB" "petabyte"
, Unit (p 4) "TB" "terabyte"
, Unit (p 3) "GB" "gigabyte"
, Unit (p 2) "MB" "megabyte"
, Unit (p 1) "kB" "kilobyte" -- weird capitalization thanks to committe
, Unit (p 0) "B" "byte"
]
where
p :: Integer -> Integer
p n = 1000^n
{- Memory units are (stupidly named) powers of 2. -}
memoryUnits :: [Unit]
memoryUnits =
[ Unit (p 8) "YiB" "yobibyte"
, Unit (p 7) "ZiB" "zebibyte"
, Unit (p 6) "EiB" "exbibyte"
, Unit (p 5) "PiB" "pebibyte"
, Unit (p 4) "TiB" "tebibyte"
, Unit (p 3) "GiB" "gibibyte"
, Unit (p 2) "MiB" "mebibyte"
, Unit (p 1) "KiB" "kibibyte"
, Unit (p 0) "B" "byte"
]
where
p :: Integer -> Integer
p n = 2^(n*10)
{- Bandwidth units are only measured in bits if you're some crazy telco. -}
bandwidthUnits :: [Unit]
bandwidthUnits = error "stop trying to rip people off"
{- Do you yearn for the days when men were men and megabytes were megabytes? -}
oldSchoolUnits :: [Unit]
oldSchoolUnits = zipWith (curry mingle) storageUnits memoryUnits
where
mingle (Unit _ a n, Unit s' _ _) = Unit s' a n
{- approximate display of a particular number of bytes -}
roughSize :: [Unit] -> Bool -> ByteSize -> String
roughSize units short i
| i < 0 = '-' : findUnit units' (negate i)
| otherwise = findUnit units' i
where
units' = sortBy (flip compare) units -- largest first
findUnit (u@(Unit s _ _):us) i'
| i' >= s = showUnit i' u
| otherwise = findUnit us i'
findUnit [] i' = showUnit i' (last units') -- bytes
showUnit x (Unit size abbrev name) = s ++ " " ++ unit
where
v = (fromInteger x :: Double) / fromInteger size
s = showImprecise 2 v
unit
| short = abbrev
| s == "1" = name
| otherwise = name ++ "s"
{- displays comparison of two sizes -}
compareSizes :: [Unit] -> Bool -> ByteSize -> ByteSize -> String
compareSizes units abbrev old new
| old > new = roughSize units abbrev (old - new) ++ " smaller"
| old < new = roughSize units abbrev (new - old) ++ " larger"
| otherwise = "same"
{- Parses strings like "10 kilobytes" or "0.5tb". -}
readSize :: [Unit] -> String -> Maybe ByteSize
readSize units input
| null parsednum || null parsedunit = Nothing
| otherwise = Just $ round $ number * fromIntegral multiplier
where
(number, rest) = head parsednum
multiplier = head parsedunit
unitname = takeWhile isAlpha $ dropWhile isSpace rest
parsednum = reads input :: [(Double, String)]
parsedunit = lookupUnit units unitname
lookupUnit _ [] = [1] -- no unit given, assume bytes
lookupUnit [] _ = []
lookupUnit (Unit s a n:us) v
| a ~~ v || n ~~ v = [s]
| plural n ~~ v || a ~~ byteabbrev v = [s]
| otherwise = lookupUnit us v
a ~~ b = map toLower a == map toLower b
plural n = n ++ "s"
byteabbrev a = a ++ "b" |
import {PluginRegistry} from '../app/PluginRegistry';
import {ObjectNode, IObjectRef, ObjectRefUtils} from './ObjectNode';
import {StateNode, } from './StateNode';
import {ActionNode, IActionCompressor} from './ActionNode';
import {SlideNode} from './SlideNode';
import {GraphEdge} from '../graph/graph';
import {IGraphFactory} from '../graph/GraphBase';
import {ResolveNow} from '../base/promise';
import {ICmdFunctionFactory, ICmdResult} from './ICmd';
import {ActionMetaData} from './ActionMeta';
export class <API key> {
private static removeNoops(path: ActionNode[]) {
return path.filter((a) => a.f_id !== 'noop');
}
private static compositeCompressor(cs: IActionCompressor[]) {
return (path: ActionNode[]) => {
path = <API key>.removeNoops(path);
let before: number;
do {
before = path.length;
cs.forEach((c) => path = c(path));
} while (before > path.length);
return path;
};
}
private static async createCompressor(path: ActionNode[]) {
const toload = PluginRegistry.getInstance().listPlugins('actionCompressor').filter((plugin: any) => {
return path.some((action) => action.f_id.match(plugin.matches) != null);
});
return <API key>.compositeCompressor((await PluginRegistry.getInstance().loadPlugin(toload)).map((l) => <IActionCompressor>l.factory));
}
/**
* returns a compressed version of the paths where just the last selection operation remains
* @param path
*/
static async compressGraph(path: ActionNode[]) {
if (path.length <= 1) {
return path; //can't compress single one
}
//return resolveImmediately(path);
//TODO find a strategy how to compress but also invert skipped actions
const compressor = await <API key>.createCompressor(path);
//return path;
//console.log('before', path.map((path) => path.toString()));
let before: number;
do {
before = path.length;
path = compressor(path);
} while (before > path.length);
//console.log('after', path.map((path) => path.toString()));
return path;
}
/**
* find common element in the list of two elements returning the indices of the first same item
* @param a
* @param b
* @returns {any}
*/
static findCommon<T>(a: T[], b: T[]) {
let c = 0;
while (c < a.length && c < b.length && a[c] === b[c]) { //go to next till a difference
c++;
}
if (c === 0) { //not even the root common
return null;
}
return {
i: c - 1,
j: c - 1
};
}
static asFunction(i: any) {
if (typeof(i) !== 'function') { //make a function
return () => i;
}
return i;
}
private static noop(inputs: IObjectRef<any>[], parameter: any): ICmdResult {
return {
inverse: <API key>.createNoop()
};
}
private static createNoop() {
return {
meta: ActionMetaData.actionMeta('noop', ObjectRefUtils.category.custom),
id: 'noop',
f: <API key>.noop,
inputs: <IObjectRef<any>[]>[],
parameter: {}
};
}
private static <API key>(): ICmdFunctionFactory {
const facts = PluginRegistry.getInstance().listPlugins('actionFactory');
const singles = PluginRegistry.getInstance().listPlugins('actionFunction');
function resolveFun(id: string) {
if (id === 'noop') {
return ResolveNow.resolveImmediately(<API key>.noop);
}
const single = singles.find((f) => f.id === id);
if (single) {
return single.load().then((f) => f.factory);
}
const factory = facts.find((f: any) => id.match(f.creates) != null);
if (factory) {
return factory.load().then((f) => f.factory(id));
}
return Promise.reject('no factory found for ' + id);
}
const lazyFunction = (id: string) => {
let _resolved: PromiseLike<any> = null;
return function (this: any, inputs: IObjectRef<any>[], parameters: any) {
const that = this, args = Array.from(arguments);
if (_resolved == null) {
_resolved = resolveFun(id);
}
return _resolved.then((f) => f.apply(that, args));
};
};
return (id) => lazyFunction(id);
}
public static <API key>(): IGraphFactory {
const factory = <API key>.<API key>();
const types: any = {
action: ActionNode,
state: StateNode,
object: ObjectNode,
story: SlideNode
};
return {
makeNode: (n) => types[n.type].restore(n, factory),
makeEdge: (n, lookup) => ((new GraphEdge()).restore(n, lookup))
};
}
static findMetaObject<T>(find: IObjectRef<T>) {
return (obj: ObjectNode<any>) => find === obj || ((obj.value === null || obj.value === find.value) && (find.hash === obj.hash));
}
} |
#ifndef SCREEN_H
#define SCREEN_H
enum color {
BLACK = 0,
BLUE,
GREEN,
CYAN,
RED,
MAGENTA,
BROWN,
LIGHT_GREY,
DARK_GREY,
LIGHT_BLUE,
LIGHT_GREEN,
LIGHT_CYAN,
LIGHT_RED,
LIGHT_MAGENTA,
LIGHT_BROWN,
WHITE
};
#endif /* !SCREEN_H */
/*
* vi: ft=c:ts=2:sw=2:expandtab
*/ |
// Use of this source code is governed by a BSD-style
/*
Package topotools contains high level functions based on vt/topo and
vt/actionnode. It should not depend on anything else that's higher
level. In particular, it cannot depend on:
- vt/wrangler: much higher level, wrangler depends on topotools.
- vt/tabletmanager/initiator: we don't want the various remote
protocol dependencies here.
topotools is used by wrangler, so it ends up in all tools using
wrangler (vtctl, vtctld, ...). It is also included by vttablet, so it contains:
- most of the logic to rebuild a shard serving graph (helthcheck module)
- some of the logic to perform a <API key> (RPC call
to master vttablet to let it know it's the master).
*/
package topotools
// This file contains utility functions for tablets
import (
"fmt"
"golang.org/x/net/context"
log "github.com/golang/glog"
"github.com/youtube/vitess/go/vt/hook"
"github.com/youtube/vitess/go/vt/topo"
pb "github.com/youtube/vitess/go/vt/proto/topodata"
)
// ConfigureTabletHook configures the right parameters for a hook
// running locally on a tablet.
func ConfigureTabletHook(hk *hook.Hook, tabletAlias *pb.TabletAlias) {
if hk.ExtraEnv == nil {
hk.ExtraEnv = make(map[string]string, 1)
}
hk.ExtraEnv["TABLET_ALIAS"] = topo.TabletAliasString(tabletAlias)
}
// Scrap will update the tablet type to 'Scrap', and remove it from
// the serving graph.
// 'force' means we are not on the tablet being scrapped, so it is
// probably dead. So if 'force' is true, we will also remove pending
// remote actions. And if 'force' is false, we also run an optional
// hook.
func Scrap(ctx context.Context, ts topo.Server, tabletAlias *pb.TabletAlias, force bool) error {
tablet, err := ts.GetTablet(ctx, tabletAlias)
if err != nil {
return err
}
// If you are already scrap, skip updating replication data. It won't
// be there anyway.
wasAssigned := tablet.IsAssigned()
tablet.Type = pb.TabletType_SCRAP
// Update the tablet first, since that is canonical.
err = topo.UpdateTablet(ctx, ts, tablet)
if err != nil {
return err
}
if wasAssigned {
err = topo.<API key>(ctx, ts, tablet.Tablet)
if err != nil {
if err == topo.ErrNoNode {
log.V(6).Infof("no ShardReplication object for cell %v", tablet.Alias.Cell)
err = nil
}
if err != nil {
log.Warningf("remove replication data for %v failed: %v", tablet.Alias, err)
}
}
}
// run a hook for final cleanup, only in non-force mode.
// (force mode executes on the vtctl side, not on the vttablet side)
if !force {
hk := hook.NewSimpleHook("postflight_scrap")
ConfigureTabletHook(hk, tablet.Alias)
if hookErr := hk.ExecuteOptional(); hookErr != nil {
// we don't want to return an error, the server
// is already in bad shape probably.
log.Warningf("Scrap: postflight_scrap failed: %v", hookErr)
}
}
return nil
}
// ChangeType changes the type of the tablet and possibly also updates
// the health informaton for it. Make this external, since these
// transitions need to be forced from time to time.
// - if health is nil, we don't touch the Tablet's Health record.
// - if health is an empty map, we clear the Tablet's Health record.
// - if health has values, we overwrite the Tablet's Health record.
func ChangeType(ctx context.Context, ts topo.Server, tabletAlias *pb.TabletAlias, newType pb.TabletType, health map[string]string) error {
tablet, err := ts.GetTablet(ctx, tabletAlias)
if err != nil {
return err
}
if !topo.IsTrivialTypeChange(tablet.Type, newType) {
return fmt.Errorf("cannot change tablet type %v -> %v %v", tablet.Type, newType, tabletAlias)
}
tablet.Type = newType
if newType == pb.TabletType_IDLE {
tablet.Keyspace = ""
tablet.Shard = ""
tablet.KeyRange = nil
tablet.HealthMap = health
}
if health != nil {
if len(health) == 0 {
tablet.HealthMap = nil
} else {
tablet.HealthMap = health
}
}
return topo.UpdateTablet(ctx, ts, tablet)
} |
package scala
package xml
/**
* A document information item (according to InfoSet spec). The comments
* are copied from the Infoset spec, only augmented with some information
* on the Scala types for definitions that might have no value.
* Also plays the role of an `XMLEvent` for pull parsing.
*
* @author Burak Emir
* @version 1.0, 26/04/2005
*/
@SerialVersionUID(-<API key>)
class Document extends NodeSeq with pull.XMLEvent with Serializable {
/**
* An ordered list of child information items, in document
* order. The list contains exactly one element information item. The
* list also contains one processing instruction information item for
* each processing instruction outside the document element, and one
* comment information item for each comment outside the document
* element. Processing instructions and comments within the DTD are
* excluded. If there is a document type declaration, the list also
* contains a document type declaration information item.
*/
var children: Seq[Node] = _
/** The element information item corresponding to the document element. */
var docElem: Node = _
/** The dtd that comes with the document, if any */
var dtd: scala.xml.dtd.DTD = _
/**
* An unordered set of notation information items, one for each notation
* declared in the DTD. If any notation is multiply declared, this property
* has no value.
*/
def notations: Seq[scala.xml.dtd.NotationDecl] =
dtd.notations
/**
* An unordered set of unparsed entity information items, one for each
* unparsed entity declared in the DTD.
*/
def unparsedEntities: Seq[scala.xml.dtd.EntityDecl] =
dtd.unparsedEntities
/** The base URI of the document entity. */
var baseURI: String = _
/**
* The name of the character encoding scheme in which the document entity
* is expressed.
*/
var encoding: Option[String] = _
/**
* An indication of the standalone status of the document, either
* true or false. This property is derived from the optional standalone
* document declaration in the XML declaration at the beginning of the
* document entity, and has no value (`None`) if there is no
* standalone document declaration.
*/
var standAlone: Option[Boolean] = _
/**
* A string representing the XML version of the document. This
* property is derived from the XML declaration optionally present at
* the beginning of the document entity, and has no value (`None`)
* if there is no XML declaration.
*/
var version: Option[String] = _
/**
* 9. This property is not strictly speaking part of the infoset of
* the document. Rather it is an indication of whether the processor
* has read the complete DTD. Its value is a boolean. If it is false,
* then certain properties (indicated in their descriptions below) may
* be unknown. If it is true, those properties are never unknown.
*/
var <API key> = false
// methods for NodeSeq
def theSeq: Seq[Node] = this.docElem
override def canEqual(other: Any) = other match {
case _: Document => true
case _ => false
}
} |
package com.github.dandelion.datatables.thymeleaf.processor.el;
import java.util.HashMap;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.thymeleaf.Arguments;
import org.thymeleaf.dom.Element;
import org.thymeleaf.dom.Node;
import org.thymeleaf.processor.<API key>;
import org.thymeleaf.processor.ProcessorResult;
import com.github.dandelion.core.DandelionException;
import com.github.dandelion.core.option.Option;
import com.github.dandelion.datatables.core.html.HtmlTable;
import com.github.dandelion.datatables.core.option.TableConfiguration;
import com.github.dandelion.datatables.thymeleaf.dialect.DataTablesDialect;
import com.github.dandelion.datatables.thymeleaf.processor.AbstractElProcessor;
import com.github.dandelion.datatables.thymeleaf.util.RequestUtils;
/**
* <p>
* Element processor applied to the HTML <tt>table</tt> tag.
* </p>
*
* @author Thibault Duchateau
*/
public class <API key> extends AbstractElProcessor {
public <API key>(<API key> matcher) {
super(matcher);
}
@Override
public int getPrecedence() {
return DataTablesDialect.<API key>;
}
@Override
protected ProcessorResult doProcessElement(Arguments arguments, Element element, HttpServletRequest request,
HttpServletResponse response, HtmlTable htmlTable) {
String tableId = element.getAttributeValue("id");
if (tableId != null) {
String confGroup = (String) RequestUtils.getFromRequest(DataTablesDialect.INTERNAL_CONF_GROUP, request);
HtmlTable newHtmlTable = new HtmlTable(tableId, request, response, confGroup);
request.setAttribute(TableConfiguration.class.getCanonicalName(), newHtmlTable.<API key>());
// Add a default header row
newHtmlTable.addHeaderRow();
// Store the htmlTable POJO as a request attribute, so that all the
// others following HTML tags can access it and particularly the
// "finalizing div"
RequestUtils.storeInRequest(DataTablesDialect.INTERNAL_BEAN_TABLE, newHtmlTable, request);
// The table node is also saved in the request, to be easily accessed
// later
RequestUtils.storeInRequest(DataTablesDialect.INTERNAL_NODE_TABLE, element, request);
// Map used to store the table local configuration
RequestUtils.storeInRequest(DataTablesDialect.<API key>,
new HashMap<Option<?>, Object>(), request);
// The HTML needs to be updated
processMarkup(element);
return ProcessorResult.OK;
}
else {
throw new DandelionException("The 'id' attribute is required by <API key>.");
}
}
/**
* <p>
* The HTML markup needs to be updated for several reasons:
* </p>
* <ul>
* <li>First for housekeeping: all <API key> attributes must be
* removed before the table is displayed</li>
* <li>Markers are applied on {@code thead} and {@code tbody} elements in
* order to limit the scope of application of the processors, thus avoiding
* any conflict with native HTML tables</li>
* <li>A "finalizing {@code div}" must be added after the HTML {@code table}
* tag in order to finalize the <API key> configuration. The
* {@code div} will be removed in its corresponding processor, i.e.
* {@link <API key>}</li>
* </ul>
*
* @param element
* The {@code table} tag.
*/
private void processMarkup(Element element) {
// Housekeeping
element.removeAttribute(DataTablesDialect.DIALECT_PREFIX + ":table");
// Markers on THEAD and TBODY tags
for (Node child : element.getChildren()) {
if (child != null && child instanceof Element) {
Element childTag = (Element) child;
String childTagName = childTag.getNormalizedName();
if (childTagName.equals("thead") || childTagName.equals("tbody")) {
childTag.setAttribute(DataTablesDialect.DIALECT_PREFIX + ":data", "internalUse");
}
childTag.setProcessable(true);
}
}
// "Finalizing div"
Element div = new Element("div");
div.setAttribute(DataTablesDialect.DIALECT_PREFIX + ":tmp", "internalUse");
div.<API key>(true);
element.getParent().insertAfter(element, div);
}
} |
#include <vector>
#include "base/message_loop.h"
#include "base/<API key>.h"
#include "net/base/io_buffer.h"
#include "remoting/proto/video.pb.h"
#include "remoting/protocol/fake_session.h"
#include "remoting/protocol/rtp_utils.h"
#include "remoting/protocol/rtp_video_reader.h"
#include "testing/gtest/include/gtest/gtest.h"
using net::IOBuffer;
using std::vector;
namespace remoting {
namespace protocol {
class RtpVideoReaderTest : public testing::Test,
public VideoStub {
public:
// VideoStub interface.
virtual void ProcessVideoPacket(const VideoPacket* video_packet,
Task* done) {
received_packets_.push_back(VideoPacket());
received_packets_.back() = *video_packet;
done->Run();
delete done;
}
virtual int GetPendingPackets() {
return 0;
}
protected:
struct FragmentInfo {
int sequence_number;
int timestamp;
bool first;
bool last;
Vp8Descriptor::FragmentationInfo fragmentation_info;
int start;
int end;
};
struct ExpectedPacket {
int timestamp;
int flags;
int start;
int end;
};
virtual void SetUp() {
Reset();
InitData(100);
}
virtual void TearDown() {
message_loop_.RunAllPending();
}
void Reset() {
session_ = new FakeSession();
reader_.reset(new RtpVideoReader());
reader_->Init(session_, this);
received_packets_.clear();
}
void InitData(int size) {
data_.resize(size);
for (int i = 0; i < size; ++i) {
data_[i] = static_cast<char>(i);
}
}
bool CompareData(const CompoundBuffer& buffer, char* data, int size) {
scoped_refptr<IOBuffer> buffer_data = buffer.ToIOBufferWithSize();
return buffer.total_bytes() == size &&
memcmp(buffer_data->data(), data, size) == 0;
}
void SplitAndSend(const FragmentInfo fragments[], int count) {
for (int i = 0; i < count; ++i) {
RtpHeader header;
header.sequence_number = fragments[i].sequence_number;
header.marker = fragments[i].last;
header.timestamp = fragments[i].timestamp;
Vp8Descriptor descriptor;
descriptor.non_reference_frame = true;
descriptor.frame_beginning = fragments[i].first;
descriptor.fragmentation_info = fragments[i].fragmentation_info;
int header_size = GetRtpHeaderSize(header);
int vp8_desc_size = <API key>(descriptor);
int payload_size = fragments[i].end - fragments[i].start;
int size = header_size + vp8_desc_size + payload_size;
scoped_refptr<net::IOBuffer> buffer = new net::IOBuffer(size);
PackRtpHeader(header, reinterpret_cast<uint8*>(buffer->data()),
header_size);
PackVp8Descriptor(descriptor, reinterpret_cast<uint8*>(buffer->data()) +
header_size, vp8_desc_size);
memcpy(buffer->data() + header_size + vp8_desc_size,
&*data_.begin() + fragments[i].start, payload_size);
reader_->rtp_reader_.OnDataReceived(buffer, size);
}
}
void CheckResults(const ExpectedPacket expected[], int count) {
ASSERT_EQ(count, static_cast<int>(received_packets_.size()));
for (int i = 0; i < count; ++i) {
SCOPED_TRACE("Packet " + base::IntToString(i));
int expected_size = expected[i].end - expected[i].start;
EXPECT_EQ(expected_size,
static_cast<int>(received_packets_[i].data().size()));
EXPECT_EQ(0, memcmp(&*received_packets_[i].data().data(),
&*data_.begin() + expected[i].start, expected_size));
EXPECT_EQ(expected[i].flags, received_packets_[i].flags());
EXPECT_EQ(expected[i].timestamp, received_packets_[i].timestamp());
}
}
scoped_refptr<FakeSession> session_;
scoped_ptr<RtpVideoReader> reader_;
MessageLoop message_loop_;
vector<char> data_;
vector<VideoPacket> received_packets_;
};
// One non-fragmented packet marked as first.
TEST_F(RtpVideoReaderTest, <API key>) {
FragmentInfo fragments[] = {
{ 300, 123, true, false, Vp8Descriptor::NOT_FRAGMENTED, 0, 100 },
};
SplitAndSend(fragments, arraysize(fragments));
ExpectedPacket expected[] = {
{ 123, VideoPacket::FIRST_PACKET, 0, 100 },
};
CheckResults(expected, arraysize(expected));
}
// One non-fragmented packet marked as last.
TEST_F(RtpVideoReaderTest, <API key>) {
FragmentInfo fragments[] = {
{ 3000, 123, false, true, Vp8Descriptor::NOT_FRAGMENTED, 0, 100 },
};
SplitAndSend(fragments, arraysize(fragments));
ExpectedPacket expected[] = {
{ 123, VideoPacket::LAST_PACKET, 0, 100 },
};
CheckResults(expected, arraysize(expected));
}
// Duplicated non-fragmented packet. Must be processed only once.
TEST_F(RtpVideoReaderTest, <API key>) {
FragmentInfo fragments[] = {
{ 300, 123, true, false, Vp8Descriptor::NOT_FRAGMENTED, 0, 100 },
{ 300, 123, true, false, Vp8Descriptor::NOT_FRAGMENTED, 0, 100 },
};
SplitAndSend(fragments, arraysize(fragments));
ExpectedPacket expected[] = {
{ 123, VideoPacket::FIRST_PACKET, 0, 100 },
};
CheckResults(expected, arraysize(expected));
}
// First packet split into two fragments.
TEST_F(RtpVideoReaderTest, <API key>) {
FragmentInfo fragments[] = {
{ 300, 321, true, false, Vp8Descriptor::FIRST_FRAGMENT, 0, 50 },
{ 301, 321, false, false, Vp8Descriptor::LAST_FRAGMENT, 50, 100 },
};
SplitAndSend(fragments, arraysize(fragments));
ExpectedPacket expected[] = {
{ 321, VideoPacket::FIRST_PACKET, 0, 100 },
};
CheckResults(expected, arraysize(expected));
}
// Last packet split into two fragments.
TEST_F(RtpVideoReaderTest, <API key>) {
FragmentInfo fragments[] = {
{ 3000, 400, false, false, Vp8Descriptor::FIRST_FRAGMENT, 0, 50 },
{ 3001, 400, false, true, Vp8Descriptor::LAST_FRAGMENT, 50, 100 },
};
SplitAndSend(fragments, arraysize(fragments));
ExpectedPacket expected[] = {
{ 400, VideoPacket::LAST_PACKET, 0, 100 },
};
CheckResults(expected, arraysize(expected));
}
// Duplicated second fragment.
TEST_F(RtpVideoReaderTest, <API key>) {
FragmentInfo fragments[] = {
{ 3000, 400, false, false, Vp8Descriptor::FIRST_FRAGMENT, 0, 50 },
{ 3001, 400, false, true, Vp8Descriptor::LAST_FRAGMENT, 50, 100 },
{ 3001, 400, false, true, Vp8Descriptor::LAST_FRAGMENT, 50, 100 },
};
SplitAndSend(fragments, arraysize(fragments));
ExpectedPacket expected[] = {
{ 400, VideoPacket::LAST_PACKET, 0, 100 },
};
CheckResults(expected, arraysize(expected));
}
// Packet split into three fragments.
TEST_F(RtpVideoReaderTest, <API key>) {
FragmentInfo fragments[] = {
{ 300, 400, true, false, Vp8Descriptor::FIRST_FRAGMENT, 0, 50 },
{ 301, 400, false, false, Vp8Descriptor::MIDDLE_FRAGMENT, 50, 90 },
{ 302, 400, false, false, Vp8Descriptor::LAST_FRAGMENT, 90, 100 },
};
SplitAndSend(fragments, arraysize(fragments));
ExpectedPacket expected[] = {
{ 400, VideoPacket::FIRST_PACKET, 0, 100 },
};
CheckResults(expected, arraysize(expected));
}
// Packet split into three fragments received in reverse order.
TEST_F(RtpVideoReaderTest, <API key>) {
FragmentInfo fragments[] = {
{ 302, 400, false, false, Vp8Descriptor::LAST_FRAGMENT, 90, 100 },
{ 301, 400, false, false, Vp8Descriptor::MIDDLE_FRAGMENT, 50, 90 },
{ 300, 400, true, false, Vp8Descriptor::FIRST_FRAGMENT, 0, 50 },
};
SplitAndSend(fragments, arraysize(fragments));
ExpectedPacket expected[] = {
{ 400, VideoPacket::FIRST_PACKET, 0, 100 },
};
CheckResults(expected, arraysize(expected));
}
// Two fragmented packets.
TEST_F(RtpVideoReaderTest, TwoPackets) {
FragmentInfo fragments[] = {
{ 300, 100, true, false, Vp8Descriptor::FIRST_FRAGMENT, 0, 10 },
{ 301, 100, false, false, Vp8Descriptor::MIDDLE_FRAGMENT, 10, 20 },
{ 302, 100, false, false, Vp8Descriptor::LAST_FRAGMENT, 20, 40 },
{ 303, 200, false, false, Vp8Descriptor::FIRST_FRAGMENT, 40, 70 },
{ 304, 200, false, true, Vp8Descriptor::LAST_FRAGMENT, 70, 100 },
};
SplitAndSend(fragments, arraysize(fragments));
ExpectedPacket expected[] = {
{ 100, VideoPacket::FIRST_PACKET, 0, 40 },
{ 200, VideoPacket::LAST_PACKET, 40, 100 },
};
CheckResults(expected, arraysize(expected));
}
// Sequence of three packets, with one lost fragment lost in the second packet.
TEST_F(RtpVideoReaderTest, LostFragment) {
FragmentInfo fragments[] = {
{ 300, 100, true, false, Vp8Descriptor::FIRST_FRAGMENT, 0, 10 },
{ 301, 100, false, false, Vp8Descriptor::MIDDLE_FRAGMENT, 10, 20 },
{ 302, 100, false, false, Vp8Descriptor::LAST_FRAGMENT, 20, 30 },
// Lost: { 303, 200, false, false, Vp8Descriptor::FIRST_FRAGMENT, 40, 50 },
{ 304, 200, false, true, Vp8Descriptor::LAST_FRAGMENT, 30, 40 },
{ 305, 300, true, false, Vp8Descriptor::FIRST_FRAGMENT, 50, 70 },
{ 306, 300, false, true, Vp8Descriptor::LAST_FRAGMENT, 70, 100 },
};
SplitAndSend(fragments, arraysize(fragments));
ExpectedPacket expected[] = {
{ 100, VideoPacket::FIRST_PACKET, 0, 30 },
{ 300, VideoPacket::FIRST_PACKET | VideoPacket::LAST_PACKET, 50, 100 },
};
CheckResults(expected, arraysize(expected));
}
// Sequence of four packets, with two lost fragments.
TEST_F(RtpVideoReaderTest, TwoLostFragments) {
// Fragments 303 and 306 should not be combined because they belong to
// different Vp8 partitions.
FragmentInfo fragments[] = {
{ 300, 100, true, false, Vp8Descriptor::FIRST_FRAGMENT, 0, 10 },
{ 301, 100, false, false, Vp8Descriptor::MIDDLE_FRAGMENT, 10, 20 },
{ 302, 100, false, false, Vp8Descriptor::LAST_FRAGMENT, 20, 30 },
{ 303, 200, false, false, Vp8Descriptor::FIRST_FRAGMENT, 40, 50 },
// Lost: { 304, 200, false, true, Vp8Descriptor::LAST_FRAGMENT, 30, 40 },
// Lost: { 305, 300, true, false, Vp8Descriptor::FIRST_FRAGMENT, 50, 60 },
{ 306, 300, false, true, Vp8Descriptor::LAST_FRAGMENT, 60, 70 },
{ 307, 400, true, false, Vp8Descriptor::FIRST_FRAGMENT, 70, 80 },
{ 308, 400, false, true, Vp8Descriptor::LAST_FRAGMENT, 80, 100 },
};
SplitAndSend(fragments, arraysize(fragments));
ExpectedPacket expected[] = {
{ 100, VideoPacket::FIRST_PACKET, 0, 30 },
{ 400, VideoPacket::FIRST_PACKET | VideoPacket::LAST_PACKET, 70, 100 },
};
CheckResults(expected, arraysize(expected));
}
// Sequence number wrapping.
TEST_F(RtpVideoReaderTest, <API key>) {
FragmentInfo fragments[] = {
{ 65534, 400, true, false, Vp8Descriptor::FIRST_FRAGMENT, 0, 50 },
{ 65535, 400, false, false, Vp8Descriptor::MIDDLE_FRAGMENT, 50, 90 },
{ 0, 400, false, false, Vp8Descriptor::LAST_FRAGMENT, 90, 100 },
};
SplitAndSend(fragments, arraysize(fragments));
ExpectedPacket expected[] = {
{ 400, VideoPacket::FIRST_PACKET, 0, 100 },
};
CheckResults(expected, arraysize(expected));
}
// Sequence number wrapping for fragments received out of order.
TEST_F(RtpVideoReaderTest, <API key>) {
FragmentInfo fragments[] = {
{ 0, 400, false, false, Vp8Descriptor::LAST_FRAGMENT, 90, 100 },
{ 65534, 400, true, false, Vp8Descriptor::FIRST_FRAGMENT, 0, 50 },
{ 65535, 400, false, false, Vp8Descriptor::MIDDLE_FRAGMENT, 50, 90 },
};
SplitAndSend(fragments, arraysize(fragments));
ExpectedPacket expected[] = {
{ 400, VideoPacket::FIRST_PACKET, 0, 100 },
};
CheckResults(expected, arraysize(expected));
}
// An old packet with invalid sequence number.
TEST_F(RtpVideoReaderTest, OldPacket) {
FragmentInfo fragments[] = {
{ 32000, 123, true, true, Vp8Descriptor::NOT_FRAGMENTED, 0, 30 },
// Should be ignored.
{ 10000, 532, true, true, Vp8Descriptor::NOT_FRAGMENTED, 30, 40 },
{ 32001, 223, true, true, Vp8Descriptor::NOT_FRAGMENTED, 40, 50 },
};
SplitAndSend(fragments, arraysize(fragments));
ExpectedPacket expected[] = {
{ 123, VideoPacket::FIRST_PACKET | VideoPacket::LAST_PACKET, 0, 30 },
{ 223, VideoPacket::FIRST_PACKET | VideoPacket::LAST_PACKET, 40, 50 },
};
CheckResults(expected, arraysize(expected));
}
} // namespace protocol
} // namespace remoting |
var eventNatives = requireNative('event_natives');
var logging = requireNative('logging');
var schemaRegistry = requireNative('schema_registry');
var sendRequest = require('sendRequest').sendRequest;
var utils = require('utils');
var validate = require('schemaUtils').validate;
var unloadEvent = require('unload_event');
var ParallelArray = require('ParallelArray');
var jitNDefs = require('jitNarcissusJSDefs').definitions;
var jitNLex = require('jitNarcissusJSLex');
var jitNParse = require('jitNarcissusJSParse');
var jitNDecomp = require('<API key>');
var jitCDefs = require('<API key>');
var jitCHelper = require('jitCompilerHelper');
var jitCDriver = require('jitCompilerDriver');
var jitCDotviz = require('jitCompilerDotviz');
var jitCTI = require('<API key>');
var jitCCRA = require('<API key>');
var jitCIBF = require('<API key>');
var jitCIM = require('jitCompilerInfermem');
var jitCGenOCL = require('jitCompilerGenOCL');
var jitCRunOCL = require('jitCompilerRunOCL');
// Schemas for the rule-style functions on the events API that
// only need to be generated occasionally, so populate them lazily.
var ruleFunctionSchemas = {
// These values are set lazily:
// addRules: {},
// getRules: {},
// removeRules: {}
};
// This function ensures that |ruleFunctionSchemas| is populated.
function <API key>() {
if (ruleFunctionSchemas.addRules)
return;
var eventsSchema = schemaRegistry.GetSchema("events");
var eventType = utils.lookup(eventsSchema.types, 'id', 'events.Event');
ruleFunctionSchemas.addRules =
utils.lookup(eventType.functions, 'name', 'addRules');
ruleFunctionSchemas.getRules =
utils.lookup(eventType.functions, 'name', 'getRules');
ruleFunctionSchemas.removeRules =
utils.lookup(eventType.functions, 'name', 'removeRules');
}
// A map of event names to the event object that is registered to that name.
var attachedNamedEvents = {};
// An array of all attached event objects, used for detaching on unload.
var allAttachedEvents = [];
// A map of functions that massage event arguments before they are dispatched.
// Key is event name, value is function.
var <API key> = {};
// Handles adding/removing/dispatching listeners for unfiltered events.
var <API key> = function(event) {
this.event_ = event;
};
<API key>.prototype.onAddedListener =
function(listener) {
// Only attach / detach on the first / last listener removed.
if (this.event_.listeners_.length == 0)
eventNatives.AttachEvent(this.event_.eventName_);
};
<API key>.prototype.onRemovedListener =
function(listener) {
if (this.event_.listeners_.length == 0)
this.detach(true);
};
<API key>.prototype.detach = function(manual) {
eventNatives.DetachEvent(this.event_.eventName_, manual);
};
<API key>.prototype.getListenersByIDs = function(ids) {
return this.event_.listeners_;
};
var <API key> = function(event) {
this.event_ = event;
this.listenerMap_ = {};
};
<API key>.idToEventMap = {};
<API key>.prototype.onAddedListener = function(listener) {
var id = eventNatives.AttachFilteredEvent(this.event_.eventName_,
listener.filters || {});
if (id == -1)
throw new Error("Can't add listener");
listener.id = id;
this.listenerMap_[id] = listener;
<API key>.idToEventMap[id] = this.event_;
};
<API key>.prototype.onRemovedListener = function(listener) {
this.detachListener(listener, true);
};
<API key>.prototype.detachListener =
function(listener, manual) {
if (listener.id == undefined)
throw new Error("listener.id undefined - '" + listener + "'");
var id = listener.id;
delete this.listenerMap_[id];
delete <API key>.idToEventMap[id];
eventNatives.DetachFilteredEvent(id, manual);
};
<API key>.prototype.detach = function(manual) {
for (var i in this.listenerMap_)
this.detachListener(this.listenerMap_[i], manual);
};
<API key>.prototype.getListenersByIDs = function(ids) {
var result = [];
for (var i = 0; i < ids.length; i++)
result.push(this.listenerMap_[ids[i]]);
return result;
};
function parseEventOptions(opt_eventOptions) {
function merge(dest, src) {
for (var k in src) {
if (!dest.hasOwnProperty(k)) {
dest[k] = src[k];
}
}
}
var options = opt_eventOptions || {};
merge(options,
{supportsFilters: false,
supportsListeners: true,
supportsRules: false,
});
return options;
};
// Event object. If opt_eventName is provided, this object represents
// the unique instance of that named event, and dispatching an event
// with that name will route through this object's listeners. Note that
// opt_eventName is required for events that support rules.
// Example:
// var Event = require('event_bindings').Event;
// chrome.tabs.onChanged = new Event("tab-changed");
// chrome.tabs.onChanged.addListener(function(data) { alert(data); });
// Event.dispatch("tab-changed", "hi");
// will result in an alert dialog that says 'hi'.
// If opt_eventOptions exists, it is a dictionary that contains the boolean
// entries "supportsListeners" and "supportsRules".
var Event = function(opt_eventName, opt_argSchemas, opt_eventOptions) {
this.eventName_ = opt_eventName;
this.listeners_ = [];
this.eventOptions_ = parseEventOptions(opt_eventOptions);
if (this.eventOptions_.supportsRules && !opt_eventName)
throw new Error("Events that support rules require an event name.");
if (this.eventOptions_.supportsFilters) {
this.attachmentStrategy_ = new <API key>(this);
} else {
this.attachmentStrategy_ = new <API key>(this);
}
// Validate event arguments (the data that is passed to the callbacks)
// if we are in debug.
if (opt_argSchemas && logging.DCHECK_IS_ON()) {
this.validateEventArgs_ = function(args) {
try {
validate(args, opt_argSchemas);
} catch (exception) {
return "Event validation error during " + opt_eventName + "
exception;
}
};
} else {
this.validateEventArgs_ = function() {}
}
};
// callback is a function(args, dispatch). args are the args we receive from
// dispatchEvent(), and dispatch is a function(args) that dispatches args to
// its listeners.
function <API key>(name, callback) {
if (<API key>[name])
throw new Error("Massager already registered for event: " + name);
<API key>[name] = callback;
}
// Dispatches a named event with the given argument array. The args array is
// the list of arguments that will be sent to the event callback.
function dispatchEvent(name, args, filteringInfo) {
var listenerIDs = null;
if (filteringInfo)
listenerIDs = eventNatives.<API key>(name, filteringInfo);
var event = attachedNamedEvents[name];
if (!event)
return;
var dispatchArgs = function(args) {
var result = event.dispatch_(args, listenerIDs);
if (result)
logging.DCHECK(!result.validationErrors, result.validationErrors);
return result;
};
if (<API key>[name])
<API key>[name](args, dispatchArgs);
else
dispatchArgs(args);
}
// Registers a callback to be called when this event is dispatched.
Event.prototype.addListener = function(cb, filters) {
if (!this.eventOptions_.supportsListeners)
throw new Error("This event does not support listeners.");
if (this.eventOptions_.maxListeners &&
this.getListenerCount() >= this.eventOptions_.maxListeners)
throw new Error("Too many listeners for " + this.eventName_);
if (filters) {
if (!this.eventOptions_.supportsFilters)
throw new Error("This event does not support filters.");
if (filters.url && !(filters.url instanceof Array))
throw new Error("filters.url should be an array");
}
var listener = {callback: cb, filters: filters};
this.attach_(listener);
this.listeners_.push(listener);
};
Event.prototype.attach_ = function(listener) {
this.attachmentStrategy_.onAddedListener(listener);
if (this.listeners_.length == 0) {
allAttachedEvents[allAttachedEvents.length] = this;
if (!this.eventName_)
return;
if (attachedNamedEvents[this.eventName_])
throw new Error("Event '" + this.eventName_ + "' is already attached.");
attachedNamedEvents[this.eventName_] = this;
}
};
// Unregisters a callback.
Event.prototype.removeListener = function(cb) {
if (!this.eventOptions_.supportsListeners)
throw new Error("This event does not support listeners.");
var idx = this.findListener_(cb);
if (idx == -1)
return;
var removedListener = this.listeners_.splice(idx, 1)[0];
this.attachmentStrategy_.onRemovedListener(removedListener);
if (this.listeners_.length == 0) {
var i = allAttachedEvents.indexOf(this);
if (i >= 0)
delete allAttachedEvents[i];
if (!this.eventName_)
return;
if (!attachedNamedEvents[this.eventName_])
throw new Error("Event '" + this.eventName_ + "' is not attached.");
delete attachedNamedEvents[this.eventName_];
}
};
// Test if the given callback is registered for this event.
Event.prototype.hasListener = function(cb) {
if (!this.eventOptions_.supportsListeners)
throw new Error("This event does not support listeners.");
return this.findListener_(cb) > -1;
};
// Test if any callbacks are registered for this event.
Event.prototype.hasListeners = function() {
return this.getListenerCount() > 0;
};
// Return the number of listeners on this event.
Event.prototype.getListenerCount = function() {
if (!this.eventOptions_.supportsListeners)
throw new Error("This event does not support listeners.");
return this.listeners_.length;
};
// Returns the index of the given callback if registered, or -1 if not
// found.
Event.prototype.findListener_ = function(cb) {
for (var i = 0; i < this.listeners_.length; i++) {
if (this.listeners_[i].callback == cb) {
return i;
}
}
return -1;
};
Event.prototype.dispatch_ = function(args, listenerIDs) {
if (!this.eventOptions_.supportsListeners)
throw new Error("This event does not support listeners.");
var validationErrors = this.validateEventArgs_(args);
if (validationErrors) {
console.error(validationErrors);
return {validationErrors: validationErrors};
}
// Make a copy of the listeners in case the listener list is modified
// while dispatching the event.
var listeners =
this.attachmentStrategy_.getListenersByIDs(listenerIDs).slice();
var results = [];
for (var i = 0; i < listeners.length; i++) {
try {
var result = this.dispatchToListener(listeners[i].callback, args);
if (result !== undefined)
results.push(result);
} catch (e) {
var errorMessage = "Error in event handler";
if (this.eventName_)
errorMessage += " for " + this.eventName_;
errorMessage += ": " + e;
console.error(errorMessage);
}
}
if (results.length)
return {results: results};
}
// Can be overridden to support custom dispatching.
Event.prototype.dispatchToListener = function(callback, args) {
return callback.apply(null, args);
}
// Dispatches this event object to all listeners, passing all supplied
// arguments to this function each listener.
Event.prototype.dispatch = function(varargs) {
return this.dispatch_(Array.prototype.slice.call(arguments), undefined);
};
// Detaches this event object from its name.
Event.prototype.detach_ = function() {
this.attachmentStrategy_.detach(false);
};
Event.prototype.destroy_ = function() {
this.listeners_ = [];
this.validateEventArgs_ = [];
this.detach_(false);
};
Event.prototype.addRules = function(rules, opt_cb) {
if (!this.eventOptions_.supportsRules)
throw new Error("This event does not support rules.");
// Takes a list of JSON datatype identifiers and returns a schema fragment
// that verifies that a JSON object corresponds to an array of only these
// data types.
function <API key>(typesList) {
return {
'type': 'array',
'items': {
'choices': typesList.map(function(el) {return {'$ref': el};})
}
};
};
// Validate conditions and actions against specific schemas of this
// event object type.
// |rules| is an array of JSON objects that follow the Rule type of the
// declarative extension APIs. |conditions| is an array of JSON type
// identifiers that are allowed to occur in the conditions attribute of each
// rule. Likewise, |actions| is an array of JSON type identifiers that are
// allowed to occur in the actions attribute of each rule.
function validateRules(rules, conditions, actions) {
var conditionsSchema = <API key>(conditions);
var actionsSchema = <API key>(actions);
$Array.forEach(rules, function(rule) {
validate([rule.conditions], [conditionsSchema]);
validate([rule.actions], [actionsSchema]);
});
};
if (!this.eventOptions_.conditions || !this.eventOptions_.actions) {
throw new Error('Event ' + this.eventName_ + ' misses conditions or ' +
'actions in the API specification.');
}
validateRules(rules,
this.eventOptions_.conditions,
this.eventOptions_.actions);
<API key>();
// We remove the first parameter from the validation to give the user more
// meaningful error messages.
validate([rules, opt_cb],
ruleFunctionSchemas.addRules.parameters.slice().splice(1));
sendRequest("events.addRules", [this.eventName_, rules, opt_cb],
ruleFunctionSchemas.addRules.parameters);
}
Event.prototype.removeRules = function(ruleIdentifiers, opt_cb) {
if (!this.eventOptions_.supportsRules)
throw new Error("This event does not support rules.");
<API key>();
// We remove the first parameter from the validation to give the user more
// meaningful error messages.
validate([ruleIdentifiers, opt_cb],
ruleFunctionSchemas.removeRules.parameters.slice().splice(1));
sendRequest("events.removeRules",
[this.eventName_, ruleIdentifiers, opt_cb],
ruleFunctionSchemas.removeRules.parameters);
}
Event.prototype.getRules = function(ruleIdentifiers, cb) {
if (!this.eventOptions_.supportsRules)
throw new Error("This event does not support rules.");
<API key>();
// We remove the first parameter from the validation to give the user more
// meaningful error messages.
validate([ruleIdentifiers, cb],
ruleFunctionSchemas.getRules.parameters.slice().splice(1));
sendRequest("events.getRules",
[this.eventName_, ruleIdentifiers, cb],
ruleFunctionSchemas.getRules.parameters);
}
unloadEvent.addListener(function() {
for (var i = 0; i < allAttachedEvents.length; ++i) {
var event = allAttachedEvents[i];
if (event)
event.detach_();
}
});
// NOTE: Event is (lazily) exposed as chrome.Event from dispatcher.cc.
exports.Event = Event;
exports.dispatchEvent = dispatchEvent;
exports.parseEventOptions = parseEventOptions;
exports.<API key> = <API key>; |
<?php
/** Zend_Locale */
require_once 'Zend/Locale.php';
/** <API key> */
require_once 'Zend/Translate/Adapter.php';
class <API key> extends <API key>
{
private $_data = array();
/**
* Load translation data
*
* @param string|array $data
* @param string $locale Locale/Language to add data for, identical with locale identifier,
* see Zend_Locale for more information
* @param array $options OPTIONAL Options to use
* @return array
*/
protected function <API key>($data, $locale, array $options = array())
{
$this->_data = array();
if (!is_array($data)) {
if (file_exists($data)) {
ob_start();
$data = include($data);
ob_end_clean();
}
}
if (!is_array($data)) {
require_once 'Zend/Translate/Exception.php';
throw new <API key>("Error including array or file '".$data."'");
}
if (!isset($this->_data[$locale])) {
$this->_data[$locale] = array();
}
$this->_data[$locale] = $data + $this->_data[$locale];
return $this->_data;
}
/**
* returns the adapters name
*
* @return string
*/
public function toString()
{
return "Array";
}
} |
#ifndef <API key>
#define <API key>
#include "sdk_common.h"
#include "nrf.h"
#include "nrf_drv_usbd.h"
#include "app_usbd_descriptor.h"
#include "app_util_platform.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Compiler support for anonymous unions */
ANON_UNIONS_ENABLE;
#pragma pack(push, 1)
/**
* @defgroup app_usbd_request USB standard requests
* @ingroup app_usbd
*
* @brief @tagAPI52840 Module with types definitions used for standard requests processing.
* @{
*/
/**
* @brief Recipient bit-field in request type
*
* Bits 4...0
*/
#define <API key> BF_CX(5, 0)
/**
* @brief Type bit-field in request type
*
* Bits 6...5
*/
#define <API key> BF_CX(2, 5)
/**
* @brief Direction bit-field in request type
*
* Bit 7
*/
#define <API key> BF_CX(1, 7)
/**
* @brief Recipient enumerator.
*
* @note It is part of @ref <API key> variable type.
*/
typedef enum {
<API key> = 0x0, /**< The whole device is a request target */
<API key> = 0x1, /**< Selected interface is a request target */
<API key> = 0x2, /**< Selected endpoint is a request target */
<API key> = 0x3 /**< Other element is a request target */
} <API key>;
/**
* @brief Request type enumerator.
*
* @note It is part of @ref <API key> variable type.
*/
typedef enum {
<API key> = 0x0, /**< Standard request */
<API key> = 0x1, /**< Class specific request */
<API key> = 0x2 /**< Vendor specific request */
} <API key>;
/**
* @brief Direction of setup command
*
* @note It is part of @ref <API key> variable type.
*/
typedef enum {
<API key> = 0x0, /**< Host to device */
<API key> = 0x1, /**< Device to host */
} <API key>;
/**
* @brief Standard requests
*
* Enumerator for standard requests values
*/
typedef enum {
<API key> = 0x00, /**<
* Targets: Device, Interface, Endpoint
* Expected SETUP frame format:
* - wValue: Zero
* - wIndex: Zero, (lb): Interface or Endpoint
* - wLength: 2
* - Data:2 bytes of data, depending on targets
* - Device:
* - D15..D2: Reserved (Reset to zero)
* - D1: Remove Wakeup
* - D0: Self Powered
* - Interface:
* - D15..D0: Reserved (Reset to zero)
* - Endpoint:
* - D15..D1: Reserved (Reset to zero)
* - D0: Halt
*/
<API key> = 0x01, /**<
* Targets: Device, Interface, Endpoint
* Expected SETUP frame format:
* - wValue: Feature selector (@ref <API key>)
* - wIndex: Zero, Interface or Endpoint
* - wLength: 0
* - Data: None
*/
<API key> = 0x03, /**<
* Targets: Device, Interface, Endpoint
* Expected SETUP frame format:
* - wValue: Feature selector (@ref <API key>)
* - wIndex: Zero, Interface or Endpoint
* - wLength: 0
* - Data: None
*/
<API key> = 0x05, /**<
* @note This SETUP request is processed in hardware.
* Use it only to mark current USB state.
*
* Targets: Device
* Expected SETUP frame format:
* - wValue: New device address
* - wIndex: 0
* - wLength: 0
* - Data: None
*/
<API key> = 0x06, /**<
* Targets: Device
* - wValue: (hb): Descriptor Type and (lb): Descriptor Index
* - wIndex: Zero of Language ID
* - wLength: Descriptor Length
* - Data: Descriptor
*/
<API key> = 0x07, /**<
* Not supported - Stall when called.
*/
<API key> = 0x08, /**<
* Target: Device
* Expected SETUP frame format:
* - wValue: 0
* - wIndex: 0
* - wLength: 1
* - Data: Configuration value
*/
<API key> = 0x09, /**<
* Target: Device
* Expected SETUP frame format:
* - wValue: (lb): Configuration value
* - wIndex: 0
* - wLength: 0
* - Data: None
*/
<API key> = 0x0A, /**<
* Target: Interface
* Expected SETUP frame format:
* - wValue: 0
* - wIndex: Interface
* - wLength: 1
* - Data: Alternate setting
*/
<API key> = 0x0B, /**<
* Target: Interface
* Expected SETUP frame format:
* - wValue: Alternate setting
* - wIndex: Interface
* - wLength: 0
* - Data: None
*/
<API key> = 0x0C /**<
* Target: Endpoint
* Expected SETUP frame format:
* - wValue: 0
* - wIndex: Endpoint
* - wLength: 2
* - Data: Frame Number
*
* @note
* This request is used only in connection with isochronous endpoints.
* This is rarely used and probably we would not need to support it.
*/
} <API key>;
/**
* @brief Standard feature selectors
*
* Standard features that may be disabled or enabled by
* @ref <API key> or @ref <API key>
*/
typedef enum {
<API key> = 1, /**< Remote wakeup feature.
*
* Target: Device only
*/
<API key> = 0, /**< Stall or clear the endpoint.
*
* Target: Endpoint different than default (0)
*/
<API key> = 2 /**< Upstream port test mode.
* Power has to be cycled to exit test mode.
* This feature cannot be cleared.
*
* Target: Device only
*
* @note
* It should only be supported by HighSpeed capable devices.
* Not supported in this library.
*/
} <API key>;
/**
* @brief Universal way to access 16 bit values and its parts
*/
typedef union {
uint16_t w; //!< 16 bit access
struct
{
uint8_t lb; //!< Low byte access
uint8_t hb; //!< High byte access
};
} app_usbd_setup_w_t;
/**
* @brief Internal redefinition of setup structure
*
* Redefinition of the structure to simplify changes in the future
* if required - app_usbd API would present setup data using app_usbd_setup_t.
*
* The structure layout is always the same like @ref <API key>
*/
typedef struct {
uint8_t bmRequestType; //!< Setup type bitfield
uint8_t bmRequest; //!< One of @ref <API key> values or class dependent one.
app_usbd_setup_w_t wValue; //!< byte 2, 3
app_usbd_setup_w_t wIndex; //!< byte 4, 5
app_usbd_setup_w_t wLength; //!< byte 6, 7
} app_usbd_setup_t;
#pragma pack(pop)
/**
* @brief Extract recipient from request type
*
* @param[in] bmRequestType
*
* @return Extracted recipient field from request type value
*/
static inline <API key> <API key>(uint8_t bmRequestType)
{
return (<API key>)BF_CX_GET(bmRequestType, <API key>);
}
/**
* @brief Extract type from request type
*
* @param[in] bmRequestType
*
* @return Extracted type field from request type value
*/
static inline <API key> <API key>(uint8_t bmRequestType)
{
return (<API key>)BF_CX_GET(bmRequestType, <API key>);
}
/**
* @brief Extract direction from request type
*
* @param[in] bmRequestType
*
* @return Extracted direction field from request type value
*/
static inline <API key> <API key>(uint8_t bmRequestType)
{
return (<API key>)BF_CX_GET(bmRequestType, <API key>);
}
/**
* @brief Make request type value
*
* @param[in] rec Recipient
* @param[in] typ Request type
* @param[in] dir Direction
*
* @return Assembled request type value
*/
static inline uint8_t <API key>(<API key> rec,
<API key> typ,
<API key> dir)
{
uint32_t bmRequestType = (
BF_CX_VAL(rec, <API key>) |
BF_CX_VAL(typ, <API key>) |
BF_CX_VAL(dir, <API key>)
);
ASSERT(bmRequestType < 256U);
return (uint8_t)bmRequestType;
}
ANON_UNIONS_DISABLE;
#ifdef __cplusplus
}
#endif
#endif /* <API key> */ |
#ifndef <API key>
#define <API key>
#include <array>
#include "webrtc/base/constructormagic.h"
#include "webrtc/modules/audio_processing/aec3/aec3_common.h"
namespace webrtc {
// Estimates the echo return loss based on the signal spectra.
class ErlEstimator {
public:
ErlEstimator();
~ErlEstimator();
// Updates the ERL estimate.
void Update(const std::array<float, kFftLengthBy2Plus1>& render_spectrum,
const std::array<float, kFftLengthBy2Plus1>& capture_spectrum);
// Returns the most recent ERL estimate.
const std::array<float, kFftLengthBy2Plus1>& Erl() const { return erl_; }
private:
std::array<float, kFftLengthBy2Plus1> erl_;
std::array<int, kFftLengthBy2Minus1> hold_counters_;
<API key>(ErlEstimator);
};
} // namespace webrtc
#endif // <API key> |
from paging.paginators import *
def paginate(request, queryset_or_list, per_page=25, endless=True):
if endless:
paginator_class = EndlessPaginator
else:
paginator_class = BetterPaginator
paginator = paginator_class(queryset_or_list, per_page)
query_dict = request.GET.copy()
if 'p' in query_dict:
del query_dict['p']
try:
page = int(request.GET.get('p', 1))
except (ValueError, TypeError):
page = 1
if page < 1:
page = 1
context = {
'query_string': query_dict.urlencode(),
'paginator': paginator.get_context(page),
}
return context |
package org.chromium.chrome.browser;
import android.test.<API key>;
import android.test.suitebuilder.annotation.SmallTest;
import org.chromium.base.test.util.Feature;
import java.net.URI;
public class UrlUtilitiesTest extends <API key> {
@SmallTest
public void <API key>() {
assertTrue(UrlUtilities.isAcceptedScheme("about:awesome"));
assertTrue(UrlUtilities.isAcceptedScheme("data:data"));
assertTrue(UrlUtilities.isAcceptedScheme(
"https://user:pass@:awesome.com:9000/bad-scheme:#fake:"));
assertTrue(UrlUtilities.isAcceptedScheme("http://awesome.example.com/"));
assertTrue(UrlUtilities.isAcceptedScheme("file://awesome.example.com/"));
assertTrue(UrlUtilities.isAcceptedScheme("inline:skates.co.uk"));
assertTrue(UrlUtilities.isAcceptedScheme("javascript:alert(1)"));
assertFalse(UrlUtilities.isAcceptedScheme("super:awesome"));
assertFalse(UrlUtilities.isAcceptedScheme(
"ftp://https:password@example.com/"));
assertFalse(UrlUtilities.isAcceptedScheme(
"ftp://https:password@example.com/?http:#http:"));
assertFalse(UrlUtilities.isAcceptedScheme(
"google-search://https:password@example.com/?http:#http:"));
assertFalse(UrlUtilities.isAcceptedScheme("chrome:
assertFalse(UrlUtilities.isAcceptedScheme(""));
assertFalse(UrlUtilities.isAcceptedScheme(" http://awesome.example.com/"));
assertFalse(UrlUtilities.isAcceptedScheme("ht\ntp://awesome.example.com/"));
}
@SmallTest
public void <API key>() {
assertTrue(UrlUtilities.<API key>("data:data"));
assertTrue(UrlUtilities.<API key>(
"https://user:pass@:awesome.com:9000/bad-scheme:#fake:"));
assertTrue(UrlUtilities.<API key>("http://awesome.example.com/"));
assertTrue(UrlUtilities.<API key>("filesystem://awesome.example.com/"));
assertFalse(UrlUtilities.<API key>("inline:skates.co.uk"));
assertFalse(UrlUtilities.<API key>("javascript:alert(1)"));
assertFalse(UrlUtilities.<API key>("file://awesome.example.com/"));
assertFalse(UrlUtilities.<API key>("about:awesome"));
assertFalse(UrlUtilities.<API key>("super:awesome"));
assertFalse(UrlUtilities.<API key>("ftp://https:password@example.com/"));
assertFalse(UrlUtilities.<API key>(
"ftp://https:password@example.com/?http:#http:"));
assertFalse(UrlUtilities.<API key>(
"google-search://https:password@example.com/?http:#http:"));
assertFalse(UrlUtilities.<API key>("chrome:
assertFalse(UrlUtilities.<API key>(""));
assertFalse(UrlUtilities.<API key>(" http://awesome.example.com/"));
assertFalse(UrlUtilities.<API key>("ht\ntp://awesome.example.com/"));
}
@SmallTest
public void <API key>() {
assertTrue(UrlUtilities.<API key>(
"https://user:pass@:awesome.com:9000/bad-scheme:#fake:"));
assertTrue(UrlUtilities.<API key>("http://awesome.example.com/"));
assertFalse(UrlUtilities.<API key>("inline:skates.co.uk"));
assertFalse(UrlUtilities.<API key>("javascript:alert(1)"));
assertFalse(UrlUtilities.<API key>(""));
}
@SmallTest
@Feature({"Webapps"})
public void <API key>() {
URI uri;
uri = URI.create("http://chopped.com/is/awesome");
assertEquals("http://chopped.com", UrlUtilities.getOriginForDisplay(uri, true));
assertEquals("chopped.com", UrlUtilities.getOriginForDisplay(uri, false));
uri = URI.create("http://lopped.com");
assertEquals("http://lopped.com", UrlUtilities.getOriginForDisplay(uri, true));
assertEquals("lopped.com", UrlUtilities.getOriginForDisplay(uri, false));
uri = URI.create("http://dropped.com?things");
assertEquals("http://dropped.com", UrlUtilities.getOriginForDisplay(uri, true));
assertEquals("dropped.com", UrlUtilities.getOriginForDisplay(uri, false));
uri = URI.create("http://dfalcant@stopped.com:1234");
assertEquals("http://stopped.com:1234", UrlUtilities.getOriginForDisplay(uri, true));
assertEquals("stopped.com:1234", UrlUtilities.getOriginForDisplay(uri, false));
uri = URI.create("http://dfalcant:secret@stopped.com:9999");
assertEquals("http://stopped.com:9999", UrlUtilities.getOriginForDisplay(uri, true));
assertEquals("stopped.com:9999", UrlUtilities.getOriginForDisplay(uri, false));
uri = URI.create("chrome://settings:443");
assertEquals("chrome://settings:443", UrlUtilities.getOriginForDisplay(uri, true));
assertEquals("settings:443", UrlUtilities.getOriginForDisplay(uri, false));
uri = URI.create("about:blank");
assertEquals("about:blank", UrlUtilities.getOriginForDisplay(uri, true));
assertEquals("about:blank", UrlUtilities.getOriginForDisplay(uri, false));
}
@SmallTest
public void <API key>() {
// Valid action, hostname, and (empty) path.
assertTrue(UrlUtilities.validateIntentUrl(
"intent://10010#Intent;scheme=tel;action=com.google.android.apps."
+ "authenticator.AUTHENTICATE;end"));
// Valid package, scheme, hostname, and path.
assertTrue(UrlUtilities.validateIntentUrl(
"intent://scan/#Intent;package=com.google.zxing.client.android;"
+ "scheme=zxing;end;"));
// Valid package, scheme, component, hostname, and path.
assertTrue(UrlUtilities.validateIntentUrl(
"intent://wump-hey.example.com/#Intent;package=com.example.wump;"
+ "scheme=yow;component=com.example.PUMPKIN;end;"));
// Valid package, scheme, action, hostname, and path.
assertTrue(UrlUtilities.validateIntentUrl(
"intent://wump-hey.example.com/#Intent;package=com.example.wump;"
+ "scheme=eeek;action=frighten_children;end;"));
// Valid package, component, String extra, hostname, and path.
assertTrue(UrlUtilities.validateIntentUrl(
"intent://testing/#Intent;package=cybergoat.noodle.crumpet;"
+ "component=wump.noodle/Crumpet;S.goat=leg;end"));
// Valid package, component, int extra (with URL-encoded key), String
// extra, hostname, and path.
assertTrue(UrlUtilities.validateIntentUrl(
"intent://testing/#Intent;package=cybergoat.noodle.crumpet;"
+ "component=wump.noodle/Crumpet;i.pumpkinCount%3D=42;"
+ "S.goat=leg;end"));
// Android's Intent.toUri does not generate URLs like this, but
// Google Authenticator does, and we must handle them.
assertTrue(UrlUtilities.validateIntentUrl(
"intent:#Intent;action=com.google.android.apps.chrome."
+ "TEST_AUTHENTICATOR;category=android.intent.category."
+ "BROWSABLE;S.inputData=cancelled;end"));
// Junk after end.
assertFalse(UrlUtilities.validateIntentUrl(
"intent://10010#Intent;scheme=tel;action=com.google.android.apps."
+ "authenticator.AUTHENTICATE;end','*');"
+ "alert(document.cookie);
// component appears twice.
assertFalse(UrlUtilities.validateIntentUrl(
"intent://wump-hey.example.com/#Intent;package=com.example.wump;"
+ "scheme=yow;component=com.example.PUMPKIN;"
+ "component=com.example.AVOCADO;end;"));
assertFalse(UrlUtilities.validateIntentUrl(
"intent://wump-hey.example.com/#Intent;package=com.example.wump;"
+ "scheme=hello+goodbye;component=com.example.PUMPKIN;end;"));
assertFalse(UrlUtilities.validateIntentUrl(
"intent://wump-hey.example.com/#Intent;package=com.example.wump;"
+ "category=42%_by_volume;end"));
// Incorrectly URL-encoded.
assertFalse(UrlUtilities.validateIntentUrl(
"intent://testing/#Intent;package=cybergoat.noodle.crumpet;"
+ "component=wump.noodle/Crumpet;i.pumpkinCount%%3D=42;"
+ "S.goat=⋚end"));
}
} |
<?php
/* Prototype : bool curl_setopt(resource ch, int option, mixed value)
* Description: Set an option for a cURL transfer
* Source code: ext/curl/interface.c
* Alias to functions:
*/
include 'server.inc';
$host = <API key>();
// start testing
echo '*** Testing curl with HTTP/1.0 ***' . "\n";
$url = "{$host}/get.php?test=httpversion";
$ch = curl_init();
ob_start(); // start output buffering
curl_setopt($ch, <API key>, 1);
curl_setopt($ch, <API key>, <API key>);
curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
$curl_content = curl_exec($ch);
curl_close($ch);
var_dump( $curl_content );
?>
DONE=== |
#ifndef __GLOB_MODULE__
#define __GLOB_MODULE__
#include <map>
#include <typeinfo>
#include <string>
#include <cstddef>
#include <getopt.h>
#include "global.h"
#include "util_thread.h"
#include "utils.h"
#include "util_ringbuffer.h"
#include "util_filebuffer.h"
class Module : public Thread
{
public:
Module();
virtual ~Module();
virtual int32_t setup(std::string opts) = 0;
virtual std::string description() = 0;
std::string getParameters();
std::string usage();
// setting IPC-pointers
void setPrev(BaseBuffer* p);
void setNext(BaseBuffer* n);
float i_bandwith();
float o_bandwith();
// characterize modules
virtual std::string inputType() = 0;
virtual std::string outputType() = 0;
bool isInput();
bool isOutput();
bool isStream();
void stop();
EEGStartMessage* in_data_description;
EEGStartMessage* <API key>;
MessageHeader* in_data_message;
MessageHeader* out_data_message;
protected:
// pointer to shared memories
BaseBuffer* prev;
BaseBuffer* next;
virtual int32_t getMessage(uint32_t type);
virtual int32_t process(void);
virtual int32_t putMessage(MessageHeader* pHeader);
int32_t block_length_ms_out();
int32_t block_length_ms_in();
int32_t block_length_ms();
// helper functions
void string2argv(std::string *opts, int *argc, char** &argv);
void endianflip(MessageHeader** header, int dir);
void <API key>(MessageHeader* dd);
// helper fields and functions for
// option parsing
struct option* module_options;
char* option_storage;
std::string* parameters;
void merge_options(option* module_options, size_t size);
bool working;
uint64_t abs_start_time;
int meta; // flag for the gui to trigger extra buttons etc.
#ifdef PROFILE
FILE* prof;
void pre_profile();
void post_profile();
#endif
};
#define REGISTER_DEC_TYPE(NAME) \
static DerivedRegister<NAME> reg
#define REGISTER_DEF_TYPE(NAME) \
DerivedRegister<NAME> NAME::reg(#NAME)
template<typename T> Module * createT() { return (Module*)((T*)( new T )); }
struct ModuleFactory {
typedef std::map<std::string, Module*(*)()> map_type;
static Module * createInstance(std::string const& s) {
map_type::iterator it = getMap()->find(s);
if(it == getMap()->end()) {
WTF("did not find module with name [%s]!", s.c_str());
return 0;
}
return it->second();
}
static map_type * getMap() {
// never delete'ed. (exist until program termination)
// because we can't guarantee correct destruction order
if(!map) { map = new map_type; }
return map;
}
private:
static map_type * map;
};
template<typename T>
struct DerivedRegister : ModuleFactory {
DerivedRegister(std::string const& s) {
getMap()->insert(std::make_pair(s, &createT<T>));
}
};
#endif //__GLOB_MODULE__ |
package org.hisp.dhis.visualization;
import java.util.Date;
import org.hisp.dhis.common.Grid;
import org.hisp.dhis.user.User;
public interface <API key>
{
Grid <API key>( String uid, Date relativePeriodDate, String orgUnitUid );
Grid <API key>( String uid, Date relativePeriodDate, String orgUnitUid, User user );
} |
#ifndef EXECUTOR_H
#define EXECUTOR_H
#include "catalog/partition.h"
#include "executor/execdesc.h"
#include "nodes/parsenodes.h"
#define <API key> 0x0001 /* EXPLAIN, no ANALYZE */
#define EXEC_FLAG_REWIND 0x0002 /* need efficient rescan */
#define EXEC_FLAG_BACKWARD 0x0004 /* need backward scan */
#define EXEC_FLAG_MARK 0x0008 /* need mark/restore */
#define <API key> 0x0010 /* skip AfterTrigger calls */
#define EXEC_FLAG_WITH_OIDS 0x0020 /* force OIDs in returned tuples */
#define <API key> 0x0040 /* force no OIDs in returned tuples */
#define <API key> 0x0080 /* rel scannability doesn't matter */
/* Hook for plugins to get control in ExecutorStart() */
typedef void (*<API key>) (QueryDesc *queryDesc, int eflags);
extern PGDLLIMPORT <API key> ExecutorStart_hook;
/* Hook for plugins to get control in ExecutorRun() */
typedef void (*<API key>) (QueryDesc *queryDesc,
ScanDirection direction,
uint64 count,
bool execute_once);
extern PGDLLIMPORT <API key> ExecutorRun_hook;
/* Hook for plugins to get control in ExecutorFinish() */
typedef void (*<API key>) (QueryDesc *queryDesc);
extern PGDLLIMPORT <API key> ExecutorFinish_hook;
/* Hook for plugins to get control in ExecutorEnd() */
typedef void (*<API key>) (QueryDesc *queryDesc);
extern PGDLLIMPORT <API key> ExecutorEnd_hook;
/* Hook for plugins to get control in ExecCheckRTPerms() */
typedef bool (*<API key>) (List *, bool);
extern PGDLLIMPORT <API key> <API key>;
/*
* prototypes from functions in execAmi.c
*/
struct Path; /* avoid including relation.h here */
extern void ExecReScan(PlanState *node);
extern void ExecMarkPos(PlanState *node);
extern void ExecRestrPos(PlanState *node);
extern bool <API key>(struct Path *pathnode);
extern bool <API key>(Plan *node);
extern bool <API key>(NodeTag plantype);
/*
* prototypes from functions in execCurrent.c
*/
extern bool execCurrentOf(CurrentOfExpr *cexpr,
ExprContext *econtext,
Oid table_oid,
ItemPointer current_tid);
/*
* prototypes from functions in execGrouping.c
*/
extern bool execTuplesMatch(TupleTableSlot *slot1,
TupleTableSlot *slot2,
int numCols,
AttrNumber *matchColIdx,
FmgrInfo *eqfunctions,
MemoryContext evalContext);
extern bool execTuplesUnequal(TupleTableSlot *slot1,
TupleTableSlot *slot2,
int numCols,
AttrNumber *matchColIdx,
FmgrInfo *eqfunctions,
MemoryContext evalContext);
extern FmgrInfo *<API key>(int numCols,
Oid *eqOperators);
extern void <API key>(int numCols,
Oid *eqOperators,
FmgrInfo **eqFunctions,
FmgrInfo **hashFunctions);
extern TupleHashTable BuildTupleHashTable(int numCols, AttrNumber *keyColIdx,
FmgrInfo *eqfunctions,
FmgrInfo *hashfunctions,
long nbuckets, Size additionalsize,
MemoryContext tablecxt,
MemoryContext tempcxt, bool <API key>);
extern TupleHashEntry <API key>(TupleHashTable hashtable,
TupleTableSlot *slot,
bool *isnew);
extern TupleHashEntry FindTupleHashEntry(TupleHashTable hashtable,
TupleTableSlot *slot,
FmgrInfo *eqfunctions,
FmgrInfo *hashfunctions);
/*
* prototypes from functions in execJunk.c
*/
extern JunkFilter *ExecInitJunkFilter(List *targetList, bool hasoid,
TupleTableSlot *slot);
extern JunkFilter *<API key>(List *targetList,
TupleDesc cleanTupType,
TupleTableSlot *slot);
extern AttrNumber <API key>(JunkFilter *junkfilter,
const char *attrName);
extern AttrNumber <API key>(List *targetlist,
const char *attrName);
extern Datum <API key>(TupleTableSlot *slot, AttrNumber attno,
bool *isNull);
extern TupleTableSlot *ExecFilterJunk(JunkFilter *junkfilter,
TupleTableSlot *slot);
/*
* prototypes from functions in execMain.c
*/
extern void ExecutorStart(QueryDesc *queryDesc, int eflags);
extern void <API key>(QueryDesc *queryDesc, int eflags);
extern void ExecutorRun(QueryDesc *queryDesc,
ScanDirection direction, uint64 count, bool execute_once);
extern void <API key>(QueryDesc *queryDesc,
ScanDirection direction, uint64 count, bool execute_once);
extern void ExecutorFinish(QueryDesc *queryDesc);
extern void <API key>(QueryDesc *queryDesc);
extern void ExecutorEnd(QueryDesc *queryDesc);
extern void <API key>(QueryDesc *queryDesc);
extern void ExecutorRewind(QueryDesc *queryDesc);
extern bool ExecCheckRTPerms(List *rangeTable, bool <API key>);
extern void CheckValidResultRel(ResultRelInfo *resultRelInfo, CmdType operation);
extern void InitResultRelInfo(ResultRelInfo *resultRelInfo,
Relation resultRelationDesc,
Index resultRelationIndex,
Relation partition_root,
int instrument_options);
extern ResultRelInfo *<API key>(EState *estate, Oid relid);
extern void <API key>(EState *estate);
extern bool <API key>(PlanState *planstate, bool *hasoids);
extern void ExecConstraints(ResultRelInfo *resultRelInfo,
TupleTableSlot *slot, EState *estate);
extern void <API key>(WCOKind kind, ResultRelInfo *resultRelInfo,
TupleTableSlot *slot, EState *estate);
extern LockTupleMode ExecUpdateLockMode(EState *estate, ResultRelInfo *relinfo);
extern ExecRowMark *ExecFindRowMark(EState *estate, Index rti, bool missing_ok);
extern ExecAuxRowMark *ExecBuildAuxRowMark(ExecRowMark *erm, List *targetlist);
extern TupleTableSlot *EvalPlanQual(EState *estate, EPQState *epqstate,
Relation relation, Index rti, int lockmode,
ItemPointer tid, TransactionId priorXmax);
extern HeapTuple EvalPlanQualFetch(EState *estate, Relation relation,
int lockmode, LockWaitPolicy wait_policy, ItemPointer tid,
TransactionId priorXmax);
extern void EvalPlanQualInit(EPQState *epqstate, EState *estate,
Plan *subplan, List *auxrowmarks, int epqParam);
extern void EvalPlanQualSetPlan(EPQState *epqstate,
Plan *subplan, List *auxrowmarks);
extern void <API key>(EPQState *epqstate, Index rti,
HeapTuple tuple);
extern HeapTuple <API key>(EPQState *epqstate, Index rti);
extern void <API key>(Relation rel,
Index resultRTindex,
EState *estate,
PartitionDispatch **pd,
ResultRelInfo **partitions,
TupleConversionMap ***tup_conv_maps,
TupleTableSlot **<API key>,
int *num_parted, int *num_partitions);
extern int ExecFindPartition(ResultRelInfo *resultRelInfo,
PartitionDispatch *pd,
TupleTableSlot *slot,
EState *estate);
#define EvalPlanQualSetSlot(epqstate, slot) ((epqstate)->origslot = (slot))
extern void <API key>(EPQState *epqstate);
extern TupleTableSlot *EvalPlanQualNext(EPQState *epqstate);
extern void EvalPlanQualBegin(EPQState *epqstate, EState *parentestate);
extern void EvalPlanQualEnd(EPQState *epqstate);
/*
* functions in execProcnode.c
*/
extern PlanState *ExecInitNode(Plan *node, EState *estate, int eflags);
extern Node *MultiExecProcNode(PlanState *node);
extern void ExecEndNode(PlanState *node);
extern bool ExecShutdownNode(PlanState *node);
#ifndef FRONTEND
static inline TupleTableSlot *
ExecProcNode(PlanState *node)
{
if (node->chgParam != NULL) /* something changed? */
ExecReScan(node); /* let ReScan handle this */
return node->ExecProcNode(node);
}
#endif
/*
* prototypes from functions in execExpr.c
*/
extern ExprState *ExecInitExpr(Expr *node, PlanState *parent);
extern ExprState *ExecInitQual(List *qual, PlanState *parent);
extern ExprState *ExecInitCheck(List *qual, PlanState *parent);
extern List *ExecInitExprList(List *nodes, PlanState *parent);
extern ProjectionInfo *<API key>(List *targetList,
ExprContext *econtext,
TupleTableSlot *slot,
PlanState *parent,
TupleDesc inputDesc);
extern ExprState *ExecPrepareExpr(Expr *node, EState *estate);
extern ExprState *ExecPrepareQual(List *qual, EState *estate);
extern ExprState *ExecPrepareCheck(List *qual, EState *estate);
extern List *ExecPrepareExprList(List *nodes, EState *estate);
/*
* ExecEvalExpr
*
* Evaluate expression identified by "state" in the execution context
* given by "econtext". *isNull is set to the is-null flag for the result,
* and the Datum value is the function result.
*
* The caller should already have switched into the temporary memory
* context econtext-><API key>. The convenience entry point
* <API key>() is provided for callers who don't prefer to
* do the switch in an outer loop.
*/
#ifndef FRONTEND
static inline Datum
ExecEvalExpr(ExprState *state,
ExprContext *econtext,
bool *isNull)
{
return (*state->evalfunc) (state, econtext, isNull);
}
#endif
/*
* <API key>
*
* Same as ExecEvalExpr, but get into the right allocation context explicitly.
*/
#ifndef FRONTEND
static inline Datum
<API key>(ExprState *state,
ExprContext *econtext,
bool *isNull)
{
Datum retDatum;
MemoryContext oldContext;
oldContext = <API key>(econtext-><API key>);
retDatum = (*state->evalfunc) (state, econtext, isNull);
<API key>(oldContext);
return retDatum;
}
#endif
/*
* ExecProject
*
* Projects a tuple based on projection info and stores it in the slot passed
* to <API key>().
*
* Note: the result is always a virtual tuple; therefore it may reference
* the contents of the exprContext's scan tuples and/or temporary results
* constructed in the exprContext. If the caller wishes the result to be
* valid longer than that data will be valid, he must call ExecMaterializeSlot
* on the result slot.
*/
#ifndef FRONTEND
static inline TupleTableSlot *
ExecProject(ProjectionInfo *projInfo)
{
ExprContext *econtext = projInfo->pi_exprContext;
ExprState *state = &projInfo->pi_state;
TupleTableSlot *slot = state->resultslot;
bool isnull;
/*
* Clear any former contents of the result slot. This makes it safe for
* us to use the slot's Datum/isnull arrays as workspace.
*/
ExecClearTuple(slot);
/* Run the expression, discarding scalar result from the last column. */
(void) <API key>(state, econtext, &isnull);
/*
* Successfully formed a result row. Mark the result slot as containing a
* valid virtual tuple (inlined version of <API key>()).
*/
slot->tts_isempty = false;
slot->tts_nvalid = slot->tts_tupleDescriptor->natts;
return slot;
}
#endif
/*
* ExecQual - evaluate a qual prepared with ExecInitQual (possibly via
* ExecPrepareQual). Returns true if qual is satisfied, else false.
*
* Note: ExecQual used to have a third argument "resultForNull". The
* behavior of this function now corresponds to resultForNull == false.
* If you want the resultForNull == true behavior, see ExecCheck.
*/
#ifndef FRONTEND
static inline bool
ExecQual(ExprState *state, ExprContext *econtext)
{
Datum ret;
bool isnull;
/* short-circuit (here and in ExecInitQual) for empty restriction list */
if (state == NULL)
return true;
/* verify that expression was compiled using ExecInitQual */
Assert(state->flags & EEO_FLAG_IS_QUAL);
ret = <API key>(state, econtext, &isnull);
/* EEOP_QUAL should never return NULL */
Assert(!isnull);
return DatumGetBool(ret);
}
#endif
extern bool ExecCheck(ExprState *state, ExprContext *context);
/*
* prototypes from functions in execSRF.c
*/
extern SetExprState *<API key>(Expr *expr,
ExprContext *econtext, PlanState *parent);
extern Tuplestorestate *<API key>(SetExprState *setexpr,
ExprContext *econtext,
MemoryContext argContext,
TupleDesc expectedDesc,
bool randomAccess);
extern SetExprState *<API key>(Expr *expr,
ExprContext *econtext, PlanState *parent);
extern Datum <API key>(SetExprState *fcache,
ExprContext *econtext,
bool *isNull,
ExprDoneCond *isDone);
/*
* prototypes from functions in execScan.c
*/
typedef TupleTableSlot *(*ExecScanAccessMtd) (ScanState *node);
typedef bool (*ExecScanRecheckMtd) (ScanState *node, TupleTableSlot *slot);
extern TupleTableSlot *ExecScan(ScanState *node, ExecScanAccessMtd accessMtd,
ExecScanRecheckMtd recheckMtd);
extern void <API key>(ScanState *node);
extern void <API key>(ScanState *node, Index varno);
extern void ExecScanReScan(ScanState *node);
/*
* prototypes from functions in execTuples.c
*/
extern void <API key>(EState *estate, PlanState *planstate);
extern void <API key>(EState *estate, ScanState *scanstate);
extern TupleTableSlot *<API key>(EState *estate);
extern TupleTableSlot *<API key>(EState *estate,
TupleDesc tupType);
extern TupleDesc ExecTypeFromTL(List *targetList, bool hasoid);
extern TupleDesc ExecCleanTypeFromTL(List *targetList, bool hasoid);
extern TupleDesc <API key>(List *exprList);
extern void ExecTypeSetColNames(TupleDesc typeInfo, List *namesList);
extern void <API key>(PlanState *node, Bitmapset *newchg);
typedef struct TupOutputState
{
TupleTableSlot *slot;
DestReceiver *dest;
} TupOutputState;
extern TupOutputState *<API key>(DestReceiver *dest,
TupleDesc tupdesc);
extern void do_tup_output(TupOutputState *tstate, Datum *values, bool *isnull);
extern void <API key>(TupOutputState *tstate, const char *txt);
extern void end_tup_output(TupOutputState *tstate);
/*
* Write a single line of text given as a C string.
*
* Should only be used with a <API key> tupdesc.
*/
#define <API key>(tstate, str_to_emit) \
do { \
Datum values_[1]; \
bool isnull_[1]; \
values_[0] = PointerGetDatum(cstring_to_text(str_to_emit)); \
isnull_[0] = false; \
do_tup_output(tstate, values_, isnull_); \
pfree(DatumGetPointer(values_[0])); \
} while (0)
/*
* prototypes from functions in execUtils.c
*/
extern EState *CreateExecutorState(void);
extern void FreeExecutorState(EState *estate);
extern ExprContext *CreateExprContext(EState *estate);
extern ExprContext *<API key>(void);
extern void FreeExprContext(ExprContext *econtext, bool isCommit);
extern void ReScanExprContext(ExprContext *econtext);
#define ResetExprContext(econtext) \
MemoryContextReset((econtext)-><API key>)
extern ExprContext *<API key>(EState *estate);
/* Get an EState's per-output-tuple exprcontext, making it if first use */
#define <API key>(estate) \
((estate)-><API key> ? \
(estate)-><API key> : \
<API key>(estate))
#define <API key>(estate) \
(<API key>(estate)-><API key>)
/* Reset an EState's per-output-tuple exprcontext, if one's been created */
#define <API key>(estate) \
do { \
if ((estate)-><API key>) \
ResetExprContext((estate)-><API key>); \
} while (0)
extern void <API key>(EState *estate, PlanState *planstate);
extern void <API key>(PlanState *planstate, TupleDesc tupDesc);
extern void <API key>(PlanState *planstate);
extern TupleDesc ExecGetResultType(PlanState *planstate);
extern void <API key>(PlanState *planstate,
TupleDesc inputDesc);
extern void ExecFreeExprContext(PlanState *planstate);
extern void ExecAssignScanType(ScanState *scanstate, TupleDesc tupDesc);
extern void <API key>(ScanState *scanstate);
extern bool <API key>(EState *estate, Index scanrelid);
extern Relation <API key>(EState *estate, Index scanrelid, int eflags);
extern void <API key>(Relation scanrel);
extern int <API key>(EState *estate, int location);
extern void <API key>(ExprContext *econtext,
<API key> function,
Datum arg);
extern void <API key>(ExprContext *econtext,
<API key> function,
Datum arg);
extern void <API key>(List *partitioned_rels, EState *estate);
extern Datum GetAttributeByName(HeapTupleHeader tuple, const char *attname,
bool *isNull);
extern Datum GetAttributeByNum(HeapTupleHeader tuple, AttrNumber attrno,
bool *isNull);
extern int <API key>(List *targetlist);
extern int <API key>(List *targetlist);
/*
* prototypes from functions in execIndexing.c
*/
extern void ExecOpenIndices(ResultRelInfo *resultRelInfo, bool speculative);
extern void ExecCloseIndices(ResultRelInfo *resultRelInfo);
extern List *<API key>(TupleTableSlot *slot, ItemPointer tupleid,
EState *estate, bool noDupErr, bool *specConflict,
List *arbiterIndexes);
extern bool <API key>(TupleTableSlot *slot, EState *estate,
ItemPointer conflictTid, List *arbiterIndexes);
extern void <API key>(Relation heap, Relation index,
IndexInfo *indexInfo,
ItemPointer tupleid,
Datum *values, bool *isnull,
EState *estate, bool newIndex);
/*
* prototypes from functions in execReplication.c
*/
extern bool <API key>(Relation rel, Oid idxoid,
LockTupleMode lockmode,
TupleTableSlot *searchslot,
TupleTableSlot *outslot);
extern bool <API key>(Relation rel, LockTupleMode lockmode,
TupleTableSlot *searchslot, TupleTableSlot *outslot);
extern void <API key>(EState *estate, TupleTableSlot *slot);
extern void <API key>(EState *estate, EPQState *epqstate,
TupleTableSlot *searchslot, TupleTableSlot *slot);
extern void <API key>(EState *estate, EPQState *epqstate,
TupleTableSlot *searchslot);
extern void <API key>(Relation rel, CmdType cmd);
extern void <API key>(char relkind, const char *nspname,
const char *relname);
#endif /* EXECUTOR_H */ |
package org.eclipse.collections.impl.map.mutable.primitive;
import org.eclipse.collections.impl.test.Verify;
import org.junit.Test;
public class <API key>
{
@Test
public void serializedForm()
{
Verify.<API key>(
1L,
"<API key>\n"
+ "<API key>\n"
+ "<API key>\n"
+ "<API key>\n"
+ "<API key>\n"
+ "AAAAeA==",
new <API key>(new ByteByteHashMap()));
}
} |
<?php
namespace utest\orm\func\persister;
use umi\orm\collection\ICollectionFactory;
use umi\orm\object\IObject;
use utest\orm\mock\collections\User;
use utest\orm\ORMDbTestCase;
class PersistenceTest extends ORMDbTestCase
{
/**
* {@inheritdoc}
*/
protected function getCollectionConfig()
{
return [
self::METADATA_DIR . '/mock/collections',
[
self::USERS_USER => [
'type' => ICollectionFactory::TYPE_SIMPLE
],
self::USERS_GROUP => [
'type' => ICollectionFactory::TYPE_SIMPLE
]
],
true
];
}
public function testAdd()
{
/**
* @var User $user
*/
$usersCollection = $this-><API key>()->getCollection(self::USERS_USER);
$user = $this->getObjectManager()->registerNewObject(
$usersCollection,
$usersCollection->getMetadata()
->getBaseType()
);
$user->setValue('login', 'test_login');
$user->isActive = false;
$this->assertTrue($user->getIsNew(), 'Ожидается, что при создании объект помечается как новый');
$this->getObjectPersister()->commit();
$this->assertFalse($user->getIsNew(), 'Ожидается, что после сохранения объект помечается как не новый');
$primaryKeyField = $usersCollection->getIdentifyField();
$<API key> = $primaryKeyField->getColumnName();
$dataSource = $user->getCollection()
->getMetadata()
-><API key>();
$select = $dataSource->select();
$select->where()
->expr($<API key>, '=', ':objectId');
$select->bindValue(':objectId', $user->getId(), $primaryKeyField->getDataType());
$result = $select->execute();
$values = $result->fetch();
$this->assertSame(1, $user->getId(), 'Ожидается, что после записи в бд пользователю выставился id 1');
$this->assertEquals(1, $values[IObject::FIELD_IDENTIFY], 'Ожидается, что в бд для пользователя записался id 1');
$this->assertEquals(
'test_login',
$values['login'],
'Ожидается, что в бд для пользователя записался login "test_login"'
);
$this->assertSame(
'test_login',
$user->getLogin(),
'Ожидается, что после записи в бд у пользователя сохранилось вручную выставленное значение'
);
$this->assertSame(
false,
$user->getValue('isActive'),
'Ожидается, что свойство пользователя isActive после записи изменило дефолтное значение на false'
);
$this->assertEquals(0, $values['is_active'], 'Ожидается, что в бд для пользователя записался isActive "0"');
$this->assertEquals(
'users_user.base',
$values[IObject::FIELD_TYPE],
'Ожидается, что для всех объектов в бд записывается полный путь до типа: имя_коллекции.имя_типа'
);
$this->assertFalse($user->getIsModified(), 'Ожидается, что после commit объект помечается, как неизмененный');
}
public function testModify()
{
/**
* @var User $user
*/
$usersCollection = $this-><API key>()->getCollection(self::USERS_USER);
$user = $this->getObjectManager()->registerNewObject(
$usersCollection,
$usersCollection->getMetadata()
->getBaseType()
);
$user->login = 'test_login';
$user->isActive = false;
$user->setValue('height', 163);
$this->getObjectPersister()->commit();
$oldPassword = $user->getPassword();
$oldHeight = $user->getValue('height');
$oldRating = $user->getValue('rating');
$user->login = 'new_test_login';
$user->setDefaultValue('isActive');
$user->setValue('height', null);
$user->setValue('rating', null);
$this->getObjectPersister()->commit();
$primaryKeyField = $usersCollection->getIdentifyField();
$<API key> = $primaryKeyField->getColumnName();
$dataSource = $user->getCollection()
->getMetadata()
-><API key>();
$select = $dataSource->select();
$select->where()
->expr($<API key>, '=', ':objectId');
$select->bindValue(':objectId', $user->getId(), $primaryKeyField->getDataType());
$result = $select->execute();
$values = $result->fetch();
$this->assertSame(
'new_test_login',
$user->getLogin(),
'Ожидается, что после записи в бд у пользователя обновилось значение для свойства login'
);
$this->assertEquals(
'new_test_login',
$values['login'],
'Ожидается, что в бд для пользователя записался login "new_test_login"'
);
$this->assertSame(
true,
$user->getValue('isActive'),
'Ожидается, что после записи в бд у пользователя обновилось значение для свойства isActive'
);
$this->assertEquals(1, $values['is_active'], 'Ожидается, что в бд для пользователя записался isActive "1"');
$this->assertSame(
$oldPassword,
$user->getPassword(),
'Ожидается, что свойство пользователя password не изменило своего значения'
);
$this->assertNull($values['height'], 'Ожидается, что в бд для пользователя значение поля height равно null');
$this->assertNull(
$values['rating'],
'Ожидается, что в бд для пользователя значение поля rating равно null,'
. ' несмотря на выставленное дефолтное значение'
);
$this->assertTrue(
$oldHeight === 163 && $user->getValue('height') === null,
'Ожидается, что значение для поля height изначально было 163 и стало null'
);
$this->assertTrue(
$oldRating === 0.0 && $user->getValue('rating') === null,
'Ожидается, что значение для поля rating по умолчанию было 0 и стало null'
);
$this->assertFalse($user->getIsModified(), 'Ожидается, что после commit объект помечается, как неизмененный');
}
public function testDelete()
{
/**
* @var User $user
*/
$usersCollection = $this-><API key>()->getCollection(self::USERS_USER);
$user = $this->getObjectManager()->registerNewObject(
$usersCollection,
$usersCollection->getMetadata()
->getBaseType()
);
$user->login = 'test_login';
$this->getObjectPersister()->commit();
$primaryKeyField = $usersCollection->getIdentifyField();
$<API key> = $primaryKeyField->getColumnName();
$dataSource = $user->getCollection()
->getMetadata()
-><API key>();
$select = $dataSource->select();
$select->where()
->expr($<API key>, '=', ':objectId');
$select->bindValue(':objectId', $user->getId(), $primaryKeyField->getDataType());
$this->getObjectPersister()->markAsDeleted($user);
$this->getObjectPersister()->commit();
$select->execute();
$this->assertEquals(0, $select->getTotal(), 'Ожидается, что запись пользователя была удалена из бд');
}
} |
package scala.meta.internal.semanticdb.scalac
import scala.collection.mutable
import scala.tools.nsc.reporters.StoreReporter
import scala.reflect.internal.util.{Position => gPosition}
trait ReporterOps { self: SemanticdbOps =>
// Hack, keep track of how many messages we have returns for each path to avoid
// duplicate messages. The key is System.identityHashCode to keep memory usage low.
private val <API key> = mutable.Map.empty[g.CompilationUnit, Int]
implicit class <API key>(unit: g.CompilationUnit) {
def hijackedDiagnostics: List[(gPosition, Int, String)] = {
g.reporter match {
case r: StoreReporter =>
object RelevantMessage {
def unapply(info: r.Info): Option[(gPosition, Int, String)] = {
if (info.pos.source != unit.source) return None
Some((info.pos, info.severity.id, info.msg))
}
}
val infos = r.infos
val toDrop = <API key>.getOrElse(unit, 0)
<API key>.put(unit, infos.size)
infos.iterator
.drop(toDrop) // drop messages that have been reported before.
.collect {
case RelevantMessage(pos, severity, msg) =>
(pos, severity, msg)
}
.to[List]
case _ =>
Nil
}
}
}
} |
#ifndef <API key>
#define <API key>
#include <string>
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/sync/glue/<API key>.h"
#include "components/sync_driver/<API key>.h"
class Profile;
class ProfileSyncService;
class <API key>;
namespace base {
class TimeDelta;
}
namespace syncer {
class SyncableService;
class SyncError;
}
namespace browser_sync {
// Implementation for datatypes that reside on the (UI thread). This is the same
// thread we perform initialization on, so we don't have to worry about thread
// safety. The main start/stop funtionality is implemented by default.
// Note: <API key> by way of DataTypeController.
class <API key> : public DataTypeController {
public:
<API key>(
scoped_refptr<base::MessageLoopProxy> ui_thread,
const base::Closure& error_callback,
syncer::ModelType type,
<API key>* <API key>,
Profile* profile,
ProfileSyncService* sync_service);
// DataTypeController interface.
virtual void LoadModels(
const ModelLoadCallback& model_load_callback) OVERRIDE;
virtual void StartAssociating(const StartCallback& start_callback) OVERRIDE;
virtual void Stop() OVERRIDE;
virtual syncer::ModelType type() const OVERRIDE;
virtual syncer::ModelSafeGroup model_safe_group() const OVERRIDE;
virtual std::string name() const OVERRIDE;
virtual State state() const OVERRIDE;
// <API key> interface.
virtual void <API key>(
const tracked_objects::Location& from_here,
const std::string& message) OVERRIDE;
protected:
// For testing only.
<API key>();
// DataTypeController is RefCounted.
virtual ~<API key>();
// Start any dependent services that need to be running before we can
// associate models. The default implementation is a no-op.
// Return value:
// True - if models are ready and association can proceed.
// False - if models are not ready. Associate() should be called when the
// models are ready.
virtual bool StartModels();
// Perform any DataType controller specific state cleanup before stopping
// the datatype controller. The default implementation is a no-op.
virtual void StopModels();
// DataTypeController interface.
virtual void OnModelLoaded() OVERRIDE;
// Helper method for cleaning up state and invoking the start callback.
virtual void StartDone(StartResult result,
const syncer::SyncMergeResult& local_merge_result,
const syncer::SyncMergeResult& syncer_merge_result);
// Record association time.
virtual void <API key>(base::TimeDelta time);
// Record causes of start failure.
virtual void RecordStartFailure(StartResult result);
<API key>* const <API key>;
Profile* const profile_;
ProfileSyncService* const sync_service_;
State state_;
StartCallback start_callback_;
ModelLoadCallback <API key>;
// The sync datatype being controlled.
syncer::ModelType type_;
// Sync's interface to the datatype. All sync changes for |type_| are pushed
// through it to the datatype as well as vice versa.
// Lifetime: it gets created when Start()) is called, and a reference to it
// is passed to |local_service_| during Associate(). We release our reference
// when Stop() or StartFailed() is called, and |local_service_| releases its
// reference when local_service_->StopSyncing() is called or when it is
// destroyed.
// Note: we use refcounting here primarily so that we can keep a uniform
// SyncableService API, whether the datatype lives on the UI thread or not
// (a syncer::SyncableService takes ownership of its SyncChangeProcessor when
// <API key> is called). This will help us eventually merge the
// two datatype controller implementations (for ui and non-ui thread
// datatypes).
scoped_refptr<<API key>> <API key>;
// A weak pointer to the actual local syncable service, which performs all the
// real work. We do not own the object.
base::WeakPtr<syncer::SyncableService> local_service_;
private:
// Associate the sync model with the service's model, then start syncing.
virtual void Associate();
virtual void AbortModelLoad();
<API key>(<API key>);
};
} // namespace browser_sync
#endif // <API key> |
from collections import Counter
from count_combiner import CountCombiner
class ColorCount(CountCombiner):
"""
Perform dynamic programming with a special table which keeps track
of colors.
By keeping track of colors, ColorCount allows us to not have to
look at smaller sets of colors. This gets passed all the way back
to the DecompGenerator, so the decompositions with fewer than p
colors are never even created. After processing all decompositions
with one set of colors, we fill the counts found into a large table
called totals. If an entry of totals is already full, we don't
change it; if it's 0, we can put our new count in. When returning
the final count, we simply add all the entries in totals.
"""
def __init__(self, p, coloring, table_hints, td, execdata_file=None):
"""Create tables for keeping track of the separate counts"""
super(ColorCount, self).__init__(p, coloring, table_hints, td)
self.totals = Counter()
self.raw_count = Counter()
self.tree_depth = self.min_p
self.n_colors = None
from lib.pattern_counting.dp import ColorDPTable
self.table_type = ColorDPTable
def table(self, G):
"""Make an appropriate DPTable, given the hints specified"""
return self.table_type(G, reuse=self.table_hints['reuse'])
def before_color_set(self, colors):
"""Clear the raw_count for the new color set"""
self.n_colors = len(colors)
self.raw_count.clear()
def combine_count(self, count):
"""Add the count returned from dynamic programming on one TDD"""
if self.tree_depth <= self.n_colors <= self.min_p:
self.raw_count += count
def after_color_set(self, colors):
"""Combine the count for this color set into the total count"""
self.totals |= self.raw_count
def get_count(self):
"""Return the total number of occurrences of the pattern seen"""
return sum(self.totals.itervalues()) |
<?php
namespace ZendX\Application53\Application\Module;
/**
* {@inheritdoc}
*/
class Bootstrap extends \<API key>
{
public function getResourceLoader()
{
return null;
}
} |
package gov.hhs.fha.nhinc.auditrepository;
import gov.hhs.fha.nhinc.common.auditlog.<API key>;
import gov.hhs.fha.nhinc.common.auditlog.<API key>;
import gov.hhs.fha.nhinc.common.auditlog.<API key>;
import gov.hhs.fha.nhinc.common.auditlog.<API key>;
import gov.hhs.fha.nhinc.common.auditlog.<API key>;
import gov.hhs.fha.nhinc.common.auditlog.<API key>;
import gov.hhs.fha.nhinc.common.auditlog.<API key>;
import gov.hhs.fha.nhinc.common.auditlog.<API key>;
import gov.hhs.fha.nhinc.common.auditlog.<API key>;
import gov.hhs.fha.nhinc.common.auditlog.<API key>;
import gov.hhs.fha.nhinc.common.auditlog.LogEventRequestType;
import gov.hhs.fha.nhinc.common.auditlog.<API key>;
import gov.hhs.fha.nhinc.common.auditlog.<API key>;
import gov.hhs.fha.nhinc.common.hiemauditlog.<API key>;
import gov.hhs.fha.nhinc.common.hiemauditlog.<API key>;
import gov.hhs.fha.nhinc.common.hiemauditlog.<API key>;
import gov.hhs.fha.nhinc.common.hiemauditlog.<API key>;
import gov.hhs.fha.nhinc.common.hiemauditlog.<API key>;
import gov.hhs.fha.nhinc.common.hiemauditlog.<API key>;
import gov.hhs.fha.nhinc.common.hiemauditlog.<API key>;
import gov.hhs.fha.nhinc.common.hiemauditlog.<API key>;
import gov.hhs.fha.nhinc.common.hiemauditlog.<API key>;
import gov.hhs.fha.nhinc.common.hiemauditlog.<API key>;
import gov.hhs.fha.nhinc.common.hiemauditlog.<API key>;
import gov.hhs.fha.nhinc.common.hiemauditlog.<API key>;
import gov.hhs.fha.nhinc.common.hiemauditlog.<API key>;
import gov.hhs.fha.nhinc.common.hiemauditlog.<API key>;
import gov.hhs.fha.nhinc.common.hiemauditlog.<API key>;
import gov.hhs.fha.nhinc.common.hiemauditlog.<API key>;
import gov.hhs.fha.nhinc.common.hiemauditlog.<API key>;
import gov.hhs.fha.nhinc.common.hiemauditlog.<API key>;
import gov.hhs.fha.nhinc.common.hiemauditlog.<API key>;
import gov.hhs.fha.nhinc.common.nhinccommon.AssertionType;
import gov.hhs.fha.nhinc.common.nhinccommon.<API key>;
import gov.hhs.fha.nhinc.common.nhinccommonentity.<API key>;
import gov.hhs.fha.nhinc.common.<API key>.NotifyRequestType;
import gov.hhs.fha.nhinc.common.<API key>.<API key>;
import gov.hhs.fha.nhinc.common.<API key>.<API key>;
import gov.hhs.fha.nhinc.nhinclib.NhincConstants;
import gov.hhs.fha.nhinc.transform.audit.AdminDistTransforms;
import gov.hhs.fha.nhinc.transform.audit.<API key>;
import gov.hhs.fha.nhinc.transform.audit.<API key>;
import gov.hhs.fha.nhinc.transform.audit.<API key>;
import gov.hhs.fha.nhinc.transform.audit.NotifyTransforms;
import gov.hhs.fha.nhinc.transform.audit.<API key>;
import gov.hhs.fha.nhinc.transform.audit.SubscribeTransforms;
import gov.hhs.fha.nhinc.transform.audit.<API key>;
import gov.hhs.fha.nhinc.transform.audit.XDRTransforms;
import gov.hhs.healthit.nhin.<API key>;
import gov.hhs.healthit.nhin.<API key>;
import ihe.iti.xds_b._2007.<API key>;
import oasis.names.tc.ebxml_regrep.xsd.rs._3.<API key>;
import oasis.names.tc.emergency.edxl.de._1.EDXLDistribution;
import org.apache.log4j.Logger;
import org.hl7.v3.MCCIIN000002UV01;
import org.hl7.v3.PRPAIN201305UV02;
import org.hl7.v3.PRPAIN201306UV02;
import org.hl7.v3.<API key>;
import org.hl7.v3.<API key>;
import org.hl7.v3.<API key>;
/**
*
* @author Jon Hoppesch
*/
public class <API key> implements <API key> {
private static final Logger LOG = Logger.getLogger(<API key>.class);
private final <API key> pdAuditTransformer = new <API key>();
private final XDRTransforms xdrAuditTransformer = new XDRTransforms();
private final AdminDistTransforms adAuditTransformer = new AdminDistTransforms();
private final <API key> dqAuditTransforms = new <API key>();
private NotifyTransforms transformLib = new NotifyTransforms();
/**
* Constructor code for the <API key>. This instantiates the object.
*/
public <API key>() {
}
/**
* This method will create the generic Audit Log Message from a NHIN Patient Discovery Request.
*
* @param message The Patient Discovery Request message to be audit logged.
* @param assertion The Assertion Class containing SAML information
* @param direction The direction this message is going (Inbound or Outbound)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType <API key>(MCCIIN000002UV01 message, AssertionType assertion,
String direction, String _interface) {
LOG.debug("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = null;
auditMsg = pdAuditTransformer.<API key>(message, assertion, direction, _interface);
LOG.debug("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from a NHIN Patient Discovery Request.
*
* @param message The Patient Discovery Request message to be audit logged.
* @param assertion The Assertion Class containing SAML information
* @param direction The direction this message is going (Inbound or Outbound)
* @param _type The type of service (Synchronous or Deferred)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType <API key>(PRPAIN201305UV02 message, AssertionType assertion,
String direction, String _type) {
LOG.debug("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = null;
auditMsg = pdAuditTransformer.<API key>(message, assertion, direction,
NhincConstants.<API key>, _type, null);
LOG.debug("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from a NHIN Patient Discovery Response.
*
* @param message The Patient Discovery Response message to be audit logged.
* @param assertion The Assertion Class containing SAML information
* @param direction The direction this message is going (Inbound or Outbound)
* @param _type The type of service (Synchronous or Deferred)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType <API key>(PRPAIN201306UV02 message, AssertionType assertion,
String direction, String _type) {
LOG.debug("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = null;
auditMsg = pdAuditTransformer.<API key>(message, assertion, direction,
NhincConstants.<API key>, _type);
LOG.debug("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from an Adapter Patient Discovery Request.
*
* @param message The Patient Discovery Request message to be audit logged.
* @param assertion The Assertion Class containing SAML information
* @param direction The direction this message is going (Inbound or Outbound)
* @param _type The type of service (Synchronous or Deferred)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType <API key>(PRPAIN201305UV02 message, AssertionType assertion,
String direction, String _type) {
LOG.debug("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = null;
auditMsg = pdAuditTransformer.<API key>(message, assertion, direction,
NhincConstants.<API key>, _type, null);
LOG.debug("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from an Adapter Patient Discovery Response.
*
* @param message The Patient Discovery Response message to be audit logged.
* @param assertion The Assertion Class containing SAML information
* @param direction The direction this message is going (Inbound or Outbound)
* @param _type The type of service (Synchronous or Deferred)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType <API key>(PRPAIN201306UV02 message, AssertionType assertion,
String direction, String _type) {
LOG.debug("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = null;
auditMsg = pdAuditTransformer.<API key>(message, assertion, direction,
NhincConstants.<API key>, _type);
LOG.debug("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from an Entity Patient Discovery Request.
*
* @param message The Patient Discovery Request message to be audit logged.
* @param assertion The Assertion Class containing SAML information
* @param direction The direction this message is going (Inbound or Outbound)
* @param _type The type of service (Synchronous or Deferred)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType <API key>(<API key> message,
AssertionType assertion, String direction, String _type, String _process) {
LOG.debug("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = null;
auditMsg = pdAuditTransformer.<API key>(message, assertion, direction,
NhincConstants.<API key>, _type, _process);
LOG.debug("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from an Entity Patient Discovery Response.
*
* @param message The Patient Discovery Response message to be audit logged.
* @param assertion The Assertion Class containing SAML information
* @param direction The direction this message is going (Inbound or Outbound)
* @param _type The type of service (Synchronous or Deferred)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType <API key>(<API key> message,
AssertionType assertion, String direction, String _type) {
LOG.debug("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = null;
auditMsg = pdAuditTransformer.<API key>(message, assertion, direction,
NhincConstants.<API key>, _type);
LOG.debug("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from an Entity Patient Discovery Async Response.
*
* @param message The Patient Discovery Async Response message to be audit logged.
* @param assertion The Assertion Class containing SAML information
* @param direction The direction this message is going (Inbound or Outbound)
* @param _type The type of service (Synchronous or Deferred)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType <API key>(<API key> message,
AssertionType assertion, String direction, String _type) {
LOG.debug("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = null;
auditMsg = pdAuditTransformer.<API key>(message, assertion, direction,
NhincConstants.<API key>, _type);
LOG.debug("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from an Entity XDR Request.
*
* @param message The XDR Request message to be audit logged.
* @param assertion The Assertion Class containing SAML information
* @param direction The direction this message is going (Inbound or Outbound)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType logEntityXDRReq(
<API key> message, AssertionType assertion,
String direction) {
LOG.debug("Entering <API key>.logEntityXDRReq(...)");
LogEventRequestType auditMsg = xdrAuditTransformer.<API key>(message.<API key>(),
assertion, null, direction, NhincConstants.<API key>);
LOG.debug("Exiting <API key>.logEntityXDRReq(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log message from an Audit XDR Response.
*
* @param response The Registry Response message to be audit logged
* @param assertion The assertion of the message to be audit logged
* @param direction The direction this message is going (Inbound or Outbound)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType <API key>(<API key> response, AssertionType assertion,
String direction) {
LOG.debug("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = xdrAuditTransformer.<API key>(response, assertion, null,
direction, NhincConstants.<API key>, true);
LOG.debug("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log message from an Entity XDR Response.
*
* @param response The Registry Response message to be audit logged
* @param assertion The assertion of the message to be audit logged
* @param direction The direction this message is going (Inbound or Outbound)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType <API key>(<API key> response, AssertionType assertion,
String direction) {
LOG.debug("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = xdrAuditTransformer.<API key>(response, assertion, null,
direction, NhincConstants.<API key>, true);
LOG.debug("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from an Entity XDR Request Response.
*
* @param response The XDR Request Response message to be audit logged.
* @param assertion The Assertion Class containing SAML information
* @param direction The direction this message is going (Inbound or Outbound)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType <API key>(
gov.hhs.fha.nhinc.common.nhinccommonentity.<API key> response,
AssertionType assertion, String direction) {
LOG.debug("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = xdrAuditTransformer.<API key>(response, assertion, null,
direction, NhincConstants.<API key>);
LOG.debug("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from a document query request.
*
* @param message The Document Query Request message to be audit logged.
* @param direction The direction this message is going (Inbound or Outbound)
* @param _interface The interface this message is being received/sent on (Entity, Adapter, or Nhin)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType logAdhocQuery(<API key> message, String direction, String _interface) {
LOG.debug("Entering <API key>.logAdhocQuery(...)");
return logAdhocQuery(message, direction, _interface, null);
}
/**
* This method will create the generic Audit Log Message from a document query request.
*
* @param message The Document Query Request message to be audit logged.
* @param direction The direction this message is going (Inbound or Outbound)
* @param _interface The interface this message is being received/sent on (Entity, Adapter, or Nhin)
* @param responseCommunityId
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType logAdhocQuery(<API key> message, String direction, String _interface,
String responseCommunityId) {
LOG.debug("Entering <API key>.logAdhocQuery(...)");
LogEventRequestType auditMsg = null;
<API key> logReqMsg = new <API key>();
logReqMsg.setDirection(direction);
logReqMsg.setInterface(_interface);
logReqMsg.setMessage(message);
auditMsg = dqAuditTransforms.<API key>(logReqMsg, responseCommunityId);
LOG.debug("Exiting <API key>.logAdhocQuery(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from a document query response.
*
* @param message The Document Query Response message to be audit logged.
* @param direction The direction this message is going (Inbound or Outbound)
* @param _interface The interface this message is being received/sent on (Entity, Adapter, or Nhin)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType logAdhocQueryResult(<API key> message, String direction,
String _interface) {
return this.logAdhocQueryResult(message, direction, _interface, null);
}
/**
* This method will create the generic Audit Log Message from a document query response.
*
* @param message The Document Query Response message to be audit logged.
* @param direction The direction this message is going (Inbound or Outbound)
* @param _interface The interface this message is being received/sent on (Entity, Adapter, or Nhin)
* @param requestCommunityID
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType logAdhocQueryResult(<API key> message, String direction,
String _interface, String requestCommunityID) {
LOG.debug("Entering <API key>.logAdhocQueryResult(...)");
LogEventRequestType auditMsg = null;
<API key> logReqMsg = new <API key>();
logReqMsg.setDirection(direction);
logReqMsg.setInterface(_interface);
logReqMsg.setMessage(message);
auditMsg = dqAuditTransforms.<API key>(logReqMsg, requestCommunityID);
LOG.debug("Exiting <API key>.logAdhocQueryResult(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from a document query deferred acknowledgment.
*
* @param acknowledgement The DocQuery Acknowledgment
* @param assertion The Assertion Class containing SAML information
* @param direction The direction this message is going (Inbound or Outbound)
* @param _interface The interface this message is being received/sent on (Entity, Adapter, or Nhin)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType <API key>(<API key> acknowledgement,
AssertionType assertion, String direction, String _interface) {
LOG.debug("Entering <API key>.logAdhocQueryResult(...)");
return <API key>(acknowledgement, assertion, direction, _interface, null);
}
/**
* This method will create the generic Audit Log Message from a document query deferred acknowledgment.
*
* @param acknowledgement The DocQuery Acknowledgment
* @param assertion The Assertion Class containing SAML information
* @param direction The direction this message is going (Inbound or Outbound)
* @param _interface The interface this message is being received/sent on (Entity, Adapter, or Nhin)
* @param requestCommunityID The Request Community ID
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType <API key>(<API key> acknowledgement,
AssertionType assertion, String direction, String _interface, String requestCommunityID) {
LOG.debug("Entering <API key>.logAdhocQueryResult(...)");
LogEventRequestType auditMsg = null;
auditMsg = dqAuditTransforms.<API key>(acknowledgement, assertion, direction,
_interface, requestCommunityID);
LOG.debug("Exiting <API key>.logAdhocQueryResult(...)");
return auditMsg;
}
/* (non-Javadoc)
* @see gov.hhs.fha.nhinc.auditrepository.<API key>#logDocRetrieve(gov.hhs.fha.nhinc.common.auditlog.<API key>, java.lang.String, java.lang.String)
*/
@Override
public LogEventRequestType logDocRetrieve(<API key> message, String direction, String _interface) {
return logDocRetrieve(message, direction, _interface, null);
}
/* (non-Javadoc)
* @see gov.hhs.fha.nhinc.auditrepository.<API key>#logDocRetrieve(gov.hhs.fha.nhinc.common.auditlog.<API key>, java.lang.String, java.lang.String, java.lang.String)
*/
@Override
public LogEventRequestType logDocRetrieve(<API key> message, String direction, String _interface,
String responseCommunityID) {
LOG.debug("Entering <API key>.logDocRetrieve(...)");
LogEventRequestType auditMsg = null;
<API key> logReqMsg = new <API key>();
logReqMsg.setDirection(direction);
logReqMsg.setInterface(_interface);
logReqMsg.setMessage(message);
auditMsg = <API key>.<API key>(logReqMsg, responseCommunityID);
LOG.debug("Exiting <API key>.logDocRetrieve(...)");
return auditMsg;
}
/* (non-Javadoc)
* @see gov.hhs.fha.nhinc.auditrepository.<API key>#<API key>(gov.hhs.fha.nhinc.common.auditlog.<API key>, java.lang.String, java.lang.String)
*/
@Override
public LogEventRequestType <API key>(<API key> message, String direction,
String _interface) {
return <API key>(message, direction, _interface, null);
}
/* (non-Javadoc)
* @see gov.hhs.fha.nhinc.auditrepository.<API key>#<API key>(gov.hhs.fha.nhinc.common.auditlog.<API key>, java.lang.String, java.lang.String, java.lang.String)
*/
@Override
public LogEventRequestType <API key>(<API key> message, String direction,
String _interface, String requestCommunityID) {
LOG.debug("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = null;
<API key> logReqMsg = new <API key>();
logReqMsg.setDirection(direction);
logReqMsg.setInterface(_interface);
logReqMsg.setMessage(message);
auditMsg = <API key>.<API key>(logReqMsg, requestCommunityID);
LOG.debug("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from an audit query request.
*
* @param message The Audit Query Request message to be audit logged.
* @param direction The direction this message is going (Inbound or Outbound)
* @param _interface The interface this message is being received/sent on (Entity, Adapter, or Nhin)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType logFindAuditEvents(<API key> message, String direction,
String _interface) {
LOG.debug("Entering <API key>.logFindAuditEvents(...)");
LogEventRequestType auditMsg = null;
<API key> logReqMsg = new <API key>();
logReqMsg.setMessage(message);
logReqMsg.setDirection(direction);
logReqMsg.setInterface(_interface);
auditMsg = <API key>.<API key>(logReqMsg);
LOG.debug("Exiting <API key>.logFindAuditEvents(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from an audit query response.
*
* @param message The Audit Query Response message to be audit logged.
* @param direction The direction this message is going (Inbound or Outbound)
* @param _interface The interface this message is being received/sent on (Entity, Adapter, or Nhin)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType <API key>(<API key> message, String direction,
String _interface) {
LOG.debug("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = null;
<API key> logReqMsg = new <API key>();
logReqMsg.setDirection(direction);
logReqMsg.setInterface(_interface);
logReqMsg.setMessage(message);
LOG.warn("<API key> method is not implemented");
LOG.debug("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from a Nhin Subscribe request.
*
* @param message The Nhin Subscribe Request message to be audit logged.
* @param direction The direction this message is going (Inbound or Outbound)
* @param _interface The interface this message is being received/sent on (Entity, Adapter, or Nhin)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType <API key>(<API key> message, String direction, String _interface) {
LOG.debug("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = null;
SubscribeTransforms transformLib = new SubscribeTransforms();
<API key> logReqMsg = new <API key>();
logReqMsg.setMessage(message);
logReqMsg.setDirection(direction);
logReqMsg.setInterface(_interface);
auditMsg = transformLib.<API key>(logReqMsg);
LOG.debug("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from a Nhin notify request.
*
* @param message The Nhin Notify Request message to be audit logged.
* @param direction The direction this message is going (Inbound or Outbound)
* @param _interface The interface this message is being received/sent on (Entity, Adapter, or Nhin)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType <API key>(NotifyRequestType message, String direction, String _interface) {
LOG.debug("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = null;
<API key> logReqMsg = new <API key>();
logReqMsg.setMessage(message);
logReqMsg.setDirection(direction);
logReqMsg.setInterface(_interface);
auditMsg = transformLib.<API key>(logReqMsg);
LOG.debug("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from a Nhin unsubscribe request.
*
* @param message The Nhin Unsubscribe Request message to be audit logged.
* @param direction The direction this message is going (Inbound or Outbound)
* @param _interface The interface this message is being received/sent on (Entity, Adapter, or Nhin)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType <API key>(<API key> message, String direction,
String _interface) {
LOG.debug("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = null;
<API key> transformLib = new <API key>();
<API key> logReqMsg = new <API key>();
logReqMsg.setMessage(message);
logReqMsg.setDirection(direction);
logReqMsg.setInterface(_interface);
auditMsg = transformLib.<API key>(logReqMsg);
LOG.debug("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from an unsubscribe response.
*
* @param message The Unsubscribe Response message to be audit logged.
* @param direction The direction this message is going (Inbound or Outbound)
* @param _interface The interface this message is being received/sent on (Entity, Adapter, or Nhin)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType <API key>(<API key> message, String direction,
String _interface) {
LOG.debug("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = null;
<API key> logReqMsg = new <API key>();
logReqMsg.setDirection(direction);
logReqMsg.setInterface(_interface);
logReqMsg.setMessage(message);
<API key> transformLib = new <API key>();
auditMsg = transformLib.<API key>(logReqMsg);
LOG.debug("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from a subscribe response.
*
* @param message The Subscribe Response message to be audit logged.
* @param direction The direction this message is going (Inbound or Outbound)
* @param _interface The interface this message is being received/sent on (Entity, Adapter, or Nhin)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType <API key>(<API key> message, String direction,
String _interface) {
LOG.debug("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = null;
<API key> logReqMsg = new <API key>();
logReqMsg.setDirection(direction);
logReqMsg.setInterface(_interface);
logReqMsg.setMessage(message);
SubscribeTransforms transformLib = new SubscribeTransforms();
auditMsg = transformLib.<API key>(logReqMsg);
LOG.debug("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from an entity document subscribe request.
*
* @param message The Entity Document Subscribe Request message to be audit logged.
* @param direction The direction this message is going (Inbound or Outbound)
* @param _interface The interface this message is being received/sent on (Entity, Adapter, or Nhin)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType <API key>(<API key> message,
String direction, String _interface) {
LOG.debug("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = null;
<API key> logReqMsg = new <API key>();
logReqMsg.setDirection(direction);
logReqMsg.setInterface(_interface);
logReqMsg.setMessage(message);
LOG.warn("<API key> method is not implemented");
LOG.debug("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from an entity CDC subscribe request.
*
* @param message The Entity CDC Subscribe Request message to be audit logged.
* @param direction The direction this message is going (Inbound or Outbound)
* @param _interface The interface this message is being received/sent on (Entity, Adapter, or Nhin)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType <API key>(<API key> message,
String direction, String _interface) {
LOG.debug("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = null;
<API key> logReqMsg = new <API key>();
logReqMsg.setDirection(direction);
logReqMsg.setInterface(_interface);
logReqMsg.setMessage(message);
LOG.warn("<API key> method is not implemented");
LOG.debug("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from an entity document notify request.
*
* @param message The Entity Document Notify Request message to be audit logged.
* @param direction The direction this message is going (Inbound or Outbound)
* @param _interface The interface this message is being received/sent on (Entity, Adapter, or Nhin)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType <API key>(<API key> message,
String direction, String _interface) {
LOG.debug("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = null;
<API key> logReqMsg = new <API key>();
logReqMsg.setDirection(direction);
logReqMsg.setInterface(_interface);
logReqMsg.setMessage(message);
LOG.warn("<API key> method is not implemented");
LOG.debug("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from an entity CDC notify request.
*
* @param message The Entity CDC Notify Request message to be audit logged.
* @param direction The direction this message is going (Inbound or Outbound)
* @param _interface The interface this message is being received/sent on (Entity, Adapter, or Nhin)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType <API key>(<API key> message, String direction,
String _interface) {
LOG.debug("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = null;
<API key> logReqMsg = new <API key>();
logReqMsg.setDirection(direction);
logReqMsg.setInterface(_interface);
logReqMsg.setMessage(message);
LOG.warn("<API key> method is not implemented");
LOG.debug("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from an entity notify response.
*
* @param message The Entity Notify Response message to be audit logged.
* @param direction The direction this message is going (Inbound or Outbound)
* @param _interface The interface this message is being received/sent on (Entity, Adapter, or Nhin)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType <API key>(<API key> message, String direction,
String _interface) {
LOG.debug("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = null;
<API key> logReqMsg = new <API key>();
logReqMsg.setDirection(direction);
logReqMsg.setInterface(_interface);
logReqMsg.setMessage(message);
LOG.warn("<API key> method is not implemented");
LOG.debug("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* Creates a generic audit log for an XDR Request at the NHIN interface.
*
* @param message The generic XDR Request message
* @param assertion The assertion to be audited
* @param direction The direction this message is going (Inbound or Outbound)
* @return
*/
public LogEventRequestType logXDRReq(<API key> message, AssertionType assertion,
<API key> target, String direction) {
LOG.debug("Entering <API key>.logNhinXDRReq(...)");
if (message == null) {
LOG.error("Message is null");
return null;
}
XDRTransforms auditTransformer = new XDRTransforms();
LogEventRequestType auditMsg = auditTransformer.<API key>(message, assertion, target, direction,
NhincConstants.<API key>);
LOG.debug("Exiting <API key>.logNhinXDRReq(...)");
return auditMsg;
}
/**
* Create a generic audit log for an XDR Request at the Adapter interface.
*
* @param message The generic XDR Request message
* @param assertion The assertion to be audited
* @param direction The direction this message is going (Inbound or Outbound)
* @return
*/
public LogEventRequestType logAdapterXDRReq(<API key> message, AssertionType assertion,
String direction) {
LOG.debug("Entering <API key>.logAdapterXDRReq(...)");
LogEventRequestType auditMsg = null;
if (message == null) {
LOG.error("Message is null");
return null;
}
XDRTransforms auditTransformer = new XDRTransforms();
auditMsg = auditTransformer.<API key>(message, assertion, null, direction,
NhincConstants.<API key>);
LOG.debug("Exiting <API key>.logAdapterXDRReq(...)");
return auditMsg;
}
/**
* Create a generic audit log for a secured XDR Request.
*
* @param message The generic secured XDR Request message
* @param assertion The assertion to be audited
* @param direction The direction this message is going (Inbound or Outbound)
* @return
*/
public LogEventRequestType logXDRReq(
gov.hhs.fha.nhinc.common.nhinccommonproxy.<API key> message,
AssertionType assertion, <API key> target, String direction) {
LOG.debug("Entering <API key>.logXDRReq(...)");
XDRTransforms auditTransformer = new XDRTransforms();
LogEventRequestType auditMsg = auditTransformer.<API key>(message, assertion, target,
direction, NhincConstants.<API key>);
LOG.debug("Exiting <API key>.logNhinXDRReq(...)");
return auditMsg;
}
/**
* Create an audit log for an XDR Response at the NHIN interface.
*
* @param message The generic XDR Response message
* @param assertion The assertion to be audited
* @param direction The direction this message is going (Inbound or Outbound)
* @return
*/
public LogEventRequestType logNhinXDRResponse(<API key> message, AssertionType assertion,
<API key> target, String direction, boolean isRequesting) {
LOG.debug("Entering <API key>.logNhinXDRResponse(...)");
LogEventRequestType auditMsg = null;
XDRTransforms auditTransformer = new XDRTransforms();
auditMsg = auditTransformer.<API key>(message, assertion, target, direction,
NhincConstants.<API key>, isRequesting);
LOG.debug("Exiting <API key>.logNhinXDRResponse(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from an entity unsubscribe request.
*
* @param message The Entity Unsubscribe Request message to be audit logged.
* @param direction The direction this message is going (Inbound or Outbound)
* @param _interface The interface this message is being received/sent on (Entity, Adapter, or Nhin)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType <API key>(<API key> message,
String direction, String _interface) {
LOG.debug("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = null;
<API key> logReqMsg = new <API key>();
logReqMsg.setDirection(direction);
logReqMsg.setInterface(_interface);
logReqMsg.setMessage(message);
LOG.warn("<API key> method is not implemented");
LOG.debug("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* Log an XDR Acknowledgement at the Nhin interface.
* @param acknowledgement The XDR Acknowledgement to be audited
* @param assertion The assertion to be audited
* @param direction The direction this message is going (Inbound or Outbound)
* @param action The type of the current message (Request or Response)
* @return
*/
public LogEventRequestType logAcknowledgement(<API key> acknowledgement, AssertionType assertion,
<API key> target, String direction, String action) {
LOG.debug("Entering <API key>.logAcknowledgement(...)");
LogEventRequestType auditMsg = xdrAuditTransformer.<API key>(acknowledgement,
assertion, target, direction, NhincConstants.<API key>, action);
LOG.debug("Exiting <API key>.logAcknowledgement(...)");
return auditMsg;
}
/**
* Log an XDR Acknowledgement at the Adapter interface.
* @param acknowledgement The XDR Acknowledgement to be audited
* @param assertion The assertion to be audited
* @param direction The direction this message is going (Inbound or Outbound)
* @param action The type of the current message (Request or Response)
* @return
*/
public LogEventRequestType <API key>(<API key> acknowledgement, AssertionType assertion,
String direction, String action) {
LOG.debug("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = xdrAuditTransformer.<API key>(acknowledgement,
assertion, null, direction, NhincConstants.<API key>, action);
LOG.debug("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* Log an XDR Acknowledgement at the Entity interface.
* @param acknowledgement The XDR Acknowledgement to be audited
* @param assertion The assertion to be audited
* @param direction The direction this message is going (Inbound or Outbound)
* @param action The type of the current message (Request or Response)
* @return
*/
public LogEventRequestType <API key>(<API key> acknowledgement,
AssertionType assertion, String direction, String action) {
LOG.debug("Entering <API key>.logAcknowledgement(...)");
LogEventRequestType auditMsg = xdrAuditTransformer.<API key>(acknowledgement,
assertion, null, direction, NhincConstants.<API key>, action);
LOG.debug("Exiting <API key>.logAcknowledgement(...)");
return auditMsg;
}
/**
* This method will create the generic Audit Log Message from an Entity Patient Discovery Response.
*
* @param message The Patient Discovery Response message to be audit logged.
* @param assertion The Assertion Class containing SAML information
* @param direction The direction this message is going (Inbound or Outbound)
* @return A generic audit log message that can be passed to the Audit Repository
*/
public LogEventRequestType logEntityAdminDist(
gov.hhs.fha.nhinc.common.nhinccommonentity.<API key> message,
AssertionType assertion, String direction) {
LOG.trace("Entering <API key>.<API key>(...)");
LogEventRequestType auditMsg = null;
try{
EDXLDistribution body = message.getEDXLDistribution();
auditMsg = adAuditTransformer.<API key>(body, assertion, direction,
NhincConstants.<API key>);
}catch (<API key> ex){
LOG.error("The Incoming Send Alert message was Null", ex);
}
LOG.trace("Exiting <API key>.<API key>(...)");
return auditMsg;
}
/**
* Create a generic Audit Log for an Admin Distribution message.
* @param message The Admin Distribution message to be audited
* @param assertion The assertion to be audited
* @param target
* @param direction The direction this message is going (Inbound or Outbound)
* @param _interface The interface this message is sent from(NHIN, Adapter, or Entity)
* @return
*/
public LogEventRequestType logNhincAdminDist(EDXLDistribution message, AssertionType assertion,
<API key> target, String direction, String _interface) {
return adAuditTransformer.<API key>(message, assertion, target, direction, _interface);
}
/**
* Create a generic Audit Log for an Admin Distribution message.
* @param message The Admin Distribution message to be audited
* @param assertion The assertion to be audited
* @param direction The direction this message is going (Inbound or Outbound)
* @param _interface The interface this message is sent from(NHIN, Adapter, or Entity)
* @return
*/
public LogEventRequestType logNhincAdminDist(EDXLDistribution message, AssertionType assertion, String direction,
String _interface) {
return adAuditTransformer.<API key>(message, assertion, direction, _interface);
}
} |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/appengine/v1/appengine.proto
package com.google.appengine.v1;
/**
* <pre>
* Request message for `Versions.CreateVersion`.
* </pre>
*
* Protobuf type {@code google.appengine.v1.<API key>}
*/
public final class <API key> extends
com.google.protobuf.GeneratedMessageV3 implements
// @@<API key>(message_implements:google.appengine.v1.<API key>)
<API key> {
private static final long serialVersionUID = 0L;
// Use <API key>.newBuilder() to construct.
private <API key>(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private <API key>() {
parent_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private <API key>(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.<API key> extensionRegistry)
throws com.google.protobuf.<API key> {
this();
if (extensionRegistry == null) {
throw new java.lang.<API key>();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!<API key>(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.<API key>();
parent_ = s;
break;
}
case 18: {
com.google.appengine.v1.Version.Builder subBuilder = null;
if (version_ != null) {
subBuilder = version_.toBuilder();
}
version_ = input.readMessage(com.google.appengine.v1.Version.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(version_);
version_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.<API key> e) {
throw e.<API key>(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.<API key>(
e).<API key>(this);
} finally {
this.unknownFields = unknownFields.build();
<API key>();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.v1.AppengineProto.<API key>;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
<API key>() {
return com.google.appengine.v1.AppengineProto.<API key>
.<API key>(
com.google.appengine.v1.<API key>.class, com.google.appengine.v1.<API key>.Builder.class);
}
public static final int PARENT_FIELD_NUMBER = 1;
private volatile java.lang.Object parent_;
/**
* <pre>
* Name of the parent resource to create this version under. Example:
* `apps/myapp/services/default`.
* </pre>
*
* <code>string parent = 1;</code>
*/
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
parent_ = s;
return s;
}
}
/**
* <pre>
* Name of the parent resource to create this version under. Example:
* `apps/myapp/services/default`.
* </pre>
*
* <code>string parent = 1;</code>
*/
public com.google.protobuf.ByteString
getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
parent_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int <API key> = 2;
private com.google.appengine.v1.Version version_;
/**
* <pre>
* Application deployment configuration.
* </pre>
*
* <code>.google.appengine.v1.Version version = 2;</code>
*/
public boolean hasVersion() {
return version_ != null;
}
/**
* <pre>
* Application deployment configuration.
* </pre>
*
* <code>.google.appengine.v1.Version version = 2;</code>
*/
public com.google.appengine.v1.Version getVersion() {
return version_ == null ? com.google.appengine.v1.Version.getDefaultInstance() : version_;
}
/**
* <pre>
* Application deployment configuration.
* </pre>
*
* <code>.google.appengine.v1.Version version = 2;</code>
*/
public com.google.appengine.v1.VersionOrBuilder getVersionOrBuilder() {
return getVersion();
}
private byte <API key> = -1;
public final boolean isInitialized() {
byte isInitialized = <API key>;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
<API key> = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getParentBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
}
if (version_ != null) {
output.writeMessage(2, getVersion());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getParentBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
}
if (version_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getVersion());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.v1.<API key>)) {
return super.equals(obj);
}
com.google.appengine.v1.<API key> other = (com.google.appengine.v1.<API key>) obj;
boolean result = true;
result = result && getParent()
.equals(other.getParent());
result = result && (hasVersion() == other.hasVersion());
if (hasVersion()) {
result = result && getVersion()
.equals(other.getVersion());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PARENT_FIELD_NUMBER;
hash = (53 * hash) + getParent().hashCode();
if (hasVersion()) {
hash = (37 * hash) + <API key>;
hash = (53 * hash) + getVersion().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.v1.<API key> parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.<API key> {
return PARSER.parseFrom(data);
}
public static com.google.appengine.v1.<API key> parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.<API key> extensionRegistry)
throws com.google.protobuf.<API key> {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.v1.<API key> parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.<API key> {
return PARSER.parseFrom(data);
}
public static com.google.appengine.v1.<API key> parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.<API key> extensionRegistry)
throws com.google.protobuf.<API key> {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.v1.<API key> parseFrom(byte[] data)
throws com.google.protobuf.<API key> {
return PARSER.parseFrom(data);
}
public static com.google.appengine.v1.<API key> parseFrom(
byte[] data,
com.google.protobuf.<API key> extensionRegistry)
throws com.google.protobuf.<API key> {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.v1.<API key> parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.<API key>(PARSER, input);
}
public static com.google.appengine.v1.<API key> parseFrom(
java.io.InputStream input,
com.google.protobuf.<API key> extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.<API key>(PARSER, input, extensionRegistry);
}
public static com.google.appengine.v1.<API key> parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.<API key>(PARSER, input);
}
public static com.google.appengine.v1.<API key> parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.<API key> extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.<API key>(PARSER, input, extensionRegistry);
}
public static com.google.appengine.v1.<API key> parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.<API key>(PARSER, input);
}
public static com.google.appengine.v1.<API key> parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.<API key> extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.<API key>(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.v1.<API key> prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* Request message for `Versions.CreateVersion`.
* </pre>
*
* Protobuf type {@code google.appengine.v1.<API key>}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@<API key>(builder_implements:google.appengine.v1.<API key>)
com.google.appengine.v1.<API key> {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.v1.AppengineProto.<API key>;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
<API key>() {
return com.google.appengine.v1.AppengineProto.<API key>
.<API key>(
com.google.appengine.v1.<API key>.class, com.google.appengine.v1.<API key>.Builder.class);
}
// Construct using com.google.appengine.v1.<API key>.newBuilder()
private Builder() {
<API key>();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
<API key>();
}
private void <API key>() {
if (com.google.protobuf.GeneratedMessageV3
.<API key>) {
}
}
public Builder clear() {
super.clear();
parent_ = "";
if (versionBuilder_ == null) {
version_ = null;
} else {
version_ = null;
versionBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
<API key>() {
return com.google.appengine.v1.AppengineProto.<API key>;
}
public com.google.appengine.v1.<API key> <API key>() {
return com.google.appengine.v1.<API key>.getDefaultInstance();
}
public com.google.appengine.v1.<API key> build() {
com.google.appengine.v1.<API key> result = buildPartial();
if (!result.isInitialized()) {
throw <API key>(result);
}
return result;
}
public com.google.appengine.v1.<API key> buildPartial() {
com.google.appengine.v1.<API key> result = new com.google.appengine.v1.<API key>(this);
result.parent_ = parent_;
if (versionBuilder_ == null) {
result.version_ = version_;
} else {
result.version_ = versionBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.v1.<API key>) {
return mergeFrom((com.google.appengine.v1.<API key>)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.v1.<API key> other) {
if (other == com.google.appengine.v1.<API key>.getDefaultInstance()) return this;
if (!other.getParent().isEmpty()) {
parent_ = other.parent_;
onChanged();
}
if (other.hasVersion()) {
mergeVersion(other.getVersion());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.<API key> extensionRegistry)
throws java.io.IOException {
com.google.appengine.v1.<API key> parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.<API key> e) {
parsedMessage = (com.google.appengine.v1.<API key>) e.<API key>();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object parent_ = "";
/**
* <pre>
* Name of the parent resource to create this version under. Example:
* `apps/myapp/services/default`.
* </pre>
*
* <code>string parent = 1;</code>
*/
public java.lang.String getParent() {
java.lang.Object ref = parent_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
parent_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <pre>
* Name of the parent resource to create this version under. Example:
* `apps/myapp/services/default`.
* </pre>
*
* <code>string parent = 1;</code>
*/
public com.google.protobuf.ByteString
getParentBytes() {
java.lang.Object ref = parent_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
parent_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <pre>
* Name of the parent resource to create this version under. Example:
* `apps/myapp/services/default`.
* </pre>
*
* <code>string parent = 1;</code>
*/
public Builder setParent(
java.lang.String value) {
if (value == null) {
throw new <API key>();
}
parent_ = value;
onChanged();
return this;
}
/**
* <pre>
* Name of the parent resource to create this version under. Example:
* `apps/myapp/services/default`.
* </pre>
*
* <code>string parent = 1;</code>
*/
public Builder clearParent() {
parent_ = getDefaultInstance().getParent();
onChanged();
return this;
}
/**
* <pre>
* Name of the parent resource to create this version under. Example:
* `apps/myapp/services/default`.
* </pre>
*
* <code>string parent = 1;</code>
*/
public Builder setParentBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new <API key>();
}
<API key>(value);
parent_ = value;
onChanged();
return this;
}
private com.google.appengine.v1.Version version_ = null;
private com.google.protobuf.<API key><
com.google.appengine.v1.Version, com.google.appengine.v1.Version.Builder, com.google.appengine.v1.VersionOrBuilder> versionBuilder_;
/**
* <pre>
* Application deployment configuration.
* </pre>
*
* <code>.google.appengine.v1.Version version = 2;</code>
*/
public boolean hasVersion() {
return versionBuilder_ != null || version_ != null;
}
/**
* <pre>
* Application deployment configuration.
* </pre>
*
* <code>.google.appengine.v1.Version version = 2;</code>
*/
public com.google.appengine.v1.Version getVersion() {
if (versionBuilder_ == null) {
return version_ == null ? com.google.appengine.v1.Version.getDefaultInstance() : version_;
} else {
return versionBuilder_.getMessage();
}
}
/**
* <pre>
* Application deployment configuration.
* </pre>
*
* <code>.google.appengine.v1.Version version = 2;</code>
*/
public Builder setVersion(com.google.appengine.v1.Version value) {
if (versionBuilder_ == null) {
if (value == null) {
throw new <API key>();
}
version_ = value;
onChanged();
} else {
versionBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
* Application deployment configuration.
* </pre>
*
* <code>.google.appengine.v1.Version version = 2;</code>
*/
public Builder setVersion(
com.google.appengine.v1.Version.Builder builderForValue) {
if (versionBuilder_ == null) {
version_ = builderForValue.build();
onChanged();
} else {
versionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* Application deployment configuration.
* </pre>
*
* <code>.google.appengine.v1.Version version = 2;</code>
*/
public Builder mergeVersion(com.google.appengine.v1.Version value) {
if (versionBuilder_ == null) {
if (version_ != null) {
version_ =
com.google.appengine.v1.Version.newBuilder(version_).mergeFrom(value).buildPartial();
} else {
version_ = value;
}
onChanged();
} else {
versionBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
* Application deployment configuration.
* </pre>
*
* <code>.google.appengine.v1.Version version = 2;</code>
*/
public Builder clearVersion() {
if (versionBuilder_ == null) {
version_ = null;
onChanged();
} else {
version_ = null;
versionBuilder_ = null;
}
return this;
}
/**
* <pre>
* Application deployment configuration.
* </pre>
*
* <code>.google.appengine.v1.Version version = 2;</code>
*/
public com.google.appengine.v1.Version.Builder getVersionBuilder() {
onChanged();
return <API key>().getBuilder();
}
/**
* <pre>
* Application deployment configuration.
* </pre>
*
* <code>.google.appengine.v1.Version version = 2;</code>
*/
public com.google.appengine.v1.VersionOrBuilder getVersionOrBuilder() {
if (versionBuilder_ != null) {
return versionBuilder_.getMessageOrBuilder();
} else {
return version_ == null ?
com.google.appengine.v1.Version.getDefaultInstance() : version_;
}
}
/**
* <pre>
* Application deployment configuration.
* </pre>
*
* <code>.google.appengine.v1.Version version = 2;</code>
*/
private com.google.protobuf.<API key><
com.google.appengine.v1.Version, com.google.appengine.v1.Version.Builder, com.google.appengine.v1.VersionOrBuilder>
<API key>() {
if (versionBuilder_ == null) {
versionBuilder_ = new com.google.protobuf.<API key><
com.google.appengine.v1.Version, com.google.appengine.v1.Version.Builder, com.google.appengine.v1.VersionOrBuilder>(
getVersion(),
<API key>(),
isClean());
version_ = null;
}
return versionBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.<API key>(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@<API key>(builder_scope:google.appengine.v1.<API key>)
}
// @@<API key>(class_scope:google.appengine.v1.<API key>)
private static final com.google.appengine.v1.<API key> DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.v1.<API key>();
}
public static com.google.appengine.v1.<API key> getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<<API key>>
PARSER = new com.google.protobuf.AbstractParser<<API key>>() {
public <API key> parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.<API key> extensionRegistry)
throws com.google.protobuf.<API key> {
return new <API key>(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<<API key>> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<<API key>> getParserForType() {
return PARSER;
}
public com.google.appengine.v1.<API key> <API key>() {
return DEFAULT_INSTANCE;
}
} |
<header>Grups PostgreSQL</header>
Aquesta pàgina permet crear grups d'usuaris per a un ús posterior, en
concedir permisos. Cada grup té un nom, un ID de grup, (normalment
assignat per Webmin), i una llista de membres. <p>
<hr> |
// Use of this source code is governed by a BSD-style
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
package net
import (
"os"
"runtime"
"sync"
"syscall"
)
// conf represents a system's network configuration.
type conf struct {
// forceCgoLookupHost forces CGO to always be used, if available.
forceCgoLookupHost bool
netGo bool // go DNS resolution forced
netCgo bool // cgo DNS resolution forced
// machine has an /etc/mdns.allow file
hasMDNSAllow bool
goos string // the runtime.GOOS, to ease testing
dnsDebugLevel int
nss *nssConf
resolv *dnsConfig
}
var (
confOnce sync.Once // guards init of confVal via initConfVal
confVal = &conf{goos: runtime.GOOS}
)
// systemConf returns the machine's network configuration.
func systemConf() *conf {
confOnce.Do(initConfVal)
return confVal
}
func initConfVal() {
dnsMode, debugLevel := goDebugNetDNS()
confVal.dnsDebugLevel = debugLevel
confVal.netGo = netGo || dnsMode == "go"
confVal.netCgo = netCgo || dnsMode == "cgo"
if confVal.dnsDebugLevel > 0 {
defer func() {
switch {
case confVal.netGo:
if netGo {
println("go package net: built with netgo build tag; using Go's DNS resolver")
} else {
println("go package net: GODEBUG setting forcing use of Go's resolver")
}
case confVal.forceCgoLookupHost:
println("go package net: using cgo DNS resolver")
default:
println("go package net: dynamic selection of DNS resolver")
}
}()
}
// Darwin pops up annoying dialog boxes if programs try to do
// their own DNS requests. So always use cgo instead, which
// avoids that.
if runtime.GOOS == "darwin" {
confVal.forceCgoLookupHost = true
return
}
// If any <API key> resolver options are specified,
// force cgo. Note that LOCALDOMAIN can change behavior merely
// by being specified with the empty string.
_, localDomainDefined := syscall.Getenv("LOCALDOMAIN")
if os.Getenv("RES_OPTIONS") != "" ||
os.Getenv("HOSTALIASES") != "" ||
confVal.netCgo ||
localDomainDefined {
confVal.forceCgoLookupHost = true
return
}
// OpenBSD apparently lets you override the location of resolv.conf
// with ASR_CONFIG. If we notice that, defer to libc.
if runtime.GOOS == "openbsd" && os.Getenv("ASR_CONFIG") != "" {
confVal.forceCgoLookupHost = true
return
}
if runtime.GOOS != "openbsd" {
confVal.nss = parseNSSConfFile("/etc/nsswitch.conf")
}
confVal.resolv = dnsReadConfig("/etc/resolv.conf")
if confVal.resolv.err != nil && !os.IsNotExist(confVal.resolv.err) &&
!os.IsPermission(confVal.resolv.err) {
// If we can't read the resolv.conf file, assume it
// had something important in it and defer to cgo.
// libc's resolver might then fail too, but at least
// it wasn't our fault.
confVal.forceCgoLookupHost = true
}
if _, err := os.Stat("/etc/mdns.allow"); err == nil {
confVal.hasMDNSAllow = true
}
}
// canUseCgo reports whether calling cgo functions is allowed
// for non-hostname lookups.
func (c *conf) canUseCgo() bool {
return c.hostLookupOrder(nil, "") == hostLookupCgo
}
// hostLookupOrder determines which strategy to use to resolve hostname.
// The provided Resolver is optional. nil means to not consider its options.
func (c *conf) hostLookupOrder(r *Resolver, hostname string) (ret hostLookupOrder) {
if c.dnsDebugLevel > 1 {
defer func() {
print("go package net: hostLookupOrder(", hostname, ") = ", ret.String(), "\n")
}()
}
fallbackOrder := hostLookupCgo
if c.netGo || r.preferGo() {
fallbackOrder = hostLookupFilesDNS
}
if c.forceCgoLookupHost || c.resolv.unknownOpt || c.goos == "android" {
return fallbackOrder
}
if byteIndex(hostname, '\\') != -1 || byteIndex(hostname, '%') != -1 {
// Don't deal with special form hostnames with backslashes
return fallbackOrder
}
// OpenBSD is unique and doesn't use nsswitch.conf.
// It also doesn't support mDNS.
if c.goos == "openbsd" {
// OpenBSD's resolv.conf manpage says that a non-existent
// resolv.conf means "lookup" defaults to only "files",
// without DNS lookups.
if os.IsNotExist(c.resolv.err) {
return hostLookupFiles
}
lookup := c.resolv.lookup
if len(lookup) == 0 {
// "If the lookup keyword is not used in the
// system's resolv.conf file then the assumed
// order is 'bind file'"
return hostLookupDNSFiles
}
if len(lookup) < 1 || len(lookup) > 2 {
return fallbackOrder
}
switch lookup[0] {
case "bind":
if len(lookup) == 2 {
if lookup[1] == "file" {
return hostLookupDNSFiles
}
return fallbackOrder
}
return hostLookupDNS
case "file":
if len(lookup) == 2 {
if lookup[1] == "bind" {
return hostLookupFilesDNS
}
return fallbackOrder
}
return hostLookupFiles
default:
return fallbackOrder
}
}
// Canonicalize the hostname by removing any trailing dot.
if stringsHasSuffix(hostname, ".") {
hostname = hostname[:len(hostname)-1]
}
if <API key>(hostname, ".local") {
// Per RFC 6762, the ".local" TLD is special. And
// because Go's native resolver doesn't do mDNS or
// similar local resolution mechanisms, assume that
// libc might (via Avahi, etc) and use cgo.
return fallbackOrder
}
nss := c.nss
srcs := nss.sources["hosts"]
// If /etc/nsswitch.conf doesn't exist or doesn't specify any
// sources for "hosts", assume Go's DNS will work fine.
if os.IsNotExist(nss.err) || (nss.err == nil && len(srcs) == 0) {
if c.goos == "solaris" {
// illumos defaults to "nis [NOTFOUND=return] files"
return fallbackOrder
}
if c.goos == "linux" {
// glibc says the default is "dns [!UNAVAIL=return] files"
return hostLookupDNSFiles
}
return hostLookupFilesDNS
}
if nss.err != nil {
// We failed to parse or open nsswitch.conf, so
// conservatively assume we should use cgo if it's
// available.
return fallbackOrder
}
var mdnsSource, filesSource, dnsSource bool
var first string
for _, src := range srcs {
if src.source == "myhostname" {
if isLocalhost(hostname) || isGateway(hostname) {
return fallbackOrder
}
hn, err := getHostname()
if err != nil || stringsEqualFold(hostname, hn) {
return fallbackOrder
}
continue
}
if src.source == "files" || src.source == "dns" {
if !src.standardCriteria() {
return fallbackOrder // non-standard; let libc deal with it.
}
if src.source == "files" {
filesSource = true
} else if src.source == "dns" {
dnsSource = true
}
if first == "" {
first = src.source
}
continue
}
if stringsHasPrefix(src.source, "mdns") {
// e.g. "mdns4", "mdns4_minimal"
// We already returned true before if it was *.local.
// libc wouldn't have found a hit on this anyway.
mdnsSource = true
continue
}
// Some source we don't know how to deal with.
return fallbackOrder
}
// We don't parse mdns.allow files. They're rare. If one
// exists, it might list other TLDs (besides .local) or even
// '*', so just let libc deal with it.
if mdnsSource && c.hasMDNSAllow {
return fallbackOrder
}
// Cases where Go can handle it without cgo and C thread
// overhead.
switch {
case filesSource && dnsSource:
if first == "files" {
return hostLookupFilesDNS
} else {
return hostLookupDNSFiles
}
case filesSource:
return hostLookupFiles
case dnsSource:
return hostLookupDNS
}
// Something weird. Let libc deal with it.
return fallbackOrder
}
// goDebugNetDNS parses the value of the GODEBUG "netdns" value.
// The netdns value can be of the form:
// 1 // debug level 1
// 2 // debug level 2
// cgo // use cgo for DNS lookups
// go // use go for DNS lookups
// cgo+1 // use cgo for DNS lookups + debug level 1
// 1+cgo // same
// cgo+2 // same, but debug level 2
// etc.
func goDebugNetDNS() (dnsMode string, debugLevel int) {
goDebug := goDebugString("netdns")
parsePart := func(s string) {
if s == "" {
return
}
if '0' <= s[0] && s[0] <= '9' {
debugLevel, _, _ = dtoi(s)
} else {
dnsMode = s
}
}
if i := byteIndex(goDebug, '+'); i != -1 {
parsePart(goDebug[:i])
parsePart(goDebug[i+1:])
return
}
parsePart(goDebug)
return
}
// isLocalhost reports whether h should be considered a "localhost"
// name for the myhostname NSS module.
func isLocalhost(h string) bool {
return stringsEqualFold(h, "localhost") || stringsEqualFold(h, "localhost.localdomain") || <API key>(h, ".localhost") || <API key>(h, ".localhost.localdomain")
}
// isGateway reports whether h should be considered a "gateway"
// name for the myhostname NSS module.
func isGateway(h string) bool {
return stringsEqualFold(h, "gateway")
} |
// modification, are permitted provided that the following conditions are
// met:
// the distribution.
// * Neither the name of John Haddon nor the names of
// any other contributors to this software may be used to endorse or
// promote products derived from this software without specific prior
// IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
// 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 <API key>
#define <API key>
#include "GafferImage/ImageProcessor.h"
#include "GafferImage/DeepState.h"
#include "Gaffer/CompoundNumericPlug.h"
namespace GafferImage
{
class GAFFERIMAGE_API DeepHoldout : public ImageProcessor
{
public :
DeepHoldout( const std::string &name=defaultName<DeepHoldout>() );
~DeepHoldout() override;
<API key>( GafferImage::DeepHoldout, DeepHoldoutTypeId, ImageProcessor );
GafferImage::ImagePlug *holdoutPlug();
const GafferImage::ImagePlug *holdoutPlug() const;
void affects( const Gaffer::Plug *input, <API key> &outputs ) const override;
protected :
bool computeDeep( const Gaffer::Context *context, const ImagePlug *parent ) const override;
void hashSampleOffsets( const GafferImage::ImagePlug *parent, const Gaffer::Context *context, IECore::MurmurHash &h ) const override;
IECore::<API key> <API key>( const Imath::V2i &tileOrigin, const Gaffer::Context *context, const ImagePlug *parent ) const override;
void hashChannelNames( const GafferImage::ImagePlug *output, const Gaffer::Context *context, IECore::MurmurHash &h ) const override;
IECore::<API key> computeChannelNames( const Gaffer::Context *context, const ImagePlug *parent ) const override;
void hashChannelData( const GafferImage::ImagePlug *output, const Gaffer::Context *context, IECore::MurmurHash &h ) const override;
IECore::<API key> computeChannelData( const std::string &channelName, const Imath::V2i &tileOrigin, const Gaffer::Context *context, const ImagePlug *parent ) const override;
private :
GafferImage::ImagePlug *intermediateInPlug();
const GafferImage::ImagePlug *intermediateInPlug() const;
GafferImage::ImagePlug *flattenedPlug();
const GafferImage::ImagePlug *flattenedPlug() const;
static size_t g_firstPlugIndex;
};
IE_CORE_DECLAREPTR( DeepHoldout );
} // namespace GafferImage
#endif // <API key> |
/**
* cvmx-key-defs.h
*
* Configuration and status register (CSR) type definitions for
* Octeon key.
*
* This file is auto generated. Do not edit.
*
* <hr>$Revision$<hr>
*
*/
#ifndef <API key>
#define <API key>
#if <API key>
#define CVMX_KEY_BIST_REG <API key>()
static inline uint64_t <API key>(void)
{
if (!(OCTEON_IS_MODEL(OCTEON_CN38XX) || OCTEON_IS_MODEL(OCTEON_CN56XX) || OCTEON_IS_MODEL(OCTEON_CN58XX) || OCTEON_IS_MODEL(OCTEON_CN63XX)))
cvmx_warn("CVMX_KEY_BIST_REG not supported on this chip\n");
return CVMX_ADD_IO_SEG(<API key>);
}
#else
#define CVMX_KEY_BIST_REG (CVMX_ADD_IO_SEG(<API key>))
#endif
#if <API key>
#define CVMX_KEY_CTL_STATUS <API key>()
static inline uint64_t <API key>(void)
{
if (!(OCTEON_IS_MODEL(OCTEON_CN38XX) || OCTEON_IS_MODEL(OCTEON_CN56XX) || OCTEON_IS_MODEL(OCTEON_CN58XX) || OCTEON_IS_MODEL(OCTEON_CN63XX)))
cvmx_warn("CVMX_KEY_CTL_STATUS not supported on this chip\n");
return CVMX_ADD_IO_SEG(<API key>);
}
#else
#define CVMX_KEY_CTL_STATUS (CVMX_ADD_IO_SEG(<API key>))
#endif
#if <API key>
#define CVMX_KEY_INT_ENB <API key>()
static inline uint64_t <API key>(void)
{
if (!(OCTEON_IS_MODEL(OCTEON_CN38XX) || OCTEON_IS_MODEL(OCTEON_CN56XX) || OCTEON_IS_MODEL(OCTEON_CN58XX) || OCTEON_IS_MODEL(OCTEON_CN63XX)))
cvmx_warn("CVMX_KEY_INT_ENB not supported on this chip\n");
return CVMX_ADD_IO_SEG(<API key>);
}
#else
#define CVMX_KEY_INT_ENB (CVMX_ADD_IO_SEG(<API key>))
#endif
#if <API key>
#define CVMX_KEY_INT_SUM <API key>()
static inline uint64_t <API key>(void)
{
if (!(OCTEON_IS_MODEL(OCTEON_CN38XX) || OCTEON_IS_MODEL(OCTEON_CN56XX) || OCTEON_IS_MODEL(OCTEON_CN58XX) || OCTEON_IS_MODEL(OCTEON_CN63XX)))
cvmx_warn("CVMX_KEY_INT_SUM not supported on this chip\n");
return CVMX_ADD_IO_SEG(<API key>);
}
#else
#define CVMX_KEY_INT_SUM (CVMX_ADD_IO_SEG(<API key>))
#endif
/**
* cvmx_key_bist_reg
*
* KEY_BIST_REG = KEY's BIST Status Register
*
* The KEY's BIST status for memories.
*/
union cvmx_key_bist_reg
{
uint64_t u64;
struct cvmx_key_bist_reg_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_3_63 : 61;
uint64_t rrc : 1; /**< RRC bist status. */
uint64_t mem1 : 1; /**< MEM - 1 bist status. */
uint64_t mem0 : 1; /**< MEM - 0 bist status. */
#else
uint64_t mem0 : 1;
uint64_t mem1 : 1;
uint64_t rrc : 1;
uint64_t reserved_3_63 : 61;
#endif
} s;
struct cvmx_key_bist_reg_s cn38xx;
struct cvmx_key_bist_reg_s cn38xxp2;
struct cvmx_key_bist_reg_s cn56xx;
struct cvmx_key_bist_reg_s cn56xxp1;
struct cvmx_key_bist_reg_s cn58xx;
struct cvmx_key_bist_reg_s cn58xxp1;
struct cvmx_key_bist_reg_s cn63xx;
struct cvmx_key_bist_reg_s cn63xxp1;
};
typedef union cvmx_key_bist_reg cvmx_key_bist_reg_t;
/**
* cvmx_key_ctl_status
*
* KEY_CTL_STATUS = KEY's Control/Status Register
*
* The KEY's interrupt enable register.
*/
union cvmx_key_ctl_status
{
uint64_t u64;
struct <API key>
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_14_63 : 50;
uint64_t mem1_err : 7; /**< Causes a flip of the ECC bit associated 38:32
respective to bit 13:7 of this field, for FPF
FIFO 1. */
uint64_t mem0_err : 7; /**< Causes a flip of the ECC bit associated 38:32
respective to bit 6:0 of this field, for FPF
FIFO 0. */
#else
uint64_t mem0_err : 7;
uint64_t mem1_err : 7;
uint64_t reserved_14_63 : 50;
#endif
} s;
struct <API key> cn38xx;
struct <API key> cn38xxp2;
struct <API key> cn56xx;
struct <API key> cn56xxp1;
struct <API key> cn58xx;
struct <API key> cn58xxp1;
struct <API key> cn63xx;
struct <API key> cn63xxp1;
};
typedef union cvmx_key_ctl_status <API key>;
/**
* cvmx_key_int_enb
*
* KEY_INT_ENB = KEY's Interrupt Enable
*
* The KEY's interrupt enable register.
*/
union cvmx_key_int_enb
{
uint64_t u64;
struct cvmx_key_int_enb_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_4_63 : 60;
uint64_t ked1_dbe : 1; /**< When set (1) and bit 3 of the KEY_INT_SUM
register is asserted the KEY will assert an
interrupt. */
uint64_t ked1_sbe : 1; /**< When set (1) and bit 2 of the KEY_INT_SUM
register is asserted the KEY will assert an
interrupt. */
uint64_t ked0_dbe : 1; /**< When set (1) and bit 1 of the KEY_INT_SUM
register is asserted the KEY will assert an
interrupt. */
uint64_t ked0_sbe : 1; /**< When set (1) and bit 0 of the KEY_INT_SUM
register is asserted the KEY will assert an
interrupt. */
#else
uint64_t ked0_sbe : 1;
uint64_t ked0_dbe : 1;
uint64_t ked1_sbe : 1;
uint64_t ked1_dbe : 1;
uint64_t reserved_4_63 : 60;
#endif
} s;
struct cvmx_key_int_enb_s cn38xx;
struct cvmx_key_int_enb_s cn38xxp2;
struct cvmx_key_int_enb_s cn56xx;
struct cvmx_key_int_enb_s cn56xxp1;
struct cvmx_key_int_enb_s cn58xx;
struct cvmx_key_int_enb_s cn58xxp1;
struct cvmx_key_int_enb_s cn63xx;
struct cvmx_key_int_enb_s cn63xxp1;
};
typedef union cvmx_key_int_enb cvmx_key_int_enb_t;
/**
* cvmx_key_int_sum
*
* KEY_INT_SUM = KEY's Interrupt Summary Register
*
* Contains the diffrent interrupt summary bits of the KEY.
*/
union cvmx_key_int_sum
{
uint64_t u64;
struct cvmx_key_int_sum_s
{
#if __BYTE_ORDER == __BIG_ENDIAN
uint64_t reserved_4_63 : 60;
uint64_t ked1_dbe : 1;
uint64_t ked1_sbe : 1;
uint64_t ked0_dbe : 1;
uint64_t ked0_sbe : 1;
#else
uint64_t ked0_sbe : 1;
uint64_t ked0_dbe : 1;
uint64_t ked1_sbe : 1;
uint64_t ked1_dbe : 1;
uint64_t reserved_4_63 : 60;
#endif
} s;
struct cvmx_key_int_sum_s cn38xx;
struct cvmx_key_int_sum_s cn38xxp2;
struct cvmx_key_int_sum_s cn56xx;
struct cvmx_key_int_sum_s cn56xxp1;
struct cvmx_key_int_sum_s cn58xx;
struct cvmx_key_int_sum_s cn58xxp1;
struct cvmx_key_int_sum_s cn63xx;
struct cvmx_key_int_sum_s cn63xxp1;
};
typedef union cvmx_key_int_sum cvmx_key_int_sum_t;
#endif |
#include "core/css/CSSMatrix.h"
#include "bindings/core/v8/ExceptionState.h"
#include "core/CSSPropertyNames.h"
#include "core/CSSValueKeywords.h"
#include "core/css/<API key>.h"
#include "core/css/StylePropertySet.h"
#include "core/css/parser/CSSParser.h"
#include "core/css/resolver/TransformBuilder.h"
#include "core/dom/ExceptionCode.h"
#include "core/frame/UseCounter.h"
#include "core/style/ComputedStyle.h"
#include "core/style/StyleInheritedData.h"
#include "wtf/MathExtras.h"
namespace blink {
<API key><CSSMatrix> CSSMatrix::create(ExecutionContext* executionContext, const String& s, ExceptionState& exceptionState)
{
UseCounter::count(executionContext, UseCounter::WebKitCSSMatrix);
return adoptRefWillBeNoop(new CSSMatrix(s, exceptionState));
}
CSSMatrix::CSSMatrix(const <API key>& m)
: m_matrix(<API key>::create(m))
{
}
CSSMatrix::CSSMatrix(const String& s, ExceptionState& exceptionState)
: m_matrix(<API key>::create())
{
setMatrixValue(s, exceptionState);
}
static inline PassRefPtr<ComputedStyle> createInitialStyle()
{
RefPtr<ComputedStyle> initialStyle = ComputedStyle::create();
initialStyle->font().update(nullptr);
return initialStyle;
}
void CSSMatrix::setMatrixValue(const String& string, ExceptionState& exceptionState)
{
if (string.isEmpty())
return;
if (RefPtrWillBeRawPtr<CSSValue> value = CSSParser::parseSingleValue(<API key>, string)) {
// Check for a "none" transform. In these cases we can use the default identity matrix.
if (value->isPrimitiveValue() && (toCSSPrimitiveValue(value.get()))->getValueID() == CSSValueNone)
return;
DEFINE_STATIC_REF(ComputedStyle, initialStyle, createInitialStyle());
TransformOperations operations;
TransformBuilder::<API key>(*value, <API key>(initialStyle, initialStyle, nullptr, 1.0f), operations);
// Convert transform operations to a <API key>. This can fail
// if a param has a percentage ('%')
if (operations.dependsOnBoxSize())
exceptionState.throwDOMException(SyntaxError, "The transformation depends on the box size, which is not supported.");
m_matrix = <API key>::create();
operations.apply(FloatSize(0, 0), *m_matrix);
} else { // There is something there but parsing failed.
exceptionState.throwDOMException(SyntaxError, "Failed to parse '" + string + "'.");
}
}
// Perform a concatenation of the matrices (this * secondMatrix)
<API key><CSSMatrix> CSSMatrix::multiply(CSSMatrix* secondMatrix) const
{
if (!secondMatrix)
return nullptr;
return CSSMatrix::create(<API key>(*m_matrix).multiply(*secondMatrix->m_matrix));
}
<API key><CSSMatrix> CSSMatrix::inverse(ExceptionState& exceptionState) const
{
if (!m_matrix->isInvertible()) {
exceptionState.throwDOMException(NotSupportedError, "The matrix is not invertable.");
return nullptr;
}
return CSSMatrix::create(m_matrix->inverse());
}
<API key><CSSMatrix> CSSMatrix::translate(double x, double y, double z) const
{
if (std::isnan(x))
x = 0;
if (std::isnan(y))
y = 0;
if (std::isnan(z))
z = 0;
return CSSMatrix::create(<API key>(*m_matrix).translate3d(x, y, z));
}
<API key><CSSMatrix> CSSMatrix::scale(double scaleX, double scaleY, double scaleZ) const
{
if (std::isnan(scaleX))
scaleX = 1;
if (std::isnan(scaleY))
scaleY = scaleX;
if (std::isnan(scaleZ))
scaleZ = 1;
return CSSMatrix::create(<API key>(*m_matrix).scale3d(scaleX, scaleY, scaleZ));
}
<API key><CSSMatrix> CSSMatrix::rotate(double rotX, double rotY, double rotZ) const
{
if (std::isnan(rotX))
rotX = 0;
if (std::isnan(rotY) && std::isnan(rotZ)) {
rotZ = rotX;
rotX = 0;
rotY = 0;
}
if (std::isnan(rotY))
rotY = 0;
if (std::isnan(rotZ))
rotZ = 0;
return CSSMatrix::create(<API key>(*m_matrix).rotate3d(rotX, rotY, rotZ));
}
<API key><CSSMatrix> CSSMatrix::rotateAxisAngle(double x, double y, double z, double angle) const
{
if (std::isnan(x))
x = 0;
if (std::isnan(y))
y = 0;
if (std::isnan(z))
z = 0;
if (std::isnan(angle))
angle = 0;
if (!x && !y && !z)
z = 1;
return CSSMatrix::create(<API key>(*m_matrix).rotate3d(x, y, z, angle));
}
<API key><CSSMatrix> CSSMatrix::skewX(double angle) const
{
if (std::isnan(angle))
angle = 0;
return CSSMatrix::create(<API key>(*m_matrix).skewX(angle));
}
<API key><CSSMatrix> CSSMatrix::skewY(double angle) const
{
if (std::isnan(angle))
angle = 0;
return CSSMatrix::create(<API key>(*m_matrix).skewY(angle));
}
String CSSMatrix::toString() const
{
if (m_matrix->isAffine())
return String::format("matrix(%f, %f, %f, %f, %f, %f)", m_matrix->a(), m_matrix->b(), m_matrix->c(), m_matrix->d(), m_matrix->e(), m_matrix->f());
return String::format("matrix3d(%f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f)",
m_matrix->m11(), m_matrix->m12(), m_matrix->m13(), m_matrix->m14(),
m_matrix->m21(), m_matrix->m22(), m_matrix->m23(), m_matrix->m24(),
m_matrix->m31(), m_matrix->m32(), m_matrix->m33(), m_matrix->m34(),
m_matrix->m41(), m_matrix->m42(), m_matrix->m43(), m_matrix->m44());
}
} // namespace blink |
<?php
namespace rest\models\sales;
use Yii;
use rest\classes\ActiveRecord;
use rest\models\master\Uom;
use rest\models\master\Product;
/**
* This is the model class for table "{{%sales_dtl}}".
*
* @property integer $sales_id
* @property integer $product_id
* @property integer $uom_id
* @property double $qty
* @property double $price
* @property double $total_release
* @property double $cogs
* @property double $discount
* @property double $tax
*
* @property Sales $sales
* @property Product $product
* @property Uom $uom Uom transaction
*
* @author Misbahul D Munir <misbahuldmunir@gmail.com>
* @since 3.0
*/
class SalesDtl extends ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return '{{%sales_dtl}}';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['product_id', 'uom_id', 'qty', 'price', 'cogs'], 'required'],
[['sales_id', 'product_id', 'uom_id'], 'integer'],
[['qty', 'price', 'cogs', 'discount', 'tax'], 'number'],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'sales_id' => 'Sales ID',
'product_id' => 'Product ID',
'uom_id' => 'Uom ID',
'qty' => 'Qty',
'price' => 'Price',
'total_release' => 'Qty Release',
'cogs' => 'Cogs',
'discount' => 'Discount',
'tax' => 'Tax',
];
}
/**
* @return \yii\db\ActiveQuery
*/
public function getSales()
{
return $this->hasOne(Sales::className(), ['id' => 'sales_id']);
}
public function getProduct()
{
return $this->hasOne(Product::className(), ['id' => 'product_id']);
}
public function getUom()
{
return $this->hasOne(Uom::className(), ['id' => 'uom_id']);
}
public function extraFields()
{
return[
'product',
'uom',
];
}
} |
#ifndef <API key>
#define <API key>
#include "core/svg/SVGFELightElement.h"
namespace WebCore {
class <API key> FINAL : public SVGFELightElement {
public:
static PassRefPtr<<API key>> create(const QualifiedName&, Document*);
private:
<API key>(const QualifiedName&, Document*);
virtual PassRefPtr<LightSource> lightSource() const;
};
} // namespace WebCore
#endif |
<?php
class foo {
function __construct($arrayobj) {
var_dump($arrayobj);
}
}
new foo(array(new stdClass));
?> |
#include "FLA_f2c.h" /* Table of constant values */
static integer c__1 = 1;
/* > \brief \b CLA_HERCOND_X computes the infinity norm condition number of op(A)*diag(x) for Hermitian indefi nite matrices. */
/* Online html documentation available at */
/* > \htmlonly */
/* > Download CLA_HERCOND_X + dependencies */
/* > [TGZ]</a> */
/* > [ZIP]</a> */
/* > [TXT]</a> */
/* > \endhtmlonly */
/* Definition: */
/* REAL FUNCTION CLA_HERCOND_X( UPLO, N, A, LDA, AF, LDAF, IPIV, X, */
/* INFO, WORK, RWORK ) */
/* .. Scalar Arguments .. */
/* CHARACTER UPLO */
/* INTEGER N, LDA, LDAF, INFO */
/* .. Array Arguments .. */
/* INTEGER IPIV( * ) */
/* COMPLEX A( LDA, * ), AF( LDAF, * ), WORK( * ), X( * ) */
/* REAL RWORK( * ) */
/* > \par Purpose: */
/* > \verbatim */
/* > CLA_HERCOND_X computes the infinity norm condition number of */
/* > op(A) * diag(X) where X is a COMPLEX vector. */
/* > \endverbatim */
/* Arguments: */
/* > \param[in] UPLO */
/* > \verbatim */
/* > UPLO is CHARACTER*1 */
/* > = 'U': Upper triangle of A is stored;
*/
/* > = 'L': Lower triangle of A is stored. */
/* > \endverbatim */
/* > \param[in] N */
/* > \verbatim */
/* > N is INTEGER */
/* > The number of linear equations, i.e., the order of the */
/* > matrix A. N >= 0. */
/* > \endverbatim */
/* > \param[in] A */
/* > \verbatim */
/* > A is COMPLEX array, dimension (LDA,N) */
/* > On entry, the N-by-N matrix A. */
/* > \endverbatim */
/* > \param[in] LDA */
/* > \verbatim */
/* > LDA is INTEGER */
/* > The leading dimension of the array A. LDA >= max(1,N). */
/* > \endverbatim */
/* > \param[in] AF */
/* > \verbatim */
/* > AF is COMPLEX array, dimension (LDAF,N) */
/* > The block diagonal matrix D and the multipliers used to */
/* > obtain the factor U or L as computed by CHETRF. */
/* > \endverbatim */
/* > \param[in] LDAF */
/* > \verbatim */
/* > LDAF is INTEGER */
/* > The leading dimension of the array AF. LDAF >= max(1,N). */
/* > \endverbatim */
/* > \param[in] IPIV */
/* > \verbatim */
/* > IPIV is INTEGER array, dimension (N) */
/* > Details of the interchanges and the block structure of D */
/* > as determined by CHETRF. */
/* > \endverbatim */
/* > \param[in] X */
/* > \verbatim */
/* > X is COMPLEX array, dimension (N) */
/* > The vector X in the formula op(A) * diag(X). */
/* > \endverbatim */
/* > \param[out] INFO */
/* > \verbatim */
/* > INFO is INTEGER */
/* > = 0: Successful exit. */
/* > i > 0: The ith argument is invalid. */
/* > \endverbatim */
/* > \param[in] WORK */
/* > \verbatim */
/* > WORK is COMPLEX array, dimension (2*N). */
/* > Workspace. */
/* > \endverbatim */
/* > \param[in] RWORK */
/* > \verbatim */
/* > RWORK is REAL array, dimension (N). */
/* > Workspace. */
/* > \endverbatim */
/* Authors: */
/* > \author Univ. of Tennessee */
/* > \author Univ. of California Berkeley */
/* > \author Univ. of Colorado Denver */
/* > \author NAG Ltd. */
/* > \date September 2012 */
/* > \ingroup <API key> */
real cla_hercond_x_(char *uplo, integer *n, complex *a, integer *lda, complex *af, integer *ldaf, integer *ipiv, complex *x, integer *info, complex *work, real *rwork)
{
/* System generated locals */
integer a_dim1, a_offset, af_dim1, af_offset, i__1, i__2, i__3, i__4;
real ret_val, r__1, r__2;
complex q__1, q__2;
/* Builtin functions */
double r_imag(complex *);
void c_div(complex *, complex *, complex *);
/* Local variables */
integer i__, j;
logical up;
real tmp;
integer kase;
extern logical lsame_(char *, char *);
integer isave[3];
real anorm;
logical upper;
extern /* Subroutine */
int clacn2_(integer *, complex *, complex *, real *, integer *, integer *), xerbla_(char *, integer *);
real ainvnm;
extern /* Subroutine */
int chetrs_(char *, integer *, integer *, complex *, integer *, integer *, complex *, integer *, integer *);
/* -- LAPACK computational routine (version 3.4.2) -- */
/* -- LAPACK is a software package provided by Univ. of Tennessee, -- */
/* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..-- */
/* September 2012 */
/* .. Scalar Arguments .. */
/* .. Array Arguments .. */
/* .. Local Scalars .. */
/* .. Local Arrays .. */
/* .. External Functions .. */
/* .. External Subroutines .. */
/* .. Intrinsic Functions .. */
/* .. Statement Functions .. */
/* .. Statement Function Definitions .. */
/* .. Executable Statements .. */
/* Parameter adjustments */
a_dim1 = *lda;
a_offset = 1 + a_dim1;
a -= a_offset;
af_dim1 = *ldaf;
af_offset = 1 + af_dim1;
af -= af_offset;
--ipiv;
--x;
--work;
--rwork;
/* Function Body */
ret_val = 0.f;
*info = 0;
upper = lsame_(uplo, "U");
if (! upper && ! lsame_(uplo, "L"))
{
*info = -1;
}
else if (*n < 0)
{
*info = -2;
}
else if (*lda < max(1,*n))
{
*info = -4;
}
else if (*ldaf < max(1,*n))
{
*info = -6;
}
if (*info != 0)
{
i__1 = -(*info);
xerbla_("CLA_HERCOND_X", &i__1);
return ret_val;
}
up = FALSE_;
if (lsame_(uplo, "U"))
{
up = TRUE_;
}
anorm = 0.f;
if (up)
{
i__1 = *n;
for (i__ = 1;
i__ <= i__1;
++i__)
{
tmp = 0.f;
i__2 = i__;
for (j = 1;
j <= i__2;
++j)
{
i__3 = j + i__ * a_dim1;
i__4 = j;
q__2.r = a[i__3].r * x[i__4].r - a[i__3].i * x[i__4].i;
q__2.i = a[i__3].r * x[i__4].i + a[i__3].i * x[i__4] .r; // , expr subst
q__1.r = q__2.r;
q__1.i = q__2.i; // , expr subst
tmp += (r__1 = q__1.r, abs(r__1)) + (r__2 = r_imag(&q__1), abs(r__2));
}
i__2 = *n;
for (j = i__ + 1;
j <= i__2;
++j)
{
i__3 = i__ + j * a_dim1;
i__4 = j;
q__2.r = a[i__3].r * x[i__4].r - a[i__3].i * x[i__4].i;
q__2.i = a[i__3].r * x[i__4].i + a[i__3].i * x[i__4] .r; // , expr subst
q__1.r = q__2.r;
q__1.i = q__2.i; // , expr subst
tmp += (r__1 = q__1.r, abs(r__1)) + (r__2 = r_imag(&q__1), abs(r__2));
}
rwork[i__] = tmp;
anorm = max(anorm,tmp);
}
}
else
{
i__1 = *n;
for (i__ = 1;
i__ <= i__1;
++i__)
{
tmp = 0.f;
i__2 = i__;
for (j = 1;
j <= i__2;
++j)
{
i__3 = i__ + j * a_dim1;
i__4 = j;
q__2.r = a[i__3].r * x[i__4].r - a[i__3].i * x[i__4].i;
q__2.i = a[i__3].r * x[i__4].i + a[i__3].i * x[i__4] .r; // , expr subst
q__1.r = q__2.r;
q__1.i = q__2.i; // , expr subst
tmp += (r__1 = q__1.r, abs(r__1)) + (r__2 = r_imag(&q__1), abs(r__2));
}
i__2 = *n;
for (j = i__ + 1;
j <= i__2;
++j)
{
i__3 = j + i__ * a_dim1;
i__4 = j;
q__2.r = a[i__3].r * x[i__4].r - a[i__3].i * x[i__4].i;
q__2.i = a[i__3].r * x[i__4].i + a[i__3].i * x[i__4] .r; // , expr subst
q__1.r = q__2.r;
q__1.i = q__2.i; // , expr subst
tmp += (r__1 = q__1.r, abs(r__1)) + (r__2 = r_imag(&q__1), abs(r__2));
}
rwork[i__] = tmp;
anorm = max(anorm,tmp);
}
}
/* Quick return if possible. */
if (*n == 0)
{
ret_val = 1.f;
return ret_val;
}
else if (anorm == 0.f)
{
return ret_val;
}
/* Estimate the norm of inv(op(A)). */
ainvnm = 0.f;
kase = 0;
L10:
clacn2_(n, &work[*n + 1], &work[1], &ainvnm, &kase, isave);
if (kase != 0)
{
if (kase == 2)
{
/* Multiply by R. */
i__1 = *n;
for (i__ = 1;
i__ <= i__1;
++i__)
{
i__2 = i__;
i__3 = i__;
i__4 = i__;
q__1.r = rwork[i__4] * work[i__3].r;
q__1.i = rwork[i__4] * work[i__3].i; // , expr subst
work[i__2].r = q__1.r;
work[i__2].i = q__1.i; // , expr subst
}
if (up)
{
chetrs_("U", n, &c__1, &af[af_offset], ldaf, &ipiv[1], &work[ 1], n, info);
}
else
{
chetrs_("L", n, &c__1, &af[af_offset], ldaf, &ipiv[1], &work[ 1], n, info);
}
/* Multiply by inv(X). */
i__1 = *n;
for (i__ = 1;
i__ <= i__1;
++i__)
{
i__2 = i__;
c_div(&q__1, &work[i__], &x[i__]);
work[i__2].r = q__1.r;
work[i__2].i = q__1.i; // , expr subst
}
}
else
{
/* Multiply by inv(X**H). */
i__1 = *n;
for (i__ = 1;
i__ <= i__1;
++i__)
{
i__2 = i__;
c_div(&q__1, &work[i__], &x[i__]);
work[i__2].r = q__1.r;
work[i__2].i = q__1.i; // , expr subst
}
if (up)
{
chetrs_("U", n, &c__1, &af[af_offset], ldaf, &ipiv[1], &work[ 1], n, info);
}
else
{
chetrs_("L", n, &c__1, &af[af_offset], ldaf, &ipiv[1], &work[ 1], n, info);
}
/* Multiply by R. */
i__1 = *n;
for (i__ = 1;
i__ <= i__1;
++i__)
{
i__2 = i__;
i__3 = i__;
i__4 = i__;
q__1.r = rwork[i__4] * work[i__3].r;
q__1.i = rwork[i__4] * work[i__3].i; // , expr subst
work[i__2].r = q__1.r;
work[i__2].i = q__1.i; // , expr subst
}
}
goto L10;
}
/* Compute the estimate of the reciprocal condition number. */
if (ainvnm != 0.f)
{
ret_val = 1.f / ainvnm;
}
return ret_val;
}
/* cla_hercond_x__ */ |
#ifndef <API key>
#define <API key>
#include "cc/output/output_surface.h"
namespace cc {
class BeginFrameSource;
class <API key> : public OutputSurface {
public:
explicit <API key>(
scoped_refptr<ContextProvider> context_provider,
scoped_refptr<ContextProvider> <API key>,
bool <API key>,
std::unique_ptr<BeginFrameSource> begin_frame_source);
explicit <API key>(
scoped_refptr<ContextProvider> context_provider,
bool <API key>,
std::unique_ptr<BeginFrameSource> begin_frame_source);
explicit <API key>(
std::unique_ptr<<API key>> software_device,
std::unique_ptr<BeginFrameSource> begin_frame_source);
~<API key>() override;
bool BindToClient(OutputSurfaceClient* client) override;
void Reshape(const gfx::Size& size, float scale_factor, bool alpha) override;
bool <API key>() const override;
void SwapBuffers(CompositorFrame* frame) override;
void <API key>(const gfx::Size& <API key>) {
<API key> = <API key>;
}
void <API key>(bool has_test) {
<API key> = has_test;
}
private:
std::unique_ptr<BeginFrameSource> begin_frame_source_;
gfx::Size <API key>;
bool <API key>;
};
} // namespace cc
#endif // <API key> |
// Use of this source code is governed by a BSD-style
// makebbmain creates a bb main.go source file.
package main
import (
"flag"
"log"
"github.com/u-root/u-root/pkg/bb"
"github.com/u-root/u-root/pkg/golang"
)
var (
template = flag.String("template", "github.com/u-root/u-root/pkg/bb/cmd", "bb main.go template package")
outputDir = flag.String("o", "", "output directory")
)
func main() {
flag.Parse()
if flag.NArg() == 0 {
log.Fatalf("must list bb packages as arguments")
}
env := golang.Default()
p, err := env.Package(*template)
if err != nil {
log.Fatal(err)
}
fset, astp, err := bb.ParseAST(bb.SrcFiles(p))
if err != nil {
log.Fatal(err)
}
if err := bb.CreateBBMainSource(fset, astp, flag.Args(), *outputDir); err != nil {
log.Fatalf("failed to create bb source file: %v", err)
}
} |
// IndexConversionPerf:
// Performance tests for ANGLE index conversion in D3D11.
#include <sstream>
#include "ANGLEPerfTest.h"
#include "shader_utils.h"
using namespace angle;
namespace
{
struct <API key> final : public RenderTestParams
{
std::string suffix() const override
{
std::stringstream strstr;
strstr << RenderTestParams::suffix();
return strstr.str();
}
unsigned int iterations;
unsigned int numIndexTris;
};
// Provide a custom gtest parameter name function for <API key>
// that includes the number of iterations and triangles in the test parameter name.
// This also fixes the resolution of the overloaded operator<< on MSVC.
std::ostream &operator<<(std::ostream &stream, const <API key> ¶m)
{
const PlatformParameters &platform = param;
stream << platform << "_" << param.iterations << "_" << param.numIndexTris;
return stream;
}
class <API key> : public ANGLERenderTest,
public ::testing::WithParamInterface<<API key>>
{
public:
<API key>();
void initializeBenchmark() override;
void destroyBenchmark() override;
void beginDrawBenchmark() override;
void drawBenchmark() override;
void updateBufferData();
private:
GLuint mProgram;
GLuint mVertexBuffer;
GLuint mIndexBuffer;
std::vector<GLushort> mIndexData;
};
<API key>::<API key>()
: ANGLERenderTest("<API key>", GetParam()),
mProgram(0),
mVertexBuffer(0),
mIndexBuffer(0)
{
mRunTimeSeconds = 3.0;
}
void <API key>::initializeBenchmark()
{
const auto ¶ms = GetParam();
ASSERT_TRUE(params.iterations > 0);
ASSERT_TRUE(params.numIndexTris > 0);
mDrawIterations = params.iterations;
const std::string vs = SHADER_SOURCE
(
attribute vec2 vPosition;
uniform float uScale;
uniform float uOffset;
void main()
{
gl_Position = vec4(vPosition * vec2(uScale) - vec2(uOffset), 0, 1);
}
);
const std::string fs = SHADER_SOURCE
(
precision mediump float;
void main()
{
gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
}
);
mProgram = CompileProgram(vs, fs);
ASSERT_TRUE(mProgram != 0);
// Use the program object
glUseProgram(mProgram);
glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
// Initialize the vertex data
std::vector<GLfloat> floatData;
size_t numTris = std::numeric_limits<GLushort>::max() / 3 + 1;
for (size_t triIndex = 0; triIndex < numTris; ++triIndex)
{
floatData.push_back(1);
floatData.push_back(2);
floatData.push_back(0);
floatData.push_back(0);
floatData.push_back(2);
floatData.push_back(0);
}
glGenBuffers(1, &mVertexBuffer);
glBindBuffer(GL_ARRAY_BUFFER, mVertexBuffer);
glBufferData(GL_ARRAY_BUFFER, floatData.size() * sizeof(GLfloat), &floatData[0], GL_STATIC_DRAW);
<API key>(0, 2, GL_FLOAT, GL_FALSE, 0, 0);
<API key>(0);
// Initialize the index buffer
for (unsigned int triIndex = 0; triIndex < params.numIndexTris; ++triIndex)
{
mIndexData.push_back(std::numeric_limits<GLushort>::max());
mIndexData.push_back(1);
mIndexData.push_back(2);
}
glGenBuffers(1, &mIndexBuffer);
glBindBuffer(<API key>, mIndexBuffer);
updateBufferData();
// Set the viewport
glViewport(0, 0, getWindow()->getWidth(), getWindow()->getHeight());
GLfloat scale = 0.5f;
GLfloat offset = 0.5f;
glUniform1f(<API key>(mProgram, "uScale"), scale);
glUniform1f(<API key>(mProgram, "uOffset"), offset);
ASSERT_TRUE(glGetError() == GL_NO_ERROR);
}
void <API key>::updateBufferData()
{
glBufferData(<API key>, mIndexData.size() * sizeof(mIndexData[0]), &mIndexData[0], GL_STATIC_DRAW);
}
void <API key>::destroyBenchmark()
{
glDeleteProgram(mProgram);
glDeleteBuffers(1, &mVertexBuffer);
glDeleteBuffers(1, &mIndexBuffer);
}
void <API key>::beginDrawBenchmark()
{
// Clear the color buffer
glClear(GL_COLOR_BUFFER_BIT);
}
void <API key>::drawBenchmark()
{
const auto ¶ms = GetParam();
// Trigger an update to ensure we convert once a frame
updateBufferData();
for (unsigned int it = 0; it < params.iterations; it++)
{
glDrawElements(GL_TRIANGLES,
static_cast<GLsizei>(params.numIndexTris * 3 - 1),
GL_UNSIGNED_SHORT,
reinterpret_cast<GLvoid*>(0));
}
EXPECT_TRUE(glGetError() == GL_NO_ERROR);
}
<API key> <API key>()
{
<API key> params;
params.eglParameters = egl_platform::D3D11_NULL();
params.majorVersion = 2;
params.minorVersion = 0;
params.windowWidth = 256;
params.windowHeight = 256;
params.iterations = 15;
params.numIndexTris = 3000;
return params;
}
TEST_P(<API key>, Run)
{
run();
}
<API key>(<API key>,
<API key>());
} // namespace |
## DSL Editor eclipse plugin
Editor has options to:
1. Log work (DSLLogger)
2. Mark errors (DSLMarker)
3. Syntax highlight (Line style listener in editor)
Marker and syntax highlight parts need an object that holds line and style information.
Currently that object is of DSLToken type.
Information that is needed is line number, offset and associated style
Parser always returns DSLToken(DSLError is also included)
Reconciler is the part that scans the document when something is written, or the resource is saved.
Reconciler calls parser, that returns dsl token.
dsl token is passed to marker handler, and line style listener. |
ApplicationKernel.namespace('EmberExt.Tree');
EmberExt.Tree.TreeNodeView = Ember.View.extend({
opened: false,
loading: false,
branch: function () {
return this.get('content').branch;
}.property(),
subTreeBranchView: null,
loadedData: false,
tagName: 'li',
// class names that determine what icons are used beside the node
classNameBindings: ['opened:tree-branch-open', 'branch:tree-branch-icon:tree-node-icon'],
templateName: 'Shared/Tree/EmberTreeNode',
collapse: function () {
var index = this.get('parentView').indexOf(this) + 1;
this.get('parentView').removeAt(index);
this.set('opened', false);
},
loadData: function () {
return new Ember.RSVP.Promise(function (resolve) {
Ember.run.later(this, function () {
resolve([
{
'name': 'John',
'age': 10,
'branch': true
},
{
'name': 'Tom',
'age': 5,
'branch': false
},
{
'name': 'Paul',
'age': 7,
'branch': true
}
]);
}, 1000)
})
},
getSubNodeViewClass: function() {
return EmberExt.Tree.TreeNodeView;
},
createSubBranchView: function () {
var view = EmberExt.Tree.TreeView.create({
itemViewClass: this.getSubNodeViewClass(),
container: this.get('container')
});
return view;
},
expand: function () {
// only branch could be expanded
if (this.get('loadedData')) {
// user wants to open the branch and we have already created the view before
var index = this.get('parentView').indexOf(this) + 1;
this.get('parentView').insertAt(index, this.get('subTreeBranchView'));
this.set('opened', true);
} else if (this.get('branch') && !this.get('loading')) {
// user wants to open the branch for the first time
this.set('loading', true)
Ember.RSVP.resolve()
.then(this.loadData.bind(this))
.then(function (content) {
var subTreeBranchView = this.createSubBranchView();
subTreeBranchView.set('content', content)
var index = this.get('parentView').indexOf(this) + 1;
this.get('parentView').insertAt(index, subTreeBranchView);
this.set('opened', true);
this.set('subTreeBranchView', subTreeBranchView);
this.set('loadedData', true);
this.set('loading', false)
}.bind(this))
}
},
click: function (evt) {
if (this.get('opened')) {
// user wants to close the branch
this.collapse();
} else {
// user wants to open branch
this.expand();
}
}
});
EmberExt.Tree.TreeView = Ember.CollectionView.extend({
tagName: 'ul',
content: [
{
'name': 'John',
'age': 10,
'branch': true
},
{
'name': 'Tom',
'age': 5,
'branch': true
},
{
'name': 'Paul',
'age': 7,
'branch': true
}
],
classNames: ['treebranch'],
itemViewClass: 'EmberExt.Tree.TreeNodeView'
}); |
--TEST
phpunit --process-isolation --log-junit php://stdout ../../_files/DataProviderTest.php
--FILE
<?php declare(strict_types=1);
$_SERVER['argv'][] = '--do-not-cache-result';
$_SERVER['argv'][] = '--no-configuration';
$_SERVER['argv'][] = '--process-isolation';
$_SERVER['argv'][] = '--log-junit';
$_SERVER['argv'][] = 'php://stdout';
$_SERVER['argv'][] = __DIR__ . '/../_files/DataProviderTest.php';
require __DIR__ . '/../bootstrap.php';
PHPUnit\TextUI\Command::main();
--EXPECTF
PHPUnit %s by Sebastian Bergmann and contributors.
..F. 4 / 4 (100%)<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite name="PHPUnit\TestFixture\DataProviderTest" file="%sDataProviderTest.php" tests="4" assertions="4" errors="0" warnings="0" failures="1" skipped="0" time="%f">
<testsuite name="PHPUnit\TestFixture\DataProviderTest::testAdd" tests="4" assertions="4" errors="0" warnings="0" failures="1" skipped="0" time="%f">
<testcase name="testAdd with data set #0" class="PHPUnit\TestFixture\DataProviderTest" classname="PHPUnit.TestFixture.DataProviderTest" file="%sDataProviderTest.php" line="%d" assertions="1" time="%f"/>
<testcase name="testAdd with data set #1" class="PHPUnit\TestFixture\DataProviderTest" classname="PHPUnit.TestFixture.DataProviderTest" file="%sDataProviderTest.php" line="%d" assertions="1" time="%f"/>
<testcase name="testAdd with data set #2" class="PHPUnit\TestFixture\DataProviderTest" classname="PHPUnit.TestFixture.DataProviderTest" file="%sDataProviderTest.php" line="%d" assertions="1" time="%f">
<failure type="PHPUnit\Framework\<API key>">PHPUnit\TestFixture\DataProviderTest::testAdd with data set #2 (1, 1, 3)
Failed asserting that 2 matches expected 3.
%s:%i</failure>
</testcase>
<testcase name="testAdd with data set #3" class="PHPUnit\TestFixture\DataProviderTest" classname="PHPUnit.TestFixture.DataProviderTest" file="%sDataProviderTest.php" line="%d" assertions="1" time="%f"/>
</testsuite>
</testsuite>
</testsuites>
Time: %s, Memory: %s
There was 1 failure:
1) PHPUnit\TestFixture\DataProviderTest::testAdd with data set #2 (1, 1, 3)
Failed asserting that 2 matches expected 3.
%s:%i
FAILURES!
Tests: 4, Assertions: 4, Failures: 1. |
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
#pragma once
#include "targetver.h"
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
// Windows Header Files:
#include <windows.h>
// TODO: reference additional headers your program requires here |
#ifndef <API key>
#define <API key> 1
#include <cxxstd/complex.h>
namespace cxxlapack {
template <typename IndexType>
void
laqr3(bool wantT,
bool wantZ,
IndexType n,
IndexType kTop,
IndexType kBot,
IndexType nw,
float *H,
IndexType ldH,
IndexType iLoZ,
IndexType iHiZ,
float *Z,
IndexType ldZ,
IndexType &ns,
IndexType &nd,
float *sr,
float *si,
float *V,
IndexType ldV,
IndexType nh,
float *T,
IndexType ldT,
IndexType nv,
float *WV,
IndexType ldWV,
float *work,
IndexType lWork);
template <typename IndexType>
void
laqr3(bool wantT,
bool wantZ,
IndexType n,
IndexType kTop,
IndexType kBot,
IndexType nw,
double *H,
IndexType ldH,
IndexType iLoZ,
IndexType iHiZ,
double *Z,
IndexType ldZ,
IndexType &ns,
IndexType &nd,
double *sr,
double *si,
double *V,
IndexType ldV,
IndexType nh,
double *T,
IndexType ldT,
IndexType nv,
double *WV,
IndexType ldWV,
double *work,
IndexType lWork);
template <typename IndexType>
void
laqr3(bool wantT,
bool wantZ,
IndexType n,
IndexType kTop,
IndexType kBot,
IndexType nw,
std::complex<float > *H,
IndexType ldH,
IndexType iLoZ,
IndexType iHiZ,
std::complex<float > *Z,
IndexType ldZ,
IndexType &ns,
IndexType &nd,
std::complex<float > *sh,
std::complex<float > *V,
IndexType ldV,
IndexType nh,
std::complex<float > *T,
IndexType ldT,
IndexType nv,
std::complex<float > *WV,
IndexType ldWV,
std::complex<float > *work,
IndexType lWork);
template <typename IndexType>
void
laqr3(bool wantT,
bool wantZ,
IndexType n,
IndexType kTop,
IndexType kBot,
IndexType nw,
std::complex<double> *H,
IndexType ldH,
IndexType iLoZ,
IndexType iHiZ,
std::complex<double> *Z,
IndexType ldZ,
IndexType &ns,
IndexType &nd,
std::complex<double> *sh,
std::complex<double> *V,
IndexType ldV,
IndexType nh,
std::complex<double> *T,
IndexType ldT,
IndexType nv,
std::complex<double> *WV,
IndexType ldWV,
std::complex<double> *work,
IndexType lWork);
} // namespace cxxlapack
#endif // <API key> |
package gov.sandia.cognition.learning.algorithm.perceptron;
import gov.sandia.cognition.math.matrix.Vector;
import gov.sandia.cognition.learning.data.<API key>;
import java.util.Random;
import gov.sandia.cognition.learning.function.categorization.<API key>;
import gov.sandia.cognition.math.matrix.VectorFactory;import junit.framework.TestCase;
;
/**
* Unit tests for class Winnow.
*
* @author Justin Basilico
* @since 3.1
*/
public class WinnowTest
extends TestCase
{
protected Random random = new Random(211);
/**
* Creates a new test.
*/
public WinnowTest()
{
}
/**
* Test of constructors of class Winnow.
*/
public void testConstructors()
{
double weightUpdate = Winnow.<API key>;
boolean demoteToZero = Winnow.<API key>;
Winnow instance = new Winnow();
assertEquals(weightUpdate, instance.getWeightUpdate(), 0.0);
assertEquals(demoteToZero, instance.isDemoteToZero());
weightUpdate = 1.234;
instance = new Winnow(weightUpdate);
assertEquals(weightUpdate, instance.getWeightUpdate(), 0.0);
assertEquals(demoteToZero, instance.isDemoteToZero());
weightUpdate = 2.345;
demoteToZero = !demoteToZero;
instance = new Winnow(weightUpdate, demoteToZero);
assertEquals(weightUpdate, instance.getWeightUpdate(), 0.0);
assertEquals(demoteToZero, instance.isDemoteToZero());
}
/**
* Test of <API key> method, of class Winnow.
*/
public void <API key>()
{
Winnow instance = new Winnow();
<API key> result = instance.<API key>();
assertNull(result.getWeights());
assertEquals(result.getThreshold(), 0.0, 0.0);
}
/**
* Test of update method, of class Winnow.
*/
public void testUpdate()
{
int d = 20;
int k = 4;
double p = 0.25;
VectorFactory<?> f = VectorFactory.getDenseDefault();
Winnow instance = new Winnow();
<API key> result = instance.<API key>();
// This tests a k-disjunction, which Winnow should be able to learn.
for (int i = 0; i < 300; i++)
{
Vector input = f.createVector(d);
for (int j = 0; j < d; j++)
{
input.setElement(j, this.random.nextDouble() <= p ? 1.0 : 0.0);
}
boolean output = false;
for (int j = 0; j < k && !output; j++)
{
output = input.getElement(j) != 0.0;
}
instance.update(result, <API key>.create(input, output));
}
for (int i = 0; i < 100; i++)
{
Vector input = f.createVector(d);
for (int j = 0; j < d; j++)
{
input.setElement(j, this.random.nextDouble() <= p ? 1.0 : 0.0);
}
boolean output = false;
for (int j = 0; j < k && !output; j++)
{
output = input.getElement(j) != 0.0;
}
assertEquals(output, (boolean) result.evaluate(input));
}
}
/**
* Test of getWeightUpdate method, of class Winnow.
*/
public void testGetWeightUpdate()
{
this.testSetWeightUpdate();
}
/**
* Test of setWeightUpdate method, of class Winnow.
*/
public void testSetWeightUpdate()
{
double weightUpdate = Winnow.<API key>;
Winnow instance = new Winnow();
assertEquals(weightUpdate, instance.getWeightUpdate(), 0.0);
weightUpdate = 1.234;
instance.setWeightUpdate(weightUpdate);
assertEquals(weightUpdate, instance.getWeightUpdate(), 0.0);
weightUpdate = 2.345;
instance.setWeightUpdate(weightUpdate);
assertEquals(weightUpdate, instance.getWeightUpdate(), 0.0);
boolean exceptionThrown = false;
try
{
instance.setWeightUpdate(1.0);
}
catch (<API key> e)
{
exceptionThrown = true;
}
finally
{
assertTrue(exceptionThrown);
}
assertEquals(weightUpdate, instance.getWeightUpdate(), 0.0);
exceptionThrown = false;
try
{
instance.setWeightUpdate(0.5);
}
catch (<API key> e)
{
exceptionThrown = true;
}
finally
{
assertTrue(exceptionThrown);
}
assertEquals(weightUpdate, instance.getWeightUpdate(), 0.0);
exceptionThrown = false;
try
{
instance.setWeightUpdate(0.0);
}
catch (<API key> e)
{
exceptionThrown = true;
}
finally
{
assertTrue(exceptionThrown);
}
assertEquals(weightUpdate, instance.getWeightUpdate(), 0.0);
exceptionThrown = false;
try
{
instance.setWeightUpdate(-1.0);
}
catch (<API key> e)
{
exceptionThrown = true;
}
finally
{
assertTrue(exceptionThrown);
}
assertEquals(weightUpdate, instance.getWeightUpdate(), 0.0);
}
/**
* Test of isDemoteToZero method, of class Winnow.
*/
public void testIsDemoteToZero()
{
this.testSetDemoteToZero();
}
/**
* Test of setDemoteToZero method, of class Winnow.
*/
public void testSetDemoteToZero()
{
boolean demoteToZero = Winnow.<API key>;
Winnow instance = new Winnow();
assertEquals(demoteToZero, instance.isDemoteToZero());
demoteToZero = true;
instance.setDemoteToZero(demoteToZero);
assertEquals(demoteToZero, instance.isDemoteToZero());
demoteToZero = false;
instance.setDemoteToZero(demoteToZero);
assertEquals(demoteToZero, instance.isDemoteToZero());
demoteToZero = true;
instance.setDemoteToZero(demoteToZero);
assertEquals(demoteToZero, instance.isDemoteToZero());
}
} |
<?php
App::uses('Model', 'Model');
/**
* AppModel class
*
* @package Cake.Test.Case.Model
*/
class AppModel extends Model {
/**
* findMethods property
*
* @var array
*/
public $findMethods = array('published' => true);
/**
* useDbConfig property
*
* @var array
*/
public $useDbConfig = 'test';
/**
* _findPublished custom find
*
* @return array
*/
protected function _findPublished($state, $query, $results = array()) {
if ($state === 'before') {
$query['conditions']['published'] = 'Y';
return $query;
}
return $results;
}
}
/**
* Test class
*
* @package Cake.Test.Case.Model
*/
class Test extends CakeTestModel {
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
/**
* name property
*
* @var string 'Test'
*/
public $name = 'Test';
/**
* schema property
*
* @var array
*/
protected $_schema = array(
'id' => array('type' => 'integer', 'null' => '', 'default' => '1', 'length' => '8', 'key' => 'primary'),
'name' => array('type' => 'string', 'null' => '', 'default' => '', 'length' => '255'),
'email' => array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '155'),
'notes' => array('type' => 'text', 'null' => '1', 'default' => 'write some notes here', 'length' => ''),
'created' => array('type' => 'date', 'null' => '1', 'default' => '', 'length' => ''),
'updated' => array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null)
);
}
/**
* TestAlias class
*
* @package Cake.Test.Case.Model
*/
class TestAlias extends CakeTestModel {
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
/**
* name property
*
* @var string 'TestAlias'
*/
public $name = 'TestAlias';
/**
* alias property
*
* @var string 'TestAlias'
*/
public $alias = 'TestAlias';
/**
* schema property
*
* @var array
*/
protected $_schema = array(
'id' => array('type' => 'integer', 'null' => '', 'default' => '1', 'length' => '8', 'key' => 'primary'),
'name' => array('type' => 'string', 'null' => '', 'default' => '', 'length' => '255'),
'email' => array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '155'),
'notes' => array('type' => 'text', 'null' => '1', 'default' => 'write some notes here', 'length' => ''),
'created' => array('type' => 'date', 'null' => '1', 'default' => '', 'length' => ''),
'updated' => array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null)
);
}
/**
* TestValidate class
*
* @package Cake.Test.Case.Model
*/
class TestValidate extends CakeTestModel {
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
/**
* name property
*
* @var string 'TestValidate'
*/
public $name = 'TestValidate';
/**
* schema property
*
* @var array
*/
protected $_schema = array(
'id' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'),
'title' => array('type' => 'string', 'null' => '', 'default' => '', 'length' => '255'),
'body' => array('type' => 'string', 'null' => '1', 'default' => '', 'length' => ''),
'number' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'),
'created' => array('type' => 'date', 'null' => '1', 'default' => '', 'length' => ''),
'modified' => array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null)
);
/**
* validateNumber method
*
* @param mixed $value
* @param mixed $options
* @return void
*/
public function validateNumber($value, $options) {
$options = array_merge(array('min' => 0, 'max' => 100), $options);
$valid = ($value['number'] >= $options['min'] && $value['number'] <= $options['max']);
return $valid;
}
/**
* validateTitle method
*
* @param mixed $value
* @return void
*/
public function validateTitle($value) {
return (!empty($value) && strpos(strtolower($value['title']), 'title-') === 0);
}
}
/**
* User class
*
* @package Cake.Test.Case.Model
*/
class User extends CakeTestModel {
/**
* name property
*
* @var string 'User'
*/
public $name = 'User';
/**
* validate property
*
* @var array
*/
public $validate = array('user' => 'notEmpty', 'password' => 'notEmpty');
/**
* beforeFind() callback used to run <API key>::testLazyLoad()
*
* @return bool
* @throws Exception
*/
public function beforeFind($queryData) {
if (!empty($queryData['lazyLoad'])) {
if (!isset($this->Article, $this->Comment, $this->ArticleFeatured)) {
throw new Exception('Unavailable associations');
}
}
return true;
}
}
/**
* Article class
*
* @package Cake.Test.Case.Model
*/
class Article extends CakeTestModel {
/**
* name property
*
* @var string 'Article'
*/
public $name = 'Article';
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array('User');
/**
* hasMany property
*
* @var array
*/
public $hasMany = array('Comment' => array('dependent' => true));
/**
* hasAndBelongsToMany property
*
* @var array
*/
public $hasAndBelongsToMany = array('Tag');
/**
* validate property
*
* @var array
*/
public $validate = array('user_id' => 'numeric', 'title' => array('allowEmpty' => false, 'rule' => 'notEmpty'), 'body' => 'notEmpty');
/**
* beforeSaveReturn property
*
* @var bool true
*/
public $beforeSaveReturn = true;
/**
* beforeSave method
*
* @return void
*/
public function beforeSave($options = array()) {
return $this->beforeSaveReturn;
}
/**
* titleDuplicate method
*
* @param mixed $title
* @return void
*/
public static function titleDuplicate($title) {
if ($title === 'My Article Title') {
return false;
}
return true;
}
}
/**
* Model stub for beforeDelete testing
*
* @see #250
* @package Cake.Test.Case.Model
*/
class BeforeDeleteComment extends CakeTestModel {
public $name = 'BeforeDeleteComment';
public $useTable = 'comments';
public function beforeDelete($cascade = true) {
$db = $this->getDataSource();
$db->delete($this, array($this->alias . '.' . $this->primaryKey => array(1, 3)));
return true;
}
}
/**
* NumericArticle class
*
* @package Cake.Test.Case.Model
*/
class NumericArticle extends CakeTestModel {
/**
* name property
*
* @var string 'NumericArticle'
*/
public $name = 'NumericArticle';
/**
* useTable property
*
* @var string 'numeric_articles'
*/
public $useTable = 'numeric_articles';
}
/**
* Article10 class
*
* @package Cake.Test.Case.Model
*/
class Article10 extends CakeTestModel {
/**
* name property
*
* @var string 'Article10'
*/
public $name = 'Article10';
/**
* useTable property
*
* @var string 'articles'
*/
public $useTable = 'articles';
/**
* hasMany property
*
* @var array
*/
public $hasMany = array('Comment' => array('dependent' => true, 'exclusive' => true));
}
/**
* ArticleFeatured class
*
* @package Cake.Test.Case.Model
*/
class ArticleFeatured extends CakeTestModel {
/**
* name property
*
* @var string 'ArticleFeatured'
*/
public $name = 'ArticleFeatured';
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array('User', 'Category');
/**
* hasOne property
*
* @var array
*/
public $hasOne = array('Featured');
/**
* hasMany property
*
* @var array
*/
public $hasMany = array('Comment' => array('className' => 'Comment', 'dependent' => true));
/**
* hasAndBelongsToMany property
*
* @var array
*/
public $hasAndBelongsToMany = array('Tag');
/**
* validate property
*
* @var array
*/
public $validate = array('user_id' => 'numeric', 'title' => 'notEmpty', 'body' => 'notEmpty');
}
/**
* Featured class
*
* @package Cake.Test.Case.Model
*/
class Featured extends CakeTestModel {
/**
* name property
*
* @var string 'Featured'
*/
public $name = 'Featured';
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array('ArticleFeatured', 'Category');
}
/**
* Tag class
*
* @package Cake.Test.Case.Model
*/
class Tag extends CakeTestModel {
/**
* name property
*
* @var string 'Tag'
*/
public $name = 'Tag';
}
/**
* ArticlesTag class
*
* @package Cake.Test.Case.Model
*/
class ArticlesTag extends CakeTestModel {
/**
* name property
*
* @var string 'ArticlesTag'
*/
public $name = 'ArticlesTag';
}
/**
* ArticleFeaturedsTag class
*
* @package Cake.Test.Case.Model
*/
class ArticleFeaturedsTag extends CakeTestModel {
/**
* name property
*
* @var string 'ArticleFeaturedsTag'
*/
public $name = 'ArticleFeaturedsTag';
}
/**
* Comment class
*
* @package Cake.Test.Case.Model
*/
class Comment extends CakeTestModel {
/**
* name property
*
* @var string 'Comment'
*/
public $name = 'Comment';
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array('Article', 'User');
/**
* hasOne property
*
* @var array
*/
public $hasOne = array('Attachment' => array('dependent' => true));
}
/**
* Modified Comment Class has afterFind Callback
*
* @package Cake.Test.Case.Model
*/
class ModifiedComment extends CakeTestModel {
/**
* name property
*
* @var string 'Comment'
*/
public $name = 'Comment';
/**
* useTable property
*
* @var string 'comments'
*/
public $useTable = 'comments';
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array('Article');
/**
* afterFind callback
*
* @return void
*/
public function afterFind($results, $primary = false) {
if (isset($results[0])) {
$results[0]['Comment']['callback'] = 'Fire';
}
return $results;
}
}
/**
* Modified Comment Class has afterFind Callback
*
* @package Cake.Test.Case.Model
*/
class <API key> extends CakeTestModel {
/**
* name property
*
* @var string 'Comment'
*/
public $name = 'Comment';
/**
* useTable property
*
* @var string 'comments'
*/
public $useTable = 'comments';
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array('Article');
/**
* afterFind callback
*
* @return void
*/
public function afterFind($results, $primary = false) {
if (isset($results[0])) {
$results[0]['Comment']['querytype'] = $this->findQueryType;
}
return $results;
}
}
/**
* <API key> class
*
* @package Cake.Test.Case.Model
*/
class <API key> extends AppModel {
/**
* actsAs parameter
*
* @var array
*/
public $actsAs = array(
'Containable'
);
}
/**
* MergeVarPluginPost class
*
* @package Cake.Test.Case.Model
*/
class MergeVarPluginPost extends <API key> {
/**
* actsAs parameter
*
* @var array
*/
public $actsAs = array(
'Tree'
);
/**
* useTable parameter
*
* @var string
*/
public $useTable = 'posts';
}
/**
* <API key> class
*
* @package Cake.Test.Case.Model
*/
class <API key> extends <API key> {
/**
* actsAs parameter
*
* @var array
*/
public $actsAs = array(
'Containable' => array('some_settings')
);
/**
* useTable parameter
*
* @var string
*/
public $useTable = 'comments';
}
/**
* Attachment class
*
* @package Cake.Test.Case.Model
*/
class Attachment extends CakeTestModel {
/**
* name property
*
* @var string 'Attachment'
*/
public $name = 'Attachment';
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array('Comment');
}
/**
* Category class
*
* @package Cake.Test.Case.Model
*/
class Category extends CakeTestModel {
/**
* name property
*
* @var string 'Category'
*/
public $name = 'Category';
}
/**
* CategoryThread class
*
* @package Cake.Test.Case.Model
*/
class CategoryThread extends CakeTestModel {
/**
* name property
*
* @var string 'CategoryThread'
*/
public $name = 'CategoryThread';
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array('ParentCategory' => array('className' => 'CategoryThread', 'foreignKey' => 'parent_id'));
}
/**
* Apple class
*
* @package Cake.Test.Case.Model
*/
class Apple extends CakeTestModel {
/**
* name property
*
* @var string 'Apple'
*/
public $name = 'Apple';
/**
* validate property
*
* @var array
*/
public $validate = array('name' => 'notEmpty');
/**
* hasOne property
*
* @var array
*/
public $hasOne = array('Sample');
/**
* hasMany property
*
* @var array
*/
public $hasMany = array('Child' => array('className' => 'Apple', 'dependent' => true));
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array('Parent' => array('className' => 'Apple', 'foreignKey' => 'apple_id'));
}
/**
* Sample class
*
* @package Cake.Test.Case.Model
*/
class Sample extends CakeTestModel {
/**
* name property
*
* @var string 'Sample'
*/
public $name = 'Sample';
/**
* belongsTo property
*
* @var string 'Apple'
*/
public $belongsTo = 'Apple';
}
/**
* AnotherArticle class
*
* @package Cake.Test.Case.Model
*/
class AnotherArticle extends CakeTestModel {
/**
* name property
*
* @var string 'AnotherArticle'
*/
public $name = 'AnotherArticle';
/**
* hasMany property
*
* @var string 'Home'
*/
public $hasMany = 'Home';
}
/**
* Advertisement class
*
* @package Cake.Test.Case.Model
*/
class Advertisement extends CakeTestModel {
/**
* name property
*
* @var string 'Advertisement'
*/
public $name = 'Advertisement';
/**
* hasMany property
*
* @var string 'Home'
*/
public $hasMany = 'Home';
}
/**
* Home class
*
* @package Cake.Test.Case.Model
*/
class Home extends CakeTestModel {
/**
* name property
*
* @var string 'Home'
*/
public $name = 'Home';
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array('AnotherArticle', 'Advertisement');
}
/**
* Post class
*
* @package Cake.Test.Case.Model
*/
class Post extends CakeTestModel {
/**
* name property
*
* @var string 'Post'
*/
public $name = 'Post';
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array('Author');
public function beforeFind($queryData) {
if (isset($queryData['connection'])) {
$this->useDbConfig = $queryData['connection'];
}
return true;
}
public function afterFind($results, $primary = false) {
$this->useDbConfig = 'test';
return $results;
}
}
/**
* Author class
*
* @package Cake.Test.Case.Model
*/
class Author extends CakeTestModel {
/**
* name property
*
* @var string 'Author'
*/
public $name = 'Author';
/**
* hasMany property
*
* @var array
*/
public $hasMany = array('Post');
/**
* afterFind method
*
* @param mixed $results
* @return void
*/
public function afterFind($results, $primary = false) {
$results[0]['Author']['test'] = 'working';
return $results;
}
}
/**
* ModifiedAuthor class
*
* @package Cake.Test.Case.Model
*/
class ModifiedAuthor extends Author {
/**
* name property
*
* @var string 'Author'
*/
public $name = 'Author';
/**
* afterFind method
*
* @param mixed $results
* @return void
*/
public function afterFind($results, $primary = false) {
foreach ($results as $index => $result) {
$results[$index]['Author']['user'] .= ' (CakePHP)';
}
return $results;
}
}
/**
* Project class
*
* @package Cake.Test.Case.Model
*/
class Project extends CakeTestModel {
/**
* name property
*
* @var string 'Project'
*/
public $name = 'Project';
/**
* hasMany property
*
* @var array
*/
public $hasMany = array('Thread');
}
/**
* Thread class
*
* @package Cake.Test.Case.Model
*/
class Thread extends CakeTestModel {
/**
* name property
*
* @var string 'Thread'
*/
public $name = 'Thread';
/**
* hasMany property
*
* @var array
*/
public $belongsTo = array('Project');
/**
* hasMany property
*
* @var array
*/
public $hasMany = array('Message');
}
/**
* Message class
*
* @package Cake.Test.Case.Model
*/
class Message extends CakeTestModel {
/**
* name property
*
* @var string 'Message'
*/
public $name = 'Message';
/**
* hasOne property
*
* @var array
*/
public $hasOne = array('Bid');
}
/**
* Bid class
*
* @package Cake.Test.Case.Model
*/
class Bid extends CakeTestModel {
/**
* name property
*
* @var string 'Bid'
*/
public $name = 'Bid';
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array('Message');
}
/**
* BiddingMessage class
*
* @package Cake.Test.Case.Model
*/
class BiddingMessage extends CakeTestModel {
/**
* name property
*
* @var string 'BiddingMessage'
*/
public $name = 'BiddingMessage';
/**
* primaryKey property
*
* @var string 'bidding'
*/
public $primaryKey = 'bidding';
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array(
'Bidding' => array(
'foreignKey' => false,
'conditions' => array('BiddingMessage.bidding = Bidding.bid')
)
);
}
/**
* Bidding class
*
* @package Cake.Test.Case.Model
*/
class Bidding extends CakeTestModel {
/**
* name property
*
* @var string 'Bidding'
*/
public $name = 'Bidding';
/**
* hasOne property
*
* @var array
*/
public $hasOne = array(
'BiddingMessage' => array(
'foreignKey' => false,
'conditions' => array('BiddingMessage.bidding = Bidding.bid'),
'dependent' => true
)
);
}
/**
* NodeAfterFind class
*
* @package Cake.Test.Case.Model
*/
class NodeAfterFind extends CakeTestModel {
/**
* name property
*
* @var string 'NodeAfterFind'
*/
public $name = 'NodeAfterFind';
/**
* validate property
*
* @var array
*/
public $validate = array('name' => 'notEmpty');
/**
* useTable property
*
* @var string 'apples'
*/
public $useTable = 'apples';
/**
* hasOne property
*
* @var array
*/
public $hasOne = array('Sample' => array('className' => 'NodeAfterFindSample'));
/**
* hasMany property
*
* @var array
*/
public $hasMany = array('Child' => array('className' => 'NodeAfterFind', 'dependent' => true));
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array('Parent' => array('className' => 'NodeAfterFind', 'foreignKey' => 'apple_id'));
/**
* afterFind method
*
* @param mixed $results
* @return void
*/
public function afterFind($results, $primary = false) {
return $results;
}
}
/**
* NodeAfterFindSample class
*
* @package Cake.Test.Case.Model
*/
class NodeAfterFindSample extends CakeTestModel {
/**
* name property
*
* @var string 'NodeAfterFindSample'
*/
public $name = 'NodeAfterFindSample';
/**
* useTable property
*
* @var string 'samples'
*/
public $useTable = 'samples';
/**
* belongsTo property
*
* @var string 'NodeAfterFind'
*/
public $belongsTo = 'NodeAfterFind';
}
/**
* NodeNoAfterFind class
*
* @package Cake.Test.Case.Model
*/
class NodeNoAfterFind extends CakeTestModel {
/**
* name property
*
* @var string 'NodeAfterFind'
*/
public $name = 'NodeAfterFind';
/**
* validate property
*
* @var array
*/
public $validate = array('name' => 'notEmpty');
/**
* useTable property
*
* @var string 'apples'
*/
public $useTable = 'apples';
/**
* hasOne property
*
* @var array
*/
public $hasOne = array('Sample' => array('className' => 'NodeAfterFindSample'));
/**
* hasMany property
*
* @var array
*/
public $hasMany = array('Child' => array('className' => 'NodeAfterFind', 'dependent' => true));
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array('Parent' => array('className' => 'NodeAfterFind', 'foreignKey' => 'apple_id'));
}
/**
* Node class
*
* @package Cake.Test.Case.Model
*/
class Node extends CakeTestModel{
/**
* name property
*
* @var string 'Node'
*/
public $name = 'Node';
/**
* hasAndBelongsToMany property
*
* @var array
*/
public $hasAndBelongsToMany = array(
'ParentNode' => array(
'className' => 'Node',
'joinTable' => 'dependency',
'with' => 'Dependency',
'foreignKey' => 'child_id',
'<API key>' => 'parent_id',
)
);
}
/**
* Dependency class
*
* @package Cake.Test.Case.Model
*/
class Dependency extends CakeTestModel {
/**
* name property
*
* @var string 'Dependency'
*/
public $name = 'Dependency';
}
/**
* ModelA class
*
* @package Cake.Test.Case.Model
*/
class ModelA extends CakeTestModel {
/**
* name property
*
* @var string 'ModelA'
*/
public $name = 'ModelA';
/**
* useTable property
*
* @var string 'apples'
*/
public $useTable = 'apples';
/**
* hasMany property
*
* @var array
*/
public $hasMany = array('ModelB', 'ModelC');
}
/**
* ModelB class
*
* @package Cake.Test.Case.Model
*/
class ModelB extends CakeTestModel {
/**
* name property
*
* @var string 'ModelB'
*/
public $name = 'ModelB';
/**
* useTable property
*
* @var string 'messages'
*/
public $useTable = 'messages';
/**
* hasMany property
*
* @var array
*/
public $hasMany = array('ModelD');
}
/**
* ModelC class
*
* @package Cake.Test.Case.Model
*/
class ModelC extends CakeTestModel {
/**
* name property
*
* @var string 'ModelC'
*/
public $name = 'ModelC';
/**
* useTable property
*
* @var string 'bids'
*/
public $useTable = 'bids';
/**
* hasMany property
*
* @var array
*/
public $hasMany = array('ModelD');
}
/**
* ModelD class
*
* @package Cake.Test.Case.Model
*/
class ModelD extends CakeTestModel {
/**
* name property
*
* @var string 'ModelD'
*/
public $name = 'ModelD';
/**
* useTable property
*
* @var string 'threads'
*/
public $useTable = 'threads';
}
/**
* Something class
*
* @package Cake.Test.Case.Model
*/
class Something extends CakeTestModel {
/**
* name property
*
* @var string 'Something'
*/
public $name = 'Something';
/**
* hasAndBelongsToMany property
*
* @var array
*/
public $hasAndBelongsToMany = array('SomethingElse' => array('with' => array('JoinThing' => array('doomed'))));
}
/**
* SomethingElse class
*
* @package Cake.Test.Case.Model
*/
class SomethingElse extends CakeTestModel {
/**
* name property
*
* @var string 'SomethingElse'
*/
public $name = 'SomethingElse';
/**
* hasAndBelongsToMany property
*
* @var array
*/
public $hasAndBelongsToMany = array('Something' => array('with' => 'JoinThing'));
}
/**
* JoinThing class
*
* @package Cake.Test.Case.Model
*/
class JoinThing extends CakeTestModel {
/**
* name property
*
* @var string 'JoinThing'
*/
public $name = 'JoinThing';
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array('Something', 'SomethingElse');
}
/**
* Portfolio class
*
* @package Cake.Test.Case.Model
*/
class Portfolio extends CakeTestModel {
/**
* name property
*
* @var string 'Portfolio'
*/
public $name = 'Portfolio';
/**
* hasAndBelongsToMany property
*
* @var array
*/
public $hasAndBelongsToMany = array('Item');
}
/**
* Item class
*
* @package Cake.Test.Case.Model
*/
class Item extends CakeTestModel {
/**
* name property
*
* @var string 'Item'
*/
public $name = 'Item';
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array('Syfile' => array('counterCache' => true));
/**
* hasAndBelongsToMany property
*
* @var array
*/
public $hasAndBelongsToMany = array('Portfolio' => array('unique' => false));
}
/**
* ItemsPortfolio class
*
* @package Cake.Test.Case.Model
*/
class ItemsPortfolio extends CakeTestModel {
/**
* name property
*
* @var string 'ItemsPortfolio'
*/
public $name = 'ItemsPortfolio';
}
/**
* Syfile class
*
* @package Cake.Test.Case.Model
*/
class Syfile extends CakeTestModel {
/**
* name property
*
* @var string 'Syfile'
*/
public $name = 'Syfile';
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array('Image');
}
/**
* Image class
*
* @package Cake.Test.Case.Model
*/
class Image extends CakeTestModel {
/**
* name property
*
* @var string 'Image'
*/
public $name = 'Image';
}
/**
* DeviceType class
*
* @package Cake.Test.Case.Model
*/
class DeviceType extends CakeTestModel {
/**
* name property
*
* @var string 'DeviceType'
*/
public $name = 'DeviceType';
/**
* order property
*
* @var array
*/
public $order = array('DeviceType.order' => 'ASC');
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array(
'DeviceTypeCategory', 'FeatureSet', '<API key>',
'Image' => array('className' => 'Document'),
'Extra1' => array('className' => 'Document'),
'Extra2' => array('className' => 'Document'));
/**
* hasMany property
*
* @var array
*/
public $hasMany = array('Device' => array('order' => array('Device.id' => 'ASC')));
}
/**
* DeviceTypeCategory class
*
* @package Cake.Test.Case.Model
*/
class DeviceTypeCategory extends CakeTestModel {
/**
* name property
*
* @var string 'DeviceTypeCategory'
*/
public $name = 'DeviceTypeCategory';
}
/**
* FeatureSet class
*
* @package Cake.Test.Case.Model
*/
class FeatureSet extends CakeTestModel {
/**
* name property
*
* @var string 'FeatureSet'
*/
public $name = 'FeatureSet';
}
/**
* <API key> class
*
* @package Cake.Test.Case.Model
*/
class <API key> extends CakeTestModel {
/**
* name property
*
* @var string '<API key>'
*/
public $name = '<API key>';
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array('Image' => array('className' => 'Device'));
}
/**
* Document class
*
* @package Cake.Test.Case.Model
*/
class Document extends CakeTestModel {
/**
* name property
*
* @var string 'Document'
*/
public $name = 'Document';
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array('DocumentDirectory');
}
/**
* Device class
*
* @package Cake.Test.Case.Model
*/
class Device extends CakeTestModel {
/**
* name property
*
* @var string 'Device'
*/
public $name = 'Device';
}
/**
* DocumentDirectory class
*
* @package Cake.Test.Case.Model
*/
class DocumentDirectory extends CakeTestModel {
/**
* name property
*
* @var string 'DocumentDirectory'
*/
public $name = 'DocumentDirectory';
}
/**
* PrimaryModel class
*
* @package Cake.Test.Case.Model
*/
class PrimaryModel extends CakeTestModel {
/**
* name property
*
* @var string 'PrimaryModel'
*/
public $name = 'PrimaryModel';
}
/**
* SecondaryModel class
*
* @package Cake.Test.Case.Model
*/
class SecondaryModel extends CakeTestModel {
/**
* name property
*
* @var string 'SecondaryModel'
*/
public $name = 'SecondaryModel';
}
/**
* JoinA class
*
* @package Cake.Test.Case.Model
*/
class JoinA extends CakeTestModel {
/**
* name property
*
* @var string 'JoinA'
*/
public $name = 'JoinA';
/**
* hasAndBelongsToMany property
*
* @var array
*/
public $hasAndBelongsToMany = array('JoinB', 'JoinC');
}
/**
* JoinB class
*
* @package Cake.Test.Case.Model
*/
class JoinB extends CakeTestModel {
/**
* name property
*
* @var string 'JoinB'
*/
public $name = 'JoinB';
/**
* hasAndBelongsToMany property
*
* @var array
*/
public $hasAndBelongsToMany = array('JoinA');
}
/**
* JoinC class
*
* @package Cake.Test.Case.Model
*/
class JoinC extends CakeTestModel {
/**
* name property
*
* @var string 'JoinC'
*/
public $name = 'JoinC';
/**
* hasAndBelongsToMany property
*
* @var array
*/
public $hasAndBelongsToMany = array('JoinA');
}
/**
* ThePaper class
*
* @package Cake.Test.Case.Model
*/
class ThePaper extends CakeTestModel {
/**
* name property
*
* @var string 'ThePaper'
*/
public $name = 'ThePaper';
/**
* useTable property
*
* @var string 'apples'
*/
public $useTable = 'apples';
/**
* hasOne property
*
* @var array
*/
public $hasOne = array('Itself' => array('className' => 'ThePaper', 'foreignKey' => 'apple_id'));
/**
* hasAndBelongsToMany property
*
* @var array
*/
public $hasAndBelongsToMany = array('Monkey' => array('joinTable' => 'the_paper_monkies', 'order' => 'id'));
}
/**
* Monkey class
*
* @package Cake.Test.Case.Model
*/
class Monkey extends CakeTestModel {
/**
* name property
*
* @var string 'Monkey'
*/
public $name = 'Monkey';
/**
* useTable property
*
* @var string 'devices'
*/
public $useTable = 'devices';
}
/**
* AssociationTest1 class
*
* @package Cake.Test.Case.Model
*/
class AssociationTest1 extends CakeTestModel {
/**
* useTable property
*
* @var string 'join_as'
*/
public $useTable = 'join_as';
/**
* name property
*
* @var string 'AssociationTest1'
*/
public $name = 'AssociationTest1';
/**
* hasAndBelongsToMany property
*
* @var array
*/
public $hasAndBelongsToMany = array('AssociationTest2' => array(
'unique' => false, 'joinTable' => 'join_as_join_bs', 'foreignKey' => false
));
}
/**
* AssociationTest2 class
*
* @package Cake.Test.Case.Model
*/
class AssociationTest2 extends CakeTestModel {
/**
* useTable property
*
* @var string 'join_bs'
*/
public $useTable = 'join_bs';
/**
* name property
*
* @var string 'AssociationTest2'
*/
public $name = 'AssociationTest2';
/**
* hasAndBelongsToMany property
*
* @var array
*/
public $hasAndBelongsToMany = array('AssociationTest1' => array(
'unique' => false, 'joinTable' => 'join_as_join_bs'
));
}
/**
* Callback class
*
* @package Cake.Test.Case.Model
*/
class Callback extends CakeTestModel {
}
/**
* <API key> class
*
* @package Cake.Test.Case.Model
*/
class <API key> extends CakeTestModel {
public $useTable = 'posts';
/**
* variable to control return of beforeValidate
*
* @var string
*/
public $<API key> = true;
/**
* variable to control return of beforeSave
*
* @var string
*/
public $beforeSaveReturn = true;
/**
* variable to control return of beforeDelete
*
* @var string
*/
public $beforeDeleteReturn = true;
/**
* beforeSave callback
*
* @return void
*/
public function beforeSave($options = array()) {
return $this->beforeSaveReturn;
}
/**
* beforeValidate callback
*
* @return void
*/
public function beforeValidate($options = array()) {
return $this-><API key>;
}
/**
* beforeDelete callback
*
* @return void
*/
public function beforeDelete($cascade = true) {
return $this->beforeDeleteReturn;
}
}
/**
* Uuid class
*
* @package Cake.Test.Case.Model
*/
class Uuid extends CakeTestModel {
/**
* name property
*
* @var string 'Uuid'
*/
public $name = 'Uuid';
}
/**
* DataTest class
*
* @package Cake.Test.Case.Model
*/
class DataTest extends CakeTestModel {
/**
* name property
*
* @var string 'DataTest'
*/
public $name = 'DataTest';
}
/**
* TheVoid class
*
* @package Cake.Test.Case.Model
*/
class TheVoid extends CakeTestModel {
/**
* name property
*
* @var string 'TheVoid'
*/
public $name = 'TheVoid';
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
}
/**
* ValidationTest1 class
*
* @package Cake.Test.Case.Model
*/
class ValidationTest1 extends CakeTestModel {
/**
* name property
*
* @var string 'ValidationTest'
*/
public $name = 'ValidationTest1';
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
/**
* schema property
*
* @var array
*/
protected $_schema = array();
/**
* validate property
*
* @var array
*/
public $validate = array(
'title' => 'notEmpty',
'published' => '<API key>',
'body' => array(
'notEmpty',
'/^.{5,}$/s' => 'no matchy',
'/^[0-9A-Za-z \\.]{1,}$/s'
)
);
/**
* <API key> method
*
* @param mixed $data
* @return void
*/
public function <API key>($data) {
return $data === 1;
}
/**
* Custom validator with parameters + default values
*
* @return array
*/
public function <API key>($data, $validator, $or = true, $ignoreOnSame = 'id') {
$this->validatorParams = get_defined_vars();
unset($this->validatorParams['this']);
return true;
}
/**
* Custom validator with message
*
* @return array
*/
public function <API key>($data) {
return 'This field will *never* validate! Muhahaha!';
}
/**
* Test validation with many parameters
*
* @return void
*/
public function <API key>($data, $one = 1, $two = 2, $three = 3, $four = 4, $five = 5, $six = 6) {
$this->validatorParams = get_defined_vars();
unset($this->validatorParams['this']);
return true;
}
}
/**
* ValidationTest2 class
*
* @package Cake.Test.Case.Model
*/
class ValidationTest2 extends CakeTestModel {
/**
* name property
*
* @var string 'ValidationTest2'
*/
public $name = 'ValidationTest2';
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
/**
* validate property
*
* @var array
*/
public $validate = array(
'title' => 'notEmpty',
'published' => '<API key>',
'body' => array(
'notEmpty',
'/^.{5,}$/s' => 'no matchy',
'/^[0-9A-Za-z \\.]{1,}$/s'
)
);
/**
* <API key> method
*
* @param mixed $data
* @return void
*/
public function <API key>($data) {
return $data === 1;
}
/**
* schema method
*
* @return void
*/
public function schema($field = false) {
return array();
}
}
/**
* Person class
*
* @package Cake.Test.Case.Model
*/
class Person extends CakeTestModel {
/**
* name property
*
* @var string 'Person'
*/
public $name = 'Person';
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array(
'Mother' => array(
'className' => 'Person',
'foreignKey' => 'mother_id'
),
'Father' => array(
'className' => 'Person',
'foreignKey' => 'father_id'
)
);
}
/**
* UnderscoreField class
*
* @package Cake.Test.Case.Model
*/
class UnderscoreField extends CakeTestModel {
/**
* name property
*
* @var string 'UnderscoreField'
*/
public $name = 'UnderscoreField';
}
/**
* Product class
*
* @package Cake.Test.Case.Model
*/
class Product extends CakeTestModel {
/**
* name property
*
* @var string 'Product'
*/
public $name = 'Product';
}
/**
* Story class
*
* @package Cake.Test.Case.Model
*/
class Story extends CakeTestModel {
/**
* name property
*
* @var string 'Story'
*/
public $name = 'Story';
/**
* primaryKey property
*
* @var string 'story'
*/
public $primaryKey = 'story';
/**
* hasAndBelongsToMany property
*
* @var array
*/
public $hasAndBelongsToMany = array('Tag' => array('foreignKey' => 'story'));
/**
* validate property
*
* @var array
*/
public $validate = array('title' => 'notEmpty');
}
/**
* Cd class
*
* @package Cake.Test.Case.Model
*/
class Cd extends CakeTestModel {
/**
* name property
*
* @var string 'Cd'
*/
public $name = 'Cd';
/**
* hasOne property
*
* @var array
*/
public $hasOne = array(
'OverallFavorite' => array(
'foreignKey' => 'model_id',
'dependent' => true,
'conditions' => array('model_type' => 'Cd')
)
);
}
/**
* Book class
*
* @package Cake.Test.Case.Model
*/
class Book extends CakeTestModel {
/**
* name property
*
* @var string 'Book'
*/
public $name = 'Book';
/**
* hasOne property
*
* @var array
*/
public $hasOne = array(
'OverallFavorite' => array(
'foreignKey' => 'model_id',
'dependent' => true,
'conditions' => 'OverallFavorite.model_type = \'Book\''
)
);
}
/**
* OverallFavorite class
*
* @package Cake.Test.Case.Model
*/
class OverallFavorite extends CakeTestModel {
/**
* name property
*
* @var string 'OverallFavorite'
*/
public $name = 'OverallFavorite';
}
/**
* MyUser class
*
* @package Cake.Test.Case.Model
*/
class MyUser extends CakeTestModel {
/**
* name property
*
* @var string 'MyUser'
*/
public $name = 'MyUser';
/**
* undocumented variable
*
* @var string
*/
public $hasAndBelongsToMany = array('MyCategory');
}
/**
* MyCategory class
*
* @package Cake.Test.Case.Model
*/
class MyCategory extends CakeTestModel {
/**
* name property
*
* @var string 'MyCategory'
*/
public $name = 'MyCategory';
/**
* undocumented variable
*
* @var string
*/
public $hasAndBelongsToMany = array('MyProduct', 'MyUser');
}
/**
* MyProduct class
*
* @package Cake.Test.Case.Model
*/
class MyProduct extends CakeTestModel {
/**
* name property
*
* @var string 'MyProduct'
*/
public $name = 'MyProduct';
/**
* undocumented variable
*
* @var string
*/
public $hasAndBelongsToMany = array('MyCategory');
}
/**
* MyCategoriesMyUser class
*
* @package Cake.Test.Case.Model
*/
class MyCategoriesMyUser extends CakeTestModel {
/**
* name property
*
* @var string 'MyCategoriesMyUser'
*/
public $name = 'MyCategoriesMyUser';
}
/**
* <API key> class
*
* @package Cake.Test.Case.Model
*/
class <API key> extends CakeTestModel {
/**
* name property
*
* @var string '<API key>'
*/
public $name = '<API key>';
}
/**
* NumberTree class
*
* @package Cake.Test.Case.Model
*/
class NumberTree extends CakeTestModel {
/**
* name property
*
* @var string 'NumberTree'
*/
public $name = 'NumberTree';
/**
* actsAs property
*
* @var array
*/
public $actsAs = array('Tree');
/**
* initialize method
*
* @param int $levelLimit
* @param int $childLimit
* @param mixed $currentLevel
* @param mixed $parent_id
* @param string $prefix
* @param bool $hierachial
* @return void
*/
public function initialize($levelLimit = 3, $childLimit = 3, $currentLevel = null, $parentId = null, $prefix = '1', $hierachial = true) {
if (!$parentId) {
$db = ConnectionManager::getDataSource($this->useDbConfig);
$db->truncate($this->table);
$this->save(array($this->name => array('name' => '1. Root')));
$this->initialize($levelLimit, $childLimit, 1, $this->id, '1', $hierachial);
$this->create(array());
}
if (!$currentLevel || $currentLevel > $levelLimit) {
return;
}
for ($i = 1; $i <= $childLimit; $i++) {
$name = $prefix . '.' . $i;
$data = array($this->name => array('name' => $name));
$this->create($data);
if ($hierachial) {
if ($this->name == 'UnconventionalTree') {
$data[$this->name]['join'] = $parentId;
} else {
$data[$this->name]['parent_id'] = $parentId;
}
}
$this->save($data);
$this->initialize($levelLimit, $childLimit, $currentLevel + 1, $this->id, $name, $hierachial);
}
}
}
/**
* NumberTreeTwo class
*
* @package Cake.Test.Case.Model
*/
class NumberTreeTwo extends NumberTree {
/**
* name property
*
* @var string 'NumberTree'
*/
public $name = 'NumberTreeTwo';
/**
* actsAs property
*
* @var array
*/
public $actsAs = array();
}
/**
* FlagTree class
*
* @package Cake.Test.Case.Model
*/
class FlagTree extends NumberTree {
/**
* name property
*
* @var string 'FlagTree'
*/
public $name = 'FlagTree';
}
/**
* UnconventionalTree class
*
* @package Cake.Test.Case.Model
*/
class UnconventionalTree extends NumberTree {
/**
* name property
*
* @var string 'FlagTree'
*/
public $name = 'UnconventionalTree';
public $actsAs = array(
'Tree' => array(
'parent' => 'join',
'left' => 'left',
'right' => 'right'
)
);
}
/**
* UuidTree class
*
* @package Cake.Test.Case.Model
*/
class UuidTree extends NumberTree {
/**
* name property
*
* @var string 'FlagTree'
*/
public $name = 'UuidTree';
}
/**
* Campaign class
*
* @package Cake.Test.Case.Model
*/
class Campaign extends CakeTestModel {
/**
* name property
*
* @var string 'Campaign'
*/
public $name = 'Campaign';
/**
* hasMany property
*
* @var array
*/
public $hasMany = array('Ad' => array('fields' => array('id', 'campaign_id', 'name')));
}
/**
* Ad class
*
* @package Cake.Test.Case.Model
*/
class Ad extends CakeTestModel {
/**
* name property
*
* @var string 'Ad'
*/
public $name = 'Ad';
/**
* actsAs property
*
* @var array
*/
public $actsAs = array('Tree');
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array('Campaign');
}
/**
* AfterTree class
*
* @package Cake.Test.Case.Model
*/
class AfterTree extends NumberTree {
/**
* name property
*
* @var string 'AfterTree'
*/
public $name = 'AfterTree';
/**
* actsAs property
*
* @var array
*/
public $actsAs = array('Tree');
public function afterSave($created) {
if ($created && isset($this->data['AfterTree'])) {
$this->data['AfterTree']['name'] = 'Six and One Half Changed in AfterTree::afterSave() but not in database';
}
}
}
/**
* Nonconformant Content class
*
* @package Cake.Test.Case.Model
*/
class Content extends CakeTestModel {
/**
* name property
*
* @var string 'Content'
*/
public $name = 'Content';
/**
* useTable property
*
* @var string 'Content'
*/
public $useTable = 'Content';
/**
* primaryKey property
*
* @var string 'iContentId'
*/
public $primaryKey = 'iContentId';
/**
* hasAndBelongsToMany property
*
* @var array
*/
public $hasAndBelongsToMany = array('Account' => array('className' => 'Account', 'with' => 'ContentAccount', 'joinTable' => 'ContentAccounts', 'foreignKey' => 'iContentId', '<API key>', 'iAccountId'));
}
/**
* Nonconformant Account class
*
* @package Cake.Test.Case.Model
*/
class Account extends CakeTestModel {
/**
* name property
*
* @var string 'Account'
*/
public $name = 'Account';
/**
* useTable property
*
* @var string 'Account'
*/
public $useTable = 'Accounts';
/**
* primaryKey property
*
* @var string 'iAccountId'
*/
public $primaryKey = 'iAccountId';
}
/**
* Nonconformant ContentAccount class
*
* @package Cake.Test.Case.Model
*/
class ContentAccount extends CakeTestModel {
/**
* name property
*
* @var string 'Account'
*/
public $name = 'ContentAccount';
/**
* useTable property
*
* @var string 'Account'
*/
public $useTable = 'ContentAccounts';
/**
* primaryKey property
*
* @var string 'iAccountId'
*/
public $primaryKey = 'iContentAccountsId';
}
/**
* FilmFile class
*
* @package Cake.Test.Case.Model
*/
class FilmFile extends CakeTestModel {
public $name = 'FilmFile';
}
/**
* Basket test model
*
* @package Cake.Test.Case.Model
*/
class Basket extends CakeTestModel {
public $name = 'Basket';
public $belongsTo = array(
'FilmFile' => array(
'className' => 'FilmFile',
'foreignKey' => 'object_id',
'conditions' => "Basket.type = 'file'",
'fields' => '',
'order' => ''
)
);
}
/**
* TestPluginArticle class
*
* @package Cake.Test.Case.Model
*/
class TestPluginArticle extends CakeTestModel {
/**
* name property
*
* @var string 'TestPluginArticle'
*/
public $name = 'TestPluginArticle';
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array('User');
/**
* hasMany property
*
* @var array
*/
public $hasMany = array(
'TestPluginComment' => array(
'className' => 'TestPlugin.TestPluginComment',
'foreignKey' => 'article_id',
'dependent' => true
)
);
}
/**
* TestPluginComment class
*
* @package Cake.Test.Case.Model
*/
class TestPluginComment extends CakeTestModel {
/**
* name property
*
* @var string 'TestPluginComment'
*/
public $name = 'TestPluginComment';
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array(
'TestPluginArticle' => array(
'className' => 'TestPlugin.TestPluginArticle',
'foreignKey' => 'article_id',
),
'TestPlugin.User'
);
}
/**
* Uuidportfolio class
*
* @package Cake.Test.Case.Model
*/
class Uuidportfolio extends CakeTestModel {
/**
* name property
*
* @var string 'Uuidportfolio'
*/
public $name = 'Uuidportfolio';
/**
* hasAndBelongsToMany property
*
* @var array
*/
public $hasAndBelongsToMany = array('Uuiditem');
}
/**
* Uuiditem class
*
* @package Cake.Test.Case.Model
*/
class Uuiditem extends CakeTestModel {
/**
* name property
*
* @var string 'Item'
*/
public $name = 'Uuiditem';
/**
* hasAndBelongsToMany property
*
* @var array
*/
public $hasAndBelongsToMany = array('Uuidportfolio' => array('with' => '<API key>'));
}
/**
* UuiditemsPortfolio class
*
* @package Cake.Test.Case.Model
*/
class <API key> extends CakeTestModel {
/**
* name property
*
* @var string 'ItemsPortfolio'
*/
public $name = '<API key>';
}
/**
* <API key> class
*
* @package Cake.Test.Case.Model
*/
class <API key> extends CakeTestModel {
/**
* name property
*
* @var string
*/
public $name = '<API key>';
}
/**
* TranslateTestModel class.
*
* @package Cake.Test.Case.Model
*/
class TranslateTestModel extends CakeTestModel {
/**
* name property
*
* @var string 'TranslateTestModel'
*/
public $name = 'TranslateTestModel';
/**
* useTable property
*
* @var string 'i18n'
*/
public $useTable = 'i18n';
/**
* displayField property
*
* @var string 'field'
*/
public $displayField = 'field';
}
/**
* TranslateTestModel class.
*
* @package Cake.Test.Case.Model
*/
class TranslateWithPrefix extends CakeTestModel {
/**
* name property
*
* @var string 'TranslateTestModel'
*/
public $name = 'TranslateWithPrefix';
/**
* tablePrefix property
*
* @var string 'i18n'
*/
public $tablePrefix = 'i18n_';
/**
* displayField property
*
* @var string 'field'
*/
public $displayField = 'field';
}
/**
* TranslatedItem class.
*
* @package Cake.Test.Case.Model
*/
class TranslatedItem extends CakeTestModel {
/**
* name property
*
* @var string 'TranslatedItem'
*/
public $name = 'TranslatedItem';
/**
* cacheQueries property
*
* @var bool false
*/
public $cacheQueries = false;
/**
* actsAs property
*
* @var array
*/
public $actsAs = array('Translate' => array('content', 'title'));
/**
* translateModel property
*
* @var string 'TranslateTestModel'
*/
public $translateModel = 'TranslateTestModel';
}
/**
* TranslatedItem class.
*
* @package Cake.Test.Case.Model
*/
class TranslatedItem2 extends CakeTestModel {
/**
* name property
*
* @var string 'TranslatedItem'
*/
public $name = 'TranslatedItem';
/**
* cacheQueries property
*
* @var bool false
*/
public $cacheQueries = false;
/**
* actsAs property
*
* @var array
*/
public $actsAs = array('Translate' => array('content', 'title'));
/**
* translateModel property
*
* @var string 'TranslateTestModel'
*/
public $translateModel = 'TranslateWithPrefix';
}
/**
* <API key> class.
*
* @package Cake.Test.Case.Model
*/
class <API key> extends CakeTestModel {
/**
* name property
*
* @var string '<API key>'
*/
public $name = '<API key>';
/**
* useTable property
*
* @var string 'translated_items'
*/
public $useTable = 'translated_items';
/**
* cacheQueries property
*
* @var bool false
*/
public $cacheQueries = false;
/**
* actsAs property
*
* @var array
*/
public $actsAs = array('Translate' => array('content', 'title'));
/**
* translateModel property
*
* @var string 'TranslateTestModel'
*/
public $translateModel = 'TranslateTestModel';
/**
* translateTable property
*
* @var string 'another_i18n'
*/
public $translateTable = 'another_i18n';
}
/**
* <API key> class.
*
* @package Cake.Test.Case.Model
*/
class <API key> extends CakeTestModel {
/**
* name property
*
* @var string '<API key>'
*/
public $name = '<API key>';
/**
* useTable property
*
* @var string 'article_i18n'
*/
public $useTable = 'article_i18n';
/**
* displayField property
*
* @var string 'field'
*/
public $displayField = 'field';
}
/**
* TranslatedArticle class.
*
* @package Cake.Test.Case.Model
*/
class TranslatedArticle extends CakeTestModel {
/**
* name property
*
* @var string 'TranslatedArticle'
*/
public $name = 'TranslatedArticle';
/**
* cacheQueries property
*
* @var bool false
*/
public $cacheQueries = false;
/**
* actsAs property
*
* @var array
*/
public $actsAs = array('Translate' => array('title', 'body'));
/**
* translateModel property
*
* @var string '<API key>'
*/
public $translateModel = '<API key>';
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array('User');
}
class CounterCacheUser extends CakeTestModel {
public $name = 'CounterCacheUser';
public $alias = 'User';
public $hasMany = array(
'Post' => array(
'className' => 'CounterCachePost',
'foreignKey' => 'user_id'
)
);
}
class CounterCachePost extends CakeTestModel {
public $name = 'CounterCachePost';
public $alias = 'Post';
public $belongsTo = array(
'User' => array(
'className' => 'CounterCacheUser',
'foreignKey' => 'user_id',
'counterCache' => true
)
);
}
class <API key> extends CakeTestModel {
public $name = '<API key>';
public $alias = 'User';
public $primaryKey = 'uid';
public $hasMany = array(
'Post' => array(
'className' => '<API key>',
'foreignKey' => 'uid'
)
);
}
class <API key> extends CakeTestModel {
public $name = '<API key>';
public $alias = 'Post';
public $primaryKey = 'pid';
public $belongsTo = array(
'User' => array(
'className' => '<API key>',
'foreignKey' => 'uid',
'counterCache' => true
)
);
}
class ArticleB extends CakeTestModel {
public $name = 'ArticleB';
public $useTable = 'articles';
public $hasAndBelongsToMany = array(
'TagB' => array(
'className' => 'TagB',
'joinTable' => 'articles_tags',
'foreignKey' => 'article_id',
'<API key>' => 'tag_id'
)
);
}
class TagB extends CakeTestModel {
public $name = 'TagB';
public $useTable = 'tags';
public $hasAndBelongsToMany = array(
'ArticleB' => array(
'className' => 'ArticleB',
'joinTable' => 'articles_tags',
'foreignKey' => 'tag_id',
'<API key>' => 'article_id'
)
);
}
class Fruit extends CakeTestModel {
public $name = 'Fruit';
public $hasAndBelongsToMany = array(
'UuidTag' => array(
'className' => 'UuidTag',
'joinTable' => 'fruits_uuid_tags',
'foreignKey' => 'fruit_id',
'<API key>' => 'uuid_tag_id',
'with' => 'FruitsUuidTag'
)
);
}
class FruitsUuidTag extends CakeTestModel {
public $name = 'FruitsUuidTag';
public $primaryKey = false;
public $belongsTo = array(
'UuidTag' => array(
'className' => 'UuidTag',
'foreignKey' => 'uuid_tag_id',
),
'Fruit' => array(
'className' => 'Fruit',
'foreignKey' => 'fruit_id',
)
);
}
class UuidTag extends CakeTestModel {
public $name = 'UuidTag';
public $hasAndBelongsToMany = array(
'Fruit' => array(
'className' => 'Fruit',
'joinTable' => 'fruits_uuid_tags',
'foreign_key' => 'uuid_tag_id',
'<API key>' => 'fruit_id',
'with' => 'FruitsUuidTag'
)
);
}
class FruitNoWith extends CakeTestModel {
public $name = 'Fruit';
public $useTable = 'fruits';
public $hasAndBelongsToMany = array(
'UuidTag' => array(
'className' => 'UuidTagNoWith',
'joinTable' => 'fruits_uuid_tags',
'foreignKey' => 'fruit_id',
'<API key>' => 'uuid_tag_id',
)
);
}
class UuidTagNoWith extends CakeTestModel {
public $name = 'UuidTag';
public $useTable = 'uuid_tags';
public $hasAndBelongsToMany = array(
'Fruit' => array(
'className' => 'FruitNoWith',
'joinTable' => 'fruits_uuid_tags',
'foreign_key' => 'uuid_tag_id',
'<API key>' => 'fruit_id',
)
);
}
class ProductUpdateAll extends CakeTestModel {
public $name = 'ProductUpdateAll';
public $useTable = 'product_update_all';
}
class GroupUpdateAll extends CakeTestModel {
public $name = 'GroupUpdateAll';
public $useTable = 'group_update_all';
}
class <API key> extends CakeTestModel {
public $name = '<API key>';
public $useTable = 'samples';
public function afterSave($created) {
$data = array(
array('apple_id' => 1, 'name' => 'sample6'),
);
$this->saveAll($data, array('atomic' => true, 'callbacks' => false));
}
}
class <API key> extends CakeTestModel {
public $name = '<API key>';
public $useTable = 'samples';
public function afterSave($created) {
$data = array(
array('apple_id' => 1, 'name' => 'sample6'),
);
$this->saveMany($data, array('atomic' => true, 'callbacks' => false));
}
}
class Site extends CakeTestModel {
public $name = 'Site';
public $useTable = 'sites';
public $hasAndBelongsToMany = array(
'Domain' => array('unique' => 'keepExisting'),
);
}
class Domain extends CakeTestModel {
public $name = 'Domain';
public $useTable = 'domains';
public $hasAndBelongsToMany = array(
'Site' => array('unique' => 'keepExisting'),
);
}
/**
* TestModel class
*
* @package Cake.Test.Case.Model
*/
class TestModel extends CakeTestModel {
/**
* name property
*
* @var string 'TestModel'
*/
public $name = 'TestModel';
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
/**
* schema property
*
* @var array
*/
protected $_schema = array(
'id' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'),
'client_id' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '11'),
'name' => array('type' => 'string', 'null' => '', 'default' => '', 'length' => '255'),
'login' => array('type' => 'string', 'null' => '', 'default' => '', 'length' => '255'),
'passwd' => array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '255'),
'addr_1' => array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '255'),
'addr_2' => array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '25'),
'zip_code' => array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '155'),
'city' => array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '155'),
'country' => array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '155'),
'phone' => array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '155'),
'fax' => array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '155'),
'url' => array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '255'),
'email' => array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '155'),
'comments' => array('type' => 'text', 'null' => '1', 'default' => '', 'length' => '155'),
'last_login' => array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => ''),
'created' => array('type' => 'date', 'null' => '1', 'default' => '', 'length' => ''),
'updated' => array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null)
);
/**
* find method
*
* @param mixed $conditions
* @param mixed $fields
* @param mixed $order
* @param mixed $recursive
* @return void
*/
public function find($conditions = null, $fields = null, $order = null, $recursive = null) {
return array($conditions, $fields);
}
/**
* findAll method
*
* @param mixed $conditions
* @param mixed $fields
* @param mixed $order
* @param mixed $recursive
* @return void
*/
public function findAll($conditions = null, $fields = null, $order = null, $recursive = null) {
return $conditions;
}
}
/**
* TestModel2 class
*
* @package Cake.Test.Case.Model
*/
class TestModel2 extends CakeTestModel {
/**
* name property
*
* @var string 'TestModel2'
*/
public $name = 'TestModel2';
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
}
/**
* TestModel4 class
*
* @package Cake.Test.Case.Model
*/
class TestModel3 extends CakeTestModel {
/**
* name property
*
* @var string 'TestModel3'
*/
public $name = 'TestModel3';
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
}
/**
* TestModel4 class
*
* @package Cake.Test.Case.Model
*/
class TestModel4 extends CakeTestModel {
/**
* name property
*
* @var string 'TestModel4'
*/
public $name = 'TestModel4';
/**
* table property
*
* @var string 'test_model4'
*/
public $table = 'test_model4';
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array(
'TestModel4Parent' => array(
'className' => 'TestModel4',
'foreignKey' => 'parent_id'
)
);
/**
* hasOne property
*
* @var array
*/
public $hasOne = array(
'TestModel5' => array(
'className' => 'TestModel5',
'foreignKey' => 'test_model4_id'
)
);
/**
* hasAndBelongsToMany property
*
* @var array
*/
public $hasAndBelongsToMany = array('TestModel7' => array(
'className' => 'TestModel7',
'joinTable' => '<API key>',
'foreignKey' => 'test_model4_id',
'<API key>' => 'test_model7_id',
'with' => '<API key>'
));
/**
* schema method
*
* @return void
*/
public function schema($field = false) {
if (!isset($this->_schema)) {
$this->_schema = array(
'id' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'),
'name' => array('type' => 'string', 'null' => '', 'default' => '', 'length' => '255'),
'created' => array('type' => 'date', 'null' => '1', 'default' => '', 'length' => ''),
'updated' => array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null)
);
}
return $this->_schema;
}
}
/**
* <API key> class
*
* @package Cake.Test.Case.Model
*/
class <API key> extends CakeTestModel {
/**
* name property
*
* @var string '<API key>'
*/
public $name = '<API key>';
/**
* table property
*
* @var string '<API key>'
*/
public $table = '<API key>';
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
/**
* schema method
*
* @return void
*/
public function schema($field = false) {
if (!isset($this->_schema)) {
$this->_schema = array(
'test_model4_id' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'),
'test_model7_id' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '8')
);
}
return $this->_schema;
}
}
/**
* TestModel5 class
*
* @package Cake.Test.Case.Model
*/
class TestModel5 extends CakeTestModel {
/**
* name property
*
* @var string 'TestModel5'
*/
public $name = 'TestModel5';
/**
* table property
*
* @var string 'test_model5'
*/
public $table = 'test_model5';
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array('TestModel4' => array(
'className' => 'TestModel4',
'foreignKey' => 'test_model4_id'
));
/**
* hasMany property
*
* @var array
*/
public $hasMany = array('TestModel6' => array(
'className' => 'TestModel6',
'foreignKey' => 'test_model5_id'
));
/**
* schema method
*
* @return void
*/
public function schema($field = false) {
if (!isset($this->_schema)) {
$this->_schema = array(
'id' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'),
'test_model4_id' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'),
'name' => array('type' => 'string', 'null' => '', 'default' => '', 'length' => '255'),
'created' => array('type' => 'date', 'null' => '1', 'default' => '', 'length' => ''),
'updated' => array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null)
);
}
return $this->_schema;
}
}
/**
* TestModel6 class
*
* @package Cake.Test.Case.Model
*/
class TestModel6 extends CakeTestModel {
/**
* name property
*
* @var string 'TestModel6'
*/
public $name = 'TestModel6';
/**
* table property
*
* @var string 'test_model6'
*/
public $table = 'test_model6';
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array(
'TestModel5' => array(
'className' => 'TestModel5',
'foreignKey' => 'test_model5_id'
)
);
/**
* schema method
*
* @return void
*/
public function schema($field = false) {
if (!isset($this->_schema)) {
$this->_schema = array(
'id' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'),
'test_model5_id' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'),
'name' => array('type' => 'string', 'null' => '', 'default' => '', 'length' => '255'),
'created' => array('type' => 'date', 'null' => '1', 'default' => '', 'length' => ''),
'updated' => array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null)
);
}
return $this->_schema;
}
}
/**
* TestModel7 class
*
* @package Cake.Test.Case.Model
*/
class TestModel7 extends CakeTestModel {
/**
* name property
*
* @var string 'TestModel7'
*/
public $name = 'TestModel7';
/**
* table property
*
* @var string 'test_model7'
*/
public $table = 'test_model7';
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
/**
* schema method
*
* @return void
*/
public function schema($field = false) {
if (!isset($this->_schema)) {
$this->_schema = array(
'id' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'),
'name' => array('type' => 'string', 'null' => '', 'default' => '', 'length' => '255'),
'created' => array('type' => 'date', 'null' => '1', 'default' => '', 'length' => ''),
'updated' => array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null)
);
}
return $this->_schema;
}
}
/**
* TestModel8 class
*
* @package Cake.Test.Case.Model
*/
class TestModel8 extends CakeTestModel {
/**
* name property
*
* @var string 'TestModel8'
*/
public $name = 'TestModel8';
/**
* table property
*
* @var string 'test_model8'
*/
public $table = 'test_model8';
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
/**
* hasOne property
*
* @var array
*/
public $hasOne = array(
'TestModel9' => array(
'className' => 'TestModel9',
'foreignKey' => 'test_model8_id',
'conditions' => 'TestModel9.name != \'mariano\''
)
);
/**
* schema method
*
* @return void
*/
public function schema($field = false) {
if (!isset($this->_schema)) {
$this->_schema = array(
'id' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'),
'test_model9_id' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'),
'name' => array('type' => 'string', 'null' => '', 'default' => '', 'length' => '255'),
'created' => array('type' => 'date', 'null' => '1', 'default' => '', 'length' => ''),
'updated' => array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null)
);
}
return $this->_schema;
}
}
/**
* TestModel9 class
*
* @package Cake.Test.Case.Model
*/
class TestModel9 extends CakeTestModel {
/**
* name property
*
* @var string 'TestModel9'
*/
public $name = 'TestModel9';
/**
* table property
*
* @var string 'test_model9'
*/
public $table = 'test_model9';
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array(
'TestModel8' => array(
'className' => 'TestModel8',
'foreignKey' => 'test_model8_id',
'conditions' => 'TestModel8.name != \'larry\''
)
);
/**
* schema method
*
* @return void
*/
public function schema($field = false) {
if (!isset($this->_schema)) {
$this->_schema = array(
'id' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'),
'test_model8_id' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '11'),
'name' => array('type' => 'string', 'null' => '', 'default' => '', 'length' => '255'),
'created' => array('type' => 'date', 'null' => '1', 'default' => '', 'length' => ''),
'updated' => array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null)
);
}
return $this->_schema;
}
}
/**
* Level class
*
* @package Cake.Test.Case.Model
*/
class Level extends CakeTestModel {
/**
* name property
*
* @var string 'Level'
*/
public $name = 'Level';
/**
* table property
*
* @var string 'level'
*/
public $table = 'level';
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
/**
* hasMany property
*
* @var array
*/
public $hasMany = array(
'Group' => array(
'className' => 'Group'
),
'User2' => array(
'className' => 'User2'
)
);
/**
* schema method
*
* @return void
*/
public function schema($field = false) {
if (!isset($this->_schema)) {
$this->_schema = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => '10'),
'name' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => '20'),
);
}
return $this->_schema;
}
}
/**
* Group class
*
* @package Cake.Test.Case.Model
*/
class Group extends CakeTestModel {
/**
* name property
*
* @var string 'Group'
*/
public $name = 'Group';
/**
* table property
*
* @var string 'group'
*/
public $table = 'group';
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array('Level');
/**
* hasMany property
*
* @var array
*/
public $hasMany = array('Category2', 'User2');
/**
* schema method
*
* @return void
*/
public function schema($field = false) {
if (!isset($this->_schema)) {
$this->_schema = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => '10'),
'level_id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => '10'),
'name' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => '20'),
);
}
return $this->_schema;
}
}
/**
* User2 class
*
* @package Cake.Test.Case.Model
*/
class User2 extends CakeTestModel {
/**
* name property
*
* @var string 'User2'
*/
public $name = 'User2';
/**
* table property
*
* @var string 'user'
*/
public $table = 'user';
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array(
'Group' => array(
'className' => 'Group'
),
'Level' => array(
'className' => 'Level'
)
);
/**
* hasMany property
*
* @var array
*/
public $hasMany = array(
'Article2' => array(
'className' => 'Article2'
),
);
/**
* schema method
*
* @return void
*/
public function schema($field = false) {
if (!isset($this->_schema)) {
$this->_schema = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => '10'),
'group_id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => '10'),
'level_id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => '10'),
'name' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => '20'),
);
}
return $this->_schema;
}
}
/**
* Category2 class
*
* @package Cake.Test.Case.Model
*/
class Category2 extends CakeTestModel {
/**
* name property
*
* @var string 'Category2'
*/
public $name = 'Category2';
/**
* table property
*
* @var string 'category'
*/
public $table = 'category';
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array(
'Group' => array(
'className' => 'Group',
'foreignKey' => 'group_id'
),
'ParentCat' => array(
'className' => 'Category2',
'foreignKey' => 'parent_id'
)
);
/**
* hasMany property
*
* @var array
*/
public $hasMany = array(
'ChildCat' => array(
'className' => 'Category2',
'foreignKey' => 'parent_id'
),
'Article2' => array(
'className' => 'Article2',
'order' => 'Article2.published_date DESC',
'foreignKey' => 'category_id',
'limit' => '3')
);
/**
* schema method
*
* @return void
*/
public function schema($field = false) {
if (!isset($this->_schema)) {
$this->_schema = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => '', 'length' => '10'),
'group_id' => array('type' => 'integer', 'null' => false, 'default' => '', 'length' => '10'),
'parent_id' => array('type' => 'integer', 'null' => false, 'default' => '', 'length' => '10'),
'name' => array('type' => 'string', 'null' => false, 'default' => '', 'length' => '255'),
'icon' => array('type' => 'string', 'null' => false, 'default' => '', 'length' => '255'),
'description' => array('type' => 'text', 'null' => false, 'default' => '', 'length' => null),
);
}
return $this->_schema;
}
}
/**
* Article2 class
*
* @package Cake.Test.Case.Model
*/
class Article2 extends CakeTestModel {
/**
* name property
*
* @var string 'Article2'
*/
public $name = 'Article2';
/**
* table property
*
* @var string 'article'
*/
public $table = 'articles';
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array(
'Category2' => array('className' => 'Category2'),
'User2' => array('className' => 'User2')
);
/**
* schema method
*
* @return void
*/
public function schema($field = false) {
if (!isset($this->_schema)) {
$this->_schema = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => '', 'length' => '10'),
'category_id' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => '10'),
'user_id' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => '10'),
'rate_count' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => '10'),
'rate_sum' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => '10'),
'viewed' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => '10'),
'version' => array('type' => 'string', 'null' => true, 'default' => '', 'length' => '45'),
'title' => array('type' => 'string', 'null' => false, 'default' => '', 'length' => '200'),
'intro' => array('text' => 'string', 'null' => true, 'default' => '', 'length' => null),
'comments' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => '4'),
'body' => array('text' => 'string', 'null' => true, 'default' => '', 'length' => null),
'isdraft' => array('type' => 'boolean', 'null' => false, 'default' => '0', 'length' => '1'),
'allow_comments' => array('type' => 'boolean', 'null' => false, 'default' => '1', 'length' => '1'),
'moderate_comments' => array('type' => 'boolean', 'null' => false, 'default' => '1', 'length' => '1'),
'published' => array('type' => 'boolean', 'null' => false, 'default' => '0', 'length' => '1'),
'multipage' => array('type' => 'boolean', 'null' => false, 'default' => '0', 'length' => '1'),
'published_date' => array('type' => 'datetime', 'null' => true, 'default' => '', 'length' => null),
'created' => array('type' => 'datetime', 'null' => false, 'default' => '0000-00-00 00:00:00', 'length' => null),
'modified' => array('type' => 'datetime', 'null' => false, 'default' => '0000-00-00 00:00:00', 'length' => null)
);
}
return $this->_schema;
}
}
/**
* CategoryFeatured2 class
*
* @package Cake.Test.Case.Model
*/
class CategoryFeatured2 extends CakeTestModel {
/**
* name property
*
* @var string 'CategoryFeatured2'
*/
public $name = 'CategoryFeatured2';
/**
* table property
*
* @var string 'category_featured'
*/
public $table = 'category_featured';
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
/**
* schema method
*
* @return void
*/
public function schema($field = false) {
if (!isset($this->_schema)) {
$this->_schema = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => '', 'length' => '10'),
'parent_id' => array('type' => 'integer', 'null' => false, 'default' => '', 'length' => '10'),
'name' => array('type' => 'string', 'null' => false, 'default' => '', 'length' => '255'),
'icon' => array('type' => 'string', 'null' => false, 'default' => '', 'length' => '255'),
'description' => array('text' => 'string', 'null' => false, 'default' => '', 'length' => null)
);
}
return $this->_schema;
}
}
/**
* Featured2 class
*
* @package Cake.Test.Case.Model
*/
class Featured2 extends CakeTestModel {
/**
* name property
*
* @var string 'Featured2'
*/
public $name = 'Featured2';
/**
* table property
*
* @var string 'featured2'
*/
public $table = 'featured2';
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array(
'CategoryFeatured2' => array(
'className' => 'CategoryFeatured2'
)
);
/**
* schema method
*
* @return void
*/
public function schema($field = false) {
if (!isset($this->_schema)) {
$this->_schema = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => '10'),
'article_id' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => '10'),
'category_id' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => '10'),
'name' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => '20')
);
}
return $this->_schema;
}
}
/**
* Comment2 class
*
* @package Cake.Test.Case.Model
*/
class Comment2 extends CakeTestModel {
/**
* name property
*
* @var string 'Comment2'
*/
public $name = 'Comment2';
/**
* table property
*
* @var string 'comment'
*/
public $table = 'comment';
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array('ArticleFeatured2', 'User2');
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
/**
* schema method
*
* @return void
*/
public function schema($field = false) {
if (!isset($this->_schema)) {
$this->_schema = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => '10'),
'article_featured_id' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => '10'),
'user_id' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => '10'),
'name' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => '20')
);
}
return $this->_schema;
}
}
/**
* ArticleFeatured2 class
*
* @package Cake.Test.Case.Model
*/
class ArticleFeatured2 extends CakeTestModel {
/**
* name property
*
* @var string 'ArticleFeatured2'
*/
public $name = 'ArticleFeatured2';
/**
* table property
*
* @var string 'article_featured'
*/
public $table = 'article_featured';
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array(
'CategoryFeatured2' => array('className' => 'CategoryFeatured2'),
'User2' => array('className' => 'User2')
);
/**
* hasOne property
*
* @var array
*/
public $hasOne = array(
'Featured2' => array('className' => 'Featured2')
);
/**
* hasMany property
*
* @var array
*/
public $hasMany = array(
'Comment2' => array('className' => 'Comment2', 'dependent' => true)
);
/**
* schema method
*
* @return void
*/
public function schema($field = false) {
if (!isset($this->_schema)) {
$this->_schema = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => '10'),
'<API key>' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => '10'),
'user_id' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => '10'),
'title' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => '20'),
'body' => array('text' => 'string', 'null' => true, 'default' => '', 'length' => null),
'published' => array('type' => 'boolean', 'null' => false, 'default' => '0', 'length' => '1'),
'published_date' => array('type' => 'datetime', 'null' => true, 'default' => '', 'length' => null),
'created' => array('type' => 'datetime', 'null' => false, 'default' => '0000-00-00 00:00:00', 'length' => null),
'modified' => array('type' => 'datetime', 'null' => false, 'default' => '0000-00-00 00:00:00', 'length' => null)
);
}
return $this->_schema;
}
}
/**
* MysqlTestModel class
*
* @package Cake.Test.Case.Model
*/
class MysqlTestModel extends Model {
/**
* name property
*
* @var string 'MysqlTestModel'
*/
public $name = 'MysqlTestModel';
/**
* useTable property
*
* @var bool false
*/
public $useTable = false;
/**
* find method
*
* @param mixed $conditions
* @param mixed $fields
* @param mixed $order
* @param mixed $recursive
* @return void
*/
public function find($conditions = null, $fields = null, $order = null, $recursive = null) {
return $conditions;
}
/**
* findAll method
*
* @param mixed $conditions
* @param mixed $fields
* @param mixed $order
* @param mixed $recursive
* @return void
*/
public function findAll($conditions = null, $fields = null, $order = null, $recursive = null) {
return $conditions;
}
/**
* schema method
*
* @return void
*/
public function schema($field = false) {
return array(
'id' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'),
'client_id' => array('type' => 'integer', 'null' => '', 'default' => '0', 'length' => '11'),
'name' => array('type' => 'string', 'null' => '', 'default' => '', 'length' => '255'),
'login' => array('type' => 'string', 'null' => '', 'default' => '', 'length' => '255'),
'passwd' => array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '255'),
'addr_1' => array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '255'),
'addr_2' => array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '25'),
'zip_code' => array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '155'),
'city' => array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '155'),
'country' => array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '155'),
'phone' => array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '155'),
'fax' => array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '155'),
'url' => array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '255'),
'email' => array('type' => 'string', 'null' => '1', 'default' => '', 'length' => '155'),
'comments' => array('type' => 'text', 'null' => '1', 'default' => '', 'length' => ''),
'last_login' => array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => ''),
'created' => array('type' => 'date', 'null' => '1', 'default' => '', 'length' => ''),
'updated' => array('type' => 'datetime', 'null' => '1', 'default' => '', 'length' => null)
);
}
}
/**
* Test model for datasource prefixes
*
*/
class PrefixTestModel extends CakeTestModel {
}
class <API key> extends CakeTestModel {
public $name = 'PrefixTest';
public $useTable = 'prefix_tests';
}
/**
* ScaffoldMock class
*
* @package Cake.Test.Case.Controller
*/
class ScaffoldMock extends CakeTestModel {
/**
* useTable property
*
* @var string 'posts'
*/
public $useTable = 'articles';
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array(
'User' => array(
'className' => 'ScaffoldUser',
'foreignKey' => 'user_id',
)
);
/**
* hasMany property
*
* @var array
*/
public $hasMany = array(
'Comment' => array(
'className' => 'ScaffoldComment',
'foreignKey' => 'article_id',
)
);
/**
* hasAndBelongsToMany property
*
* @var string
*/
public $hasAndBelongsToMany = array(
'ScaffoldTag' => array(
'className' => 'ScaffoldTag',
'foreignKey' => 'something_id',
'<API key>' => 'something_else_id',
'joinTable' => 'join_things'
)
);
}
/**
* ScaffoldUser class
*
* @package Cake.Test.Case.Controller
*/
class ScaffoldUser extends CakeTestModel {
/**
* useTable property
*
* @var string 'posts'
*/
public $useTable = 'users';
/**
* hasMany property
*
* @var array
*/
public $hasMany = array(
'Article' => array(
'className' => 'ScaffoldMock',
'foreignKey' => 'article_id',
)
);
}
/**
* ScaffoldComment class
*
* @package Cake.Test.Case.Controller
*/
class ScaffoldComment extends CakeTestModel {
/**
* useTable property
*
* @var string 'posts'
*/
public $useTable = 'comments';
/**
* belongsTo property
*
* @var array
*/
public $belongsTo = array(
'Article' => array(
'className' => 'ScaffoldMock',
'foreignKey' => 'article_id',
)
);
}
/**
* ScaffoldTag class
*
* @package Cake.Test.Case.Controller
*/
class ScaffoldTag extends CakeTestModel {
/**
* useTable property
*
* @var string 'posts'
*/
public $useTable = 'tags';
}
/**
* Player class
*
* @package Cake.Test.Case.Model
*/
class Player extends CakeTestModel {
public $hasAndBelongsToMany = array(
'Guild' => array(
'with' => 'GuildsPlayer',
'unique' => true,
),
);
}
/**
* Guild class
*
* @package Cake.Test.Case.Model
*/
class Guild extends CakeTestModel {
public $hasAndBelongsToMany = array(
'Player' => array(
'with' => 'GuildsPlayer',
'unique' => true,
),
);
}
/**
* GuildsPlayer class
*
* @package Cake.Test.Case.Model
*/
class GuildsPlayer extends CakeTestModel {
public $useDbConfig = 'test2';
public $belongsTo = array(
'Player',
'Guild',
);
}
/**
* Armor class
*
* @package Cake.Test.Case.Model
*/
class Armor extends CakeTestModel {
public $useDbConfig = 'test2';
public $hasAndBelongsToMany = array(
'Player' => array('with' => 'ArmorsPlayer'),
);
}
/**
* ArmorsPlayer class
*
* @package Cake.Test.Case.Model
*/
class ArmorsPlayer extends CakeTestModel {
public $useDbConfig = 'test_database_three';
}
/**
* CustomArticle class
*
* @package Cake.Test.Case.Model
*/
class CustomArticle extends AppModel {
/**
* useTable property
*
* @var string
*/
public $useTable = 'articles';
/**
* findMethods property
*
* @var array
*/
public $findMethods = array('unPublished' => true);
/**
* _findUnPublished custom find
*
* @return array
*/
protected function _findUnPublished($state, $query, $results = array()) {
if ($state === 'before') {
$query['conditions']['published'] = 'N';
return $query;
}
return $results;
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using Cirrious.FluentLayouts.Touch;
using Foundation;
using UIKit;
using Toggl.Phoebe.Analytics;
using Toggl.Phoebe.Data;
using Toggl.Phoebe.Data.DataObjects;
using Toggl.Phoebe.Data.Models;
using XPlatUtils;
using Toggl.Ross.Theme;
using Toggl.Ross.Views;
namespace Toggl.Ross.ViewControllers
{
public class <API key> : UIViewController
{
private readonly ClientModel model;
private TextField nameTextField;
private bool <API key>;
private bool isSaving;
public <API key> (WorkspaceModel workspace)
{
this.model = new ClientModel () {
Workspace = workspace,
Name = "",
};
Title = "NewClientTitle".Tr ();
}
public Action<ClientModel> ClientCreated { get; set; }
private void BindNameField (TextField v)
{
if (v.Text != model.Name) {
v.Text = model.Name;
}
}
private void Rebind ()
{
nameTextField.Apply (BindNameField);
}
public override void LoadView ()
{
var view = new UIView ().Apply (Style.Screen);
view.Add (nameTextField = new TextField () {
<API key> = false,
<API key> = new NSAttributedString (
"NewClientNameHint".Tr (),
foregroundColor: Color.Gray
),
ShouldReturn = (tf) => tf.<API key> (),
} .Apply (Style.NewProject.NameField).Apply (BindNameField));
nameTextField.EditingChanged += <API key>;
view.AddConstraints (<API key> (view));
<API key> = UIRectEdge.None;
View = view;
NavigationItem.RightBarButtonItem = new UIBarButtonItem (
"NewClientAdd".Tr (), <API key>.Plain, <API key>)
.Apply (Style.NavLabelButton);
}
private void <API key> (object sender, EventArgs e)
{
model.Name = nameTextField.Text;
}
private async void <API key> (object sender, EventArgs e)
{
if (String.IsNullOrWhiteSpace (model.Name)) {
// TODO: Show error dialog?
return;
}
if (isSaving) {
return;
}
isSaving = true;
try {
// Check for existing name
var dataStore = ServiceContainer.Resolve<IDataStore> ();
var existWithName = await dataStore.Table<ClientData>().ExistWithNameAsync ( model.Name);
if (existWithName) {
var alert = new UIAlertView (
"<API key>".Tr (),
"<API key>".Tr (),
null,
"<API key>".Tr (),
null);
alert.Clicked += async (s, ev) => {
if (ev.ButtonIndex == 0) {
nameTextField.<API key> ();
}
};
alert.Show ();
} else {
// Create new client:
await model.SaveAsync ();
// Invoke callback hook
var cb = ClientCreated;
if (cb != null) {
cb (model);
} else {
<API key>.PopViewController (true);
}
}
} finally {
isSaving = false;
}
}
private IEnumerable<FluentLayout> <API key> (UIView container)
{
UIView prev = null;
var subviews = container.Subviews.Where (v => !v.Hidden).ToList ();
foreach (var v in subviews) {
if (prev == null) {
yield return v.AtTopOf (container, 10f);
} else {
yield return v.Below (prev, 5f);
}
yield return v.Height ().EqualTo (60f).SetPriority (UILayoutPriority.DefaultLow);
yield return v.Height ().<API key> (60f);
yield return v.AtLeftOf (container);
yield return v.AtRightOf (container);
prev = v;
}
}
public override void ViewWillAppear (bool animated)
{
base.ViewWillAppear (animated);
if (<API key>) {
Rebind ();
} else {
<API key> = true;
}
}
public override void ViewDidAppear (bool animated)
{
base.ViewDidAppear (animated);
nameTextField.<API key> ();
ServiceContainer.Resolve<ITracker> ().CurrentScreen = "New Client";
}
}
} |
#ifndef ZSWCTREENODE_H
#define ZSWCTREENODE_H
#include "ztreenode.h"
#include "zswcnode.h"
class ZSwcTreeNode : public ZTreeNode<ZSwcNode>
{
public:
ZSwcTreeNode(void);
~ZSwcTreeNode(void);
public:
virtual inline int id() const { return m_data.id(); }
inline ZSwcNode::EType type() const { return m_data.type(); }
inline double r() const { return m_data.r(); }
inline double x() const { return m_data.x(); }
inline double y() const { return m_data.y(); }
inline double z() const { return m_data.z(); }
virtual inline void setId(int id) { m_data.setId(id); }
inline void setType(ZSwcNode::EType type) { m_data.setType(type); }
inline void setRadius(double r) { m_data.setR(r); }
inline void setX(double x) { m_data.setX(x); }
inline void setY(double y) { m_data.setY(y); }
inline void setZ(double z) { m_data.setZ(z); }
//Get the parent that has the same type as the node
ZSwcTreeNode *getCompleteParent() const;
//Get the first child that has the same type as the node
ZSwcTreeNode *<API key>() const;
double computeBendingAngle();
public:
virtual bool isVirtual(bool virtualCheck = true) const;
bool hasSomaParent() const;
bool hasNeuriteParent() const;
//Compute the distance between the node and its parent. It returns 0 if
//the node is a root
double <API key>() const;
//Compute the distance between two swc nodes
double computeDistance(const ZSwcTreeNode *node) const;
//Compute the neurite length between the node and its parent
double <API key>() const;
//Compute the neurite area between the node and its parent
double computeNeuriteArea() const;
};
#endif // ZSWCTREENODE_H |
/* $NoKeywords: $ */
#if !defined(OPENNURBS_KNOT_INC_)
#define OPENNURBS_KNOT_INC_
ON_DECL
double ON_DomainTolerance(
double, // start of domain
double // end of domain
);
ON_DECL
double ON_KnotTolerance(
int, // order (>=2)
int, // cv count
const double*, // knot[] array
int // knot index
);
ON_DECL
double ON_SpanTolerance(
int, // order (>=2)
int, // cv count
const double*, // knot[] array
int // span index
);
ON_DECL
int ON_KnotCount( // returns (order + cv_count - 2)
int, // order (>=2)
int // cv_count (>=order)
);
ON_DECL
int ON_KnotMultiplicity(
int, // order (>=2)
int, // cv_count (>=order)
const double*, // knot[]
int // knot_index
);
ON_DECL
int <API key>(
int, // order (>=2)
int, // cv count
const double* // knot[] array
);
ON_DECL
bool <API key>(
int, // order (>=2)
int, // cv count
const double*, // knot[] array
double* // s[] array
);
/*
Description:
Given an evaluation parameter t in the domain of a NURBS curve,
ON_NurbsSpanIndex(order,cv_count,knot,t,0,0) returns the integer
i such that (knot[i],...,knot[i+2*degree-1]), and
(cv[i],...,cv[i+degree]) are the knots and control points that
define the span of the NURBS that are used for evaluation at t.
Parameters:
order - [in] order >= 2
cv_count - [in] cv_count >= order
knot - [in] valid knot vector
t - [in] evaluation parameter
side - [in] determines which span is used when t is at a knot
value; side = 0 for the default (from above),
side = -1 means from below, and
side = +1 means from above.
hint - [in] Search hint, or 0 if not hint is available.
Returns:
Returns the index described above.
*/
ON_DECL
int ON_NurbsSpanIndex(
int order,
int cv_count,
const double* knot,
double t,
int side,
int hint
);
ON_DECL
int <API key>(
// returns 0: input span_index < 0
// cv_count-order: input span_index = cv_count-order
// -1: input span_index > cv_count-order;
// otherwise next span index
int order,
int cv_count,
const double* knot,
int // current span_index
);
ON_DECL
int ON_GetSpanIndices( // returns span count, which is one less than length of span_indices[]
int order,
int cv_count,
const double* knot,
int* // span_indices[cv_count-order+2].
//Indices of knots at end of group of mult knots
//at start of span, and knot at start of group of mult knots
//at end of spline.
);
ON_DECL
double ON_SuperfluousKnot(
int order,
int cv_count,
const double* knot,
int // 0 = first superfluous knot
// 1 = last superfluous knot
);
ON_DECL
bool <API key>(
int order,
int cv_count,
const double* knot
);
ON_DECL
bool <API key>(
int order,
int cv_count,
const double* knot,
int = 2 // 0 = check left end, 1 = check right end, 2 = check both
);
ON_DECL
bool <API key>(
int order,
int cv_count,
const double* knot
);
// returns true if all knots have multiplicity = degree
ON_DECL
bool <API key>(
int order,
int cv_count,
const double* knot
);
ON_DECL
ON::knot_style ON_KnotVectorStyle(
int order,
int cv_count,
const double* knot
);
/*
Description:
Set the domain of a knot vector.
Parameters:
order - [in] order >= 2
cv_count - [in] cv_count >= order
knot - [in/out] input existing knots and returns knots with new domain.
t0 - [in]
t1 - [in] New domain will be the interval (t0,t1).
Returns:
True if input is valid and the returned knot vector
has the requested domain. False if the input is
invalid, in which case the input knot vector is not
changed.
*/
ON_DECL
bool <API key>(
int order,
int cv_count,
double* knot,
double t0,
double t1
);
ON_DECL
bool <API key>(
int, // order (>=2)
int, // cv count
const double*, // knot[] array
double*, double*
);
ON_DECL
bool <API key>(
int, // order (>=2)
int, // cv count
double* // knot[] array
);
ON_DECL
int <API key>( // returns
// -1: first < second
// 0: first == second
// +1: first > second
// first knot vector
int, // order (>=2)
int, // cv count
const double*, // knot[] array
// second knot vector
int, // order (>=2)
int, // cv count
const double* // knot[] array
);
ON_DECL
bool <API key>(
int order,
int cv_count,
const double* knot,
ON_TextLog* text_log = 0
);
ON_DECL
bool ON_ClampKnotVector(
// Sets inital/final order-2 knots to values in
// knot[order-2]/knot[cv_count-1].
int, // order (>=2)
int, // cv count
double*, // knot[] array
int // 0 = clamp left end, 1 = right end, 2 = clamp both ends
);
ON_DECL
bool <API key>(
// Sets inital and final order-2 knots to values
// that make the knot vector periodic
int, // order (>=2)
int, // cv count
double* // knot[] array
);
/*
Description:
Fill in knot values for a clamped uniform knot
vector.
Parameters:
order - [in] (>=2) order (degree+1) of the NURBS
cv_count - [in] (>=order) total number of control points
in the NURBS.
knot - [in/out] Input is an array with room for
ON_KnotCount(order,cv_count) doubles. Output is
a clamped uniform knot vector with domain
(0, (1+cv_count-order)*delta).
delta - [in] (>0, default=1.0) spacing between knots.
Returns:
true if successful
See Also:
ON_NurbsCurve::<API key>
*/
ON_DECL
bool <API key>(
int order,
int cv_count,
double* knot,
double delta = 1.0
);
/*
Description:
Fill in knot values for a clamped uniform knot
vector.
Parameters:
order - [in] (>=2) order (degree+1) of the NURBS
cv_count - [in] (>=order) total number of control points
in the NURBS.
knot - [in/out] Input is an array with room for
ON_KnotCount(order,cv_count) doubles. Output is
a periodic uniform knot vector with domain
(0, (1+cv_count-order)*delta).
delta - [in] (>0, default=1.0) spacing between knots.
Returns:
true if successful
See Also:
ON_NurbsCurve::<API key>
*/
ON_DECL
bool <API key>(
int order,
int cv_count,
double* knot,
double delta = 1.0
);
ON_DECL
double ON_GrevilleAbcissa( // get Greville abcissae from knots
int, // order (>=2)
const double* // knot[] array (length = order-1)
);
ON_DECL
bool <API key>( // get Greville abcissae from knots
int, // order (>=2)
int, // cv count
const double*, // knot[] array
bool, // true for periodic case
double* // g[] array has length cv_count in non-periodic case
// and cv_count-order+1 in periodic case
);
ON_DECL
bool <API key>( // get knots from Greville abcissa
int, // g[] array stride (>=1)
const double*, // g[] array
// if not periodic, length = cv_count
// if periodic, length = cv_count-order+2
bool, // true for periodic knots
int, // order (>=2)
int, // cv_count (>=order)
double* // knot[cv_count+order-2]
);
ON_DECL
bool ON_ClampKnotVector(
int, // cv_dim ( = dim+1 for rational cvs )
int, // order (>=2)
int, // cv_count,
int, // cv_stride,
double*, // cv[] NULL or array of order many cvs
double*, // knot[] array with room for at least knot_multiplicity new knots
int // end 0 = clamp start, 1 = clamp end, 2 = clamp both ends
);
/*
Returns:
Number of knots added.
*/
ON_DECL
int ON_InsertKnot(
double, // knot_value,
int, // knot_multiplicity, (1 to order-1 including multiplicity of any existing knots)
int, // cv_dim ( = dim+1 for rational cvs )
int, // order (>=2)
int, // cv_count,
int, // cv_stride (>=cv_dim)
double*, // cv[] NULL or cv array with room for at least knot_multiplicity new cvs
double*, // knot[] knot array with room for at least knot_multiplicity new knots
int* // hint, optional hint about where to search for span to add knots to
// pass NULL if no hint is available
);
/*
Description:
Reparameterize a rational Bezier curve.
Parameters:
c - [in]
reparameterization constant (generally speaking, c should be > 0).
The control points are adjusted so that
output_bezier(t) = input_bezier(lambda(t)), where
lambda(t) = c*t/( (c-1)*t + 1 ).
Note that lambda(0) = 0, lambda(1) = 1, lambda'(t) > 0,
lambda'(0) = c and lambda'(1) = 1/c.
dim - [in]
order - [in]
cvstride - [in] (>= dim+1)
cv - [in/out] homogeneous rational control points
Returns:
The cv values are changed so that
output_bezier(t) = input_bezier(lambda(t)).
*/
ON_DECL
bool <API key>(
double c,
int dim,
int order,
int cvstride,
double* cv
);
/*
Description:
Use a combination of scaling and reparameterization to set two rational
Bezier weights to specified values.
Parameters:
dim - [in]
order - [in]
cvstride - [in] ( >= dim+1)
cv - [in/out] homogeneous rational control points
i0 - [in]
w0 - [in]
i1 - [in]
w1 - [in]
The i0-th cv will have weight w0 and the i1-th cv will have weight w1.
If v0 and v1 are the cv's input weights, then v0, v1, w0 and w1 must
all be nonzero, and w0*v0 and w1*v1 must have the same sign.
Returns:
true if successful
Remarks:
The equations
s * r^i0 = w0/v0
s * r^i1 = w1/v1
determine the scaling and reparameterization necessary to change v0,v1 to
w0,w1.
If the input Bezier has control vertices {B_0, ..., B_d}, then the
output Bezier has control vertices {s*B_0, ... s*r^i * B_i, ..., s*r^d * B_d}.
*/
ON_DECL
bool <API key>(
int dim, int order, int cvstride, double* cv,
int i0, double w0,
int i1, double w1
);
/*
Description:
Reparameterize a rational NURBS curve.
Parameters:
c - [in]
reparameterization constant (generally speaking, c should be > 0).
The control points and knots are adjusted so that
output_nurbs(t) = input_nurbs(lambda(t)), where
lambda(t) = c*t/( (c-1)*t + 1 ).
Note that lambda(0) = 0, lambda(1) = 1, lambda'(t) > 0,
lambda'(0) = c and lambda'(1) = 1/c.
dim - [in]
order - [in]
cvstride - [in] (>=dim+1)
cv - [in/out] homogeneous rational control points
knot - [in/out]
NURBS curve knots
Returns:
The cv values are changed so that
output_bezier(t) = input_bezier(lambda(t)).
See Also:
<API key>
*/
ON_DECL
bool <API key>(
double c,
int dim,
int order,
int cv_count,
int cvstride,
double* cv,
double* knot
);
/*
Description:
Use a combination of scaling and reparameterization to set the end
weights to the specified values. This
Parameters:
dim - [in]
order - [in]
cvstride - [in] (>=dim+1)
cv - [in/out] homogeneous rational control points
knot - [in/out] (output knot vector will be clamped and internal
knots may be shifted.)
w0 - [in]
w1 - [in]
The first cv will have weight w0 and the last cv will have weight w1.
If v0 and v1 are the cv's input weights, then v0, v1, w0 and w1 must
all be nonzero, and w0*v0 and w1*v1 must have the same sign.
Returns:
true if successful
See Also:
<API key>
*/
ON_DECL
bool <API key>(
int dim,
int order,
int cv_count,
int cvstride,
double* cv,
double* knot,
double w0,
double w1
);
#endif |
#include <errno.h>
#include "sol-str-slice.h"
#include "sol-util.h"
#include "test.h"
DEFINE_TEST(<API key>);
static void
<API key>(void)
{
unsigned int i;
#define CONVERT_OK(X) { <API key>(#X), 0, X }
#define CONVERT_FAIL(X, ERR) { <API key>(#X), ERR, 0 }
static const struct {
struct sol_str_slice input;
int output_error;
int output_value;
} table[] = {
CONVERT_OK(0),
CONVERT_OK(100),
CONVERT_OK(-1),
CONVERT_OK(100000),
CONVERT_OK(0xFF),
CONVERT_OK(0755),
CONVERT_FAIL(20000000000, -ERANGE),
CONVERT_FAIL(abc, -EINVAL),
CONVERT_FAIL(10abc, -EINVAL),
CONVERT_FAIL(-abc, -EINVAL),
CONVERT_FAIL(<API key>, -ERANGE),
CONVERT_FAIL(<API key>, -ERANGE),
};
for (i = 0; i < ARRAY_SIZE(table); i++) {
int error, value = 0;
error = <API key>(table[i].input, &value);
ASSERT_INT_EQ(error, table[i].output_error);
ASSERT_INT_EQ(value, table[i].output_value);
}
#undef CONVERT_OK
#undef CONVERT_FAIL
}
DEFINE_TEST(<API key>);
static void
<API key>(void)
{
unsigned int i;
#define TEST_EQUAL(X, CMP) { <API key>(X), CMP, true }
#define TEST_NOT_EQUAL(X, CMP) { <API key>(X), CMP, false }
static const struct {
struct sol_str_slice input;
const char *cmp;
bool output_value;
} table[] = {
TEST_EQUAL("0", "0"),
TEST_EQUAL("wat", "wat"),
TEST_NOT_EQUAL("this", "that"),
TEST_NOT_EQUAL("thi", "this"),
TEST_NOT_EQUAL("whatever", NULL),
};
for (i = 0; i < ARRAY_SIZE(table); i++) {
bool ret;
ret = <API key>(table[i].input, table[i].cmp);
ASSERT_INT_EQ(ret, table[i].output_value);
}
#undef TEST_EQUAL
#undef TEST_NOT_EQUAL
}
DEFINE_TEST(<API key>);
static void
<API key>(void)
{
unsigned int i;
#define TEST_EQUAL(X) { <API key>(X), true }
#define TEST_NOT_EQUAL(X) { <API key>(X), false }
#define <API key>(X, S) { <API key>(X + S), false }
static const struct {
struct sol_str_slice input;
bool equal;
} table[] = {
TEST_NOT_EQUAL(" with one leading whitespace"),
TEST_NOT_EQUAL(" with two leading whitespace"),
TEST_NOT_EQUAL(" "),
TEST_NOT_EQUAL("\twith one leading whitespace"),
TEST_NOT_EQUAL("\t\twith two leading whitespace"),
TEST_NOT_EQUAL("\t"),
TEST_NOT_EQUAL("\nwith one leading whitespace"),
TEST_NOT_EQUAL("\n\nwith two leading whitespace"),
TEST_NOT_EQUAL("\n"),
<API key>(" with leading whitespace and shifted", 4),
TEST_EQUAL(""),
TEST_EQUAL("without leading whitespace"),
};
for (i = 0; i < ARRAY_SIZE(table); i++) {
struct sol_str_slice slice;
slice = <API key>(table[i].input);
ASSERT(sol_str_slice_eq(table[i].input, slice) == table[i].equal);
}
#undef TEST_EQUAL
#undef TEST_NOT_EQUAL
}
DEFINE_TEST(<API key>);
static void
<API key>(void)
{
unsigned int i;
#define TEST_EQUAL(X) { <API key>(X), true }
#define TEST_NOT_EQUAL(X) { <API key>(X), false }
static const struct {
struct sol_str_slice input;
bool equal;
} table[] = {
TEST_NOT_EQUAL("with one trailing whitespace "),
TEST_NOT_EQUAL("with two trailing whitespace "),
TEST_NOT_EQUAL(" "),
TEST_NOT_EQUAL("with one trailing whitespace\t"),
TEST_NOT_EQUAL("with two trailing whitespace\t\t"),
TEST_NOT_EQUAL("\t"),
TEST_NOT_EQUAL("with one trailing whitespace\n"),
TEST_NOT_EQUAL("with two trailing whitespace\n\n"),
TEST_NOT_EQUAL("\n"),
TEST_EQUAL(""),
TEST_EQUAL("without trailing whitespace"),
};
for (i = 0; i < ARRAY_SIZE(table); i++) {
struct sol_str_slice slice;
slice = <API key>(table[i].input);
ASSERT(sol_str_slice_eq(table[i].input, slice) == table[i].equal);
}
#undef TEST_EQUAL
#undef TEST_NOT_EQUAL
}
DEFINE_TEST(test_str_slice_trim);
static void
test_str_slice_trim(void)
{
unsigned int i;
#define TEST_EQUAL(X) { <API key>(X), true }
#define TEST_NOT_EQUAL(X) { <API key>(X), false }
static const struct {
struct sol_str_slice input;
bool equal;
} table[] = {
TEST_NOT_EQUAL("with one trailing whitespace "),
TEST_NOT_EQUAL("with two trailing whitespace "),
TEST_NOT_EQUAL(" "),
TEST_NOT_EQUAL("with one trailing whitespace\t"),
TEST_NOT_EQUAL("with two trailing whitespace\t\t"),
TEST_NOT_EQUAL("\t"),
TEST_NOT_EQUAL("with one trailing whitespace\n"),
TEST_NOT_EQUAL("with two trailing whitespace\n\n"),
TEST_NOT_EQUAL("\n"),
TEST_NOT_EQUAL(" with one whitespace "),
TEST_NOT_EQUAL(" with two whitespace "),
TEST_NOT_EQUAL("\twith one whitespace\t"),
TEST_NOT_EQUAL("\t\twith two whitespace\t\t"),
TEST_NOT_EQUAL("\nwith one whitespace\n"),
TEST_NOT_EQUAL("\n\nwith two whitespace\n\n"),
TEST_EQUAL(""),
TEST_EQUAL("without trailing whitespace"),
};
for (i = 0; i < ARRAY_SIZE(table); i++) {
struct sol_str_slice slice;
slice = sol_str_slice_trim(table[i].input);
ASSERT(sol_str_slice_eq(table[i].input, slice) == table[i].equal);
}
#undef TEST_EQUAL
#undef TEST_NOT_EQUAL
}
DEFINE_TEST(<API key>);
static void
<API key>(void)
{
unsigned int i;
struct sol_str_slice input[] = {
<API key>("alfa"),
<API key>("a a"),
<API key>("This is supposed to be a big string, "
"spanning long enought that it could be considered a long string, "
"whose only purpose is to test if a long slice can yeld to a"
"correct string. But why not? Maybe allocation problems, however, "
"are allocations problems something to be concerned at? If we "
"have no more memory availble, a slice that can't be coverted "
"to raw C string, the infamous array of char, is not application "
"main concern. I think that it's long enought, but maybe not. "
"In hindsight, I believed that I've should used some lorem ipsum "
"generator. Maybe I'll do that. Or not. Not sure really."),
<API key>("")
};
for (i = 0; i < ARRAY_SIZE(input); i++) {
char *s = <API key>(input[i]);
ASSERT(<API key>(input[i], s));
free(s);
}
}
TEST_MAIN(); |
<!DOCTYPE html>
<html>
<head>
<title>require.js: Map Config Relative Test</title>
<script type="text/javascript" src="../../require.js"></script>
<script type="text/javascript" src="../doh/runner.js"></script>
<script type="text/javascript" src="../doh/_browserRunner.js"></script>
<script type="text/javascript" src="<API key>.js"></script>
</head>
<body>
<h1>require.js: Map Config Relative Test</h1>
<p>Test using the map config on a relative dependency ID. More info:
<a href="https://github.com/requirejs/requirejs/issues/350">350</a></p>
<p>Check console for messages</p>
</body>
</html> |
#ifndef APPBASE_H
#define APPBASE_H
//#include "MainMenu.h"
#include "UIInterface.h"
#include <QWidget>
#include <QLabel>
#include <AppListInterface.h>
#include <QLineEdit>
#define AppControl m_pList->getActiveApp()
typedef struct softButton{
bool b_isHighlighted;
int i_softButtonID;
std::string str_text;
softButton()
{
b_isHighlighted = false;
i_softButtonID = 0;
str_text.clear();
}
}SSoftButton;
class AppBase : public QWidget
{
Q_OBJECT
public:
explicit AppBase(AppListInterface * pList, QWidget *parent = 0);
~AppBase();
static void SetEdlidedText(QLabel *pLabel,QString strText,int iWidth);
static void SetEdlidedText(QLineEdit *pEdit,QString strText,int iWidth);
protected:
//virtual void setTitle(QString title){((MainMenu*)parent()->parent()->parent())->SetTitle(title);}
signals:
void onButtonClicked(int btnID);
void onListClicked(int listID);
void onSpaceClicked();
void menuBtnClicked(QString);
protected:
void setBkgImage(const char *img);
AppListInterface * m_pList;
};
#endif // APPBASE_H |
#ifndef <API key>
#define <API key>
#if ENABLE(THREADED_SCROLLING)
#include "DrawingAreaProxy.h"
#include <wtf/PassOwnPtr.h>
namespace WebKit {
class <API key> : public DrawingAreaProxy {
public:
static PassOwnPtr<<API key>> create(WebPageProxy*);
virtual ~<API key>();
private:
explicit <API key>(WebPageProxy*);
// DrawingAreaProxy
virtual void <API key>() OVERRIDE;
virtual void <API key>() OVERRIDE;
virtual void visibilityDidChange() OVERRIDE;
virtual void sizeDidChange() OVERRIDE;
virtual void <API key>() OVERRIDE;
virtual void colorSpaceDidChange() OVERRIDE;
virtual void <API key>(uint64_t backingStoreStateID, const LayerTreeContext&) OVERRIDE;
virtual void <API key>(uint64_t backingStoreStateID, const UpdateInfo&) OVERRIDE;
virtual void <API key>(uint64_t backingStoreStateID, const LayerTreeContext&) OVERRIDE;
// Message handlers.
virtual void didUpdateGeometry() OVERRIDE;
void sendUpdateGeometry();
// Whether we're waiting for a DidUpdateGeometry message from the web process.
bool <API key>;
// The last size we sent to the web process.
WebCore::IntSize m_lastSentSize;
};
} // namespace WebKit
#endif // ENABLE(THREADED_SCROLLING)
#endif // <API key> |
package owltools.sim2.kb;
import org.semanticweb.owlapi.model.IRI;
public class <API key> extends Exception {
private static final long serialVersionUID = <API key>;
public <API key>(IRI referenceEntity) {
super("Reference entity does not exist: " + referenceEntity.toString());
}
} |
# Getting Started
Table of Contents
==============
* [Installation](#installation)
* [Starting the server](#starting-the-server)
* [Using the webapp](#using-the-webapp)
* [Creating a Dataset](#creating-a-dataset)
* [Training a Model](#training-a-model)
* [Using the REST API](#using-the-rest-api)
## Installation
If you are using the web installer, check out this [installation page](WebInstall.md).
If you are installing from source, check out the [README](../README.md#installation).
## Starting the server
If you are using the web installer use the `runme.sh` script:
% cd $HOME/digits-2.0
% ./runme.sh
If you are not using the web installer, use the `digits-devserver` script:
% cd $HOME/digits
% ./digits-devserver
The first time DIGITS is run, you may be asked to provide some configuration options.
% ./digits-devserver
___ ___ ___ ___ _____ ___
| \_ _/ __|_ _|_ _/ __|
| |) | | (_ || | | | \__ \
|___/___\___|___| |_| |___/
DIGITS requires at least one DL backend to run.
================================= Caffe =====================================
Where is caffe installed?
Suggested values:
(P*) [PATH/PYTHONPATH] <PATHS>
>> ~/caffe
Using "/home/username/caffe"
Saved config to /home/username/digits/digits/digits.cfg
* Running on http://0.0.0.0:5000/
Most values are set silently by default. If you need more control over your configuration, try one of these commands:
# Set more options before starting the server
./digits-devserver --config
# Advanced usage
python -m digits.config.edit --verbose
## Using the Webapp
Now that DIGITS is running, open a browser and go to http://localhost:5000. You should see the DIGITS home screen:

For the example in this document, we will be using the [MNIST handwritten digit database](http:
If you are not using the web installer, you can use the script at `tools/download_data/main.py` to download the MNIST dataset. See [Standard Datasets](StandardDatasets.md) for details.
Creating a Dataset
In the Datasets section on the left side of the page, click on the blue `Images` button and select `Classification` which will take you to the "New Image Classification Dataset" page.
* Change the image type to `Grayscale`
* Change the image size to 28 x 28
* Type in the path to the MNIST training images
* `/home/username/digits-2.0/mnist/train` if you are using the web installer
* Give the dataset a name
* Click on the `Create` button

While the model creation job is running, you should see the expected completion time on the right side:

When the data set has completed training, go back to the home page, by clicking `DIGITS` in the top left hand part of the page. You should now see that there is a trained data set.

Training a Model
In the Models section on the left side of the page, click on the blue `Images` button and select `Classification` which will take you to the "New Image Classification Model" page. For this example, do the following:
* Choose the MNIST dataset in the "Select Dataset" field
* Choose the `LeNet` network in the "Standard Networks" tab
* Give the model a name
* Click on the `Create` button

While training the model, you should see the expected completion time on the right side:

To test the model, scroll to the bottom of the page. On the left side are tools for testing the model.
* Click on the `Upload Image` field which will bring up a local file browser and choose a file
* If you've used the web installer, choose one in `/home/username/digits-2.0/mnist/test`
* Or, find an image on the web and paste the URL into the `Image URL` field
* Click on `Classify One Image`

DIGITS will display the top five classifications and corresponding confidence values.

## Using the REST API
Use your favorite tool (`curl`, `wget`, etc.) to interact with DIGITS through the [REST API](API.md).
curl localhost:5000/index.json |
.btn-panel {
border: 1px solid #ddd;
border-top: none;
background: #f6f6f6;
padding: 20px;
}
.thin-box {
border: 1px solid #ddd;
padding: 20px 20px;
}
#loaderWrapper .loader {
float: left;
margin-right: 20px;
}
#mainWrapper {
padding-bottom: 1.5rem;
}
#mainWrapper section {
padding-bottom: 1.5rem;
}
#mainWrapper section section {
padding-bottom: 1.5rem;
}
#myInfiniteScroll1, #myInfiniteScroll2 {
border: 1px solid #ddd;
float: left;
height: 200px;
width: 45%;
}
#myInfiniteScroll2 {
float: right;
}
#myPlacard1, #myPlacard2, #myPlacard3 {
width: 300px;
}
.example-pill-class {
font-style: italic;
font-weight: bold;
}
#myRepeater[data-currentview="list.frozen"] table thead tr th, #myRepeater[data-currentview="list.frozen"] .<API key> {
width: 400px;
}
#myRepeaterActions table thead tr th, #myRepeaterActions .<API key> {
width: 400px;
}
#myRepeaterActions table.table-actions .<API key> {
width: 100%;
} |
<?php
/* Prototype : string escapeshellarg ( string $arg )
* Description: Escape a string to be used as a shell argument.
* Source code: ext/standard/exec.c
*/
/*
* Pass an incorrect number of arguments to escapeshellarg() to test behaviour
*/
echo "*** Testing escapeshellarg() : error conditions ***\n";
echo "\n-- Testing escapeshellarg() function with no arguments --\n";
var_dump( escapeshellarg() );
echo "\n-- Testing escapeshellarg() function with more than expected no. of arguments --\n";
$arg = "Mr O'Neil";
$extra_arg = 10;
var_dump( escapeshellarg($arg, $extra_arg) );
echo "\n-- Testing escapeshellarg() function with a object supplied for argument --\n";
class classA
{
}
$arg = new classA();
var_dump( escapeshellarg($arg));
echo "\n-- Testing escapeshellarg() function with a resource supplied for argument --\n";
$fp = fopen(__FILE__, "r");
var_dump( escapeshellarg($fp));
fclose($fp);
echo "\n-- Testing escapeshellarg() function with a array supplied for argument --\n";
$arg = array(1,2,3);
var_dump( escapeshellarg($arg));
?>
Done=== |
insert into facility_type_code (id, code, display_name, code_system_name, code_system) values (1, 'ENDOS', 'Ambulatory Health Care Facilities; Clinic/Center; Endoscopy', 'RoleCode', '2.16.840.1.113883.5.111');
insert into facility_type_code (id, code, display_name, code_system_name, code_system) values (2, 'CANC', 'Child and adolescent neurology clinic', 'RoleCode', '2.16.840.1.113883.5.111');
insert into facility_type_code (id, code, display_name, code_system_name, code_system) values (3, 'CAPC', 'Child and adolescent psychiatry clinic', 'RoleCode', '2.16.840.1.113883.5.111');
insert into facility_type_code (id, code, display_name, code_system_name, code_system) values (4, '282N00000N', 'Hospitals; General Acute Care Hospital', 'RoleCode', '2.16.840.1.113883.5.111'); |
<!DOCTYPE html>
<!
Copyright 2018 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
<link rel="import" href="/tracing/core/test_utils.html">
<link rel="import" href="/tracing/metrics/rendering/cpu_utilization.html">
<link rel="import" href="/tracing/model/user_model/segment.html">
<link rel="import" href="/tracing/value/histogram_set.html">
<script>
'use strict';
tr.b.unittest.testSuite(function() {
test('cpuPerFrame', function() {
const model = tr.c.TestUtils.newModel((model) => {
const browserMain = model.getOrCreateProcess(0).getOrCreateThread(0);
browserMain.name = 'CrBrowserMain';
// A slice during the animation with CPU duration 2.
browserMain.sliceGroup.pushSlice(tr.c.TestUtils.newSliceEx(
{ start: 1, end: 4, cpuStart: 0, cpuEnd: 2 }));
// A slice after the animation.
browserMain.sliceGroup.pushSlice(tr.c.TestUtils.newSliceEx(
{ start: 10, end: 12, cpuStart: 2, cpuEnd: 3 }));
const rendererMain = model.getOrCreateProcess(1).getOrCreateThread(0);
rendererMain.name = 'CrRendererMain';
// A slice half of which intersects with the animation.
rendererMain.sliceGroup.pushSlice(tr.c.TestUtils.newSliceEx(
{ start: 5, end: 15, cpuStart: 0, cpuEnd: 8 }));
const rendererIO = model.getOrCreateProcess(1).getOrCreateThread(1);
rendererIO.name = '<API key>';
rendererIO.sliceGroup.pushSlice(tr.c.TestUtils.newSliceEx(
{ start: 5, end: 6, cpuStart: 1, cpuEnd: 2 }));
});
const histograms = new tr.v.HistogramSet();
tr.metrics.rendering.<API key>(
histograms, model, [new tr.model.um.Segment(0, 10)],
(thread, segment) => thread.getCpuTimeForRange(segment.boundsRange),
category => `thread_${category}_cpu_time_per_frame`, 'description');
// Verify the browser and renderer main threads and IO threads CPU usage.
let hist = histograms.getHistogramNamed(
'<API key>');
assert.closeTo(2, hist.min, 1e-6);
assert.closeTo(2, hist.max, 1e-6);
assert.closeTo(2, hist.average, 1e-6);
hist = histograms.getHistogramNamed(
'<API key>');
assert.closeTo(4, hist.min, 1e-6);
assert.closeTo(4, hist.max, 1e-6);
assert.closeTo(4, hist.average, 1e-6);
hist = histograms.getHistogramNamed('<API key>');
assert.closeTo(1, hist.min, 1e-6);
assert.closeTo(1, hist.max, 1e-6);
assert.closeTo(1, hist.average, 1e-6);
hist = histograms.getHistogramNamed(
'<API key>');
assert.closeTo(7, hist.min, 1e-6);
assert.closeTo(7, hist.max, 1e-6);
assert.closeTo(7, hist.average, 1e-6);
// Verify sum of all threads.
hist = histograms.getHistogramNamed('<API key>');
assert.closeTo(7, hist.min, 1e-6);
assert.closeTo(7, hist.max, 1e-6);
assert.closeTo(7, hist.average, 1e-6);
});
test('multipleSegments', function() {
const model = tr.c.TestUtils.newModel((model) => {
const browserMain = model.getOrCreateProcess(0).getOrCreateThread(0);
browserMain.name = 'CrBrowserMain';
browserMain.sliceGroup.pushSlice(tr.c.TestUtils.newSliceEx(
{ start: 1, end: 4, cpuStart: 0, cpuEnd: 2 }));
browserMain.sliceGroup.pushSlice(tr.c.TestUtils.newSliceEx(
{ start: 8, end: 12, cpuStart: 2, cpuEnd: 4 }));
const rendererMain = model.getOrCreateProcess(1).getOrCreateThread(0);
rendererMain.name = 'CrRendererMain';
rendererMain.sliceGroup.pushSlice(tr.c.TestUtils.newSliceEx(
{ start: 5, end: 15, cpuStart: 0, cpuEnd: 8 }));
const rendererIO = model.getOrCreateProcess(1).getOrCreateThread(1);
rendererIO.name = '<API key>';
rendererIO.sliceGroup.pushSlice(tr.c.TestUtils.newSliceEx(
{ start: 5, end: 6, cpuStart: 1, cpuEnd: 2 }));
});
const histograms = new tr.v.HistogramSet();
tr.metrics.rendering.<API key>(
histograms, model,
[new tr.model.um.Segment(0, 5), new tr.model.um.Segment(5, 5)],
(thread, segment) => thread.getCpuTimeForRange(segment.boundsRange),
category => `thread_${category}_cpu_time_per_frame`, 'description');
// The first slice is in the first segment, using 2ms of CPU. The rest are
// in the second segment, using 1 + 4 + 1 = 6ms of CPU.
const hist = histograms.getHistogramNamed(
'<API key>');
assert.closeTo(4, hist.min, 1e-6);
assert.closeTo(4, hist.max, 1e-6);
assert.closeTo(4, hist.average, 1e-6);
});
test('otherThreads', function() {
const model = tr.c.TestUtils.newModel((model) => {
const browserMain = model.getOrCreateProcess(0).getOrCreateThread(0);
browserMain.name = 'CrBrowserMain';
// A slice during the animation with CPU duration 2.
browserMain.sliceGroup.pushSlice(tr.c.TestUtils.newSliceEx(
{ start: 1, end: 4, cpuStart: 0, cpuEnd: 2 }));
// A slice after the animation.
browserMain.sliceGroup.pushSlice(tr.c.TestUtils.newSliceEx(
{ start: 10, end: 12, cpuStart: 2, cpuEnd: 3 }));
const thread1 = model.getOrCreateProcess(1).getOrCreateThread(0);
thread1.name = 'Thread1';
// A slice half of which intersects with the animation.
thread1.sliceGroup.pushSlice(tr.c.TestUtils.newSliceEx(
{ start: 5, end: 15, cpuStart: 0, cpuEnd: 8 }));
const thread2 = model.getOrCreateProcess(1).getOrCreateThread(1);
thread2.name = 'Thread2';
thread2.sliceGroup.pushSlice(tr.c.TestUtils.newSliceEx(
{ start: 5, end: 6, cpuStart: 1, cpuEnd: 2 }));
});
const histograms = new tr.v.HistogramSet();
tr.metrics.rendering.<API key>(
histograms, model, [new tr.model.um.Segment(0, 10)],
(thread, segment) => thread.getCpuTimeForRange(segment.boundsRange),
category => `thread_${category}_cpu_time_per_frame`, 'description');
// Verify the browser and renderer main threads and IO threads CPU usage.
let hist = histograms.getHistogramNamed(
'<API key>');
assert.closeTo(2, hist.min, 1e-6);
assert.closeTo(2, hist.max, 1e-6);
assert.closeTo(2, hist.average, 1e-6);
hist = histograms.getHistogramNamed('<API key>');
assert.closeTo(5, hist.min, 1e-6);
assert.closeTo(5, hist.max, 1e-6);
assert.closeTo(5, hist.average, 1e-6);
});
test('tasksPerFrame', function() {
const model = tr.c.TestUtils.newModel((model) => {
const browserMain = model.getOrCreateProcess(0).getOrCreateThread(0);
browserMain.name = 'CrBrowserMain';
// A slice during the animation with CPU duration 2.
browserMain.sliceGroup.pushSlice(tr.c.TestUtils.newSliceEx(
{ start: 1, end: 4, cpuStart: 0, cpuEnd: 2 }));
// A slice after the animation.
browserMain.sliceGroup.pushSlice(tr.c.TestUtils.newSliceEx(
{ start: 10, end: 12, cpuStart: 2, cpuEnd: 3 }));
const rendererMain = model.getOrCreateProcess(1).getOrCreateThread(0);
rendererMain.name = 'CrRendererMain';
// A slice half of which intersects with the animation.
rendererMain.sliceGroup.pushSlice(tr.c.TestUtils.newSliceEx(
{ start: 5, end: 15, cpuStart: 0, cpuEnd: 8 }));
const rendererIO = model.getOrCreateProcess(1).getOrCreateThread(1);
rendererIO.name = '<API key>';
rendererIO.sliceGroup.pushSlice(tr.c.TestUtils.newSliceEx(
{ start: 5, end: 6, cpuStart: 1, cpuEnd: 2 }));
});
const histograms = new tr.v.HistogramSet();
tr.metrics.rendering.<API key>(
histograms, model, [new tr.model.um.Segment(0, 10)],
(thread, segment) =>
thread.<API key>(segment.boundsRange),
category => `tasks_per_frame_${category}`, 'description');
// Verify the browser and renderer main threads and IO threads number of
// tasks.
let hist = histograms.getHistogramNamed('<API key>');
assert.closeTo(1, hist.min, 1e-6);
assert.closeTo(1, hist.max, 1e-6);
assert.closeTo(1, hist.average, 1e-6);
hist = histograms.getHistogramNamed('<API key>');
assert.closeTo(0.5, hist.min, 1e-6);
assert.closeTo(0.5, hist.max, 1e-6);
assert.closeTo(0.5, hist.average, 1e-6);
hist = histograms.getHistogramNamed('tasks_per_frame_IO');
assert.closeTo(1, hist.min, 1e-6);
assert.closeTo(1, hist.max, 1e-6);
assert.closeTo(1, hist.average, 1e-6);
// Verify sum of all threads.
hist = histograms.getHistogramNamed('<API key>');
assert.closeTo(2.5, hist.min, 1e-6);
assert.closeTo(2.5, hist.max, 1e-6);
assert.closeTo(2.5, hist.average, 1e-6);
});
});
</script> |
import os
from conda_build import api
from conda_build import render
def <API key>(testing_metadata):
testing_metadata.meta['build']['noarch'] = 'python'
output = api.<API key>(testing_metadata)
assert os.path.sep + "noarch" + os.path.sep in output[0]
def <API key>(testing_metadata):
testing_metadata.meta['build']['noarch_python'] = True
output = api.<API key>(testing_metadata)
assert os.path.sep + "noarch" + os.path.sep in output[0]
def <API key>(testing_metadata):
reqs = {'build': ['exact', 'exact 1.2.3 1', 'exact >1.0,<2'],
'host': ['exact', 'exact 1.2.3 1']
}
testing_metadata.meta['requirements'] = reqs
render.<API key>(testing_metadata)
assert (testing_metadata.meta['requirements']['build'] ==
testing_metadata.meta['requirements']['host'])
simplified_deps = testing_metadata.meta['requirements']
assert len(simplified_deps['build']) == 1
assert 'exact 1.2.3 1' in simplified_deps['build']
def <API key>(testing_metadata):
m = testing_metadata
m.config.variant['pin_run_as_build']['pkg'] = {
'max_pin': 'x.x'
}
dep = render.get_pin_from_build(
m,
'pkg * somestring*',
{'pkg': '1.2.3 somestring_h1234'}
)
assert dep == 'pkg >=1.2.3,<1.3.0a0 somestring*' |
<?php
namespace ZendGDataTest;
use ZendGData\App;
use Zend\Http\Header\Etag;
/**
* @category Zend
* @package ZendGData
* @subpackage UnitTests
* @group ZendGData
*/
class EntryTest extends \<API key>
{
public function setUp()
{
$this->entry = new \ZendGData\Entry();
$this->entryText = file_get_contents(
'ZendGData/_files/EntrySample1.xml',
true);
$this->etagLocalName = 'etag';
$this->expectedEtag = 'W/"<API key>."';
$this-><API key> = "ETag mismatch";
$this->gdNamespace = 'http://schemas.google.com/g/2005';
$this-><API key> = 'http://a9.com/-/spec/opensearchrss/1.0/';
$this-><API key> = 'http://a9.com/-/spec/opensearch/1.1/';
}
public function <API key>()
{
$etagData = Etag::fromString('Etag: Quux');
$this->entry->setEtag($etagData);
$domNode = $this->entry->getDOM(null, 1, null);
$this->assertNull($domNode->attributes->getNamedItemNS($this->gdNamespace, $this->etagLocalName));
}
public function <API key>()
{
$etagData = Etag::fromString('Etag: Quux');
$this->entry->setEtag($etagData);
$domNode = $this->entry->getDOM(null, 1, 1);
$this->assertNull($domNode->attributes->getNamedItemNS($this->gdNamespace, $this->etagLocalName));
}
public function <API key>()
{
$etagData = Etag::fromString('Etag: Quux');
$this->entry->setEtag($etagData);
$domNode = $this->entry->getDOM(null, 2, null);
$this->assertEquals($etagData->getFieldValue(), $domNode->attributes->getNamedItemNS($this->gdNamespace, $this->etagLocalName)->nodeValue);
}
public function <API key>()
{
$etagData = Etag::fromString('Etag: Quux');
$this->entry->setEtag($etagData);
$domNode = $this->entry->getDOM(null, 2, 1);
$this->assertEquals($etagData->getFieldValue(), $domNode->attributes->getNamedItemNS($this->gdNamespace, $this->etagLocalName)->nodeValue);
}
public function <API key>()
{
$this->entry->transferFromXML($this->entryText);
$this->assertEquals($this->expectedEtag, $this->entry->getEtag());
}
public function <API key>()
{
$exceptionCaught = false;
$this->entry->setEtag(Etag::fromString("Etag: Foo"));
try {
$this->entry->transferFromXML($this->entryText);
} catch (App\IOException $e) {
$exceptionCaught = true;
}
$this->assertTrue($exceptionCaught, "Exception ZendGData\\App\\IOException expected");
}
public function <API key>()
{
$messageCorrect = false;
$this->entry->setEtag(Etag::fromString("Etag: Foo"));
try {
$this->entry->transferFromXML($this->entryText);
} catch (App\IOException $e) {
if ($e->getMessage() == $this-><API key>)
$messageCorrect = true;
}
$this->assertTrue($messageCorrect, "Exception ZendGData\\App\\IOException message incorrect");
}
public function <API key>()
{
$this->entry->setEtag(Etag::fromString('Etag: ' . $this->expectedEtag));
$this->entry->transferFromXML($this->entryText);
$this->assertEquals($this->expectedEtag, $this->entry->getEtag()->getFieldValue());
}
public function <API key>()
{
$this->assertEquals($this-><API key>,
$this->entry->lookupNamespace('openSearch', 1, 0));
$this->assertEquals($this-><API key>,
$this->entry->lookupNamespace('openSearch', 1, null));
}
public function <API key>()
{
$this->assertEquals($this-><API key>,
$this->entry->lookupNamespace('openSearch', 2, 0));
$this->assertEquals($this-><API key>,
$this->entry->lookupNamespace('openSearch', 2, null));
}
} |
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.provide('goog.i18n.<API key>');
goog.require('goog.i18n.NumberFormatSymbols');
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ETB'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'DJF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ERN'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: '\u00A4\u00A4\u00A4',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ZAR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: '\u00A4\u00A4\u00A4',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'ZAR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'GHC'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00;\u00A4\u00A0#,##0.00-',
DEF_CURRENCY_CODE: 'AED'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00;\u00A4\u00A0#,##0.00-',
DEF_CURRENCY_CODE: 'BHD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00;\u00A4\u00A0#,##0.00-',
DEF_CURRENCY_CODE: 'DZD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00;\u00A4\u00A0#,##0.00-',
DEF_CURRENCY_CODE: 'IQD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00;\u00A4\u00A0#,##0.00-',
DEF_CURRENCY_CODE: 'JOD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00;\u00A4\u00A0#,##0.00-',
DEF_CURRENCY_CODE: 'KWD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00;\u00A4\u00A0#,##0.00-',
DEF_CURRENCY_CODE: 'LBP'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00;\u00A4\u00A0#,##0.00-',
DEF_CURRENCY_CODE: 'LYD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00;\u00A4\u00A0#,##0.00-',
DEF_CURRENCY_CODE: 'MAD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00;\u00A4\u00A0#,##0.00-',
DEF_CURRENCY_CODE: 'OMR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#0.00',
DEF_CURRENCY_CODE: 'QAR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#0.00',
DEF_CURRENCY_CODE: 'SAR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00;\u00A4\u00A0#,##0.00-',
DEF_CURRENCY_CODE: 'SDD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#0.00',
DEF_CURRENCY_CODE: 'SYP'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#0.00',
DEF_CURRENCY_CODE: 'TND'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#0.00',
DEF_CURRENCY_CODE: 'YER'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##,##0.00',
DEF_CURRENCY_CODE: 'INR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'TZS'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'AZN'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'IRR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'IRR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'BYR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'ZMK'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A4',
DEF_CURRENCY_CODE: 'TZS'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'XOF'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##,##0.00\u00A4;(#,##,##0.00\u00A4)',
DEF_CURRENCY_CODE: 'INR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'CNY'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'INR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'EUR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##,##0.00',
DEF_CURRENCY_CODE: 'INR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'BAM'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ERN'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'NGN'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;-#,##0.00\u00A4',
DEF_CURRENCY_CODE: 'UGX'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'USD'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'IQD'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'IRR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'IRR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'GBP'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'KES'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: '\'',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'CHF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##,##0.00',
DEF_CURRENCY_CODE: 'MVR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '#E+00',
PERCENT_PATTERN: '#,##,##0\u00A0%',
CURRENCY_PATTERN: '\u00A4#,##,##0.00',
DEF_CURRENCY_CODE: 'BTN'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'KES'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'GHC'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'XOF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'e',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'CYP'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'EUR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'BWP'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'BZD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'CAD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'HKD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'JMD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'MTL'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'MUR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ZAR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'NZD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'PHP'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##,##0.00',
DEF_CURRENCY_CODE: 'PKR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'GBP'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'TTD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ZWD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'USD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'MXN'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'ARS'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'BOB'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;\u00A4-#,##0.00',
DEF_CURRENCY_CODE: 'CLP'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'COP'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'CRC'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'DOP'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;\u00A4-#,##0.00',
DEF_CURRENCY_CODE: 'USD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'XAF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'GTQ'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'HNL'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'MXN'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'NIO'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'PAB'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'PEN'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'USD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00;\u00A4\u00A0-#,##0.00',
DEF_CURRENCY_CODE: 'PYG'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'SVC'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'USD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00;(\u00A4\u00A0#,##0.00)',
DEF_CURRENCY_CODE: 'UYU'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;\u00A4-#,##0.00',
DEF_CURRENCY_CODE: 'VEB'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '/',
GROUP_SEP: '\u060C',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '\u2212',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '\'\u202A\'#,##0%\'\u202C\'',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4;\'\u202A\'-#,##0.00\'\u202C\'\u00A0\u00A4',
DEF_CURRENCY_CODE: 'AFN'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'XOF'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '\u2212',
EXP_SYMBOL: '\u00D710^',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: '\u00A4\u00A4\u00A4',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '\u00A4#,##0.00;\u00A4-#,##0.00',
DEF_CURRENCY_CODE: 'DKK'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'EUR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'XOF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'BIF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'XOF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'CDF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'XAF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'XAF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: '\'',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00;\u00A4-#,##0.00',
DEF_CURRENCY_CODE: 'CHF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'XOF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'XAF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'DJF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'XAF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'GNF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'XAF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'KMF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'EUR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'MGA'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'XOF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'XOF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'RWF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'XOF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'XAF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'XOF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'EUR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'EUR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'GHC'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: '\u12C8',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ETB'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: '\u12C8',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ERN'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'KES'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'GBP'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'NGN'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'SDD'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'GHC'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'GHC'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'XOF'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'XOF'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'SDD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'USD'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'AMD'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'USD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'NGN'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'CNY'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: '\'',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00;\u00A4-#,##0.00',
DEF_CURRENCY_CODE: 'CHF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'CAD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'TZS'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'GEL'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A4',
DEF_CURRENCY_CODE: 'DZD'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'NGN'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'KES'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'NGN'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'TZS'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A4',
DEF_CURRENCY_CODE: 'CVE'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'XOF'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A4',
DEF_CURRENCY_CODE: 'XOF'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'KES'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'KZT'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '\u2212',
EXP_SYMBOL: '\u00D710^',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: '\u00A4\u00A4\u00A4',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '\u00A4#,##0.00;\u00A4-#,##0.00',
DEF_CURRENCY_CODE: 'DKK'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'KES'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A4',
DEF_CURRENCY_CODE: 'KHR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##,##0.00',
DEF_CURRENCY_CODE: 'INR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'GNF'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'LRD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A4',
DEF_CURRENCY_CODE: 'TZS'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '\u2212',
EXP_SYMBOL: '\u00D710^',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: '\u00A4\u00A4\u00A4',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'EUR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'IQD'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'IRR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'IRR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'TRY'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'SYP'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'SYP'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'TRY'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'GBP'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'KGS'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'TZS'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A4',
DEF_CURRENCY_CODE: 'UGX'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'XAF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;\u00A4-#,##0.00',
DEF_CURRENCY_CODE: 'LAK'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A4',
DEF_CURRENCY_CODE: 'KES'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;\u00A4-\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'KES'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'KES'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'TZS'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'KES'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'MUR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'MGA'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'NZD'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'MKD'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'MNT'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'CNY'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'CNY'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'BND'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'MMK'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ZAR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'NOK'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'ZWD'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'EUR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'NPR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'INR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'EUR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '\u2212',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'NOK'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ZAR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ZAR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'MWK'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;-#,##0.00\u00A4',
DEF_CURRENCY_CODE: 'UGX'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'EUR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ETB'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'KES'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##,##0.00',
DEF_CURRENCY_CODE: 'INR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##,##0.00',
DEF_CURRENCY_CODE: 'PKR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##,##0.00',
DEF_CURRENCY_CODE: 'PKR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '\u2212',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'AFN'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'AOA'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'XOF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'MZN'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: '\u2019',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '\u2212',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'CHF'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'MDL'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'TZS'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'MDL'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'UAH'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'RWF'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A4',
DEF_CURRENCY_CODE: 'TZS'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##,##0.00',
DEF_CURRENCY_CODE: 'INR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'KES'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '\u2212',
EXP_SYMBOL: '\u00D710^',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: '\u00A4\u00A4\u00A4',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'NOK'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '\u2212',
EXP_SYMBOL: '\u00D710^',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: '\u00A4\u00A4\u00A4',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'EUR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A4',
DEF_CURRENCY_CODE: 'MZN'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A4',
DEF_CURRENCY_CODE: 'XOF'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;\u00A4-#,##0.00',
DEF_CURRENCY_CODE: 'XAF'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'RSD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'BAM'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'EUR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'YUM'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A4',
DEF_CURRENCY_CODE: 'MAD'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##,##0.00;(\u00A4#,##,##0.00)',
DEF_CURRENCY_CODE: 'LKR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ETB'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'ZWD'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'SOS'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'DJF'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ETB'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'KES'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'BAM'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'EUR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'EUR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'BAM'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'YUM'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'USD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'BAM'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'EUR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'EUR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'YUM'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'EUR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'YUM'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ZAR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'SZL'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ERN'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ZAR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'LSL'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '\u2212',
EXP_SYMBOL: '\u00D710^',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: '\u00A4\u00A4\u00A4',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '#,##0\u00A0%',
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'EUR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'KES'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00;\u00A4\u00A0#,##0.00-',
DEF_CURRENCY_CODE: 'SYP'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##,##0.00',
DEF_CURRENCY_CODE: 'LKR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'UGX'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'KES'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'TJS'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ETB'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ERN'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ERN'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ZAR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'TOP'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'TWD'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ZAR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A4',
DEF_CURRENCY_CODE: 'RUB'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'MAD'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'CNY'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##,##0.00',
DEF_CURRENCY_CODE: 'INR'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'UZS'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '\u066A',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '\u2212',
EXP_SYMBOL: '\u00D7\u06F1\u06F0^',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'AFN'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '.',
PERCENT: '\u066A',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '\u2212',
EXP_SYMBOL: '\u00D7\u06F1\u06F0^',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'AFN'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ZAR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'TZS'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: '\u2019',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ETB'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4\u00A0#,##0.00',
DEF_CURRENCY_CODE: 'XOF'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ZAR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '#,##0.00\u00A0\u00A4',
DEF_CURRENCY_CODE: 'UGX'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'NGN'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'HKD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'MOP'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'SGD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'TWD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00;(\u00A4#,##0.00)',
DEF_CURRENCY_CODE: 'HKD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'MOP'
};
goog.i18n.<API key> = goog.i18n.<API key>;
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'MOP'
};
goog.i18n.<API key> = {
DECIMAL_SEP: '.',
GROUP_SEP: ',',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'SGD'
};
goog.i18n.<API key> = {
DECIMAL_SEP: ',',
GROUP_SEP: '\u00A0',
PERCENT: '%',
ZERO_DIGIT: '0',
PLUS_SIGN: '+',
MINUS_SIGN: '-',
EXP_SYMBOL: 'E',
PERMILL: '\u2030',
INFINITY: '\u221E',
NAN: 'NaN',
DECIMAL_PATTERN: '
SCIENTIFIC_PATTERN: '
PERCENT_PATTERN: '
CURRENCY_PATTERN: '\u00A4#,##0.00',
DEF_CURRENCY_CODE: 'ZAR'
};
goog.i18n.<API key> = goog.i18n.<API key>;
if(goog.LOCALE == 'aa') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'aa_DJ' || goog.LOCALE == 'aa-DJ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'aa_ER' || goog.LOCALE == 'aa-ER') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'aa_ET' || goog.LOCALE == 'aa-ET') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'af') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'af_NA' || goog.LOCALE == 'af-NA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'af_ZA' || goog.LOCALE == 'af-ZA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ak') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ak_GH' || goog.LOCALE == 'ak-GH') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ar_AE' || goog.LOCALE == 'ar-AE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ar_BH' || goog.LOCALE == 'ar-BH') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ar_DZ' || goog.LOCALE == 'ar-DZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ar_IQ' || goog.LOCALE == 'ar-IQ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ar_JO' || goog.LOCALE == 'ar-JO') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ar_KW' || goog.LOCALE == 'ar-KW') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ar_LB' || goog.LOCALE == 'ar-LB') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ar_LY' || goog.LOCALE == 'ar-LY') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ar_MA' || goog.LOCALE == 'ar-MA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ar_OM' || goog.LOCALE == 'ar-OM') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ar_QA' || goog.LOCALE == 'ar-QA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ar_SA' || goog.LOCALE == 'ar-SA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ar_SD' || goog.LOCALE == 'ar-SD') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ar_SY' || goog.LOCALE == 'ar-SY') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ar_TN' || goog.LOCALE == 'ar-TN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ar_YE' || goog.LOCALE == 'ar-YE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'as') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'as_IN' || goog.LOCALE == 'as-IN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'asa') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'asa_TZ' || goog.LOCALE == 'asa-TZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'az') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'az_AZ' || goog.LOCALE == 'az-AZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'az_Arab' || goog.LOCALE == 'az-Arab') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'az_Arab_IR' || goog.LOCALE == 'az-Arab-IR') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'az_Cyrl' || goog.LOCALE == 'az-Cyrl') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'az_Cyrl_AZ' || goog.LOCALE == 'az-Cyrl-AZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'az_IR' || goog.LOCALE == 'az-IR') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'az_Latn' || goog.LOCALE == 'az-Latn') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'az_Latn_AZ' || goog.LOCALE == 'az-Latn-AZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'be') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'be_BY' || goog.LOCALE == 'be-BY') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'bem') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'bem_ZM' || goog.LOCALE == 'bem-ZM') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'bez') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'bez_TZ' || goog.LOCALE == 'bez-TZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'bm') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'bm_ML' || goog.LOCALE == 'bm-ML') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'bn_IN' || goog.LOCALE == 'bn-IN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'bo') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'bo_CN' || goog.LOCALE == 'bo-CN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'bo_IN' || goog.LOCALE == 'bo-IN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'br') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'br_FR' || goog.LOCALE == 'br-FR') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'brx') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'brx_IN' || goog.LOCALE == 'brx-IN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'bs') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'bs_BA' || goog.LOCALE == 'bs-BA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'byn') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'byn_ER' || goog.LOCALE == 'byn-ER') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'cch') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'cch_NG' || goog.LOCALE == 'cch-NG') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'cgg') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'cgg_UG' || goog.LOCALE == 'cgg-UG') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'chr') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'chr_US' || goog.LOCALE == 'chr-US') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ckb') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ckb_Arab' || goog.LOCALE == 'ckb-Arab') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ckb_Arab_IQ' || goog.LOCALE == 'ckb-Arab-IQ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ckb_Arab_IR' || goog.LOCALE == 'ckb-Arab-IR') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ckb_IQ' || goog.LOCALE == 'ckb-IQ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ckb_IR' || goog.LOCALE == 'ckb-IR') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ckb_Latn' || goog.LOCALE == 'ckb-Latn') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ckb_Latn_IQ' || goog.LOCALE == 'ckb-Latn-IQ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'cy') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'cy_GB' || goog.LOCALE == 'cy-GB') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'dav') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'dav_KE' || goog.LOCALE == 'dav-KE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'de_LI' || goog.LOCALE == 'de-LI') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'dv') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'dv_MV' || goog.LOCALE == 'dv-MV') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'dz') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'dz_BT' || goog.LOCALE == 'dz-BT') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ebu') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ebu_KE' || goog.LOCALE == 'ebu-KE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ee') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ee_GH' || goog.LOCALE == 'ee-GH') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ee_TG' || goog.LOCALE == 'ee-TG') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'el_CY' || goog.LOCALE == 'el-CY') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'en_BE' || goog.LOCALE == 'en-BE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'en_BW' || goog.LOCALE == 'en-BW') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'en_BZ' || goog.LOCALE == 'en-BZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'en_CA' || goog.LOCALE == 'en-CA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'en_HK' || goog.LOCALE == 'en-HK') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'en_JM' || goog.LOCALE == 'en-JM') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'en_MT' || goog.LOCALE == 'en-MT') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'en_MU' || goog.LOCALE == 'en-MU') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'en_NA' || goog.LOCALE == 'en-NA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'en_NZ' || goog.LOCALE == 'en-NZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'en_PH' || goog.LOCALE == 'en-PH') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'en_PK' || goog.LOCALE == 'en-PK') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'en_Shaw' || goog.LOCALE == 'en-Shaw') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'en_TT' || goog.LOCALE == 'en-TT') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'en_ZW' || goog.LOCALE == 'en-ZW') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'eo') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'es_419' || goog.LOCALE == 'es-419') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'es_AR' || goog.LOCALE == 'es-AR') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'es_BO' || goog.LOCALE == 'es-BO') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'es_CL' || goog.LOCALE == 'es-CL') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'es_CO' || goog.LOCALE == 'es-CO') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'es_CR' || goog.LOCALE == 'es-CR') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'es_DO' || goog.LOCALE == 'es-DO') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'es_EC' || goog.LOCALE == 'es-EC') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'es_GQ' || goog.LOCALE == 'es-GQ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'es_GT' || goog.LOCALE == 'es-GT') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'es_HN' || goog.LOCALE == 'es-HN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'es_MX' || goog.LOCALE == 'es-MX') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'es_NI' || goog.LOCALE == 'es-NI') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'es_PA' || goog.LOCALE == 'es-PA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'es_PE' || goog.LOCALE == 'es-PE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'es_PR' || goog.LOCALE == 'es-PR') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'es_PY' || goog.LOCALE == 'es-PY') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'es_SV' || goog.LOCALE == 'es-SV') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'es_US' || goog.LOCALE == 'es-US') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'es_UY' || goog.LOCALE == 'es-UY') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'es_VE' || goog.LOCALE == 'es-VE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fa_AF' || goog.LOCALE == 'fa-AF') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ff') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ff_SN' || goog.LOCALE == 'ff-SN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fo') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fo_FO' || goog.LOCALE == 'fo-FO') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fr_BE' || goog.LOCALE == 'fr-BE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fr_BF' || goog.LOCALE == 'fr-BF') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fr_BI' || goog.LOCALE == 'fr-BI') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fr_BJ' || goog.LOCALE == 'fr-BJ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fr_CD' || goog.LOCALE == 'fr-CD') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fr_CF' || goog.LOCALE == 'fr-CF') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fr_CG' || goog.LOCALE == 'fr-CG') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fr_CH' || goog.LOCALE == 'fr-CH') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fr_CI' || goog.LOCALE == 'fr-CI') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fr_CM' || goog.LOCALE == 'fr-CM') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fr_DJ' || goog.LOCALE == 'fr-DJ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fr_GA' || goog.LOCALE == 'fr-GA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fr_GN' || goog.LOCALE == 'fr-GN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fr_GQ' || goog.LOCALE == 'fr-GQ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fr_KM' || goog.LOCALE == 'fr-KM') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fr_LU' || goog.LOCALE == 'fr-LU') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fr_MG' || goog.LOCALE == 'fr-MG') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fr_ML' || goog.LOCALE == 'fr-ML') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fr_NE' || goog.LOCALE == 'fr-NE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fr_RW' || goog.LOCALE == 'fr-RW') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fr_SN' || goog.LOCALE == 'fr-SN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fr_TD' || goog.LOCALE == 'fr-TD') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fr_TG' || goog.LOCALE == 'fr-TG') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fur') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'fur_IT' || goog.LOCALE == 'fur-IT') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ga') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ga_IE' || goog.LOCALE == 'ga-IE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'gaa') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'gaa_GH' || goog.LOCALE == 'gaa-GH') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'gez') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'gez_ER' || goog.LOCALE == 'gez-ER') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'gez_ET' || goog.LOCALE == 'gez-ET') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'guz') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'guz_KE' || goog.LOCALE == 'guz-KE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'gv') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'gv_GB' || goog.LOCALE == 'gv-GB') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ha') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ha_Arab' || goog.LOCALE == 'ha-Arab') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ha_Arab_NG' || goog.LOCALE == 'ha-Arab-NG') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ha_Arab_SD' || goog.LOCALE == 'ha-Arab-SD') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ha_GH' || goog.LOCALE == 'ha-GH') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ha_Latn' || goog.LOCALE == 'ha-Latn') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ha_Latn_GH' || goog.LOCALE == 'ha-Latn-GH') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ha_Latn_NE' || goog.LOCALE == 'ha-Latn-NE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ha_Latn_NG' || goog.LOCALE == 'ha-Latn-NG') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ha_NE' || goog.LOCALE == 'ha-NE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ha_NG' || goog.LOCALE == 'ha-NG') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ha_SD' || goog.LOCALE == 'ha-SD') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'haw') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'haw_US' || goog.LOCALE == 'haw-US') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'hy') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'hy_AM' || goog.LOCALE == 'hy-AM') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ia') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ig') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ig_NG' || goog.LOCALE == 'ig-NG') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ii') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ii_CN' || goog.LOCALE == 'ii-CN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'it_CH' || goog.LOCALE == 'it-CH') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'iu') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'jmc') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'jmc_TZ' || goog.LOCALE == 'jmc-TZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ka') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ka_GE' || goog.LOCALE == 'ka-GE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kab') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kab_DZ' || goog.LOCALE == 'kab-DZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kaj') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kaj_NG' || goog.LOCALE == 'kaj-NG') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kam') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kam_KE' || goog.LOCALE == 'kam-KE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kcg') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kcg_NG' || goog.LOCALE == 'kcg-NG') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kde') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kde_TZ' || goog.LOCALE == 'kde-TZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kea') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kea_CV' || goog.LOCALE == 'kea-CV') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kfo') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kfo_CI' || goog.LOCALE == 'kfo-CI') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'khq') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'khq_ML' || goog.LOCALE == 'khq-ML') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ki') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ki_KE' || goog.LOCALE == 'ki-KE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kk') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kk_Cyrl' || goog.LOCALE == 'kk-Cyrl') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kk_Cyrl_KZ' || goog.LOCALE == 'kk-Cyrl-KZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kk_KZ' || goog.LOCALE == 'kk-KZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kl') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kl_GL' || goog.LOCALE == 'kl-GL') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kln') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kln_KE' || goog.LOCALE == 'kln-KE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'km') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'km_KH' || goog.LOCALE == 'km-KH') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kok') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kok_IN' || goog.LOCALE == 'kok-IN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kpe') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kpe_GN' || goog.LOCALE == 'kpe-GN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kpe_LR' || goog.LOCALE == 'kpe-LR') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ksb') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ksb_TZ' || goog.LOCALE == 'ksb-TZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ksh') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ksh_DE' || goog.LOCALE == 'ksh-DE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ku') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ku_Arab' || goog.LOCALE == 'ku-Arab') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ku_Arab_IQ' || goog.LOCALE == 'ku-Arab-IQ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ku_Arab_IR' || goog.LOCALE == 'ku-Arab-IR') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ku_IQ' || goog.LOCALE == 'ku-IQ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ku_IR' || goog.LOCALE == 'ku-IR') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ku_Latn' || goog.LOCALE == 'ku-Latn') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ku_Latn_SY' || goog.LOCALE == 'ku-Latn-SY') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ku_Latn_TR' || goog.LOCALE == 'ku-Latn-TR') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ku_SY' || goog.LOCALE == 'ku-SY') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ku_TR' || goog.LOCALE == 'ku-TR') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kw') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'kw_GB' || goog.LOCALE == 'kw-GB') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ky') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ky_KG' || goog.LOCALE == 'ky-KG') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'lag') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'lag_TZ' || goog.LOCALE == 'lag-TZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'lg') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'lg_UG' || goog.LOCALE == 'lg-UG') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ln_CG' || goog.LOCALE == 'ln-CG') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'lo') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'lo_LA' || goog.LOCALE == 'lo-LA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'luo') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'luo_KE' || goog.LOCALE == 'luo-KE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'luy') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'luy_KE' || goog.LOCALE == 'luy-KE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'mas') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'mas_KE' || goog.LOCALE == 'mas-KE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'mas_TZ' || goog.LOCALE == 'mas-TZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'mer') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'mer_KE' || goog.LOCALE == 'mer-KE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'mfe') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'mfe_MU' || goog.LOCALE == 'mfe-MU') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'mg') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'mg_MG' || goog.LOCALE == 'mg-MG') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'mi') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'mi_NZ' || goog.LOCALE == 'mi-NZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'mk') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'mk_MK' || goog.LOCALE == 'mk-MK') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'mn') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'mn_CN' || goog.LOCALE == 'mn-CN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'mn_Cyrl' || goog.LOCALE == 'mn-Cyrl') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'mn_Cyrl_MN' || goog.LOCALE == 'mn-Cyrl-MN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'mn_MN' || goog.LOCALE == 'mn-MN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'mn_Mong' || goog.LOCALE == 'mn-Mong') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'mn_Mong_CN' || goog.LOCALE == 'mn-Mong-CN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ms_BN' || goog.LOCALE == 'ms-BN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'my') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'my_MM' || goog.LOCALE == 'my-MM') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'naq') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'naq_NA' || goog.LOCALE == 'naq-NA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'nb') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'nb_NO' || goog.LOCALE == 'nb-NO') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'nd') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'nd_ZW' || goog.LOCALE == 'nd-ZW') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'nds') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'nds_DE' || goog.LOCALE == 'nds-DE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ne') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ne_IN' || goog.LOCALE == 'ne-IN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ne_NP' || goog.LOCALE == 'ne-NP') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'nl_BE' || goog.LOCALE == 'nl-BE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'nn') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'nn_NO' || goog.LOCALE == 'nn-NO') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'nr') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'nr_ZA' || goog.LOCALE == 'nr-ZA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'nso') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'nso_ZA' || goog.LOCALE == 'nso-ZA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ny') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ny_MW' || goog.LOCALE == 'ny-MW') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'nyn') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'nyn_UG' || goog.LOCALE == 'nyn-UG') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'oc') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'oc_FR' || goog.LOCALE == 'oc-FR') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'om') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'om_ET' || goog.LOCALE == 'om-ET') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'om_KE' || goog.LOCALE == 'om-KE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'pa') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'pa_Arab' || goog.LOCALE == 'pa-Arab') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'pa_Arab_PK' || goog.LOCALE == 'pa-Arab-PK') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'pa_Guru' || goog.LOCALE == 'pa-Guru') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'pa_Guru_IN' || goog.LOCALE == 'pa-Guru-IN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'pa_IN' || goog.LOCALE == 'pa-IN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'pa_PK' || goog.LOCALE == 'pa-PK') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ps') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ps_AF' || goog.LOCALE == 'ps-AF') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'pt_AO' || goog.LOCALE == 'pt-AO') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'pt_GW' || goog.LOCALE == 'pt-GW') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'pt_MZ' || goog.LOCALE == 'pt-MZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'rm') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'rm_CH' || goog.LOCALE == 'rm-CH') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ro_MD' || goog.LOCALE == 'ro-MD') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'rof') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'rof_TZ' || goog.LOCALE == 'rof-TZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ru_MD' || goog.LOCALE == 'ru-MD') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ru_UA' || goog.LOCALE == 'ru-UA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'rw') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'rw_RW' || goog.LOCALE == 'rw-RW') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'rwk') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'rwk_TZ' || goog.LOCALE == 'rwk-TZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sa') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sa_IN' || goog.LOCALE == 'sa-IN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'saq') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'saq_KE' || goog.LOCALE == 'saq-KE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'se') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'se_FI' || goog.LOCALE == 'se-FI') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'se_NO' || goog.LOCALE == 'se-NO') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'seh') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'seh_MZ' || goog.LOCALE == 'seh-MZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ses') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ses_ML' || goog.LOCALE == 'ses-ML') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sg') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sg_CF' || goog.LOCALE == 'sg-CF') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sh') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sh_BA' || goog.LOCALE == 'sh-BA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sh_CS' || goog.LOCALE == 'sh-CS') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sh_YU' || goog.LOCALE == 'sh-YU') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'shi') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'shi_Latn' || goog.LOCALE == 'shi-Latn') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'shi_Latn_MA' || goog.LOCALE == 'shi-Latn-MA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'shi_MA' || goog.LOCALE == 'shi-MA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'shi_Tfng' || goog.LOCALE == 'shi-Tfng') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'shi_Tfng_MA' || goog.LOCALE == 'shi-Tfng-MA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'si') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'si_LK' || goog.LOCALE == 'si-LK') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sid') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sid_ET' || goog.LOCALE == 'sid-ET') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sn') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sn_ZW' || goog.LOCALE == 'sn-ZW') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'so') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'so_DJ' || goog.LOCALE == 'so-DJ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'so_ET' || goog.LOCALE == 'so-ET') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'so_KE' || goog.LOCALE == 'so-KE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'so_SO' || goog.LOCALE == 'so-SO') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sr_BA' || goog.LOCALE == 'sr-BA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sr_CS' || goog.LOCALE == 'sr-CS') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sr_Cyrl' || goog.LOCALE == 'sr-Cyrl') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sr_Cyrl_BA' || goog.LOCALE == 'sr-Cyrl-BA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sr_Cyrl_CS' || goog.LOCALE == 'sr-Cyrl-CS') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sr_Cyrl_ME' || goog.LOCALE == 'sr-Cyrl-ME') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sr_Cyrl_YU' || goog.LOCALE == 'sr-Cyrl-YU') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sr_Latn' || goog.LOCALE == 'sr-Latn') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sr_Latn_BA' || goog.LOCALE == 'sr-Latn-BA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sr_Latn_CS' || goog.LOCALE == 'sr-Latn-CS') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sr_Latn_ME' || goog.LOCALE == 'sr-Latn-ME') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sr_Latn_YU' || goog.LOCALE == 'sr-Latn-YU') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sr_ME' || goog.LOCALE == 'sr-ME') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sr_YU' || goog.LOCALE == 'sr-YU') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ss') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ss_SZ' || goog.LOCALE == 'ss-SZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ss_ZA' || goog.LOCALE == 'ss-ZA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ssy') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ssy_ER' || goog.LOCALE == 'ssy-ER') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'st') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'st_LS' || goog.LOCALE == 'st-LS') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'st_ZA' || goog.LOCALE == 'st-ZA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sv_FI' || goog.LOCALE == 'sv-FI') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'sw_KE' || goog.LOCALE == 'sw-KE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'syr') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'syr_SY' || goog.LOCALE == 'syr-SY') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ta_LK' || goog.LOCALE == 'ta-LK') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'teo') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'teo_KE' || goog.LOCALE == 'teo-KE') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'teo_UG' || goog.LOCALE == 'teo-UG') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'tg') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'tg_Cyrl' || goog.LOCALE == 'tg-Cyrl') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'tg_Cyrl_TJ' || goog.LOCALE == 'tg-Cyrl-TJ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'tg_TJ' || goog.LOCALE == 'tg-TJ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ti') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ti_ER' || goog.LOCALE == 'ti-ER') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ti_ET' || goog.LOCALE == 'ti-ET') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'tig') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'tig_ER' || goog.LOCALE == 'tig-ER') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'tn') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'tn_ZA' || goog.LOCALE == 'tn-ZA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'to') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'to_TO' || goog.LOCALE == 'to-TO') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'trv') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'trv_TW' || goog.LOCALE == 'trv-TW') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ts') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ts_ZA' || goog.LOCALE == 'ts-ZA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'tt') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'tt_RU' || goog.LOCALE == 'tt-RU') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'tzm') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'tzm_Latn' || goog.LOCALE == 'tzm-Latn') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'tzm_Latn_MA' || goog.LOCALE == 'tzm-Latn-MA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'tzm_MA' || goog.LOCALE == 'tzm-MA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ug') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ug_Arab' || goog.LOCALE == 'ug-Arab') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ug_Arab_CN' || goog.LOCALE == 'ug-Arab-CN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ug_CN' || goog.LOCALE == 'ug-CN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'ur_IN' || goog.LOCALE == 'ur-IN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'uz') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'uz_AF' || goog.LOCALE == 'uz-AF') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'uz_Arab' || goog.LOCALE == 'uz-Arab') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'uz_Arab_AF' || goog.LOCALE == 'uz-Arab-AF') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'uz_Cyrl' || goog.LOCALE == 'uz-Cyrl') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'uz_Cyrl_UZ' || goog.LOCALE == 'uz-Cyrl-UZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'uz_Latn' || goog.LOCALE == 'uz-Latn') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'uz_Latn_UZ' || goog.LOCALE == 'uz-Latn-UZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'uz_UZ' || goog.LOCALE == 'uz-UZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 've') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 've_ZA' || goog.LOCALE == 've-ZA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'vun') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'vun_TZ' || goog.LOCALE == 'vun-TZ') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'wal') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'wal_ET' || goog.LOCALE == 'wal-ET') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'wo') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'wo_Latn' || goog.LOCALE == 'wo-Latn') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'wo_Latn_SN' || goog.LOCALE == 'wo-Latn-SN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'wo_SN' || goog.LOCALE == 'wo-SN') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'xh') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'xh_ZA' || goog.LOCALE == 'xh-ZA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'xog') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'xog_UG' || goog.LOCALE == 'xog-UG') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'yo') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'yo_NG' || goog.LOCALE == 'yo-NG') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'zh_Hans_HK' || goog.LOCALE == 'zh-Hans-HK') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'zh_Hans_MO' || goog.LOCALE == 'zh-Hans-MO') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'zh_Hans_SG' || goog.LOCALE == 'zh-Hans-SG') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'zh_Hant' || goog.LOCALE == 'zh-Hant') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'zh_Hant_HK' || goog.LOCALE == 'zh-Hant-HK') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'zh_Hant_MO' || goog.LOCALE == 'zh-Hant-MO') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'zh_Hant_TW' || goog.LOCALE == 'zh-Hant-TW') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'zh_MO' || goog.LOCALE == 'zh-MO') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'zh_SG' || goog.LOCALE == 'zh-SG') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'zu') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
}
if(goog.LOCALE == 'zu_ZA' || goog.LOCALE == 'zu-ZA') {
goog.i18n.NumberFormatSymbols = goog.i18n.<API key>;
} |
#include "chrome/browser/extensions/api/system_network/system_network_api.h"
namespace {
const char kNetworkListError[] = "Network lookup failed or unsupported";
} // namespace
namespace extensions {
namespace api {
<API key>::
<API key>() {}
<API key>::
~<API key>() {}
bool <API key>::RunImpl() {
content::BrowserThread::PostTask(content::BrowserThread::FILE, FROM_HERE,
base::Bind(&<API key>::
GetListOnFileThread,
this));
return true;
}
void <API key>::GetListOnFileThread() {
net::<API key> interface_list;
if (net::GetNetworkList(
&interface_list, net::<API key>)) {
content::BrowserThread::PostTask(content::BrowserThread::UI, FROM_HERE,
base::Bind(&<API key>::
<API key>,
this, interface_list));
return;
}
content::BrowserThread::PostTask(content::BrowserThread::UI, FROM_HERE,
base::Bind(&<API key>::
HandleGetListError,
this));
}
void <API key>::HandleGetListError() {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
error_ = kNetworkListError;
SendResponse(false);
}
void <API key>::<API key>(
const net::<API key>& interface_list) {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
std::vector<linked_ptr<api::system_network::NetworkInterface> >
create_arg;
create_arg.reserve(interface_list.size());
for (net::<API key>::const_iterator i = interface_list.begin();
i != interface_list.end(); ++i) {
linked_ptr<api::system_network::NetworkInterface> info =
make_linked_ptr(new api::system_network::NetworkInterface);
info->name = i->name;
info->address = net::IPAddressToString(i->address);
info->prefix_length = i->network_prefix;
create_arg.push_back(info);
}
results_ = api::system_network::<API key>::Results::Create(
create_arg);
SendResponse(true);
}
} // namespace api
} // namespace extensions |
// modification, are permitted provided that the following conditions are
// met:
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// OWNER 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 <API key>
#define <API key>
#include <memory>
#include "base/mutex.h"
#include "renderer/renderer_server.h"
#include "renderer/unix/<API key>.h"
namespace mozc {
namespace renderer {
namespace gtk {
class WindowManager;
class UnixServer : public RendererServer {
public:
struct MozcWatchSource {
GSource source;
GPollFD poll_fd;
UnixServer *unix_server;
};
// UnixServer takes arguments' ownership.
explicit UnixServer(GtkWrapperInterface *gtk);
~UnixServer();
virtual void AsyncHide();
virtual void AsyncQuit();
virtual bool AsyncExecCommand(string *proto_message);
virtual int StartMessageLoop();
virtual bool Render();
void OpenPipe();
private:
string message_;
Mutex mutex_;
std::unique_ptr<GtkWrapperInterface> gtk_;
// Following pipe is used to communicate IPC recieving thread and
// rendering(gtk-main) thread. The gtk-main loop polls following pipe and IPC
// recieving thread writes small data to notify gtk-main thread to update when
// new packet is arrived.
int pipefd_[2];
<API key>(UnixServer);
};
} // namespace gtk
} // namespace renderer
} // namespace mozc
#endif // <API key> |
package org.chromium.components.media_router.caf;
import static org.chromium.components.media_router.caf.CastUtils.isSameOrigin;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import androidx.mediarouter.media.MediaRouter;
import com.google.android.gms.cast.framework.CastSession;
import org.chromium.base.Log;
import org.chromium.components.media_router.BrowserMediaRouter;
import org.chromium.components.media_router.ClientRecord;
import org.chromium.components.media_router.MediaRoute;
import org.chromium.components.media_router.MediaRouteManager;
import org.chromium.components.media_router.MediaRouteProvider;
import org.chromium.components.media_router.MediaSink;
import org.chromium.components.media_router.MediaSource;
import java.util.HashMap;
import java.util.Map;
/**
* A {@link MediaRouteProvider} implementation for Cast devices and applications, using Cast v3 API.
*/
public class <API key> extends <API key> {
private static final String TAG = "CafMRP";
private static final String <API key> = "auto-join";
private static final String <API key> = "cast-session_";
private <API key> <API key>;
@VisibleForTesting
ClientRecord <API key>;
// The records for clients, which must match mRoutes. This is used for the saving last record
// for autojoin.
private final Map<String, ClientRecord> mClientIdToRecords =
new HashMap<String, ClientRecord>();
@VisibleForTesting
CafMessageHandler mMessageHandler;
// The session controller which is always attached to the current CastSession.
private final <API key> mSessionController;
public static <API key> create(MediaRouteManager manager) {
return new <API key>(BrowserMediaRouter.<API key>(), manager);
}
public Map<String, ClientRecord> <API key>() {
return mClientIdToRecords;
}
@Override
public void joinRoute(
String sourceId, String presentationId, String origin, int tabId, int nativeRequestId) {
CastMediaSource source = CastMediaSource.from(sourceId);
if (source == null || source.getClientId() == null) {
mManager.<API key>("Unsupported presentation URL", nativeRequestId);
return;
}
if (!hasSession()) {
mManager.<API key>("No presentation", nativeRequestId);
return;
}
if (!<API key>(presentationId, origin, tabId, source)) {
mManager.<API key>("No matching route", nativeRequestId);
return;
}
MediaRoute route =
new MediaRoute(sessionController().getSink().getId(), sourceId, presentationId);
addRoute(route, origin, tabId, nativeRequestId, /* wasLaunched= */ false);
}
// TODO(zqzhang): the clientRecord/route management is not clean and the logic seems to be
// problematic.
@Override
public void closeRoute(String routeId) {
boolean isRouteInRecord = mRoutes.containsKey(routeId);
super.closeRoute(routeId);
if (!isRouteInRecord) return;
ClientRecord client = <API key>(routeId);
if (client != null) {
MediaSink sink = sessionController().getSink();
if (sink != null) {
mMessageHandler.<API key>(routeId, sink, client.clientId, "stop");
}
}
}
@Override
public void sendStringMessage(String routeId, String message) {
Log.d(TAG, "Received message from client: %s", message);
if (!mRoutes.containsKey(routeId)) {
return;
}
mMessageHandler.<API key>(message);
}
@Override
protected MediaSource getSourceFromId(String sourceId) {
return CastMediaSource.from(sourceId);
}
@Override
public <API key> sessionController() {
return mSessionController;
}
public void sendMessageToClient(String clientId, String message) {
ClientRecord clientRecord = mClientIdToRecords.get(clientId);
if (clientRecord == null) return;
if (!clientRecord.isConnected) {
Log.d(TAG, "Queueing message to client %s: %s", clientId, message);
clientRecord.pendingMessages.add(message);
return;
}
Log.d(TAG, "Sending message to client %s: %s", clientId, message);
mManager.onMessage(clientRecord.routeId, message);
}
/** Flushes all pending messages in record to a client. */
public void <API key>(ClientRecord clientRecord) {
for (String message : clientRecord.pendingMessages) {
Log.d(TAG, "Deqeueing message for client %s: %s", clientRecord.clientId, message);
mManager.onMessage(clientRecord.routeId, message);
}
clientRecord.pendingMessages.clear();
}
@NonNull
public CafMessageHandler getMessageHandler() {
return mMessageHandler;
}
@Override
protected void handleSessionStart(CastSession session, String sessionId) {
super.handleSessionStart(session, sessionId);
for (ClientRecord clientRecord : mClientIdToRecords.values()) {
// Should be exactly one instance of MediaRoute/ClientRecord at this moment.
mMessageHandler.<API key>(clientRecord.routeId,
sessionController().getSink(), clientRecord.clientId, "cast");
}
mMessageHandler.onSessionStarted();
sessionController().getSession().<API key>().requestStatus();
}
@Override
protected void addRoute(
MediaRoute route, String origin, int tabId, int nativeRequestId, boolean wasLaunched) {
super.addRoute(route, origin, tabId, nativeRequestId, wasLaunched);
CastMediaSource source = CastMediaSource.from(route.sourceId);
final String clientId = source.getClientId();
if (clientId == null || mClientIdToRecords.containsKey(clientId)) return;
mClientIdToRecords.put(clientId,
new ClientRecord(route.id, clientId, source.getApplicationId(),
source.getAutoJoinPolicy(), origin, tabId));
}
@Override
protected void <API key>(String routeId) {
ClientRecord record = <API key>(routeId);
if (record != null) {
<API key> = mClientIdToRecords.remove(record.clientId);
}
super.<API key>(routeId);
}
@Nullable
private ClientRecord <API key>(String routeId) {
for (ClientRecord record : mClientIdToRecords.values()) {
if (record.routeId.equals(routeId)) return record;
}
return null;
}
private <API key>(MediaRouter androidMediaRouter, MediaRouteManager manager) {
super(androidMediaRouter, manager);
mSessionController = new <API key>(this);
mMessageHandler = new CafMessageHandler(this, mSessionController);
}
@VisibleForTesting
boolean <API key>(
String presentationId, String origin, int tabId, CastMediaSource source) {
if (<API key>.equals(presentationId)) {
return canAutoJoin(source, origin, tabId);
}
if (presentationId.startsWith(<API key>)) {
String sessionId = presentationId.substring(<API key>.length());
return sessionId != null && sessionId.equals(sessionController().getSessionId());
}
for (MediaRoute route : mRoutes.values()) {
if (route.presentationId.equals(presentationId)) return true;
}
return false;
}
private boolean canAutoJoin(CastMediaSource source, String origin, int tabId) {
if (source.getAutoJoinPolicy().equals(CastMediaSource.<API key>)) return false;
CastMediaSource currentSource = (CastMediaSource) sessionController().getSource();
if (!currentSource.getApplicationId().equals(source.getApplicationId())) return false;
if (mClientIdToRecords.isEmpty() && <API key> != null) {
return isSameOrigin(origin, <API key>.origin)
&& tabId == <API key>.tabId;
}
if (mClientIdToRecords.isEmpty()) return false;
ClientRecord client = mClientIdToRecords.values().iterator().next();
if (source.getAutoJoinPolicy().equals(CastMediaSource.<API key>)) {
return isSameOrigin(origin, client.origin);
}
if (source.getAutoJoinPolicy().equals(CastMediaSource.<API key>)) {
return isSameOrigin(origin, client.origin) && tabId == client.tabId;
}
return false;
}
} |
#include "net/url_request/<API key>.h"
#include <utility>
#include "base/strings/<API key>.h"
#include "base/values.h"
#include "net/base/<API key>.h"
#include "net/cookies/site_for_cookies.h"
#include "net/log/<API key>.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace net {
base::Value <API key>(
const GURL& url,
RequestPriority priority,
<API key> traffic_annotation) {
base::Value dict(base::Value::Type::DICTIONARY);
dict.SetStringKey("url", url.<API key>());
dict.SetStringKey("priority", <API key>(priority));
dict.SetIntKey("traffic_annotation", traffic_annotation.unique_id_hash_code);
return dict;
}
base::Value <API key>(
const GURL& url,
const std::string& method,
int load_flags,
PrivacyMode privacy_mode,
const IsolationInfo& isolation_info,
const SiteForCookies& site_for_cookies,
const absl::optional<url::Origin>& initiator,
int64_t upload_id) {
base::Value dict(base::Value::Type::DICTIONARY);
dict.SetStringKey("url", url.<API key>());
dict.SetStringKey("method", method);
dict.SetIntKey("load_flags", load_flags);
dict.SetStringKey("privacy_mode", <API key>(privacy_mode));
dict.SetStringKey("<API key>",
isolation_info.<API key>().ToDebugString());
std::string request_type;
switch (isolation_info.request_type()) {
case IsolationInfo::RequestType::kMainFrame:
request_type = "main frame";
break;
case IsolationInfo::RequestType::kSubFrame:
request_type = "subframe";
break;
case IsolationInfo::RequestType::kOther:
request_type = "other";
break;
}
dict.SetStringKey("request_type", request_type);
dict.SetStringKey("site_for_cookies", site_for_cookies.ToDebugString());
dict.SetStringKey("initiator", initiator.has_value() ? initiator->Serialize()
: "not an origin");
if (upload_id > -1)
dict.SetStringKey("upload_id", base::NumberToString(upload_id));
return dict;
}
} // namespace net |
<?php
require_once(dirname(__FILE__) . '/new_db.inc');
echo "Creating Table\n";
var_dump($db->exec('CREATE TABLE test (time INTEGER, id STRING)'));
echo "Creating Same Table Again\n";
var_dump($db->exec('CREATE TABLE test (time INTEGER, id STRING)'));
echo "Dropping database\n";
var_dump($db->exec('DROP TABLE test'));
echo "Closing database\n";
var_dump($db->close());
echo "Done\n";
?> |
#include "base/file_path.h"
#include "base/logging.h"
#include "base/path_service.h"
#include "media/base/media.h"
#include "media/ffmpeg/ffmpeg_common.h"
#include "testing/gtest/include/gtest/gtest.h"
using base::TimeDelta;
namespace media {
static AVIndexEntry kIndexEntries[] = {
// pos, timestamp, flags, size, min_distance
{ 0, 0, AVINDEX_KEYFRAME, 0, 0 },
{ 2000, 1000, AVINDEX_KEYFRAME, 0, 0 },
{ 3000, 2000, 0, 0, 0 },
{ 5000, 3000, AVINDEX_KEYFRAME, 0, 0 },
{ 6000, 4000, 0, 0, 0 },
{ 8000, 5000, AVINDEX_KEYFRAME, 0, 0 },
{ 9000, 6000, AVINDEX_KEYFRAME, 0, 0 },
{ 11500, 7000, AVINDEX_KEYFRAME, 0, 0 },
};
static const AVRational kTimeBase = { 1, 1000 };
class FFmpegCommonTest : public testing::Test {
public:
FFmpegCommonTest();
virtual ~FFmpegCommonTest();
protected:
AVStream stream_;
<API key>(FFmpegCommonTest);
};
static bool InitFFmpeg() {
static bool initialized = false;
if (initialized) {
return true;
}
FilePath path;
PathService::Get(base::DIR_MODULE, &path);
return media::<API key>(path);
}
FFmpegCommonTest::FFmpegCommonTest() {
CHECK(InitFFmpeg());
stream_.time_base = kTimeBase;
stream_.index_entries = kIndexEntries;
stream_.<API key> = sizeof(kIndexEntries);
stream_.nb_index_entries = arraysize(kIndexEntries);
}
FFmpegCommonTest::~FFmpegCommonTest() {}
TEST_F(FFmpegCommonTest, <API key>) {
int64 test_data[][5] = {
{1, 2, 1, 500000, 1 },
{1, 3, 1, 333333, 1 },
{1, 3, 2, 666667, 2 },
};
for (size_t i = 0; i < arraysize(test_data); ++i) {
SCOPED_TRACE(i);
AVRational time_base;
time_base.num = static_cast<int>(test_data[i][0]);
time_base.den = static_cast<int>(test_data[i][1]);
TimeDelta time_delta = ConvertFromTimeBase(time_base, test_data[i][2]);
EXPECT_EQ(time_delta.InMicroseconds(), test_data[i][3]);
EXPECT_EQ(ConvertToTimeBase(time_base, time_delta), test_data[i][4]);
}
}
TEST_F(FFmpegCommonTest, <API key>) {
int64 test_data[][2] = {
{5000, 5000}, // Timestamp is a keyframe seek point.
{2400, 3000}, // Timestamp is just before a keyframe seek point.
{2000, 3000}, // Timestamp is a non-keyframe entry.
{1800, 3000}, // Timestamp is just before a non-keyframe entry.
};
for (size_t i = 0; i < arraysize(test_data); ++i) {
SCOPED_TRACE(i);
TimeDelta seek_point;
TimeDelta timestamp = TimeDelta::FromMilliseconds(test_data[i][0]);
ASSERT_TRUE(GetSeekTimeAfter(&stream_, timestamp, &seek_point));
EXPECT_EQ(seek_point.InMilliseconds(), test_data[i][1]);
}
}
TEST_F(FFmpegCommonTest, <API key>) {
TimeDelta seek_point;
// Timestamp after last index entry.
ASSERT_FALSE(GetSeekTimeAfter(&stream_, TimeDelta::FromSeconds(8),
&seek_point));
AVStream stream;
memcpy(&stream, &stream_, sizeof(stream));
stream.index_entries = NULL;
// Stream w/o index data.
ASSERT_FALSE(GetSeekTimeAfter(&stream, TimeDelta::FromSeconds(1),
&seek_point));
}
TEST_F(FFmpegCommonTest, <API key>) {
int64 test_data[][5] = {
{ 0, 1000, 2000, 0, 1000}, // Bytes between two adjacent keyframe
// entries.
{1000, 2000, 3000, 1000, 3000}, // Bytes between two keyframe entries with a
// non-keyframe entry between them.
{5500, 5600, 1000, 5000, 6000}, // Bytes for a range that starts and ends
// between two index entries.
{4500, 7000, 6500, 3000, 7000}, // Bytes for a range that ends on the last
// seek point.
};
for (size_t i = 0; i < arraysize(test_data); ++i) {
SCOPED_TRACE(i);
TimeDelta start_time = TimeDelta::FromMilliseconds(test_data[i][0]);
TimeDelta end_time = TimeDelta::FromMilliseconds(test_data[i][1]);
int64 bytes;
TimeDelta range_start;
TimeDelta range_end;
ASSERT_TRUE(<API key>(&stream_, start_time, end_time,
&bytes, &range_start, &range_end));
EXPECT_EQ(bytes, test_data[i][2]);
EXPECT_EQ(range_start.InMilliseconds(), test_data[i][3]);
EXPECT_EQ(range_end.InMilliseconds(), test_data[i][4]);
}
}
TEST_F(FFmpegCommonTest, <API key>) {
int64 test_data[][2] = {
{7000, 7600}, // Test a range that starts at the last seek point.
{7500, 7600}, // Test a range after the last seek point
};
int64 bytes;
TimeDelta range_start;
TimeDelta range_end;
for (size_t i = 0; i < arraysize(test_data); ++i) {
SCOPED_TRACE(i);
TimeDelta start_time = TimeDelta::FromMilliseconds(test_data[i][0]);
TimeDelta end_time = TimeDelta::FromMilliseconds(test_data[i][1]);
EXPECT_FALSE(<API key>(&stream_, start_time, end_time,
&bytes, &range_start, &range_end));
}
AVStream stream;
memcpy(&stream, &stream_, sizeof(stream));
stream.index_entries = NULL;
// Stream w/o index data.
ASSERT_FALSE(<API key>(&stream,
TimeDelta::FromSeconds(1),
TimeDelta::FromSeconds(2),
&bytes, &range_start, &range_end));
}
} // namespace media |
<?php
//Set the default time zone
<API key>("Europe/London");
echo "*** Testing new DateTime() : with user format() method ***\n";
class DateTimeExt extends DateTime
{
public function format($format = "F j, Y, g:i:s a")
{
return parent::format($format);
}
}
$d = new DateTimeExt("1967-05-01 22:30:41");
echo $d->format() . "\n";
?>
DONE=== |
using System.Reflection;
#if !PCL
using System.Windows.Markup;
#endif
[assembly: AssemblyTitle("Eto.Forms Xaml serializer")]
[assembly: AssemblyDescription("Eto.Forms Xaml serializer")]
#if !PCL
[assembly: XmlnsDefinition(Eto.Serialization.Xaml.<API key>.EtoFormsNamespace, "Eto.Forms", AssemblyName="Eto")]
[assembly: XmlnsDefinition(Eto.Serialization.Xaml.<API key>.EtoFormsNamespace, "Eto.Serialization.Xaml.Extensions")]
[assembly: XmlnsPrefix(Eto.Serialization.Xaml.<API key>.EtoFormsNamespace, "eto")]
#endif |
@if(isset($post->topic_id))
<a name="reply_id_{{ $post->id }}"></a>
<div class="comment">
<a class="avatar">
<img src="{{ $post->user->getProfileImage('small') }}">
</a>
<div class="content">
<a class="author"><a href="{{ route('users.profile.view', [ 'username' => $post->user->username ]) }}">{{ $post->user->username }}</a></a>
<div class="metadata">
<span class="date">{{ Core::getDateShort($post->created_at) }}</span>
</div>
<div class="text">
{!! nl2br($post->message) !!}
</div>
<div class="actions">
<a href="" class="reply" @click.prevent="triggerReply()">Reply</a>
</div>
</div>
</div>
@else
<div class="ui segment">
<img class="ui left floated middle small image" src="{{ $post->user->getProfileImage('medium') }}">
<h4 class="mobile clear-left">By: <a href="{{ route('users.profile.view', [ 'username' => $post->user->username ]) }}">{{ $post->user->username }}</a> @ <small>{{ Core::getDateShort($post->created_at) }}</small></h4>
<p>{!! nl2br($post->message) !!}</p>
<a href="" data-href="{{ route('plugin.adaptbb.topics.reply', [ 'id' => $post->id ]) }}" class="ui right labeled icon button green comment" @click.prevent="triggerReply()">
Reply
<i class="share icon"></i>
</a>
</div>
@endif |
#include "cv.h"
#include "highgui.h"
#include <assert.h>
#include <stdio.h>
#include <sys/time.h>
unsigned int get_current_time()
{
struct timeval tv;
gettimeofday(&tv, NULL);
return tv.tv_sec * 1000 + tv.tv_usec / 1000;
}
int main(int argc, char** argv)
{
assert(argc == 3);
IplImage* image = cvLoadImage(argv[1]);
CvMat* gray = cvCreateMat(image->height, image->width, CV_8UC1);
CvMat* x = cvCreateMat(image->height, image->width, CV_32FC1);
cvCvtColor(image, gray, CV_BGR2GRAY);
unsigned int elapsed_time = get_current_time();
cvSobel(gray, x, 1, 0, 1);
printf("elapsed time : %d\n", get_current_time() - elapsed_time);
cvSaveImage(argv[2], x);
cvReleaseMat(&gray);
cvReleaseImage(&image);
return 0;
} |
#ifndef <API key>
#define <API key>
#include "base/time/time.h"
#include "third_party/blink/public/platform/web_common.h"
#include "third_party/skia/include/core/SkColor.h"
namespace blink {
// Set caret blink interval for text input areas.
BLINK_EXPORT void <API key>(base::TimeDelta);
BLINK_EXPORT void SetFocusRingColor(SkColor);
BLINK_EXPORT void SetSelectionColors(unsigned <API key>,
unsigned <API key>,
unsigned <API key>,
unsigned <API key>);
BLINK_EXPORT void SystemColorsChanged();
BLINK_EXPORT void ColorSchemeChanged();
} // namespace blink
#endif // <API key> |
#ifndef __COMMON_TYPES_H__
#define __COMMON_TYPES_H__
#include <mxf/mxf_types.h>
class Timecode
{
public:
Timecode() : hour(0), min(0), sec(0), frame(0), dropFrame(false) {}
Timecode(bool invalid)
: hour(0), min(0), sec(0), frame(0), dropFrame(false)
{
if (invalid)
{
hour = -1;
}
}
Timecode(int h, int m, int s, int f) : hour(h), min(m), sec(s), frame(f), dropFrame(false) {}
Timecode(int h, int m, int s, int f, bool d) : hour(h), min(m), sec(s), frame(f), dropFrame(d) {}
bool isValid() { return hour >= 0 && min >= 0 && sec >= 0 && frame >= 0; }
bool operator==(const Timecode& rhs)
{
return hour == rhs.hour && min == rhs.min && sec == rhs.sec && frame == rhs.frame && dropFrame == rhs.dropFrame;
}
int hour;
int min;
int sec;
int frame;
bool dropFrame;
};
const mxfRational g_4by3AspectRatio = {4, 3};
const mxfRational g_16by9AspectRatio = {16, 9};
#endif |
#pragma once
#include <medVtkInriaExport.h>
#include <vtkObject.h>
#include <vtkRenderer.h>
class vtkPolyData;
class vtkLimitFibersToVOI;
class vtkLimitFibersToROI;
class vtkBoxWidget;
class vtkActor;
class <API key>;
class vtkCellArray;
class vtkImageData;
class vtkScalarsToColors;
class vtkMaskPolyData;
class vtkCleanPolyData;
class vtkTubeFilter;
class vtkRibbonFilter;
class vtkPolyDataMapper;
class vtkCornerAnnotation;
class <API key>;
class <API key>;
class <API key>;
/**
\class vtkFibersManager.
This class provides a full set of rendering and interactions with so-called
fibers, which are nothing else than VTK poly-lines stored in a vtkPolyData.
It takes as input a vtkPolyData (the actual lines) and a <API key>
and does everything for the user.
Different modes of rendering the lines are possible:
- Polylines (<API key>()): the default mode;
- Ribbons (<API key>()): renders each line as a flat ribbon;
- Tubes (<API key>()): renders each line as a tube;
Note that when using the ribbon or tube mode, a vtkMaskPolyData is also used
to lower the number of fibers depending on the maximum number of fibers allowed
(default is 20000 - change it with <API key>() ).
Different type of interactions are possible. By default, a cropping box
(vtkBoxWidget) is used to limit the fibers that go through it.
*/
class MEDVTKINRIA_EXPORT vtkFibersManager : public vtkObject
{
public:
static vtkFibersManager* New();
<API key>(vtkFibersManager, vtkObject);
//BTX
enum <API key>
{
RENDER_IS_POLYLINES,
RENDER_IS_TUBES,
RENDER_IS_RIBBONS
};
//ETX
vtkGetObjectMacro (BoxWidget, vtkBoxWidget);
virtual void Enable();
virtual void Disable();
/** Reset the pipeline, deactivate the CP box and release memory.*/
virtual void Initialize();
/** Set the vtkPolyData input */
virtual void SetInput (vtkPolyData*);
/** Get the vtkPolyData input */
vtkGetObjectMacro (Input, vtkPolyData);
/** Get the generated actor */
virtual vtkActor* GetOutput() const;
/** Get the ROI Limiter */
virtual vtkLimitFibersToROI* GetROILimiter() const;
/** Get the VOI Limiter */
virtual vtkLimitFibersToVOI* GetVOILimiter() const;
/** Set the render window interactor */
virtual void <API key> (<API key>* rwin);
vtkGetObjectMacro (<API key>, <API key>);
/** Set the default renderer to put actors in. Must be called before SetInput() */
vtkSetObjectMacro(Renderer, vtkRenderer);
vtkGetObjectMacro(Renderer, vtkRenderer);
/** Remove all actors added by this manager. */
virtual void RemoveAllActors();
/** Set the rendering mode to poly lines */
virtual void <API key>();
/** Set the rendering mode to tubes */
virtual void <API key>();
/** Set the rendering mode to ribbons */
virtual void <API key>();
/** Get the rendering mode. */
static int GetRenderingMode();
virtual void SetRenderingMode(int);
static void <API key>();
static void <API key>();
static void <API key>(int);
static int <API key>();
virtual void <API key>();
virtual void <API key>();
/** Set the ouput of the callback to ite input. Thus, users
can extract a subsample of fibers, and then another subsample,
and so on. */
virtual void SwapInputOutput();
/** Reset the fiber manager to its first input. */
virtual void Reset();
/** Switch on/off the visibility of the fibers */
virtual void SetVisibility (bool);
/** Set the box widget on */
virtual void BoxWidgetOn();
/** Set the box widget on */
virtual void BoxWidgetOff();
/** Set the box widget on */
virtual void SetBoxWidget (bool a);
/** Get the box widget visibility */
vtkGetMacro (BoxWidgetVisibility, int);
/** Set Radius & ribbon width */
virtual void SetRadius (double r);
virtual double GetRadius() const;
/** Return the fiber ids selected by the box widget */
virtual vtkCellArray* GetSelectedCells() const;
virtual vtkPolyData *GetCallbackOutput() const;
virtual void SetMaskImage (vtkImageData* image);
/**
Set the color mode to either local or global fiber orientation.
*/
virtual void <API key>();
/**
Set the color mode to either local or global fiber orientation.
*/
virtual void <API key>();
virtual void <API key> (const int& id);
const char* GetPointArrayName (const int& id) const;
virtual int <API key>() const;
virtual void SetLookupTable (vtkScalarsToColors* lut);
virtual vtkScalarsToColors* GetLookupTable() const;
virtual void <API key>(int num);
virtual int <API key>() const;
virtual void ShowHelpMessage();
virtual void HideHelpMessage();
virtual void <API key> (int a);
virtual int <API key>() const;
/** Force a callback call to Execute() */
virtual void Execute();
protected:
vtkFibersManager();
~vtkFibersManager();
private:
vtkPolyData *Input;
vtkBoxWidget *BoxWidget;
bool BoxWidgetVisibility;
vtkMaskPolyData *Squeezer;
vtkCleanPolyData *Cleaner;
vtkTubeFilter *TubeFilter;
vtkRibbonFilter *RibbonFilter;
vtkPolyDataMapper *Mapper;
vtkActor *Actor;
vtkCornerAnnotation *HelpMessage;
int <API key>;
<API key> *Callback;
<API key> *PickerCallback;
<API key> *KeyboardCallback;
<API key> *<API key>;
vtkRenderer *Renderer;
static int <API key>;
static int <API key>;
}; |
#if defined (WITH_GRAPHICS)
#include <Array.hpp>
#include <common/graphics_common.hpp>
namespace opencl
{
template<typename T>
void copy_plot(const Array<T> &P, forge::Plot* plot);
}
#endif |
<?php
/*
Datatypes:
- INTEGER
- DOUBLE
- CURRENCY
- VARCHAR
- TEXT
- DATE
*/
// Name of the list
if($_SESSION['s']['user']['typ'] == 'admin') {
$liste["name"] = "dns_slave_admin";
} else {
$liste["name"] = "dns_slave";
}
// Database table
$liste["table"] = "dns_slave";
// Index index field of the database table
$liste["table_idx"] = "id";
// Search Field Prefix
$liste["search_prefix"] = "search_";
// Records per page
$liste["records_per_page"] = "15";
// Script File of the list
$liste["file"] = "dns_slave_list.php";
// Script file of the edit form
$liste["edit_file"] = "dns_slave_edit.php";
// Script File of the delete script
$liste["delete_file"] = "dns_slave_del.php";
// Paging Template
$liste["paging_tpl"] = "templates/paging.tpl.htm";
// Enable auth
$liste["auth"] = "yes";
$liste["item"][] = array( 'field' => "active",
'datatype' => "VARCHAR",
'formtype' => "SELECT",
'op' => "=",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('Y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", 'N' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>"));
$liste["item"][] = array( 'field' => "server_id",
'datatype' => "VARCHAR",
'formtype' => "SELECT",
'op' => "like",
'prefix' => "%",
'suffix' => "%",
'datasource'=> array ( 'type' => 'CUSTOM',
'class' => 'custom_datasource',
'function' => 'slave_dns_servers'
),
'width' => "",
'value' => "");
if($_SESSION['s']['user']['typ'] == 'admin') {
$liste["item"][] = array( 'field' => "sys_groupid",
'datatype' => "INTEGER",
'formtype' => "SELECT",
'op' => "=",
'prefix' => "",
'suffix' => "",
'datasource' => array ( 'type' => 'SQL',
'querystring' => 'SELECT groupid, name FROM sys_group WHERE groupid != 1 ORDER BY name',
'keyfield'=> 'groupid',
'valuefield'=> 'name'
),
'width' => "",
'value' => "");
}
$liste["item"][] = array( 'field' => "origin",
'datatype' => "VARCHAR",
'filters' => array( 0 => array( 'event' => 'SHOW',
'type' => 'IDNTOUTF8')
),
'formtype' => "TEXT",
'op' => "like",
'prefix' => "%",
'suffix' => "%",
'width' => "",
'value' => "");
$liste["item"][] = array( 'field' => "ns",
'datatype' => "VARCHAR",
'filters' => array( 0 => array( 'event' => 'SHOW',
'type' => 'IDNTOUTF8')
),
'formtype' => "TEXT",
'op' => "like",
'prefix' => "%",
'suffix' => "%",
'width' => "",
'value' => "");
?> |
#include "remoting/protocol/<API key>.h"
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/json/json_reader.h"
#include "base/strings/<API key>.h"
#include "base/strings/string_util.h"
#include "base/values.h"
#include "net/base/url_util.h"
#include "remoting/protocol/ice_config.h"
namespace remoting {
namespace protocol {
namespace {
// Ensure ICE config is correct at least one hour after session starts.
const int <API key> = 3600;
// See <API key>.
const int <API key> = 3478;
const int kDefaultTurnsPort = 5349;
bool ParseLifetime(const std::string& string, base::TimeDelta* result) {
double seconds = 0;
if (!base::EndsWith(string, "s", base::CompareCase::INSENSITIVE_ASCII) ||
!base::StringToDouble(string.substr(0, string.size() - 1), &seconds)) {
return false;
}
*result = base::TimeDelta::FromSecondsD(seconds);
return true;
}
// Parses url in form of <stun|turn|turns>:<host>[:<port>][?transport=<udp|tcp>]
// and adds an entry to the |config|.
bool AddServerToConfig(std::string url,
const std::string& username,
const std::string& password,
IceConfig* config) {
cricket::ProtocolType turn_transport_type = cricket::PROTO_LAST;
const char kTcpTransportSuffix[] = "?transport=tcp";
const char kUdpTransportSuffix[] = "?transport=udp";
if (base::EndsWith(url, kTcpTransportSuffix,
base::CompareCase::INSENSITIVE_ASCII)) {
turn_transport_type = cricket::PROTO_TCP;
url.resize(url.size() - strlen(kTcpTransportSuffix));
} else if (base::EndsWith(url, kUdpTransportSuffix,
base::CompareCase::INSENSITIVE_ASCII)) {
turn_transport_type = cricket::PROTO_UDP;
url.resize(url.size() - strlen(kUdpTransportSuffix));
}
size_t colon_pos = url.find(':');
if (colon_pos == std::string::npos)
return false;
std::string protocol = url.substr(0, colon_pos);
std::string host;
int port;
if (!net::ParseHostAndPort(url.substr(colon_pos + 1), &host, &port))
return false;
if (protocol == "stun") {
if (port == -1)
port = <API key>;
config->stun_servers.push_back(rtc::SocketAddress(host, port));
} else if (protocol == "turn") {
if (port == -1)
port = <API key>;
if (turn_transport_type == cricket::PROTO_LAST)
turn_transport_type = cricket::PROTO_UDP;
config->turn_servers.push_back(cricket::RelayServerConfig(
host, port, username, password, turn_transport_type, false));
} else if (protocol == "turns") {
if (port == -1)
port = kDefaultTurnsPort;
if (turn_transport_type == cricket::PROTO_LAST)
turn_transport_type = cricket::PROTO_TCP;
config->turn_servers.push_back(cricket::RelayServerConfig(
host, port, username, password, turn_transport_type, true));
} else {
return false;
}
return true;
}
} // namespace
<API key>::<API key>(
UrlRequestFactory* url_request_factory,
const std::string& url)
: url_(url) {
url_request_ =
url_request_factory->CreateUrlRequest(UrlRequest::Type::POST, url_);
url_request_->SetPostData("application/json", "");
}
<API key>::~<API key>() {}
void <API key>::Send(const OnIceConfigCallback& callback) {
DCHECK(<API key>.is_null());
DCHECK(!callback.is_null());
<API key> = callback;
url_request_->Start(
base::Bind(&<API key>::OnResponse, base::Unretained(this)));
}
void <API key>::OnResponse(const UrlRequest::Result& result) {
DCHECK(!<API key>.is_null());
if (!result.success) {
LOG(ERROR) << "Failed to fetch " << url_;
base::ResetAndReturn(&<API key>).Run(IceConfig());
return;
}
if (result.status != 200) {
LOG(ERROR) << "Received status code " << result.status << " from " << url_
<< ": " << result.response_body;
base::ResetAndReturn(&<API key>).Run(IceConfig());
return;
}
scoped_ptr<base::Value> json = base::JSONReader::Read(result.response_body);
base::DictionaryValue* dictionary = nullptr;
base::ListValue* ice_servers_list = nullptr;
if (!json || !json->GetAsDictionary(&dictionary) ||
!dictionary->GetList("iceServers", &ice_servers_list)) {
LOG(ERROR) << "Received invalid response from " << url_ << ": "
<< result.response_body;
base::ResetAndReturn(&<API key>).Run(IceConfig());
return;
}
IceConfig ice_config;
// Parse lifetimeDuration field.
std::string lifetime_str;
base::TimeDelta lifetime;
if (!dictionary->GetString("lifetimeDuration", &lifetime_str) ||
!ParseLifetime(lifetime_str, &lifetime)) {
LOG(ERROR) << "Received invalid lifetimeDuration value: " << lifetime_str;
// If the |lifetimeDuration| field is missing or cannot be parsed then mark
// the config as expired so it will refreshed for the next session.
ice_config.expiration_time = base::Time::Now();
} else {
ice_config.expiration_time =
base::Time::Now() + lifetime -
base::TimeDelta::FromSeconds(<API key>);
}
// Parse iceServers list and store them in |ice_config|.
bool errors_found = false;
for (base::Value* server : *ice_servers_list) {
base::DictionaryValue* server_dict;
if (!server->GetAsDictionary(&server_dict)) {
errors_found = true;
continue;
}
base::ListValue* urls_list = nullptr;
if (!server_dict->GetList("urls", &urls_list)) {
errors_found = true;
continue;
}
std::string username;
server_dict->GetString("username", &username);
std::string password;
server_dict->GetString("credential", &password);
for (base::Value* url : *urls_list) {
std::string url_str;
if (!url->GetAsString(&url_str)) {
errors_found = true;
continue;
}
if (!AddServerToConfig(url_str, username, password, &ice_config)) {
LOG(ERROR) << "Invalid ICE server URL: " << url_str;
}
}
}
if (errors_found) {
LOG(ERROR) << "Received ICE config from the server that contained errors: "
<< result.response_body;
}
// If there are no STUN or no TURN servers then mark the config as expired so
// it will refreshed for the next session.
if (errors_found || ice_config.stun_servers.empty() ||
ice_config.turn_servers.empty()) {
ice_config.expiration_time = base::Time::Now();
}
base::ResetAndReturn(&<API key>).Run(ice_config);
}
} // namespace protocol
} // namespace remoting |
'use strict';
const Platform = require('Platform');
const React = require('react');
const SectionList = require('SectionList');
const StyleSheet = require('StyleSheet');
const Text = require('Text');
const TextInput = require('TextInput');
const TouchableHighlight = require('TouchableHighlight');
const UIExplorerActions = require('./UIExplorerActions');
const <API key> = require('./<API key>');
const View = require('View');
import type {
UIExplorerExample,
} from './UIExplorerList.ios';
import type {
PassProps,
} from './<API key>';
import type {
StyleObj,
} from 'StyleSheetTypes';
type Props = {
onNavigate: Function,
list: {
ComponentExamples: Array<UIExplorerExample>,
APIExamples: Array<UIExplorerExample>,
},
persister: PassProps<*>,
<API key>: StyleObj,
style?: ?StyleObj,
};
class RowComponent extends React.PureComponent {
props: {
item: Object,
onNavigate: Function,
onPress?: Function,
};
_onPress = () => {
if (this.props.onPress) {
this.props.onPress();
return;
}
this.props.onNavigate(UIExplorerActions.ExampleAction(this.props.item.key));
};
render() {
const {item} = this.props;
return (
<View>
<TouchableHighlight onPress={this._onPress}>
<View style={styles.row}>
<Text style={styles.rowTitleText}>
{item.module.title}
</Text>
<Text style={styles.rowDetailText}>
{item.module.description}
</Text>
</View>
</TouchableHighlight>
<View style={styles.separator} />
</View>
);
}
}
const renderSectionHeader = ({section}) =>
<Text style={styles.sectionHeader}>
{section.title}
</Text>;
class <API key> extends React.Component {
props: Props
render() {
const filterText = this.props.persister.state.filter;
const filterRegex = new RegExp(String(filterText), 'i');
const filter = (example) =>
this.props.disableSearch ||
filterRegex.test(example.module.title) &&
(!Platform.isTVOS || example.supportsTVOS);
const sections = [
{
data: this.props.list.ComponentExamples.filter(filter),
title: 'COMPONENTS',
key: 'c',
},
{
data: this.props.list.APIExamples.filter(filter),
title: 'APIS',
key: 'a',
},
];
return (
<View style={[styles.listContainer, this.props.style]}>
{this._renderTitleRow()}
{this._renderTextInput()}
<SectionList
style={styles.list}
sections={sections}
renderItem={this._renderItem}
enableEmptySections={true}
itemShouldUpdate={this._itemShouldUpdate}
<API key>="handled"
<API key>={false}
keyboardDismissMode="on-drag"
<API key>={false}
renderSectionHeader={renderSectionHeader}
/>
</View>
);
}
_itemShouldUpdate(curr, prev) {
return curr.item !== prev.item;
}
_renderItem = ({item}) => <RowComponent item={item} onNavigate={this.props.onNavigate} />;
_renderTitleRow(): ?React.Element<any> {
if (!this.props.displayTitleRow) {
return null;
}
return (
<RowComponent
item={{module: {
title: 'UIExplorer',
description: 'React Native Examples',
}}}
onNavigate={this.props.onNavigate}
onPress={() => {
this.props.onNavigate(UIExplorerActions.ExampleList());
}}
/>
);
}
_renderTextInput(): ?React.Element<any> {
if (this.props.disableSearch) {
return null;
}
return (
<View style={styles.searchRow}>
<TextInput
autoCapitalize="none"
autoCorrect={false}
clearButtonMode="always"
onChangeText={text => {
this.props.persister.setState(() => ({filter: text}));
}}
placeholder="Search..."
<API key>="transparent"
style={[styles.searchTextInput, this.props.<API key>]}
testID="explorer_search"
value={this.props.persister.state.filter}
/>
</View>
);
}
_handleRowPress(exampleKey: string): void {
this.props.onNavigate(UIExplorerActions.ExampleAction(exampleKey));
}
}
<API key> = <API key>.createContainer(<API key>, {
cacheKeySuffix: () => 'mainList',
getInitialState: () => ({filter: ''}),
});
const styles = StyleSheet.create({
listContainer: {
flex: 1,
},
list: {
backgroundColor: '#eeeeee',
},
sectionHeader: {
padding: 5,
fontWeight: '500',
fontSize: 11,
},
row: {
backgroundColor: 'white',
justifyContent: 'center',
paddingHorizontal: 15,
paddingVertical: 8,
},
separator: {
height: StyleSheet.hairlineWidth,
backgroundColor: '#bbbbbb',
marginLeft: 15,
},
rowTitleText: {
fontSize: 17,
fontWeight: '500',
},
rowDetailText: {
fontSize: 15,
color: '#888888',
lineHeight: 20,
},
searchRow: {
backgroundColor: '#eeeeee',
padding: 10,
},
searchTextInput: {
backgroundColor: 'white',
borderColor: '#cccccc',
borderRadius: 3,
borderWidth: 1,
paddingLeft: 8,
paddingVertical: 0,
height: 35,
},
});
module.exports = <API key>; |
package org.hisp.dhis.webapi.webdomain.user;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author Morten Olav Hansen <mortenoh@gmail.com>
*/
public class UserAccount
{
// user account
private String username;
private String firstName;
private String surname;
private String email;
private String phoneNumber;
// profile
private String introduction;
private String jobTitle;
private String gender;
private String birthday;
private String nationality;
private String employer;
private String education;
private String interests;
private String languages;
private Map<String, String> settings = new HashMap<>();
public UserAccount()
{
}
@JsonProperty
public String getUsername()
{
return username;
}
public void setUsername( String username )
{
this.username = username;
}
@JsonProperty( required = true )
public String getFirstName()
{
return firstName;
}
public void setFirstName( String firstName )
{
this.firstName = firstName;
}
@JsonProperty( required = true )
public String getSurname()
{
return surname;
}
public void setSurname( String surname )
{
this.surname = surname;
}
@JsonProperty
public String getEmail()
{
return email;
}
public void setEmail( String email )
{
this.email = email;
}
@JsonProperty
public String getPhoneNumber()
{
return phoneNumber;
}
public void setPhoneNumber( String phoneNumber )
{
this.phoneNumber = phoneNumber;
}
@JsonProperty
public String getIntroduction()
{
return introduction;
}
public void setIntroduction( String introduction )
{
this.introduction = introduction;
}
@JsonProperty
public String getJobTitle()
{
return jobTitle;
}
public void setJobTitle( String jobTitle )
{
this.jobTitle = jobTitle;
}
@JsonProperty
public String getGender()
{
return gender;
}
public void setGender( String gender )
{
this.gender = gender;
}
@JsonProperty
public String getBirthday()
{
return birthday;
}
public void setBirthday( String birthday )
{
this.birthday = birthday;
}
@JsonProperty
public String getNationality()
{
return nationality;
}
public void setNationality( String nationality )
{
this.nationality = nationality;
}
@JsonProperty
public String getEmployer()
{
return employer;
}
public void setEmployer( String employer )
{
this.employer = employer;
}
@JsonProperty
public String getEducation()
{
return education;
}
public void setEducation( String education )
{
this.education = education;
}
@JsonProperty
public String getInterests()
{
return interests;
}
public void setInterests( String interests )
{
this.interests = interests;
}
@JsonProperty
public String getLanguages()
{
return languages;
}
public void setLanguages( String languages )
{
this.languages = languages;
}
@JsonProperty
public Map<String, String> getSettings()
{
return settings;
}
public void setSettings( Map<String, String> settings )
{
this.settings = settings;
}
} |
package com.github.dandelion.datatables.core.processor.export;
import org.junit.Test;
import com.github.dandelion.core.option.<API key>;
import com.github.dandelion.core.option.Option;
import com.github.dandelion.core.option.<API key>;
import com.github.dandelion.core.option.OptionProcessor;
import com.github.dandelion.datatables.core.MapEntry;
import com.github.dandelion.datatables.core.export.ExportConf;
import com.github.dandelion.datatables.core.export.HttpMethod;
import com.github.dandelion.datatables.core.option.DatatableOptions;
import com.github.dandelion.datatables.core.option.processor.export.<API key>;
import com.github.dandelion.datatables.core.processor.<API key>;
import static org.assertj.core.api.Assertions.assertThat;
public class <API key> extends <API key> {
@Override
public OptionProcessor getProcessor() {
return new <API key>();
}
@Test
public void <API key>() {
Option<?> option = DatatableOptions.EXPORT_CSV_FILENAME;
entry = new MapEntry<Option<?>, Object>(option, "my-filename");
<API key> pc = new <API key>(entry, request,
processor.<API key>());
processor.process(pc);
assertThat(tableConfiguration.<API key>().containsKey("csv"));
assertThat(tableConfiguration.<API key>()).doesNotContainKey("pdf");
assertThat(tableConfiguration.<API key>()).doesNotContainKey("xml");
assertThat(tableConfiguration.<API key>()).doesNotContainKey("xls");
assertThat(tableConfiguration.<API key>()).doesNotContainKey("xlsx");
ExportConf ec = tableConfiguration.<API key>().get("csv");
// Updated
assertThat(ec.getFileName()).isEqualTo("my-filename");
// Default
assertThat(ec.getAutoSize()).isEqualTo(true);
assertThat(ec.getCssClass()).isNull();
assertThat(ec.getCssStyle()).isNull();
assertThat(ec.getExportClass()).isEqualTo(ExportConf.DEFAULT_CSV_CLASS);
assertThat(ec.getFileExtension()).isEqualTo("csv");
assertThat(ec.getFormat()).isEqualTo("csv");
assertThat(ec.getIncludeHeader()).isEqualTo(true);
assertThat(ec.getLabel()).isEqualTo("CSV");
assertThat(ec.getMethod()).isEqualTo(HttpMethod.GET);
assertThat(ec.getMimeType()).isEqualTo("text/csv");
assertThat(ec.getOrientation()).isNull();
assertThat(ec.getUrl()).isNull();
}
} |
using System;
using System.Data;
using System.Collections;
using System.Configuration;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Globalization;
using System.Diagnostics;
using DDay.Collections;
namespace DDay.iCal
{
<summary>
A class that represents an RFC 5545 VTIMEZONE component.
</summary>
#if !SILVERLIGHT
[Serializable]
#endif
public partial class iCalTimeZone :
CalendarComponent,
ITimeZone
{
#region Static Public Methods
#if !SILVERLIGHT
static public iCalTimeZone FromLocalTimeZone()
{
return FromSystemTimeZone(System.TimeZoneInfo.Local);
}
static public iCalTimeZone FromLocalTimeZone(DateTime <API key>, bool <API key>)
{
return FromSystemTimeZone(System.TimeZoneInfo.Local, <API key>, <API key>);
}
static private void <API key>(ITimeZoneInfo tzi, System.TimeZoneInfo.TransitionTime transition, int year)
{
Calendar c = CultureInfo.CurrentCulture.Calendar;
RecurrencePattern recurrence = new RecurrencePattern();
recurrence.Frequency = FrequencyType.Yearly;
recurrence.ByMonth.Add(transition.Month);
recurrence.ByHour.Add(transition.TimeOfDay.Hour);
recurrence.ByMinute.Add(transition.TimeOfDay.Minute);
if (transition.IsFixedDateRule)
{
recurrence.ByMonthDay.Add(transition.Day);
}
else
{
if( transition.Week != 5 )
recurrence.ByDay.Add(new WeekDay(transition.DayOfWeek, transition.Week ));
else
recurrence.ByDay.Add( new WeekDay( transition.DayOfWeek, -1 ) );
}
tzi.RecurrenceRules.Add(recurrence);
}
public static iCalTimeZone FromSystemTimeZone(System.TimeZoneInfo tzinfo)
{
// Support date/times for January 1st of the previous year by default.
return FromSystemTimeZone(tzinfo, new DateTime(DateTime.Now.Year, 1, 1).AddYears(-1), false);
}
public static iCalTimeZone FromSystemTimeZone(System.TimeZoneInfo tzinfo, DateTime <API key>, bool <API key>)
{
var adjustmentRules = tzinfo.GetAdjustmentRules();
var utcOffset = tzinfo.BaseUtcOffset;
var dday_tz = new iCalTimeZone();
dday_tz.TZID = tzinfo.Id;
IDateTime earliest = new iCalDateTime(<API key>);
foreach (var adjustmentRule in adjustmentRules)
{
// Only include historical data if asked to do so. Otherwise,
// use only the most recent adjustment rule available.
if (!<API key> && adjustmentRule.DateEnd < <API key>)
continue;
var delta = adjustmentRule.DaylightDelta;
var <API key> = new DDay.iCal.iCalTimeZoneInfo();
<API key>.Name = "STANDARD";
<API key>.TimeZoneName = tzinfo.StandardName;
<API key>.Start = new iCalDateTime(new DateTime(adjustmentRule.DateStart.Year, adjustmentRule.<API key>.Month, adjustmentRule.<API key>.Day, adjustmentRule.<API key>.TimeOfDay.Hour, adjustmentRule.<API key>.TimeOfDay.Minute, adjustmentRule.<API key>.TimeOfDay.Second).AddDays(1));
if (<API key>.Start.LessThan(earliest))
<API key>.Start = <API key>.Start.AddYears(earliest.Year - <API key>.Start.Year);
<API key>.OffsetFrom = new UTCOffset(utcOffset + delta);
<API key>.OffsetTo = new UTCOffset(utcOffset);
<API key>(<API key>, adjustmentRule.<API key>, adjustmentRule.DateStart.Year);
// Add the "standard" time rule to the time zone
dday_tz.AddChild(<API key>);
if (tzinfo.<API key>)
{
var <API key> = new DDay.iCal.iCalTimeZoneInfo();
<API key>.Name = "DAYLIGHT";
<API key>.TimeZoneName = tzinfo.DaylightName;
<API key>.Start = new iCalDateTime(new DateTime(adjustmentRule.DateStart.Year, adjustmentRule.<API key>.Month, adjustmentRule.<API key>.Day, adjustmentRule.<API key>.TimeOfDay.Hour, adjustmentRule.<API key>.TimeOfDay.Minute, adjustmentRule.<API key>.TimeOfDay.Second));
if (<API key>.Start.LessThan(earliest))
<API key>.Start = <API key>.Start.AddYears(earliest.Year - <API key>.Start.Year);
<API key>.OffsetFrom = new UTCOffset(utcOffset);
<API key>.OffsetTo = new UTCOffset(utcOffset + delta);
<API key>(<API key>, adjustmentRule.<API key>, adjustmentRule.DateStart.Year);
// Add the "daylight" time rule to the time zone
dday_tz.AddChild(<API key>);
}
}
// If no time zone information was recorded, at least
// add a STANDARD time zone element to indicate the
// base time zone information.
if (dday_tz.TimeZoneInfos.Count == 0)
{
var <API key> = new DDay.iCal.iCalTimeZoneInfo();
<API key>.Name = "STANDARD";
<API key>.TimeZoneName = tzinfo.StandardName;
<API key>.Start = earliest;
<API key>.OffsetFrom = new UTCOffset(utcOffset);
<API key>.OffsetTo = new UTCOffset(utcOffset);
// Add the "standard" time rule to the time zone
dday_tz.AddChild(<API key>);
}
return dday_tz;
}
#endif
#endregion
#region Private Fields
TimeZoneEvaluator m_Evaluator;
ICalendarObjectList<ITimeZoneInfo> m_TimeZoneInfos;
#endregion
#region Constructors
public iCalTimeZone()
{
Initialize();
}
private void Initialize()
{
this.Name = Components.TIMEZONE;
m_Evaluator = new TimeZoneEvaluator(this);
m_TimeZoneInfos = new <API key><ITimeZoneInfo>(Children);
Children.ItemAdded += new EventHandler<ObjectEventArgs<ICalendarObject, int>>(Children_ItemAdded);
Children.ItemRemoved += new EventHandler<ObjectEventArgs<ICalendarObject, int>>(<API key>);
SetService(m_Evaluator);
}
#endregion
#region Event Handlers
void <API key>(object sender, ObjectEventArgs<ICalendarObject, int> e)
{
m_Evaluator.Clear();
}
void Children_ItemAdded(object sender, ObjectEventArgs<ICalendarObject, int> e)
{
m_Evaluator.Clear();
}
#endregion
#region Overrides
protected override void OnDeserializing(StreamingContext context)
{
base.OnDeserializing(context);
Initialize();
}
#endregion
#region ITimeZone Members
virtual public string ID
{
get { return Properties.Get<string>("TZID"); }
set { Properties.Set("TZID", value); }
}
virtual public string TZID
{
get { return ID; }
set { ID = value; }
}
virtual public IDateTime LastModified
{
get { return Properties.Get<IDateTime>("LAST-MODIFIED"); }
set { Properties.Set("LAST-MODIFIED", value); }
}
virtual public Uri Url
{
get { return Properties.Get<Uri>("TZURL"); }
set { Properties.Set("TZURL", value); }
}
virtual public Uri TZUrl
{
get { return Url; }
set { Url = value; }
}
virtual public ICalendarObjectList<ITimeZoneInfo> TimeZoneInfos
{
get { return m_TimeZoneInfos; }
set { m_TimeZoneInfos = value; }
}
<summary>
Retrieves the iCalTimeZoneInfo object that contains information
about the TimeZone, with the name of the current timezone,
offset from UTC, etc.
</summary>
<param name="dt">The iCalDateTime object for which to retrieve the iCalTimeZoneInfo.</param>
<returns>A TimeZoneInfo object for the specified iCalDateTime</returns>
virtual public TimeZoneObservance? <API key>(IDateTime dt)
{
Trace.TraceInformation("Getting time zone for '" + dt + "'...", "Time Zone");
foreach (ITimeZoneInfo tzi in TimeZoneInfos)
{
TimeZoneObservance? observance = tzi.GetObservance(dt);
if (observance != null && observance.HasValue)
return observance;
}
return null;
}
#endregion
}
} |
/*UI accordion*/
.ui-accordion {
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
font-family: Lucida Grande, Lucida Sans, Arial, sans-serif;
border-bottom: 1px solid #cccccc;
}
.ui-accordion-group {
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
border: 1px solid #cccccc;
border-bottom: none;
}
.ui-accordion-header {
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
cursor: pointer;
background: #e0e0e0 url(images/<API key>.png) 0 50% repeat-x;
}
.ui-accordion-header a {
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
display: block;
font-size: 1.2em;
font-weight: normal;
text-decoration: none;
padding: .5em .5em .5em 1.7em;
color: #444444;
background: url(images/<API key>.gif) .5em 50% no-repeat;
}
.ui-accordion-header a:hover {
background: url(images/<API key>.gif) .5em 50% no-repeat;
color: #111111;
}
.ui-accordion-header:hover {
background: #d8d8d8 url(images/<API key>.png) 0 50% repeat-x;
color: #111111;
}
.selected .ui-accordion-header, .selected .ui-accordion-header:hover {
background: #8ab9ff url(images/<API key>.png) 0 50% repeat-x;
}
.selected .ui-accordion-header a, .selected .ui-accordion-header a:hover {
color: #000000;
background: url(images/<API key>.gif) .5em 50% no-repeat;
}
.<API key> {
padding: 1.5em 1.7em;
background: #f3f3f3;
color: #362b36;
font-size: 1.2em;
}
/*UI tabs*/
.ui-tabs-nav {
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
font-family: Lucida Grande, Lucida Sans, Arial, sans-serif;
float: left;
position: relative;
z-index: 1;
border-right: 1px solid #cccccc;
bottom: -1px;
}
.ui-tabs-nav-item {
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
float: left;
border: 1px solid #cccccc;
border-right: none;
}
.ui-tabs-nav-item a {
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
float: left;
font-size: 1.2em;
font-weight: normal;
text-decoration: none;
padding: .5em 1.7em;
color: #444444;
background: #e0e0e0 url(images/<API key>.png) 0 50% repeat-x;
}
.ui-tabs-nav-item a:hover {
background: #d8d8d8 url(images/<API key>.png) 0 50% repeat-x;
color: #111111;
}
.ui-tabs-selected {
border-bottom-color: #8ab9ff;
}
.ui-tabs-selected a, .ui-tabs-selected a:hover {
background: #8ab9ff url(images/<API key>.png) 0 50% repeat-x;
color: #000000;
}
.ui-tabs-panel {
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
font-family: Lucida Grande, Lucida Sans, Arial, sans-serif;
clear:left;
border: 1px solid #cccccc;
background: #f3f3f3;
color: #362b36;
padding: 1.5em 1.7em;
}
.ui-tabs-hide {
display: none;/* for accessible hiding: position: absolute; left: -99999999px*/;
}
/*slider*/
.ui-slider {
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
font-family: Lucida Grande, Lucida Sans, Arial, sans-serif;
background: #f3f3f3;
border: 1px solid #cccccc;
height: .8em;
position: relative;
}
.ui-slider-handle {
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
position: absolute;
z-index: 2;
top: -3px;
width: 1.2em;
height: 1.2em;
background: #8ab9ff url(images/<API key>.png) 0 50% repeat-x;
border: 1px solid #2694e8;
}
.ui-slider-handle:hover {
background: #d8d8d8 url(images/<API key>.png) 0 50% repeat-x;
border: 1px solid #888888;
}
.<API key>, .<API key>:hover {
background: #d8d8d8 url(images/<API key>.png) 0 50% repeat-x;
border: 1px solid #2694e8;
}
.ui-slider-range {
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
height: .8em;
background: #d8d8d8 url(images/<API key>.png) 0 50% repeat-x;
position: absolute;
border: 1px solid #cccccc;
border-left: 0;
border-right: 0;
top: -1px;
z-index: 1;
}
/*dialog*/
.ui-dialog {
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
font-family: Lucida Grande, Lucida Sans, Arial, sans-serif;
background: #f3f3f3;
color: #362b36;
border: 4px solid #cccccc;
position: relative;
}
.ui-dialog-content {
border: 1px solid #cccccc;
background: #f3f3f3;
color: #362b36;
}
.ui-resizable-handle {
position: absolute;
font-size: 0.1px;
z-index: 99999;
}
.ui-resizable .ui-resizable-handle {
display: block;
}
body .<API key> .ui-resizable-handle { display: none; } /* use 'body' to make it more specific (css order) */
body .<API key> .ui-resizable-handle { display: none; } /* use 'body' to make it more specific (css order) */
.ui-resizable-n {
cursor: n-resize;
height: 7px;
width: 100%;
top: -5px;
left: 0px;
}
.ui-resizable-s {
cursor: s-resize;
height: 7px;
width: 100%;
bottom: -5px;
left: 0px;
}
.ui-resizable-e {
cursor: e-resize;
width: 7px;
right: -5px;
top: 0px;
height: 100%;
}
.ui-resizable-w {
cursor: w-resize;
width: 7px;
left: -5px;
top: 0px;
height: 100%;
}
.ui-resizable-se {
cursor: se-resize;
width: 13px;
height: 13px;
right: 0px;
bottom: 0px;
background: url(images/<API key>.gif) no-repeat 0 0;
}
.ui-resizable-sw {
cursor: sw-resize;
width: 9px;
height: 9px;
left: 0px;
bottom: 0px;
}
.ui-resizable-nw {
cursor: nw-resize;
width: 9px;
height: 9px;
left: 0px;
top: 0px;
}
.ui-resizable-ne {
cursor: ne-resize;
width: 9px;
height: 9px;
right: 0px;
top: 0px;
}
.ui-dialog-titlebar {
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
padding: .5em 1.5em .5em 1em;
color: #444444;
background: #e0e0e0 url(images/<API key>.png) 0 50% repeat-x;
border-bottom: 1px solid #cccccc;
font-size: 1.2em;
font-weight: normal;
position: relative;
}
.ui-dialog-title {
}
.<API key> {
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
background: url(images/<API key>.gif) 0 0 no-repeat;
position: absolute;
right: 8px;
top: .7em;
width: 11px;
height: 11px;
z-index: 100;
}
.<API key>, .<API key>:hover {
background: url(images/<API key>.gif) 0 0 no-repeat;
}
.<API key>:active {
background: url(images/<API key>.gif) 0 0 no-repeat;
}
.<API key> span {
display: none;
}
.ui-dialog-content {
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
background: #f3f3f3;
color: #362b36;
padding: 1.5em 1.7em;
}
.<API key> {
position: absolute;
bottom: 0;
width: 100%;
text-align: left;
border-top: 1px solid #cccccc;
background: ;
}
.<API key> button {
margin: .5em 0 .5em 8px;
color: #444444;
background: #e0e0e0 url(images/<API key>.png) 0 50% repeat-x;
font-size: 1.2em;
border: 1px solid #cccccc;
cursor: pointer;
padding: .2em .6em .3em .6em;
line-height: 1.4em;
}
.<API key> button:hover {
color: #111111;
background: #d8d8d8 url(images/<API key>.png) 0 50% repeat-x;
border: 1px solid #888888;
}
.<API key> button:active {
color: #000000;
background: #8ab9ff url(images/<API key>.png) 0 50% repeat-x;
border: 1px solid #2694e8;
}
/* This file skins dialog */
.ui-dialog.ui-draggable .ui-dialog-titlebar,
.ui-dialog.ui-draggable .ui-dialog-titlebar {
cursor: move;
}
/*datepicker*/
/* Main Style Sheet for jQuery UI date picker */
.ui-datepicker-div, .<API key> {
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
font-family: Lucida Grande, Lucida Sans, Arial, sans-serif;
background: #f3f3f3;
font-size: 1.2em;
border: 4px solid #cccccc;
width: 15.5em;
padding: 2.5em .5em .5em .5em;
position: relative;
}
.ui-datepicker-div {
z-index: 9999; /*must have*/
display: none;
background: #f3f3f3;
}
.<API key> {
float: left;
display: block;
}
.<API key> {
display: none;
}
.<API key> {
display: none;
}
.ui-datepicker-next, .ui-datepicker-prev {
position: absolute;
left: .5em;
top: .5em;
background: #e0e0e0 url(images/<API key>.png) 0 50% repeat-x;
}
.ui-datepicker-next {
left: 14.6em;
}
.ui-datepicker-next:hover, .ui-datepicker-prev:hover {
background: #d8d8d8 url(images/<API key>.png) 0 50% repeat-x;
}
.ui-datepicker-next a, .ui-datepicker-prev a {
text-indent: -999999px;
width: 1.3em;
height: 1.4em;
display: block;
font-size: 1em;
background: url(images/<API key>.gif) 50% 50% no-repeat;
border: 1px solid #cccccc;
cursor: pointer;
}
.ui-datepicker-next a {
background: url(images/<API key>.gif) 50% 50% no-repeat;
}
.ui-datepicker-prev a:hover {
background: url(images/<API key>.gif) 50% 50% no-repeat;
}
.ui-datepicker-next a:hover {
background: url(images/<API key>.gif) 50% 50% no-repeat;
}
.ui-datepicker-prev a:active {
background: url(images/<API key>.gif) 50% 50% no-repeat;
}
.ui-datepicker-next a:active {
background: url(images/<API key>.gif) 50% 50% no-repeat;
}
.<API key> select {
border: 1px solid #cccccc;
color: #444444;
background: #e0e0e0;
font-size: 1em;
line-height: 1.4em;
position: absolute;
top: .5em;
margin: 0 !important;
}
.<API key> select.<API key> {
width: 7em;
left: 2.2em;
}
.<API key> select.<API key> {
width: 5em;
left: 9.4em;
}
table.ui-datepicker {
width: 15.5em;
text-align: right;
}
table.ui-datepicker td a {
padding: .1em .3em .1em 0;
display: block;
color: #444444;
background: #e0e0e0 url(images/<API key>.png) 0 50% repeat-x;
cursor: pointer;
border: 1px solid #f3f3f3;
}
table.ui-datepicker td a:hover {
border: 1px solid #888888;
color: #111111;
background: #d8d8d8 url(images/<API key>.png) 0 50% repeat-x;
}
table.ui-datepicker td a:active {
border: 1px solid #2694e8;
color: #000000;
background: #8ab9ff url(images/<API key>.png) 0 50% repeat-x;
}
table.ui-datepicker .<API key> td {
padding: .3em 0;
text-align: center;
font-size: .9em;
color: #362b36;
text-transform: uppercase;
/*border-bottom: 1px solid #cccccc;*/
}
table.ui-datepicker .<API key> td a {
color: #362b36;
}
/*
Generic ThemeRoller Classes
>> Make your jQuery Components <API key>!
*/
/*component global class*/
.ui-component {
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
font-family: Lucida Grande, Lucida Sans, Arial, sans-serif;
font-size: 1.2em;
}
/*component content styles*/
.<API key> {
border: 1px solid #cccccc;
background: #f3f3f3;
color: #362b36;
}
.<API key> a {
color: #362b36;
text-decoration: underline;
}
/*component states*/
.ui-default-state {
border: 1px solid #cccccc;
background: #e0e0e0 url(images/<API key>.png) 0 50% repeat-x;
font-weight: normal;
color: #444444 !important;
}
.ui-default-state a {
color: #444444;
}
.ui-default-state:hover, .ui-hover-state {
border: 1px solid #888888;
background: #d8d8d8 url(images/<API key>.png) 0 50% repeat-x;
font-weight: normal;
color: #111111 !important;
}
.ui-hover-state a {
color: #111111;
}
.ui-default-state:active, .ui-active-state {
border: 1px solid #2694e8;
background: #8ab9ff url(images/<API key>.png) 0 50% repeat-x;
font-weight: normal;
color: #000000 !important;
outline: none;
}
.ui-active-state a {
color: #000000;
outline: none;
}
/*icons*/
.<API key> {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.<API key>:hover, .<API key> {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.<API key>:active, .<API key> {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.<API key> {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.<API key>:hover, .ui-arrow-left-hover {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.<API key>:active, .<API key> {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.<API key> {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.<API key>:hover, .ui-arrow-down-hover {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.<API key>:active, .<API key> {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.ui-arrow-up-default {background: url(images/888888_7x7_arrow_up.gif) no-repeat 50% 50%;}
.ui-arrow-up-default:hover, .ui-arrow-up-hover {background: url(images/222222_7x7_arrow_up.gif) no-repeat 50% 50%;}
.ui-arrow-up-default:active, .ui-arrow-up-active {background: url(images/ffffff_7x7_arrow_up.gif) no-repeat 50% 50%;}
.ui-close-default {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.ui-close-default:hover, .ui-close-hover {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.ui-close-default:active, .ui-close-active {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.<API key> {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.<API key>:hover, .<API key> {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.<API key>:active, .<API key> {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.<API key> {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.<API key>:hover, .<API key> {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.<API key>:active, .<API key> {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.ui-doc-default {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.ui-doc-default:hover, .ui-doc-hover {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.ui-doc-default:active, .ui-doc-active {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.<API key> {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.<API key>:hover, .<API key> {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.<API key>:active, .<API key> {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.<API key> {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.<API key>:hover, .<API key> {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.<API key>:active, .<API key> {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.ui-minus-default {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.ui-minus-default:hover, .ui-minus-hover {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.ui-minus-default:active, .ui-minus-active {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.ui-plus-default {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.ui-plus-default:hover, .ui-plus-hover {background: url(images/<API key>.gif) no-repeat 50% 50%;}
.ui-plus-default:active, .ui-plus-active {background: url(images/<API key>.gif) no-repeat 50% 50%;}
/*hidden elements*/
.ui-hidden {
display: none;/* for accessible hiding: position: absolute; left: -99999999px*/;
}
.<API key> {
position: absolute; left: -99999999px;
}
/*reset styles*/
.ui-reset {
/*resets*/margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none;
}
/*clearfix class*/
.ui-clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.ui-clearfix {display: inline-block;}
/* Hides from IE-mac \*/
* html .ui-clearfix {height: 1%;}
.ui-clearfix {display: block;}
/* End hide from IE-mac */
/* Note: for resizable styles, use the styles listed above in the dialog section */ |
package org.eclipse.collections.companykata;
import org.eclipse.collections.api.block.predicate.Predicate;
import org.eclipse.collections.api.list.MutableList;
import org.eclipse.collections.impl.list.mutable.FastList;
import org.eclipse.collections.impl.utility.ArrayIterate;
import org.eclipse.collections.impl.utility.Iterate;
import org.junit.Assert;
import org.junit.Test;
import java.util.List;
public class Exercise4Test extends <API key>
{
/**
* Solve this without changing the return type of {@link Company#getSuppliers()}. Find the appropriate method on
* {@link ArrayIterate}.
*/
@Test
public void findSupplierNames()
{
MutableList<String> supplierNames = null;
MutableList<String> <API key> = FastList.newListWith(
"Shedtastic",
"Splendid Crocks",
"Annoying Pets",
"Gnomes 'R' Us",
"Furniture Hamlet",
"SFD",
"Doxins");
Assert.assertEquals(<API key>, supplierNames);
}
/**
* Create a {@link Predicate} for Suppliers that supply more than 2 items. Find the number of suppliers that
* satisfy that Predicate.
*/
@Test
public void <API key>()
{
Predicate<Supplier> moreThanTwoItems = null;
int <API key> = 0;
Assert.assertEquals("suppliers with more than 2 items", 5, <API key>);
}
/**
* Try to solve this without changing the return type of {@link Supplier#getItemNames()}.
*/
@Test
public void <API key>()
{
// Create a Predicate that will check to see if a Supplier supplies a "sandwich toaster".
Predicate<Supplier> suppliesToaster = null;
// Find one supplier that supplies toasters.
Supplier toasterSupplier = null;
Assert.assertNotNull("toaster supplier", toasterSupplier);
Assert.assertEquals("Doxins", toasterSupplier.getName());
}
@Test
public void filterOrderValues()
{
List<Order> orders = this.company.<API key>().getOrders();
/**
* Get the order values that are greater than 1.5.
*/
MutableList<Double> orderValues = null;
MutableList<Double> filtered = null;
Assert.assertEquals(FastList.newListWith(372.5, 1.75), filtered);
}
@Test
public void filterOrders()
{
List<Order> orders = this.company.<API key>().getOrders();
/**
* Get the actual orders (not their double values) where those orders have a value greater than 2.0.
*/
MutableList<Order> filtered = null;
Assert.assertEquals(FastList.newListWith(Iterate.getFirst(this.company.<API key>().getOrders())), filtered);
}
} |
#ifndef <API key>
#define <API key> 1
#define <API key> 1
#include <cxxstd/complex.h>
#include <playground/cxxdft/direction.h>
namespace cxxdft {
template <typename IndexType, typename VIN, typename VOUT>
void
dft_multiple(IndexType n, IndexType m,
const VIN *x, IndexType strideX, IndexType distX,
VOUT *y, IndexType strideY, IndexType distY,
DFTDirection direction);
#ifdef HAVE_FFTW
#ifdef HAVE_FFTW_FLOAT
template <typename IndexType>
void
dft_multiple(IndexType n, IndexType m,
std::complex<float> *x, IndexType strideX, IndexType distX,
std::complex<float> *y, IndexType strideY, IndexType distY,
DFTDirection direction);
#endif // HAVE_FFTW_FLOAT
#ifdef HAVE_FFTW_DOUBLE
template <typename IndexType>
void
dft_multiple(IndexType n, IndexType m,
std::complex<double> *x, IndexType strideX, IndexType distX,
std::complex<double> *y, IndexType strideY, IndexType distY,
DFTDirection direction);
#endif // HAVE_FFTW_DOUBLE
#ifdef <API key>
template <typename IndexType>
void
dft_multiple(IndexType n, IndexType m,
std::complex<long double> *x, IndexType strideX, IndexType distX,
std::complex<long double> *y, IndexType strideY, IndexType distY,
DFTDirection direction);
#endif // <API key>
#ifdef HAVE_FFTW_QUAD
template <typename IndexType>
void
dft_multiple(IndexType n, IndexType m,
std::complex<__float128> *x, IndexType strideX, IndexType distX,
std::complex<__float128> *y, IndexType strideY, IndexType distY,
DFTDirection direction);
#endif // HAVE_FFTW_QUAD
#endif
} // namespace cxxfft
#endif // <API key> |
<html><head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of classes" rel=Appendix href="index_classes.html">
<link title="Index of class types" rel=Appendix href="index_class_types.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Index of module types" rel=Appendix href="index_module_types.html">
<link title="Pretty" rel="Chapter" href="Pretty.html">
<link title="Errormsg" rel="Chapter" href="Errormsg.html">
<link title="Clist" rel="Chapter" href="Clist.html">
<link title="Stats" rel="Chapter" href="Stats.html">
<link title="Cil" rel="Chapter" href="Cil.html">
<link title="Formatcil" rel="Chapter" href="Formatcil.html">
<link title="Alpha" rel="Chapter" href="Alpha.html">
<link title="Cillower" rel="Chapter" href="Cillower.html">
<link title="Cfg" rel="Chapter" href="Cfg.html">
<link title="Dataflow" rel="Chapter" href="Dataflow.html">
<link title="Dominators" rel="Chapter" href="Dominators.html"><title>CIL API Documentation (version 1.6.0) : Cil.cilVisitor</title>
</head>
<body>
<code class="code"><span class="keyword">object</span><br>
<span class="keyword">method</span> queueInstr : <span class="constructor">Cil</span>.instr list <span class="keywordsign">-></span> unit<br>
<span class="keyword">method</span> unqueueInstr : unit <span class="keywordsign">-></span> <span class="constructor">Cil</span>.instr list<br>
<span class="keyword">method</span> vattr : <span class="constructor">Cil</span>.attribute <span class="keywordsign">-></span> <span class="constructor">Cil</span>.attribute list <span class="constructor">Cil</span>.visitAction<br>
<span class="keyword">method</span> vattrparam : <span class="constructor">Cil</span>.attrparam <span class="keywordsign">-></span> <span class="constructor">Cil</span>.attrparam <span class="constructor">Cil</span>.visitAction<br>
<span class="keyword">method</span> vblock : <span class="constructor">Cil</span>.block <span class="keywordsign">-></span> <span class="constructor">Cil</span>.block <span class="constructor">Cil</span>.visitAction<br>
<span class="keyword">method</span> vexpr : <span class="constructor">Cil</span>.exp <span class="keywordsign">-></span> <span class="constructor">Cil</span>.exp <span class="constructor">Cil</span>.visitAction<br>
<span class="keyword">method</span> vfunc : <span class="constructor">Cil</span>.fundec <span class="keywordsign">-></span> <span class="constructor">Cil</span>.fundec <span class="constructor">Cil</span>.visitAction<br>
<span class="keyword">method</span> vglob : <span class="constructor">Cil</span>.global <span class="keywordsign">-></span> <span class="constructor">Cil</span>.global list <span class="constructor">Cil</span>.visitAction<br>
<span class="keyword">method</span> vinit :<br>
<span class="constructor">Cil</span>.varinfo <span class="keywordsign">-></span> <span class="constructor">Cil</span>.offset <span class="keywordsign">-></span> <span class="constructor">Cil</span>.init <span class="keywordsign">-></span> <span class="constructor">Cil</span>.init <span class="constructor">Cil</span>.visitAction<br>
<span class="keyword">method</span> vinitoffs : <span class="constructor">Cil</span>.offset <span class="keywordsign">-></span> <span class="constructor">Cil</span>.offset <span class="constructor">Cil</span>.visitAction<br>
<span class="keyword">method</span> vinst : <span class="constructor">Cil</span>.instr <span class="keywordsign">-></span> <span class="constructor">Cil</span>.instr list <span class="constructor">Cil</span>.visitAction<br>
<span class="keyword">method</span> vlval : <span class="constructor">Cil</span>.lval <span class="keywordsign">-></span> <span class="constructor">Cil</span>.lval <span class="constructor">Cil</span>.visitAction<br>
<span class="keyword">method</span> voffs : <span class="constructor">Cil</span>.offset <span class="keywordsign">-></span> <span class="constructor">Cil</span>.offset <span class="constructor">Cil</span>.visitAction<br>
<span class="keyword">method</span> vstmt : <span class="constructor">Cil</span>.stmt <span class="keywordsign">-></span> <span class="constructor">Cil</span>.stmt <span class="constructor">Cil</span>.visitAction<br>
<span class="keyword">method</span> vtype : <span class="constructor">Cil</span>.typ <span class="keywordsign">-></span> <span class="constructor">Cil</span>.typ <span class="constructor">Cil</span>.visitAction<br>
<span class="keyword">method</span> vvdec : <span class="constructor">Cil</span>.varinfo <span class="keywordsign">-></span> <span class="constructor">Cil</span>.varinfo <span class="constructor">Cil</span>.visitAction<br>
<span class="keyword">method</span> vvrbl : <span class="constructor">Cil</span>.varinfo <span class="keywordsign">-></span> <span class="constructor">Cil</span>.varinfo <span class="constructor">Cil</span>.visitAction<br>
<span class="keyword">end</span></code></body></html> |
#include "chromecast/media/cma/backend/mixer/<API key>.h"
#include <algorithm>
#include <cmath>
#include <string>
#include "base/files/file_path.h"
#include "base/json/json_writer.h"
#include "base/logging.h"
#include "base/memory/ptr_util.h"
#include "base/<API key>.h"
#include "base/values.h"
#include "chromecast/public/media/<API key>.h"
#include "chromecast/public/volume_control.h"
namespace chromecast {
namespace media {
namespace {
// Used for AudioPostProcessor(1)
const char kJsonKeyProcessor[] = "processor";
// Used for AudioPostProcessor2
const char kJsonKeyLib[] = "lib";
const char kJsonKeyName[] = "name";
const char kJsonKeyConfig[] = "config";
} // namespace
<API key>::<API key>() =
default;
<API key>::~<API key>() =
default;
std::unique_ptr<<API key>>
<API key>::CreatePipeline(
const std::string& name,
const base::Value* <API key>,
int num_channels) {
return std::make_unique<<API key>>(
name, <API key>, num_channels);
}
<API key>::<API key>(
const std::string& name,
const base::Value* <API key>,
int channels)
: name_(name), <API key>(channels) {
if (!<API key>) {
return; // Warning logged.
}
for (const base::Value& <API key> :
<API key>->GetList()) {
DCHECK(<API key>.is_dict());
std::string processor_name;
const base::Value* name_val = <API key>.FindKeyOfType(
kJsonKeyName, base::Value::Type::STRING);
if (name_val) {
processor_name = name_val->GetString();
}
if (!processor_name.empty()) {
std::vector<PostProcessorInfo>::iterator it =
find_if(processors_.begin(), processors_.end(),
[&processor_name](PostProcessorInfo& p) {
return p.name == processor_name;
});
LOG_IF(DFATAL, it != processors_.end())
<< "Duplicate postprocessor name " << processor_name;
}
std::string library_path;
// Keys for AudioPostProcessor2:
const base::Value* library_val = <API key>.FindKeyOfType(
kJsonKeyLib, base::Value::Type::STRING);
if (library_val) {
library_path = library_val->GetString();
} else {
// Keys for AudioPostProcessor
// TODO(bshaya): Remove when AudioPostProcessor support is removed.
library_val = <API key>.FindKeyOfType(
kJsonKeyProcessor, base::Value::Type::STRING);
DCHECK(library_val) << "Post processor description is missing key "
<< kJsonKeyLib;
library_path = library_val->GetString();
}
std::string <API key>;
const base::Value* <API key> =
<API key>.FindKey(kJsonKeyConfig);
if (<API key>) {
DCHECK(<API key>->is_dict() ||
<API key>->is_string());
base::JSONWriter::Write(*<API key>, &<API key>);
}
LOG(INFO) << "Creating an instance of " << library_path << "("
<< <API key> << ")";
processors_.emplace_back(PostProcessorInfo{
factory_.CreatePostProcessor(library_path, <API key>,
channels),
1 /* <API key> */, processor_name});
channels = processors_.back().ptr->GetStatus().output_channels;
}
<API key> = channels;
}
<API key>::~<API key>() = default;
double <API key>::ProcessFrames(float* data,
int num_input_frames,
float current_multiplier,
float target_multiplier,
bool is_silence) {
DCHECK_GT(input_sample_rate_, 0);
DCHECK(data);
if (processors_.size() > 0) {
DCHECK_EQ(processors_[0].<API key>, num_input_frames);
}
output_buffer_ = data;
if (is_silence) {
if (!IsRinging()) {
// If the input sample rate differs from the output sample rate, then the
// input data will be the incorrect size without any resampling. Output a
// zeroed buffer of correct size.
if (input_sample_rate_ != output_sample_rate_) {
// We cannot guarantee that the consumer of the output buffer will not
// mutate it, so set it back to zero.
std::fill_n(silence_buffer_.data(), silence_buffer_.size(), 0.0);
output_buffer_ = silence_buffer_.data();
}
return delay_s_;
}
<API key> += num_input_frames;
} else {
<API key> = 0;
}
UpdateCastVolume(current_multiplier, target_multiplier);
AudioPostProcessor2::Metadata metadata = {current_dbfs_, target_dbfs_,
cast_volume_};
delay_s_ = 0;
for (auto& processor : processors_) {
processor.ptr->ProcessFrames(output_buffer_,
processor.<API key>, &metadata);
const auto& status = processor.ptr->GetStatus();
delay_s_ += static_cast<double>(status.<API key>) /
status.input_sample_rate;
output_buffer_ = status.output_buffer;
}
return delay_s_;
}
int <API key>::NumOutputChannels() const {
return <API key>;
}
float* <API key>::GetOutputBuffer() {
DCHECK(output_buffer_);
return output_buffer_;
}
bool <API key>::SetOutputConfig(
const AudioPostProcessor2::Config& output_config) {
output_sample_rate_ = output_config.output_sample_rate;
AudioPostProcessor2::Config processor_config = output_config;
// Each Processor's output rate must be the following processor's input rate.
for (int i = static_cast<int>(processors_.size()) - 1; i >= 0; --i) {
if (!processors_[i].ptr->SetConfig(processor_config)) {
return false;
}
int input_sample_rate = processors_[i].ptr->GetStatus().input_sample_rate;
DCHECK_GT(input_sample_rate, 0)
<< processors_[i].name << " did not set its sample rate";
processors_[i].<API key> =
processor_config.<API key> * input_sample_rate /
processor_config.output_sample_rate;
processor_config.output_sample_rate = input_sample_rate;
processor_config.<API key> =
processors_[i].<API key>;
}
input_sample_rate_ = processor_config.output_sample_rate;
<API key> = <API key>();
<API key> = 0;
if (input_sample_rate_ != output_sample_rate_) {
size_t silence_size = <API key> *
processors_[0].<API key> *
output_sample_rate_ / input_sample_rate_;
silence_buffer_.resize(silence_size);
}
return true;
}
int <API key>::GetInputSampleRate() const {
return input_sample_rate_;
}
bool <API key>::IsRinging() {
return <API key> < 0 ||
<API key> < <API key>;
}
int <API key>::<API key>() {
int memory_frames = 0;
for (auto& processor : processors_) {
int ringing_time = processor.ptr->GetStatus().ringing_time_frames;
if (ringing_time < 0) {
return -1;
}
memory_frames += ringing_time;
}
return memory_frames;
}
void <API key>::UpdateCastVolume(float multiplier,
float target) {
DCHECK_GE(multiplier, 0.0);
if (multiplier != current_multiplier_) {
current_multiplier_ = multiplier;
current_dbfs_ =
(multiplier == 0.0f ? -200.0f : std::log10(multiplier) * 20);
DCHECK(chromecast::media::VolumeControl::DbFSToVolume);
cast_volume_ =
chromecast::media::VolumeControl::DbFSToVolume(current_dbfs_);
}
if (target != target_multiplier_) {
target_multiplier_ = target;
target_dbfs_ = (target == 0.0f ? -200.0f : std::log10(target) * 20);
}
}
// Send string |config| to postprocessor |name|.
void <API key>::<API key>(
const std::string& name,
const std::string& config) {
DCHECK(!name.empty());
std::vector<PostProcessorInfo>::iterator it =
find_if(processors_.begin(), processors_.end(),
[&name](PostProcessorInfo& p) { return p.name == name; });
if (it != processors_.end()) {
it->ptr->UpdateParameters(config);
DVLOG(2) << "Config string: " << config
<< " was delivered to postprocessor " << name;
}
}
// Set content type.
void <API key>::SetContentType(AudioContentType content_type) {
for (auto& processor : processors_) {
processor.ptr->SetContentType(content_type);
}
}
void <API key>::<API key>(int channel) {
for (auto& processor : processors_) {
processor.ptr->SetPlayoutChannel(channel);
}
}
} // namespace media
} // namespace chromecast |
"""Unittests for test_dispatcher.py."""
# pylint: disable=R0201
# pylint: disable=W0212
import os
import sys
import unittest
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)),
os.pardir, os.pardir))
# Mock out android_commands.GetAttachedDevices().
from pylib import android_commands
android_commands.GetAttachedDevices = lambda: ['0', '1']
from pylib import constants
from pylib.base import base_test_result
from pylib.base import test_dispatcher
from pylib.utils import watchdog_timer
class TestException(Exception):
pass
class MockRunner(object):
"""A mock TestRunner."""
def __init__(self, device='0', shard_index=0):
self.device = device
self.shard_index = shard_index
self.setups = 0
self.teardowns = 0
def RunTest(self, test):
results = base_test_result.TestRunResults()
results.AddResult(
base_test_result.BaseTestResult(test, base_test_result.ResultType.PASS))
return (results, None)
def SetUp(self):
self.setups += 1
def TearDown(self):
self.teardowns += 1
class MockRunnerFail(MockRunner):
def RunTest(self, test):
results = base_test_result.TestRunResults()
results.AddResult(
base_test_result.BaseTestResult(test, base_test_result.ResultType.FAIL))
return (results, test)
class MockRunnerFailTwice(MockRunner):
def __init__(self, device='0', shard_index=0):
super(MockRunnerFailTwice, self).__init__(device, shard_index)
self._fails = 0
def RunTest(self, test):
self._fails += 1
results = base_test_result.TestRunResults()
if self._fails <= 2:
results.AddResult(base_test_result.BaseTestResult(
test, base_test_result.ResultType.FAIL))
return (results, test)
else:
results.AddResult(base_test_result.BaseTestResult(
test, base_test_result.ResultType.PASS))
return (results, None)
class MockRunnerException(MockRunner):
def RunTest(self, test):
raise TestException
class TestFunctions(unittest.TestCase):
"""Tests test_dispatcher._RunTestsFromQueue."""
@staticmethod
def _RunTests(mock_runner, tests):
results = []
tests = test_dispatcher._TestCollection(
[test_dispatcher._Test(t) for t in tests])
test_dispatcher._RunTestsFromQueue(mock_runner, tests, results,
watchdog_timer.WatchdogTimer(None), 2)
run_results = base_test_result.TestRunResults()
for r in results:
run_results.AddTestRunResults(r)
return run_results
def <API key>(self):
results = TestFunctions._RunTests(MockRunner(), ['a', 'b'])
self.assertEqual(len(results.GetPass()), 2)
self.assertEqual(len(results.GetNotPass()), 0)
def <API key>(self):
results = TestFunctions._RunTests(MockRunnerFail(), ['a', 'b'])
self.assertEqual(len(results.GetPass()), 0)
self.assertEqual(len(results.GetFail()), 2)
def <API key>(self):
results = TestFunctions._RunTests(MockRunnerFailTwice(), ['a', 'b'])
self.assertEqual(len(results.GetPass()), 2)
self.assertEqual(len(results.GetNotPass()), 0)
def testSetUp(self):
runners = []
counter = test_dispatcher._ThreadSafeCounter()
test_dispatcher._SetUp(MockRunner, '0', runners, counter)
self.assertEqual(len(runners), 1)
self.assertEqual(runners[0].setups, 1)
def <API key>(self):
counter = test_dispatcher._ThreadSafeCounter()
for i in xrange(5):
self.assertEqual(counter.GetAndIncrement(), i)
class <API key>(unittest.TestCase):
"""Tests test_dispatcher._RunAllTests and test_dispatcher._CreateRunners."""
def setUp(self):
self.tests = ['a', 'b', 'c', 'd', 'e', 'f', 'g']
<API key> = test_dispatcher._TestCollection(
[test_dispatcher._Test(t) for t in self.tests])
self.<API key> = lambda: <API key>
def testCreate(self):
runners = test_dispatcher._CreateRunners(MockRunner, ['0', '1'])
for runner in runners:
self.assertEqual(runner.setups, 1)
self.assertEqual(set([r.device for r in runners]),
set(['0', '1']))
self.assertEqual(set([r.shard_index for r in runners]),
set([0, 1]))
def testRun(self):
runners = [MockRunner('0'), MockRunner('1')]
results, exit_code = test_dispatcher._RunAllTests(
runners, self.<API key>, 0)
self.assertEqual(len(results.GetPass()), len(self.tests))
self.assertEqual(exit_code, 0)
def testTearDown(self):
runners = [MockRunner('0'), MockRunner('1')]
test_dispatcher._TearDownRunners(runners)
for runner in runners:
self.assertEqual(runner.teardowns, 1)
def testRetry(self):
runners = test_dispatcher._CreateRunners(MockRunnerFail, ['0', '1'])
results, exit_code = test_dispatcher._RunAllTests(
runners, self.<API key>, 0)
self.assertEqual(len(results.GetFail()), len(self.tests))
self.assertEqual(exit_code, constants.ERROR_EXIT_CODE)
def testReraise(self):
runners = test_dispatcher._CreateRunners(MockRunnerException, ['0', '1'])
with self.assertRaises(TestException):
test_dispatcher._RunAllTests(runners, self.<API key>, 0)
class TestShard(unittest.TestCase):
"""Tests test_dispatcher.RunTests with sharding."""
@staticmethod
def _RunShard(runner_factory):
return test_dispatcher.RunTests(
['a', 'b', 'c'], runner_factory, ['0', '1'], shard=True)
def testShard(self):
results, exit_code = TestShard._RunShard(MockRunner)
self.assertEqual(len(results.GetPass()), 3)
self.assertEqual(exit_code, 0)
def testFailing(self):
results, exit_code = TestShard._RunShard(MockRunnerFail)
self.assertEqual(len(results.GetPass()), 0)
self.assertEqual(len(results.GetFail()), 3)
self.assertEqual(exit_code, constants.ERROR_EXIT_CODE)
def testNoTests(self):
results, exit_code = test_dispatcher.RunTests(
[], MockRunner, ['0', '1'], shard=True)
self.assertEqual(len(results.GetAll()), 0)
self.assertEqual(exit_code, constants.ERROR_EXIT_CODE)
def <API key>(self):
attached_devices = android_commands.GetAttachedDevices
android_commands.GetAttachedDevices = lambda: []
try:
with self.assertRaises(AssertionError):
_results, _exit_code = TestShard._RunShard(MockRunner)
finally:
android_commands.GetAttachedDevices = attached_devices
class TestReplicate(unittest.TestCase):
"""Tests test_dispatcher.RunTests with replication."""
@staticmethod
def _RunReplicate(runner_factory):
return test_dispatcher.RunTests(
['a', 'b', 'c'], runner_factory, ['0', '1'], shard=False)
def testReplicate(self):
results, exit_code = TestReplicate._RunReplicate(MockRunner)
# We expect 6 results since each test should have been run on every device
self.assertEqual(len(results.GetPass()), 6)
self.assertEqual(exit_code, 0)
def testFailing(self):
results, exit_code = TestReplicate._RunReplicate(MockRunnerFail)
self.assertEqual(len(results.GetPass()), 0)
self.assertEqual(len(results.GetFail()), 6)
self.assertEqual(exit_code, constants.ERROR_EXIT_CODE)
def testNoTests(self):
results, exit_code = test_dispatcher.RunTests(
[], MockRunner, ['0', '1'], shard=False)
self.assertEqual(len(results.GetAll()), 0)
self.assertEqual(exit_code, constants.ERROR_EXIT_CODE)
if __name__ == '__main__':
unittest.main() |
#ifndef <API key>
#define <API key>
#include "content/public/renderer/<API key>.h"
#include "base/compiler_specific.h"
#include "android_webview/renderer/<API key>.h"
namespace android_webview {
class <API key> : public content::<API key> {
public:
<API key>();
virtual ~<API key>();
// <API key> implementation.
virtual void RenderThreadStarted() OVERRIDE;
virtual void RenderViewCreated(content::RenderView* render_view) OVERRIDE;
virtual std::string GetDefaultEncoding() OVERRIDE;
virtual WebKit::WebPlugin* <API key>(
content::RenderView* render_view,
const FilePath& plugin_path) OVERRIDE;
virtual bool HasErrorPage(int http_status_code,
std::string* error_domain) OVERRIDE;
virtual void <API key>(
const WebKit::WebURLRequest& failed_request,
const WebKit::WebURLError& error,
std::string* error_html,
string16* error_description) OVERRIDE;
virtual unsigned long long VisitedLinkHash(const char* canonical_url,
size_t length) OVERRIDE;
virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE;
virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE;
private:
scoped_ptr<<API key>> <API key>;
};
} // namespace android_webview
#endif // <API key> |
<?php
if (!defined('ELK'))
die('No access...');
/**
* Creates the javascript code for localization of the editor (SCEditor)
*/
function action_loadlocale()
{
global $txt, $editortxt, $modSettings;
loadLanguage('Editor');
Template_Layers::getInstance()->removeAll();
// Lets make sure we aren't going to output anything nasty.
@ob_end_clean();
if (!empty($modSettings['<API key>']))
@ob_start('ob_gzhandler');
else
@ob_start();
// If we don't have any locale better avoid broken js
if (empty($txt['lang_locale']))
die();
$file_data = '(function ($) {
\'use strict\';
$.sceditor.locale[' . javaScriptEscape($txt['lang_locale']) . '] = {';
foreach ($editortxt as $key => $val)
$file_data .= '
' . javaScriptEscape($key) . ': ' . javaScriptEscape($val) . ',';
$file_data .= '
dateFormat: "day.month.year"
}
})(jQuery);';
// Make sure they know what type of file we are.
header('Content-Type: text/javascript');
echo $file_data;
obExit(false);
}
/**
* Retrieves a list of message icons.
* - Based on the settings, the array will either contain a list of default
* message icons or a list of custom message icons retrieved from the database.
* - The board_id is needed for the custom message icons (which can be set for
* each board individually).
*
* @param int $board_id
* @return array
*/
function getMessageIcons($board_id)
{
global $modSettings, $txt, $settings;
$db = database();
if (empty($modSettings['messageIcons_enable']))
{
loadLanguage('Post');
$icons = array(
array('value' => 'xx', 'name' => $txt['standard']),
array('value' => 'thumbup', 'name' => $txt['thumbs_up']),
array('value' => 'thumbdown', 'name' => $txt['thumbs_down']),
array('value' => 'exclamation', 'name' => $txt['excamation_point']),
array('value' => 'question', 'name' => $txt['question_mark']),
array('value' => 'lamp', 'name' => $txt['lamp']),
array('value' => 'smiley', 'name' => $txt['icon_smiley']),
array('value' => 'angry', 'name' => $txt['icon_angry']),
array('value' => 'cheesy', 'name' => $txt['icon_cheesy']),
array('value' => 'grin', 'name' => $txt['icon_grin']),
array('value' => 'sad', 'name' => $txt['icon_sad']),
array('value' => 'wink', 'name' => $txt['icon_wink']),
array('value' => 'poll', 'name' => $txt['icon_poll']),
);
foreach ($icons as $k => $dummy)
{
$icons[$k]['url'] = $settings['images_url'] . '/post/' . $dummy['value'] . '.png';
$icons[$k]['is_last'] = false;
}
}
// Otherwise load the icons, and check we give the right image too...
else
{
if (($temp = cache_get_data('posting_icons-' . $board_id, 480)) == null)
{
$request = $db->query('', '
SELECT title, filename
FROM {db_prefix}message_icons
WHERE id_board IN (0, {int:board_id})
ORDER BY icon_order',
array(
'board_id' => $board_id,
)
);
$icon_data = array();
while ($row = $db->fetch_assoc($request))
$icon_data[] = $row;
$db->free_result($request);
$icons = array();
foreach ($icon_data as $icon)
{
$icons[$icon['filename']] = array(
'value' => $icon['filename'],
'name' => $icon['title'],
'url' => $settings[file_exists($settings['theme_dir'] . '/images/post/' . $icon['filename'] . '.png') ? 'images_url' : 'default_images_url'] . '/post/' . $icon['filename'] . '.png',
'is_last' => false,
);
}
cache_put_data('posting_icons-' . $board_id, $icons, 480);
}
else
$icons = $temp;
}
return array_values($icons);
}
/**
* Creates a box that can be used for richedit stuff like BBC, Smileys etc.
* @param array $editorOptions
*/
function <API key>($editorOptions)
{
global $txt, $modSettings, $options, $context, $settings, $user_info, $scripturl;
$db = database();
// Load the Post language file... for the moment at least.
loadLanguage('Post');
if (!empty($context['drafts_save']) || !empty($context['drafts_pm_save']))
loadLanguage('Drafts');
// Every control must have a ID!
assert(isset($editorOptions['id']));
assert(isset($editorOptions['value']));
// Is this the first richedit - if so we need to ensure things are initialised and that we load all of the needed files
if (empty($context['controls']['richedit']))
{
// Store the name / ID we are creating for template compatibility.
$context['post_box_name'] = $editorOptions['id'];
// Some general stuff.
$settings['smileys_url'] = $modSettings['smileys_url'] . '/' . $user_info['smiley_set'];
if (!empty($context['drafts_autosave']) && !empty($options['<API key>']))
$context['<API key>'] = empty($modSettings['<API key>']) ? 30000 : $modSettings['<API key>'] * 1000;
// This really has some WYSIWYG stuff.
loadTemplate('GenericControls', 'jquery.sceditor');
// JS makes the editor go round
loadJavascriptFile(array('jquery.sceditor.js', 'jquery.sceditor.bbcode.js', 'jquery.sceditor.elkarte.js', 'post.js', 'splittag.plugin.js'));
addJavascriptVar(array(
'post_box_name' => '"' . $editorOptions['id'] . '"',
'elk_smileys_url' => '"' . $settings['smileys_url'] . '"',
'bbc_quote_from' => '"' . addcslashes($txt['quote_from'], "'") . '"',
'bbc_quote' => '"' . addcslashes($txt['quote'], "'") . '"',
'bbc_search_on' => '"' . addcslashes($txt['search_on'], "'") . '"')
);
// editor language file
if (!empty($txt['lang_locale']) && $txt['lang_locale'] != 'en_US')
loadJavascriptFile($scripturl . '?action=loadeditorlocale', array(), 'sceditor_language');
// Drafts?
if ((!empty($context['drafts_save']) || !empty($context['drafts_pm_save'])) && !empty($context['drafts_autosave']) && !empty($options['<API key>']))
loadJavascriptFile('drafts.plugin.js');
// Mentions?
if (!empty($context['mentions_enabled']))
loadJavascriptFile(array('jquery.atwho.js', 'jquery.caret.js', 'mentioning.plugin.js'));
// Our not so concise shortcut line
$context['shortcuts_text'] = $txt['shortcuts' . (!empty($context['drafts_save']) ? '_drafts' : '') . (isBrowser('is_firefox') ? '_firefox' : '')];
// Spellcheck?
$context['show_spellchecking'] = !empty($modSettings['enableSpellChecking']) && function_exists('pspell_new');
if ($context['show_spellchecking'])
{
// Some hidden information is needed in order to make spell check work.
if (!isset($_REQUEST['xml']))
$context['<API key>'] .= '
<form name="spell_form" id="spell_form" method="post" accept-charset="UTF-8" target="spellWindow" action="' . $scripturl . '?action=spellcheck">
<input type="hidden" name="spellstring" value="" />
<input type="hidden" name="fulleditor" value="" />
</form>';
loadJavascriptFile('spellcheck.js', array('defer' => true));
}
}
// Start off the editor...
$context['controls']['richedit'][$editorOptions['id']] = array(
'id' => $editorOptions['id'],
'value' => $editorOptions['value'],
'rich_value' => $editorOptions['value'], // 2.0 editor compatibility
'rich_active' => empty($modSettings['disable_wysiwyg']) && (!empty($options['wysiwyg_default']) || !empty($editorOptions['force_rich']) || !empty($_REQUEST[$editorOptions['id'] . '_mode'])),
'disable_smiley_box' => !empty($editorOptions['disable_smiley_box']),
'columns' => isset($editorOptions['columns']) ? $editorOptions['columns'] : 60,
'rows' => isset($editorOptions['rows']) ? $editorOptions['rows'] : 18,
'width' => isset($editorOptions['width']) ? $editorOptions['width'] : '100%',
'height' => isset($editorOptions['height']) ? $editorOptions['height'] : '250px',
'form' => isset($editorOptions['form']) ? $editorOptions['form'] : 'postmodify',
'bbc_level' => !empty($editorOptions['bbc_level']) ? $editorOptions['bbc_level'] : 'full',
'preview_type' => isset($editorOptions['preview_type']) ? (int) $editorOptions['preview_type'] : 1,
'labels' => !empty($editorOptions['labels']) ? $editorOptions['labels'] : array(),
'locale' => !empty($txt['lang_locale']) && substr($txt['lang_locale'], 0, 5) != 'en_US' ? $txt['lang_locale'] : '',
);
// Switch between default images and back... mostly in case you don't have an PersonalMessage template, but do have a Post template.
if (isset($settings['use_default_images']) && $settings['use_default_images'] == 'defaults' && isset($settings['default_template']))
{
$temp1 = $settings['theme_url'];
$settings['theme_url'] = $settings['default_theme_url'];
$temp2 = $settings['images_url'];
$settings['images_url'] = $settings['default_images_url'];
$temp3 = $settings['theme_dir'];
$settings['theme_dir'] = $settings['default_theme_dir'];
}
if (empty($context['bbc_tags']))
{
// The below array makes it dead easy to add images to this control. Add it to the array and everything else is done for you!
/*
array(
'image' => 'bold',
'code' => 'b',
'before' => '[b]',
'after' => '[/b]',
'description' => $txt['bold'],
),
*/
$context['bbc_tags'] = array();
$context['bbc_tags'][] = array(
array(
'code' => 'bold',
'description' => $txt['bold'],
),
array(
'code' => 'italic',
'description' => $txt['italic'],
),
array(
'code' => 'underline',
'description' => $txt['underline']
),
array(
'code' => 'strike',
'description' => $txt['strike']
),
array(
'code' => 'superscript',
'description' => $txt['superscript']
),
array(
'code' => 'subscript',
'description' => $txt['subscript']
),
array(),
array(
'code' => 'left',
'description' => $txt['left_align']
),
array(
'code' => 'center',
'description' => $txt['center']
),
array(
'code' => 'right',
'description' => $txt['right_align']
),
array(
'code' => 'pre',
'description' => $txt['preformatted']
),
array(
'code' => 'tt',
'description' => $txt['teletype']
),
);
$context['bbc_tags'][] = array(
array(
'code' => 'bulletlist',
'description' => $txt['list_unordered']
),
array(
'code' => 'orderedlist',
'description' => $txt['list_ordered']
),
array(
'code' => 'horizontalrule',
'description' => $txt['horizontal_rule']
),
array(),
array(
'code' => 'table',
'description' => $txt['table']
),
array(),
array(
'code' => 'code',
'description' => $txt['bbc_code']
),
array(
'code' => 'quote',
'description' => $txt['bbc_quote']
),
array(
'code' => 'spoiler',
'description' => $txt['bbc_spoiler']
),
array(
'code' => 'footnote',
'description' => $txt['bbc_footnote']
),
array(),
array(
'code' => 'image',
'description' => $txt['image']
),
array(
'code' => 'link',
'description' => $txt['hyperlink']
),
array(
'code' => 'email',
'description' => $txt['insert_email']
),
array(
'code' => 'ftp',
'description' => $txt['ftp']
),
array(
'code' => 'flash',
'description' => $txt['flash']
),
array(),
array(
'code' => 'glow',
'description' => $txt['glow']
),
array(
'code' => 'shadow',
'description' => $txt['shadow']
),
array(
'code' => 'move',
'description' => $txt['marquee']
),
);
// Allow mods to modify BBC buttons.
<API key>('<API key>');
// Show the toggle?
if (empty($modSettings['disable_wysiwyg']))
{
$context['bbc_tags'][count($context['bbc_tags']) - 1][] = array();
$context['bbc_tags'][count($context['bbc_tags']) - 1][] = array(
'code' => 'unformat',
'description' => $txt['unformat_text'],
);
$context['bbc_tags'][count($context['bbc_tags']) - 1][] = array(
'code' => 'toggle',
'description' => $txt['toggle_view'],
);
}
// Generate a list of buttons that shouldn't be shown - this should be the fastest way to do this.
$disabled_tags = array();
if (!empty($modSettings['disabledBBC']))
$disabled_tags = explode(',', $modSettings['disabledBBC']);
if (empty($modSettings['enableEmbeddedFlash']))
$disabled_tags[] = 'flash';
foreach ($disabled_tags as $tag)
{
if ($tag === 'list')
{
$context['disabled_tags']['bulletlist'] = true;
$context['disabled_tags']['orderedlist'] = true;
}
elseif ($tag === 'b')
$context['disabled_tags']['bold'] = true;
elseif ($tag === 'i')
$context['disabled_tags']['italic'] = true;
elseif ($tag === 'u')
$context['disabled_tags']['underline'] = true;
elseif ($tag === 's')
$context['disabled_tags']['strike'] = true;
elseif ($tag === 'img')
$context['disabled_tags']['image'] = true;
elseif ($tag === 'url')
$context['disabled_tags']['link'] = true;
elseif ($tag === 'sup')
$context['disabled_tags']['superscript'] = true;
elseif ($tag === 'sub')
$context['disabled_tags']['subscript'] = true;
elseif ($tag === 'hr')
$context['disabled_tags']['horizontalrule'] = true;
$context['disabled_tags'][trim($tag)] = true;
}
$bbcodes_styles = '';
$context['bbcodes_handlers'] = '';
$context['bbc_toolbar'] = array();
// Build our toolbar, taking in to account any custom bbc codes from integration
foreach ($context['bbc_tags'] as $row => $tagRow)
{
if (!isset($context['bbc_toolbar'][$row]))
$context['bbc_toolbar'][$row] = array();
$tagsRow = array();
foreach ($tagRow as $tag)
{
if (!empty($tag))
{
if (empty($context['disabled_tags'][$tag['code']]))
{
$tagsRow[] = $tag['code'];
// Special Image
if (isset($tag['image']))
$bbcodes_styles .= '
.sceditor-button-' . $tag['code'] . ' div {
background: url(\'' . $settings['default_theme_url'] . '/images/bbc/' . $tag['image'] . '.png\');
}';
// Special commands
if (isset($tag['before']))
{
$context['bbcodes_handlers'] = '
$.sceditor.command.set(
' . javaScriptEscape($tag['code']) . ', {
exec: function () {
this.<API key>(' . javaScriptEscape($tag['before']) . (isset($tag['after']) ? ', ' . javaScriptEscape($tag['after']) : '') . ');
},
tooltip:' . javaScriptEscape($tag['description']) . ',
txtExec: [' . javaScriptEscape($tag['before']) . (isset($tag['after']) ? ', ' . javaScriptEscape($tag['after']) : '') . '],
}
);';
}
}
}
else
{
$context['bbc_toolbar'][$row][] = implode(',', $tagsRow);
$tagsRow = array();
}
}
if ($row === 0)
{
$context['bbc_toolbar'][$row][] = implode(',', $tagsRow);
$tagsRow = array();
if (!isset($context['disabled_tags']['font']))
$tagsRow[] = 'font';
if (!isset($context['disabled_tags']['size']))
$tagsRow[] = 'size';
if (!isset($context['disabled_tags']['color']))
$tagsRow[] = 'color';
}
elseif ($row === 1 && empty($modSettings['disable_wysiwyg']))
{
$tmp = array();
$tagsRow[] = 'removeformat';
$tagsRow[] = 'source';
if (!empty($tmp))
$tagsRow[] = '|' . implode(',', $tmp);
}
if (!empty($tagsRow))
$context['bbc_toolbar'][$row][] = implode(',', $tagsRow);
}
if (!empty($bbcodes_styles))
$context['html_headers'] .= '
<style>' . $bbcodes_styles . '
</style>';
}
// Initialize smiley array... if not loaded before.
if (empty($context['smileys']) && empty($editorOptions['disable_smiley_box']))
{
$context['smileys'] = array(
'postform' => array(),
'popup' => array(),
);
// Load smileys - don't bother to run a query if we're not using the database's ones anyhow.
if (empty($modSettings['smiley_enable']) && $user_info['smiley_set'] != 'none')
{
$context['smileys']['postform'][] = array(
'smileys' => array(
array(
'code' => ':)',
'filename' => 'smiley.gif',
'description' => $txt['icon_smiley'],
),
array(
'code' => ';)',
'filename' => 'wink.gif',
'description' => $txt['icon_wink'],
),
array(
'code' => ':D',
'filename' => 'cheesy.gif',
'description' => $txt['icon_cheesy'],
),
array(
'code' => ';D',
'filename' => 'grin.gif',
'description' => $txt['icon_grin']
),
array(
'code' => '>:(',
'filename' => 'angry.gif',
'description' => $txt['icon_angry'],
),
array(
'code' => ':))',
'filename' => 'laugh.gif',
'description' => $txt['icon_laugh'],
),
array(
'code' => ':(',
'filename' => 'sad.gif',
'description' => $txt['icon_sad'],
),
array(
'code' => ':o',
'filename' => 'shocked.gif',
'description' => $txt['icon_shocked'],
),
array(
'code' => '8)',
'filename' => 'cool.gif',
'description' => $txt['icon_cool'],
),
array(
'code' => '???',
'filename' => 'huh.gif',
'description' => $txt['icon_huh'],
),
array(
'code' => '::)',
'filename' => 'rolleyes.gif',
'description' => $txt['icon_rolleyes'],
),
array(
'code' => ':P',
'filename' => 'tongue.gif',
'description' => $txt['icon_tongue'],
),
array(
'code' => ':-[',
'filename' => 'embarrassed.gif',
'description' => $txt['icon_embarrassed'],
),
array(
'code' => ':-X',
'filename' => 'lipsrsealed.gif',
'description' => $txt['icon_lips'],
),
array(
'code' => ':-\\',
'filename' => 'undecided.gif',
'description' => $txt['icon_undecided'],
),
array(
'code' => ':-*',
'filename' => 'kiss.gif',
'description' => $txt['icon_kiss'],
),
array(
'code' => 'O:)',
'filename' => 'angel.gif',
'description' => $txt['icon_angel'],
),
array(
'code' => ':\'(',
'filename' => 'cry.gif',
'description' => $txt['icon_cry'],
'isLast' => true,
),
),
'isLast' => true,
);
}
elseif ($user_info['smiley_set'] != 'none')
{
if (($temp = cache_get_data('posting_smileys', 480)) == null)
{
$request = $db->query('', '
SELECT code, filename, description, smiley_row, hidden
FROM {db_prefix}smileys
WHERE hidden IN (0, 2)
ORDER BY smiley_row, smiley_order',
array(
)
);
while ($row = $db->fetch_assoc($request))
{
$row['filename'] = htmlspecialchars($row['filename'], ENT_COMPAT, 'UTF-8');
$row['description'] = htmlspecialchars($row['description'], ENT_COMPAT, 'UTF-8');
$context['smileys'][empty($row['hidden']) ? 'postform' : 'popup'][$row['smiley_row']]['smileys'][] = $row;
}
$db->free_result($request);
foreach ($context['smileys'] as $section => $smileyRows)
{
foreach ($smileyRows as $rowIndex => $smileys)
$context['smileys'][$section][$rowIndex]['smileys'][count($smileys['smileys']) - 1]['isLast'] = true;
if (!empty($smileyRows))
$context['smileys'][$section][count($smileyRows) - 1]['isLast'] = true;
}
cache_put_data('posting_smileys', $context['smileys'], 480);
}
else
$context['smileys'] = $temp;
// The smiley popup may take advantage of Jquery UI ....
if (!empty($context['smileys']['popup']))
$modSettings['jquery_include_ui'] = true;
}
}
// Set a flag so the sub template knows what to do...
$context['show_bbc'] = !empty($modSettings['enableBBC']) && !empty($settings['show_bbc']);
// Switch the URLs back... now we're back to whatever the main sub template is. (like folder in PersonalMessage.)
if (isset($settings['use_default_images']) && $settings['use_default_images'] == 'defaults' && isset($settings['default_template']))
{
$settings['theme_url'] = $temp1;
$settings['images_url'] = $temp2;
$settings['theme_dir'] = $temp3;
}
if (!empty($editorOptions['live_errors']))
{
loadLanguage('Errors');
addInlineJavascript('
error_txts[\'no_subject\'] = ' . JavaScriptEscape($txt['error_no_subject']) . ';
error_txts[\'no_message\'] = ' . JavaScriptEscape($txt['error_no_message']) . ';
var subject_err = new errorbox_handler({
self: \'subject_err\',
error_box_id: \'post_error\',
error_checks: [{
code: \'no_subject\',
efunction: function(box_value) {
if (box_value.length === 0)
return true;
else
return false;
}
}],
check_id: "post_subject"
});
var body_err = new errorbox_handler({
self: \'body_err\',
error_box_id: \'post_error\',
error_checks: [{
code: \'no_message\',
efunction: function(box_value) {
if (box_value.length === 0)
return true;
else
return false;
}
}],
editor_id: \'' . $editorOptions['id'] . '\',
editor: ' . JavaScriptEscape('
(function () {
return $("#' . $editorOptions['id'] . '").data("sceditor").val();
});') . '
});', true);
}
} |
package argonaut
/**
* Utility for building the argonaut API over
* various types. This is used to implement
* StringWrap, and it is expected that it would
* be used by integrations with other toolkits
* to provide an argonaut API on their types.
*/
class ParseWrap[A](value: A, parser: Parse[A]) {
/**
* Parses the string value and either returns a list of the failures from parsing the string
* or an instance of the Json type if parsing succeeds.
*/
def parse: Either[String, Json] = {
parser.parse(value)
}
/**
* Parses the string value and executes one of the given functions, depending on the parse outcome.
*
* @param success Run this function if the parse succeeds.
* @param failure Run this function if the parse produces a failure.
*/
def parseWith[X](success: Json => X, failure: String => X): X = {
parser.parseWith(value, success, failure)
}
/**
* Parses the string value and executes one of the given functions, depending on the parse outcome.
* Any error message is ignored.
*
* @param success Run this function if the parse succeeds.
* @param failure Run this function if the parse produces a failure.
*/
def parseOr[X](success: Json => X, failure: => X): X =
parser.parseOr(value, success, failure)
/**
* Parses the string value to a possible JSON value.
*/
def parseOption: Option[Json] =
parser.parseOption(value)
/**
* Parses the string value and decodes it returning a list of all the failures stemming from
* either the JSON parsing or the decoding.
*/
def decode[X: DecodeJson]: Either[Either[String, (String, CursorHistory)], X] =
parser.decode(value)
/**
* Parses the string value into a JSON value and if it succeeds, decodes to a data-type.
*
* @param success Run this function if the parse produces a success.
* @param parsefailure Run this function if the parse produces a failure.
* @param decodefailure Run this function if the decode produces a failure.
*/
def decodeWith[Y, X: DecodeJson](success: X => Y, parsefailure: String => Y, decodefailure: (String, CursorHistory) => Y): Y =
parser.decodeWith(value, success, parsefailure, decodefailure)
/**
* Parses the string value into a JSON value and if it succeeds, decodes to a data-type.
*
* @param success Run this function if the parse produces a success.
* @param failure Run this function if the parse produces a failure.
*/
def decodeWithEither[Y, X: DecodeJson](success: X => Y, failure: Either[String, (String, CursorHistory)] => Y): Y =
parser.decodeWithEither(value, success, failure)
/**
* Parses the string value into a JSON value and if it succeeds, decodes to a data-type.
*
* @param success Run this function if the parse produces a success.
* @param failure Run this function if the parse produces a failure.
*/
def decodeWithMessage[Y, X: DecodeJson](success: X => Y, failure: String => Y): Y =
parser.decodeWithMessage(value, success, failure)
/**
* Parses the string value into a JSON value and if it succeeds, decodes to a data-type.
*
* @param success Run this function if the parse produces a success.
* @param default Return this value of the parse or decode fails.
*/
def decodeOr[Y, X: DecodeJson](success: X => Y, default: => Y): Y =
parser.decodeOr(value, success, default)
/**
* Parses and decodes the string value to a possible JSON value.
*/
def decodeOption[X: DecodeJson]: Option[X] =
parser.decodeOption(value)
/**
* Parses and decodes the string value to a possible JSON value.
*/
def decodeEither[X: DecodeJson]: Either[String, X] =
parser.decodeEither(value)
} |
#include "kernel/yosys.h"
#include "kernel/sigtools.h"
#include "kernel/ffinit.h"
<API key>
<API key>
struct DffinitPass : public Pass {
DffinitPass() : Pass("dffinit", "set INIT param on FF cells") { }
void help() override
{
log("\n");
log(" dffinit [options] [selection]\n");
log("\n");
log("This pass sets an FF cell parameter to the the initial value of the net it\n");
log("drives. (This is primarily used in FPGA flows.)\n");
log("\n");
log(" -ff <cell_name> <output_port> <init_param>\n");
log(" operate on the specified cell type. this option can be used\n");
log(" multiple times.\n");
log("\n");
log(" -highlow\n");
log(" use the string values \"high\" and \"low\" to represent a single-bit\n");
log(" initial value of 1 or 0. (multi-bit values are not supported in this\n");
log(" mode.)\n");
log("\n");
log(" -strinit <string for high> <string for low> \n");
log(" use string values in the command line to represent a single-bit\n");
log(" initial value of 1 or 0. (multi-bit values are not supported in this\n");
log(" mode.)\n");
log("\n");
log(" -noreinit\n");
log(" fail if the FF cell has already a defined initial value set in other\n");
log(" passes and the initial value of the net it drives is not equal to\n");
log(" the already defined initial value.\n");
log("\n");
}
void execute(std::vector<std::string> args, RTLIL::Design *design) override
{
log_header(design, "Executing DFFINIT pass (set INIT param on FF cells).\n");
dict<IdString, dict<IdString, IdString>> ff_types;
bool highlow_mode = false, noreinit = false;
std::string high_string, low_string;
size_t argidx;
for (argidx = 1; argidx < args.size(); argidx++) {
if (args[argidx] == "-highlow") {
highlow_mode = true;
high_string = "high";
low_string = "low";
continue;
}
if (args[argidx] == "-strinit" && argidx+2 < args.size()) {
highlow_mode = true;
high_string = args[++argidx];
low_string = args[++argidx];
continue;
}
if (args[argidx] == "-ff" && argidx+3 < args.size()) {
IdString cell_name = RTLIL::escape_id(args[++argidx]);
IdString output_port = RTLIL::escape_id(args[++argidx]);
IdString init_param = RTLIL::escape_id(args[++argidx]);
ff_types[cell_name][output_port] = init_param;
continue;
}
if (args[argidx] == "-noreinit") {
noreinit = true;
continue;
}
break;
}
extra_args(args, argidx, design);
for (auto module : design->selected_modules())
{
SigMap sigmap(module);
FfInitVals initvals(&sigmap, module);
for (auto cell : module->selected_cells())
{
if (ff_types.count(cell->type) == 0)
continue;
for (auto &it : ff_types[cell->type])
{
if (!cell->hasPort(it.first))
continue;
SigSpec sig = sigmap(cell->getPort(it.first));
Const value;
if (cell->hasParam(it.second))
value = cell->getParam(it.second);
Const initval = initvals(sig);
initvals.remove_init(sig);
for (int i = 0; i < GetSize(sig); i++) {
if (initval[i] == State::Sx)
continue;
while (GetSize(value.bits) <= i)
value.bits.push_back(State::S0);
if (noreinit && value.bits[i] != State::Sx && value.bits[i] != initval[i])
log_error("Trying to assign a different init value for %s.%s.%s which technically "
"have a conflicted init value.\n",
log_id(module), log_id(cell), log_id(it.second));
value.bits[i] = initval[i];
}
if (highlow_mode && GetSize(value) != 0) {
if (GetSize(value) != 1)
log_error("Multi-bit init value for %s.%s.%s is incompatible with -highlow mode.\n",
log_id(module), log_id(cell), log_id(it.second));
if (value[0] == State::S1)
value = Const(high_string);
else
value = Const(low_string);
}
if (value.size() != 0) {
log("Setting %s.%s.%s (port=%s, net=%s) to %s.\n", log_id(module), log_id(cell), log_id(it.second),
log_id(it.first), log_signal(sig), log_signal(value));
cell->setParam(it.second, value);
}
}
}
}
}
} DffinitPass;
<API key> |
'use strict';
module.exports = {
item: '<li>{{label}}</li>',
link: '<a href="{{url}}">{{label}}</a>'
}; |
<?php
$compact = ["'" . $singularName . "'"];
?>
/**
* Add method
*
* @return \Cake\Http\Response|null Redirects on successful add, renders view otherwise.
*/
public function add()
{
$<?= $singularName ?> = $this-><?= $currentModelName ?>->newEntity();
if ($this->request->is('post')) {
$<?= $singularName ?> = $this-><?= $currentModelName ?>->patchEntity($<?= $singularName ?>, $this->request->getData());
if ($this-><?= $currentModelName; ?>->save($<?= $singularName ?>)) {
$this->Flash->success(__('The <?= strtolower($singularHumanName) ?> has been saved.'));
return $this->redirect(['action' => 'index']);
}
$this->Flash->error(__('The <?= strtolower($singularHumanName) ?> could not be saved. Please, try again.'));
}
<?php
$associations = array_merge(
$this->Bake->aliasExtractor($modelObj, 'BelongsTo'),
$this->Bake->aliasExtractor($modelObj, 'BelongsToMany')
);
foreach ($associations as $assoc):
$association = $modelObj->association($assoc);
$otherName = $association->getTarget()->getAlias();
$otherPlural = $this->_variableName($otherName);
?>
$<?= $otherPlural ?> = $this-><?= $currentModelName ?>-><?= $otherName ?>->find('list', ['limit' => 200]);
<?php
$compact[] = "'$otherPlural'";
endforeach;
?>
$this->set(compact(<?= join(', ', $compact) ?>));
$this->set('_serialize', ['<?=$singularName?>']);
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#FF9800">
<link rel="stylesheet" href="styles/main.css">
<link rel="stylesheet" href="styles/fonts.css">
<title>Halloween Store</title>
</head>
<body>
<header>
<!-- Display WebP format to supported browsers for quicker loading; fallback to PNG format otherwise -->
<picture>
<source srcset="images/pumpkin.webp" type="image/webp">
<img src="images/pumpkin.png" alt="Pumpkin">
</picture>
<h1>The Halloween Store</h1>
<h2>For the little Goblin in all of us!</h2>
</header>
<main>
<h1>Welcome to my site. Please come in and stay awhile.</h1>
<p>I started this website because Halloween has always been my favorite holiday. But during the last year, I started selling some of my favorite Halloween products, and they’ve become quite a hit.</p>
<p>If you click on the Personal link, you can browse my favorite Halloween pictures, stories, and films. And if you join my email list, I will keep you up‐to‐date on all things Halloween.</p>
<h2>Product categories</h2>
<ul>
<li>
<a href="products/props.html">Props</a>
</li>
<li>
<a href="products/costumes.html">Costumes</a>
</li>
<li>
<a href="products/special-effects.html">Special Effects</a>
</li>
<li>
<a href="products/masks.html">Masks</a>
</li>
</ul>
<h3>My guarantee</h3>
<p>If you aren’t completely satisfied with everything you buy from my site, you can return it for a full refund. <strong>No questions asked!</strong></p>
</main>
<footer>© 2016 Ben Murach</footer>
</body>
</html> |
module Commander
# This class override the run method with our custom stack trace handling
# In particular we want to distinguish between user_error! and crash! (one with, one without stack trace)
class Runner
def run!
require_program :version, :description
trap('INT') { abort program(:int_message) } if program(:int_message)
trap('INT') { program(:int_block).call } if program(:int_block)
global_option('-h', '--help', 'Display help documentation') do
args = @args - %w(-h --help)
command(:help).run(*args)
return
end
global_option('-v', '--version', 'Display version information') do
say version
return
end
<API key>
<API key> options, @args
collector = FastlaneCore::ToolCollector.new
begin
collector.did_launch_action(@program[:name])
run_active_command
collector.did_finish
rescue InvalidCommandError => e
abort "#{e}. Use --help for more information"
rescue Interrupt => ex
# We catch it so that the stack trace is hidden by default when using ctrl + c
if $verbose
raise ex
else
puts "\nCancelled... use --verbose to show the stack trace"
end
rescue \
OptionParser::InvalidOption,
OptionParser::InvalidArgument,
OptionParser::MissingArgument => e
abort e.to_s
rescue FastlaneCore::Interface::FastlaneError => e # user_error!
collector.did_raise_error(@program[:name])
display_user_error!(e, e.message)
rescue => e # high chance this is actually FastlaneCore::Interface::FastlaneCrash, but can be anything else
collector.did_raise_error(@program[:name])
<API key>!(e)
end
end
def <API key>!(e)
# Some spaceship exception classes implement #<API key> in order to share error info
# that we'd rather display instead of crashing with a stack trace. However, fastlane_core and
# spaceship can not know about each other's classes! To make this information passing work, we
# use a bit of Ruby duck-typing to check whether the unknown exception type implements the right
# method. If so, we'll present any returned error info in the manner of a user_error!
error_info = e.respond_to?(:<API key>) ? e.<API key> : nil
if error_info
error_info = error_info.join("\n\t") if error_info.kind_of?(Array)
display_user_error!(e, error_info)
else
FastlaneCore::CrashReporting.handle_crash(e)
# We do this to make the actual error message red and therefore more visible
reraise_formatted!(e, e.message)
end
end
def display_user_error!(e, message)
if $verbose # with stack trace
reraise_formatted!(e, message)
else
abort "\n[!] #{message}".red # without stack trace
end
end
def reraise_formatted!(e, message)
raise e, "[!] #{message}".red, e.backtrace
end
end
end |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class <API key> extends MY_Controller {
public function __construct() {
parent::__construct();
$this->load
->helper('asset')
;
}
public function _remap() {
show_404();
}
} |
# <API key>: true
module <API key>
extend ActiveSupport::Concern
# Returns active global announcements unread by the current user, if one is signed in.
# @return [Array<GenericAnnouncement>] Unread announcements
def <API key>
user_signed_in? ? <API key>.unread_by(current_user) : <API key>
end
# Returns all active global announcements.
# @return [Array<GenericAnnouncement>] Active announcements
def <API key>
GenericAnnouncement.for_instance(current_tenant).currently_active
end
end |
module.exports = Torrent
var addrToIPPort = require('addr-to-ip-port') // browser exclude
var BitField = require('bitfield')
var <API key> = require('chunk-store-stream/write')
var createTorrent = require('create-torrent')
var debug = require('debug')('webtorrent:torrent')
var Discovery = require('torrent-discovery')
var EventEmitter = require('events').EventEmitter
var extend = require('xtend/mutable')
var FSChunkStore = require('fs-chunk-store') // browser: `memory-chunk-store`
var ImmediateChunkStore = require('<API key>')
var inherits = require('inherits')
var MultiStream = require('multistream')
var os = require('os')
var parallel = require('run-parallel')
var parseTorrent = require('parse-torrent')
var path = require('path')
var pathExists = require('path-exists')
var Piece = require('torrent-piece')
var pump = require('pump')
var randomIterate = require('random-iterate')
var reemit = require('re-emitter')
var sha1 = require('simple-sha1')
var Swarm = require('bittorrent-swarm')
var uniq = require('uniq')
var ut_metadata = require('ut_metadata')
var ut_pex = require('ut_pex') // browser exclude
var File = require('./file')
var RarityMap = require('./rarity-map')
var Server = require('./server') // browser exclude
var MAX_BLOCK_LENGTH = 128 * 1024
var PIECE_TIMEOUT = 30000
var CHOKE_TIMEOUT = 5000
var SPEED_THRESHOLD = 3 * Piece.BLOCK_LENGTH
var <API key> = 0.5
var <API key> = 1
var RECHOKE_INTERVAL = 10000 // 10 seconds
var <API key> = 2 // 30 seconds
var TMP = path.join(pathExists.sync('/tmp') ? '/tmp' : os.tmpDir(), 'webtorrent')
inherits(Torrent, EventEmitter)
/**
* @param {string|Buffer|Object} torrentId
* @param {Object} opts
*/
function Torrent (torrentId, opts) {
var self = this
EventEmitter.call(self)
if (!debug.enabled) self.setMaxListeners(0)
debug('new torrent')
self.client = opts.client
self.announce = opts.announce
self.urlList = opts.urlList
self.path = opts.path
self._store = opts.store || FSChunkStore
self.strategy = opts.strategy || 'sequential'
self._rechokeNumSlots = (opts.uploads === false || opts.uploads === 0)
? 0
: (+opts.uploads || 10)
self.<API key> = null
self.<API key> = 0
self._rechokeIntervalId = null
self.ready = false
self.destroyed = false
self.metadata = null
self.store = null
self.numBlockedPeers = 0
self.files = null
self.done = false
self._amInterested = false
self._selections = []
self._critical = []
// for cleanup
self._servers = []
if (torrentId) self._onTorrentId(torrentId)
}
// Time remaining (in milliseconds)
Object.defineProperty(Torrent.prototype, 'timeRemaining', {
get: function () {
if (this.swarm.downloadSpeed() === 0) return Infinity
else return ((this.length - this.downloaded) / this.swarm.downloadSpeed()) * 1000
}
})
// Bytes completed (excluding invalid data)
Object.defineProperty(Torrent.prototype, 'downloaded', {
get: function () {
var downloaded = 0
for (var index = 0, len = this.pieces.length; index < len; ++index) {
if (this.bitfield.get(index)) { // verified data
downloaded += (index === len - 1) ? this.lastPieceLength : this.pieceLength
} else { // "in progress" data
var piece = this.pieces[index]
downloaded += (piece.length - piece.missing)
}
}
return downloaded
}
})
// Bytes received from peers (including invalid data)
Object.defineProperty(Torrent.prototype, 'received', {
get: function () { return this.swarm ? this.swarm.downloaded : 0 }
})
// Bytes uploaded
Object.defineProperty(Torrent.prototype, 'uploaded', {
get: function () { return this.swarm ? this.swarm.uploaded : 0 }
})
/**
* The number of missing pieces. Used to implement 'end game' mode.
*/
// Object.defineProperty(Storage.prototype, 'numMissing', {
// get: function () {
// var self = this
// var numMissing = self.pieces.length
// for (var index = 0, len = self.pieces.length; index < len; index++) {
// numMissing -= self.bitfield.get(index)
// return numMissing
// Percentage complete, represented as a number between 0 and 1
Object.defineProperty(Torrent.prototype, 'progress', {
get: function () { return this.length ? this.downloaded / this.length : 0 }
})
// Seed ratio
Object.defineProperty(Torrent.prototype, 'ratio', {
get: function () { return this.uploaded / (this.downloaded || 1) }
})
// Number of peers
Object.defineProperty(Torrent.prototype, 'numPeers', {
get: function () { return this.swarm ? this.swarm.numPeers : 0 }
})
Object.defineProperty(Torrent.prototype, 'torrentFileURL', {
get: function () {
if (typeof window === 'undefined') throw new Error('browser-only property')
if (!this.torrentFile) return null
return window.URL.createObjectURL(
new window.Blob([ this.torrentFile ], { type: 'application/x-bittorrent' })
)
}
})
Torrent.prototype.downloadSpeed = function () {
return this.swarm ? this.swarm.downloadSpeed() : 0
}
Torrent.prototype.uploadSpeed = function () {
return this.swarm ? this.swarm.uploadSpeed() : 0
}
Torrent.prototype._onTorrentId = function (torrentId) {
var self = this
if (self.destroyed) return
parseTorrent.remote(torrentId, function (err, parsedTorrent) {
if (self.destroyed) return
if (err) return self._onError(err)
self._onParsedTorrent(parsedTorrent)
})
}
Torrent.prototype._onParsedTorrent = function (parsedTorrent) {
var self = this
if (self.destroyed) return
self.<API key>(parsedTorrent)
if (!self.infoHash) {
return self._onError(new Error('Malformed torrent data: No info hash'))
}
if (!self.path) self.path = path.join(TMP, self.infoHash)
// create swarm
self.swarm = new Swarm(self.infoHash, self.client.peerId, {
handshake: {
dht: self.private ? false : !!self.client.dht
}
})
self.swarm.on('error', self._onError.bind(self))
self.swarm.on('wire', self._onWire.bind(self))
self.swarm.on('download', function (downloaded) {
self.client.downloadSpeed(downloaded) // update overall client stats
self.client.emit('download', downloaded)
self.emit('download', downloaded)
})
self.swarm.on('upload', function (uploaded) {
self.client.uploadSpeed(uploaded) // update overall client stats
self.client.emit('upload', uploaded)
self.emit('upload', uploaded)
})
// listen for peers (note: in the browser, this is a no-op and callback is called on
// next tick)
self.swarm.listen(self.client.torrentPort, self._onSwarmListening.bind(self))
process.nextTick(function () {
if (self.destroyed) return
self.emit('infoHash', self.infoHash)
})
}
Torrent.prototype.<API key> = function (parsedTorrent) {
if (this.announce) {
// Allow specifying trackers via `opts` parameter
parsedTorrent.announce = parsedTorrent.announce.concat(this.announce)
}
if (global.WEBTORRENT_ANNOUNCE) {
// So `webtorrent-hybrid` can force specific trackers to be used
parsedTorrent.announce = parsedTorrent.announce.concat(global.WEBTORRENT_ANNOUNCE)
}
if (parsedTorrent.announce.length === 0) {
// When no trackers specified, use some reasonable defaults
parsedTorrent.announce = createTorrent.announceList.map(function (list) {
return list[0]
})
}
if (this.urlList) {
// Allow specifying web seeds via `opts` parameter
parsedTorrent.urlList = parsedTorrent.urlList.concat(this.urlList)
}
uniq(parsedTorrent.announce)
extend(this, parsedTorrent)
this.magnetURI = parseTorrent.toMagnetURI(parsedTorrent)
this.torrentFile = parseTorrent.toTorrentFile(parsedTorrent)
}
Torrent.prototype._onSwarmListening = function () {
var self = this
if (self.destroyed) return
if (self.swarm.server) self.client.torrentPort = self.swarm.address().port
// begin discovering peers via the DHT and tracker servers
self.discovery = new Discovery({
announce: self.announce,
dht: self.private
? false
: self.client.dht,
tracker: self.client.tracker,
peerId: self.client.peerId,
port: self.client.torrentPort,
rtcConfig: self.client._rtcConfig,
wrtc: self.client._wrtc
})
self.discovery.on('error', self._onError.bind(self))
self.discovery.setTorrent(self.infoHash)
self.discovery.on('peer', self.addPeer.bind(self))
// expose discovery events
reemit(self.discovery, self, ['trackerAnnounce', 'dhtAnnounce', 'warning'])
// if full metadata was included in initial torrent id, use it
if (self.info) self._onMetadata(self)
self.emit('listening', self.client.torrentPort)
}
/**
* Called when the full torrent metadata is received.
*/
Torrent.prototype._onMetadata = function (metadata) {
var self = this
if (self.metadata || self.destroyed) return
debug('got metadata')
var parsedTorrent
if (metadata && metadata.infoHash) {
// `metadata` is a parsed torrent (from parse-torrent module)
parsedTorrent = metadata
} else {
try {
parsedTorrent = parseTorrent(metadata)
} catch (err) {
return self._onError(err)
}
}
self.<API key>(parsedTorrent)
self.metadata = self.torrentFile
// update discovery module with full torrent metadata
self.discovery.setTorrent(self)
// add web seed urls (BEP19)
if (self.urlList) self.urlList.forEach(self.addWebSeed.bind(self))
self.rarityMap = new RarityMap(self.swarm, self.pieces.length)
self.store = new ImmediateChunkStore(
new self._store(self.pieceLength, {
files: self.files.map(function (file) {
return {
path: path.join(self.path, file.path),
length: file.length,
offset: file.offset
}
}),
length: self.length
})
)
self.files = self.files.map(function (file) {
return new File(self, file)
})
self._hashes = self.pieces
self.pieces = self.pieces.map(function (hash, i) {
var pieceLength = (i === self.pieces.length - 1)
? self.lastPieceLength
: self.pieceLength
return new Piece(pieceLength)
})
self._reservations = self.pieces.map(function () {
return []
})
self.bitfield = new BitField(self.pieces.length)
self.swarm.wires.forEach(function (wire) {
// If we didn't have the metadata at the time ut_metadata was initialized for this
// wire, we still want to make it available to the peer in case they request it.
if (wire.ut_metadata) wire.ut_metadata.setMetadata(self.metadata)
self._onWireWithMetadata(wire)
})
debug('verifying existing torrent data')
parallel(self.pieces.map(function (piece, index) {
return function (cb) {
self.store.get(index, function (err, buf) {
if (err) return cb(null) // ignore error
sha1(buf, function (hash) {
if (hash === self._hashes[index]) {
if (!self.pieces[index]) return
debug('piece verified %s', index)
self.pieces[index] = null
self._reservations[index] = null
self.bitfield.set(index, true)
} else {
debug('piece invalid %s', index)
}
cb(null)
})
})
}
}), function (err) {
if (err) return self._onError(err)
debug('done verifying')
self._onStore()
})
self.emit('metadata')
}
/**
* Called when the metadata, swarm, and underlying chunk store is initialized.
*/
Torrent.prototype._onStore = function () {
var self = this
if (self.destroyed) return
debug('on store')
// start off selecting the entire torrent with low priority
self.select(0, self.pieces.length - 1, false)
self._rechokeIntervalId = setInterval(self._rechoke.bind(self), RECHOKE_INTERVAL)
if (self._rechokeIntervalId.unref) self._rechokeIntervalId.unref()
self.ready = true
self.emit('ready')
self._checkDone()
}
/**
* Destroy and cleanup this torrent.
*/
Torrent.prototype.destroy = function (cb) {
var self = this
if (self.destroyed) return
self.destroyed = true
debug('destroy')
self.client.remove(self)
if (self._rechokeIntervalId) {
clearInterval(self._rechokeIntervalId)
self._rechokeIntervalId = null
}
var tasks = []
self._servers.forEach(function (server) {
tasks.push(function (cb) { server.destroy(cb) })
})
if (self.swarm) tasks.push(function (cb) { self.swarm.destroy(cb) })
if (self.discovery) tasks.push(function (cb) { self.discovery.stop(cb) })
if (self.store) tasks.push(function (cb) { self.store.close(cb) })
parallel(tasks, cb)
}
/**
* Add a peer to the swarm
* @param {string|SimplePeer} peer
* @return {boolean} true if peer was added, false if peer was blocked
*/
Torrent.prototype.addPeer = function (peer) {
var self = this
function addPeer () {
self.swarm.addPeer(peer)
self.emit('peer', peer)
}
// TODO: extract IP address from peer object and check blocklist
if (typeof peer === 'string' && self.client.blocked &&
self.client.blocked.contains(addrToIPPort(peer)[0])) {
self.numBlockedPeers += 1
self.emit('blockedPeer', peer)
return false
} else {
if (self.swarm) addPeer()
else self.once('listening', addPeer)
return true
}
}
/**
* Add a web seed to the swarm
* @param {string} url web seed url
*/
Torrent.prototype.addWebSeed = function (url) {
var self = this
self.swarm.addWebSeed(url, self)
}
/**
* Select a range of pieces to prioritize.
*
* @param {number} start start piece index (inclusive)
* @param {number} end end piece index (inclusive)
* @param {number} priority priority associated with this selection
* @param {function} notify callback when selection is updated with new data
*/
Torrent.prototype.select = function (start, end, priority, notify) {
var self = this
if (start > end || start < 0 || end >= self.pieces.length) {
throw new Error('invalid selection ', start, ':', end)
}
priority = Number(priority) || 0
debug('select %s-%s (priority %s)', start, end, priority)
self._selections.push({
from: start,
to: end,
offset: 0,
priority: priority,
notify: notify || noop
})
self._selections.sort(function (a, b) {
return b.priority - a.priority
})
self._updateSelections()
}
/**
* Deprioritizes a range of previously selected pieces.
*
* @param {number} start start piece index (inclusive)
* @param {number} end end piece index (inclusive)
* @param {number} priority priority associated with the selection
*/
Torrent.prototype.deselect = function (start, end, priority) {
var self = this
priority = Number(priority) || 0
debug('deselect %s-%s (priority %s)', start, end, priority)
for (var i = 0; i < self._selections.length; ++i) {
var s = self._selections[i]
if (s.from === start && s.to === end && s.priority === priority) {
self._selections.splice(i
break
}
}
self._updateSelections()
}
/**
* Marks a range of pieces as critical priority to be downloaded ASAP.
*
* @param {number} start start piece index (inclusive)
* @param {number} end end piece index (inclusive)
*/
Torrent.prototype.critical = function (start, end) {
var self = this
debug('critical %s-%s', start, end)
for (var i = start; i <= end; ++i) {
self._critical[i] = true
}
self._updateSelections()
}
Torrent.prototype._onWire = function (wire, addr) {
var self = this
debug('got wire (%s)', addr || 'Unknown')
if (addr) {
// Sometimes RTCPeerConnection.getStats() doesn't return an ip:port for peers
var parts = addrToIPPort(addr)
wire.remoteAddress = parts[0]
wire.remotePort = parts[1]
}
// If peer supports DHT, send PORT message to report DHT listening port
if (wire.peerExtensions.dht && self.client.dht && self.client.dht.listening) {
// When peer sends PORT, add them to the routing table
wire.on('port', function (port) {
if (!wire.remoteAddress) {
debug('ignoring port from peer with no address')
return
}
debug('port: %s (from %s)', port, wire.remoteAddress + ':' + wire.remotePort)
self.client.dht.addNode(wire.remoteAddress + ':' + port)
})
wire.port(self.client.dht.address().port)
}
wire.on('timeout', function () {
debug('wire timeout (%s)', addr)
// TODO: this might be destroying wires too eagerly
wire.destroy()
})
// Timeout for piece requests to this peer
wire.setTimeout(PIECE_TIMEOUT, true)
// Send KEEP-ALIVE (every 60s) so peers will not disconnect the wire
wire.setKeepAlive(true)
// use ut_metadata extension
wire.use(ut_metadata(self.metadata))
if (!self.metadata) {
wire.ut_metadata.on('metadata', function (metadata) {
debug('got metadata via ut_metadata')
self._onMetadata(metadata)
})
wire.ut_metadata.fetch()
}
// use ut_pex extension if the torrent is not flagged as private
if (typeof ut_pex === 'function' && !self.private) {
wire.use(ut_pex())
// wire.ut_pex.start() // TODO two-way communication
wire.ut_pex.on('peer', function (peer) {
debug('ut_pex: got peer: %s (from %s)', peer, addr)
self.addPeer(peer)
})
wire.ut_pex.on('dropped', function (peer) {
// the remote peer believes a given peer has been dropped from the swarm.
// if we're not currently connected to it, then remove it from the swarm's queue.
var peerObj = self.swarm._peers[peer]
if (peerObj && !peerObj.connected) {
debug('ut_pex: dropped peer: %s (from %s)', peer, addr)
self.swarm.removePeer(peer)
}
})
}
// Hook to allow user-defined `bittorrent-protocol extensions
// More info: https://github.com/feross/bittorrent-protocol#extension-api
self.emit('wire', wire, addr)
if (self.metadata) {
self._onWireWithMetadata(wire)
}
}
Torrent.prototype._onWireWithMetadata = function (wire) {
var self = this
var timeoutId = null
function onChokeTimeout () {
if (self.destroyed || wire.destroyed) return
if (self.swarm.numQueued > 2 * (self.swarm.numConns - self.swarm.numPeers) &&
wire.amInterested) {
wire.destroy()
} else {
timeoutId = setTimeout(onChokeTimeout, CHOKE_TIMEOUT)
if (timeoutId.unref) timeoutId.unref()
}
}
var i = 0
function updateSeedStatus () {
if (wire.peerPieces.length !== self.pieces.length) return
for (; i < self.pieces.length; ++i) {
if (!wire.peerPieces.get(i)) return
}
wire.isSeeder = true
wire.choke() // always choke seeders
}
wire.on('bitfield', function () {
updateSeedStatus()
self._update()
})
wire.on('have', function () {
updateSeedStatus()
self._update()
})
wire.once('interested', function () {
wire.unchoke()
})
wire.on('close', function () {
clearTimeout(timeoutId)
})
wire.on('choke', function () {
clearTimeout(timeoutId)
timeoutId = setTimeout(onChokeTimeout, CHOKE_TIMEOUT)
if (timeoutId.unref) timeoutId.unref()
})
wire.on('unchoke', function () {
clearTimeout(timeoutId)
self._update()
})
wire.on('request', function (index, offset, length, cb) {
if (length > MAX_BLOCK_LENGTH) {
// Per spec, disconnect from peers that request >128KB
return wire.destroy()
}
if (self.pieces[index]) return
self.store.get(index, { offset: offset, length: length }, cb)
})
wire.bitfield(self.bitfield) // always send bitfield (required)
wire.interested() // always start out interested
timeoutId = setTimeout(onChokeTimeout, CHOKE_TIMEOUT)
if (timeoutId.unref) timeoutId.unref()
wire.isSeeder = false
updateSeedStatus()
}
/**
* Called on selection changes.
*/
Torrent.prototype._updateSelections = function () {
var self = this
if (!self.swarm || self.destroyed) return
if (!self.metadata) return self.once('metadata', self._updateSelections.bind(self))
process.nextTick(self._gcSelections.bind(self))
self._updateInterest()
self._update()
}
/**
* Garbage collect selections with respect to the store's current state.
*/
Torrent.prototype._gcSelections = function () {
var self = this
for (var i = 0; i < self._selections.length; i++) {
var s = self._selections[i]
var oldOffset = s.offset
// check for newly downloaded pieces in selection
while (self.bitfield.get(s.from + s.offset) && s.from + s.offset < s.to) {
s.offset++
}
if (oldOffset !== s.offset) s.notify()
if (s.to !== s.from + s.offset) continue
if (!self.bitfield.get(s.from + s.offset)) continue
// remove fully downloaded selection
self._selections.splice(i--, 1) // decrement i to offset splice
s.notify() // TODO: this may notify twice in a row. is this a problem?
self._updateInterest()
}
if (!self._selections.length) self.emit('idle')
}
/**
* Update interested status for all peers.
*/
Torrent.prototype._updateInterest = function () {
var self = this
var prev = self._amInterested
self._amInterested = !!self._selections.length
self.swarm.wires.forEach(function (wire) {
// TODO: only call wire.interested if the wire has at least one piece we need
if (self._amInterested) wire.interested()
else wire.uninterested()
})
if (prev === self._amInterested) return
if (self._amInterested) self.emit('interested')
else self.emit('uninterested')
}
/**
* Heartbeat to update all peers and their requests.
*/
Torrent.prototype._update = function () {
var self = this
if (self.destroyed) return
// update wires in random order for better request distribution
var ite = randomIterate(self.swarm.wires)
var wire
while ((wire = ite())) {
self._updateWire(wire)
}
}
/**
* Attempts to update a peer's requests
*/
Torrent.prototype._updateWire = function (wire) {
var self = this
if (wire.peerChoking) return
if (!wire.downloaded) return validateWire()
var <API key> = getPipelineLength(wire, <API key>)
if (wire.requests.length >= <API key>) return
var <API key> = getPipelineLength(wire, <API key>)
trySelectWire(false) || trySelectWire(true)
function genPieceFilterFunc (start, end, tried, rank) {
return function (i) {
return i >= start && i <= end && !(i in tried) && wire.peerPieces.get(i) && (!rank || rank(i))
}
}
// TODO: Do we need both validateWire and trySelectWire?
function validateWire () {
if (wire.requests.length) return
for (var i = self._selections.length; i
var next = self._selections[i]
var piece
if (self.strategy === 'rarest') {
var start = next.from + next.offset
var end = next.to
var len = end - start + 1
var tried = {}
var tries = 0
var filter = genPieceFilterFunc(start, end, tried)
while (tries < len) {
piece = self.rarityMap.getRarestPiece(filter)
if (piece < 0) break
if (self._request(wire, piece, false)) return
tried[piece] = true
tries += 1
}
} else {
for (piece = next.to; piece >= next.from + next.offset; --piece) {
if (!wire.peerPieces.get(piece)) continue
if (self._request(wire, piece, false)) return
}
}
}
// TODO: wire failed to validate as useful; should we close it?
// probably not, since 'have' and 'bitfield' messages might be coming
}
function speedRanker () {
var speed = wire.downloadSpeed() || 1
if (speed > SPEED_THRESHOLD) return function () { return true }
var secs = Math.max(1, wire.requests.length) * Piece.BLOCK_LENGTH / speed
var tries = 10
var ptr = 0
return function (index) {
if (!tries || self.bitfield.get(index)) return true
var missing = self.pieces[index].missing
for (; ptr < self.swarm.wires.length; ptr++) {
var otherWire = self.swarm.wires[ptr]
var otherSpeed = otherWire.downloadSpeed()
if (otherSpeed < SPEED_THRESHOLD) continue
if (otherSpeed <= speed) continue
if (!otherWire.peerPieces.get(index)) continue
if ((missing -= otherSpeed * secs) > 0) continue
tries
return false
}
return true
}
}
function shufflePriority (i) {
var last = i
for (var j = i; j < self._selections.length && self._selections[j].priority; j++) {
last = j
}
var tmp = self._selections[i]
self._selections[i] = self._selections[last]
self._selections[last] = tmp
}
function trySelectWire (hotswap) {
if (wire.requests.length >= <API key>) return true
var rank = speedRanker()
for (var i = 0; i < self._selections.length; i++) {
var next = self._selections[i]
var piece
if (self.strategy === 'rarest') {
var start = next.from + next.offset
var end = next.to
var len = end - start + 1
var tried = {}
var tries = 0
var filter = genPieceFilterFunc(start, end, tried, rank)
while (tries < len) {
piece = self.rarityMap.getRarestPiece(filter)
if (piece < 0) break
// request all non-reserved blocks in this piece
while (self._request(wire, piece, self._critical[piece] || hotswap)) {}
if (wire.requests.length < <API key>) {
tried[piece] = true
tries++
continue
}
if (next.priority) shufflePriority(i)
return true
}
} else {
for (piece = next.from + next.offset; piece <= next.to; piece++) {
if (!wire.peerPieces.get(piece) || !rank(piece)) continue
// request all non-reserved blocks in piece
while (self._request(wire, piece, self._critical[piece] || hotswap)) {}
if (wire.requests.length < <API key>) continue
if (next.priority) shufflePriority(i)
return true
}
}
}
return false
}
}
/**
* Called periodically to update the choked status of all peers, handling optimistic
* unchoking as described in BEP3.
*/
Torrent.prototype._rechoke = function () {
var self = this
if (self.<API key> > 0) self.<API key> -= 1
else self.<API key> = null
var peers = []
self.swarm.wires.forEach(function (wire) {
if (!wire.isSeeder && wire !== self.<API key>) {
peers.push({
wire: wire,
downloadSpeed: wire.downloadSpeed(),
uploadSpeed: wire.uploadSpeed(),
salt: Math.random(),
isChoked: true
})
}
})
peers.sort(rechokeSort)
var unchokeInterested = 0
var i = 0
for (; i < peers.length && unchokeInterested < self._rechokeNumSlots; ++i) {
peers[i].isChoked = false
if (peers[i].wire.peerInterested) unchokeInterested += 1
}
// Optimistically unchoke a peer
if (!self.<API key> && i < peers.length && self._rechokeNumSlots) {
var candidates = peers.slice(i).filter(function (peer) { return peer.wire.peerInterested })
var optimistic = candidates[randomInt(candidates.length)]
if (optimistic) {
optimistic.isChoked = false
self.<API key> = optimistic.wire
self.<API key> = <API key>
}
}
// Unchoke best peers
peers.forEach(function (peer) {
if (peer.wire.amChoking !== peer.isChoked) {
if (peer.isChoked) peer.wire.choke()
else peer.wire.unchoke()
}
})
function rechokeSort (peerA, peerB) {
// Prefer higher download speed
if (peerA.downloadSpeed !== peerB.downloadSpeed) {
return peerB.downloadSpeed - peerA.downloadSpeed
}
// Prefer higher upload speed
if (peerA.uploadSpeed !== peerB.uploadSpeed) {
return peerB.uploadSpeed - peerA.uploadSpeed
}
// Prefer unchoked
if (peerA.wire.amChoking !== peerB.wire.amChoking) {
return peerA.wire.amChoking ? 1 : -1
}
// Random order
return peerA.salt - peerB.salt
}
}
/**
* Attempts to cancel a slow block request from another wire such that the
* given wire may effectively swap out the request for one of its own.
*/
Torrent.prototype._hotswap = function (wire, index) {
var self = this
var speed = wire.downloadSpeed()
if (speed < Piece.BLOCK_LENGTH) return false
if (!self._reservations[index]) return false
var r = self._reservations[index]
if (!r) {
return false
}
var minSpeed = Infinity
var minWire
var i
for (i = 0; i < r.length; i++) {
var otherWire = r[i]
if (!otherWire || otherWire === wire) continue
var otherSpeed = otherWire.downloadSpeed()
if (otherSpeed >= SPEED_THRESHOLD) continue
if (2 * otherSpeed > speed || otherSpeed > minSpeed) continue
minWire = otherWire
minSpeed = otherSpeed
}
if (!minWire) return false
for (i = 0; i < r.length; i++) {
if (r[i] === minWire) r[i] = null
}
for (i = 0; i < minWire.requests.length; i++) {
var req = minWire.requests[i]
if (req.piece !== index) continue
self.pieces[index].cancel((req.offset / Piece.BLOCK_SIZE) | 0)
}
self.emit('hotswap', minWire, wire, index)
return true
}
/**
* Attempts to request a block from the given wire.
*/
Torrent.prototype._request = function (wire, index, hotswap) {
var self = this
var numRequests = wire.requests.length
if (self.bitfield.get(index)) return false
var <API key> = getPipelineLength(wire, <API key>)
if (numRequests >= <API key>) return false
var piece = self.pieces[index]
var reservation = piece.reserve()
if (reservation === -1 && hotswap && self._hotswap(wire, index)) {
reservation = piece.reserve()
}
if (reservation === -1) return false
var r = self._reservations[index]
if (!r) r = self._reservations[index] = []
var i = r.indexOf(null)
if (i === -1) i = r.length
r[i] = wire
var chunkOffset = piece.chunkOffset(reservation)
var chunkLength = piece.chunkLength(reservation)
wire.request(index, chunkOffset, chunkLength, function onChunk (err, chunk) {
// TODO: what is this for?
if (!self.ready) return self.once('ready', function () { onChunk(err, chunk) })
if (r[i] === wire) r[i] = null
if (piece !== self.pieces[index]) return onUpdateTick()
if (err) {
debug(
'error getting piece %s (offset: %s length: %s) from %s: %s',
index, chunkOffset, chunkLength, wire.remoteAddress + ':' + wire.remotePort,
err.message
)
piece.cancel(reservation)
onUpdateTick()
return
}
debug(
'got piece %s (offset: %s length: %s) from %s',
index, chunkOffset, chunkLength, wire.remoteAddress + ':' + wire.remotePort
)
if (!piece.set(reservation, chunk, wire)) return onUpdateTick()
var buf = piece.flush()
// TODO: might need to set self.pieces[index] = null here since sha1 is async
sha1(buf, function (hash) {
if (hash === self._hashes[index]) {
if (!self.pieces[index]) return
debug('piece verified %s', index)
self.pieces[index] = null
self._reservations[index] = null
self.bitfield.set(index, true)
self.store.put(index, buf)
self.swarm.wires.forEach(function (wire) {
wire.have(index)
})
self._checkDone()
} else {
self.pieces[index] = new Piece(piece.length)
self.emit('warning', new Error('Piece ' + index + ' failed verification'))
}
onUpdateTick()
})
})
function onUpdateTick () {
process.nextTick(function () { self._update() })
}
return true
}
Torrent.prototype._checkDone = function () {
var self = this
if (self.destroyed) return
// are any new files done?
self.files.forEach(function (file) {
if (file.done) return
for (var i = file._startPiece; i <= file._endPiece; ++i) {
if (!self.bitfield.get(i)) return
}
file.done = true
file.emit('done')
debug('file done: ' + file.name)
})
// is the torrent done?
if (self.files.every(function (file) { return file.done })) {
self.done = true
self.emit('done')
debug('torrent done: ' + self.infoHash)
if (self.discovery.tracker) self.discovery.tracker.complete()
}
self._gcSelections()
}
Torrent.prototype.load = function (streams, cb) {
var self = this
if (!Array.isArray(streams)) streams = [ streams ]
if (!cb) cb = noop
var readable = new MultiStream(streams)
var writable = new <API key>(self.store, self.pieceLength)
pump(readable, writable, function (err) {
if (err) return cb(err)
self.pieces.forEach(function (piece, index) {
self.pieces[index] = null
self._reservations[index] = null
self.bitfield.set(index, true)
})
self._checkDone()
cb(null)
})
}
Torrent.prototype.createServer = function (opts) {
var self = this
if (typeof Server !== 'function') return // browser exclude
var server = new Server(self, opts)
self._servers.push(server)
return server
}
Torrent.prototype._onError = function (err) {
var self = this
debug('torrent error: %s', err.message || err)
self.emit('error', err)
self.destroy()
}
function getPipelineLength (wire, duration) {
return Math.ceil(2 + duration * wire.downloadSpeed() / Piece.BLOCK_LENGTH)
}
/**
* Returns a random integer in [0,high)
*/
function randomInt (high) {
return Math.random() * high | 0
}
function noop () {} |
version: v0.30.0
category: Development
title: 'Build Instructions Linux Ko'
source_url: 'https://github.com/atom/electron/blob/master/docs/development/<API key>.md'
# (Linux)
* Python 2.7.x. CentOS Python 2.6.x . `python -V` .
* Node.js v0.12.x. Node . [Node.js](http://nodejs.org) .
Node . [NodeSource](https://nodesource.com/blog/<API key>) .
[Node.js ](https://github.com/joyent/node/wiki/Installation) .
* Clang 3.4
* GTK+ libnotify
Ubuntu :
bash
$ sudo apt-get install build-essential clang libdbus-1-dev libgtk2.0-dev \
libnotify-dev <API key> libgconf2-dev \
libasound2-dev libcap-dev libcups2-dev libxtst-dev \
libxss1 gcc-multilib g++-multilib
yum . .
.
Electron 25GB .
bash
$ git clone https://github.com/atom/electron.git
.
Python 2.7.x .
.
Electron `ninja` `Makefile` .
bash
$ cd electron
$ ./script/bootstrap.py -v
`Release` `Debug` :
bash
$ ./script/build.py
`out/R` Electron . 1.3GB .
Release .
`create-dist.py` :
bash
$ ./script/create-dist.py
`dist` .
create-dist.py 1.3GB out/R .
`Debug` :
bash
$ ./script/build.py -c D
`out/D` `electron` .
:
bash
$ ./script/clean.py
.
bash
$ ./script/test.py |
<p>homepage</p> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.