answer stringlengths 15 1.25M |
|---|
import React, { Component } from 'react';
import VolunteerRow from '../VolunteerRow/VolunteerRow.js';
// css requires
require('./TableComponent.css');
export default class TableComponent extends Component {
meetsFilters(volunteer){
return this.meetsTextFilter(volunteer) && this.meetsOptionsFilters(volunteer);
}
meetsTextFilter(volunteer){
let txt= this.props.filters.filterText.toLowerCase();
return !txt ||
volunteer.first_name.toLowerCase().indexOf(txt)!==-1 ||
volunteer.last_name.toLowerCase().indexOf(txt)!==-1 ||
volunteer.email.toLowerCase().indexOf(txt)!==-1;
}
meetsOptionsFilters(volunteer){
return this.meetsCriterion(this.props.filters.department,this.departmentName(volunteer.department_id)) &&
this.meetsCriterion(this.props.filters.role,this.roleName(volunteer.role_id)) &&
this.meetsCriterion(this.props.filters.gotTicket,volunteer.got_ticket) &&
this.meetsCriterion(this.props.filters.isProduction,volunteer.is_production);
}
meetsCriterion(critetion,value){
return critetion===null || critetion===value;
}
departmentName = (department_id) => {
if (!this.props.departments) {
return ''
}
for (var i = 0; i < this.props.departments.length; i++) {
var departmentObj = this.props.departments[i]
if (departmentObj.id == department_id) {
return departmentObj.name;
}
}
return 'Unknown'
}
roleName = (role_id) => {
console.log(this.props.roles)
if (!this.props.roles) {
return ''
}
for (var i = 0; i < this.props.roles.length; i++) {
var roleObj = this.props.roles[i]
if (roleObj.id == role_id) {
return roleObj.name;
}
}
return 'Unknown'
}
render () {
var rows = this.props.volunteers.filter( (volunteer)=> {return this.meetsFilters(volunteer);}).
map( (volunteer) =>{ return (
<VolunteerRow
volunteer={volunteer}
roles={this.props.roles}
departments={this.props.departments}
key={''+volunteer.department_id+'_'+volunteer.profile_id}
onRowDelete= {this.props.onRowDelete}
onRowChange= {this.props.onRowChange}/>)});
return (
<div className="table-component col-xs-12">
<table className="table table-striped table-hover">
<thead>
<tr>
<th>Profile ID</th>
<th>Email</th>
<th>First Name</th>
<th>Last Name</th>
<th>Department</th>
<th>Role</th>
<th>Production</th>
<th>Phone</th>
<th>Got ticket</th>
<th>Action</th>
</tr>
</thead>
<tbody>
{rows}
</tbody>
</table>
</div>
);
}
} |
package jedi.db.exceptions;
public class <API key> extends RuntimeException {
private static final long serialVersionUID = 271849121410861140L;
public <API key>() {
super();
}
public <API key>(String message) {
super(message);
}
public <API key>(Throwable cause) {
super(cause);
}
public <API key>(String message, Throwable cause) {
super(message, cause);
}
} |
using System;
using System.Collections.Generic;
using Android.Content;
using Android.Views;
using AndroidX.Fragment.App;
using AndroidX.RecyclerView.Widget;
//using DialogFragment = Android.Support.V4.App.DialogFragment;
namespace LottieSamples.Droid
{
public class <API key> : DialogFragment
{
private RecyclerView recyclerView;
public override Android.Views.View OnCreateView(LayoutInflater inflater, ViewGroup container, Android.OS.Bundle savedInstanceState)
{
var view = inflater.Inflate(Resource.Layout.<API key>, container, false);
this.Dialog.SetTitle("Choose an Asset");
this.recyclerView = view.FindViewById<RecyclerView>(Resource.Id.recycler_view);
return view;
}
public override void OnStart()
{
base.OnStart();
this.Dialog.Window.SetLayout(ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.MatchParent);
var adapter = new AssetsAdapter(this.Activity);
adapter.ItemClick += Adapter_ItemClick;
this.recyclerView.SetAdapter(adapter);
}
private void Adapter_ItemClick(object sender, string fileName)
{
this.TargetFragment.OnActivityResult(TargetRequestCode,
(int)Android.App.Result.Ok,
new Intent().PutExtra(AnimationFragment.ExtraAnimationName, fileName));
Dismiss();
}
private class AssetsAdapter : RecyclerView.Adapter
{
public event EventHandler<string> ItemClick;
private IList<string> files = new List<string>();
public AssetsAdapter(Context context)
{
files = AssetUtils.GetJsonAssets(context, string.Empty);
}
public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
{
var view = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.view_holder_file, parent, false);
return new StringViewHolder(view, OnClick);
}
public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
{
var vh = holder as StringViewHolder;
var fileName = files[position];
vh.Bind(fileName, fileName);
}
public override int ItemCount
{
get
{
return files.Count;
}
}
private void OnClick(string tag)
{
if (ItemClick != null)
ItemClick(this, tag);
}
}
}
} |
package commons.util;
import java.lang.reflect.*;
import java.util.*;
public class <API key> {
static Set<String> methodSet(Class<?> type) {
Set<String> result = new TreeSet<String>();
for (Method m : type.getMethods())
result.add(m.getName());
return result;
}
static void interfaces(Class<?> type) {
System.out.print("Interfaces in " + type.getSimpleName() + ": ");
List<String> result = new ArrayList<String>();
for (Class<?> c : type.getInterfaces())
result.add(c.getSimpleName());
System.out.println(result);
}
static Set<String> object = methodSet(Object.class);
static {
object.add("clone");
}
static void difference(Class<?> superset, Class<?> subset) {
System.out.print(superset.getSimpleName() + " extends " + subset.getSimpleName() + ", adds: ");
Set<String> comp = Sets.difference(methodSet(superset), methodSet(subset));
comp.removeAll(object); // Don't show 'Object' methods
System.out.println(comp);
interfaces(superset);
}
public static void main(String[] args) {
System.out.println("Collection: " + methodSet(Collection.class));
interfaces(Collection.class);
difference(Set.class, Collection.class);
difference(HashSet.class, Set.class);
difference(LinkedHashSet.class, HashSet.class);
difference(TreeSet.class, Set.class);
difference(List.class, Collection.class);
difference(ArrayList.class, List.class);
difference(LinkedList.class, List.class);
difference(Queue.class, Collection.class);
difference(PriorityQueue.class, Queue.class);
System.out.println("Map: " + methodSet(Map.class));
difference(HashMap.class, Map.class);
difference(LinkedHashMap.class, HashMap.class);
difference(SortedMap.class, Map.class);
difference(TreeMap.class, Map.class);
}
} |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_76-release) on Fri Dec 23 12:26:59 KST 2016 -->
<title><API key></title>
<meta name="date" content="2016-12-23">
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="<API key>";
}
}
catch(err) {
}
var methods = {"i0":10,"i1":10,"i2":10,"i3":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="topNav"><a name="navbar.top">
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/<API key>.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../../org/uclab/mm/sl/uiux/analytics/dispatcher/Dispatcher.html" title="class in org.uclab.mm.sl.uiux.analytics.dispatcher"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../../../../../org/uclab/mm/sl/uiux/analytics/dispatcher/<API key>.Page.html" title="class in org.uclab.mm.sl.uiux.analytics.dispatcher"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/uclab/mm/sl/uiux/analytics/dispatcher/<API key>.html" target="_top">Frames</a></li>
<li><a href="<API key>.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="<API key>">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!
allClassesLink = document.getElementById("<API key>");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li><a href="#nested.class.summary">Nested</a> | </li>
<li>Field | </li>
<li><a href="#constructor.summary">Constr</a> | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor.detail">Constr</a> | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
</a></div>
<div class="header">
<div class="subTitle">org.uclab.mm.sl.uiux.analytics.dispatcher</div>
<h2 title="Class <API key>" class="title">Class <API key></h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.uclab.mm.sl.uiux.analytics.dispatcher.<API key></li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="typeNameLabel"><API key></span>
extends java.lang.Object</pre>
<div class="block">The type Tracker bulk url wrapper.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>class </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/uclab/mm/sl/uiux/analytics/dispatcher/<API key>.Page.html" title="class in org.uclab.mm.sl.uiux.analytics.dispatcher"><API key>.Page</a></span></code>
<div class="block">The type Page.</div>
</td>
</tr>
</table>
</li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../../org/uclab/mm/sl/uiux/analytics/dispatcher/<API key>.html#<API key>.net.URL-java.util.List-java.lang.String-"><API key></a></span>(java.net.URL apiUrl,
java.util.List<java.lang.String> events,
java.lang.String authToken)</code>
<div class="block">Instantiates a new Tracker bulk url wrapper.</div>
</td>
</tr>
</table>
</li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="method.summary">
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>java.net.URL</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/uclab/mm/sl/uiux/analytics/dispatcher/<API key>.html#getApiUrl--">getApiUrl</a></span>()</code>
<div class="block">Gets api url.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>org.json.JSONObject</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/uclab/mm/sl/uiux/analytics/dispatcher/<API key>.html#getEvents-org.uclab.mm.sl.uiux.analytics.dispatcher.<API key>.Page-">getEvents</a></span>(<a href="../../../../../../../org/uclab/mm/sl/uiux/analytics/dispatcher/<API key>.Page.html" title="class in org.uclab.mm.sl.uiux.analytics.dispatcher"><API key>.Page</a> page)</code>
<div class="block">{
"requests": ["?idsite=1&url=http://example.org&action_name=Test bulk log Pageview&rec=1",
"?idsite=1&url=http://example.net/test.htm&action_name=Another bul k page view&rec=1"],
"token_<API key>
}</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>java.net.URL</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/uclab/mm/sl/uiux/analytics/dispatcher/<API key>.html#getEventUrl-org.uclab.mm.sl.uiux.analytics.dispatcher.<API key>.Page-">getEventUrl</a></span>(<a href="../../../../../../../org/uclab/mm/sl/uiux/analytics/dispatcher/<API key>.Page.html" title="class in org.uclab.mm.sl.uiux.analytics.dispatcher"><API key>.Page</a> page)</code>
<div class="block">Gets event url.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>java.util.Iterator<<a href="../../../../../../../org/uclab/mm/sl/uiux/analytics/dispatcher/<API key>.Page.html" title="class in org.uclab.mm.sl.uiux.analytics.dispatcher"><API key>.Page</a>></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/uclab/mm/sl/uiux/analytics/dispatcher/<API key>.html#iterator--">iterator</a></span>()</code>
<div class="block">page iterator</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
</a>
<h3>Constructor Detail</h3>
<a name="<API key>.net.URL-java.util.List-java.lang.String-">
</a>
<ul class="blockListLast">
<li class="blockList">
<h4><API key></h4>
<pre>public <API key>(@NonNull
java.net.URL apiUrl,
@NonNull
java.util.List<java.lang.String> events,
@Nullable
java.lang.String authToken)</pre>
<div class="block">Instantiates a new Tracker bulk url wrapper.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>apiUrl</code> - the api url</dd>
<dd><code>events</code> - the events</dd>
<dd><code>authToken</code> - the auth token</dd>
</dl>
</li>
</ul>
</li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="method.detail">
</a>
<h3>Method Detail</h3>
<a name="iterator
</a>
<ul class="blockList">
<li class="blockList">
<h4>iterator</h4>
<pre>public java.util.Iterator<<a href="../../../../../../../org/uclab/mm/sl/uiux/analytics/dispatcher/<API key>.Page.html" title="class in org.uclab.mm.sl.uiux.analytics.dispatcher"><API key>.Page</a>> iterator()</pre>
<div class="block">page iterator</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>iterator iterator</dd>
</dl>
</li>
</ul>
<a name="getApiUrl
</a>
<ul class="blockList">
<li class="blockList">
<h4>getApiUrl</h4>
<pre>@NonNull
public java.net.URL getApiUrl()</pre>
<div class="block">Gets api url.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the api url</dd>
</dl>
</li>
</ul>
<a name="getEvents-org.uclab.mm.sl.uiux.analytics.dispatcher.<API key>.Page-">
</a>
<ul class="blockList">
<li class="blockList">
<h4>getEvents</h4>
<pre>@Nullable
public org.json.JSONObject getEvents(<a href="../../../../../../../org/uclab/mm/sl/uiux/analytics/dispatcher/<API key>.Page.html" title="class in org.uclab.mm.sl.uiux.analytics.dispatcher"><API key>.Page</a> page)</pre>
<div class="block">{
"requests": ["?idsite=1&url=http://example.org&action_name=Test bulk log Pageview&rec=1",
"?idsite=1&url=http://example.net/test.htm&action_name=Another bul k page view&rec=1"],
"token_<API key>
}</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>page</code> - the page</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>json object</dd>
</dl>
</li>
</ul>
<a name="getEventUrl-org.uclab.mm.sl.uiux.analytics.dispatcher.<API key>.Page-">
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getEventUrl</h4>
<pre>@Nullable
public java.net.URL getEventUrl(<a href="../../../../../../../org/uclab/mm/sl/uiux/analytics/dispatcher/<API key>.Page.html" title="class in org.uclab.mm.sl.uiux.analytics.dispatcher"><API key>.Page</a> page)</pre>
<div class="block">Gets event url.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>page</code> - Page object</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>tracked url. For example "http:
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="bottomNav"><a name="navbar.bottom">
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/<API key>.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../../org/uclab/mm/sl/uiux/analytics/dispatcher/Dispatcher.html" title="class in org.uclab.mm.sl.uiux.analytics.dispatcher"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../../../../../org/uclab/mm/sl/uiux/analytics/dispatcher/<API key>.Page.html" title="class in org.uclab.mm.sl.uiux.analytics.dispatcher"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/uclab/mm/sl/uiux/analytics/dispatcher/<API key>.html" target="_top">Frames</a></li>
<li><a href="<API key>.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="<API key>">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!
allClassesLink = document.getElementById("<API key>");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li><a href="#nested.class.summary">Nested</a> | </li>
<li>Field | </li>
<li><a href="#constructor.summary">Constr</a> | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor.detail">Constr</a> | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
</a></div>
</body>
</html> |
#include "../program_options.hpp"
#include "../common.hpp"
using namespace std;
using namespace crab::analyzer;
using namespace crab::cfg;
using namespace crab::cfg_impl;
using namespace crab::domain_impl;
int main (int argc, char** argv )
{
SET_TEST_OPTIONS(argc,argv)
variable_factory_t vfac;
z_term_domain_t dom_left = z_term_domain_t::top ();
z_term_domain_t dom_right = z_term_domain_t::top ();
varname_t x = vfac["x"];
varname_t y = vfac["y"];
dom_left.assign(y, z_number(8));
dom_left.apply(OP_MULTIPLICATION, x, y, z_number(5));
dom_right.apply(OP_MULTIPLICATION, x, y, z_number(5));
z_term_domain_t l_join_r = dom_left | dom_right;
crab::outs() << dom_left << " | " << dom_right << " = " << l_join_r << "\n";
// crab::outs() << dom_left;
return 0;
} |
# Conway's Game of Life
This is an example Scala implementation of [Conway's Game of Life](http://en.wikipedia.org/wiki/Conway's_Game_of_Life). It was the subject of the first Functional Programming Dojo.
The final implementation is the file GameOfLife.scala and is a standalone Scala script that can be run from the command line:
> scala GameOfLife.scala
The game reads the file life.txt and uses this to create the initial universe. It then opens a window and draws multiple repetitions of the universe until it becomes stable. This version supports wrapping of the game world. Press Crtl+C to exit. The format of the life.txt file is:
! Comment lines start with an exclamation mark
! All other lines represent the initial universe
! All lines of the universe must be the same length
! A period represents a non-alive point and a lower-case o represents life
.......
...o...
....o..
..ooo..
.......
.......
.......
.oooo.....
o......
..ooo.....
Also included in the directory is a file called InitialVersion.scala. This is the first draft of the solution that was then refactored into the final game. This is useful as it shows some of the evolution in the thinking of the logic. In particular you can see how the solution evolved from holding a full gird of Boolean values to just holding the positions that were alive. You can also see all of the unecessary for comprehensions and creation of thousands of Position tuples that was eliminated in the improved design. The initial version also does not include seeding from the text file (you have to manually build the initial universe).
Additionally there is file called GameOfCake.scala that refactors the same solution using some advanced concepts of the cake pattern. Probably overkill for such a simple solution, but clearly demonstrates how to separate out generic concepts from a concrete implementation fo the game of life in 2 dimensions. A challenge for the reads is to implement a three dimensional version. |
package com.unsis.calificaciones.service;
import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Service;
import com.unsis.calificaciones.model.Materia;
import com.unsis.calificaciones.repository.MateriaRepository;
@Service
public class MateriaService {
private final MateriaRepository materiaRepository;
public MateriaService(MateriaRepository materiaRepository) {
this.materiaRepository = materiaRepository;
}
public void save(Materia materia) {
materiaRepository.save(materia);
}
public void delete(Integer id) {
materiaRepository.delete(id);
}
public Materia findOne(Integer id) {
Materia materia = materiaRepository.findOne(id);
return materia;
}
public List<Materia> findAll() {
List<Materia> materias = new ArrayList<>();
for (Materia materia : materiaRepository.findAll()) {
materias.add(materia);
}
return materias;
}
public List<Materia> findBySemestre(int semestre) {
List<Materia> materias = new ArrayList<>();
for (Materia materia : materiaRepository.findBySemestre(semestre)) {
materias.add(materia);
}
return materias;
}
} |
# AUTOGENERATED FILE
FROM balenalib/artik533s-debian:jessie-build
# remove several traces of debian python
RUN apt-get purge -y python.*
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8
# key 63C7CC90: public key "Simon McVittie <smcv@pseudorandom.co.uk>" imported
# key 3372DCFA: public key "Donald Stufft (dstufft) <donald@stufft.io>" imported
RUN gpg --batch --keyserver keyring.debian.org --recv-keys 4DE8FF2A63C7CC90 \
&& gpg --batch --keyserver keyserver.ubuntu.com --recv-key 6E3CBCE93372DCFA \
&& gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 0x52a43a1e4b77b059
ENV PYTHON_VERSION 2.7.18
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
ENV PYTHON_PIP_VERSION 21.0.1
ENV SETUPTOOLS_VERSION 56.0.0
RUN set -x \
&& curl -SLO "http://resin-packages.s3.amazonaws.com/python/v$PYTHON_VERSION/Python-$PYTHON_VERSION.<API key>.0.tar.gz" \
&& echo "<SHA256-like> Python-$PYTHON_VERSION.<API key>.0.tar.gz" | sha256sum -c - \
&& tar -xzf "Python-$PYTHON_VERSION.<API key>.0.tar.gz" --strip-components=1 \
&& rm -rf "Python-$PYTHON_VERSION.<API key>.0.tar.gz" \
&& ldconfig \
&& if [ ! -e /usr/local/bin/pip ]; then : \
&& curl -SLO "https://raw.githubusercontent.com/pypa/get-pip/<SHA1-like>/get-pip.py" \
&& echo "<SHA256-like> get-pip.py" | sha256sum -c - \
&& python get-pip.py \
&& rm get-pip.py \
; fi \
&& pip install --no-cache-dir --upgrade --force-reinstall pip=="$PYTHON_PIP_VERSION" setuptools=="$SETUPTOOLS_VERSION" \
&& find /usr/local \
\( -type d -a -name test -o -name tests \) \
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
-exec rm -rf '{}' + \
&& cd / \
&& rm -rf /usr/src/python ~/.cache
# install "virtualenv", since the vast majority of users of this image will want it
RUN pip install --no-cache-dir virtualenv
ENV PYTHON_DBUS_VERSION 1.2.8
# install dbus-python dependencies
RUN apt-get update && apt-get install -y --<API key> \
libdbus-1-dev \
libdbus-glib-1-dev \ |
from django.db import models
class PageContent(models.Model):
id = models.AutoField(primary_key=True)
class Meta:
verbose_name='Page Content'
verbose_name_plural='Page Content'
def __unicode__(self):
return u'PageContent' |
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="../css/audio_samples.css">
<title>CHiVE: Examples of side-by-side comparison</title>
</head>
<body>
<center>
<div class="main_content">
<h1>CHiVE: Examples of side-by-side comparison</h1>
<div class="comment">
<a href="../index.html"><< Back</a>
<p>
These audio samples go with <i>CHiVE: Varying Prosody in Speech Synthesis with a Linguistically Driven Dynamic Hierarchical Conditional Variational Network</i>, Wan, V., Chan, C.-a., Kenter, T., Vit, J., and Clark, R. A., Proceedings of the Thirty-sixth International Conference on Machine Learning (ICML 2019), 2019, side-by-side comparison between CHiVE and a baseline non-hierarchical model (Section 4.1, Table 1 in the paper).
</div>
<h2>Examples where CHiVE was preferred</h2>
<div class="comment">
5 examples where audio produced based on the sentence prosody embedding produced by the hierarchical CHiVE model was preferred over the audio produced by the non-hierarchical baseline.
</div>
<table>
<tr>
<th class="header_2">Baseline</th>
<th class="header_1">CHiVE</th>
</tr>
<tr>
<td><audio controls><source src="./side_by_side_audio/baseline/<API key>.wav" type="audio/wav"></audio> </td><td><audio controls><source src="./side_by_side_audio/chive/<API key>.wav" type="audio/wav"></audio> </td>
</tr>
<tr>
<td><audio controls><source src="./side_by_side_audio/baseline/<API key>.wav" type="audio/wav"></audio> </td><td><audio controls><source src="./side_by_side_audio/chive/<API key>.wav" type="audio/wav"></audio> </td>
</tr>
<tr>
<td><audio controls><source src="./side_by_side_audio/baseline/<API key>.wav" type="audio/wav"></audio> </td><td><audio controls><source src="./side_by_side_audio/chive/<API key>.wav" type="audio/wav"></audio> </td>
</tr>
<tr>
<td><audio controls><source src="./side_by_side_audio/baseline/<API key>.wav" type="audio/wav"></audio> </td><td><audio controls><source src="./side_by_side_audio/chive/<API key>.wav" type="audio/wav"></audio> </td>
</tr>
<tr>
<td><audio controls><source src="./side_by_side_audio/baseline/<API key>.wav" type="audio/wav"></audio> </td><td><audio controls><source src="./side_by_side_audio/chive/<API key>.wav" type="audio/wav"></audio> </td>
</tr>
</table>
<h2>Examples where the baseline was preferred</h2>
<div class="comment">
5 examples where audio produced based on the sentence prosody embedding produced by the non-hierarchical baseline was preferred over the audio produced by hierarchical CHiVE model.
</div>
<table>
<tr>
<th class="header_2">Baseline</th>
<th class="header_1">CHiVE</th>
</tr>
<tr>
<td><audio controls><source src="./side_by_side_audio/baseline/<API key>.wav" type="audio/wav"></audio> </td><td><audio controls><source src="./side_by_side_audio/chive/<API key>.wav" type="audio/wav"></audio> </td>
</tr>
<tr>
<td><audio controls><source src="./side_by_side_audio/baseline/<API key>.wav" type="audio/wav"></audio> </td><td><audio controls><source src="./side_by_side_audio/chive/<API key>.wav" type="audio/wav"></audio> </td>
</tr>
<tr>
<td><audio controls><source src="./side_by_side_audio/baseline/<API key>.wav" type="audio/wav"></audio> </td><td><audio controls><source src="./side_by_side_audio/chive/<API key>.wav" type="audio/wav"></audio> </td>
</tr>
<tr>
<td><audio controls><source src="./side_by_side_audio/baseline/<API key>.wav" type="audio/wav"></audio> </td><td><audio controls><source src="./side_by_side_audio/chive/<API key>.wav" type="audio/wav"></audio> </td>
</tr>
<tr>
<td><audio controls><source src="./side_by_side_audio/baseline/<API key>.wav" type="audio/wav"></audio> </td><td><audio controls><source src="./side_by_side_audio/chive/<API key>.wav" type="audio/wav"></audio> </td>
</tr>
</table>
</div>
</center>
</body>
</html> |
import org.apache.spark.SparkConf;
import org.apache.spark.SparkContext;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.function.Function;
import org.apache.spark.mllib.classification.SVMModel;
import org.apache.spark.mllib.classification.SVMWithSGD;
import org.apache.spark.mllib.evaluation.<API key>;
import org.apache.spark.mllib.regression.LabeledPoint;
import org.apache.spark.mllib.util.MLUtils;
import scala.Tuple2;
public class SVMClassifier {
public static void main(String[] args) {
SparkConf conf = new SparkConf().setAppName("SVM Classifier Example").setMaster("local")
.set("spark.executor.memory", "1g")
.set("spark.serializer", "org.apache.spark.serializer.KryoSerializer");
SparkContext sc = new SparkContext(conf);
String path = "data/mllib/sample_libsvm_data.txt";
JavaRDD<LabeledPoint> data = MLUtils.loadLibSVMFile(sc, path).toJavaRDD();
// Split initial RDD into two... [60% training data, 40% testing data].
JavaRDD<LabeledPoint> training = data.sample(false, 0.6, 11L);
training.cache();
JavaRDD<LabeledPoint> test = data.subtract(training);
// Run training algorithm to build the model.
int numIterations = 100;
final SVMModel model = SVMWithSGD.train(training.rdd(), numIterations);
// Clear the default threshold.
model.clearThreshold();
// Compute raw scores on the test set.
JavaRDD<Tuple2<Object, Object>> scoreAndLabels = test.map(
new Function<LabeledPoint, Tuple2<Object, Object>>() {
public Tuple2<Object, Object> call(LabeledPoint p) {
Double score = model.predict(p.features());
return new Tuple2<Object, Object>(score, p.label());
}
}
);
// Get evaluation metrics.
<API key> metrics =
new <API key>(JavaRDD.toRDD(scoreAndLabels));
double auROC = metrics.areaUnderROC();
System.out.println("Area under ROC = " + auROC);
}
} |
package grafeas
// Basis describes the base image portion (Note) of the DockerImage relationship. Linked occurrences are derived from this or an equivalent image via: FROM <Basis.resource_url> Or an equivalent reference, e.g. a tag of the resource_url.
type DockerImageBasis struct {
// The resource_url for the resource representing the basis of associated occurrence images.
ResourceUrl string `json:"resource_url,omitempty"`
Fingerprint *<API key> `json:"fingerprint,omitempty"`
} |
#include<stdio.h>
#include<string.h>
#define MAX_LONG 200
#define CADENA_PRUEBA "Hola a todos"
int longitud_string(char * s){
int i=0;
while(*(s++) != '\0')
i++;
return i;
}
int main(void){
char string1[] = CADENA_PRUEBA;
char string2[MAX_LONG];
printf("cadena: %s\n", string1);
printf("longitud cadena: %d\n", longitud_string(string1));
strcpy(string2, "leer libros y revistas"); //inicializacion de string2
printf("cadena2: %s\n", string2);
printf("longitud cadena: %d\n", longitud_string(string2));
return 0;
} |
package com.google.mbdebian.springboot.playground.microservices.tutorial;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.<API key>;
import org.springframework.data.rest.core.annotation.RestResource;
import java.util.List;
@<API key>(path="book", <API key>="book")
public interface BookRepository extends JpaRepository<Book, Long> {
@RestResource(rel="title", path="title")
public List<Book> findByTitle(@Param("title") String title);
} |
package com.s24.redjob.worker.events;
/**
* Queue event.
*/
public interface QueueEvent {
/**
* Queue.
*/
String getQueue();
} |
This folder contains launch files for running simulations and interfacing with real robots.
- common : launch files that are used by other launch files.
- real : launch files that are used for interfacing with real robots.
- sims : launch files for running simulated robots in gazebo. |
body{
padding-top:50px;
}
.principal{
padding:40px 15px;
text-align: center;
} |
package app.monitor.kafka;
import app.monitor.alert.AlertService;
import core.framework.log.Severity;
import core.framework.log.message.StatMessage;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
import java.time.Instant;
import static org.mockito.ArgumentMatchers.argThat;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.<API key>;
/**
* @author neo
*/
@ExtendWith(MockitoExtension.class)
class <API key> {
private StatMessageHandler handler;
@Mock
private AlertService alertService;
@BeforeEach
void <API key>() {
handler = new StatMessageHandler();
handler.alertService = alertService;
}
@Test
void handleOKAction() {
var message = new StatMessage();
message.date = Instant.now();
message.result = "OK";
message.errorCode = null;
handler.handle(null, message);
<API key>(alertService);
}
@Test
void handle() {
var message = new StatMessage();
message.date = Instant.now();
message.result = "WARN";
message.errorCode = "HIGH_CPU_USAGE";
handler.handle(null, message);
verify(alertService).process(argThat(alert -> alert.severity == Severity.WARN));
}
} |
# rkt Commands
Work in progress. Please contribute if you see an area that needs more detail.
## Downloading Images (ACIs)
[aci-images]: https://github.com/appc/spec/blob/master/spec/aci.md#app-container-image
[appc-discovery]: https://github.com/appc/spec/blob/master/spec/discovery.md#<API key>
rkt runs applications packaged as [Application Container Images (ACI)][aci-images] an open-source specification. ACIs consist of the root filesystem of the application container, a manifest and an optional signature.
ACIs are named with a URL-like structure. This naming scheme allows for a decentralized discovery of ACIs, related signatures and public keys. rkt uses these hints to execute [meta discovery][appc-discovery].
rkt trust
Before executing a remotely fetched ACI, rkt will verify it based on attached signatures generated by the ACI creator.
Before this can happen, rkt needs to know which creators you trust, and therefore are trusted to run images on your machine. The identity of each ACI creator is established with a public key, which is placed in rkt's key store on disk.
When adding a trusted key, a prefix can scope the level of established trust to a subset of images. A few examples:
# rkt trust --prefix=storage.coreos.com
# rkt trust --prefix=coreos.com/etcd
To trust a key for an entire root domain, you must use the `--root` flag.
# rkt trust --root coreos.com
# Trust a Key Using Meta Discovery
The easiest way to trust a key is through meta discovery. rkt will find and download a public key that the creator has published on their website. This process is detailed in the [Application Container specification][appc-discovery]. The TL;DR is rkt will find a meta tag that looks like:
<meta name="<API key>" content="coreos.com/etcd https://coreos.com/dist/pubkeys/aci-pubkeys.gpg">
And use it to download the public key and present it to you for approval:
# rkt trust --prefix=coreos.com/etcd
Prefix: "coreos.com/etcd"
Key: "https://coreos.com/dist/pubkeys/aci-pubkeys.gpg"
GPG key fingerprint is: 8B86 DE38 890D DB72 9186 7B02 5210 BD88 8818 2190
CoreOS ACI Builder <release@coreos.com>
Are you sure you want to trust this key (yes/no)? yes
Trusting "https://coreos.com/dist/pubkeys/aci-pubkeys.gpg" for prefix "coreos.com/etcd".
Added key for prefix "coreos.com/etcd" at "/etc/rkt/trustedkeys/prefix.d/coreos.com/etcd/<SHA1-like>"
If rkt can't find a key using meta discovery, an error will be printed:
# rkt trust --prefix=coreos.com
Error determining key location: --prefix meta discovery error: found no ACI meta tags
# Trust a Key From Specific Location
If you know where a public key is located, you can request it directly from disk or via HTTPS:
Prefix: "coreos.com/etcd"
Key: "https://coreos.com/dist/pubkeys/aci-pubkeys.gpg"
GPG key fingerprint is: 8B86 DE38 890D DB72 9186 7B02 5210 BD88 8818 2190
CoreOS ACI Builder <release@coreos.com>
Are you sure you want to trust this key (yes/no)? yes
Trusting "https://coreos.com/dist/pubkeys/aci-pubkeys.gpg" for prefix "coreos.com/etcd".
Added key for prefix "coreos.com/etcd" at "/etc/rkt/trustedkeys/prefix.d/coreos.com/etcd/<SHA1-like>"
# Pre-Populating Trusted Keys on Disk
Trusted public keys can be pre-populated by placing them in the appropriate location on disk for the desired prefix.
_Depends on https://github.com/coreos/rkt/issues/500_
$ ls -l /etc/rkt/trustedkeys/
[insert example of root key vs prefixed key]
rkt fetch
rkt uses HTTPS to locate and download remote ACIs and their attached signatures. If the ACI exists locally, it won't be re-downloaded.
# Fetch with Meta Discovery
The easiest way to fetch an ACI is through meta discovery. rkt will find and download the ACI and signature from a location that the creator has published on their website. This process is detailed in the [Application Container specification][appc-discovery].
If you have previously trusted the image creator, it will be downloaded and verified:
# rkt fetch coreos.com/etcd:v2.0.0
rkt: searching for app image coreos.com/etcd:v2.0.0
rkt: fetching image from https://github.com/coreos/etcd/releases/download/v2.0.0/etcd-v2.0.0-linux-amd64.aci
Downloading aci: [======================================= ] 3.25 MB/3.7 MB
Downloading signature from https://github.com/coreos/etcd/releases/download/v2.0.0/etcd-v2.0.0-linux-amd64.sig
rkt: signature verified:
CoreOS ACI Builder <release@coreos.com>
<API key>
If you haven't trusted the creator, it will be downloaded but not verified:
# rkt fetch coreos.com/etcd:v2.0.0
rkt: searching for app image coreos.com/etcd:v2.0.0
rkt: fetching image from https://github.com/coreos/etcd/releases/download/v2.0.0/etcd-v2.0.0-linux-amd64.aci
Downloading aci: [======================================= ] 3.25 MB/3.7 MB
Downloading signature from https://github.com/coreos/etcd/releases/download/v2.0.0/etcd-v2.0.0-linux-amd64.sig
rkt: fetching image from https://github.com/coreos/etcd/releases/download/v2.0.0/etcd-v2.0.0-linux-amd64.aci
<API key>
# Fetch from Specific Location
If you already know where an image is stored, you can fetch it directly:
rkt: fetching image from https://github.com/coreos/etcd/releases/download/v2.0.0/etcd-v2.0.0-linux-amd64.aci
Downloading aci: [======================================= ] 3.25 MB/3.7 MB
Downloading signature from https://github.com/coreos/etcd/releases/download/v2.0.0/etcd-v2.0.0-linux-amd64.sig
rkt: fetching image from https://github.com/coreos/etcd/releases/download/v2.0.0/etcd-v2.0.0-linux-amd64.aci
<API key>
# Fetch from a Docker registry
If you want to run an existing Docker image, you can fetch from a Docker registry. rkt will download and convert the image to ACI.
# rkt --<API key> fetch docker://busybox
rkt: fetching image from docker://busybox
rkt: warning: signature verification has been disabled
Downloading layer: <SHA256-like>
Downloading layer: <SHA256-like>
Downloading layer: <SHA256-like>
Downloading layer: <SHA256-like>
<API key>
Docker images do not support signature verification.
## Running Pods
rkt can run ACIs based on name, hash, local file on disk or URL. If an ACI hasn't been cached on disk, rkt will attempt to find and download it.
Prior to running pods, ensure that the [metadata service](https://github.com/coreos/rkt/blob/master/Documentation/metadata-service.md) is running.
rkt run
# Image Addressing
Images can be run by either their name, their hash, an explicit transport address, or a Docker registry URL.
# Run by name
# rkt run coreos.com/etcd:v2.0.0
# Run by hash
# rkt run <API key>
# Run by ACI address
# Run by Docker registry
# rkt run docker://quay.io/coreos/etcd:v2.0.0
# Passing Arguments
To pass additional arguments to images use the pattern of `image1
For example:
# Influencing Environment Variables
To inherit all environment variables from the parent use the `--inherit-env` flag.
To explicitly set individual environment variables use the `--set-env` flag.
The precedence is as follows with the last item replacing previous environment entries:
- Parent environment
- App image environment
- Explicitly set environment
# export EXAMPLE_ENV=hello
# export EXAMPLE_OVERRIDE=under
# rkt run --inherit-env --set-env=FOO=bar --set-env=EXAMPLE_OVERRIDE=over example.com/env-printer
EXAMPLE_ENV=hello
FOO=bar
EXAMPLE_OVERRIDE=over
# Disable Signature Verification
If desired, `--<API key>` can be used to disable this security check:
# rkt --<API key> run coreos.com/etcd:v2.0.0
rkt: searching for app image coreos.com/etcd:v2.0.0
rkt: fetching image from https://github.com/coreos/etcd/releases/download/v2.0.0/etcd-v2.0.0-linux-amd64.aci
rkt: warning: signature verification has been disabled
# Mount Volumes into a Pod
Volumes are defined in each ACI and are referenced by name. Volumes can be exposed from the host into the pod (`host`) or initialized as empty storage to be accessed locally within the pod (`empty` pending [rkt #378][rkt #378]). Each volume can be selectively mounted into each application at differing mount points or not mounted into specific apps at all.
[rkt
## Mounting Host Volumes
For `host` volumes, the `--volume` flag allows you to specify each mount, its type and the location on the host. The volume is then mounted into each app running to the pod based on information defined in the ACI manifest.
For example, let's say we want to read data from the host directory `/opt/tenant1/work` to power a MapReduce-style worker. We'll call this app `example.com/reduce-worker`.
We also want this data to be available to a backup application that runs alongside the worker (in the same pod). We'll call this app 'example.com/worker-backup`. The backup application only needs read-only access to the data.
Below we show the abbreviated manifests for the respective applications (recall that the manifest is bundled into the application's ACI):
{
"acKind": "ImageManifest",
"name": "example.com/reduce-worker",
"app": {
"mountPoints": [
{
"name": "work",
"path": "/var/lib/work",
"readOnly": false
}
],
}
{
"acKind": "ImageManifest",
"name": "example.com/worker-backup",
"app": {
"mountPoints": [
{
"name": "work",
"path": "/backup",
"readOnly": true
}
],
}
In this case, both apps reference a volume they call "work", and expect it to be made available at `/var/lib/work` and `/backup` within their respective root filesystems.
Since they reference the volume using an abstract name rather than a specific source path, the same image can be used on a variety of different hosts without being coupled to the host's filesystem layout.
To tie it all together, we use the `rkt run` command-line to provide them with a volume by this name. Here's what it looks like:
# rkt run --volume=work,kind=host,source=/opt/tenant1/work \
example.com/reduce-worker \
example.com/worker-backup
Now when the pod is running, the two apps will see the host's `/opt/tenant1/work` directory made available at their expected locations.
# Disabling metadata service registration
By default, `rkt run` will register the pod with the [metadata service](https://github.com/coreos/rkt/blob/master/Documentation/metadata-service.md).
If the metadata service is not running, it is possible to disable this behavior with `--register-mds=false` command line option.
# Customize Networking
The default networking configuration for rkt is "host networking".
This means that the apps within the pod will share the network stack and the interfaces with the host machine.
## Private Networking
Another common configuration, "private networking", means the pod will be executed with its own network stack.
This is similar to how other container tools work.
By default, rkt private networking will create a loopback device and a veth device.
The veth pair creates a point-to-point link between the pod and the host.
rkt will allocate an IPv4 /31 (2 IP addresses) out of 172.16.28.0/24 and assign one IP to each end of the veth pair.
It will additionally set a default route in the pod namespace.
Finally, it will enable IP masquerading on the host to NAT the egress traffic.
# rkt run --private-net coreos.com/etcd:v2.0.0
## Other Networking Examples
Additional networking modes and more examples can be found in the [networking documentation](https://github.com/coreos/rkt/blob/master/Documentation/networking.md)
rkt enter
If you want to enter a running pod to explore its filesystem or see what's running you can use rkt enter.
# rkt enter 6f34ec91
Pod contains multiple apps:
<API key>: etcd
<API key>: redis
Unable to determine image id: specify app using "rkt enter --imageid ..."
# rkt enter --imageid=<API key> 6f34ec91
No command specified, assuming "/bin/bash"
root@<API key>:/
bin data entrypoint.sh home lib64 mnt proc run selinux sys usr
boot dev etc lib media opt root sbin srv tmp var
# Use a Custom Stage 1
rkt is designed and intended to be modular, using a [staged architecture](devel/architecture.md).
You can use a custom stage1 by using the `--stage1-image` flag.
# rkt --stage1-image=/tmp/stage1.aci run coreos.com/etcd:v2.0.0
For more details see the [hacking documentation](hacking.md).
# Run a Pod in the Background
Work in progress. Please contribute!
## Pod inspection
rkt list
You can list all rkt pods.
# rkt list
UUID ACI STATE NETWORKS
6f34ec91 etcd running default:ip4=172.16.28.7
redis
5bc080ca etcd exited
redis
rkt status
Given a pod UUID, you can get the exit status of its apps.
# rkt status 5bc080ca
state=exited
pid=-1
exited=true
<API key>=0
<API key>=0
If the pod is still running, you can wait for it to finish and then get the status with `rkt status --wait UUID`
## Metadata Service
Work in progress. Please contribute!
rkt metadata-service
Work in progress. Please contribute!
Logging
By default, rkt will send logs directly to stdout/stderr, allowing them to be caputered by the invoking process.
On host systems running systemd, rkt will attempt to integrate with journald on the host.
In this case, the logs can be accessed directly via journalctl.
NOTE: Journald integration requires systemd version v219 or v220 in stage1.
# Accessing logs via journalctl
To get the logs of a running pod you need to get pod's machine name. You can use machinectl
$ machinectl
MACHINE CLASS SERVICE
<API key> container nspawn
1 machines listed.
or `rkt list --full`
# rkt list --full
UUID ACI STATE NETWORKS
<API key> busybox running
Pod's machine name will be the pod's UUID with a `rkt-` prefix.
Then you can use systemd's journalctl:
# journalctl -M <API key>
[...]
## Interacting with the local image store
rkt image list
You can get a list of images in the local store with their keys, app names and import times.
# rkt image list
KEY APPNAME IMPORTTIME LATEST
sha512-<SHA256-like> coreos.com/etcd:v2.0.0 2015-07-10 10:14:37.323 +0200 CEST false
sha512-<SHA256-like> coreos.com/rkt/stage1:0.7.0 2015-07-12 20:27:56.041 +0200 CEST false
rkt image rm
Given an image key you can remove it from the local store.
# rkt image rm sha512-<SHA256-like>
rkt: successfully removed aci for imageID: "sha512-<SHA256-like>"
rkt: 1 image(s) successfully remove
rkt image export
There are cases where you might want to export the ACI from the store to copy to another machine, file server, etc.
# rkt image export coreos.com/etcd etcd.aci
$ tar xvf etcd.aci
NOTES:
- A matching image must be fetched before doing this operation, rkt will not attempt to download an image first, this subcommand will incur no-network I/O.
- The exported ACI file might be different than the original one because rkt image export always returns uncompressed ACIs.
rkt image extract/render
For debugging or inspection you may want to extract an ACI to a directory on disk. There are a few different options depending on your use case but the basic command looks like this:
# rkt image extract coreos.com/etcd etcd-extracted
# find etcd-extracted
etcd-extracted
etcd-extracted/manifest
etcd-extracted/rootfs
etcd-extracted/rootfs/etcd
etcd-extracted/rootfs/etcdctl
NOTE: Like with rkt image export, a matching image must be fetched before doing this operation.
Now there are some flags that can be added to this:
To get just the rootfs use:
# rkt image extract --rootfs-only coreos.com/etcd etcd-extracted
# find etcd-extracted
etcd-extracted
etcd-extracted/etcd
etcd-extracted/etcdctl
If you want the image rendered as it would look ready-to-run inside of the rkt stage2 then use `rkt image render`. NOTE: this will not use overlayfs or any other mechanism. This is to simplify the cleanup: to remove the extracted files you can run a a simple `rm -Rf`.
rkt image cat-manifest
For debugging or inspection you may want to extract an ACI manifest to stdout.
# rkt image cat-manifest --pretty-print coreos.com/etcd
{
"acVersion": "0.6.1",
"acKind": "ImageManifest",
## Other Commands
rkt gc
rkt has a built-in garbage collection command that is designed to be run periodically from a timer or cron job. Stopped pods are moved to the garbage and cleaned up during a subsequent garbage collection pass. Each `gc` pass removes any pods remaining in the garbage past the grace period. [Read more about the pod lifecycle][gc-docs].
[gc-docs]: https://github.com/coreos/rkt/blob/master/Documentation/devel/pod-lifecycle.md#garbage-collection
# rkt gc --grace-period=30m0s
Moving pod "<API key>" to garbage
Moving pod "<API key>" to garbage
Moving pod "<API key>" to garbage
On the next pass, the pods are removed:
# rkt gc --grace-period=30m0s
Garbage collecting pod "<API key>"
Garbage collecting pod "<API key>"
Garbage collecting pod "<API key>" |
<script type="text/javascript">
HomeDisplayCategory();
</script> |
// ServerCommunication.h
// TravelBook
#import <Foundation/Foundation.h>
#import "Reachability.h"
#import "GTLRTravelbook.h"
#define SERVER_BASE_URL @"https://carnet-de-voyage.appspot.com"
#define SERVER_EMAIL @"items@carnet-de-voyage.appspot.com"
//#define SERVER_EMAIL @"items@fwkdemo2.appspotmail.com"
@class Item;
@interface Requester : NSObject {
<API key> *gtlService;
float version;
NSString *url;
NSString *name;
BOOL running;
NSError *connectionError;
NSInteger status;
}
@property BOOL running;
@property (strong, nonatomic) NSError *connectionError;
@property (strong, nonatomic) NSString *url;
@property (strong, nonatomic) NSString *name;
+ (NSString *)urlEncode:(NSString *)string;
+ (NSMutableSet *)requests;
+ (void)showrequests;
+ (BOOL)<API key>;
+ (NSString *)serverURL;
- (id)init;
- (void)success;
- (void)failure;
- (NSString *)errorMessage;
- (void)stop;
- (void)connectionStart;
- (void)connectionEnd;
- (void)requestError;
- (Item *)fetchItem:(NSString *)reference;
- (void)<API key>:(Item *)item into:(NSString *)result;
@end |
require 'sidekiq/web'
Hummingbird::Application.routes.draw do
resources :library_entries, except: [:new, :edit]
resources :<API key>, except: [:new, :edit]
resources :franchises, only: [:index, :show]
resources :full_anime, only: [:show, :update, :destroy]
resources :full_manga, only: [:show, :update]
resources :news_feeds, only: [:index]
resources :quotes
resources :stories do
get :likers
end
resources :substories, only: [:index, :create, :destroy]
resources :user_infos, only: [:show]
resources :changelogs, only: [:index]
resources :reviews do
post :vote
end
get '/radio' => 'home#static'
get '/apps/mine' => 'apps#mine'
resources :apps
resource :chat, only: [:show, :create, :destroy] do
post :ping
end
devise_for :users, skip: [:sessions, :registrations], controllers: {
omniauth_callbacks: "users/omniauth_callbacks"
}
# sessions
get '/sign-in' => 'home#static', as: :new_user_session
post '/sign-in' => 'auth#sign_in_action', as: :user_session
match '/sign-out' => 'auth#sign_out_action', as: :<API key>,
via: [:post, :delete]
# registrations
get '/sign-up' => 'home#static', as: :<API key>
post '/sign-up' => 'auth#sign_up_action', as: :user_registration
get '/users/edit', to: redirect('/settings'), as: :<API key>
# redirects if there happens to be any outdated links around the web
get '/users/sign_in', to: redirect('/sign-in')
get '/users/sign_up', to: redirect('/sign-up')
resources :notifications, only: [:index, :show]
namespace :community do
get '/' => 'forums#index'
resources :forums do
resources :topics
end
end
namespace :api do
namespace :v2 do
resources :anime
end
end
get '/privacy' => 'home#static'
get '/branding' => 'home#static'
# Recommendations
get '/recommendations' => 'recommendations#index'
post '/recommendations/not_interested' => 'recommendations#not_interested'
post '/recommendations/plan_to_watch' => 'recommendations#plan_to_watch'
get '/recommendations/force_update' => 'recommendations#force_update'
get '/unsubscribe/newsletter/:code' => 'home#unsubscribe'
root :to => "home#index"
# Dashboard
get '/dashboard' => 'home#dashboard'
get '/feed' => 'home#feed'
get '/onboarding(/:id)' => 'home#static'
get '/pro' => 'home#static'
resources :<API key>, only: [:index]
resources :pro_memberships, only: [:create, :destroy]
resources :partner_deals, only: [:index, :update]
get '/users/:id/watchlist' => redirect {|params, request| "/users/#{params[:id]}/library" }
get '/u/:id' => redirect {|params, request| "/users/#{params[:id]}" }
get '/users/:id/feed' => redirect {|params, request| "/users/#{params[:id]}" }
get '/users/to_follow' => 'users#to_follow' # public endpoint for users to follow
resources :users, only: [:index, :show, :update] do
get 'library/manga' => 'users#manga_library'
get :library
get :groups
get :reviews
get :followers
get :following
get :favorite_anime
resources :lists
put "/cover_image" => 'users#update_cover_image', as: :cover_image
put "/avatar" => 'users#update_avatar', as: :avatar
post :follow
post :comment
post :update_setting
post "/disconnect/facebook" => 'users#disconnect_facebook',
as: :disconnect_facebook
end
# Favorite media
resources :favorites
post '/favorites/update_all' => 'favorites#update_all'
resources :groups do
get 'members' => 'groups#show', on: :member
end
resources :group_members
# Settings
get '/settings' => 'settings#index'
namespace :settings do
post :resend_confirmation
# Legacy routes
get 'backup/:action', to: 'backup'
# New routes
# Download
get 'backup/download' => 'backup#download'
# Dropbox
get 'backup/dropbox' => 'backup#dropbox_connect'
post 'backup/dropbox' => 'backup#dropbox'
delete 'backup/dropbox' => 'backup#dropbox_disconnect'
# Imports
post 'import/myanimelist' => 'import#myanimelist'
end
# Search
get '/search' => 'search#search'
# Imports
post '/mal_import', to: redirect('/settings/import/myanimelist')
# Random anime
get '/random/anime' => 'anime#random'
get '/anime/upcoming(/:season)' => 'anime#upcoming', as: :anime_season
get '/anime/filter(/:sort)' => 'anime#filter', as: :anime_filter
resources :castings, only: [:index]
resources :anime, only: [:show, :index, :update] do
resources :quotes
resources :reviews
resources :episodes
end
resources :manga, only: [:index, :show]
resources :genres, only: [:index, :show] do
post :add_to_favorites
post :<API key>
end
resources :producers
resources :characters, only: [:show]
# Versions
resources :versions, except: [:new, :create, :show]
get '/edits' => 'versions#index'
# Admin Panel
constraints(lambda do |req|
user = <API key>.new(req.env).current_user
user && user.admin?
end) do
get '/kotodama' => 'admin#index', as: :admin_panel
get '/kotodama/stats' => 'admin#stats'
get '/kotodama/login_as' => 'admin#login_as_user'
get '/kotodama/<API key>' => 'admin#<API key>'
get '/kotodama/users_to_follow' => 'admin#users_to_follow'
get '/kotodama/<API key>' => 'admin#<API key>'
get '/kotodama/blotter_set' => 'admin#blotter_set'
get '/kotodama/blotter_clear' => 'admin#blotter_clear'
post '/kotodama/deploy' => 'admin#deploy'
post '/kotodama/publish_update' => 'admin#publish_update'
post '/kotodama/refill_codes' => 'admin#refill_codes'
mount Sidekiq::Web => '/kotodama/sidekiq'
mount RailsAdmin::Engine => '/kotodama/rails_admin', as: 'rails_admin'
mount PgHero::Engine => '/kotodama/pghero'
mount Kibana::Rack::Web => '/kibana'
end
mount API => '/'
end |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_77) on Mon May 23 19:36:50 EDT 2016 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Uses of Class org.apache.lucene.queryparser.flexible.core.util.StringUtils (Lucene 6.0.1 API)</title>
<meta name="date" content="2016-05-23">
<link rel="stylesheet" type="text/css" href="../../../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class org.apache.lucene.queryparser.flexible.core.util.StringUtils (Lucene 6.0.1 API)";
}
}
catch(err) {
}
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="topNav"><a name="navbar.top">
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../../../../org/apache/lucene/queryparser/flexible/core/util/StringUtils.html" title="class in org.apache.lucene.queryparser.flexible.core.util">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../../index.html?org/apache/lucene/queryparser/flexible/core/util/class-use/StringUtils.html" target="_top">Frames</a></li>
<li><a href="StringUtils.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="<API key>">
<li><a href="../../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!
allClassesLink = document.getElementById("<API key>");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
</script>
</div>
<a name="skip.navbar.top">
</a></div>
<div class="header">
<h2 title="Uses of Class org.apache.lucene.queryparser.flexible.core.util.StringUtils" class="title">Uses of Class<br>org.apache.lucene.queryparser.flexible.core.util.StringUtils</h2>
</div>
<div class="classUseContainer">No usage of org.apache.lucene.queryparser.flexible.core.util.StringUtils</div>
<div class="bottomNav"><a name="navbar.bottom">
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../../../../org/apache/lucene/queryparser/flexible/core/util/StringUtils.html" title="class in org.apache.lucene.queryparser.flexible.core.util">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../../index.html?org/apache/lucene/queryparser/flexible/core/util/class-use/StringUtils.html" target="_top">Frames</a></li>
<li><a href="StringUtils.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="<API key>">
<li><a href="../../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!
allClassesLink = document.getElementById("<API key>");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
</script>
</div>
<a name="skip.navbar.bottom">
</a></div>
<p class="legalCopy"><small>
<i>Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.</i>
<script src='../../../../../../../../prettify.js' type='text/javascript'></script>
<script type='text/javascript'>
(function(){
var oldonload = window.onload;
if (typeof oldonload != 'function') {
window.onload = prettyPrint;
} else {
window.onload = function() {
oldonload();
prettyPrint();
}
}
})();
</script>
</small></p>
</body>
</html> |
var Net = require('net');
var Config = require('../config');
var callbackArray = new Array();
module.exports = function (callback) {
var localserver = Net.createServer(function (c) { //'connection' listener
console.log('server connected');
c.on('end', function () {
console.log('server disconnected');
});
c.on('data', function (data) {
console.log('DATA: ' + data);
callback(data.toString().split(":")[0], 3);
});
});
localserver.listen(Config.config.callbackPort, function () {
console.log('Callback server listen on ' + Config.config.callbackPort);
});
}; |
# AUTOGENERATED FILE
FROM balenalib/npe-x500-m3-debian:jessie-run
ENV NODE_VERSION 12.22.1
ENV YARN_VERSION 1.22.4
RUN buildDeps='curl libatomic1' \
&& set -x \
&& for key in \
<API key> \
; do \
gpg --batch --keyserver pgp.mit.edu --recv-keys "$key" || \
gpg --batch --keyserver keyserver.pgp.com --recv-keys "$key" || \
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" ; \
done \
&& apt-get update && apt-get install -y $buildDeps --<API key> \ |
package de.bluebiz.bluelytics.api.query.plan.options;
/**
* A resource name operator option
*/
public class <API key> implements OperatorOption {
private final String name;
private final String space;
/**
* Instantiates a new Operator option resource name.
*
* @param space the space
* @param name the name
*/
public <API key>(String space, String name) {
this.name = name;
this.space = space;
}
/**
* Gets name.
*
* @return the name
*/
public String getName() {
return name;
}
/**
* Gets space.
*
* @return the space
*/
public String getSpace() {
return space;
}
} |
package org.ebayopensource.turmeric.monitoring.aggregation.error.writer;
import java.util.Date;
import java.util.Map;
import java.util.Map.Entry;
import me.prettyprint.cassandra.serializers.<API key>;
import me.prettyprint.hector.api.beans.HColumn;
import me.prettyprint.hector.api.factory.HFactory;
import me.prettyprint.hector.api.mutation.Mutator;
import org.ebayopensource.turmeric.monitoring.aggregation.<API key>;
import org.ebayopensource.turmeric.monitoring.aggregation.CassandraDataWriter;
import org.ebayopensource.turmeric.monitoring.aggregation.CassandraObject;
import org.ebayopensource.turmeric.monitoring.aggregation.data.AggregationData;
// TODO: Auto-generated Javadoc
/**
* The Class ErrorValueWriter.
*/
public class ErrorValueWriter extends CassandraObject implements CassandraDataWriter<String> {
/**
* Instantiates a new error value writer.
*
* @param startTime
* the start time
* @param endTime
* the end time
* @param connectionInfo
* the connection info
*/
public ErrorValueWriter(Date startTime, Date endTime, <API key> connectionInfo) {
super(startTime, endTime, connectionInfo);
}
/** The Constant columnFamilyName. */
protected static final String columnFamilyName = "ErrorValues";
/**
* {@inheritDoc}
*/
@Override
public void writeData(Map<String, AggregationData<String>> data) {
Mutator<String> mutator = HFactory.createMutator(connectionInfo.getKeyspace(), STR_SERIALIZER);
for (Entry<String, AggregationData<String>> entry : data.entrySet()) {
AggregationData<String> dataRow = entry.getValue();
Map<Object, Object> columns = dataRow.getColumns();
for (Entry<Object, Object> column : columns.entrySet()) {
if (column != null && column.getKey() != null && column.getValue() != null) {
HColumn<String, Object> hColumn = HFactory.createColumn((String) column.getKey(), column.getValue(),
STR_SERIALIZER, <API key>.getSerializer(column.getValue()));
mutator.addInsertion(dataRow.getKey(), columnFamilyName, hColumn);
}
}
}
mutator.execute();
}
} |
package com.yahoo.config.application;
import com.yahoo.config.model.application.provider.Bundle;
import com.yahoo.io.IOUtils;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.jar.JarFile;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
/**
* @author Ulf Lilleengen
* @since 5.1
*/
public class <API key> {
private static final String bundleFileName = "com.yahoo.searcher1.jar";
private static final File bundleFile = new File("src/test/resources/defdircomponent/" + bundleFileName);
@Rule
public TemporaryFolder temporaryFolder = new TemporaryFolder();
@Test
public void <API key>() throws IOException {
File defDir = temporaryFolder.newFolder();
ConfigDefinitionDir dir = new ConfigDefinitionDir(defDir);
Bundle bundle = new Bundle(new JarFile(bundleFile), bundleFile);
assertEquals(0, defDir.listFiles().length);
dir.<API key>(bundle, new ArrayList<>());
assertEquals(1, defDir.listFiles().length);
}
@Test
public void <API key>() throws IOException {
File defDir = temporaryFolder.newFolder();
IOUtils.writeFile(new File(defDir, "foo.def"), "alreadyexists", false);
ConfigDefinitionDir dir = new ConfigDefinitionDir(defDir);
Bundle bundle = new Bundle(new JarFile(bundleFile), bundleFile);
ArrayList<Bundle> bundlesAdded = new ArrayList<>();
// Conflict with built-in config definition
try {
dir.<API key>(bundle, bundlesAdded);
} catch (<API key> e) {
assertTrue(e.getMessage().contains
("The config definition with name 'bar.foo' contained in the bundle '" +
bundleFileName +
"' conflicts with a built-in config definition"));
}
bundlesAdded.add(bundle);
// Conflict with another bundle
Bundle bundle2 = new Bundle(new JarFile(bundleFile), bundleFile);
try {
dir.<API key>(bundle2, bundlesAdded);
} catch (<API key> e) {
assertEquals("The config definition with name 'bar.foo' contained in the bundle '" +
bundleFileName +
"' conflicts with the same config definition in the bundle 'com.yahoo.searcher1.jar'. Please choose a different name.",
e.getMessage());
}
}
} |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_151) on Wed Jul 17 09:40:07 MST 2019 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class org.wildfly.swarm.config.jgroups.stack.Transport (BOM: * : All 2.4.1.Final-SNAPSHOT API)</title>
<meta name="date" content="2019-07-17">
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class org.wildfly.swarm.config.jgroups.stack.Transport (BOM: * : All 2.4.1.Final-SNAPSHOT API)";
}
}
catch(err) {
}
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="topNav"><a name="navbar.top">
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../../../org/wildfly/swarm/config/jgroups/stack/Transport.html" title="class in org.wildfly.swarm.config.jgroups.stack">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../../../../../../../overview-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">Thorntail API, 2.4.1.Final-SNAPSHOT</div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/wildfly/swarm/config/jgroups/stack/class-use/Transport.html" target="_top">Frames</a></li>
<li><a href="Transport.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="<API key>">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!
allClassesLink = document.getElementById("<API key>");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
</script>
</div>
<a name="skip.navbar.top">
</a></div>
<div class="header">
<h2 title="Uses of Class org.wildfly.swarm.config.jgroups.stack.Transport" class="title">Uses of Class<br>org.wildfly.swarm.config.jgroups.stack.Transport</h2>
</div>
<div class="classUseContainer">
<ul class="blockList">
<li class="blockList">
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation">
<caption><span>Packages that use <a href="../../../../../../../org/wildfly/swarm/config/jgroups/stack/Transport.html" title="class in org.wildfly.swarm.config.jgroups.stack">Transport</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Package</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="#org.wildfly.swarm.config.jgroups">org.wildfly.swarm.config.jgroups</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.wildfly.swarm.config.jgroups.stack">org.wildfly.swarm.config.jgroups.stack</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="org.wildfly.swarm.config.jgroups">
</a>
<h3>Uses of <a href="../../../../../../../org/wildfly/swarm/config/jgroups/stack/Transport.html" title="class in org.wildfly.swarm.config.jgroups.stack">Transport</a> in <a href="../../../../../../../org/wildfly/swarm/config/jgroups/package-summary.html">org.wildfly.swarm.config.jgroups</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../../org/wildfly/swarm/config/jgroups/package-summary.html">org.wildfly.swarm.config.jgroups</a> that return <a href="../../../../../../../org/wildfly/swarm/config/jgroups/stack/Transport.html" title="class in org.wildfly.swarm.config.jgroups.stack">Transport</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/wildfly/swarm/config/jgroups/stack/Transport.html" title="class in org.wildfly.swarm.config.jgroups.stack">Transport</a></code></td>
<td class="colLast"><span class="typeNameLabel">Stack.StackResources.</span><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/jgroups/Stack.StackResources.html
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../../org/wildfly/swarm/config/jgroups/package-summary.html">org.wildfly.swarm.config.jgroups</a> that return types with arguments of type <a href="../../../../../../../org/wildfly/swarm/config/jgroups/stack/Transport.html" title="class in org.wildfly.swarm.config.jgroups.stack">Transport</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../../../org/wildfly/swarm/config/jgroups/stack/Transport.html" title="class in org.wildfly.swarm.config.jgroups.stack">Transport</a>></code></td>
<td class="colLast"><span class="typeNameLabel">Stack.StackResources.</span><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/jgroups/Stack.StackResources.html#transports--">transports</a></span>()</code>
<div class="block">Get the list of Transport resources</div>
</td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../../org/wildfly/swarm/config/jgroups/package-summary.html">org.wildfly.swarm.config.jgroups</a> with parameters of type <a href="../../../../../../../org/wildfly/swarm/config/jgroups/stack/Transport.html" title="class in org.wildfly.swarm.config.jgroups.stack">Transport</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/wildfly/swarm/config/jgroups/Stack.html" title="type parameter in Stack">T</a></code></td>
<td class="colLast"><span class="typeNameLabel">Stack.</span><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/jgroups/Stack.html#transport-org.wildfly.swarm.config.jgroups.stack.Transport-">transport</a></span>(<a href="../../../../../../../org/wildfly/swarm/config/jgroups/stack/Transport.html" title="class in org.wildfly.swarm.config.jgroups.stack">Transport</a> value)</code>
<div class="block">Add the Transport object to the list of subresources</div>
</td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Method parameters in <a href="../../../../../../../org/wildfly/swarm/config/jgroups/package-summary.html">org.wildfly.swarm.config.jgroups</a> with type arguments of type <a href="../../../../../../../org/wildfly/swarm/config/jgroups/stack/Transport.html" title="class in org.wildfly.swarm.config.jgroups.stack">Transport</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/wildfly/swarm/config/jgroups/Stack.html" title="type parameter in Stack">T</a></code></td>
<td class="colLast"><span class="typeNameLabel">Stack.</span><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/jgroups/Stack.html
<div class="block">Add all Transport objects to this subresource</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.wildfly.swarm.config.jgroups.stack">
</a>
<h3>Uses of <a href="../../../../../../../org/wildfly/swarm/config/jgroups/stack/Transport.html" title="class in org.wildfly.swarm.config.jgroups.stack">Transport</a> in <a href="../../../../../../../org/wildfly/swarm/config/jgroups/stack/package-summary.html">org.wildfly.swarm.config.jgroups.stack</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../../../../org/wildfly/swarm/config/jgroups/stack/package-summary.html">org.wildfly.swarm.config.jgroups.stack</a> with type parameters of type <a href="../../../../../../../org/wildfly/swarm/config/jgroups/stack/Transport.html" title="class in org.wildfly.swarm.config.jgroups.stack">Transport</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>class </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/jgroups/stack/Transport.html" title="class in org.wildfly.swarm.config.jgroups.stack">Transport</a><T extends <a href="../../../../../../../org/wildfly/swarm/config/jgroups/stack/Transport.html" title="class in org.wildfly.swarm.config.jgroups.stack">Transport</a><T>></span></code>
<div class="block">The configuration of a transport for a protocol stack.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/jgroups/stack/TransportConsumer.html" title="interface in org.wildfly.swarm.config.jgroups.stack">TransportConsumer</a><T extends <a href="../../../../../../../org/wildfly/swarm/config/jgroups/stack/Transport.html" title="class in org.wildfly.swarm.config.jgroups.stack">Transport</a><T>></span></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/jgroups/stack/TransportSupplier.html" title="interface in org.wildfly.swarm.config.jgroups.stack">TransportSupplier</a><T extends <a href="../../../../../../../org/wildfly/swarm/config/jgroups/stack/Transport.html" title="class in org.wildfly.swarm.config.jgroups.stack">Transport</a>></span></code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../../org/wildfly/swarm/config/jgroups/stack/package-summary.html">org.wildfly.swarm.config.jgroups.stack</a> that return <a href="../../../../../../../org/wildfly/swarm/config/jgroups/stack/Transport.html" title="class in org.wildfly.swarm.config.jgroups.stack">Transport</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/wildfly/swarm/config/jgroups/stack/Transport.html" title="class in org.wildfly.swarm.config.jgroups.stack">Transport</a></code></td>
<td class="colLast"><span class="typeNameLabel">TransportSupplier.</span><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/jgroups/stack/TransportSupplier.html#get--">get</a></span>()</code>
<div class="block">Constructed instance of Transport resource</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="bottomNav"><a name="navbar.bottom">
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../../../org/wildfly/swarm/config/jgroups/stack/Transport.html" title="class in org.wildfly.swarm.config.jgroups.stack">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../../../../../../../overview-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">Thorntail API, 2.4.1.Final-SNAPSHOT</div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/wildfly/swarm/config/jgroups/stack/class-use/Transport.html" target="_top">Frames</a></li>
<li><a href="Transport.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="<API key>">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!
allClassesLink = document.getElementById("<API key>");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
</script>
</div>
<a name="skip.navbar.bottom">
</a></div>
<p class="legalCopy"><small>Copyright &
</body>
</html> |
// Magic Software, Inc.
// The Wild Magic Library (WML) source code is supplied under the terms of
// and may not be copied or disclosed except in accordance with the terms of
// that agreement.
#ifndef WMLEIGENH
#define WMLEIGENH
#include "WmlMatrix2.h"
#include "WmlMatrix3.h"
#include "WmlMatrix4.h"
#include "WmlGMatrix.h"
namespace Wml
{
template <class Real>
class WML_ITEM Eigen
{
public:
Eigen (int iSize);
Eigen (const Matrix2<Real>& rkM);
Eigen (const Matrix3<Real>& rkM);
Eigen (const Matrix4<Real>& rkM);
Eigen (const GMatrix<Real>& rkM);
~Eigen ();
// set the matrix for eigensolving
Real& operator() (int iRow, int iCol);
Eigen& operator= (const Matrix2<Real>& rkM);
Eigen& operator= (const Matrix3<Real>& rkM);
Eigen& operator= (const Matrix4<Real>& rkM);
Eigen& operator= (const GMatrix<Real>& rkM);
// Get the eigenresults (eigenvectors are columns of eigenmatrix). The
// GetEigenvector calls involving Vector2, Vector3, and Vector4 should
// only be called if you know that the eigenmatrix is of the appropriate
// size.
Real GetEigenvalue (int i) const;
const Real* GetEigenvalues () const;
void GetEigenvector (int i, Vector2<Real>& rkV) const;
void GetEigenvector (int i, Vector3<Real>& rkV) const;
void GetEigenvector (int i, Vector4<Real>& rkV) const;
GVector<Real> GetEigenvector (int i) const;
const GMatrix<Real>& GetEigenvectors () const;
// solve eigensystem
void EigenStuff2 ();
void EigenStuff3 ();
void EigenStuff4 ();
void EigenStuffN ();
void EigenStuff ();
// solve eigensystem, use decreasing sort on eigenvalues
void DecrSortEigenStuff2 ();
void DecrSortEigenStuff3 ();
void DecrSortEigenStuff4 ();
void DecrSortEigenStuffN ();
void DecrSortEigenStuff ();
// solve eigensystem, use increasing sort on eigenvalues
void IncrSortEigenStuff2 ();
void IncrSortEigenStuff3 ();
void IncrSortEigenStuff4 ();
void IncrSortEigenStuffN ();
void IncrSortEigenStuff ();
protected:
int m_iSize;
GMatrix<Real> m_kMat;
Real* m_afDiag;
Real* m_afSubd;
// For odd size matrices, the Householder reduction involves an odd
// number of reflections. The product of these is a reflection. The
// QL algorithm uses rotations for further reductions. The final
// orthogonal matrix whose columns are the eigenvectors is a reflection,
// so its determinant is -1. For even size matrices, the Householder
// reduction involves an even number of reflections whose product is a
// rotation. The final orthogonal matrix has determinant +1. Many
// algorithms that need an eigendecomposition want a rotation matrix.
// We want to guarantee this is the case, so m_bRotation keeps track of
// this. The DecrSort and IncrSort further complicate the issue since
// they swap columns of the orthogonal matrix, causing the matrix to
// toggle between rotation and reflection. The value m_bRotation must
// be toggled accordingly.
bool m_bIsRotation;
void GuaranteeRotation ();
// Householder reduction to tridiagonal form
void Tridiagonal2 ();
void Tridiagonal3 ();
void Tridiagonal4 ();
void TridiagonalN ();
// QL algorithm with implicit shifting, applies to tridiagonal matrices
bool QLAlgorithm ();
// sort eigenvalues from largest to smallest
void DecreasingSort ();
// sort eigenvalues from smallest to largest
void IncreasingSort ();
};
typedef Eigen<float> Eigenf;
typedef Eigen<double> Eigend;
}
#endif |
var mcast_snooping_8h =
[
[ "mcast_group", "structmcast__group.html", "structmcast__group" ],
[ "mcast_group_bundle", "<API key>.html", "<API key>" ],
[ "<API key>", "<API key>.html", "<API key>" ],
[ "mcast_port_bundle", "<API key>.html", "<API key>" ],
[ "mcast_snooping", "<API key>.html", "<API key>" ],
[ "<API key>", "mcast-snooping_8h.html#<API key>", null ],
[ "<API key>", "mcast-snooping_8h.html#<API key>", null ],
[ "<API key>", "mcast-snooping_8h.html#<API key>", null ],
[ "mcast_bundle_age", "mcast-snooping_8h.html#<API key>", null ],
[ "mcast_mrouter_age", "mcast-snooping_8h.html#<API key>", null ],
[ "<API key>", "mcast-snooping_8h.html#<API key>", null ],
[ "<API key>", "mcast-snooping_8h.html#<API key>", null ],
[ "<API key>", "mcast-snooping_8h.html#<API key>", null ],
[ "<API key>", "mcast-snooping_8h.html#<API key>", null ],
[ "<API key>", "mcast-snooping_8h.html#<API key>", null ],
[ "<API key>", "mcast-snooping_8h.html#<API key>", null ],
[ "<API key>", "mcast-snooping_8h.html#<API key>", null ],
[ "<API key>", "mcast-snooping_8h.html#<API key>", null ],
[ "<API key>", "mcast-snooping_8h.html#<API key>", null ],
[ "<API key>", "mcast-snooping_8h.html#<API key>", null ],
[ "<API key>", "mcast-snooping_8h.html#<API key>", null ],
[ "<API key>", "mcast-snooping_8h.html#<API key>", null ],
[ "<API key>", "mcast-snooping_8h.html#<API key>", null ],
[ "<API key>", "mcast-snooping_8h.html#<API key>", null ],
[ "<API key>", "mcast-snooping_8h.html#<API key>", null ],
[ "<API key>", "mcast-snooping_8h.html#<API key>", null ],
[ "mcast_snooping_ref", "mcast-snooping_8h.html#<API key>", null ],
[ "mcast_snooping_run", "mcast-snooping_8h.html#<API key>", null ],
[ "<API key>", "mcast-snooping_8h.html#<API key>", null ],
[ "<API key>", "mcast-snooping_8h.html#<API key>", null ],
[ "<API key>", "mcast-snooping_8h.html#<API key>", null ],
[ "<API key>", "mcast-snooping_8h.html#<API key>", null ],
[ "<API key>", "mcast-snooping_8h.html#<API key>", null ],
[ "<API key>", "mcast-snooping_8h.html#<API key>", null ],
[ "mcast_snooping_wait", "mcast-snooping_8h.html#<API key>", null ]
]; |
// +build go1.9
package ssocreds
import (
"fmt"
"reflect"
"testing"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/service/sso"
"github.com/aws/aws-sdk-go/service/sso/ssoiface"
)
type mockClient struct {
ssoiface.SSOAPI
t *testing.T
Output *sso.<API key>
Err error
ExpectedAccountID string
ExpectedAccessToken string
ExpectedRoleName string
<API key> string
Response func(mockClient) (*sso.<API key>, error)
}
func (m mockClient) <API key>(ctx aws.Context, params *sso.<API key>, _ ...request.Option) (*sso.<API key>, error) {
m.t.Helper()
if len(m.ExpectedAccountID) > 0 {
if e, a := m.ExpectedAccountID, aws.StringValue(params.AccountId); e != a {
m.t.Errorf("expect %v, got %v", e, a)
}
}
if len(m.ExpectedAccessToken) > 0 {
if e, a := m.ExpectedAccessToken, aws.StringValue(params.AccessToken); e != a {
m.t.Errorf("expect %v, got %v", e, a)
}
}
if len(m.ExpectedRoleName) > 0 {
if e, a := m.ExpectedRoleName, aws.StringValue(params.RoleName); e != a {
m.t.Errorf("expect %v, got %v", e, a)
}
}
if m.Response == nil {
return &sso.<API key>{}, nil
}
return m.Response(m)
}
func swapCacheLocation(dir string) func() {
original := <API key>
<API key> = func() string {
return dir
}
return func() {
<API key> = original
}
}
func swapNowTime(referenceTime time.Time) func() {
original := nowTime
nowTime = func() time.Time {
return referenceTime
}
return func() {
nowTime = original
}
}
func TestProvider(t *testing.T) {
restoreCache := swapCacheLocation("testdata")
defer restoreCache()
restoreTime := swapNowTime(time.Date(2021, 01, 19, 19, 50, 0, 0, time.UTC))
defer restoreTime()
cases := map[string]struct {
Client mockClient
AccountID string
Region string
RoleName string
StartURL string
ExpectedErr bool
ExpectedCredentials credentials.Value
ExpectedExpire time.Time
}{
"missing required parameter values": {
StartURL: "https://invalid-required",
ExpectedErr: true,
},
"valid required parameter values": {
Client: mockClient{
ExpectedAccountID: "012345678901",
ExpectedRoleName: "TestRole",
<API key>: "us-west-2",
ExpectedAccess<API key>,
Response: func(mock mockClient) (*sso.<API key>, error) {
return &sso.<API key>{
RoleCredentials: &sso.RoleCredentials{
AccessKeyId: aws.String("AccessKey"),
SecretAccessKey: aws.String("SecretKey"),
SessionToken: aws.String("SessionToken"),
Expiration: aws.Int64(1611177743123),
},
}, nil
},
},
AccountID: "012345678901",
Region: "us-west-2",
RoleName: "TestRole",
StartURL: "https://valid-required-only",
ExpectedCredentials: credentials.Value{
AccessKeyID: "AccessKey",
SecretAccessKey: "SecretKey",
SessionToken: "SessionToken",
ProviderName: ProviderName,
},
ExpectedExpire: time.Date(2021, 01, 20, 21, 22, 23, 0.123e9, time.UTC),
},
"expired access token": {
StartURL: "https://expired",
ExpectedErr: true,
},
"api error": {
Client: mockClient{
ExpectedAccountID: "012345678901",
ExpectedRoleName: "TestRole",
<API key>: "us-west-2",
ExpectedAccess<API key>,
Response: func(mock mockClient) (*sso.<API key>, error) {
return nil, fmt.Errorf("api error")
},
},
AccountID: "012345678901",
Region: "us-west-2",
RoleName: "TestRole",
StartURL: "https://valid-required-only",
ExpectedErr: true,
},
}
for name, tt := range cases {
t.Run(name, func(t *testing.T) {
tt.Client.t = t
provider := &Provider{
Client: tt.Client,
AccountID: tt.AccountID,
RoleName: tt.RoleName,
StartURL: tt.StartURL,
}
provider.Expiry.CurrentTime = nowTime
credentials, err := provider.Retrieve()
if (err != nil) != tt.ExpectedErr {
t.Errorf("expect error: %v", tt.ExpectedErr)
}
if e, a := tt.ExpectedCredentials, credentials; !reflect.DeepEqual(e, a) {
t.Errorf("expect %v, got %v", e, a)
}
if !tt.ExpectedExpire.IsZero() {
if e, a := tt.ExpectedExpire, provider.ExpiresAt(); !e.Equal(a) {
t.Errorf("expect %v, got %v", e, a)
}
}
})
}
} |
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-
<html>
<head>
<title>AndHaveWord - ScalaTest 2.1.7 - org.scalatest.matchers.MatcherFactory2.AndHaveWord</title>
<meta name="description" content="AndHaveWord - ScalaTest 2.1.7 - org.scalatest.matchers.MatcherFactory2.AndHaveWord" />
<meta name="keywords" content="AndHaveWord ScalaTest 2.1.7 org.scalatest.matchers.MatcherFactory2.AndHaveWord" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link href="../../../lib/template.css" media="screen" type="text/css" rel="stylesheet" />
<link href="../../../lib/diagrams.css" media="screen" type="text/css" rel="stylesheet" id="diagrams-css" />
<script type="text/javascript" src="../../../lib/jquery.js" id="jquery-js"></script>
<script type="text/javascript" src="../../../lib/jquery-ui.js"></script>
<script type="text/javascript" src="../../../lib/template.js"></script>
<script type="text/javascript" src="../../../lib/tools.tooltip.js"></script>
<script type="text/javascript">
if(top === self) {
var url = '../../../index.html';
var hash = 'org.scalatest.matchers.MatcherFactory2$AndHaveWord';
var anchor = window.location.hash;
var anchor_opt = '';
if (anchor.length >= 1)
anchor_opt = '@' + anchor.substring(1);
window.location.href = url + '#' + hash + anchor_opt;
}
</script>
<script>
(function(i,s,o,g,r,a,m){i['<API key>']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.<API key>(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','
ga('create', 'UA-71294502-3', 'auto');
ga('send', 'pageview');
</script>
</head>
<body class="type">
<!-- Top of doc.scalatest.org [javascript] -->
<script type="text/javascript">
var rnd = window.rnd || Math.floor(Math.random()*10e6);
var pid204546 = window.pid204546 || rnd;
var plc204546 = window.plc204546 || 0;
var abkw = window.abkw || '';
var absrc = 'http://ab167933.adbutler-ikon.com/adserve/;ID=167933;size=468x60;setID=204546;type=js;sw='+screen.width+';sh='+screen.height+';spr='+window.devicePixelRatio+';kw='+abkw+';pid='+pid204546+';place='+(plc204546++)+';rnd='+rnd+';click=<API key>';
document.write('<scr'+'ipt src="'+absrc+'" type="text/javascript"></scr'+'ipt>');
</script>
<div id="definition">
<img src="../../../lib/class_big.png" />
<p id="owner"><a href="../../package.html" class="extype" name="org">org</a>.<a href="../package.html" class="extype" name="org.scalatest">scalatest</a>.<a href="package.html" class="extype" name="org.scalatest.matchers">matchers</a>.<a href="MatcherFactory2.html" class="extype" name="org.scalatest.matchers.MatcherFactory2">MatcherFactory2</a></p>
<h1>AndHaveWord</h1>
</div>
<h4 id="signature" class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">class</span>
</span>
<span class="symbol">
<span class="name">AndHaveWord</span><span class="result"> extends <span class="extype" name="scala.AnyRef">AnyRef</span></span>
</span>
</h4>
<div id="comment" class="fullcommenttop"><div class="comment cmt"><p>This class is part of the ScalaTest matchers DSL. Please see the documentation for <a href="../Matchers.html"><code>Matchers</code></a> for an overview of
the matchers DSL.
</p></div><dl class="attributes block"> <dt>Source</dt><dd><a href="https://github.com/scalatest/scalatest/tree/release-2.1.7-for-scala-2.10/src/main/scala/org/scalatest/matchers/MatcherFactory2.scala" target="_blank">MatcherFactory2.scala</a></dd></dl><div class="toggleContainer block">
<span class="toggle">Linear Supertypes</span>
<div class="superTypes hiddenContent"><span class="extype" name="scala.AnyRef">AnyRef</span>, <span class="extype" name="scala.Any">Any</span></div>
</div></div>
<div id="mbrsel">
<div id="textfilter"><span class="pre"></span><span class="input"><input id="mbrsel-input" type="text" accesskey="/" /></span><span class="post"></span></div>
<div id="order">
<span class="filtertype">Ordering</span>
<ol>
<li class="alpha in"><span>Alphabetic</span></li>
<li class="inherit out"><span>By inheritance</span></li>
</ol>
</div>
<div id="ancestors">
<span class="filtertype">Inherited<br />
</span>
<ol id="linearization">
<li class="in" name="org.scalatest.matchers.MatcherFactory2.AndHaveWord"><span>AndHaveWord</span></li><li class="in" name="scala.AnyRef"><span>AnyRef</span></li><li class="in" name="scala.Any"><span>Any</span></li>
</ol>
</div><div id="ancestors">
<span class="filtertype"></span>
<ol>
<li class="hideall out"><span>Hide All</span></li>
<li class="showall in"><span>Show all</span></li>
</ol>
<a href="http://docs.scala-lang.org/overviews/scaladoc/usage.html#members" target="_blank">Learn more about member selection</a>
</div>
<div id="visbl">
<span class="filtertype">Visibility</span>
<ol><li class="public in"><span>Public</span></li><li class="all out"><span>All</span></li></ol>
</div>
</div>
<div id="template">
<div id="allMembers">
<div id="constructors" class="members">
<h3>Instance Constructors</h3>
<ol><li name="org.scalatest.matchers.MatcherFactory2.AndHaveWord#<init>" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
<a id="<init>():MatcherFactory2.this.AndHaveWord"></a>
<a id="<init>:AndHaveWord"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">new</span>
</span>
<span class="symbol">
<span class="name">AndHaveWord</span><span class="params">()</span>
</span>
</h4>
</li></ol>
</div>
<div id="values" class="values members">
<h3>Value Members</h3>
<ol><li name="scala.AnyRef#!=" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="!=(x$1:AnyRef):Boolean"></a>
<a id="!=(AnyRef):Boolean"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span title="gt4s: $bang$eq" class="name">!=</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.AnyRef">AnyRef</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
</li><li name="scala.Any#!=" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="!=(x$1:Any):Boolean"></a>
<a id="!=(Any):Boolean"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span title="gt4s: $bang$eq" class="name">!=</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Any</dd></dl></div>
</li><li name="scala.AnyRef###" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="##():Int"></a>
<a id="##():Int"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span title="gt4s: $hash$hash" class="name">##</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
</li><li name="scala.AnyRef#==" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="==(x$1:AnyRef):Boolean"></a>
<a id="==(AnyRef):Boolean"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span title="gt4s: $eq$eq" class="name">==</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.AnyRef">AnyRef</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
</li><li name="scala.Any#==" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="==(x$1:Any):Boolean"></a>
<a id="==(Any):Boolean"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span title="gt4s: $eq$eq" class="name">==</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Any</dd></dl></div>
</li><li name="scala.Any#asInstanceOf" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="asInstanceOf[T0]:T0"></a>
<a id="asInstanceOf[T0]:T0"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">asInstanceOf</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="result">: <span class="extype" name="scala.Any.asInstanceOf.T0">T0</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Any</dd></dl></div>
</li><li name="scala.AnyRef#clone" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="clone():Object"></a>
<a id="clone():AnyRef"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">clone</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.AnyRef">AnyRef</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a href="../../../java$lang.html" class="extype" name="java.lang">java.lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
<span class="name">@throws</span><span class="args">()</span>
</dd></dl></div>
</li><li name="scala.AnyRef#eq" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="eq(x$1:AnyRef):Boolean"></a>
<a id="eq(AnyRef):Boolean"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">eq</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.AnyRef">AnyRef</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
</li><li name="scala.AnyRef#equals" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="equals(x$1:Any):Boolean"></a>
<a id="equals(Any):Boolean"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">equals</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
</li><li name="scala.AnyRef#finalize" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="finalize():Unit"></a>
<a id="finalize():Unit"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">finalize</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a href="../../../java$lang.html" class="extype" name="java.lang">java.lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
<span class="name">@throws</span><span class="args">()</span>
</dd></dl></div>
</li><li name="scala.AnyRef#getClass" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="getClass():Class[_]"></a>
<a id="getClass():Class[_]"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">getClass</span><span class="params">()</span><span class="result">: <span class="extype" name="java.lang.Class">Class</span>[_]</span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
</li><li name="scala.AnyRef#hashCode" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="hashCode():Int"></a>
<a id="hashCode():Int"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">hashCode</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
</li><li name="scala.Any#isInstanceOf" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="isInstanceOf[T0]:Boolean"></a>
<a id="isInstanceOf[T0]:Boolean"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">isInstanceOf</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Any</dd></dl></div>
</li><li name="org.scalatest.matchers.MatcherFactory2.AndHaveWord#length" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="length(expectedLength:Long):org.scalatest.matchers.MatcherFactory3[SC,TC1,TC2,org.scalatest.enablers.Length]"></a>
<a id="length(Long):MatcherFactory3[SC,TC1,TC2,Length]"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">length</span><span class="params">(<span name="expectedLength">expectedLength: <span class="extype" name="scala.Long">Long</span></span>)</span><span class="result">: <a href="MatcherFactory3.html" class="extype" name="org.scalatest.matchers.MatcherFactory3">MatcherFactory3</a>[<span class="extype" name="org.scalatest.matchers.MatcherFactory2.SC">SC</span>, <span class="extype" name="org.scalatest.matchers.MatcherFactory2.TC1">TC1</span>, <span class="extype" name="org.scalatest.matchers.MatcherFactory2.TC2">TC2</span>, <a href="../enablers/Length.html" class="extype" name="org.scalatest.enablers.Length">Length</a>]</span>
</span>
</h4>
<p class="shortcomment cmt">This method enables the following syntax given a <code>MatcherFactory2</code>:</p><div class="fullcomment"><div class="comment cmt"><p>This method enables the following syntax given a <code>MatcherFactory2</code>:</p><p><pre class="stHighlighted">
aMatcherFactory and have length (<span class="stLiteral">3</span> - <span class="stLiteral">1</span>)
^
</pre>
</p></div></div>
</li><li name="org.scalatest.matchers.MatcherFactory2.AndHaveWord#message" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="message(expectedMessage:String):org.scalatest.matchers.MatcherFactory3[SC,TC1,TC2,org.scalatest.enablers.Messaging]"></a>
<a id="message(String):MatcherFactory3[SC,TC1,TC2,Messaging]"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">message</span><span class="params">(<span name="expectedMessage">expectedMessage: <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <a href="MatcherFactory3.html" class="extype" name="org.scalatest.matchers.MatcherFactory3">MatcherFactory3</a>[<span class="extype" name="org.scalatest.matchers.MatcherFactory2.SC">SC</span>, <span class="extype" name="org.scalatest.matchers.MatcherFactory2.TC1">TC1</span>, <span class="extype" name="org.scalatest.matchers.MatcherFactory2.TC2">TC2</span>, <a href="../enablers/Messaging.html" class="extype" name="org.scalatest.enablers.Messaging">Messaging</a>]</span>
</span>
</h4>
<p class="shortcomment cmt">This method enables the following syntax given a <code>MatcherFactory2</code>:</p><div class="fullcomment"><div class="comment cmt"><p>This method enables the following syntax given a <code>MatcherFactory2</code>:</p><p><pre class="stHighlighted">
aMatcherFactory and have message (<span class="stQuotedString">"A message from Mars!"</span>)
^
</pre>
</p></div></div>
</li><li name="scala.AnyRef#ne" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="ne(x$1:AnyRef):Boolean"></a>
<a id="ne(AnyRef):Boolean"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">ne</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.AnyRef">AnyRef</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
</li><li name="scala.AnyRef#notify" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="notify():Unit"></a>
<a id="notify():Unit"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">notify</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
</li><li name="scala.AnyRef#notifyAll" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="notifyAll():Unit"></a>
<a id="notifyAll():Unit"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">notifyAll</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
</li><li name="org.scalatest.matchers.MatcherFactory2.AndHaveWord#size" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="size(expectedSize:Long):org.scalatest.matchers.MatcherFactory3[SC,TC1,TC2,org.scalatest.enablers.Size]"></a>
<a id="size(Long):MatcherFactory3[SC,TC1,TC2,Size]"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">size</span><span class="params">(<span name="expectedSize">expectedSize: <span class="extype" name="scala.Long">Long</span></span>)</span><span class="result">: <a href="MatcherFactory3.html" class="extype" name="org.scalatest.matchers.MatcherFactory3">MatcherFactory3</a>[<span class="extype" name="org.scalatest.matchers.MatcherFactory2.SC">SC</span>, <span class="extype" name="org.scalatest.matchers.MatcherFactory2.TC1">TC1</span>, <span class="extype" name="org.scalatest.matchers.MatcherFactory2.TC2">TC2</span>, <a href="../enablers/Size.html" class="extype" name="org.scalatest.enablers.Size">Size</a>]</span>
</span>
</h4>
<p class="shortcomment cmt">This method enables the following syntax given a <code>MatcherFactory2</code>:</p><div class="fullcomment"><div class="comment cmt"><p>This method enables the following syntax given a <code>MatcherFactory2</code>:</p><p><pre class="stHighlighted">
aMatcherFactory and have size (<span class="stLiteral">3</span> - <span class="stLiteral">1</span>)
^
</pre>
</p></div></div>
</li><li name="scala.AnyRef#synchronized" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="synchronized[T0](x$1:=>T0):T0"></a>
<a id="synchronized[T0](⇒T0):T0"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">synchronized</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="params">(<span name="arg0">arg0: ⇒ <span class="extype" name="java.lang.AnyRef.synchronized.T0">T0</span></span>)</span><span class="result">: <span class="extype" name="java.lang.AnyRef.synchronized.T0">T0</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
</li><li name="scala.AnyRef#toString" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="toString():String"></a>
<a id="toString():String"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">toString</span><span class="params">()</span><span class="result">: <span class="extype" name="java.lang.String">String</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
</li><li name="scala.AnyRef#wait" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="wait():Unit"></a>
<a id="wait():Unit"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">wait</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
<span class="name">@throws</span><span class="args">()</span>
</dd></dl></div>
</li><li name="scala.AnyRef#wait" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="wait(x$1:Long,x$2:Int):Unit"></a>
<a id="wait(Long,Int):Unit"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">wait</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Long">Long</span></span>, <span name="arg1">arg1: <span class="extype" name="scala.Int">Int</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
<span class="name">@throws</span><span class="args">()</span>
</dd></dl></div>
</li><li name="scala.AnyRef#wait" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="wait(x$1:Long):Unit"></a>
<a id="wait(Long):Unit"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">wait</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Long">Long</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
<span class="name">@throws</span><span class="args">()</span>
</dd></dl></div>
</li></ol>
</div>
</div>
<div id="inheritedMembers">
<div class="parent" name="scala.AnyRef">
<h3>Inherited from <span class="extype" name="scala.AnyRef">AnyRef</span></h3>
</div><div class="parent" name="scala.Any">
<h3>Inherited from <span class="extype" name="scala.Any">Any</span></h3>
</div>
</div>
<div id="groupedMembers">
<div class="group" name="Ungrouped">
<h3>Ungrouped</h3>
</div>
</div>
</div>
<div id="tooltip"></div>
<div id="footer"> </div>
</body>
</html> |
namespace StockSharp.Algo.Storages.Csv
{
using System;
using Ecng.Common;
using StockSharp.Messages;
<summary>
CSV helper class.
</summary>
static class CsvHelper
{
<summary>
<see cref="DateTime"/> format.
</summary>
public const string DateFormat = "yyyyMMdd";
<summary>
<see cref="TimeSpan"/> format with milliseconds.
</summary>
public const string TimeMlsFormat = "hhmmssfff";
<summary>
<see cref="TimeSpan"/> format.
</summary>
public const string TimeFormat = "hhmmss";
<summary>
<see cref="DateTime"/> parser.
</summary>
public static readonly FastDateTimeParser DateParser = new(DateFormat);
<summary>
<see cref="TimeSpan"/> parser.
</summary>
public static readonly FastTimeSpanParser TimeMlsParser = new(TimeMlsFormat);
<summary>
<see cref="TimeSpan"/> parser.
</summary>
public static readonly FastTimeSpanParser TimeParser = new(TimeFormat);
<summary>
Read <see cref="DateTimeOffset"/>.
</summary>
<param name="reader">CSV reader.</param>
<param name="date">Date.</param>
<returns><see cref="DateTimeOffset"/>.</returns>
public static DateTimeOffset ReadTime(this FastCsvReader reader, DateTime date)
{
if (reader == null)
throw new <API key>(nameof(reader));
return (date + reader.ReadString().ToTimeMls()).ToDateTimeOffset(TimeSpan.Parse(reader.ReadString().Remove("+")));
}
public static string WriteTimeMls(this TimeSpan time)
{
return time.ToString(TimeMlsFormat);
}
public static string WriteTime(this TimeSpan time)
{
return time.ToString(TimeFormat);
}
public static string WriteTimeMls(this DateTimeOffset time)
{
return time.UtcDateTime.TimeOfDay.WriteTimeMls();
}
public static string WriteDate(this DateTimeOffset time)
{
return time.UtcDateTime.ToString(DateFormat);
}
public static TimeSpan ToTimeMls(this string str)
{
return TimeMlsParser.Parse(str);
}
public static TimeSpan ToTime(this string str)
{
return TimeParser.Parse(str);
}
public static DateTime ToDateTime(this string str)
{
return DateParser.Parse(str);
}
private static readonly string[] _emptyDataType = new string[4];
public static string[] ToCsv(this DataType dataType)
{
if (dataType is null)
return _emptyDataType;
var (messageType, arg1, arg2, arg3) = dataType.Extract();
return new[] { messageType.To<string>(), arg1.To<string>(), arg2.To<string>(), arg3.To<string>() };
}
public static DataType ReadBuildFrom(this FastCsvReader reader)
{
if (reader is null)
throw new <API key>(nameof(reader));
var str = reader.ReadString();
if (str.IsEmpty())
{
reader.Skip(3);
return null;
}
return str.To<int>().ToDataType(reader.ReadLong(), reader.ReadDecimal(), reader.ReadInt());
}
}
} |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_151) on Wed Dec 04 18:43:10 MST 2019 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class org.wildfly.swarm.spi.api.SocketBindingGroup (BOM: * : All 2.5.1.Final-SNAPSHOT API)</title>
<meta name="date" content="2019-12-04">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class org.wildfly.swarm.spi.api.SocketBindingGroup (BOM: * : All 2.5.1.Final-SNAPSHOT API)";
}
}
catch(err) {
}
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="topNav"><a name="navbar.top">
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../../org/wildfly/swarm/spi/api/SocketBindingGroup.html" title="class in org.wildfly.swarm.spi.api">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../../../../../../overview-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">Thorntail API, 2.5.1.Final-SNAPSHOT</div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/wildfly/swarm/spi/api/class-use/SocketBindingGroup.html" target="_top">Frames</a></li>
<li><a href="SocketBindingGroup.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="<API key>">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!
allClassesLink = document.getElementById("<API key>");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
</script>
</div>
<a name="skip.navbar.top">
</a></div>
<div class="header">
<h2 title="Uses of Class org.wildfly.swarm.spi.api.SocketBindingGroup" class="title">Uses of Class<br>org.wildfly.swarm.spi.api.SocketBindingGroup</h2>
</div>
<div class="classUseContainer">
<ul class="blockList">
<li class="blockList">
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation">
<caption><span>Packages that use <a href="../../../../../../org/wildfly/swarm/spi/api/SocketBindingGroup.html" title="class in org.wildfly.swarm.spi.api">SocketBindingGroup</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Package</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="#org.wildfly.swarm.spi.api">org.wildfly.swarm.spi.api</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="org.wildfly.swarm.spi.api">
</a>
<h3>Uses of <a href="../../../../../../org/wildfly/swarm/spi/api/SocketBindingGroup.html" title="class in org.wildfly.swarm.spi.api">SocketBindingGroup</a> in <a href="../../../../../../org/wildfly/swarm/spi/api/package-summary.html">org.wildfly.swarm.spi.api</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../org/wildfly/swarm/spi/api/package-summary.html">org.wildfly.swarm.spi.api</a> that return <a href="../../../../../../org/wildfly/swarm/spi/api/SocketBindingGroup.html" title="class in org.wildfly.swarm.spi.api">SocketBindingGroup</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/wildfly/swarm/spi/api/SocketBindingGroup.html" title="class in org.wildfly.swarm.spi.api">SocketBindingGroup</a></code></td>
<td class="colLast"><span class="typeNameLabel">SocketBindingGroup.</span><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/spi/api/SocketBindingGroup.html
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/wildfly/swarm/spi/api/SocketBindingGroup.html" title="class in org.wildfly.swarm.spi.api">SocketBindingGroup</a></code></td>
<td class="colLast"><span class="typeNameLabel">SocketBindingGroup.</span><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/spi/api/SocketBindingGroup.html#<API key>.wildfly.swarm.spi.api.<API key>-"><API key></a></span>(<a href="../../../../../../org/wildfly/swarm/spi/api/<API key>.html" title="class in org.wildfly.swarm.spi.api"><API key></a> binding)</code>
<div class="block">Add an outbound socket-binding to this group.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/wildfly/swarm/spi/api/SocketBindingGroup.html" title="class in org.wildfly.swarm.spi.api">SocketBindingGroup</a></code></td>
<td class="colLast"><span class="typeNameLabel">SocketBindingGroup.</span><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/spi/api/SocketBindingGroup.html#portOffset-int-">portOffset</a></span>(int offset)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/wildfly/swarm/spi/api/SocketBindingGroup.html" title="class in org.wildfly.swarm.spi.api">SocketBindingGroup</a></code></td>
<td class="colLast"><span class="typeNameLabel">SocketBindingGroup.</span><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/spi/api/SocketBindingGroup.html
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/wildfly/swarm/spi/api/SocketBindingGroup.html" title="class in org.wildfly.swarm.spi.api">SocketBindingGroup</a></code></td>
<td class="colLast"><span class="typeNameLabel">SocketBindingGroup.</span><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/spi/api/SocketBindingGroup.html#socketBinding-org.wildfly.swarm.spi.api.SocketBinding-">socketBinding</a></span>(<a href="../../../../../../org/wildfly/swarm/spi/api/SocketBinding.html" title="class in org.wildfly.swarm.spi.api">SocketBinding</a> binding)</code>
<div class="block">Add a socket-binding to this group.</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="bottomNav"><a name="navbar.bottom">
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../../org/wildfly/swarm/spi/api/SocketBindingGroup.html" title="class in org.wildfly.swarm.spi.api">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../../../../../../overview-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">Thorntail API, 2.5.1.Final-SNAPSHOT</div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/wildfly/swarm/spi/api/class-use/SocketBindingGroup.html" target="_top">Frames</a></li>
<li><a href="SocketBindingGroup.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="<API key>">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!
allClassesLink = document.getElementById("<API key>");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
</script>
</div>
<a name="skip.navbar.bottom">
</a></div>
<p class="legalCopy"><small>Copyright &
</body>
</html> |
declare module Bridge {
export type TypeRef<T> = { prototype: { valueOf(): T } | T };
export function global<T>(): T;
export function emptyFn(): Function;
export function box<T>(v: T, type: { prototype: T }): { v: T, type: { prototype: T } };
export function unbox(obj: any, noclone?: boolean): any;
export function property(scope: any, name: string, defaultValue: any): void;
export function event(scope: any, name: string, defaultValue: any): void;
export function copy<T>(to: T, from: T, keys: string[], toIf?: boolean): T;
export function copy<T>(to: T, from: T, keys: string, toIf?: boolean): T;
export function ns(ns: string, scope?: any): any;
export function ready(fn: { (): void }): void;
export function on(event: string, el: HTMLElement, fn: Function): void;
export function getHashCode(value: any, safe: boolean): number;
export function getDefaultValue<T>(type: TypeRef<T>): T;
export function getTypeName(obj: any): string;
export function is(obj: any, type: any, ignoreFn?: boolean): boolean;
export function as<T>(obj: any, type: TypeRef<T>): T;
export function cast<T>(obj: any, type: TypeRef<T>): T;
export function apply<T>(obj: T, values: any): T;
export function merge<T>(to: T, from: T): T;
export function getEnumerator(obj: any): System.Collections.IEnumerator;
export function getPropertyNames(obj: any, includeFunctions?: boolean): string[];
export function isDefined(value: any, noNull?: boolean): boolean;
export function isEmpty(value: any, allowEmpty?: boolean): boolean;
export function toArray(ienumerable: any[]): any[];
export function toArray<T>(ienumerable: T[]): T[];
export function toArray<T>(ienumerable: any): T[];
export function isArray(obj: any): boolean;
export function isFunction(obj: any): boolean;
export function isDate(obj: any): boolean;
export function isNull(obj: any): boolean;
export function isBoolean(obj: any): boolean;
export function isNumber(obj: any): boolean;
export function isString(obj: any): boolean;
export function unroll(value: string): any;
export function equals(a: any, b: any): boolean;
export function objectEquals(a: any, b: any): boolean;
export function deepEquals(a: any, b: any): boolean;
export function compare(a: any, b: any, safe?: boolean): boolean;
export function equalsT(a: any, b: any): boolean;
export function format(obj: any, formatString?: string): string;
export function getType(instance: any): any;
export function isLower(c: number): boolean;
export function isUpper(c: number): boolean;
export interface fnMethods {
call(obj: any, fnName: string): any;
bind(obj: any, method: Function, args?: any[], appendArgs?: boolean): Function;
bindScope(obj: any, method: Function): Function;
combine(fn1: Function, fn2: Function): Function;
remove(fn1: Function, fn2: Function): Function;
}
var fn: fnMethods;
export interface Array {
get(arr: any[], indices: number[]): any;
set(arr: any[], indices: number[], value: any): void;
getLength(arr: any[], dimension: number): number;
getRank(arr: any[]): number;
create(defValue: any, initValues: any[], sizes: number[]): any[];
toEnumerable(array: any[]): System.Collections.IEnumerable;
toEnumerable<T>(array: T[]): System.Collections.Generic.IEnumerable$1<T>;
toEnumerator(array: any[]): System.Collections.IEnumerator;
toEnumerator<T>(array: T[]): System.Collections.Generic.IEnumerator$1<T>;
}
var Array: Array;
export interface Class {
define(className: string, props: any): Function;
define(className: string, scope: any, props: any): Function;
generic(className: string, props: any): Function;
generic(className: string, scope: any, props: any): Function;
}
var Class: Class;
export function define(className: string, props: any): Function;
export function define(className: string, scope: any, props: any): Function;
export class ErrorException extends System.Exception {
constructor(error: Error);
getError(): Error;
}
export interface IPromise {
then(fulfilledHandler: Function, errorHandler?: Function): void;
}
var IPromise: Function;
export interface Int extends System.IComparable$1<Int>, System.IEquatable$1<Int> {
instanceOf(instance: any): boolean;
getDefaultValue(): number;
format(num: number, format?: string, provider?: System.Globalization.NumberFormatInfo): string;
parseFloat(str: string, provider?: System.Globalization.NumberFormatInfo): number;
tryParseFloat(str: string, provider: System.Globalization.NumberFormatInfo, result: { v: number }): boolean;
parseInt(str: string, min?: number, max?: number, radix?: number): number;
tryParseInt(str: string, result: { v: number }, min?: number, max?: number, radix?: number): boolean;
trunc(num: number): number;
div(x: number, y: number): number;
}
var Int: Int;
export interface Browser {
isStrict: boolean;
isIEQuirks: boolean;
isOpera: boolean;
isOpera10_5: boolean;
isWebKit: boolean;
isChrome: boolean;
isSafari: boolean;
isSafari3: boolean;
isSafari4: boolean;
isSafari5: boolean;
isSafari5_0: boolean;
isSafari2: boolean;
isIE: boolean;
isIE6: boolean;
isIE7: boolean;
isIE7m: boolean;
isIE7p: boolean;
isIE8: boolean;
isIE8m: boolean;
isIE8p: boolean;
isIE9: boolean;
isIE9m: boolean;
isIE9p: boolean;
isIE10: boolean;
isIE10m: boolean;
isIE10p: boolean;
isIE11: boolean;
isIE11m: boolean;
isIE11p: boolean;
isGecko: boolean;
isGecko3: boolean;
isGecko4: boolean;
isGecko5: boolean;
isGecko10: boolean;
isFF3_0: boolean;
isFF3_5: boolean;
isFF3_6: boolean;
isFF4: boolean;
isFF5: boolean;
isFF10: boolean;
isLinux: boolean;
isWindows: boolean;
isMac: boolean;
chromeVersion: number;
firefoxVersion: number;
ieVersion: number;
operaVersion: number;
safariVersion: number;
webKitVersion: number;
isSecure: boolean;
isiPhone: boolean;
isiPod: boolean;
isiPad: boolean;
isBlackberry: boolean;
isAndroid: boolean;
isDesktop: boolean;
isTablet: boolean;
isPhone: boolean;
iOS: boolean;
standalone: boolean;
}
var Browser: Browser;
export class CustomEnumerator implements System.Collections.IEnumerator {
constructor(moveNext: Function, getCurrent: Function, reset?: Function, dispose?: Function, scope?: any);
moveNext(): boolean;
getCurrent(): any;
reset(): void;
dispose(): void;
readonly Current: any;
}
export class ArrayEnumerator implements System.Collections.IEnumerator {
constructor(array: any[]);
moveNext(): boolean;
getCurrent(): any;
reset(): void;
dispose(): void;
readonly Current: any;
}
export class ArrayEnumerable implements System.Collections.IEnumerable {
constructor(array: any[]);
getEnumerator(): ArrayEnumerator;
}
export interface Validation {
isNull(value: any): boolean;
isEmpty(value: any): boolean;
<API key>(value: any): boolean;
isNotNull(value: any): boolean;
isNotEmpty(value: any): boolean;
email(value: string): boolean;
url(value: string): boolean;
alpha(value: string): boolean;
alphaNum(value: string): boolean;
creditCard(value: string, type: string): boolean;
}
var Validation: Validation;
module Collections {
export interface EnumerableHelpers {
}
export interface <API key> extends Function {
prototype: Bridge.Collections.EnumerableHelpers;
new (): Bridge.Collections.EnumerableHelpers;
toArray<T>(T: { prototype: T }, source: System.Collections.Generic.IEnumerable$1<T>): T[];
toArray$1<T>(T: { prototype: T }, source: System.Collections.Generic.IEnumerable$1<T>, length: { v: number }): T[];
}
var EnumerableHelpers: <API key>;
}
}
declare module System {
export class Object {
}
export class Attribute {
}
export interface Nullable {
hasValue(obj: any): boolean;
getValue<T>(obj: T): T;
getValue(obj: any): any;
getValueOrDefault<T>(obj: T, defValue: T): T;
add(a: number, b: number): number;
band<T>(a: number, b: number): number;
bor<T>(a: number, b: number): number;
and<T>(a: boolean, b: boolean): boolean;
or<T>(a: boolean, b: boolean): boolean;
div(a: number, b: number): number;
eq(a: any, b: any): boolean;
xor(a: number, b: number): number;
gt(a: any, b: any): boolean;
gte(a: any, b: any): boolean;
neq(a: any, b: any): boolean;
lt(a: any, b: any): boolean;
lte(a: any, b: any): boolean;
mod(a: number, b: number): number;
mul(a: number, b: number): number;
sl(a: number, b: number): number;
sr(a: number, b: number): number;
sub(a: number, b: number): number;
bnot(a: number): number;
neg(a: number): number;
not(a: boolean): boolean;
pos(a: number): number;
}
var Nullable: Nullable;
export interface Char {
isWhiteSpace(value: string): boolean;
isDigit(value: number): boolean;
isLetter(value: number): boolean;
isHighSurrogate(value: number): boolean;
isLowSurrogate(value: number): boolean;
isSurrogate(value: number): boolean;
isSymbol(value: number): boolean;
isSeparator(value: number): boolean;
isPunctuation(value: number): boolean;
isNumber(value: number): boolean;
isControl(value: number): boolean;
}
var Char: Char;
export interface String {
isNullOrWhiteSpace(value: string): boolean;
isNullOrEmpty(value: string): boolean;
fromCharCount(c: number, count: number): string;
format(str: string, ...args: any[]): string;
alignString(str: string, alignment: number, pad: string, dir: number): string;
startsWith(str: string, prefix: string): boolean;
endsWith(str: string, suffix: string): boolean;
contains(str: string, value: string): string;
indexOfAny(str: string, anyOf: number[], startIndex?: number, length?: number): number;
indexOf(str: string, value: string): number;
compare(strA: string, strB: string): number;
toCharArray(str: string, startIndex: number, length: number): number[];
}
var String: String;
export class Exception {
constructor(message: string, innerException?: Exception);
getMessage(): string;
getInnerException(): Exception;
getStackTrace(): any;
getData<T>(): T;
toString(): string;
static create(error: string): Exception;
static create(error: Error): Exception;
}
export class SystemException extends Exception {
constructor(message: string, innerException: Exception);
constructor(message: string);
}
export class <API key> extends SystemException {
constructor(message: string, innerException: Exception);
constructor(message: string);
}
export class <API key> extends SystemException {
constructor(message: string, innerException: Exception);
constructor(message: string);
}
export class ArgumentException extends Exception {
constructor(message: string, paramName: string, innerException: Exception);
constructor(message: string, innerException: Exception);
constructor(message: string);
getParamName(): string;
}
export class <API key> extends ArgumentException {
constructor(paramName: string, message?: string, innerException?: Exception);
}
export class <API key> extends ArgumentException {
constructor(paramName: string, message?: string, innerException?: Exception, actualValue?: any);
getActualValue<T>(): T;
}
export class ArithmeticException extends Exception {
constructor(message?: string, innerException?: Exception);
}
export class <API key> extends ArithmeticException {
constructor(message?: string, innerException?: Exception);
}
export class OverflowException extends ArithmeticException {
constructor(message?: string, innerException?: Exception);
}
export class FormatException extends Exception {
constructor(message?: string, innerException?: Exception);
}
export class <API key> extends Exception {
constructor(message?: string, innerException?: Exception);
}
export class <API key> extends Exception {
constructor(message?: string, innerException?: Exception);
}
export class <API key> extends Exception {
constructor(message?: string, innerException?: Exception);
}
export class <API key> extends Exception {
constructor(message?: string, innerException?: Exception);
}
export class <API key> extends Exception {
constructor(message?: string, innerException?: Exception);
}
export interface IFormattable {
format(format: string, formatProvider: IFormatProvider): string;
}
var IFormattable: Function;
export interface IComparable {
compareTo(obj: any): number;
}
var IComparable: Function;
export interface IFormatProvider {
getFormat(formatType: any): any;
}
export interface ICloneable {
clone(): any;
}
var ICloneable: Function;
export interface IComparable$1<T> {
compareTo(other: T): number;
}
export function IComparable$1<T>(t: Bridge.TypeRef<T>): {
prototype: IComparable$1<T>;
}
export interface IEquatable$1<T> {
equalsT(other: T): boolean;
}
export function IEquatable$1<T>(t: Bridge.TypeRef<T>): {
prototype: IEquatable$1<T>;
}
export interface IDisposable {
dispose(): void;
}
var IDisposable: Function;
export interface DateTime {
utcNow(): Date;
today(): Date;
format(date: Date, format?: string, provider?: System.Globalization.DateTimeFormatInfo): string;
parse(value: string, provider?: System.Globalization.DateTimeFormatInfo): Date;
parseExact(str: string, format?: string, provider?: System.Globalization.DateTimeFormatInfo, silent?: boolean): Date;
tryParse(str: string, provider: System.Globalization.DateTimeFormatInfo, result: { v: Date }): boolean;
tryParseExact(str: string, format: string, provider: System.Globalization.DateTimeFormatInfo, result: { v: Date }): boolean;
<API key>(dt: Date): boolean;
toUTC(dt: Date): Date;
toLocal(dt: Date): Date;
}
var DateTime: DateTime;
export interface Guid extends System.IEquatable$1<System.Guid>, System.IComparable$1<System.Guid>, System.IFormattable {
equalsT(o: System.Guid): boolean;
compareTo(value: System.Guid): number;
toString(): string;
toString$1(format: string): string;
format(format: string, formatProvider: System.IFormatProvider): string;
toByteArray(): number[];
getHashCode(): System.Guid;
$clone(to: System.Guid): System.Guid;
}
export interface GuidFunc extends Function {
prototype: Guid;
$ctor4: {
new (uuid: string): Guid;
};
$ctor1: {
new (b: number[]): Guid;
};
$ctor5: {
new (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number): Guid;
};
$ctor3: {
new (a: number, b: number, c: number, d: number[]): Guid;
};
$ctor2: {
new (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number): Guid;
};
ctor: {
new (): Guid;
};
empty: System.Guid;
parse(input: string): System.Guid;
parseExact(input: string, format: string): System.Guid;
tryParse(input: string, result: { v: System.Guid }): boolean;
tryParseExact(input: string, format: string, result: { v: System.Guid }): boolean;
newGuid(): System.Guid;
op_Equality(a: System.Guid, b: System.Guid): boolean;
op_Inequality(a: System.Guid, b: System.Guid): boolean;
}
var Guid: GuidFunc;
export class TimeSpan implements IComparable, IComparable$1<TimeSpan>, IEquatable$1<TimeSpan> {
static fromDays(value: number): TimeSpan;
static fromHours(value: number): TimeSpan;
static fromMilliseconds(value: number): TimeSpan;
static fromMinutes(value: number): TimeSpan;
static fromSeconds(value: number): TimeSpan;
static fromTicks(value: number): TimeSpan;
static getDefaultValue(): TimeSpan;
constructor();
getTicks(): number;
getDays(): number;
getHours(): number;
getMilliseconds(): number;
getMinutes(): number;
getSeconds(): number;
getTotalDays(): number;
getTotalHours(): number;
<API key>(): number;
getTotalMinutes(): number;
getTotalSeconds(): number;
get12HourHour(): number;
add(ts: TimeSpan): TimeSpan;
subtract(ts: TimeSpan): TimeSpan;
duration(): TimeSpan;
negate(): TimeSpan;
compareTo(other: TimeSpan): number;
equalsT(other: TimeSpan): boolean;
format(str: string, provider?: System.Globalization.DateTimeFormatInfo): string;
toString(str: string, provider?: System.Globalization.DateTimeFormatInfo): string;
}
export interface Random {
sample(): number;
internalSample(): number;
next(): number;
next$2(minValue: number, maxValue: number): number;
next$1(maxValue: number): number;
nextDouble(): number;
nextBytes(buffer: number[]): void;
}
export interface RandomFunc extends Function {
prototype: Random;
ctor: {
new (): Random;
};
$ctor1: {
new (seed: number): Random;
};
}
var Random: RandomFunc;
module Collections {
export interface IEnumerable {
getEnumerator(): IEnumerator;
}
var IEnumerable: Function;
export interface IEnumerator {
getCurrent(): any;
moveNext(): boolean;
reset(): void;
readonly Current: any;
}
var IEnumerator: Function;
export interface IEqualityComparer {
equals(x: any, y: any): boolean;
getHashCode(obj: any): number;
}
var IEqualityComparer: Function;
export interface ICollection extends IEnumerable {
getCount(): number;
System$Collections$IList$Count: number;
Count: number;
}
var ICollection: Function;
export interface BitArray extends System.Collections.ICollection, System.ICloneable {
getItem(index: number): boolean;
setItem(index: number, value: boolean): void;
Length: number;
Count: number;
IsReadOnly: boolean;
IsSynchronized: boolean;
copyTo(array: Array<any>, index: number): void;
get(index: number): boolean;
set(index: number, value: boolean): void;
setAll(value: boolean): void;
and(value: System.Collections.BitArray): System.Collections.BitArray;
or(value: System.Collections.BitArray): System.Collections.BitArray;
xor(value: System.Collections.BitArray): System.Collections.BitArray;
not(): System.Collections.BitArray;
clone(): any;
getEnumerator(): System.Collections.IEnumerator;
}
export interface BitArrayFunc extends Function {
prototype: BitArray;
<API key>: System.Collections.BitArray.<API key>;
$ctor3: {
new (length: number): BitArray
};
$ctor4: {
new (length: number, defaultValue: boolean): BitArray
};
$ctor1: {
new (bytes: number[]): BitArray
};
ctor: {
new (values: boolean[]): BitArray
};
$ctor5: {
new (values: number[]): BitArray
};
$ctor2: {
new (bits: System.Collections.BitArray): BitArray
};
getArrayLength(n: number, div: number): number;
}
var BitArray: BitArrayFunc;
module BitArray {
export interface <API key> extends System.Collections.IEnumerator {
Current: any;
moveNext(): boolean;
reset(): void;
}
export interface <API key> extends Function {
prototype: <API key>;
}
}
export interface HashHelpers {
}
export interface HashHelpersFunc extends Function {
prototype: HashHelpers;
new (): HashHelpers;
primes: number[];
MaxPrimeArrayLength: number;
isPrime(candidate: number): boolean;
getPrime(min: number): number;
getMinPrime(): number;
expandPrime(oldSize: number): number;
}
var HashHelpers: HashHelpersFunc;
export interface IList extends System.Collections.ICollection, System.Collections.IEnumerable {
System$Collections$IList$getItem(index: number): any;
getItem(index: number): any;
System$Collections$IList$setItem(index: number, value: any): void;
setItem(index: number, value: any): void;
System$Collections$IList$IsReadOnly: boolean;
IsReadOnly: boolean;
add(item: any): number;
System$Collections$IList$add(item: any): number;
clear(): void;
System$Collections$IList$clear(): void;
contains(item: any): boolean;
System$Collections$IList$contains(item: any): boolean;
indexOf(item: any): number;
System$Collections$IList$indexOf(item: any): number;
insert(index: number, item: any): void;
System$Collections$IList$insert(index: number, item: any): void;
removeAt(index: number): void;
System$Collections$IList$removeAt(index: number): void;
remove(item: any): void;
System$Collections$IList$remove(item: any): void;
}
module Generic {
export class <API key> extends Exception {
constructor(message?: string, innerException?: Exception);
}
export interface IEnumerator$1<T> extends IEnumerator {
getCurrent(): T;
readonly Current: T;
}
export function IEnumerator$1<T>(t: Bridge.TypeRef<T>): {
prototype: IEnumerator$1<T>;
}
export interface IEnumerable$1<T> extends IEnumerable {
getEnumerator(): IEnumerator$1<T>;
}
export function IEnumerable$1<T>(t: Bridge.TypeRef<T>): {
prototype: IEnumerable$1<T>;
}
export interface ICollection$1<T> extends IEnumerable$1<T> {
getCount(): number;
add(item: T): void;
clear(): void;
contains(item: T): boolean;
remove(item: T): boolean;
}
export function ICollection$1<T>(t: Bridge.TypeRef<T>): {
prototype: ICollection$1<T>;
}
export interface IEqualityComparer$1<T> extends IEqualityComparer {
equals(x: T, y: T): boolean;
getHashCode(obj: T): number;
}
export function IEqualityComparer$1<T>(t: Bridge.TypeRef<T>): {
prototype: IEqualityComparer$1<T>;
}
export interface IDictionary$2<TKey, TValue> extends IEnumerable$1<KeyValuePair$2<TKey, TValue>> {
get(key: TKey): TValue;
set(key: TKey, value: TValue): void;
getKeys(): ICollection$1<TKey>;
getValues(): ICollection$1<TValue>;
getCount(): number;
containsKey(key: TKey): boolean;
add(key: TKey, value: TValue): void;
remove(key: TKey): boolean;
tryGetValue(key: TKey, value: { v: TValue }): boolean;
}
export function IDictionary$2<TKey, TValue>(tKey: Bridge.TypeRef<TKey>, tValue: Bridge.TypeRef<TValue>): {
prototype: IDictionary$2<TKey, TValue>;
}
export interface IList$1<T> extends ICollection$1<T> {
getItem(index: number): T;
setItem(index: number, value: T): void;
indexOf(item: T): number;
insert(index: number, item: T): void;
removeAt(index: number): void;
}
export function IList$1<T>(t: Bridge.TypeRef<T>): {
prototype: IList$1<T>;
}
export interface IComparer$1<T> {
compare(x: T, y: T): number;
}
export function IComparer$1<T>(t: Bridge.TypeRef<T>): {
prototype: IComparer$1<T>;
}
export interface EqualityComparer$1<T> extends IEqualityComparer$1<T> {
equals(x: T, y: T): boolean;
getHashCode(obj: T): number;
}
export function EqualityComparer$1<T>(t: Bridge.TypeRef<T>): {
prototype: EqualityComparer$1<T>;
new (): EqualityComparer$1<T>;
}
export interface Comparer$1<T> extends IComparer$1<T> {
compare(x: T, y: T): number;
}
export function Comparer$1<T>(t: Bridge.TypeRef<T>): {
prototype: Comparer$1<T>;
new (fn: { (x: T, y: T): number }): Comparer$1<T>;
}
export interface KeyValuePair$2<TKey, TValue> {
key: TKey;
value: TValue;
}
export function KeyValuePair$2<TKey, TValue>(tKey: Bridge.TypeRef<TKey>, tValue: Bridge.TypeRef<TValue>): {
prototype: KeyValuePair$2<TKey, TValue>;
new (key: TKey, value: TValue): KeyValuePair$2<TKey, TValue>;
}
export interface Dictionary$2<TKey, TValue> extends IDictionary$2<TKey, TValue> {
getKeys(): ICollection$1<TKey>;
getValues(): ICollection$1<TValue>;
clear(): void;
containsKey(key: TKey): boolean;
containsValue(value: TValue): boolean;
get(key: TKey): TValue;
set(key: TKey, value: TValue, add?: boolean): void;
add(key: TKey, value: TValue): void;
remove(key: TKey): boolean;
getCount(): number;
getComparer(): IEqualityComparer$1<TKey>;
tryGetValue(key: TKey, value: { v: TValue }): boolean;
getEnumerator(): IEnumerator$1<KeyValuePair$2<TKey, TValue>>;
}
export function Dictionary$2<TKey, TValue>(tKey: Bridge.TypeRef<TKey>, tValue: Bridge.TypeRef<TValue>): {
prototype: Dictionary$2<TKey, TValue>;
new (): Dictionary$2<TKey, TValue>;
new (obj: Dictionary$2<TKey, TValue>, comparer?: IEqualityComparer$1<TKey>): Dictionary$2<TKey, TValue>;
new (obj: any, comparer?: IEqualityComparer$1<TKey>): Dictionary$2<TKey, TValue>;
}
export interface List$1<T> extends System.Collections.Generic.IList$1<T> {
Capacity: number;
Count: number;
System$Collections$IList$IsReadOnly: boolean;
getItem(index: number): T;
setItem(index: number, value: T): void;
System$Collections$IList$getItem(index: number): any;
System$Collections$IList$setItem(index: number, value: any): void;
add(item: T): void;
System$Collections$IList$add(item: any): number;
addRange(collection: System.Collections.Generic.IEnumerable$1<T>): void;
asReadOnly(): System.Collections.ObjectModel.ReadOnlyCollection$1<T>;
binarySearch$2(index: number, count: number, item: T, comparer: System.Collections.Generic.IComparer$1<T>): number;
binarySearch(item: T): number;
binarySearch$1(item: T, comparer: System.Collections.Generic.IComparer$1<T>): number;
clear(): void;
contains(item: T): boolean;
System$Collections$IList$contains(item: any): boolean;
convertAll<TOutput>(TOutput: {prototype: TOutput}, converter: {(input: T): TOutput}): System.Collections.Generic.List$1<TOutput>;
copyTo$1(array: T[]): void;
System$Collections$ICollection$copyTo(array: any[], arrayIndex: number): void;
copyTo$2(index: number, array: T[], arrayIndex: number, count: number): void;
copyTo(array: T[], arrayIndex: number): void;
ensureCapacity(min: number): void;
exists(match: {(obj: T): boolean}): boolean;
find(match: {(obj: T): boolean}): T;
findAll(match: {(obj: T): boolean}): System.Collections.Generic.List$1<T>;
findIndex$2(match: {(obj: T): boolean}): number;
findIndex$1(startIndex: number, match: {(obj: T): boolean}): number;
findIndex(startIndex: number, count: number, match: {(obj: T): boolean}): number;
findLast(match: {(obj: T): boolean}): T;
findLastIndex$2(match: {(obj: T): boolean}): number;
findLastIndex$1(startIndex: number, match: {(obj: T): boolean}): number;
findLastIndex(startIndex: number, count: number, match: {(obj: T): boolean}): number;
forEach(action: {(arg: T): void}): void;
getEnumerator(): IEnumerator$1<T>;
System$Collections$IEnumerable$getEnumerator(): System.Collections.IEnumerator;
getRange(index: number, count: number): System.Collections.Generic.List$1<T>;
indexOf(item: T): number;
System$Collections$IList$indexOf(item: any): number;
indexOf$1(item: T, index: number): number;
indexOf$2(item: T, index: number, count: number): number;
insert(index: number, item: T): void;
System$Collections$IList$insert(index: number, item: any): void;
insertRange(index: number, collection: System.Collections.Generic.IEnumerable$1<T>): void;
lastIndexOf(item: T): number;
lastIndexOf$1(item: T, index: number): number;
lastIndexOf$2(item: T, index: number, count: number): number;
remove(item: T): boolean;
System$Collections$IList$remove(item: any): void;
removeAll(match: {(obj: T): boolean}): number;
removeAt(index: number): void;
removeRange(index: number, count: number): void;
reverse(): void;
reverse$1(index: number, count: number): void;
sort(): void;
sort$1(comparer: System.Collections.Generic.IComparer$1<T>): void;
sort$3(index: number, count: number, comparer: System.Collections.Generic.IComparer$1<T>): void;
sort$2(comparison: {(x: T, y: T): number}): void;
toArray(): T[];
trimExcess(): void;
trueForAll(match: {(obj: T): boolean}): boolean;
toJSON(): any;
}
export interface List$1Func extends Function {
<T>($T: Bridge.TypeRef<T>): {
prototype: List$1<T>;
new (): List$1<T>;
ctor: {
new (): List$1<T>
};
$ctor2: {
new (capacity: number): List$1<T>
};
$ctor1: {
new (collection: System.Collections.Generic.IEnumerable$1<T>): List$1<T>
new (collection: T[]): List$1<T>
};
isCompatibleObject(value: any): boolean;
}
}
var List$1: List$1Func;
export interface BitHelper {
markBit(bitPosition: number): void;
isMarked(bitPosition: number): boolean;
}
export interface BitHelperFunc extends Function {
prototype: BitHelper;
toIntArrayLength(n: number): number;
}
var BitHelper: BitHelperFunc;
export interface ISet$1<T> extends System.Collections.Generic.ICollection$1<T> {
add(item: T): boolean;
unionWith(other: System.Collections.Generic.IEnumerable$1<T>): void;
intersectWith(other: System.Collections.Generic.IEnumerable$1<T>): void;
exceptWith(other: System.Collections.Generic.IEnumerable$1<T>): void;
symmetricExceptWith(other: System.Collections.Generic.IEnumerable$1<T>): void;
isSubsetOf(other: System.Collections.Generic.IEnumerable$1<T>): boolean;
isSupersetOf(other: System.Collections.Generic.IEnumerable$1<T>): boolean;
isProperSupersetOf(other: System.Collections.Generic.IEnumerable$1<T>): boolean;
isProperSubsetOf(other: System.Collections.Generic.IEnumerable$1<T>): boolean;
overlaps(other: System.Collections.Generic.IEnumerable$1<T>): boolean;
setEquals(other: System.Collections.Generic.IEnumerable$1<T>): boolean;
}
export interface HashSet$1<T> extends System.Collections.Generic.ICollection$1<T>, System.Collections.Generic.ISet$1<T> {
Count: number;
IsReadOnly: boolean;
Comparer: System.Collections.Generic.IEqualityComparer$1<T>;
//"System$Collections$Generic$ICollection$1$" + Bridge.getTypeAlias(T) + "$add"(item: T): void;
add(item: T): boolean;
clear(): void;
arrayClear(array: Array<any>, index: number, length: number): void;
contains(item: T): boolean;
copyTo(array: T[], arrayIndex: number): void;
copyTo$1(array: T[]): void;
copyTo$2(array: T[], arrayIndex: number, count: number): void;
remove(item: T): boolean;
getEnumerator(): System.Collections.Generic.HashSet$1.Enumerator<T>;
//"System$Collections$Generic$IEnumerable$1$" + Bridge.getTypeAlias(T) + "$getEnumerator"(): System.Collections.Generic.IEnumerator$1<T>;
System$Collections$IEnumerable$getEnumerator(): System.Collections.IEnumerator;
unionWith(other: System.Collections.Generic.IEnumerable$1<T>): void;
intersectWith(other: System.Collections.Generic.IEnumerable$1<T>): void;
exceptWith(other: System.Collections.Generic.IEnumerable$1<T>): void;
symmetricExceptWith(other: System.Collections.Generic.IEnumerable$1<T>): void;
isSubsetOf(other: System.Collections.Generic.IEnumerable$1<T>): boolean;
isProperSubsetOf(other: System.Collections.Generic.IEnumerable$1<T>): boolean;
isSupersetOf(other: System.Collections.Generic.IEnumerable$1<T>): boolean;
isProperSupersetOf(other: System.Collections.Generic.IEnumerable$1<T>): boolean;
overlaps(other: System.Collections.Generic.IEnumerable$1<T>): boolean;
setEquals(other: System.Collections.Generic.IEnumerable$1<T>): boolean;
removeWhere(match: { (arg: T): boolean }): number;
trimExcess(): void;
initialize(capacity: number): void;
increaseCapacity(): void;
setCapacity(newSize: number, forceNewHashCodes: boolean): void;
addIfNotPresent(value: T): boolean;
containsAllElements(other: System.Collections.Generic.IEnumerable$1<T>): boolean;
<API key>(other: System.Collections.Generic.HashSet$1<T>): boolean;
<API key>(other: System.Collections.Generic.HashSet$1<T>): void;
<API key>(other: System.Collections.Generic.IEnumerable$1<T>): void;
internalIndexOf(item: T): number;
<API key>(other: System.Collections.Generic.HashSet$1<T>): void;
<API key>(other: System.Collections.Generic.IEnumerable$1<T>): void;
addOrGetLocation(value: T, location: { v: number }): boolean;
<API key>(other: System.Collections.Generic.IEnumerable$1<T>, returnIfUnfound: boolean): System.Collections.Generic.HashSet$1.ElementCount<T>;
toArray(): T[];
internalGetHashCode(item: T): number;
}
export interface HashSet$1Func extends Function {
<T>($T: Bridge.TypeRef<T>): {
prototype: HashSet$1<T>;
ElementCount: System.Collections.Generic.HashSet$1.ElementCountFunc;
Enumerator: System.Collections.Generic.HashSet$1.EnumeratorFunc;
Slot: System.Collections.Generic.HashSet$1.SlotFunc;
new (): HashSet$1<T>;
ctor: {
new (): HashSet$1<T>
};
$ctor3: {
new (comparer: System.Collections.Generic.IEqualityComparer$1<T>): HashSet$1<T>
};
$ctor1: {
new (collection: System.Collections.Generic.IEnumerable$1<T>): HashSet$1<T>
};
$ctor2: {
new (collection: System.Collections.Generic.IEnumerable$1<T>, comparer: System.Collections.Generic.IEqualityComparer$1<T>): HashSet$1<T>
};
hashSetEquals(set1: System.Collections.Generic.HashSet$1<T>, set2: System.Collections.Generic.HashSet$1<T>, comparer: System.Collections.Generic.IEqualityComparer$1<T>): boolean;
<API key>(set1: System.Collections.Generic.HashSet$1<T>, set2: System.Collections.Generic.HashSet$1<T>): boolean;
}
}
var HashSet$1: HashSet$1Func;
module HashSet$1 {
export interface ElementCount<T> {
getHashCode(): System.Collections.Generic.HashSet$1.ElementCount<T>;
equals(o: System.Collections.Generic.HashSet$1.ElementCount<T>): Boolean;
$clone(to: System.Collections.Generic.HashSet$1.ElementCount<T>): System.Collections.Generic.HashSet$1.ElementCount<T>;
}
export interface ElementCountFunc extends Function {
<T>($T: Bridge.TypeRef<T>): {
prototype: ElementCount<T>;
new (): ElementCount<T>;
}
}
export interface Enumerator<T> extends System.Collections.Generic.IEnumerator$1<T> {
Current: T;
System$Collections$IEnumerator$Current: any;
dispose(): void;
moveNext(): boolean;
System$Collections$IEnumerator$reset(): void;
getHashCode(): System.Collections.Generic.HashSet$1.Enumerator<T>;
equals(o: System.Collections.Generic.HashSet$1.Enumerator<T>): Boolean;
$clone(to: System.Collections.Generic.HashSet$1.Enumerator<T>): System.Collections.Generic.HashSet$1.Enumerator<T>;
}
export interface EnumeratorFunc extends Function {
<T>($T: Bridge.TypeRef<T>): {
prototype: Enumerator<T>;
new (): Enumerator<T>;
ctor: {
new (): Enumerator<T>
};
}
}
export interface Slot<T> {
getHashCode(): System.Collections.Generic.HashSet$1.Slot<T>;
equals(o: System.Collections.Generic.HashSet$1.Slot<T>): Boolean;
$clone(to: System.Collections.Generic.HashSet$1.Slot<T>): System.Collections.Generic.HashSet$1.Slot<T>;
}
export interface SlotFunc extends Function {
<T>($T: Bridge.TypeRef<T>): {
prototype: Slot<T>;
new (): Slot<T>;
}
}
}
export interface Queue$1<T> extends System.Collections.Generic.IEnumerable$1<T>, System.Collections.ICollection {
Count: number;
IsReadOnly: boolean;
copyTo(array: Array<any>, index: number): void;
copyTo$1(array: T[], arrayIndex: number): void;
clear(): void;
enqueue(item: T): void;
getEnumerator(): System.Collections.Generic.Queue$1.Enumerator<T>;
//"System$Collections$Generic$IEnumerable$1$" + Bridge.getTypeAlias(T) + "$getEnumerator"(): System.Collections.Generic.IEnumerator$1<T>;
System$Collections$IEnumerable$getEnumerator(): System.Collections.IEnumerator;
dequeue(): T;
peek(): T;
contains(item: T): boolean;
getElement(i: number): T;
toArray(): T[];
setCapacity(capacity: number): void;
moveNext(index: number): number;
trimExcess(): void;
}
export interface Queue$1Func extends Function {
<T>($T: Bridge.TypeRef<T>): {
prototype: Queue$1<T>;
Enumerator: System.Collections.Generic.Queue$1.EnumeratorFunc;
new (): Queue$1<T>;
ctor: {
new (): Queue$1<T>
};
$ctor2: {
new (capacity: number): Queue$1<T>
};
$ctor1: {
new (collection: System.Collections.Generic.IEnumerable$1<T>): Queue$1<T>
};
}
}
var Queue$1: Queue$1Func;
module Queue$1 {
export interface Enumerator<T> extends System.Collections.Generic.IEnumerator$1<T> {
Current: T;
System$Collections$IEnumerator$Current: any;
dispose(): void;
moveNext(): boolean;
System$Collections$IEnumerator$reset(): void;
getHashCode(): System.Collections.Generic.Queue$1.Enumerator<T>;
equals(o: System.Collections.Generic.Queue$1.Enumerator<T>): Boolean;
$clone(to: System.Collections.Generic.Queue$1.Enumerator<T>): System.Collections.Generic.Queue$1.Enumerator<T>;
}
export interface EnumeratorFunc extends Function {
<T>($T: Bridge.TypeRef<T>): {
prototype: Enumerator<T>;
new (): Enumerator<T>;
ctor: {
new (): Enumerator<T>
};
}
}
}
export interface Stack$1<T> extends System.Collections.Generic.IEnumerable$1<T>, System.Collections.ICollection {
Count: number;
IsReadOnly: boolean;
clear(): void;
contains(item: T): boolean;
copyTo$1(array: T[], arrayIndex: number): void;
copyTo(array: Array<any>, arrayIndex: number): void;
getEnumerator(): System.Collections.Generic.Stack$1.Enumerator<T>;
//"System$Collections$Generic$IEnumerable$1$" + Bridge.getTypeAlias(T) + "$getEnumerator"(): System.Collections.Generic.IEnumerator$1<T>;
System$Collections$IEnumerable$getEnumerator(): System.Collections.IEnumerator;
trimExcess(): void;
peek(): T;
pop(): T;
push(item: T): void;
toArray(): T[];
}
export interface Stack$1Func extends Function {
<T>($T: Bridge.TypeRef<T>): {
prototype: Stack$1<T>;
Enumerator: System.Collections.Generic.Stack$1.EnumeratorFunc;
new (): Stack$1<T>;
ctor: {
new (): Stack$1<T>
};
$ctor2: {
new (capacity: number): Stack$1<T>
};
$ctor1: {
new (collection: System.Collections.Generic.IEnumerable$1<T>): Stack$1<T>
};
}
}
var Stack$1: Stack$1Func;
module Stack$1 {
export interface Enumerator<T> extends System.Collections.Generic.IEnumerator$1<T> {
Current: T;
System$Collections$IEnumerator$Current: any;
dispose(): void;
moveNext(): boolean;
System$Collections$IEnumerator$reset(): void;
getHashCode(): System.Collections.Generic.Stack$1.Enumerator<T>;
equals(o: System.Collections.Generic.Stack$1.Enumerator<T>): Boolean;
$clone(to: System.Collections.Generic.Stack$1.Enumerator<T>): System.Collections.Generic.Stack$1.Enumerator<T>;
}
export interface EnumeratorFunc extends Function {
<T>($T: Bridge.TypeRef<T>): {
prototype: Enumerator<T>;
new (): Enumerator<T>;
ctor: {
new (): Enumerator<T>
};
}
}
}
}
module ObjectModel {
export interface ReadOnlyCollection$1<T> extends System.Collections.Generic.List$1<T> {
}
export function ReadOnlyCollection$1<T>(t: Bridge.TypeRef<T>): {
prototype: ReadOnlyCollection$1<T>;
new (obj: T[]): ReadOnlyCollection$1<T>;
new (obj: System.Collections.Generic.IEnumerable$1<T>): ReadOnlyCollection$1<T>;
}
}
}
module ComponentModel {
export interface <API key> {
propertyChanged(sender: any, e: <API key>): void;
}
var <API key>: Function;
export class <API key> {
constructor(propertyName: string);
propertyName: string;
}
}
module Globalization {
export class <API key> extends ArgumentException {
constructor(paramName: string, invalidCultureName?: string, message?: string, innerException?: Exception);
<API key>(): string;
}
export class DateTimeFormatInfo implements IFormatProvider, ICloneable {
invariantInfo: DateTimeFormatInfo;
clone(): any;
getFormat(type: any): any;
<API key>(dayofweek: number): string;
<API key>(month: number): string;
<API key>(format: string, returnNull?: boolean): string[];
getDayName(dayofweek: number): string;
getMonthName(month: number): string;
getShortestDayName(dayofweek: number): string;
}
export class NumberFormatInfo implements IFormatProvider, ICloneable {
invariantInfo: NumberFormatInfo;
clone(): any;
getFormat(type: any): any;
}
export class CultureInfo implements IFormatProvider, ICloneable {
constructor(name: string);
invariantCulture: CultureInfo;
clone(): any;
getFormat(type: any): any;
static getCurrentCulture(): CultureInfo;
static setCurrentCulture(culture: CultureInfo): void;
static getCultureInfo(name: string): CultureInfo;
static getCultures(): CultureInfo[];
}
}
module Text {
export class StringBuilder {
constructor();
constructor(value: string);
constructor(value: string, capacity: number);
constructor(value: string, startIndex: number, length: number);
getLength(): number;
getCapacity(): number;
setCapacity(value: number): void;
toString(startIndex?: number, length?: number): string;
append(value: string): StringBuilder;
append(value: string, count: number): StringBuilder;
append(value: string, startIndex: number, count: number): StringBuilder;
appendFormat(format: string, ...args: string[]): StringBuilder;
clear(): void;
appendLine(): StringBuilder;
equals(sb: StringBuilder): boolean;
remove(startIndex: number, length: number): StringBuilder;
insert(index: number, value: string, count?: number): StringBuilder;
replace(oldValue: string, newValue: string, startIndex?: number, count?: number): StringBuilder;
}
export interface UTF32Encoding extends System.Text.Encoding {
CodePage: number;
EncodingName: string;
ToCodePoints(str: string): number[];
Encode$3(s: string, outputBytes: number[], outputIndex: number, writtenBytes: {v: number}): number[];
Decode$2(bytes: number[], index: number, count: number, chars: number[], charIndex: number): string;
GetMaxByteCount(charCount: number): number;
GetMaxCharCount(byteCount: number): number;
}
export interface UTF32EncodingFunc extends Function {
prototype: UTF32Encoding;
new (): UTF32Encoding;
ctor: {
new (): UTF32Encoding
};
$ctor1: {
new (bigEndian: boolean, byteOrderMark: boolean): UTF32Encoding
};
$ctor2: {
new (bigEndian: boolean, byteOrderMark: boolean, throwOnInvalidBytes: boolean): UTF32Encoding
};
}
var UTF32Encoding: UTF32EncodingFunc;
export interface UnicodeEncoding extends System.Text.Encoding {
CodePage: number;
EncodingName: string;
Encode$3(s: string, outputBytes: number[], outputIndex: number, writtenBytes: {v: number}): number[];
Decode$2(bytes: number[], index: number, count: number, chars: number[], charIndex: number): string;
GetMaxByteCount(charCount: number): number;
GetMaxCharCount(byteCount: number): number;
}
export interface UnicodeEncodingFunc extends Function {
prototype: UnicodeEncoding;
new (): UnicodeEncoding;
ctor: {
new (): UnicodeEncoding
};
$ctor1: {
new (bigEndian: boolean, byteOrderMark: boolean): UnicodeEncoding
};
$ctor2: {
new (bigEndian: boolean, byteOrderMark: boolean, throwOnInvalidBytes: boolean): UnicodeEncoding
};
}
var UnicodeEncoding: UnicodeEncodingFunc;
export interface ASCIIEncoding extends System.Text.Encoding {
CodePage: number;
EncodingName: string;
Encode$3(s: string, outputBytes: number[], outputIndex: number, writtenBytes: {v: number}): number[];
Decode$2(bytes: number[], index: number, count: number, chars: number[], charIndex: number): string;
GetMaxByteCount(charCount: number): number;
GetMaxCharCount(byteCount: number): number;
}
export interface ASCIIEncodingFunc extends Function {
prototype: ASCIIEncoding;
new (): ASCIIEncoding;
}
var ASCIIEncoding: ASCIIEncodingFunc;
export interface Encoding {
CodePage: number;
EncodingName: string;
Encode$1(chars: number[], index: number, count: number): number[];
Encode$5(s: string, index: number, count: number, outputBytes: number[], outputIndex: number): number;
Encode$4(chars: number[], index: number, count: number, outputBytes: number[], outputIndex: number): number;
Encode(chars: number[]): number[];
Encode$2(str: string): number[];
Decode$1(bytes: number[], index: number, count: number): string;
Decode(bytes: number[]): string;
GetByteCount(chars: number[]): number;
GetByteCount$2(s: string): number;
GetByteCount$1(chars: number[], index: number, count: number): number;
GetBytes(chars: number[]): number[];
GetBytes$1(chars: number[], index: number, count: number): number[];
GetBytes$3(chars: number[], charIndex: number, charCount: number, bytes: number[], byteIndex: number): number;
GetBytes$2(s: string): number[];
GetBytes$4(s: string, charIndex: number, charCount: number, bytes: number[], byteIndex: number): number;
GetCharCount(bytes: number[]): number;
GetCharCount$1(bytes: number[], index: number, count: number): number;
GetChars(bytes: number[]): number[];
GetChars$1(bytes: number[], index: number, count: number): number[];
GetChars$2(bytes: number[], byteIndex: number, byteCount: number, chars: number[], charIndex: number): number;
GetString(bytes: number[]): string;
GetString$1(bytes: number[], index: number, count: number): string;
}
export interface EncodingFunc extends Function {
prototype: Encoding;
new (): Encoding;
Default: System.Text.Encoding;
Unicode: System.Text.Encoding;
ASCII: System.Text.Encoding;
BigEndianUnicode: System.Text.Encoding;
UTF7: System.Text.Encoding;
UTF8: System.Text.Encoding;
UTF32: System.Text.Encoding;
Convert(srcEncoding: System.Text.Encoding, dstEncoding: System.Text.Encoding, bytes: number[]): number[];
Convert$1(srcEncoding: System.Text.Encoding, dstEncoding: System.Text.Encoding, bytes: number[], index: number, count: number): number[];
GetEncoding(codepage: number): System.Text.Encoding;
GetEncoding$1(codepage: string): System.Text.Encoding;
GetEncodings(): System.Text.EncodingInfo[];
}
var Encoding: EncodingFunc;
export interface EncodingInfo {
CodePage: number;
Name: string;
DisplayName: string;
GetEncoding(): System.Text.Encoding;
GetHashCode(): number;
Equals(o: any): boolean;
}
export interface EncodingInfoFunc extends Function {
prototype: EncodingInfo;
}
var EncodingInfo: EncodingInfoFunc;
export interface UTF7Encoding extends System.Text.Encoding {
CodePage: number;
EncodingName: string;
Encode$3(s: string, outputBytes: number[], outputIndex: number, writtenBytes: {v: number}): number[];
Decode$2(bytes: number[], index: number, count: number, chars: number[], charIndex: number): string;
GetMaxByteCount(charCount: number): number;
GetMaxCharCount(byteCount: number): number;
}
export interface UTF7EncodingFunc extends Function {
prototype: UTF7Encoding;
new (): UTF7Encoding;
ctor: {
new (): UTF7Encoding
};
$ctor1: {
new (allowOptionals: boolean): UTF7Encoding
};
Escape(chars: string): string;
}
var UTF7Encoding: UTF7EncodingFunc;
export interface UTF8Encoding extends System.Text.Encoding {
CodePage: number;
EncodingName: string;
Encode$3(s: string, outputBytes: number[], outputIndex: number, writtenBytes: {v: number}): number[];
Decode$2(bytes: number[], index: number, count: number, chars: number[], charIndex: number): string;
GetMaxByteCount(charCount: number): number;
GetMaxCharCount(byteCount: number): number;
}
export interface UTF8EncodingFunc extends Function {
prototype: UTF8Encoding;
new (): UTF8Encoding;
ctor: {
new (): UTF8Encoding
};
$ctor1: {
new (<API key>: boolean): UTF8Encoding
};
$ctor2: {
new (<API key>: boolean, throwOnInvalidBytes: boolean): UTF8Encoding
};
}
var UTF8Encoding: UTF8EncodingFunc;
}
module Threading {
module Tasks {
export class Task {
constructor(action: Function, state?: any);
static delay(delay: number, state?: any): Task;
static fromResult(result: any): Task;
static run(fn: Function): Task;
static whenAll(tasks: Task[]): Task;
static whenAny(tasks: Task[]): Task;
static fromCallback(target: any, method: string, ...otherArguments: any[]): Task;
static fromCallbackResult(target: any, method: string, resultHandler: Function, ...otherArguments: any[]): Task;
static fromCallbackOptions(target: any, method: string, name: string, ...otherArguments: any[]): Task;
static fromPromise(promise: Bridge.IPromise, handler: Function): Task;
continueWith(continuationAction: Function): Task;
start(): void;
complete(result?: any): boolean;
isCanceled(): boolean;
isCompleted(): boolean;
isFaulted(): boolean;
setCanceled(): void;
setError(error: Exception): void;
}
export class Task$1<TResult> extends Task {
constructor(action: () => TResult);
constructor(action: (fn: any) => TResult, state: any);
getResult(): TResult;
continueWith(continuationAction: (arg: Task$1<TResult>) => void): Task;
continueWith<TNewResult>(continuationAction: (arg: Task$1<TResult>) => TNewResult): Task$1<TNewResult>;
setResult(result: TResult): void;
}
}
}
}
declare module Bridge.Linq {
interface EnumerableStatic {
Utils: {
createLambda(expression: any): (...params: any[]) => any;
createEnumerable(getEnumerator: () => System.Collections.IEnumerator): Enumerable;
createEnumerator(initialize: () => void, tryGetNext: () => boolean, dispose: () => void): System.Collections.IEnumerator;
extendTo(type: any): void;
};
choice(...params: any[]): Enumerable;
cycle(...params: any[]): Enumerable;
empty(): Enumerable;
from(): Enumerable;
from(obj: Enumerable): Enumerable;
from(obj: string): Enumerable;
from(obj: number): Enumerable;
from(obj: { length: number;[x: number]: any; }): Enumerable;
from(obj: any): Enumerable;
make(element: any): Enumerable;
matches(input: string, pattern: RegExp): Enumerable;
matches(input: string, pattern: string, flags?: string): Enumerable;
range(start: number, count: number, step?: number): Enumerable;
rangeDown(start: number, count: number, step?: number): Enumerable;
rangeTo(start: number, to: number, step?: number): Enumerable;
repeat(element: any, count?: number): Enumerable;
repeatWithFinalize(initializer: () => any, finalizer: (element: any) => void): Enumerable;
generate(func: () => any, count?: number): Enumerable;
toInfinity(start?: number, step?: number): Enumerable;
toNegativeInfinity(start?: number, step?: number): Enumerable;
unfold(seed: any, func: (value: any) => any): Enumerable;
defer(enumerableFactory: () => Enumerable): Enumerable;
}
interface Enumerable {
constructor(getEnumerator: () => System.Collections.IEnumerator): Enumerable;
getEnumerator(): System.Collections.IEnumerator;
// Extension Methods
<API key>(func: (element: any) => Enumerable, resultSelector?: (element: any, nestLevel: number) => any): Enumerable;
traverseDepthFirst(func: (element: any) => Enumerable, resultSelector?: (element: any, nestLevel: number) => any): Enumerable;
flatten(): Enumerable;
pairwise(selector: (prev: any, current: any) => any): Enumerable;
scan(func: (prev: any, current: any) => any): Enumerable;
scan(seed: any, func: (prev: any, current: any) => any): Enumerable;
select(selector: (element: any, index: number) => any): Enumerable;
selectMany(collectionSelector: (element: any, index: number) => any[], resultSelector?: (outer: any, inner: any) => any): Enumerable;
selectMany(collectionSelector: (element: any, index: number) => Enumerable, resultSelector?: (outer: any, inner: any) => any): Enumerable;
selectMany(collectionSelector: (element: any, index: number) => { length: number;[x: number]: any; }, resultSelector?: (outer: any, inner: any) => any): Enumerable;
where(predicate: (element: any, index: number) => boolean): Enumerable;
choose(selector: (element: any, index: number) => any): Enumerable;
ofType(type: any): Enumerable;
zip(second: any[], resultSelector: (first: any, second: any, index: number) => any): Enumerable;
zip(second: Enumerable, resultSelector: (first: any, second: any, index: number) => any): Enumerable;
zip(second: { length: number;[x: number]: any; }, resultSelector: (first: any, second: any, index: number) => any): Enumerable;
zip(...params: any[]): Enumerable; // last one is selector
merge(second: any[], resultSelector: (first: any, second: any, index: number) => any): Enumerable;
merge(second: Enumerable, resultSelector: (first: any, second: any, index: number) => any): Enumerable;
merge(second: { length: number;[x: number]: any; }, resultSelector: (first: any, second: any, index: number) => any): Enumerable;
merge(...params: any[]): Enumerable; // last one is selector
join(inner: Enumerable, outerKeySelector: (outer: any) => any, innerKeySelector: (inner: any) => any, resultSelector: (outer: any, inner: any) => any, compareSelector?: (obj: any) => any): Enumerable;
groupJoin(inner: Enumerable, outerKeySelector: (outer: any) => any, innerKeySelector: (inner: any) => any, resultSelector: (outer: any, inner: any) => any, compareSelector?: (obj: any) => any): Enumerable;
all(predicate: (element: any) => boolean): boolean;
any(predicate?: (element: any) => boolean): boolean;
isEmpty(): boolean;
concat(...sequences: any[]): Enumerable;
insert(index: number, second: any[]): Enumerable;
insert(index: number, second: Enumerable): Enumerable;
insert(index: number, second: { length: number;[x: number]: any; }): Enumerable;
alternate(alternateValue: any): Enumerable;
alternate(alternateSequence: any[]): Enumerable;
alternate(alternateSequence: Enumerable): Enumerable;
contains(value: any, compareSelector: (element: any) => any): Enumerable;
contains(value: any): Enumerable;
defaultIfEmpty(defaultValue?: any): Enumerable;
distinct(compareSelector?: (element: any) => any): Enumerable;
<API key>(compareSelector: (element: any) => any): Enumerable;
except(second: any[], compareSelector?: (element: any) => any): Enumerable;
except(second: { length: number;[x: number]: any; }, compareSelector?: (element: any) => any): Enumerable;
except(second: Enumerable, compareSelector?: (element: any) => any): Enumerable;
intersect(second: any[], compareSelector?: (element: any) => any): Enumerable;
intersect(second: { length: number;[x: number]: any; }, compareSelector?: (element: any) => any): Enumerable;
intersect(second: Enumerable, compareSelector?: (element: any) => any): Enumerable;
sequenceEqual(second: any[], compareSelector?: (element: any) => any): Enumerable;
sequenceEqual(second: { length: number;[x: number]: any; }, compareSelector?: (element: any) => any): Enumerable;
sequenceEqual(second: Enumerable, compareSelector?: (element: any) => any): Enumerable;
union(second: any[], compareSelector?: (element: any) => any): Enumerable;
union(second: { length: number;[x: number]: any; }, compareSelector?: (element: any) => any): Enumerable;
union(second: Enumerable, compareSelector?: (element: any) => any): Enumerable;
orderBy(keySelector: (element: any) => any): OrderedEnumerable;
orderByDescending(keySelector: (element: any) => any): OrderedEnumerable;
reverse(): Enumerable;
shuffle(): Enumerable;
weightedSample(weightSelector: (element: any) => any): Enumerable;
groupBy(keySelector: (element: any) => any, elementSelector?: (element: any) => any, resultSelector?: (key: any, element: any) => any, compareSelector?: (element: any) => any): Enumerable;
partitionBy(keySelector: (element: any) => any, elementSelector?: (element: any) => any, resultSelector?: (key: any, element: any) => any, compareSelector?: (element: any) => any): Enumerable;
buffer(count: number): Enumerable;
aggregate(func: (prev: any, current: any) => any): any;
aggregate(seed: any, func: (prev: any, current: any) => any, resultSelector?: (last: any) => any): any;
average(selector?: (element: any) => any): number;
count(predicate?: (element: any, index: number) => boolean): number;
max(selector?: (element: any) => any): number;
min(selector?: (element: any) => any): number;
maxBy(keySelector: (element: any) => any): any;
minBy(keySelector: (element: any) => any): any;
sum(selector?: (element: any) => any): number;
elementAt(index: number): any;
elementAtOrDefault(index: number, defaultValue?: any): any;
first(predicate?: (element: any, index: number) => boolean): any;
firstOrDefault(predicate?: (element: any, index: number) => boolean, defaultValue?: any): any;
last(predicate?: (element: any, index: number) => boolean): any;
lastOrDefault(predicate?: (element: any, index: number) => boolean, defaultValue?: any): any;
single(predicate?: (element: any, index: number) => boolean): any;
singleOrDefault(predicate?: (element: any, index: number) => boolean, defaultValue?: any): any;
skip(count: number): Enumerable;
skipWhile(predicate: (element: any, index: number) => boolean): Enumerable;
take(count: number): Enumerable;
takeWhile(predicate: (element: any, index: number) => boolean): Enumerable;
takeExceptLast(count?: number): Enumerable;
takeFromLast(count: number): Enumerable;
indexOf(item: any): number;
indexOf(predicate: (element: any, index: number) => boolean): number;
lastIndexOf(item: any): number;
lastIndexOf(predicate: (element: any, index: number) => boolean): number;
asEnumerable(): Enumerable;
toArray(): any[];
toLookup(keySelector: (element: any) => any, elementSelector?: (element: any) => any, compareSelector?: (element: any) => any): Lookup;
toObject(keySelector: (element: any) => any, elementSelector?: (element: any) => any): Object;
toDictionary(keySelector: (element: any) => any, elementSelector?: (element: any) => any, compareSelector?: (element: any) => any): Dictionary;
toJSONString(replacer: (key: string, value: any) => any): string;
toJSONString(replacer: any[]): string;
toJSONString(replacer: (key: string, value: any) => any, space: any): string;
toJSONString(replacer: any[], space: any): string;
toJoinedString(separator?: string, selector?: (element: any, index: number) => any): string;
doAction(action: (element: any, index: number) => void): Enumerable;
doAction(action: (element: any, index: number) => boolean): Enumerable;
forEach(action: (element: any, index: number) => void): void;
forEach(action: (element: any, index: number) => boolean): void;
write(separator?: string, selector?: (element: any) => any): void;
writeLine(selector?: (element: any) => any): void;
force(): void;
letBind(func: (source: Enumerable) => any[]): Enumerable;
letBind(func: (source: Enumerable) => { length: number;[x: number]: any; }): Enumerable;
letBind(func: (source: Enumerable) => Enumerable): Enumerable;
share(): <API key>;
memoize(): <API key>;
catchError(handler: (exception: any) => void): Enumerable;
finallyAction(finallyAction: () => void): Enumerable;
log(selector?: (element: any) => void): Enumerable;
trace(message?: string, selector?: (element: any) => void): Enumerable;
}
interface OrderedEnumerable extends Enumerable {
<API key>(keySelector: (element: any) => any, descending: boolean): OrderedEnumerable;
thenBy(keySelector: (element: any) => any): OrderedEnumerable;
thenByDescending(keySelector: (element: any) => any): OrderedEnumerable;
}
interface <API key> extends Enumerable {
dispose(): void;
}
interface Dictionary {
add(key: any, value: any): void;
get(key: any): any;
set(key: any, value: any): boolean;
contains(key: any): boolean;
clear(): void;
remove(key: any): void;
count(): number;
toEnumerable(): Enumerable; // Enumerable<KeyValuePair>
}
interface Lookup {
count(): number;
get(key: any): Enumerable;
contains(key: any): boolean;
toEnumerable(): Enumerable; // Enumerable<Groping>
}
interface Grouping extends Enumerable {
key(): any;
}
var Enumerable: EnumerableStatic;
} |
# AUTOGENERATED FILE
FROM balenalib/artik710-debian:bullseye-build
ENV GO_VERSION 1.16.3
RUN mkdir -p /usr/local/go \
&& curl -SLO "https://storage.googleapis.com/golang/go$GO_VERSION.linux-arm64.tar.gz" \
&& echo "<SHA256-like> go$GO_VERSION.linux-arm64.tar.gz" | sha256sum -c - \
&& tar -xzf "go$GO_VERSION.linux-arm64.tar.gz" -C /usr/local/go --strip-components=1 \
&& rm -f go$GO_VERSION.linux-arm64.tar.gz
ENV GOROOT /usr/local/go
ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
WORKDIR $GOPATH
CMD ["echo","'No CMD command was set in Dockerfile! Details about CMD command could be found in Dockerfile Guide section in our Docs. Here's the link: https://balena.io/docs"]
RUN curl -SLO "https://raw.githubusercontent.com/balena-io-library/base-images/<SHA1-like>/scripts/assets/tests/test-stack@golang.sh" \
&& echo "Running test-stack@golang" \
&& chmod +x test-stack@golang.sh \
&& bash test-stack@golang.sh \
&& rm -rf test-stack@golang.sh
RUN [ ! -d /.balena/messages ] && mkdir -p /.balena/messages; echo 'Here are a few details about this Docker image (For more information please visit https:
RUN echo '#!/bin/sh.real\nbalena-info\nrm -f /bin/sh\ncp /bin/sh.real /bin/sh\n/bin/sh "$@"' > /bin/sh-shim \
&& chmod +x /bin/sh-shim \
&& cp /bin/sh /bin/sh.real \
&& mv /bin/sh-shim /bin/sh |
#ifndef PAD_NOTE_H
#define PAD_NOTE_H
#include "SynthNote.h"
#include "../globals.h"
#include "../Params/PADnoteParameters.h"
#include "../Params/Controller.h"
#include "Envelope.h"
#include "LFO.h"
#include "../Params/Controller.h"
/**The "pad" synthesizer*/
class PADnote:public SynthNote
{
public:
PADnote(PADnoteParameters *parameters,
Controller *ctl_,
float freq,
float velocity,
int portamento_,
int midinote,
bool besilent);
~PADnote();
void legatonote(float freq, float velocity, int portamento_,
int midinote, bool externcall);
int noteout(float *outl, float *outr);
int finished() const;
void releasekey();
private:
void setup(float freq, float velocity, int portamento_,
int midinote, bool legato = false);
void fadein(float *smps);
void <API key>();
bool finished_;
PADnoteParameters *pars;
int poshi_l, poshi_r;
float poslo;
float basefreq;
bool firsttime, released;
int nsample, portamento;
int Compute_Linear(float *outl,
float *outr,
int freqhi,
float freqlo);
int Compute_Cubic(float *outl,
float *outr,
int freqhi,
float freqlo);
struct {
float Detune; //cents
Envelope *FreqEnvelope;
LFO *FreqLfo;
float Volume; // [ 0 .. 1 ]
float Panning; // [ 0 .. 1 ]
Envelope *AmpEnvelope;
LFO *AmpLfo;
struct {
int Enabled;
float initialvalue, dt, t;
} Punch;
class Filter * GlobalFilterL, *GlobalFilterR;
float FilterCenterPitch; //octaves
float FilterQ;
float FilterFreqTracking;
Envelope *FilterEnvelope;
LFO *FilterLfo;
} NoteGlobalPar;
float globaloldamplitude, globalnewamplitude, velocity, realfreq;
Controller *ctl;
};
#endif |
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM e:/builds/moz2_slave/rel-2.0-xr-w32-bld/build/modules/libpr0n/public/imgIContainer.idl
*/
#ifndef <API key>
#define <API key>
#ifndef <API key>
#include "nsISupports.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class imgIDecoderObserver; /* forward declaration */
#include "gfxImageSurface.h"
#include "gfxContext.h"
#include "gfxMatrix.h"
#include "gfxRect.h"
#include "gfxPattern.h"
#include "gfxASurface.h"
#include "nsRect.h"
#include "nsSize.h"
#include "limits.h"
class nsIFrame;
/* starting interface: imgIContainer */
#define <API key> "<API key>"
#define IMGICONTAINER_IID \
{0x239dfa70, 0x2285, 0x4d63, \
{ 0x99, 0xcd, 0xe9, 0xb7, 0xff, 0x95, 0x55, 0xc7 }}
/**
* imgIContainer is the interface that represents an image. It allows
* access to frames as Thebes surfaces, and permits users to extract subregions
* as other imgIContainers. It also allows drawing of images on to Thebes
* contexts.
*
* Internally, imgIContainer also manages animation of images.
*/
class NS_NO_VTABLE NS_SCRIPTABLE imgIContainer : public nsISupports {
public:
<API key>(IMGICONTAINER_IID)
/**
* The width of the container rectangle. In the case of any error,
* zero is returned, and an exception will be thrown.
*/
/* readonly attribute PRInt32 width; */
NS_SCRIPTABLE NS_IMETHOD GetWidth(PRInt32 *aWidth) = 0;
/**
* The height of the container rectangle. In the case of any error,
* zero is returned, and an exception will be thrown.
*/
/* readonly attribute PRInt32 height; */
NS_SCRIPTABLE NS_IMETHOD GetHeight(PRInt32 *aHeight) = 0;
/**
* Enumerated values for the 'type' attribute (below).
*/
enum { TYPE_RASTER = 0U };
enum { TYPE_VECTOR = 1U };
/**
* The type of this image (one of the TYPE_* values above).
*/
/* readonly attribute unsigned short type; */
NS_SCRIPTABLE NS_IMETHOD GetType(PRUint16 *aType) = 0;
/**
* Direct C++ accessor for 'type' attribute, for convenience.
*/
/* [noscript, notxpcom] PRUint16 GetType (); */
NS_IMETHOD_(PRUint16 ) GetType(void) = 0;
/**
* Whether this image is animated. You can only be guaranteed that querying
* this will not throw if <API key> is set on the imgIRequest.
*
* @throws <API key> if the animated state cannot be determined.
*/
/* readonly attribute boolean animated; */
NS_SCRIPTABLE NS_IMETHOD GetAnimated(PRBool *aAnimated) = 0;
/**
* Whether the current frame is opaque; that is, needs the background painted
* behind it.
*/
/* readonly attribute boolean <API key>; */
NS_SCRIPTABLE NS_IMETHOD <API key>(PRBool *<API key>) = 0;
/**
* Flags for imgIContainer operations.
*
* Meanings:
*
* FLAG_NONE: Lack of flags
*
* FLAG_SYNC_DECODE: Forces synchronous/non-progressive decode of all
* available data before the call returns. It is an error to pass this flag
* from a call stack that originates in a decoder (ie, from a decoder
* observer event).
*
* <API key>: Do not premultiply alpha if
* it's not already premultiplied in the image data.
*
* <API key>: Do not do any colorspace conversion;
* ignore any embedded profiles, and don't convert to any particular destination
* space.
*/
enum { FLAG_NONE = 0 };
enum { FLAG_SYNC_DECODE = 1 };
enum { <API key> = 2 };
enum { <API key> = 4 };
/**
* Constants for specifying various "special" frames.
*
* FRAME_FIRST: The first frame
* FRAME_CURRENT: The current frame
*
* FRAME_MAX_VALUE should be set to the value of the maximum constant above,
* as it is used for ensuring that a valid value was passed in.
*/
enum { FRAME_FIRST = 0U };
enum { FRAME_CURRENT = 1U };
enum { FRAME_MAX_VALUE = 1U };
/**
* Get a surface for the given frame. This may be a platform-native,
* optimized surface, so you cannot inspect its pixel data.
*
* @param aWhichFrame Frame specifier of the FRAME_* variety.
* @param aFlags Flags of the FLAG_* variety
*/
/* [noscript] gfxASurface getFrame (in PRUint32 aWhichFrame, in PRUint32 aFlags); */
NS_IMETHOD GetFrame(PRUint32 aWhichFrame, PRUint32 aFlags, gfxASurface **_retval NS_OUTPARAM) = 0;
/**
* Create and return a new copy of the given frame that you can write to
* and otherwise inspect the pixels of.
*
* @param aWhichFrame Frame specifier of the FRAME_* variety.
* @param aFlags Flags of the FLAG_* variety
*/
/* [noscript] gfxImageSurface copyFrame (in PRUint32 aWhichFrame, in PRUint32 aFlags); */
NS_IMETHOD CopyFrame(PRUint32 aWhichFrame, PRUint32 aFlags, gfxImageSurface **_retval NS_OUTPARAM) = 0;
/**
* Create a new imgContainer that contains only a single frame, which itself
* contains a subregion of the given frame.
*
* @param aWhichFrame Frame specifier of the FRAME_* variety.
* @param aRect the area of the current frame to be duplicated in the
* returned imgContainer's frame.
* @param aFlags Flags of the FLAG_* variety
*/
/* [noscript] imgIContainer extractFrame (in PRUint32 aWhichFrame, [const] in nsIntRect aRect, in PRUint32 aFlags); */
NS_IMETHOD ExtractFrame(PRUint32 aWhichFrame, const nsIntRect & aRect, PRUint32 aFlags, imgIContainer **_retval NS_OUTPARAM) = 0;
/**
* Draw the current frame on to the context specified.
*
* @param aContext The Thebes context to draw the image to.
* @param aFilter The filter to be used if we're scaling the image.
* @param <API key> The transformation from user space (e.g.,
* appunits) to image space.
* @param aFill The area in the context to draw pixels to. Image will be
* automatically tiled as necessary.
* @param aSubimage The area of the image, in pixels, that we are allowed to
* sample from.
* @param aViewportSize
* The size (in CSS pixels) of the viewport that would be available
* for the full image to occupy, if we were drawing the full image.
* (Note that we might not actually be drawing the full image -- we
* might be restricted by aSubimage -- but we still need the full
* image's viewport-size in order for SVG images with the "viewBox"
* attribute to position their content correctly.)
* @param aFlags Flags of the FLAG_* variety
*/
/* [noscript] void draw (in gfxContext aContext, in gfxGraphicsFilter aFilter, [const] in gfxMatrix <API key>, [const] in gfxRect aFill, [const] in nsIntRect aSubimage, [const] in nsIntSize aViewportSize, in PRUint32 aFlags); */
NS_IMETHOD Draw(gfxContext *aContext, gfxPattern::GraphicsFilter aFilter, const gfxMatrix & <API key>, const gfxRect & aFill, const nsIntRect & aSubimage, const nsIntSize & aViewportSize, PRUint32 aFlags) = 0;
/**
* If this image is TYPE_VECTOR, i.e. is really an embedded SVG document,
* this method returns a pointer to the root nsIFrame of that document. If
* not (or if the root nsIFrame isn't available for some reason), this method
* returns nsnull.
*
* "notxpcom" for convenience, since we have no need for nsresult return-val.
*/
/* [notxpcom] nsIFrame GetRootLayoutFrame (); */
NS_IMETHOD_(nsIFrame *) GetRootLayoutFrame(void) = 0;
/* void requestDecode (); */
NS_SCRIPTABLE NS_IMETHOD RequestDecode(void) = 0;
/**
* Increments the lock count on the image. An image will not be discarded
* as long as the lock count is nonzero. Note that it is still possible for
* the image to be undecoded if decode-on-draw is enabled and the image
* was never drawn.
*
* Upon instantiation images have a lock count of zero.
*/
/* void lockImage (); */
NS_SCRIPTABLE NS_IMETHOD LockImage(void) = 0;
/**
* Decreases the lock count on the image. If the lock count drops to zero,
* the image is allowed to discard its frame data to save memory.
*
* Upon instantiation images have a lock count of zero. It is an error to
* call this method without first having made a matching lockImage() call.
* In other words, the lock count is not allowed to be negative.
*/
/* void unlockImage (); */
NS_SCRIPTABLE NS_IMETHOD UnlockImage(void) = 0;
/**
* Animation mode Constants
* 0 = normal
* 1 = don't animate
* 2 = loop once
*/
enum { kNormalAnimMode = 0 };
enum { kDontAnimMode = 1 };
enum { kLoopOnceAnimMode = 2 };
/* attribute unsigned short animationMode; */
NS_SCRIPTABLE NS_IMETHOD GetAnimationMode(PRUint16 *aAnimationMode) = 0;
NS_SCRIPTABLE NS_IMETHOD SetAnimationMode(PRUint16 aAnimationMode) = 0;
/* void resetAnimation (); */
NS_SCRIPTABLE NS_IMETHOD ResetAnimation(void) = 0;
};
<API key>(imgIContainer, IMGICONTAINER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define <API key> \
NS_SCRIPTABLE NS_IMETHOD GetWidth(PRInt32 *aWidth); \
NS_SCRIPTABLE NS_IMETHOD GetHeight(PRInt32 *aHeight); \
NS_SCRIPTABLE NS_IMETHOD GetType(PRUint16 *aType); \
NS_IMETHOD_(PRUint16 ) GetType(void); \
NS_SCRIPTABLE NS_IMETHOD GetAnimated(PRBool *aAnimated); \
NS_SCRIPTABLE NS_IMETHOD <API key>(PRBool *<API key>); \
NS_IMETHOD GetFrame(PRUint32 aWhichFrame, PRUint32 aFlags, gfxASurface **_retval NS_OUTPARAM); \
NS_IMETHOD CopyFrame(PRUint32 aWhichFrame, PRUint32 aFlags, gfxImageSurface **_retval NS_OUTPARAM); \
NS_IMETHOD ExtractFrame(PRUint32 aWhichFrame, const nsIntRect & aRect, PRUint32 aFlags, imgIContainer **_retval NS_OUTPARAM); \
NS_IMETHOD Draw(gfxContext *aContext, gfxPattern::GraphicsFilter aFilter, const gfxMatrix & <API key>, const gfxRect & aFill, const nsIntRect & aSubimage, const nsIntSize & aViewportSize, PRUint32 aFlags); \
NS_IMETHOD_(nsIFrame *) GetRootLayoutFrame(void); \
NS_SCRIPTABLE NS_IMETHOD RequestDecode(void); \
NS_SCRIPTABLE NS_IMETHOD LockImage(void); \
NS_SCRIPTABLE NS_IMETHOD UnlockImage(void); \
NS_SCRIPTABLE NS_IMETHOD GetAnimationMode(PRUint16 *aAnimationMode); \
NS_SCRIPTABLE NS_IMETHOD SetAnimationMode(PRUint16 aAnimationMode); \
NS_SCRIPTABLE NS_IMETHOD ResetAnimation(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define <API key>(_to) \
NS_SCRIPTABLE NS_IMETHOD GetWidth(PRInt32 *aWidth) { return _to GetWidth(aWidth); } \
NS_SCRIPTABLE NS_IMETHOD GetHeight(PRInt32 *aHeight) { return _to GetHeight(aHeight); } \
NS_SCRIPTABLE NS_IMETHOD GetType(PRUint16 *aType) { return _to GetType(aType); } \
NS_IMETHOD_(PRUint16 ) GetType(void) { return _to GetType(); } \
NS_SCRIPTABLE NS_IMETHOD GetAnimated(PRBool *aAnimated) { return _to GetAnimated(aAnimated); } \
NS_SCRIPTABLE NS_IMETHOD <API key>(PRBool *<API key>) { return _to <API key>(<API key>); } \
NS_IMETHOD GetFrame(PRUint32 aWhichFrame, PRUint32 aFlags, gfxASurface **_retval NS_OUTPARAM) { return _to GetFrame(aWhichFrame, aFlags, _retval); } \
NS_IMETHOD CopyFrame(PRUint32 aWhichFrame, PRUint32 aFlags, gfxImageSurface **_retval NS_OUTPARAM) { return _to CopyFrame(aWhichFrame, aFlags, _retval); } \
NS_IMETHOD ExtractFrame(PRUint32 aWhichFrame, const nsIntRect & aRect, PRUint32 aFlags, imgIContainer **_retval NS_OUTPARAM) { return _to ExtractFrame(aWhichFrame, aRect, aFlags, _retval); } \
NS_IMETHOD Draw(gfxContext *aContext, gfxPattern::GraphicsFilter aFilter, const gfxMatrix & <API key>, const gfxRect & aFill, const nsIntRect & aSubimage, const nsIntSize & aViewportSize, PRUint32 aFlags) { return _to Draw(aContext, aFilter, <API key>, aFill, aSubimage, aViewportSize, aFlags); } \
NS_IMETHOD_(nsIFrame *) GetRootLayoutFrame(void) { return _to GetRootLayoutFrame(); } \
NS_SCRIPTABLE NS_IMETHOD RequestDecode(void) { return _to RequestDecode(); } \
NS_SCRIPTABLE NS_IMETHOD LockImage(void) { return _to LockImage(); } \
NS_SCRIPTABLE NS_IMETHOD UnlockImage(void) { return _to UnlockImage(); } \
NS_SCRIPTABLE NS_IMETHOD GetAnimationMode(PRUint16 *aAnimationMode) { return _to GetAnimationMode(aAnimationMode); } \
NS_SCRIPTABLE NS_IMETHOD SetAnimationMode(PRUint16 aAnimationMode) { return _to SetAnimationMode(aAnimationMode); } \
NS_SCRIPTABLE NS_IMETHOD ResetAnimation(void) { return _to ResetAnimation(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define <API key>(_to) \
NS_SCRIPTABLE NS_IMETHOD GetWidth(PRInt32 *aWidth) { return !_to ? <API key> : _to->GetWidth(aWidth); } \
NS_SCRIPTABLE NS_IMETHOD GetHeight(PRInt32 *aHeight) { return !_to ? <API key> : _to->GetHeight(aHeight); } \
NS_SCRIPTABLE NS_IMETHOD GetType(PRUint16 *aType) { return !_to ? <API key> : _to->GetType(aType); } \
NS_IMETHOD_(PRUint16 ) GetType(void) { return !_to ? <API key> : _to->GetType(); } \
NS_SCRIPTABLE NS_IMETHOD GetAnimated(PRBool *aAnimated) { return !_to ? <API key> : _to->GetAnimated(aAnimated); } \
NS_SCRIPTABLE NS_IMETHOD <API key>(PRBool *<API key>) { return !_to ? <API key> : _to-><API key>(<API key>); } \
NS_IMETHOD GetFrame(PRUint32 aWhichFrame, PRUint32 aFlags, gfxASurface **_retval NS_OUTPARAM) { return !_to ? <API key> : _to->GetFrame(aWhichFrame, aFlags, _retval); } \
NS_IMETHOD CopyFrame(PRUint32 aWhichFrame, PRUint32 aFlags, gfxImageSurface **_retval NS_OUTPARAM) { return !_to ? <API key> : _to->CopyFrame(aWhichFrame, aFlags, _retval); } \
NS_IMETHOD ExtractFrame(PRUint32 aWhichFrame, const nsIntRect & aRect, PRUint32 aFlags, imgIContainer **_retval NS_OUTPARAM) { return !_to ? <API key> : _to->ExtractFrame(aWhichFrame, aRect, aFlags, _retval); } \
NS_IMETHOD Draw(gfxContext *aContext, gfxPattern::GraphicsFilter aFilter, const gfxMatrix & <API key>, const gfxRect & aFill, const nsIntRect & aSubimage, const nsIntSize & aViewportSize, PRUint32 aFlags) { return !_to ? <API key> : _to->Draw(aContext, aFilter, <API key>, aFill, aSubimage, aViewportSize, aFlags); } \
NS_IMETHOD_(nsIFrame *) GetRootLayoutFrame(void) { return !_to ? <API key> : _to->GetRootLayoutFrame(); } \
NS_SCRIPTABLE NS_IMETHOD RequestDecode(void) { return !_to ? <API key> : _to->RequestDecode(); } \
NS_SCRIPTABLE NS_IMETHOD LockImage(void) { return !_to ? <API key> : _to->LockImage(); } \
NS_SCRIPTABLE NS_IMETHOD UnlockImage(void) { return !_to ? <API key> : _to->UnlockImage(); } \
NS_SCRIPTABLE NS_IMETHOD GetAnimationMode(PRUint16 *aAnimationMode) { return !_to ? <API key> : _to->GetAnimationMode(aAnimationMode); } \
NS_SCRIPTABLE NS_IMETHOD SetAnimationMode(PRUint16 aAnimationMode) { return !_to ? <API key> : _to->SetAnimationMode(aAnimationMode); } \
NS_SCRIPTABLE NS_IMETHOD ResetAnimation(void) { return !_to ? <API key> : _to->ResetAnimation(); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class _MYCLASS_ : public imgIContainer
{
public:
NS_DECL_ISUPPORTS
<API key>
_MYCLASS_();
private:
~_MYCLASS_();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(_MYCLASS_, imgIContainer)
_MYCLASS_::_MYCLASS_()
{
/* member initializers and constructor code */
}
_MYCLASS_::~_MYCLASS_()
{
/* destructor code */
}
/* readonly attribute PRInt32 width; */
NS_IMETHODIMP _MYCLASS_::GetWidth(PRInt32 *aWidth)
{
return <API key>;
}
/* readonly attribute PRInt32 height; */
NS_IMETHODIMP _MYCLASS_::GetHeight(PRInt32 *aHeight)
{
return <API key>;
}
/* readonly attribute unsigned short type; */
NS_IMETHODIMP _MYCLASS_::GetType(PRUint16 *aType)
{
return <API key>;
}
/* [noscript, notxpcom] PRUint16 GetType (); */
NS_IMETHODIMP_(PRUint16 ) _MYCLASS_::GetType()
{
return <API key>;
}
/* readonly attribute boolean animated; */
NS_IMETHODIMP _MYCLASS_::GetAnimated(PRBool *aAnimated)
{
return <API key>;
}
/* readonly attribute boolean <API key>; */
NS_IMETHODIMP _MYCLASS_::<API key>(PRBool *<API key>)
{
return <API key>;
}
/* [noscript] gfxASurface getFrame (in PRUint32 aWhichFrame, in PRUint32 aFlags); */
NS_IMETHODIMP _MYCLASS_::GetFrame(PRUint32 aWhichFrame, PRUint32 aFlags, gfxASurface **_retval NS_OUTPARAM)
{
return <API key>;
}
/* [noscript] gfxImageSurface copyFrame (in PRUint32 aWhichFrame, in PRUint32 aFlags); */
NS_IMETHODIMP _MYCLASS_::CopyFrame(PRUint32 aWhichFrame, PRUint32 aFlags, gfxImageSurface **_retval NS_OUTPARAM)
{
return <API key>;
}
/* [noscript] imgIContainer extractFrame (in PRUint32 aWhichFrame, [const] in nsIntRect aRect, in PRUint32 aFlags); */
NS_IMETHODIMP _MYCLASS_::ExtractFrame(PRUint32 aWhichFrame, const nsIntRect & aRect, PRUint32 aFlags, imgIContainer **_retval NS_OUTPARAM)
{
return <API key>;
}
/* [noscript] void draw (in gfxContext aContext, in gfxGraphicsFilter aFilter, [const] in gfxMatrix <API key>, [const] in gfxRect aFill, [const] in nsIntRect aSubimage, [const] in nsIntSize aViewportSize, in PRUint32 aFlags); */
NS_IMETHODIMP _MYCLASS_::Draw(gfxContext *aContext, gfxPattern::GraphicsFilter aFilter, const gfxMatrix & <API key>, const gfxRect & aFill, const nsIntRect & aSubimage, const nsIntSize & aViewportSize, PRUint32 aFlags)
{
return <API key>;
}
/* [notxpcom] nsIFrame GetRootLayoutFrame (); */
NS_IMETHODIMP_(nsIFrame *) _MYCLASS_::GetRootLayoutFrame()
{
return <API key>;
}
/* void requestDecode (); */
NS_IMETHODIMP _MYCLASS_::RequestDecode()
{
return <API key>;
}
/* void lockImage (); */
NS_IMETHODIMP _MYCLASS_::LockImage()
{
return <API key>;
}
/* void unlockImage (); */
NS_IMETHODIMP _MYCLASS_::UnlockImage()
{
return <API key>;
}
/* attribute unsigned short animationMode; */
NS_IMETHODIMP _MYCLASS_::GetAnimationMode(PRUint16 *aAnimationMode)
{
return <API key>;
}
NS_IMETHODIMP _MYCLASS_::SetAnimationMode(PRUint16 aAnimationMode)
{
return <API key>;
}
/* void resetAnimation (); */
NS_IMETHODIMP _MYCLASS_::ResetAnimation()
{
return <API key>;
}
/* End of implementation class template. */
#endif
#endif /* <API key> */ |
using System;
using System.Collections.Generic;
using System.Linq;
using PlanetaryMotion.Storage.Context;
namespace PlanetaryMotion.Storage.Base
{
<summary>
</summary>
<typeparam name="T"></typeparam>
public abstract class StorageBase <T> where T: class
{
<summary>
Gets or sets the database context.
</summary>
<value>
The database context.
</value>
public <API key> DbContext { get; set; }
#region Astract Methods
<summary>
Gets the list.
</summary>
<returns></returns>
protected virtual IEnumerable<T> GetList()
{
return DbContext.Set<T>();
}
#endregion
#region Public Methods
<summary>
Saves the specified element.
</summary>
<param name="element">The element.</param>
public void Save(T element)
{
DbContext.Set<T>().Add(element);
DbContext.SaveChanges();
}
<summary>
Removes the specified element.
</summary>
<param name="element">The element.</param>
public void Remove(T element)
{
DbContext.Set<T>().Remove(element);
DbContext.SaveChanges();
}
<summary>
Gets all.
</summary>
<returns></returns>
public virtual IEnumerable<T> GetAll()
{
return GetList().AsQueryable();
}
<summary>
Gets the by criteria.
</summary>
<param name="fncCriteria">The FNC criteria.</param>
<returns></returns>
public IEnumerable<T> GetByCriteria(Func<T,bool> fncCriteria)
{
return GetList().Where(fncCriteria);
}
#endregion
}
} |
#pragma warning(disable:4996)
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main(int argc, char** argv)
{
char infile[256], outfile[256];
int mszx, mszy, outmszx, outmszy;
short *inputimg, *outputimg;
int i, j, intX, intY;
float ratiox, ratioy, floatX, floatY, deltaX, deltaY;
FILE *fp;
int flag;
if (argc != 8)
{
printf("Usage: %s (input file) (output file) (size X) (size Y) (X-ratio) (Y-ratio) (flag - 0 : nearest neighbor, 1 : linear interpolation)\n", argv[0]);
exit(0);
}
strcpy(infile, argv[1]);
strcpy(outfile, argv[2]);
mszx = atoi(argv[3]);
mszy = atoi(argv[4]);
ratiox = atof(argv[5]);
ratioy = atof(argv[6]);
flag = atoi(argv[7]);
outmszx = (int)(ratiox*(float)mszx + 0.5);
outmszy = (int)(ratioy*(float)mszy + 0.5);
printf("INPUT IMAGE FILE = %s \n", infile);
printf("OUTPUT IMAGE FILE = %s \n", outfile);
printf("SIZE X = %d \n", mszx);
printf("SIZE Y = %d \n", mszy);
printf("OUTPUT SIZE X = %d\n", outmszx);
printf("OUTPUT SIZE Y = %d\n", outmszy);
if (flag == 0) printf("interpolation : nearest neighbor \n");
else if (flag == 1) printf("interpolation : linear interpolation \n");
inputimg = (short*)malloc(mszx*mszy*sizeof(short));
outputimg = (short*)malloc(outmszx*outmszy*sizeof(short));
if ((fp = fopen(infile, "rb")) == NULL)
{
printf("OPEN FAILED %s\n", infile);
exit(0);
}
fread(inputimg, sizeof(short), mszx*mszy, fp);
fclose(fp);
// Image Processing
if (flag == 0)
{
for (j = 0; j < outmszy; j++)
{
floatY = (float)j / ratioy;
intY = (int)(floatY + 0.5);
for (i = 0; i < outmszx; i++)
{
floatX = (float)i / ratiox;
intX = (int)(floatX + 0.5);
if (intX >= 0 && intX < mszx && intY >= 0 && intY < mszy)
{
outputimg[j * outmszx + i] = inputimg[intY * mszx + intY];
}
else
{
outputimg[j * outmszx + i] = 0;
}
}
}
}
else if (flag == 1)
{
for (j = 0; j < outmszy; j++)
{
floatY = (float)j / ratioy;
intY = (int)(floatY + 0.5);
deltaY = floatY - (float)intY;
for (i = 0; i < outmszx; i++)
{
floatX = (float)i / ratiox;
intX = (int)(floatX + 0.5);
deltaX = floatX - (float)intX;
if (floatX >= 0.0 && intX - 1 < mszx && floatY >= 0.0 && intY - 1 < mszy)
{
outputimg[j * outmszx + i] = (short)(
(float)inputimg[intY * mszx + intX] * (1.0 - deltaX) * (1.0 - deltaY)
+ (float)inputimg[intY * mszx + intX + 1] * deltaX * (1 - deltaY)
+ (float)inputimg[(intY + 1) * mszx + intX] * (1.0 - deltaX) * deltaY
+ (float)inputimg[(intY + 1) * mszx + intX + 1] * deltaX * deltaY
+ 0.5
);
}
else
outputimg[j * outmszx + i] = 0;
}
}
}
if ((fp = fopen(outfile, "wb")) == NULL)
{
printf("OPEN FAILED %s\n", outfile);
exit(0);
}
fwrite(outputimg, sizeof(short), outmszx*outmszy, fp);
fclose(fp);
free(inputimg);
free(outputimg);
return 0;
} |
<?php
include("connexion.php");
$affect="update Candidature set dateC=Datetime(NOW()) where idProj=$_SESSION['idProj'] and idGrC=$_SESSION['legroupecliqué']";
$execaffect=mysqli_query($link,$affect);
$dateact=date("Y-m-d");
$heureact=date("H:i");
$delaiJFinal=date("Y-m-d", strtotime("+".1." day",strtotime($dateact)));
$decalageg="update Candidature set dateC=$delaiJFinal where idProj=$_SESSION['idProj'] and idGrC in (Select distinct idGrC from Candidature where idGrc <> $_SESSION['legroupecliqué'];) ";
$exedecalageg=mysql_query($link,$decalageg);
?> |
/*Logo*/
.header {
background: #fff;
height: 60px;
line-height: 60px;
border-bottom: 1px solid #ececec;
}
.header .logo {
width: 109px;
height: 60px;
float: left;
display: inline-block;
margin-right: 60px;
}
.header .logo img {
width: 109px;
margin-top: 10px;
}
/*Logo End*/
.header nav {
height: 60px;
float: left;
display: inline-block;
}
.header nav a {
color: #333;
}
.header nav li:hover {
color: #35b558;
}
.header nav li a:hover {
color: #35b558;
}
.header nav li {
position: relative;
display: inline-block;
font-size: 14px;
height: 60px;
cursor: pointer;
margin-right: 50px;
float: left;
}
.header nav .header-nav .active {
color: #35b558;
}
.header nav li:hover .submenu {
display: block;
opacity: 1;
animation: myfirst 0.8s ease normal;
}
@keyframes myfirst {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
/*icon*/
.header nav li .arrow-icon {
margin-bottom: 2px;
}
.header nav .header-nav .arrow-icon {
width: 8px;
height: 8px;
border-top: 1px solid #c1c1c1;
border-left: 1px solid #c1c1c1;
display: inline-block;
transform: rotate(-135deg);
-ms-transform: rotate(-135deg);
-webkit-transform: rotate(-135deg);
-o-transform: rotate(-135deg);
-moz-transform: rotate(-135deg);
transform-origin: 4px 4px;
-ms-transform-origin: 4px 4px;
-<API key>: 4px 4px;
-o-transform-origin: 4px 4px;
-<API key>: 4px 4px;
}
.header nav .submenu {
position: absolute;
z-index: 1000;
top: 60px;
left: 0;
background: #fff;
/*font-size: 12px;*/
color: #666;
width: 280px;
display: none;
opacity: 0;
}
.header nav .submenu h3 {
margin: 10px 0;
padding: 0 15px;
background: #fafafa;
height: 28px;
line-height: 28px;
font-size: 12px;
font-weight: 300;
}
.header nav .submenu a {
display: block;
height: 30px;
line-height: 30px;
padding: 0 15px;
font-size: 12px;
color: #555;
white-space: normal;
}
.school-list i,
.vip-lession i {
background: url(../images/allicon.png) no-repeat 0 0;
width: 14px;
height: 14px;
display: inline-block;
margin-right: 10px!important;
background-size: 64px;
}
.school-list i.webchat-icon,
.school-list i.go-icon,
.school-list i.python-icon,
.school-list i.ios-icon {
background: url(../images/allicon4.png) no-repeat 0 0;
background-position: 0px 0px;
background-size: 16px 148px;
}
.school-list .web-icon {
background-position: -13px -27px;
}
.school-list .android-icon {
background-position: -45px -14px;
}
.school-list i.webchat-icon {
background-position: -2px -60px;
}
.school-list i.python-icon {
background-position: -2px -2px;
}
.school-list i.go-icon {
background-position: -2px -40px;
}
.school-list i.ios-icon {
background-position: -2px -80px;
}
/*icon End*/
.header .header-login {
float: right;
text-align: right;
width: 200px;
height: 60px;
margin-right: 10px;
}
.header .header-login span {
display: inline-block;
width: 17px;
height: 60px;
margin-left: 25px;
cursor: pointer;
}
.header .header-login .search-icon {
background: url(../images/search-icon.png) no-repeat 0 50%;
background-size: 17px 17px;
}
.header .header-login .app-icon {
background: url(../images/app-icon.png) no-repeat 0 50%;
background-size: 17px 17px;
}
.header .header-login .login-icon {
background: url(../images/login-icon.png) no-repeat 0 50%;
background-size: 17px 17px;
}
/* End*/
.page .jk-banner {
position: relative;
float: left;
width: 750px;
height: 330px;
margin-right: 10px;
overflow: hidden;
}
.page .jk-banner .banner-img {
width: 6750px;
position: absolute;
}
.page .jk-banner .banner-img li {
float: left;
}
.page .jk-login {
float: left;
width: 240px;
height: 160px;
border: 1px solid #e9e9e9;
background: #fff;
box-sizing: border-box;
padding: 26px 29px 24px;
}
.page .jk-login a:hover {
background: #35b558;
color: #fff;
transition: background-color .4s ease-in;
-ms-transition: background-color .4s ease-in;
-webkit-transition: background-color .4s ease-in;
-o-transition: background-color .4s ease-in;
-moz-transition: background-color .4s ease-in;
}
/* end*/
.page .jk-login .userImg {
width: 57px;
height: 57px;
float: left;
border-radius: 50%;
margin-right: 15px;
}
.page .jk-login .userInfo span {
float: left;
font-size: 12px;
color: #555;
height: 16px;
line-height: 16px;
width: 108px;
margin-top: 8px;
}
.page .jk-login .userInfo p {
float: left;
height: 16px;
line-height: 16px;
margin-top: 10px;
color: #555;
}
.page .jk-huodong {
width: 239px;
height: 160px;
margin-top: 10px;
float: left;
background: url(../images/huodong.png) no-repeat 0 0;
}
/*banner*/
.page .jk-banner .banner-arrow {
position: absolute;
width: 50px;
height: 80px;
float: left;
top: 50%;
cursor: pointer;
margin-top: -40px;
background: url(../images/arrow.png) no-repeat 50% 50%;
background-size: 50px 80px;
z-index: 2;
}
.page .jk-banner .banner-arrow-left {
left: 0;
}
.page .jk-banner .banner-arrow-right {
right: 0;
transform: rotate(180deg);
-ms-transform: rotate(180deg);
-webkit-transform: rotate(180deg);
-o-transform: rotate(180deg);
-moz-transform: rotate(180deg);
}
/*banner End*/
/*banner*/
.page .jk-banner .banner-num {
font-size: 0px;
width: 100%;
height: 10px;
position: absolute;
text-align: center;
left: 0;
bottom: 20px;
}
.page .jk-banner .banner-num li {
/* float: left;*/
display: inline-block;
background: #fff;
width: 8px;
height: 8px;
margin-left: 8px;
cursor: pointer;
}
.page .jk-banner .banner-num li.on {
height: 20px;
background: #35b558;
}
/*banner End*/
/* End*/
.page .jk-login .userInfo-btn {
position: relative;
float: left;
display: inline-block;
width: 180px;
height: 57px;
text-align: center;
}
.page .jk-login .btn {
width: 85px;
height: 32px;
line-height: 30px;
display: inline-block;
float: left;
margin-top: 20px;
border: 1px solid #35b558;
border-radius: 2px;
box-sizing: border-box;
font-size: 14px;
color: #35b558;
}
.page .jk-login .btnLogin {
margin-right: 10px;
text-align: center;
}
/* End*/
.page .jk-jiuye {
float: left;
width: 100%;
margin-top: 20px;
position: relative;
}
.page .jk-jiuye .jk-ban {
float: left;
width: 327px;
height: 70px;
line-height: 70px;
margin-right: 9px;
margin-bottom: 10px;
transition: box-shadow .2s linear;
-webkit-transition: box-shadow .2s linear;
-ms-transition: box-shadow .2s linear;
-o-transition: box-shadow .2s linear;
-moz-transition: box-shadow .2s linear;
}
.page .jk-jiuye .jk-ban img {
width: 55px;
height: 55px;
vertical-align: middle;
padding-left: 33px;
}
.page .jk-jiuye .jk-ban:hover {
box-shadow: 0 4px 8px rgba(0, 0, 0, .4);
}
.page .jk-jiuye .php {
background: url(../images/jiuye-ban01.jpg) no-repeat center center;
background-size: 327px 70px;
}
.page .jk-jiuye .web {
background: url(../images/jiuye-ban02.jpg) no-repeat center center;
background-size: 327px 70px;
}
.page .jk-jiuye .ui {
background: url(../images/jiuye-ban03.jpg) no-repeat center center;
background-size: 327px 70px;
}
.page .jk-jiuye .android {
background: url(../images/jiuye-ban04.jpg) no-repeat center center;
background-size: 327px 70px;
}
.page .jk-jiuye .ios {
background: url(../images/jiuye-ban05.jpg) no-repeat center center;
background-size: 327px 70px;
}
.page .jk-jiuye .java {
background: url(../images/jiuye-ban06.jpg) no-repeat center center;
background-size: 327px 70px;
}
.page .jk-jiuye .jk-ban p {
text-align: center;
font-size: 14px;
color: #fff;
width: 204px;
height: 70px;
margin-left: 30px;
display: inline-block;
}
.page .jk-jiuye .jk-ban:nth-child(3n) {
margin-right: 0;
}
/* end*/ |
package config
type Dependencies interface {
Configurator
Installs() []string
merge(other Dependencies)
}
func NewDependencies(deps ...string) Dependencies {
s := make(map[string]bool, len(deps))
for _, dep := range deps {
s[dep] = exists
}
return dependencies{
set: s,
}
}
const exists = true
type dependencies struct {
set map[string]bool
}
func (d dependencies) Installs() []string {
keys := make([]string, len(d.set))
i := 0
for k := range d.set {
keys[i] = k
i++
}
return keys
}
func (d dependencies) Configure(cfg Configurable) {
cfg.Config().Dependencies.merge(d)
}
func (d dependencies) merge(other Dependencies) {
for _, dep := range other.Installs() {
d.set[dep] = exists
}
} |
#pragma once
#include "Vector3.h"
namespace BasicRenderer
{
class PointLight
{
public:
class Vector3 position;
float intensity = 1.0f;
PointLight() {}
PointLight(float intensity_, const Vector3& pos) : intensity(intensity_), position(pos) {}
PointLight(const PointLight& dl) : intensity(dl.intensity), position(dl.position) {}
virtual ~PointLight() {}
};
} |
<?php
@include "config.php";
$pass = $row1[value];
if($_COOKIE["pass"]!==$pass){
sleep(1);
if(isset($_POST["pass"])){
setcookie("pass",md5($_POST["pass"]), time()+3600*24*14);
die('<meta http-equiv="refresh" content="1; url=/admin.php">');
}
?>
<html>
<head><title>Админ панель</title></head>
<body>
<form method="post">
<input type="password" name="pass" value="" />
<input type="submit" name="submit" value="Войти" />
</form>
</body>
</html>
<?php
exit();
}
?>
<?php
if(isset($_POST["logout"])){
setcookie('pass', '',time() - 10*365*24*60*60);
die('<meta http-equiv="refresh" content="1; url=/admin.php">');
}
$num = 5;
$result = mysql_query("SELECT COUNT(*) FROM images");
$rgPosts = mysql_fetch_row($result);
$posts=$rgPosts[0];
$total = intval(($posts - 1) / $num) + 1;
$page = $_GET['page'];
$page = intval($page);
if(empty($page) or $page < 0) $page = 1;
if($page > $total) $page = $total;
$start = $page * $num - $num;
$result = mysql_query("SELECT * FROM images LIMIT $start, $num");
while ( $postrow[] = mysql_fetch_array($result))
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Простое разделение на страницы таки да</title>
<link rel="stylesheet" type="text/css" href="/main.css" />
<style>
input:hover { text-decoration: underline; }
</style>
</head>
<body>
<!-- ADMIN BAR -->
<table class="bar" width="100%" border="1" style="position:static; top:0px; text-align:right; color: white;">
<tr><td height="35px">
<? include 'topbar.php'; ?>
</td></tr>
</table>
<!-- /ADMIN BAR -->
<h1><a href="/">Логотип</a></h1>
<?
switch ($_GET["f"])
{
case "delete":
delete_item(); break;
}
echo "<div align=\"center\">";
echo "<table width=\"70%\" border=\"0\"";
echo "<tr><th align=\"center\">ID</th><th align=\"center\">Картинка</th><th align=\"center\">Информация</th><th align=\"center\">Действия</th></tr>";
for($i = 0; $i < $num; $i++)
{
if (!empty($postrow[$i]['uniq_id']))
{$nickname=$postrow[$i]['uniq_id'];}
else {$nickname="Аноним";}
if ((empty($postrow[$i]['category'])))
{
$category = 'Без категории';
}
elseif (($postrow[$i]['category'] == 1))
{
$category = 'Смешное';
}
elseif (($postrow[$i]['category'] == 2))
{
$category = 'Животные';
}
elseif (($postrow[$i]['category'] == 3))
{
$category = 'Политика';
}
elseif (($postrow[$i]['category'] == 4))
{
$category = 'Девушки';
}
elseif (($postrow[$i]['category'] == 5))
{
$category = 'Учеба';
}
elseif (($postrow[$i]['category'] == 6))
{
$category = 'Страшное';
}
if (!empty($postrow[$i]['id']))
{
echo "<tr>
<td style=\"color:#B2b2b2; padding-left:4px\" width=\"30px\">".$postrow[$i]['id']."</td>
<td align=\"center\"><a target=\"_blank\" href=\"".$url.$postrow[$i]['link']."\"><img width=\"290px\" src=\"".$url.$papka.$postrow[$i]['link'].".".$postrow[$i]['exten']."\" /></a></td>
<td align=\"center\">
Имя файла: ".$postrow[$i]['name']."<br />
Кто загрузил: ".$nickname." (<a target=\"_blank\" href=\"http:
Разрешение: ".$postrow[$i]['razmer']."<br />
Просмотров: ".$postrow[$i]['views']."<br />
Категория: ".$category."<br />
</td>
<td align=\"center\"><a href=\"".$_SERVER['REQUEST_URI']."&f=delete&name=".$postrow[$i]['link'].".".$postrow[$i]['exten']."&id=".$postrow[$i]['id']."\">[Удалить]</a></td>
</tr>";
}
}
echo "</table>";
echo "</div>";
$tdl = $papka.$postrow[$i]['link'].$postrow[$i]['exten'];
function delete_item()
{
$query = "DELETE FROM images WHERE id=".$_GET['id'];
mysql_query ( $query );
unlink ($tdl);
header( 'Location: '.$_SERVER['PHP_SELF'] );
die();
}
?>
<?php
if ($page != 1) $pervpage = '<a href= ./admin.php?page=1><<</a>
<a href= ./admin.php?page='. ($page - 1) .'><</a> ';
if ($page != $total) $nextpage = ' <a href= ./admin.php?page='. ($page + 1) .'>></a>
<a href= ./admin.php?page=' .$total. '>>></a>';
if($page - 2 > 0) $page2left = ' <a href= ./admin.php?page='. ($page - 2) .'>'. ($page - 2) .'</a> | ';
if($page - 1 > 0) $page1left = '<a href= ./admin.php?page='. ($page - 1) .'>'. ($page - 1) .'</a> | ';
if($page + 2 <= $total) $page2right = ' | <a href= ./admin.php?page='. ($page + 2) .'>'. ($page + 2) .'</a>';
if($page + 1 <= $total) $page1right = ' | <a href= ./admin.php?page='. ($page + 1) .'>'. ($page + 1) .'</a>';
echo $pervpage.$page2left.$page1left.'<b>'.$page.'</b>'.$page1right.$page2right.$nextpage;
?>
</body>
</html> |
<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>{gooraye:$tpl.wxname}</title>
<base href="." />
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;" />
<meta name="<API key>" content="yes" />
<meta name="<API key>" content="black" />
<meta name="format-detection" content="telephone=no" />
<link rel="stylesheet" href="{gooraye::RES}/css/136/idangerous.swiper.css">
<link href="{gooraye::RES}/css/136/iscroll.css" rel="stylesheet" type="text/css" />
<link href="{gooraye::RES}/css/allcss/cate{gooraye:$tpl.tpltypeid}_{gooraye:$tpl.color_id}.css" rel="stylesheet" type="text/css" />
<style>
</style>
<script src="{gooraye::RES}/css/136/iscroll.js" type="text/javascript"></script>
<script type="text/javascript">
var myScroll;
function loaded() {
myScroll = new iScroll('wrapper', {
snap: true,
momentum: false,
hScrollbar: false,
onScrollEnd: function () {
document.querySelector('#indicator > li.active').className = '';
document.querySelector('#indicator > li:nth-child(' + (this.currPageX+1) + ')').className = 'active';
}
});
}
document.addEventListener('DOMContentLoaded', loaded, false);
</script>
</head>
<body id="cate17">
<if condition="$homeInfo['musicurl'] neq false">
<include file="Index:music"/>
</if>
<div id="insert1" style="z-index:10000; position:fixed; top:20px;" ></div>
<div class="banner">
<div id="wrapper">
<div id="scroller">
<ul id="thelist">
<volist name="flashbg" id="so">
<li>
<img src="{gooraye:$so.img}">
</li>
</volist>
</ul>
</div>
</div>
<div id="nav" >
<div id="prev" onClick="myScroll.scrollToPage('prev', 0,400,2);return false">← prev</div>
<ul id="indicator">
<volist name="flashbg" id="so">
<li <if condition="$i eq 1">class="active"</if> ></li>
</volist>
</ul>
<div id="next" onClick="myScroll.scrollToPage('next', 0,400,2);return false">next →</div>
</div>
<div class="clr"></div>
</div>
<div class="device">
<a class="arrow-left" href="
<a class="arrow-right" href="
<div class="swiper-container">
<div class="swiper-wrapper">
<?php
$catsNum=count($info);
?>
<volist name="info" id="vo">
<?php
if($i%4==1){
?>
<div class="swiper-slide">
<div class="content-slide">
<?php
}
?>
<a href="<if condition="$vo['url'] eq ''">{gooraye::U('Wap/Index/lists',array('classid'=>$vo['id'],'token'=>$vo['token']))}<else/>{gooraye:$vo.url|<API key>}</if>">
<p class="ico"><img src="{gooraye:$vo.img}" /></p>
<p class="title">{gooraye:$vo.name}</p>
</a>
<?php
if($i%4==0||$i==$catsCount){
?>
</div>
</div>
<?php
}
?>
</volist>
</div>
</div>
</div>
<div class="pagination"></div>
</div>
<script src="{gooraye::RES}/css/136/jquery-1.10.1.min.js" type="text/javascript"></script>
<script src="{gooraye::RES}/css/136/idangerous.swiper-2.1.min.js" type="text/javascript"></script>
<script>
var mySwiper = new Swiper('.swiper-container',{
pagination: '.pagination',
loop:true,
grabCursor: true,
paginationClickable: true
})
$('.arrow-left').on('click', function(e){
e.preventDefault()
mySwiper.swipePrev()
})
$('.arrow-right').on('click', function(e){
e.preventDefault()
mySwiper.swipeNext()
})
</script>
<script>
var count = document.getElementById("thelist").<API key>("img").length;
var count2 = document.<API key>("menuimg").length;
for(i=0;i<count;i++){
document.getElementById("thelist").<API key>("img").item(i).style.cssText = " width:"+document.body.clientWidth+"px";
}
document.getElementById("scroller").style.cssText = " width:"+document.body.clientWidth*count+"px";
setInterval(function(){
myScroll.scrollToPage('next', 0,400,count);
},3500 );
window.onresize = function(){
for(i=0;i<count;i++){
document.getElementById("thelist").<API key>("img").item(i).style.cssText = " width:"+document.body.clientWidth+"px";
}
document.getElementById("scroller").style.cssText = " width:"+document.body.clientWidth*count+"px";
}
</script>
</div>
<div style="display:none"> </div>
<include file="Index:styleInclude"/><include file="$cateMenuFileName"/>
<if condition="ACTION_NAME eq 'index'">
<script type="text/javascript">
window.shareData = {
"moduleName":"Index",
"moduleID": '0',
"imgUrl": "{gooraye:$homeInfo.picurl}",
"timeLineLink": "{gooraye::C('site_url')}{gooraye::U(Index/ACTION_NAME,array('token'=>$_GET['token']))}",
"sendFriendLink": "{gooraye::C('site_url')}{gooraye::U(Index/ACTION_NAME,array('token'=>$_GET['token']))}",
"weiboLink": "{gooraye::C('site_url')}{gooraye::U(Index/ACTION_NAME,array('token'=>$_GET['token']))}",
"tTitle": "{gooraye:$homeInfo.title}",
"tContent": "{gooraye:$homeInfo.info}"
};
</script>
<else />
<script type="text/javascript">
window.shareData = {
"moduleName":"Index",
"moduleID": '1',
"imgUrl": "{gooraye:$homeInfo.picurl}",
"timeLineLink": "{gooraye::C('site_url')}{gooraye::U(Index/ACTION_NAME,array('token'=>$_GET['token'],'classid'=>$_GET['classid']))}",
"sendFriendLink": "{gooraye::C('site_url')}{gooraye::U(MODULE_NAME/ACTION_NAME,array('token'=>$_GET['token'],'classid'=>$_GET['classid']))}",
"weiboLink": "{gooraye::C('site_url')}{gooraye::U(MODULE_NAME/ACTION_NAME,array('token'=>$_GET['token'],'classid'=>$_GET['classid']))}",
"tTitle": "{gooraye:$homeInfo.title}",
"tContent": "{gooraye:$homeInfo.info}"
};
</script>
</if>
{gooraye:$shareScript}
</body>
</html> |
package Paws::Pinpoint::SMSMessage;
use Moose;
has Body => (is => 'ro', isa => 'Str');
has MessageType => (is => 'ro', isa => 'Str');
has SenderId => (is => 'ro', isa => 'Str');
has Substitutions => (is => 'ro', isa => 'Paws::Pinpoint::MapOfListOf__string');
1;
main pod documentation begin
=head1 NAME
Paws::Pinpoint::SMSMessage
=head1 USAGE
This class represents one of two things:
=head3 Arguments in a call to a service
Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
Each attribute should be used as a named argument in the calls that expect this type of object.
As an example, if Att1 is expected to be a Paws::Pinpoint::SMSMessage object:
$service_obj->Method(Att1 => { Body => $value, ..., Substitutions => $value });
=head3 Results returned from an API call
Use accessors for each attribute. If Att1 is expected to be an Paws::Pinpoint::SMSMessage object:
$result = $service_obj->Method(...);
$result->Att1->Body
=head1 DESCRIPTION
SMS Message.
=head1 ATTRIBUTES
=head2 Body => Str
The message body of the notification, the email body or the text
message.
=head2 MessageType => Str
Is this a transaction priority message or lower priority.
=head2 SenderId => Str
Sender ID of sent message.
=head2 Substitutions => L<Paws::Pinpoint::MapOfListOf__string>
Default message substitutions. Can be overridden by individual address
substitutions.
=head1 SEE ALSO
This class forms part of L<Paws>, describing an object used in L<Paws::Pinpoint>
=head1 BUGS and CONTRIBUTIONS
The source code is located here: https://github.com/pplu/aws-sdk-perl
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
=cut |
package com.alibaba.tamper.process.script;
/**
* modelBuilder
*
* <pre>
*
* 1.buildermodel
* 2.data
* 3.formatter
* </pre>
*
* @author jianghang 2011-5-20 03:43:14
*/
public interface ScriptContext {
} |
package eu.snigle.corsaire;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.view.KeyEvent;
public class <API key> extends BroadcastReceiver{
private static final String TAG = "MainRemoteControlR";
public <API key>(){
super();
}
@Override
public void onReceive(Context context, Intent intent) {
Log.i(TAG,"play pressed ! 1");
if (Intent.ACTION_MEDIA_BUTTON.equals(intent.getAction())) {
Log.i(TAG,"play pressed ! 2");
KeyEvent event = intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT);
Log.i(TAG,"key eveny "+event);
if (KeyEvent.ACTION_UP == event.getAction()) {
Log.i(TAG,"play myaddress pressed !");
Intent myIntent = new Intent(context, MyAddressService.class);
myIntent.putExtra("myAddress", true);
context.startService(myIntent);
}
}
}
} |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_151) on Thu Mar 08 14:17:42 MST 2018 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class org.wildfly.swarm.config.management.access.FileHandler (BOM: * : All 2018.3.3 API)</title>
<meta name="date" content="2018-03-08">
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class org.wildfly.swarm.config.management.access.FileHandler (BOM: * : All 2018.3.3 API)";
}
}
catch(err) {
}
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="topNav"><a name="navbar.top">
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../../../org/wildfly/swarm/config/management/access/FileHandler.html" title="class in org.wildfly.swarm.config.management.access">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../../../../../../../overview-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">WildFly Swarm API, 2018.3.3</div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/wildfly/swarm/config/management/access/class-use/FileHandler.html" target="_top">Frames</a></li>
<li><a href="FileHandler.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="<API key>">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!
allClassesLink = document.getElementById("<API key>");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
</script>
</div>
<a name="skip.navbar.top">
</a></div>
<div class="header">
<h2 title="Uses of Class org.wildfly.swarm.config.management.access.FileHandler" class="title">Uses of Class<br>org.wildfly.swarm.config.management.access.FileHandler</h2>
</div>
<div class="classUseContainer">
<ul class="blockList">
<li class="blockList">
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation">
<caption><span>Packages that use <a href="../../../../../../../org/wildfly/swarm/config/management/access/FileHandler.html" title="class in org.wildfly.swarm.config.management.access">FileHandler</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Package</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="#org.wildfly.swarm.config.management">org.wildfly.swarm.config.management</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.wildfly.swarm.config.management.access">org.wildfly.swarm.config.management.access</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="org.wildfly.swarm.config.management">
</a>
<h3>Uses of <a href="../../../../../../../org/wildfly/swarm/config/management/access/FileHandler.html" title="class in org.wildfly.swarm.config.management.access">FileHandler</a> in <a href="../../../../../../../org/wildfly/swarm/config/management/package-summary.html">org.wildfly.swarm.config.management</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../../org/wildfly/swarm/config/management/package-summary.html">org.wildfly.swarm.config.management</a> that return <a href="../../../../../../../org/wildfly/swarm/config/management/access/FileHandler.html" title="class in org.wildfly.swarm.config.management.access">FileHandler</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/wildfly/swarm/config/management/access/FileHandler.html" title="class in org.wildfly.swarm.config.management.access">FileHandler</a></code></td>
<td class="colLast"><span class="typeNameLabel">AuditAccess.<API key>.</span><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/management/AuditAccess.<API key>.html
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../../org/wildfly/swarm/config/management/package-summary.html">org.wildfly.swarm.config.management</a> that return types with arguments of type <a href="../../../../../../../org/wildfly/swarm/config/management/access/FileHandler.html" title="class in org.wildfly.swarm.config.management.access">FileHandler</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../../../org/wildfly/swarm/config/management/access/FileHandler.html" title="class in org.wildfly.swarm.config.management.access">FileHandler</a>></code></td>
<td class="colLast"><span class="typeNameLabel">AuditAccess.<API key>.</span><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/management/AuditAccess.<API key>.html#fileHandlers--">fileHandlers</a></span>()</code>
<div class="block">Get the list of FileHandler resources</div>
</td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../../org/wildfly/swarm/config/management/package-summary.html">org.wildfly.swarm.config.management</a> with parameters of type <a href="../../../../../../../org/wildfly/swarm/config/management/access/FileHandler.html" title="class in org.wildfly.swarm.config.management.access">FileHandler</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/wildfly/swarm/config/management/AuditAccess.html" title="type parameter in AuditAccess">T</a></code></td>
<td class="colLast"><span class="typeNameLabel">AuditAccess.</span><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/management/AuditAccess.html#fileHandler-org.wildfly.swarm.config.management.access.FileHandler-">fileHandler</a></span>(<a href="../../../../../../../org/wildfly/swarm/config/management/access/FileHandler.html" title="class in org.wildfly.swarm.config.management.access">FileHandler</a> value)</code>
<div class="block">Add the FileHandler object to the list of subresources</div>
</td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Method parameters in <a href="../../../../../../../org/wildfly/swarm/config/management/package-summary.html">org.wildfly.swarm.config.management</a> with type arguments of type <a href="../../../../../../../org/wildfly/swarm/config/management/access/FileHandler.html" title="class in org.wildfly.swarm.config.management.access">FileHandler</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/wildfly/swarm/config/management/AuditAccess.html" title="type parameter in AuditAccess">T</a></code></td>
<td class="colLast"><span class="typeNameLabel">AuditAccess.</span><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/management/AuditAccess.html
<div class="block">Add all FileHandler objects to this subresource</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.wildfly.swarm.config.management.access">
</a>
<h3>Uses of <a href="../../../../../../../org/wildfly/swarm/config/management/access/FileHandler.html" title="class in org.wildfly.swarm.config.management.access">FileHandler</a> in <a href="../../../../../../../org/wildfly/swarm/config/management/access/package-summary.html">org.wildfly.swarm.config.management.access</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../../../../org/wildfly/swarm/config/management/access/package-summary.html">org.wildfly.swarm.config.management.access</a> with type parameters of type <a href="../../../../../../../org/wildfly/swarm/config/management/access/FileHandler.html" title="class in org.wildfly.swarm.config.management.access">FileHandler</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>class </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/management/access/FileHandler.html" title="class in org.wildfly.swarm.config.management.access">FileHandler</a><T extends <a href="../../../../../../../org/wildfly/swarm/config/management/access/FileHandler.html" title="class in org.wildfly.swarm.config.management.access">FileHandler</a><T>></span></code>
<div class="block">A file handler for use with the management audit logging service.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/management/access/FileHandlerConsumer.html" title="interface in org.wildfly.swarm.config.management.access">FileHandlerConsumer</a><T extends <a href="../../../../../../../org/wildfly/swarm/config/management/access/FileHandler.html" title="class in org.wildfly.swarm.config.management.access">FileHandler</a><T>></span></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>interface </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/management/access/FileHandlerSupplier.html" title="interface in org.wildfly.swarm.config.management.access">FileHandlerSupplier</a><T extends <a href="../../../../../../../org/wildfly/swarm/config/management/access/FileHandler.html" title="class in org.wildfly.swarm.config.management.access">FileHandler</a>></span></code> </td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../../org/wildfly/swarm/config/management/access/package-summary.html">org.wildfly.swarm.config.management.access</a> that return <a href="../../../../../../../org/wildfly/swarm/config/management/access/FileHandler.html" title="class in org.wildfly.swarm.config.management.access">FileHandler</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/wildfly/swarm/config/management/access/FileHandler.html" title="class in org.wildfly.swarm.config.management.access">FileHandler</a></code></td>
<td class="colLast"><span class="typeNameLabel">FileHandlerSupplier.</span><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/management/access/FileHandlerSupplier.html#get--">get</a></span>()</code>
<div class="block">Constructed instance of FileHandler resource</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="bottomNav"><a name="navbar.bottom">
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../../../org/wildfly/swarm/config/management/access/FileHandler.html" title="class in org.wildfly.swarm.config.management.access">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../../../../../../../overview-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">WildFly Swarm API, 2018.3.3</div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/wildfly/swarm/config/management/access/class-use/FileHandler.html" target="_top">Frames</a></li>
<li><a href="FileHandler.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="<API key>">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!
allClassesLink = document.getElementById("<API key>");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
</script>
</div>
<a name="skip.navbar.bottom">
</a></div>
<p class="legalCopy"><small>Copyright &
</body>
</html> |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_60-ea) on Tue Aug 16 17:15:34 EDT 2016 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class org.wildfly.swarm.config.datasources.FlushStrategy (Public javadocs 2016.8.1 API)</title>
<meta name="date" content="2016-08-16">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class org.wildfly.swarm.config.datasources.FlushStrategy (Public javadocs 2016.8.1 API)";
}
}
catch(err) {
}
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="topNav"><a name="navbar.top">
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../../org/wildfly/swarm/config/datasources/FlushStrategy.html" title="enum in org.wildfly.swarm.config.datasources">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../../../../../../overview-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">WildFly Swarm API, 2016.8.1</div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/wildfly/swarm/config/datasources/class-use/FlushStrategy.html" target="_top">Frames</a></li>
<li><a href="FlushStrategy.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="<API key>">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!
allClassesLink = document.getElementById("<API key>");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
</script>
</div>
<a name="skip.navbar.top">
</a></div>
<div class="header">
<h2 title="Uses of Class org.wildfly.swarm.config.datasources.FlushStrategy" class="title">Uses of Class<br>org.wildfly.swarm.config.datasources.FlushStrategy</h2>
</div>
<div class="classUseContainer">
<ul class="blockList">
<li class="blockList">
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation">
<caption><span>Packages that use <a href="../../../../../../org/wildfly/swarm/config/datasources/FlushStrategy.html" title="enum in org.wildfly.swarm.config.datasources">FlushStrategy</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Package</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="#org.wildfly.swarm.config.datasources">org.wildfly.swarm.config.datasources</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="org.wildfly.swarm.config.datasources">
</a>
<h3>Uses of <a href="../../../../../../org/wildfly/swarm/config/datasources/FlushStrategy.html" title="enum in org.wildfly.swarm.config.datasources">FlushStrategy</a> in <a href="../../../../../../org/wildfly/swarm/config/datasources/package-summary.html">org.wildfly.swarm.config.datasources</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../org/wildfly/swarm/config/datasources/package-summary.html">org.wildfly.swarm.config.datasources</a> that return <a href="../../../../../../org/wildfly/swarm/config/datasources/FlushStrategy.html" title="enum in org.wildfly.swarm.config.datasources">FlushStrategy</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/wildfly/swarm/config/datasources/FlushStrategy.html" title="enum in org.wildfly.swarm.config.datasources">FlushStrategy</a></code></td>
<td class="colLast"><span class="typeNameLabel">DataSource.</span><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/config/datasources/DataSource.html#flushStrategy--">flushStrategy</a></span>()</code>
<div class="block">Specifies how the pool should be flush in case of an error.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/wildfly/swarm/config/datasources/FlushStrategy.html" title="enum in org.wildfly.swarm.config.datasources">FlushStrategy</a></code></td>
<td class="colLast"><span class="typeNameLabel">XADataSource.</span><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/config/datasources/XADataSource.html#flushStrategy--">flushStrategy</a></span>()</code>
<div class="block">Specifies how the pool should be flush in case of an error.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../../org/wildfly/swarm/config/datasources/FlushStrategy.html" title="enum in org.wildfly.swarm.config.datasources">FlushStrategy</a></code></td>
<td class="colLast"><span class="typeNameLabel">FlushStrategy.</span><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/config/datasources/FlushStrategy.html
<div class="block">Returns the enum constant of this type with the specified name.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../../org/wildfly/swarm/config/datasources/FlushStrategy.html" title="enum in org.wildfly.swarm.config.datasources">FlushStrategy</a>[]</code></td>
<td class="colLast"><span class="typeNameLabel">FlushStrategy.</span><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/config/datasources/FlushStrategy.html#values--">values</a></span>()</code>
<div class="block">Returns an array containing the constants of this enum type, in
the order they are declared.</div>
</td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../org/wildfly/swarm/config/datasources/package-summary.html">org.wildfly.swarm.config.datasources</a> with parameters of type <a href="../../../../../../org/wildfly/swarm/config/datasources/FlushStrategy.html" title="enum in org.wildfly.swarm.config.datasources">FlushStrategy</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/wildfly/swarm/config/datasources/DataSource.html" title="type parameter in DataSource">T</a></code></td>
<td class="colLast"><span class="typeNameLabel">DataSource.</span><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/config/datasources/DataSource.html#flushStrategy-org.wildfly.swarm.config.datasources.FlushStrategy-">flushStrategy</a></span>(<a href="../../../../../../org/wildfly/swarm/config/datasources/FlushStrategy.html" title="enum in org.wildfly.swarm.config.datasources">FlushStrategy</a> value)</code>
<div class="block">Specifies how the pool should be flush in case of an error.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/wildfly/swarm/config/datasources/XADataSource.html" title="type parameter in XADataSource">T</a></code></td>
<td class="colLast"><span class="typeNameLabel">XADataSource.</span><code><span class="memberNameLink"><a href="../../../../../../org/wildfly/swarm/config/datasources/XADataSource.html#flushStrategy-org.wildfly.swarm.config.datasources.FlushStrategy-">flushStrategy</a></span>(<a href="../../../../../../org/wildfly/swarm/config/datasources/FlushStrategy.html" title="enum in org.wildfly.swarm.config.datasources">FlushStrategy</a> value)</code>
<div class="block">Specifies how the pool should be flush in case of an error.</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="bottomNav"><a name="navbar.bottom">
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../../org/wildfly/swarm/config/datasources/FlushStrategy.html" title="enum in org.wildfly.swarm.config.datasources">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../../../../../../overview-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">WildFly Swarm API, 2016.8.1</div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/wildfly/swarm/config/datasources/class-use/FlushStrategy.html" target="_top">Frames</a></li>
<li><a href="FlushStrategy.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="<API key>">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!
allClassesLink = document.getElementById("<API key>");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
</script>
</div>
<a name="skip.navbar.bottom">
</a></div>
<p class="legalCopy"><small>Copyright &
</body>
</html> |
package web
import (
"crypto/tls"
"crypto/x509"
"net/http"
"net/url"
"github.com/gravitational/teleport/lib/httplib"
"github.com/gravitational/roundtrip"
"github.com/gravitational/trace"
)
func newInsecureClient() *http.Client {
return &http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
},
}
}
func newClientWithPool(pool *x509.CertPool) *http.Client {
return &http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{RootCAs: pool},
},
}
}
func newWebClient(url string, opts ...roundtrip.ClientParam) (*webClient, error) {
clt, err := roundtrip.NewClient(url, APIVersion, opts...)
if err != nil {
return nil, trace.Wrap(err)
}
return &webClient{clt}, nil
}
// webClient is a package local lightweight client used
// in tests and some functions to handle errors properly
type webClient struct {
*roundtrip.Client
}
func (w *webClient) PostJSON(
endpoint string, val interface{}) (*roundtrip.Response, error) {
return httplib.ConvertResponse(w.Client.PostJSON(endpoint, val))
}
func (w *webClient) PutJSON(
endpoint string, val interface{}) (*roundtrip.Response, error) {
return httplib.ConvertResponse(w.Client.PutJSON(endpoint, val))
}
func (w *webClient) Get(endpoint string, val url.Values) (*roundtrip.Response, error) {
return httplib.ConvertResponse(w.Client.Get(endpoint, val))
}
func (w *webClient) Delete(endpoint string) (*roundtrip.Response, error) {
return httplib.ConvertResponse(w.Client.Delete(endpoint))
} |
package com.ans.cloud.data.mybatis.interceptor;
import com.ans.cloud.data.model.Page;
import com.ans.cloud.data.model.QPageQuery;
import org.apache.ibatis.executor.resultset.ResultSetHandler;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.plugin.Intercepts;
import org.apache.ibatis.plugin.Invocation;
import org.apache.ibatis.plugin.Signature;
import org.apache.ibatis.reflection.MetaObject;
import org.apache.ibatis.reflection.factory.<API key>;
import org.apache.ibatis.reflection.wrapper.<API key>;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
@Intercepts({@Signature(type = ResultSetHandler.class, method = "handleResultSets", args = {Statement.class})})
public class <API key> extends PageInterceptor {
@Override
public Object intercept(Invocation invocation) throws Throwable {
ResultSetHandler resultSetHandler = (ResultSetHandler) invocation.getTarget();
// MappedStatement,Configuration
MetaObject metaObject =
MetaObject.forObject(resultSetHandler, new <API key>(), new <API key>());
MappedStatement mappedStatement = (MappedStatement) metaObject.getValue("mappedStatement");
String statement = mappedStatement.getId();
if (!isPageSql(statement)) {
return invocation.proceed();
}
QPageQuery pageQuery = (QPageQuery) metaObject.getValue("boundSql.parameterObject");
List<Page> result = new ArrayList<Page>(1);
Page page = new Page();
page.setPagination(pageQuery.getPagination());
page.setResult((List) invocation.proceed());
result.add(page);
return result;
}
} |
package ca.uhn.fhir.jpa.config;
import java.util.Properties;
import org.hibernate.dialect.H2Dialect;
import org.hibernate.search.backend.lucene.cfg.<API key>;
import org.hibernate.search.engine.cfg.BackendSettings;
import org.hibernate.search.mapper.orm.cfg.<API key>;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.orm.jpa.<API key>;
import org.springframework.transaction.annotation.<API key>;
import ca.uhn.fhir.jpa.dao.IFulltextSearchSvc;
@Configuration
@<API key>()
public class <API key> extends TestR4Config {
/**
* Disable fulltext searching
*/
@Override
public IFulltextSearchSvc searchDaoR4() {
return null;
}
@Override
@Bean
public <API key> <API key>() {
<API key> retVal = super.<API key>();
retVal.setDataSource(dataSource());
retVal.setJpaProperties(jpaProperties());
return retVal;
}
@Override
public Properties jpaProperties() {
Properties extraProperties = new Properties();
extraProperties.put("hibernate.format_sql", "false");
extraProperties.put("hibernate.show_sql", "false");
extraProperties.put("hibernate.hbm2ddl.auto", "update");
extraProperties.put("hibernate.dialect", H2Dialect.class.getName());
extraProperties.put(<API key>.ENABLED, "false");
return extraProperties;
}
} |
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-
<html>
<head>
<title>AndHaveWord - ScalaTest 2.2.1 - org.scalatest.matchers.MatcherFactory3.AndHaveWord</title>
<meta name="description" content="AndHaveWord - ScalaTest 2.2.1 - org.scalatest.matchers.MatcherFactory3.AndHaveWord" />
<meta name="keywords" content="AndHaveWord ScalaTest 2.2.1 org.scalatest.matchers.MatcherFactory3.AndHaveWord" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link href="../../../lib/template.css" media="screen" type="text/css" rel="stylesheet" />
<link href="../../../lib/diagrams.css" media="screen" type="text/css" rel="stylesheet" id="diagrams-css" />
<script type="text/javascript" src="../../../lib/jquery.js" id="jquery-js"></script>
<script type="text/javascript" src="../../../lib/jquery-ui.js"></script>
<script type="text/javascript" src="../../../lib/template.js"></script>
<script type="text/javascript" src="../../../lib/tools.tooltip.js"></script>
<script type="text/javascript">
if(top === self) {
var url = '../../../index.html';
var hash = 'org.scalatest.matchers.MatcherFactory3$AndHaveWord';
var anchor = window.location.hash;
var anchor_opt = '';
if (anchor.length >= 1)
anchor_opt = '@' + anchor.substring(1);
window.location.href = url + '#' + hash + anchor_opt;
}
</script>
<script>
(function(i,s,o,g,r,a,m){i['<API key>']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.<API key>(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','
ga('create', 'UA-71294502-3', 'auto');
ga('send', 'pageview');
</script>
</head>
<body class="type">
<!-- Top of doc.scalatest.org [javascript] -->
<script type="text/javascript">
var rnd = window.rnd || Math.floor(Math.random()*10e6);
var pid204546 = window.pid204546 || rnd;
var plc204546 = window.plc204546 || 0;
var abkw = window.abkw || '';
var absrc = 'http://ab167933.adbutler-ikon.com/adserve/;ID=167933;size=468x60;setID=204546;type=js;sw='+screen.width+';sh='+screen.height+';spr='+window.devicePixelRatio+';kw='+abkw+';pid='+pid204546+';place='+(plc204546++)+';rnd='+rnd+';click=<API key>';
document.write('<scr'+'ipt src="'+absrc+'" type="text/javascript"></scr'+'ipt>');
</script>
<div id="definition">
<img src="../../../lib/class_big.png" />
<p id="owner"><a href="../../package.html" class="extype" name="org">org</a>.<a href="../package.html" class="extype" name="org.scalatest">scalatest</a>.<a href="package.html" class="extype" name="org.scalatest.matchers">matchers</a>.<a href="MatcherFactory3.html" class="extype" name="org.scalatest.matchers.MatcherFactory3">MatcherFactory3</a></p>
<h1>AndHaveWord</h1>
</div>
<h4 id="signature" class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">class</span>
</span>
<span class="symbol">
<span class="name">AndHaveWord</span><span class="result"> extends <span class="extype" name="scala.AnyRef">AnyRef</span></span>
</span>
</h4>
<div id="comment" class="fullcommenttop"><div class="comment cmt"><p>This class is part of the ScalaTest matchers DSL. Please see the documentation for <a href="../Matchers.html"><code>Matchers</code></a> for an overview of
the matchers DSL.
</p></div><dl class="attributes block"> <dt>Source</dt><dd><a href="https://github.com/scalatest/scalatest/tree/release-2.2.1-for-scala-2.11-and-2.10/src/main/scala/genfactories/MatcherFactory3.scala" target="_blank">MatcherFactory3.scala</a></dd></dl><div class="toggleContainer block">
<span class="toggle">Linear Supertypes</span>
<div class="superTypes hiddenContent"><span class="extype" name="scala.AnyRef">AnyRef</span>, <span class="extype" name="scala.Any">Any</span></div>
</div></div>
<div id="mbrsel">
<div id="textfilter"><span class="pre"></span><span class="input"><input id="mbrsel-input" type="text" accesskey="/" /></span><span class="post"></span></div>
<div id="order">
<span class="filtertype">Ordering</span>
<ol>
<li class="alpha in"><span>Alphabetic</span></li>
<li class="inherit out"><span>By inheritance</span></li>
</ol>
</div>
<div id="ancestors">
<span class="filtertype">Inherited<br />
</span>
<ol id="linearization">
<li class="in" name="org.scalatest.matchers.MatcherFactory3.AndHaveWord"><span>AndHaveWord</span></li><li class="in" name="scala.AnyRef"><span>AnyRef</span></li><li class="in" name="scala.Any"><span>Any</span></li>
</ol>
</div><div id="ancestors">
<span class="filtertype"></span>
<ol>
<li class="hideall out"><span>Hide All</span></li>
<li class="showall in"><span>Show all</span></li>
</ol>
<a href="http://docs.scala-lang.org/overviews/scaladoc/usage.html#members" target="_blank">Learn more about member selection</a>
</div>
<div id="visbl">
<span class="filtertype">Visibility</span>
<ol><li class="public in"><span>Public</span></li><li class="all out"><span>All</span></li></ol>
</div>
</div>
<div id="template">
<div id="allMembers">
<div id="constructors" class="members">
<h3>Instance Constructors</h3>
<ol><li name="org.scalatest.matchers.MatcherFactory3.AndHaveWord#<init>" visbl="pub" data-isabs="false" fullComment="no" group="Ungrouped">
<a id="<init>():MatcherFactory3.this.AndHaveWord"></a>
<a id="<init>:AndHaveWord"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">new</span>
</span>
<span class="symbol">
<span class="name">AndHaveWord</span><span class="params">()</span>
</span>
</h4>
</li></ol>
</div>
<div id="values" class="values members">
<h3>Value Members</h3>
<ol><li name="scala.AnyRef#!=" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="!=(x$1:AnyRef):Boolean"></a>
<a id="!=(AnyRef):Boolean"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span title="gt4s: $bang$eq" class="name">!=</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.AnyRef">AnyRef</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
</li><li name="scala.Any#!=" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="!=(x$1:Any):Boolean"></a>
<a id="!=(Any):Boolean"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span title="gt4s: $bang$eq" class="name">!=</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Any</dd></dl></div>
</li><li name="scala.AnyRef###" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="##():Int"></a>
<a id="##():Int"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span title="gt4s: $hash$hash" class="name">##</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
</li><li name="scala.AnyRef#==" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="==(x$1:AnyRef):Boolean"></a>
<a id="==(AnyRef):Boolean"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span title="gt4s: $eq$eq" class="name">==</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.AnyRef">AnyRef</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
</li><li name="scala.Any#==" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="==(x$1:Any):Boolean"></a>
<a id="==(Any):Boolean"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span title="gt4s: $eq$eq" class="name">==</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Any</dd></dl></div>
</li><li name="scala.Any#asInstanceOf" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="asInstanceOf[T0]:T0"></a>
<a id="asInstanceOf[T0]:T0"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">asInstanceOf</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="result">: <span class="extype" name="scala.Any.asInstanceOf.T0">T0</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Any</dd></dl></div>
</li><li name="scala.AnyRef#clone" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="clone():Object"></a>
<a id="clone():AnyRef"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">clone</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.AnyRef">AnyRef</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a href="../../../java$lang.html" class="extype" name="java.lang">java.lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
<span class="name">@throws</span><span class="args">()</span>
</dd></dl></div>
</li><li name="scala.AnyRef#eq" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="eq(x$1:AnyRef):Boolean"></a>
<a id="eq(AnyRef):Boolean"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">eq</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.AnyRef">AnyRef</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
</li><li name="scala.AnyRef#equals" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="equals(x$1:Any):Boolean"></a>
<a id="equals(Any):Boolean"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">equals</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Any">Any</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
</li><li name="scala.AnyRef#finalize" visbl="prt" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="finalize():Unit"></a>
<a id="finalize():Unit"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">finalize</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Attributes</dt><dd>protected[<a href="../../../java$lang.html" class="extype" name="java.lang">java.lang</a>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
<span class="name">@throws</span><span class="args">()</span>
</dd></dl></div>
</li><li name="scala.AnyRef#getClass" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="getClass():Class[_]"></a>
<a id="getClass():Class[_]"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">getClass</span><span class="params">()</span><span class="result">: <span class="extype" name="java.lang.Class">Class</span>[_]</span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
</li><li name="scala.AnyRef#hashCode" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="hashCode():Int"></a>
<a id="hashCode():Int"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">hashCode</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Int">Int</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
</li><li name="scala.Any#isInstanceOf" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="isInstanceOf[T0]:Boolean"></a>
<a id="isInstanceOf[T0]:Boolean"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">isInstanceOf</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>Any</dd></dl></div>
</li><li name="org.scalatest.matchers.MatcherFactory3.AndHaveWord#length" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="length(expectedLength:Long):org.scalatest.matchers.MatcherFactory4[SC,TC1,TC2,TC3,org.scalatest.enablers.Length]"></a>
<a id="length(Long):MatcherFactory4[SC,TC1,TC2,TC3,Length]"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">length</span><span class="params">(<span name="expectedLength">expectedLength: <span class="extype" name="scala.Long">Long</span></span>)</span><span class="result">: <a href="MatcherFactory4.html" class="extype" name="org.scalatest.matchers.MatcherFactory4">MatcherFactory4</a>[<span class="extype" name="org.scalatest.matchers.MatcherFactory3.SC">SC</span>, <span class="extype" name="org.scalatest.matchers.MatcherFactory3.TC1">TC1</span>, <span class="extype" name="org.scalatest.matchers.MatcherFactory3.TC2">TC2</span>, <span class="extype" name="org.scalatest.matchers.MatcherFactory3.TC3">TC3</span>, <a href="../enablers/Length.html" class="extype" name="org.scalatest.enablers.Length">Length</a>]</span>
</span>
</h4>
<p class="shortcomment cmt">This method enables the following syntax given a <code>MatcherFactory3</code>:</p><div class="fullcomment"><div class="comment cmt"><p>This method enables the following syntax given a <code>MatcherFactory3</code>:</p><p><pre class="stHighlighted">
aMatcherFactory and have length (<span class="stLiteral">3</span> - <span class="stLiteral">1</span>)
^
</pre>
</p></div></div>
</li><li name="org.scalatest.matchers.MatcherFactory3.AndHaveWord#message" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="message(expectedMessage:String):org.scalatest.matchers.MatcherFactory4[SC,TC1,TC2,TC3,org.scalatest.enablers.Messaging]"></a>
<a id="message(String):MatcherFactory4[SC,TC1,TC2,TC3,Messaging]"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">message</span><span class="params">(<span name="expectedMessage">expectedMessage: <span class="extype" name="scala.Predef.String">String</span></span>)</span><span class="result">: <a href="MatcherFactory4.html" class="extype" name="org.scalatest.matchers.MatcherFactory4">MatcherFactory4</a>[<span class="extype" name="org.scalatest.matchers.MatcherFactory3.SC">SC</span>, <span class="extype" name="org.scalatest.matchers.MatcherFactory3.TC1">TC1</span>, <span class="extype" name="org.scalatest.matchers.MatcherFactory3.TC2">TC2</span>, <span class="extype" name="org.scalatest.matchers.MatcherFactory3.TC3">TC3</span>, <a href="../enablers/Messaging.html" class="extype" name="org.scalatest.enablers.Messaging">Messaging</a>]</span>
</span>
</h4>
<p class="shortcomment cmt">This method enables the following syntax given a <code>MatcherFactory3</code>:</p><div class="fullcomment"><div class="comment cmt"><p>This method enables the following syntax given a <code>MatcherFactory3</code>:</p><p><pre class="stHighlighted">
aMatcherFactory and have message (<span class="stQuotedString">"A message from Mars!"</span>)
^
</pre>
</p></div></div>
</li><li name="scala.AnyRef#ne" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="ne(x$1:AnyRef):Boolean"></a>
<a id="ne(AnyRef):Boolean"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">ne</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.AnyRef">AnyRef</span></span>)</span><span class="result">: <span class="extype" name="scala.Boolean">Boolean</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
</li><li name="scala.AnyRef#notify" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="notify():Unit"></a>
<a id="notify():Unit"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">notify</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
</li><li name="scala.AnyRef#notifyAll" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="notifyAll():Unit"></a>
<a id="notifyAll():Unit"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">notifyAll</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
</li><li name="org.scalatest.matchers.MatcherFactory3.AndHaveWord#size" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="size(expectedSize:Long):org.scalatest.matchers.MatcherFactory4[SC,TC1,TC2,TC3,org.scalatest.enablers.Size]"></a>
<a id="size(Long):MatcherFactory4[SC,TC1,TC2,TC3,Size]"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">size</span><span class="params">(<span name="expectedSize">expectedSize: <span class="extype" name="scala.Long">Long</span></span>)</span><span class="result">: <a href="MatcherFactory4.html" class="extype" name="org.scalatest.matchers.MatcherFactory4">MatcherFactory4</a>[<span class="extype" name="org.scalatest.matchers.MatcherFactory3.SC">SC</span>, <span class="extype" name="org.scalatest.matchers.MatcherFactory3.TC1">TC1</span>, <span class="extype" name="org.scalatest.matchers.MatcherFactory3.TC2">TC2</span>, <span class="extype" name="org.scalatest.matchers.MatcherFactory3.TC3">TC3</span>, <a href="../enablers/Size.html" class="extype" name="org.scalatest.enablers.Size">Size</a>]</span>
</span>
</h4>
<p class="shortcomment cmt">This method enables the following syntax given a <code>MatcherFactory3</code>:</p><div class="fullcomment"><div class="comment cmt"><p>This method enables the following syntax given a <code>MatcherFactory3</code>:</p><p><pre class="stHighlighted">
aMatcherFactory and have size (<span class="stLiteral">3</span> - <span class="stLiteral">1</span>)
^
</pre>
</p></div></div>
</li><li name="scala.AnyRef#synchronized" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="synchronized[T0](x$1:=>T0):T0"></a>
<a id="synchronized[T0](⇒T0):T0"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">synchronized</span><span class="tparams">[<span name="T0">T0</span>]</span><span class="params">(<span name="arg0">arg0: ⇒ <span class="extype" name="java.lang.AnyRef.synchronized.T0">T0</span></span>)</span><span class="result">: <span class="extype" name="java.lang.AnyRef.synchronized.T0">T0</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd></dl></div>
</li><li name="scala.AnyRef#toString" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="toString():String"></a>
<a id="toString():String"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier"></span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">toString</span><span class="params">()</span><span class="result">: <span class="extype" name="java.lang.String">String</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div>
</li><li name="scala.AnyRef#wait" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="wait():Unit"></a>
<a id="wait():Unit"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">wait</span><span class="params">()</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
<span class="name">@throws</span><span class="args">()</span>
</dd></dl></div>
</li><li name="scala.AnyRef#wait" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="wait(x$1:Long,x$2:Int):Unit"></a>
<a id="wait(Long,Int):Unit"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">wait</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Long">Long</span></span>, <span name="arg1">arg1: <span class="extype" name="scala.Int">Int</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
<span class="name">@throws</span><span class="args">()</span>
</dd></dl></div>
</li><li name="scala.AnyRef#wait" visbl="pub" data-isabs="false" fullComment="yes" group="Ungrouped">
<a id="wait(x$1:Long):Unit"></a>
<a id="wait(Long):Unit"></a>
<h4 class="signature">
<span class="modifier_kind">
<span class="modifier">final </span>
<span class="kind">def</span>
</span>
<span class="symbol">
<span class="name">wait</span><span class="params">(<span name="arg0">arg0: <span class="extype" name="scala.Long">Long</span></span>)</span><span class="result">: <span class="extype" name="scala.Unit">Unit</span></span>
</span>
</h4>
<div class="fullcomment"><dl class="attributes block"> <dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd>
<span class="name">@throws</span><span class="args">()</span>
</dd></dl></div>
</li></ol>
</div>
</div>
<div id="inheritedMembers">
<div class="parent" name="scala.AnyRef">
<h3>Inherited from <span class="extype" name="scala.AnyRef">AnyRef</span></h3>
</div><div class="parent" name="scala.Any">
<h3>Inherited from <span class="extype" name="scala.Any">Any</span></h3>
</div>
</div>
<div id="groupedMembers">
<div class="group" name="Ungrouped">
<h3>Ungrouped</h3>
</div>
</div>
</div>
<div id="tooltip"></div>
<div id="footer"> </div>
</body>
</html> |
#ifndef PROCESS_INFO_HPP
#define PROCESS_INFO_HPP
#include <linux/limits.h>
struct process_info {
int ppid;
int pid;
int tgid;
char name[PATH_MAX];
};
#endif |
identifier: index
layout: default
title: .NET-bibliotek for sending av sikker digital post for offentlig sektor
redirect_from:
{% for dok in site.v2_0 %}
{% if dok.identifier != 'index' %}
<h2 id="{{dok.identifier}}">{{dok.title}}</h2>
<div class="body">
<p>{{dok.content}}</p>
</div>
{% endif%}
{% endfor %} |
package org.dynmap.markers;
import java.util.Set;
/**
* This defines the public interface to a marker set object, for use with the MarkerAPI.
* This represents a logical set of markers, which are presented as a labelled layer on the web UI.
* Marker sets can be created as persistent or non-persistent, but only persistent marker sets can contain persistent markers.
*/
public interface MarkerSet {
public static final String DEFAULT = "markers"; /* Default set - always exists */
/**
* Get set of all markers currently in the set
* @return set of markers (set is copy - safe to iterate)
*/
public Set<Marker> getMarkers();
/**
* Get set of all area markers currently in the set
* @return set of area markers (set is copy - safe to iterate)
*/
public Set<AreaMarker> getAreaMarkers();
/**
* Get set of all poly-line markers currently in the set
* @return set of poly-line markers (set is copy - safe to iterate)
*/
public Set<PolyLineMarker> getPolyLineMarkers();
/**
* Get set of all circle markers currently in the set
* @return set of circle markers (set is copy - safe to iterate)
*/
public Set<CircleMarker> getCircleMarkers();
/**
* Create a new marker in the marker set
*
* @param id - ID of the marker - must be unique within the set: if null, unique ID is generated
* @param label - Label for the marker (plain text)
* @param world - world ID
* @param x - x coord
* @param y - y coord
* @param z - z coord
* @param icon - Icon for the marker
* @param is_persistent - if true, marker is persistent (saved and reloaded on restart). If set is not persistent, this must be false.
* @return created marker, or null if cannot be created.
*/
public Marker createMarker(String id, String label, String world, double x, double y, double z, MarkerIcon icon, boolean is_persistent);
/**
* Create a new marker in the marker set
*
* @param id - ID of the marker - must be unique within the set: if null, unique ID is generated
* @param label - Label for the marker
* @param markup - if true, label is processed as HTML. if false, label is processed as plain text.
* @param world - world ID
* @param x - x coord
* @param y - y coord
* @param z - z coord
* @param icon - Icon for the marker
* @param is_persistent - if true, marker is persistent (saved and reloaded on restart). If set is not persistent, this must be false.
* @return created marker, or null if cannot be created.
*/
public Marker createMarker(String id, String label, boolean markup, String world, double x, double y, double z, MarkerIcon icon, boolean is_persistent);
/**
* Get marker by ID
* @param id - ID of the marker
* @return marker, or null if cannot be found
*/
public Marker findMarker(String id);
/**
* Find marker by label - best matching substring
* @param lbl - label to find (same = best match)
* @return marker, or null if none found
*/
public Marker findMarkerByLabel(String lbl);
/**
* Create area marker
* @param id - marker ID
* @param lbl - label
* @param markup - if true, label is HTML markup
* @param world - world id
* @param x - x coord list
* @param z - z coord list
* @param persistent - true if persistent
*/
public AreaMarker createAreaMarker(String id, String lbl, boolean markup, String world, double x[], double z[], boolean persistent);
/**
* Get area marker by ID
* @param id - ID of the area marker
* @return marker, or null if cannot be found
*/
public AreaMarker findAreaMarker(String id);
/**
* Find area marker by label - best matching substring
* @param lbl - label to find (same = best match)
* @return marker, or null if none found
*/
public AreaMarker <API key>(String lbl);
/**
* Create poly-line marker
* @param id - marker ID
* @param lbl - label
* @param markup - if true, label is HTML markup
* @param world - world id
* @param x - x coord list
* @param y - y coord list
* @param z - z coord list
* @param persistent - true if persistent
*/
public PolyLineMarker <API key>(String id, String lbl, boolean markup, String world, double x[], double[] y, double z[], boolean persistent);
/**
* Get poly-line marker by ID
* @param id - ID of the poly-line marker
* @return marker, or null if cannot be found
*/
public PolyLineMarker findPolyLineMarker(String id);
/**
* Find poly-line marker by label - best matching substring
* @param lbl - label to find (same = best match)
* @return marker, or null if none found
*/
public PolyLineMarker <API key>(String lbl);
/**
* Create circle marker
* @param id - marker ID
* @param lbl - label
* @param markup - if true, label is HTML markup
* @param world - world id
* @param x - x of center
* @param y - y of center
* @param z - z of center
* @param xr - radius on x axis
* @param zr - radius on z axis
* @param persistent - true if persistent
*/
public CircleMarker createCircleMarker(String id, String lbl, boolean markup, String world, double x, double y, double z, double xr, double zr, boolean persistent);
/**
* Get circle marker by ID
* @param id - ID of the circle marker
* @return marker, or null if cannot be found
*/
public CircleMarker findCircleMarker(String id);
/**
* Find area marker by label - best matching substring
* @param lbl - label to find (same = best match)
* @return marker, or null if none found
*/
public CircleMarker <API key>(String lbl);
/**
* Get ID of marker set - unique among marker sets
* @return ID
*/
public String getMarkerSetID();
/**
* Get label for marker set
* @return label
*/
public String getMarkerSetLabel();
/**
* Update label for marker set
* @param lbl - label for marker set
*/
public void setMarkerSetLabel(String lbl);
/**
* Test if marker set is persistent
* @return true if the set is persistent
*/
public boolean <API key>();
/**
* Get marker icons allowed in set (if restricted)
* @return set of allowed marker icons
*/
public Set<MarkerIcon> <API key>();
/**
* Add marker icon to allowed set (must have been created restricted)
* @param icon - icon to be added
*/
public void <API key>(MarkerIcon icon);
/**
* Remove marker icon from allowed set (must have been created restricted)
* @param icon - icon to be added
*/
public void <API key>(MarkerIcon icon);
/**
* Test if marker icon is allowed
* @param icon - marker icon
* @return true if allowed, false if not
*/
public boolean isAllowedMarkerIcon(MarkerIcon icon);
/**
* Get distinct set of marker icons used by set (based on markers currently in set)
* @return set of marker icons
*/
public Set<MarkerIcon> getMarkerIconsInUse();
/**
* Delete marker set
*/
public void deleteMarkerSet();
/**
* Set hide/show default
* @param hide - if true, layer for set will be hidden by default
*/
public void setHideByDefault(boolean hide);
/**
* Get hide/show default
* @return true if layer for set will be hidden by default
*/
public boolean getHideByDefault();
/**
* Set layer ordering priority (0=default, low before high in layer order)
*/
public void setLayerPriority(int prio);
/**
* Get layer ordering priority (0=default, low before high in layer order)
*/
public int getLayerPriority();
/**
* Get min zoom-in for display of layer (hide when zoom is below this setting)
* @return minzoom (-1 if no minimum)
*/
public int getMinZoom();
/**
* Set min zoom-in for display of layer
* @param minzoom - min zoom to display layer (-1 = no minimum)
*/
public void setMinZoom(int minzoom);
/**
* Get max zoom-in for display of layer (hide when zoom is above this setting)
* @return maxzoom (-1 if no max)
*/
public int getMaxZoom();
/**
* Set max zoom-in for display of layer
* @param maxzoom - max zoom to display layer (-1 = no maximum)
*/
public void setMaxZoom(int maxzoom);
/**
* Set show/hide label for markers in set
* @param show - if true, show labels; if false, hide (show on hover); if null, use global default
*/
public void setLabelShow(Boolean show);
/**
* Get show/hide label for markers
* @return true, show labels; false, hide (show on hover); null, use global default
*/
public Boolean getLabelShow();
/**
* Set the default marker icon for markers added to this set
* @param defmark - default marker
*/
public void <API key>(MarkerIcon defmark);
/**
* Get the default marker icon for the markers added to this set
* @return default marker
*/
public MarkerIcon <API key>();
/**
* Add entered markers to set based on given coordinates
*/
public void addEnteredMarkers(Set<EnterExitMarker> entered, String worldid, double x, double y, double z);
} |
FROM busybox
CMD while true; do echo foo; sleep 1; done |
package com.mingle.bouncyhintedittext;
import android.app.Application;
import android.test.ApplicationTestCase;
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
} |
<?php
namespace app\common\payment\wxpay;
class Log_
{
// log
function log_result($file,$word)
{
$fp = fopen($file,"a");
flock($fp, LOCK_EX) ;
fwrite($fp,"".strftime("%Y-%m-%d-%H%M%S",time())."\n".$word."\n\n");
flock($fp, LOCK_UN);
fclose($fp);
}
}
?> |
from epumgmt.api.actions import ACTIONS
from epumgmt.main import ControlArg
import optparse
a = []
ALL_EC_ARGS_LIST = a
# EM ARGUMENTS
# The following cmdline arguments may be queried via Parameters, using either
# the 'name' as the argument or simply the object like:
# params.get_arg_or_none(em_args.GRACE_PERIOD)
ACTION = ControlArg("action", "-a")
ACTION.help = optparse.SUPPRESS_HELP
a.append(ACTION)
CONF = ControlArg("conf", "-c", metavar="PATH")
a.append(CONF)
CONF.help = "Absolute path to main.conf. Required (shell script adds the default)."
DRYRUN = ControlArg("dryrun", None, noval=True)
#a.append(DRYRUN)
DRYRUN.help = "Do as little real things as possible, will still affect filesystem, for example logs and information persistence. (not implemented yet)"
KILLNUM = ControlArg("killnum", "-k", metavar="NUM")
a.append(KILLNUM)
KILLNUM.help = "For the fetchkill action, number of VMs to terminate."
NAME = ControlArg("name", "-n", metavar="RUN_NAME")
a.append(NAME)
NAME.help = "Unique run name for logs and management. Can use across multiple invocations for launches that belong together."
GRAPH_NAME = ControlArg("graphname", "-r", metavar="GRAPH_NAME")
a.append(GRAPH_NAME)
GRAPH_NAME.help = "For the generate-graph action, name of graph to generate: stacked-vms, job-tts, job-rate, node-info, or controller."
GRAPH_TYPE = ControlArg("graphtype", "-t", metavar="GRAPH_TYPE")
a.append(GRAPH_TYPE)
GRAPH_TYPE.help = "For the generate-graph action, output file type: eps or png."
WORKLOAD_FILE = ControlArg("workloadfilename", "-f", metavar="WORKLOAD_FILE")
a.append(WORKLOAD_FILE)
WORKLOAD_FILE.help = "For the <API key> action, file name of workload definition file."
WORKLOAD_TYPE = ControlArg("workloadtype", "-w", metavar="WORKLOAD_TYPE")
a.append(WORKLOAD_TYPE)
WORKLOAD_TYPE.help = "For the <API key> and generate-graph actions: amqp or torque"
CLOUDINITD_DIR = ControlArg("cloudinitdir", "-C", metavar="PATH")
a.append(CLOUDINITD_DIR)
CLOUDINITD_DIR.help = "Path to the directory where cloudinit databases are kept. default is ~/.cloudinit"
REPORT_INSTANCE = ControlArg("instance-report", None, metavar="COLUMNS")
#a.append(REPORT_INSTANCE)
REPORT_INSTANCE.help = "Used with '--action %s'. Batch mode for machine parsing instance status. Report selected columns from choice of the following separated by comma: service,instanceid,iaas_state,iaas_state_time,heartbeat_time,heartbeat_state" % ACTIONS.STATUS
REPORT_SERVICE = ControlArg("service-report", None, metavar="COLUMNS")
#a.append(REPORT_SERVICE)
REPORT_SERVICE.help = "Used with '--action %s'. Batch mode for machine parsing service status. Report selected columns from choice of the following separated by comma: service,de_state,de_conf" % ACTIONS.STATUS
STATUS_NOUPDATE = ControlArg("no-update", None, noval=True)
a.append(STATUS_NOUPDATE)
STATUS_NOUPDATE.help = "Used with '--action %s'. If used, %s does not try to find any new information." % (ACTIONS.STATUS, ACTIONS.STATUS)
KILLRUN_NOFETCH = ControlArg("no-fetch", None, noval=True)
a.append(KILLRUN_NOFETCH)
KILLRUN_NOFETCH.help = "Can be used with action %s and %s. If used, does not try to find any new information or get any logs." % (ACTIONS.KILLRUN, ACTIONS.FIND_VERSIONS)
WRITE_REPORT = ControlArg("write-report", None, metavar="PATH")
a.append(WRITE_REPORT)
WRITE_REPORT.help = "Used with action %s. Also write report to the given path if it does not exist." % ACTIONS.FIND_VERSIONS
NEWN = ControlArg("newn", None)
a.append(NEWN)
NEWN.help = "Used with '--action %s'. Syntax is controller_name:N[,controller_name:N,...]" % ACTIONS.RECONFIGURE_N
CONTROLLER = ControlArg("controller", None)
a.append(CONTROLLER)
CONTROLLER.help = "Some actions only work on a specific controller" |
package modelo.data;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.<API key>;
import java.util.function.Predicate;
import java.util.stream.Collectors;
import modelo.Fornecedor;
import modelo.data.interfaces.IFornecedorDAL;
/**
*
* @author edsonmarcks
*/
public class FornecedorDAL extends ComandosSQL implements IFornecedorDAL{
@Override
public void Save(Fornecedor entity) throws SQLException {
String sql = "INSERT INTO Fornecedor (nome,cnpj,tel,logradouro) VALUES (?,?,?,?)";
execute(sql, new Object[]{
entity.getRazaoSocial(),
entity.getCNPJ(),
entity.getTelefone(),
entity.getLogradouro()
});
}
@Override
public void Update(Fornecedor entity) throws SQLException {
String sql = "UPDATE Fornecedor SET nome=?,cnpj=?,tel=?,logradouro=? WHERE id=?";
execute(sql, new Object[]{
entity.getRazaoSocial(),
entity.getCNPJ(),
entity.getTelefone(),
entity.getLogradouro(),
entity.getId()
});
}
@Override
public void Delete(Fornecedor entity) throws SQLException {
String sql = "DELETE FROM Fornecedor WHERE id=?";
execute(sql, new Object[]{
entity.getId()
});
}
@Override
public Fornecedor FindId(long id) throws SQLException {
String sql = "SELECT * FROM Fornecedor WHERE id=?";
executeQuery(sql, new Object[]{id});
Fornecedor fornecedor = null;
if(rs.next())
{
fornecedor = new Fornecedor();
fornecedor.setId(rs.getLong("id"));
fornecedor.setCNPJ(rs.getString("cnpj"));
fornecedor.setRazaoSocial(rs.getString("nome"));
fornecedor.setTelefone(rs.getString("tel"));
fornecedor.setLogradouro(rs.getString("logradouro"));
}
rs.close();
ps.closeOnCompletion();
return fornecedor;
}
@Override
public List<Fornecedor> GetAll() throws SQLException {
String sql = "SELECT * FROM Fornecedor";
executeQuery(sql, null);
List<Fornecedor> fornecedores = new ArrayList<>();
while(rs.next())
{
Fornecedor fornecedor = new Fornecedor();
fornecedor.setId(rs.getLong("id"));
fornecedor.setCNPJ(rs.getString("cnpj"));
fornecedor.setRazaoSocial(rs.getString("nome"));
fornecedor.setTelefone(rs.getString("tel"));
fornecedor.setLogradouro(rs.getString("logradouro"));
fornecedores.add(fornecedor);
fornecedor = null;
}
rs.close();
ps.closeOnCompletion();
return fornecedores;
}
@Override
public List<Fornecedor> GetAll(Predicate<Fornecedor> predicate) throws SQLException {
List<Fornecedor> fornecedores = new ArrayList<>();
try {
fornecedores = GetAll().stream().filter(predicate).collect(Collectors.<Fornecedor>toList());
} catch (<API key> e) {
System.err.println("erro ao lista com predicate");
}
return fornecedores;
}
@Override
public Fornecedor Find(Predicate<Fornecedor> predicate) throws SQLException {
Fornecedor fornecedor = null;
try {
fornecedor = GetAll(predicate).stream().findFirst().get();
} catch (<API key> e) {
System.err.println("erro a buscar");
}
return fornecedor;
}
} |
layout: relation
title: 'aux'
shortdef: 'auxiliary'
# The filename "aux" is not allowed on Windows, so we redirect instead
redirect_from: "bn/dep/aux.html"
This document is a placeholder for the language-specific documentation
for `aux`. |
<!DOCTYPE html>
<html style="height:100%;overflow:hidden">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
<meta name="viewport"
content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<title>10001</title>
<link rel="stylesheet" type="text/css" href="./css/pop.css">
<script src="js/jquery-2.0.2.min.js"></script>
<!--<script type="text/javascript" src="../../cordova.js"></script>
<script type="text/javascript" src="./js/cordovainit.js"></script>
<style>
@font-face{
font-family:'appleUltralight';
src:url('../../font/<API key>.otf');
}
@font-face{
font-family:'appleLight';
src:url('../../font/SF-UI-Display-Light.otf');
}
</style>
</head>
<body style="margin:0;padding:0;width:100%;height:100%;overflow:hidden;background-color:#f4f4f4;"
scroll="no">
<div id="bodyAll" style="width:100%;height:100%" >
<div id="bottom"
style="display:block;text-align:center;position:absolute;bottom:1rem;width:100%">
<table border=0 style="width:100%">
<tr><td>
<div id="trigger-overlay" style="float:left;padding-left:1rem" >
<img src="img/func.png" style="height:4.5rem;"/>
<div id="txtFunc" style="display:block;">Func</div>
</div>
</td><td>
</td><td>
<div id="voice" style="float:right;padding-right:1rem">
<img src="img/voice.png" style="height:4.5rem;float:right"/>
<div id="txtVoice" style="display:block;">Voice</div>
</div>
</td></tr>
</table>
</div>
</div>
<div id="mask"
style="display:none;position: absolute; margin: 0px; opacity: 0.600813; left: 0px; top: 0px; width: 100%; height: 100%; right: auto; bottom: auto; border: 0px none rgb(0, 0, 0); -<API key>: rgba(0, 0, 0, 0); transform: translateZ(0px); background-color: rgb(0, 0, 0); background-size: 100% 100%;">
</div>
<div id="maskpoweroff"
style="display:none;position: absolute; margin: 0px; opacity: 0.000813; left: 0px; top: 0px; width: 100%; height: 100%; right: auto; bottom: auto; border: 0px none rgb(0, 0, 0); -<API key>: rgba(255, 255, 255, 255); transform: translateZ(0px); background-color: rgb(255, 255, 255); background-size: 100% 100%;">
</div>
<!-- open/close -->
<div class="overlay overlay-corner">
<div id="pop">
<div class="overlay-close"></div>
<table>
<tr>
<td>
<div><img id="imgAir" src="img/3.png"/></div>
<div id="txtClean"></div>
</td>
<td>
<div><img id="imgDry" src="img/2.png"/></div>
<div id="txtIntell"></div>
</td>
<td>
<div><img id="imgHealth" src="img/4.png"/></div>
<div id="txtStorageOpen"></div>
</td>
<td>
<div><img id="imgLight" src="img/1.png"/></div>
<div id="txtVaryOpen"></div>
</td>
</tr>
<!
<td>
<div><img id="imgSE" src="img/5.png"/></div>
<div id="txtSE">SE</div>
</td>
<td>
<div><img id="imgUR" src="img/6.png"/></div>
<div id="txtUR">up&right</div>
</td>
<td>
<div><img id="imgLD" src="img/8.png"/></div>
<div id="txtLD">left&down</div>
</td>
<td>
<div><img id="imgTimer" src="img/7.png"/></div>
<div id="txtTimer">Timer</div>
</td>
</tr>
<tr>
<td>
<div><img id="img8heat" src="img/advance_n_8heat.png"/></div>
<div id="txt8heat">8℃ heating</div>
</td>
<td>
<div><img id="imgSleep" src="img/advance_n_sleep.png"/></div>
<div id="txtSleep">Sleep</div>
</td>
<td>
</td>
<td>
</td>
</tr>
</table>
</div>
</div>
<script src="./js/utils.js"></script>
<script src="./js/func.js"></script>
<!--<script src="js/main.js"></script>-->
</body>
</html> |
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: <API key>("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("dexih.connections.flatfile")]
[assembly: AssemblyTrademark("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
//[assembly: Guid("<API key>")] |
'use strict';
// Authentication service for user variables
angular.module('users').factory('Authentication', ['$rootScope', '$location',
function($rootScope, $location) {
var _this = this;
var security = window.security;
var mapRoles = function(authorityCollection){
return authorityCollection.map(function(authorityItem){
return authorityItem.authority;
});
}
_this._data = {
security: security,
user: security.principal
};
_this._data.authenticate = function(userDetails){
// If the user is anonymous, create a user structure
if(userDetails.principal === 'anonymousUser'){
_this._data.user = {username: userDetails.principal};
// reformatting the authority array to make it easier to access
_this._data.user.roles = mapRoles(userDetails.authorities);
}
else{
_this._data.security = userDetails;
_this._data.user = userDetails.principal;
_this._data.user.roles = mapRoles(userDetails.principal.authorities);
}
};
_this._data.isAuthenticated = function(){
return (_this._data.security.authenticated === true);
};
$rootScope.$on('$stateChangeStart', function(event, toState, toParams, fromState, fromParams, options){
if (toState.authenticate && !_this._data.isAuthenticated()) {
$rootScope.returnToState = toState;
$rootScope.returnToStateParams = toParams;
$location.path('/signin');
}
});
_this._data.authenticate(security);
return _this._data;
}
]); |
// 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.
// Session WatchDog timer
#ifndef <API key>
#define <API key>
#include "base/port.h"
#include "base/scoped_ptr.h"
#include "base/thread.h"
namespace mozc {
class CPUStatsInterface;
class UnnamedEvent;
namespace client {
class ClientInterface;
}
// SessionWatchDog class sends Cleanup command to Sessionhandler
// for every some specified seconds.
class SessionWatchDog : public Thread {
public:
// return the interval sec of watch dog timer
int32 interval() const {
return interval_sec_;
}
// Set client interface. This method doesn't take the owership.
// mainly for unittesting.
void SetClientInterface(client::ClientInterface *client);
// Set CPUStats interface. This method doesn't take the owership.
// mainly for unittesting.
void <API key>(CPUStatsInterface *cpu_stats);
explicit SessionWatchDog(int32 interval_sec);
virtual ~SessionWatchDog();
// inherited from Thread class
void Terminate();
// inherited from Thread class
// start watch dog timer and return immediately
// virtual void Start();
// return true if watch dog can send CleanupCommand:
// |cpu_loads|: An array of cpu loads.
// |cpu_load_index|: the size of cpu loads
// |last_cleanup_time|: the last UTC time cleanup is executed
// TODO(taku): want to define it inside private with FRIEND_TEST
bool <API key>(const volatile float *cpu_loads,
int cpu_load_index,
uint64 current_time,
uint64 last_cleanup_time) const;
private:
virtual void Run();
int32 interval_sec_;
client::ClientInterface *client_;
CPUStatsInterface *cpu_stats_;
scoped_ptr<UnnamedEvent> event_;
<API key>(SessionWatchDog);
};
} // namespace mozc
#endif // <API key> |
ObjectHydrator
===========
This project allows you to pass custom POCO's to it, and have it return an instance of the class populated with randomly generated but real-world looking data. This random data can be overridden by convention.
Basic syntax looks like this:
Hydrator<Customer> _customerHydrator = new Hydrator<Customer>();
Customer customer = _customerHydrator.GetSingle();
List<Customer> customerlist=_customerHydrator.GetList(20);
Advanced syntax looks like:
Hydrator<Customer> _customerHydrator = new Hydrator<Customer>().WithInteger(x => x.CustomerAge, 1, 100).WithAmericanPhone(x=>x.CustomerPhone);
Current version 1.0.0
Added the ability to inject Generators at instantiation time.
Which looks like this:
var hydrator = new Hydrator<Address>().WithCustomGenerator(x=>x.State, new InjectedGenerator());
Version 0.7.0 is an additive change adding:
<API key>
<API key>
<API key>
<API key>
You can install with NuGet: Install-Package objecthydrator
This version is for Visual Studio 2010 .Net 4
I'll switch to a newer version and use 2013 if there is interest.
So basically, you create a class and invoke the Hydrator object with that class type. Then call the GetSingle or GetList functions and you are returned an instance of the object populated with realistic data. The idea behind it is to use it to replace a database call to use in your UI.
Presently the generators are pretty simple and can generate limited values, they include:
FirstName - Returns a random english First Name
LastName - Return a random english Last Name
DateTimeGenerator - Returns a random Date within a given range.
AmericanPhone - Returns a randon American Phone Number
AmericanAddress - Returns a random American Address (street part)
AmericanCity - Returns a random American City
AmericanPostalCode - Returns a random Postal Code (including optional +4 component)
Integer Generator - Returns an int within a range
Enum Generator - Define the enum and it will return the string value of a random one
Boolean Generator - Returns a random boolean
AmericanState - Returns a random US abbreviation
EmailAddress - Returns a random email address - Thanks ScottMonnig!
Business Name Generator - Returns a random 3 part business name
URL Generator - Returns random URL based on BusinessName Generator
IPAddress Generator - Returns a random ip address
TextGenerator - Random Greek Text
CountryCode - Random Country Code
ByteArraay Generator
GUID Generator
TypeGenerator - Return a hydrated object of Type
TypeListGenerator - Return a list of objects
PasswordGenerator - Returns a string of random pw characters with length parameter
<API key> - Returns a UK City - Thanks to fuzzy-afterlife
<API key> - Returns a UK County - Thanks to fuzzy-afterlife
<API key> - Returns a UK Post Code - Thanks to fuzzy-afterlife
<API key> - Returns an string with alpha chars of n length - Thanks to fuzzy-afterlife
All values can be overridden so you can do things like fake search results etc... |
#pragma once
#include <vespa/storage/common/cluster_context.h>
#include <vespa/storageapi/messageapi/storagemessage.h>
#include <cstdint>
namespace document { class BucketIdFactory; }
namespace storage::framework { struct Clock; }
namespace storage::distributor {
/**
* Interface that provides information and state about a distributor node.
*/
class <API key> : public ClusterContext {
public:
virtual ~<API key>() {}
virtual const framework::Clock& clock() const noexcept = 0;
virtual const document::BucketIdFactory& bucket_id_factory() const noexcept = 0;
virtual uint16_t node_index() const noexcept = 0;
virtual api::<API key> node_address(uint16_t node_index) const noexcept = 0;
};
} |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_60) on Thu Nov 05 22:43:47 MST 2015 -->
<title>Uses of Class ca.ualberta.cs.swapmyride.SearchController</title>
<meta name="date" content="2015-11-05">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class ca.ualberta.cs.swapmyride.SearchController";
}
}
catch(err) {
}
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="topNav"><a name="navbar.top">
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../ca/ualberta/cs/swapmyride/package-summary.html">Package</a></li>
<li><a href="../../../../../ca/ualberta/cs/swapmyride/SearchController.html" title="class in ca.ualberta.cs.swapmyride">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?ca/ualberta/cs/swapmyride/class-use/SearchController.html" target="_top">Frames</a></li>
<li><a href="SearchController.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="<API key>">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!
allClassesLink = document.getElementById("<API key>");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
</script>
</div>
<a name="skip.navbar.top">
</a></div>
<div class="header">
<h2 title="Uses of Class ca.ualberta.cs.swapmyride.SearchController" class="title">Uses of Class<br>ca.ualberta.cs.swapmyride.SearchController</h2>
</div>
<div class="classUseContainer">No usage of ca.ualberta.cs.swapmyride.SearchController</div>
<div class="bottomNav"><a name="navbar.bottom">
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../ca/ualberta/cs/swapmyride/package-summary.html">Package</a></li>
<li><a href="../../../../../ca/ualberta/cs/swapmyride/SearchController.html" title="class in ca.ualberta.cs.swapmyride">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?ca/ualberta/cs/swapmyride/class-use/SearchController.html" target="_top">Frames</a></li>
<li><a href="SearchController.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="<API key>">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!
allClassesLink = document.getElementById("<API key>");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
</script>
</div>
<a name="skip.navbar.bottom">
</a></div>
</body>
</html> |
package com.walmart.labs.pcs.normalize.RestfulService;
import com.walmart.labs.pcs.normalize.utils.HttpClientFactory;
import org.apache.http.<API key>;
import org.apache.http.<API key>;
import org.apache.http.client.methods.<API key>;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.protocol.HttpClientContext;
import org.apache.http.conn.<API key>;
import org.apache.http.conn.<API key>;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.protocol.HttpContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Serializable;
import java.net.<API key>;
import java.nio.channels.<API key>;
public class <API key> implements Serializable{
private static Logger logger = LoggerFactory.getLogger(<API key>.class);
private static final String <API key> = "v1.0/attribution/normalization";
private String serviceEndPoint;
public <API key>() {
serviceEndPoint = "<API key>";
logger.info("PCSApiService URL from EnvironmentSetup: {}", serviceEndPoint);
}
public String normalize(String requestStr){
return request(getServiceUrl(<API key>), requestStr);
}
private String request(String serviceUrl, String requestStr) {
CloseableHttpClient httpClient = HttpClientFactory.getClient();
HttpContext context = HttpClientContext.create();
<API key> response = null;
try {
StringEntity entity = new StringEntity(requestStr, "UTF-8");
entity.setContentType("application/json");
logger.info("PCSApiService URL: {}", serviceUrl);
logger.debug("Service request: {}", requestStr);
HttpPost postRequest = new HttpPost(serviceUrl);
postRequest.setEntity(entity);
long startTime = System.currentTimeMillis();
// Make Service Call
response = httpClient.execute(postRequest, context);
long endTime = System.currentTimeMillis();
long responseTime = endTime - startTime;
String serviceName = getServiceName(serviceUrl);
if (logger.isInfoEnabled()) logger.info("{} response time: {} seconds.", new Object[]{serviceName, responseTime/1000});
// Response Handling
if (response.getStatusLine().getStatusCode() != 200) {
logger.error("HTTP error code: {}", response.getStatusLine().getStatusCode());
return null;
}
BufferedReader br = new BufferedReader(new InputStreamReader(response.getEntity().getContent(), "UTF-8"));
String output;
StringBuilder responseBuilder = new StringBuilder();
while ((output = br.readLine()) != null) {
responseBuilder.append(output);
}
String responseStr = responseBuilder.toString();
if (logger.isDebugEnabled()) logger.debug("Service response: {}", responseStr);
return responseStr;
} catch (<API key> e) {
logger.error(e.toString());
} catch (<API key> e) {
logger.error(e.getMessage(), e);
} catch (<API key> e) {
logger.error(e.getMessage(), e);
} catch (<API key> e) {
logger.error(e.getMessage(), e);
} catch (<API key> e) {
logger.error(e.getMessage(), e);
} catch (<API key> e) {
logger.error(e.getMessage(), e);
} catch (IOException e) {
logger.error(e.toString());
} catch(Exception e) {
e.printStackTrace();
}
finally {
try {
if(response != null)
response.close();
if(httpClient != null)
httpClient.close();
} catch (IOException e) {
logger.error(e.toString());
}
}
return null;
}
private String getServiceUrl(String serviceName) {
return serviceEndPoint + serviceName;
}
private String getServiceName(String serviceUrl) {
if(serviceUrl != null){
return serviceUrl.substring(serviceUrl.lastIndexOf("/") + 1);
}
return null;
}
} |
package de.tum.in.niedermr.ta.runner.configuration.parser.migration;
import de.tum.in.niedermr.ta.runner.configuration.property.templates.<API key>;
/** Migration for the configuration from version 2 to 3. */
class <API key> implements <API key> {
/** {@inheritDoc} */
@Override
public int getFromVersion() {
return 2;
}
/** {@inheritDoc} */
@Override
public String migrateKey(String key) {
switch (key) {
case "testClassesToSkip":
return "testClassExcludes";
default:
return key;
}
}
/** {@inheritDoc} */
@Override
public String migrateRawValue(<API key><?> property, String value0) {
return value0;
}
} |
package dk.aau.sw402F15.tests.parser;
import dk.aau.sw402F15.parser.node.ABranchStatement;
import dk.aau.sw402F15.parser.node.<API key>;
import dk.aau.sw402F15.parser.node.AProgram;
import dk.aau.sw402F15.parser.node.Node;
import dk.aau.sw402F15.tests.ParserTest;
import junit.framework.Assert;
import org.junit.Test;
public class DanglingElse extends ParserTest {
@Test
public void danglingIfElseCheck() {
Node node = getNode("void run() {" +
"if (true)" +
" if (true)" +
" a = false;" +
" else" +
" a = true;" +
"}");
// Find first function
<API key> function = getFunction(node);
// Find if statement
ABranchStatement ifStatement = (ABranchStatement) function.getStatements().getFirst();
// Get if-else statement
ABranchStatement ifElseStatement = (ABranchStatement) ifStatement.getLeft();
Assert.assertEquals(true, ifStatement.getRight() == null);
Assert.assertEquals(false, ifElseStatement.getRight() == null);
}
private <API key> getFunction(Node node) {
// Check if node is Abstract syntax program
AProgram program = (AProgram) node;
// Find first function
return (<API key>) program.getRootDeclaration().getFirst();
}
} |
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example - <API key></title>
<script src="../../components/jquery-2.1.1/jquery.js"></script>
<script src="../../../angular.js"></script>
</head>
<body ng-app="windowExample">
<script>
angular.module('windowExample', [])
.controller('ExampleController', ['$scope', '$window', function($scope, $window) {
$scope.greeting = 'Hello, World!';
$scope.doGreeting = function(greeting) {
$window.alert(greeting);
};
}]);
</script>
<div ng-controller="ExampleController">
<input type="text" ng-model="greeting" aria-label="greeting" />
<button ng-click="doGreeting(greeting)">ALERT</button>
</div>
</body>
</html> |
package org.glamey.training.zookeeper.election;
/**
* Leader
*
* @author zhouyang.zhou. 2017.11.08.11.
*/
public interface Leader {
/**
* ID
*
* @return
*/
String getMyId();
/**
* leader ID
*
* @return
*
* @throws Exception
*/
String getLeaderId() throws Exception;
/**
* leader
*
* @param listener
*/
void addListener(<API key> listener);
/**
* leader
*/
void start();
void destroy();
} |
Honeybadger.configure do |config|
config.api_key = ENV['HONEYBADGER_API_KEY']
end if ENV.key? 'HONEYBADGER_API_KEY' |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_23) on Fri Jan 18 23:42:17 EST 2013 -->
<TITLE>
Uses of Class openjava.ojc.Compiler (OpenJava MOP API)
</TITLE>
<META NAME="date" CONTENT="2013-01-18">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class openjava.ojc.Compiler (OpenJava MOP API)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<A NAME="navbar_top"></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../openjava/ojc/Compiler.html" title="class in openjava.ojc"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html?openjava/ojc/\class-useCompiler.html" target="_top"><B>FRAMES</B></A>
<A HREF="Compiler.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<HR>
<CENTER>
<H2>
<B>Uses of Class<br>openjava.ojc.Compiler</B></H2>
</CENTER>
No usage of openjava.ojc.Compiler
<P>
<HR>
<A NAME="navbar_bottom"></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="<API key>"></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../openjava/ojc/Compiler.html" title="class in openjava.ojc"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html?openjava/ojc/\class-useCompiler.html" target="_top"><B>FRAMES</B></A>
<A HREF="Compiler.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<HR>
<i>Copyright &
</BODY>
</HTML> |
#pragma warning disable 1591
// <autogenerated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
[assembly: Android.Runtime.<API key>("Concur.Sample.ClientLibrary.Resource", IsApplication=true)]
namespace Concur.Sample.ClientLibrary
{
[System.CodeDom.Compiler.<API key>("Xamarin.Android.Build.Tasks", "1.0.0.0")]
public partial class Resource
{
static Resource()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
public static void UpdateIdValues()
{
}
public partial class Attribute
{
static Attribute()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Attribute()
{
}
}
public partial class Drawable
{
// aapt resource value: 0x7f020000
public const int ConcurIcon = 2130837504;
// aapt resource value: 0x7f020001
public const int Icon = 2130837505;
// aapt resource value: 0x7f020002
public const int monoandroidsplash = 2130837506;
static Drawable()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Drawable()
{
}
}
public partial class Id
{
// aapt resource value: 0x7f060018
public const int CreateReportButton = 2131099672;
// aapt resource value: 0x7f06000f
public const int amountEditText = 2131099663;
// aapt resource value: 0x7f060002
public const int clientIdEditText = 2131099650;
// aapt resource value: 0x7f060011
public const int currencyEditText = 2131099665;
// aapt resource value: 0x7f060013
public const int dateEditText = 2131099667;
// aapt resource value: 0x7f060019
public const int expenseTypeSpinner = 2131099673;
// aapt resource value: 0x7f060017
public const int imageButton = 2131099671;
// aapt resource value: 0x7f060007
public const int loginButton = 2131099655;
// aapt resource value: 0x7f060004
public const int loginIdEditText = 2131099652;
// aapt resource value: 0x7f060006
public const int passwordEditText = 2131099654;
// aapt resource value: 0x7f06001a
public const int paymentTypeSpinner = 2131099674;
// aapt resource value: 0x7f060016
public const int <API key> = 2131099670;
// aapt resource value: 0x7f060000
public const int relativeLayout1 = 2131099648;
// aapt resource value: 0x7f06000a
public const int reportNameEditText = 2131099658;
// aapt resource value: 0x7f06001b
public const int statusTextView = 2131099675;
// aapt resource value: 0x7f060003
public const int textView1 = 2131099651;
// aapt resource value: 0x7f060015
public const int textView10 = 2131099669;
// aapt resource value: 0x7f060008
public const int textView11 = 2131099656;
// aapt resource value: 0x7f060005
public const int textView2 = 2131099653;
// aapt resource value: 0x7f060001
public const int textView21 = 2131099649;
// aapt resource value: 0x7f060009
public const int textView3 = 2131099657;
// aapt resource value: 0x7f06000b
public const int textView4 = 2131099659;
// aapt resource value: 0x7f06000d
public const int textView5 = 2131099661;
// aapt resource value: 0x7f06000e
public const int textView6 = 2131099662;
// aapt resource value: 0x7f060010
public const int textView7 = 2131099664;
// aapt resource value: 0x7f060012
public const int textView8 = 2131099666;
// aapt resource value: 0x7f060014
public const int textView9 = 2131099668;
// aapt resource value: 0x7f06000c
public const int vendorEditText = 2131099660;
static Id()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Id()
{
}
}
public partial class Layout
{
// aapt resource value: 0x7f030000
public const int Main = 2130903040;
static Layout()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Layout()
{
}
}
public partial class String
{
// aapt resource value: 0x7f040001
public const int ApplicationName = 2130968577;
// aapt resource value: 0x7f040000
public const int Hello = 2130968576;
static String()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private String()
{
}
}
public partial class Style
{
// aapt resource value: 0x7f050000
public const int <API key> = 2131034112;
static Style()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Style()
{
}
}
}
}
#pragma warning restore 1591 |
package com.alibaba.json.bvt.issue_1600;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.TypeReference;
import com.alibaba.fastjson.parser.ParserConfig;
import com.alibaba.fastjson.util.TypeUtils;
import junit.framework.TestCase;
import java.util.Collection;
public class Issue1665 extends TestCase {
public void test_for_issue() throws Exception {
TypeReference<Collection<Model>> typeReference = new TypeReference<Collection<Model>>() {};
Collection<Model> collection = TypeUtils.cast(JSON.parse("[{\"id\":101}]"), typeReference.getType(), ParserConfig.getGlobalInstance());
assertEquals(1, collection.size());
Model model = collection.iterator().next();
assertEquals(101, model.id);
}
public static class Model {
public int id;
}
} |
title: Expenses v4
layout: reference
The Expenses API can be used to read the expenses that belong to a specific expense report and modify an expense on an existing expense report. This API can be used to change attributes like transaction date, transaction amount, location, etc.
* [Limitations](#limitations)
* [Products and Editions](#products-editions)
* [Scope Usage](#scope-usage)
* [Dependencies](#dependencies)
* [Access Token Usage](#access-token-usage)
* [Retrieve expenses on a specific Report ID](#<API key>)
* [Retrieve an Expense by ID](#<API key>)
* [Update an Expense in an unsubmitted report](#<API key>)
* [Update an Expense in a submitted report](#<API key>)
* [Schema](#schema)
* [Update Report Expense Compact Schema](#<API key>)
* [Report Expense Summary](#<API key>)
* [Report Expense Detail](#<API key>)
* [Custom Data](#custom-data-schema)
* [Amount](#amount-schema)
* [Expense Source Identifiers](#<API key>)
* [Exchange Rate](#<API key>)
* [Expense Type](#expense-type-schema)
* [Location](#location-schema)
* [Mileage](#mileage-schema)
* [Payment Type](#payment-type-schema)
* [Receipt Type](#receipt-type-schema)
* [Travel](#travel-schema)
* [Travel Allowance](#<API key>)
* [Vendor](#vendor-schema)
* [Update Report Expense](#<API key>)
* [Smart Expense](#<API key>)
* [Tax](#tax-schema)
* [Expense Tax](#expense-tax-schema)
* [eReceipt](#ereceipt-schema)
* [Hotel eReceipt](#<API key>)
* [Car eReceipt](#car-ereceipt-schema)
* [Expense Attendee](#<API key>)
* [Expense Attendees](#<API key>)
* [Trip](#trip-schema)
* [Hotel Trip](#hotel-trip-schema)
* [Air Trip](#air-trip-schema)
* [Ride Trip](#ride-trip-schema)
* [Car Trip](#car-trip-schema)
* [Link](#link-schema)
* [Error](#error-schema)
* [Validation Errors](#<API key>)
## Prior Versions
* Expense entry v1.1 (Deprecated) documentation is available [here](./v1dot1.expense-entry.html)
* Expense Entry v3 documentation is available [here](./expense-entry.html)
## <a name="limitations"></a>Limitations
This API is only available to partners who have been granted access by SAP Concur. Access to this documentation does not provide access to the API.
## <a name="products-editions"></a>Products and Editions
* Concur Expense Professional Edition
* Concur Expense Standard Edition
## <a name="scope-usage"></a>Scope Usage
Required Scopes:
|Name|Description|Endpoint|
|
|`expense.report.read`|Get information about expense reports.|GET|
|`expense.report.readwrite`|Read and write expense report headers.|PATCH|
|`user.read`|Get User Information, necessary for `userID`.|GET|
Optional Scope:
|Name|Description|Endpoint|
|
|`spend.listitem.read`|Read only access to spend list items `listItemId`. |GET|
|`spend.list.read`|Read only access to spend list and category details.| GET|
## <a name="dependencies"></a>Dependencies
SAP Concur clients must purchase Concur Expense in order to use this API. This API requires the Identity v4 API which is currently only available to approved early access partners. Please contact your SAP Concur representative for more information.
## <a name="access-token-usage"></a>Access Token Usage
This API supports both company level and user level access tokens.
## <a name="<API key>"></a>Retrieve Expenses on a Specific Report ID
Retrieves the expenses that belong to a specific report ID.
Scopes
`expense.report.read` - Refer to [Scope Usage](#scope-usage) for full details.
Request
# URI Template
shell
https://{datacenterURI}/expensereports/v4/users/{userID}/context/{contextType}/reports/{reportId}/expenses
# Parameters
|Name|Type|Format|Description|
|
|`userID`|`string`|-|**Required** The unique identifier of the SAP Concur user. Use [Identity v4 API](/api-reference/profile/v4.identity.html) to retrieve the `userID`. |
|`contextType`|`string`|-|**Required** The access level of the SAP Concur user, which determines the form fields they can view/modify. Supported value: `TRAVELER` |
|`reportId`|`string`|-|**Required** The unique identifier of the report that is being read.|
# Headers
* [RFC 7231 Accept-Language](https://tools.ietf.org/html/rfc7231#section-5.3.5)
* [RFC 7231 Content-Type](https://tools.ietf.org/html/rfc7231#section-3.1.1.5)
* [RFC 7231 Content-Encoding](https://tools.ietf.org/html/rfc7231#section-3.1.2.2)
* [RFC 7234 Cache-Control](https://tools.ietf.org/html/rfc7234#section-5.2)
* [RFC 7232 If-Modified-Since](https://tools.ietf.org/html/rfc7232#section-3.3)
* [RFC 7231 Accept-Encoding](https://tools.ietf.org/html/rfc7231#section-5.3.4)
* [RFC 7235 Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) - Bearer Token that identifies the caller. This is the Company or User access token.
* `<API key>` is a Concur specific custom header used for technical support in the form of a [RFC 4122 A Universally Unique IDentifier (UUID) URN Namespace](https://tools.ietf.org/html/rfc4122)
Response
# Status Codes
* [200 OK](https://tools.ietf.org/html/rfc7231#section-6.3.2)
* [400 Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)
* [401 Unauthorized](https://tools.ietf.org/html/rfc7235#section-3.1)
* [403 Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3)
* [404 Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)
* [500 Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)
# Headers
* `<API key>` is a SAP Concur specific custom header used for technical support in the form of a [RFC 4122 A Universally Unique IDentifier (UUID) URN Namespace](https://tools.ietf.org/html/rfc4122)
# Payload
* [Expenses Response](#<API key>)
Example
# Request
shell
curl --location --request GET 'https://us.api.concursolutions.com/expensereports/v4/users/<API key>/context/TRAVELER/reports/<API key>/expenses' \
--header 'Authorization: Bearer {access_token}' \
--header '<API key>: Expense-Report-test' \
--header 'Content-Type: application/json'
# <a name="<API key>"></a> Response
shell
200 OK
[
{
"expenseId": "<API key>",
"<API key>": {
"value": 25.00000000,
"currencyCode": "USD"
},
"allocationState": "NOT_ALLOCATED",
"allocationSetId": null,
"approvedAmount": {
"value": 25.00000000,
"currencyCode": "USD"
},
"businessPurpose": "test",
"claimedAmount": {
"value": 25.00000000,
"currencyCode": "USD"
},
"ereceiptImageId": null,
"exchangeRate": {
"value": 1.00000000000000,
"operation": "MULTIPLY"
},
"<API key>": null,
"expenseType": {
"id": "LUNCH",
"name": "Lunch",
"code": "OTHER",
"isDeleted": false
},
"<API key>": false,
"hasExceptions": false,
"<API key>": false,
"isAutoCreated": false,
"<API key>": null,
"isImageRequired": true,
"<API key>": false,
"isPersonalExpense": false,
"location": {
"id": "<API key>",
"name": "Bellevue, Washington",
"city": "Bellevue",
"<API key>": "US-WA",
"countryCode": "US"
},
"paymentType": {
"id": "CASH",
"name": "Cash",
"code": "CASH"
},
"postedAmount": {
"value": 25.00000000,
"currencyCode": "USD"
},
"receiptImageId": null,
"ticketNumber": null,
"transactionAmount": {
"value": 25.00000000,
"currencyCode": "USD"
},
"transactionDate": "2020-03-11",
"travelAllowance": {
"dailyLimitAmount": null,
"<API key>": null,
"<API key>": false
},
"vendor": null,
"attendeeCount": 1,
"links": [
{
"rel": "self",
"href": "https://us.api.concursolutions.com/expensereports/v4/users/<API key>/context/TRAVELER/reports/<API key>/expenses/<API key>",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null,
"method": "GET",
"isTemplated": false
}
]
},
{
"expenseId": "<API key>",
"<API key>": {
"value": 500.00000000,
"currencyCode": "USD"
},
"allocationState": "NOT_ALLOCATED",
"allocationSetId": null,
"approvedAmount": {
"value": 500.00000000,
"currencyCode": "USD"
},
"businessPurpose": "Facility supplies",
"claimedAmount": {
"value": 500.00000000,
"currencyCode": "USD"
},
"ereceiptImageId": null,
"exchangeRate": {
"value": 1.00000000000000,
"operation": "MULTIPLY"
},
"<API key>": null,
"expenseType": {
"id": "OFCSP",
"name": "Office Supplies",
"code": "OTHER",
"isDeleted": false
},
"<API key>": false,
"hasExceptions": false,
"<API key>": false,
"isAutoCreated": false,
"<API key>": null,
"isImageRequired": true,
"<API key>": false,
"isPersonalExpense": false,
"location": {
"id": "<API key>",
"name": "Seattle, Washington",
"city": "Seattle",
"<API key>": "US-WA",
"countryCode": "US"
},
"paymentType": {
"id": "1022",
"name": "Mastercard",
"code": "CBCP"
},
"postedAmount": {
"value": 500.00000000,
"currencyCode": "USD"
},
"receiptImageId": null,
"ticketNumber": null,
"transactionAmount": {
"value": 500.00000000,
"currencyCode": "USD"
},
"transactionDate": "2020-03-11",
"travelAllowance": {
"dailyLimitAmount": null,
"<API key>": null,
"<API key>": false
},
"vendor": {
"id": null,
"name": null,
"description": "Antioch Construction"
},
"attendeeCount": 0,
"links": [
{
"rel": "self",
"href": "https://us.api.concursolutions.com/expensereports/v4/users/<API key>/context/TRAVELER/reports/<API key>/expenses/<API key>",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null,
"method": "GET",
"isTemplated": false
}
]
}
]
## <a name="<API key>"></a>Retrieve an Expense by ID
Retrieves the details of the specific expense entry on a report.
Scopes
`expense.report.read` - Refer to [Scope Usage](#scope-usage) for full details.
Request
# URI Template
shell
https://{datacenterURI}/expensereports/v4/users/{userID}/context/{contextType}/reports/{reportId}/expenses/{expenseId}
# Parameters
|Name|Type|Format|Description|
|
|`userID`|`string`|-|**Required** The unique identifier of the SAP Concur user. Use [Identity v4 API](/api-reference/profile/v4.identity.html) to retrieve the `userID`. |
|`contextType`|`string`|-|**Required** The access level of the SAP Concur user, which determines the form fields they can view/modify. Supported value: `TRAVELER`, `PROXY`|
|`reportId`|`string`|-|**Required** The unique identifier of the report to which this expense entry belongs.|
|`expenseId`|`string`|-|**Required** The unique identifier of the expense entry that is being read.|
# Headers
* [RFC 7231 Accept-Language](https://tools.ietf.org/html/rfc7231#section-5.3.5)
* [RFC 7231 Content-Type](https://tools.ietf.org/html/rfc7231#section-3.1.1.5)
* [RFC 7231 Content-Encoding](https://tools.ietf.org/html/rfc7231#section-3.1.2.2)
* [RFC 7234 Cache-Control](https://tools.ietf.org/html/rfc7234#section-5.2)
* [RFC 7232 If-Modified-Since](https://tools.ietf.org/html/rfc7232#section-3.3)
* [RFC 7231 Accept-Encoding](https://tools.ietf.org/html/rfc7231#section-5.3.4)
* [RFC 7235 Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) - Bearer Token that identifies the caller. This is the Company or User access token.
* `<API key>` is a Concur specific custom header used for technical support in the form of a [RFC 4122 A Universally Unique IDentifier (UUID) URN Namespace](https://tools.ietf.org/html/rfc4122)
Response
# Status Codes
* [200 OK](https://tools.ietf.org/html/rfc7231#section-6.3.2)
* [400 Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)
* [401 Unauthorized](https://tools.ietf.org/html/rfc7235#section-3.1)
* [403 Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3)
* [404 Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)
* [500 Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)
# Headers
* `<API key>` is a SAP Concur specific custom header used for technical support in the form of a [RFC 4122 A Universally Unique IDentifier (UUID) URN Namespace](https://tools.ietf.org/html/rfc4122)
# Payload
* [Expense Entry Response](#<API key>)
Example
# Request
shell
curl --location --request GET 'https://us.api.concursolutions.com/expensereports/v4/users/<API key>/context/TRAVELER/reports/<API key>/expenses/<API key>' \
--header 'Authorization: Bearer {access_token}' \
--header '<API key>: Expense-Report-test' \
--header 'Content-Type: application/json'
# <a name="<API key>"></a> Response
shell
200 OK
{
"expenseId": "<API key>",
"<API key>": {
"value": 25.00000000,
"currencyCode": "USD"
},
"allocationState": "NOT_ALLOCATED",
"allocationSetId": null,
"approvedAmount": {
"value": 25.00000000,
"currencyCode": "USD"
},
"businessPurpose": "test",
"claimedAmount": {
"value": 25.00000000,
"currencyCode": "USD"
},
"ereceiptImageId": null,
"exchangeRate": {
"value": 1.00000000000000,
"operation": "MULTIPLY"
},
"<API key>": null,
"expenseType": {
"id": "ONLIN",
"name": "Online Fees",
"code": "OTHER",
"isDeleted": false
},
"<API key>": false,
"hasExceptions": false,
"<API key>": false,
"isAutoCreated": false,
"<API key>": null,
"isImageRequired": true,
"<API key>": false,
"isPersonalExpense": false,
"location": {
"id": "<API key>",
"name": "Bellevue, Washington",
"city": "Bellevue",
"<API key>": "US-WA",
"countryCode": "US"
},
"paymentType": {
"id": "CASH",
"name": "Cash",
"code": "CASH"
},
"postedAmount": {
"value": 25.00000000,
"currencyCode": "USD"
},
"receiptImageId": null,
"ticketNumber": null,
"transactionAmount": {
"value": 25.00000000,
"currencyCode": "USD"
},
"transactionDate": "2020-03-11",
"travelAllowance": {
"dailyLimitAmount": null,
"<API key>": null,
"<API key>": false
},
"vendor": null,
"attendeeCount": 1,
"links": [
{
"rel": "self",
"href": "https://us.api.concursolutions.com/expensereports/v4/users/<API key>/context/TRAVELER/reports/<API key>/expenses/<API key>",
"hreflang": null,
"media": null,
"title": null,
"type": null,
"deprecation": null,
"method": "GET",
"isTemplated": false
}
],
"budgetAccrualDate": null,
"<API key>: null,
"customData": [
{
"id": "custom9",
"value": "<API key>",
"isValid": true,
"listItemUrl": "https://us.api.concursolutions.com/list/v4/items?id=<API key>"
}
],
"expenseTaxSummary": {
"<API key>": {
"value": 0E-8,
"currencyCode": "USD"
},
"<API key>": {
"value": 0E-8,
"currencyCode": "USD"
},
"<API key>": {
"value": 0E-8,
"currencyCode": "USD"
},
"<API key>": {
"value": 0E-8,
"currencyCode": "USD"
},
"netTaxAmount": {
"value": 25.00000000,
"currencyCode": "USD"
},
"<API key>": {
"value": 25.00000000,
"currencyCode": "USD"
},
"netReclaimAmount": {
"value": 25.00000000,
"currencyCode": "USD"
},
"<API key>": {
"value": 25.00000000,
"currencyCode": "USD"
},
"vatTaxTotal": null
},
"<API key>": false,
"isExpenseBillable": false,
"isExpenseRejected": false,
"<API key>": false,
"merchantTaxId": null,
"mileage": null,
"parentExpenseId": null,
"receiptType": {
"id": "N",
"status": "No Receipt"
},
"taxRateLocation": "HOME",
"travel": null,
}
## <a name="<API key>"></a>Update a Specific Expense Entry in an Unsubmitted Report
Updates the specified expense in an unsubmitted report and is flexible for modifying multiple attributes in the schema detailed below
Scopes
`expense.report.readwrite` - Refer to [Scope Usage](#scope-usage) for full details.
Request
# URI Template
shell
https://{datacenterURI}/expensereports/v4/users/{userID}/context/{contextType}/reports/{reportId}/expenses/{expenseId}
# Parameters
|Name|Type|Format|Description|
|
|`userID`|`string`|-|**Required** The unique identifier of the SAP Concur user. Use [Identity v4 API](/api-reference/profile/v4.identity.html) to retrieve the `userID`. |
|`contextType`|`string`|-|**Required** The access level of the SAP Concur user, which determines the form fields they can view/modify. Supported value: `TRAVELER`, `PROXY`|
|`reportId`|`string`|-|**Required** The unique identifier of the report to which this expense entry belongs.|
|`expenseId`|`string`|-|**Required** The unique identifier of the expense entry that is being read.|
# Headers
* [RFC 7231 Accept-Language](https://tools.ietf.org/html/rfc7231#section-5.3.5)
* [RFC 7231 Content-Type](https://tools.ietf.org/html/rfc7231#section-3.1.1.5)
* [RFC 7231 Content-Encoding](https://tools.ietf.org/html/rfc7231#section-3.1.2.2)
* [RFC 7234 Cache-Control](https://tools.ietf.org/html/rfc7234#section-5.2)
* [RFC 7232 If-Modified-Since](https://tools.ietf.org/html/rfc7232#section-3.3)
* [RFC 7231 Accept-Encoding](https://tools.ietf.org/html/rfc7231#section-5.3.4)
* [RFC 7235 Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) - Bearer Token that identifies the caller. This is the Company or User access token.
* `<API key>` is a Concur specific custom header used for technical support in the form of a [RFC 4122 A Universally Unique IDentifier (UUID) URN Namespace](https://tools.ietf.org/html/rfc4122)
# REST Design Specification
PATCH operations in Expense Reports v4 conform to the JSON Merge Patch specification:
* [RFC 7386 Authorization - JSON Merge Patch](https://tools.ietf.org/html/rfc7386)
# Payload
* [Patch Expense Request](#<API key>)
Response
# Status Codes
* [204 No Content](https://tools.ietf.org/html/rfc7231#section-6.3.5)
* [400 Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)
* [401 Unauthorized](https://tools.ietf.org/html/rfc7235#section-3.1)
* [403 Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3)
* [404 Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)
* [500 Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)
# Headers
* `<API key>` is a SAP Concur specific custom header used for technical support in the form of a [RFC 4122 A Universally Unique IDentifier (UUID) URN Namespace](https://tools.ietf.org/html/rfc4122)
# Payload
* [Patch Expense Response](#<API key>)
Example
# <a name="<API key>"></a> Request
shell
curl --location --request PATCH 'https://us.api.concursolutions.com/expensereports/v4/users/<API key>/context/TRAVELER/reports/<API key>/expenses/<API key>' \
--header 'Authorization: Bearer {access_token}' \
--header '<API key>: Expense-Test' \
--header 'Content-Type: application/json' \
--header 'Content-Type: text/plain' \
--data-raw '{
"customData": [
{
"id": "custom09",
"value": "<API key>",
"isValid": true
}
],
"businessPurpose":"Office Facility Supplies",
"transactionAmount":{
"value": 50.00000000,
"currencyCode": "USD"
},
"expenseSource":"OTHER"
}'
# <a name="<API key>"></a> Response
shell
204 No Content
## <a name="<API key>"></a>Update a Specific Expense Entry in a Submitted Report
Updates the specified expense in an unsubmitted or submitted report and is restricted to modify 'Business Purpose' and 'Custom/Org unit' fields only.
Scopes
`expense.report.readwrite` - Refer to [Scope Usage](#scope-usage) for full details.
Request
# URI Template
shell
https://{datacenterURI}/expensereports/v4/reports/{reportId}/expenses/{expenseId}
# Parameters
|Name|Type|Format|Description|
|
|`reportId`|`string`|-|**Required** The unique identifier of the report to which this expense entry belongs.|
|`expenseId`|`string`|-|**Required** The unique identifier of the expense entry that is being read.|
# Headers
* [RFC 7231 Accept-Language](https://tools.ietf.org/html/rfc7231#section-5.3.5)
* [RFC 7231 Content-Type](https://tools.ietf.org/html/rfc7231#section-3.1.1.5)
* [RFC 7231 Content-Encoding](https://tools.ietf.org/html/rfc7231#section-3.1.2.2)
* [RFC 7234 Cache-Control](https://tools.ietf.org/html/rfc7234#section-5.2)
* [RFC 7232 If-Modified-Since](https://tools.ietf.org/html/rfc7232#section-3.3)
* [RFC 7231 Accept-Encoding](https://tools.ietf.org/html/rfc7231#section-5.3.4)
* [RFC 7235 Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) - Bearer Token that identifies the caller. This is the Company or User access token.
* `<API key>` is a Concur specific custom header used for technical support in the form of a [RFC 4122 A Universally Unique IDentifier (UUID) URN Namespace](https://tools.ietf.org/html/rfc4122)
# REST Design Specification
PATCH operations in Expense Reports v4 conform to the JSON Merge Patch specification:
* [RFC 7386 Authorization - JSON Merge Patch](https://tools.ietf.org/html/rfc7386)
# Payload
* [Patch Submitted Expense Request](#<API key>)
Response
# Status Codes
* [204 No Content](https://tools.ietf.org/html/rfc7231#section-6.3.5)
* [400 Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)
* [401 Unauthorized](https://tools.ietf.org/html/rfc7235#section-3.1)
* [403 Forbidden](https://tools.ietf.org/html/rfc7231#section-6.5.3)
* [404 Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)
* [500 Internal Server Error](https://tools.ietf.org/html/rfc7231#section-6.6.1)
# Headers
* `<API key>` is a SAP Concur specific custom header used for technical support in the form of a [RFC 4122 A Universally Unique IDentifier (UUID) URN Namespace](https://tools.ietf.org/html/rfc4122)
# Payload
* [Patch Submitted Expense Response](#<API key>)
<a name="<API key>"></a>Update Report Expense Compact Schema
|Name|Type|Format|Description|
|
|`businessPurpose`|`string`|-|The text input for the business purpose by the user. Maximum length: 64 characters|
|`customData`|[`CustomData`](#custom-data-schema)|-|The details from the `customData` fields. These fields may not have data, depending on the configuration.|
|`expenseSource`|`string`|-|**Required** The source of the expense. Supported values: `EA` - Expense Assistant, `MOB` - Mobile, `OTHER` - Unknown, `SE` - Smart Expense, `TA` - Travel Allowance, `TR` - Travel Request, `UI` - Web UI|
# <a name="<API key>"></a>CustomData
|Name|Type|Format|Description|
|
|`id`|`string`|-|**Required** The unique identifier of the custom field. Examples: `custom1`, `orgUnit1`|
|`isValid`|`boolean`|`true`/`false`|Whether the value returned is valid or not. This value is returned for custom fields of all data types and is specifically evaluated for list items to represent the current status. Default: `true`|
|`value`|`string`|-|The value of the custom field. This field can have values for all the supported data types such as `text`, `integer`, `boolean` and `listItemId`. Maximum length: 48 characters|
Example
# <a name="<API key>"></a> Request
shell
curl --location --request PATCH 'https://us.api.concursolutions.com/expensereports/v4/reports/<API key>/expenses/<API key>' \
--header 'Authorization: Bearer {access_token}' \
--header '<API key>: Expense-Test' \
--header 'Content-Type: application/json' \
--header 'Content-Type: text/plain' \
--data-raw '{
"customData": [
{
"id": "custom09",
"value": "<API key>",
"isValid": true
}
],
"businessPurpose":"Office Supplies",
"expenseSource":"OTHER"
}'
# <a name="<API key>"></a> Response
shell
204 No Content
## <a name="schema"></a>Schema
<a name="<API key>"></a><API key>
|Name|Type|Format|Description|
|
|`allocationSetId`|`string`|-|The identifier of the allocation set associated with the expense. Allocations which belong to the same set were created at the same time.|
|`allocationState`|`string`|-|**Required** Allocation state for the expense. Supported values: `FULLY_ALLOCATED`, `NOT_ALLOCATED`, `PARTIALLY_ALLOCATED`|
|`approvedAmount`|[`Amount`](#amount-schema)|-|The approved amount of the expense, in the report currency.|
|`<API key>`|[`Amount`](#amount-schema)|-|The total amount adjusted for the expense by the approver|
|`attendeeCount`|`integer`|`int32`|The total number of attendees associated with the expense.|
|`businessPurpose`|`string`|-|The text input for the business purpose by the user.|
|`claimedAmount`|[`Amount`](#amount-schema)|-|The total non-personal amount claimed for reimbursement for the expense.|
|`ereceiptImageId`|`string`|-|The unique identifier of the eReceipt image associated with the expense.|
|`exchangeRate`|[`ExchangeRate`](#<API key>)|-|**Required** Exchange rate data for the expense.|
|`expenseId`|`string`|-|**Required** The unique identifier for the expense.|
|`<API key>`|[`<API key>`](#<API key>)|-|The list of expense sources associated with the expense|
|`expenseType`|[`ExpenseType`](#expense-type-schema)|-|**Required** The expense type information for the expense.|
|`<API key>`|`boolean`|-|**Required** Whether the expense has any exceptions that block it from being submitted.|
|`hasExceptions`|`boolean`|`true`/`false`|**Required** Whether the expense has any exceptions.|
|`<API key>`|`boolean`|`true`/`false`|**Required** Whether the expense has an affidavit declaration for missing receipt.|
|`<API key>`|`string`|-|The final status of the receipt image associated with the expense.|
|`isAutoCreated`|`boolean`|`true`/`false`|**Required** Whether the expense is auto-created.|
|`isImageRequired`|`boolean`|`true`/`false`|**Required** Whether the image is required for the expense.|
|`<API key>`|`boolean`|`true`/`false`|**Required** Whether the paper receipt is required for the expense to be submitted.|
|`isPersonalExpense`|`boolean`|`true`/`false`|**Required** Whether the expense is marked as personal (non-reimbursable) by the user.|
|`jptRouteId`|`string`|-|The unique route ID to identify a Japan rail route.|
|`links`|[`Link`](#link-schema)|-|Resource links related to this call.|
|`location`|[`Location`](#location-schema)|-|The location information of the expense.|
|`paymentType`|[`PaymentType`](#payment-type-schema)|-|**Required** The payment type information for the expense.|
|`postedAmount`|[`Amount`](#amount-schema)|-|**Required** The amount of the expense, in the report currency.|
|`receiptImageId`|`string`|-|The unique identifier of the image associated with the expense.|
|`ticketNumber`|`string`|-|The ticket number associated with the travel.|
|`transactionAmount`|[`Amount`](#amount-schema)|-|**Required** The amount of the expense, in the transaction currency paid to the vendor.|
|`transactionDate`|`string`|`YYYY-MM-DD`|The transaction date.|
|`travelAllowance`|[`TravelAllowance`](#<API key>)|-|The travel allowance data associated with the expense.|
|`vendor`|[`Vendor`](#vendor-schema)|-|The vendor information for the expense.|
<a name="<API key>"></a>ReportExpenseDetail
|Name|Type|Format|Description|
|
|`allocationSetId`|`string`|-|The identifier of the allocation set associated with the expense. Allocations which belong to the same set are created at the same time.|
|`allocationState`|`string`|-|**Required** Allocation state for the expense. Supported values: `FULLY_ALLOCATED`, `NOT_ALLOCATED`, `PARTIALLY_ALLOCATED`|
|`approvedAmount`|[`Amount`](#amount-schema)|-|The approved amount of the expense, in the report currency.|
|`<API key>`|[`Amount`](#amount-schema)|-|The total amount adjusted for the expense by the approver.|
|`attendeeCount`|`integer`|`int32`|The total number of attendees associated with the expense.|
|`<API key>`|`string`|-|The authorization request expense ID associated with the expense.|
|`budgetAccrualDate`|`string`|`YYYY-MM-DD`|The budget accrual date of the expense.|
|`businessPurpose`|`string`|-|The text input for the business purpose by the user.|
|`claimedAmount`|[`Amount`](#amount-schema)|-|The total non-personal amount claimed for reimbursement for the expense|
|`customData`|[`CustomData`](#custom-data-schema)|-|The details from the `customData` fields. These fields may not have data, depending on the configuration.|
|`ereceiptImageId`|`string`|-|The unique identifier of the eReceipt image associated with the expense.|
|`exchangeRate`|[`ExchangeRate`](#<API key>)|-|**Required** Exchange rate data for the expense.|
|`expenseId`|`string`|-|**Required** The unique identifier for the expense|
|`<API key>`|[`<API key>`](#<API key>)|-|The list of expense sources associated with the expense.|
|`expenseTaxSummary`|[`ExpenseTaxSummary`](#<API key>)|-|Tax information for the expense.|
|`expenseType`|[`ExpenseType`](#expense-type-schema)|-|**Required** The expense type information for the expense.|
|`<API key>`|`boolean`|`true`/`false`|**Required** Whether the expense has any exceptions that blocks it from being submitted.|
|`hasExceptions`|`boolean`|`true`/`false`|**Required** Whether the expense has any exceptions.|
|`<API key>`|`boolean`|`true`/`false`|Whether the expense has an affidavit declaration for missing receipt.|
|`<API key>`|`string`|-|The final status of the receipt image associated with the expense. Supported values: `ACCEPTED`, `PROCESSED`, `PROCESSING`, `PDF`, `FAILED`, `<API key>`|
|`isAutoCreated`|`boolean`|`true`/`false`|**Required** Whether the expense is auto created.|
|`<API key>`|`boolean`|`true`/`false`|**Required** Whether the user has excluded the expense from cash advance.|
|`isExpenseBillable`|`boolean`|`true`/`false`|**Required** Whether the expense is billable.|
|`isExpenseRejected`|`boolean`|`true`/`false`|**Required** Whether the approver or processor has rejected this expense in the report. If `true`, then this expense will be sent back to the report submitted in an addendum (split) report.|
|`isImageRequired`|`boolean`|`true`/`false`|**Required** Whether the image is required for the expense.|
|`<API key>`|`boolean`|`true`/`false`|**Required** Whether the paper receipt was received for the expense.|
|`<API key>`|`boolean`|`true`/`false`|**Required** Whether the paper receipt is required for the expense to be submitted.|
|`isPersonalExpense`|`boolean`|`true`/`false`|**Required** Whether the expense is marked as personal (non-reimbursable) by the user.|
|`jptRouteId`|`string`|-|The unique route ID to identify a Japan rail route.|
|`links`|[`Link`](#link-schema)|-|Resource links related to this call.|
|`location`|[`Location`](#location-schema)|-|The location information of the expense.|
|`merchantTaxId`|`string`|-|Merchant tax ID for the expense.|
|`mileage`|[`Mileage`](#mileage-schema)|-|The mileage data associated with the expense.|
|`parentExpenseId`|`string`|-|Expense ID of the parent expense.|
|`paymentType`|[`PaymentType`](#payment-type-schema)|-|**Required** The payment type information for the expense.|
|`postedAmount`|[`Amount`](#amount-schema)|-|**Required** The amount of the expense, in the report currency.|
|`receiptImageId`|`string`|-|The unique identifier of the image associated with the expense.|
|`receiptType`|[`ReceiptType`](#receipt-type-schema)|-|Receipt type for the expense.|
|`taxRateLocation`|`string`|-|**Required** Transaction location relative to the employee's home location as defined by their user profile. Supported values: `FOREIGN` - The expense transaction took place in foreign currency, `HOME` - The expense transaction took place in the reimbursement currency, `OUT_OF_PROVINCE` - The expense transaction took place outside the state jurisdiction. Default: `HOME`|
|`transactionAmount`|[`Amount`](#amount-schema)|-|**Required** The amount of the expense, in the transaction currency paid to the vendor.|
|`transactionDate`|`string`|`YYYY-MM-DD`|The transaction date of the expense.|
|`travel`|[`Travel`](#travel-schema)|-|The travel data associated with the expense.|
|`travelAllowance`|[`TravelAllowance`](#<API key>)|-|The travel allowance data associated with the expense.|
|`vendor`|[`Vendor`](#vendor-schema)|-|The vendor information for the expense.|
<a name="custom-data-schema"></a>CustomData
|Name|Type|Format|Description|
|
|`id`|`string`|-|**Required** The unique identifier of the custom field. Examples: `custom1`, `orgUnit1`|
|`isValid`|`boolean`|`true`/`false`|Whether the value returned is valid or not. This value is returned for custom fields of all data types and is specifically evaluated for list items to represent the current status. Default: `true`|
|`value`|`string`|-|The value of the custom field. This field can have values for all the supported data types such as `text`, `integer`, `boolean` and `listItemId`. Maximum length: 48 characters|
<a name="amount-schema"></a>Amount
|Name|Type|Format|Description|
|
|`currencyCode`|`string`|-|**Required** The 3-letter ISO 4217 currency code for the expense report currency, based on the user's assigned reimbursement currency when the report was created. Examples: `USD` - US dollars; `BRL` - Brazilian real; `CAD` - Canadian dollar; `CHF` - Swiss franc; `EUR` - Euro; `GBO` - Pound sterling; `HKD` - Hong Kong dollar; `INR` - Indian rupee; `MXN` - Mexican peso; `NOK` - Norwegian krone; `SEK` - Swedish krona|
|`value`|`number`|`double`|**Required** The amount in the defined currency.|
<a name="<API key>"></a><API key>
|Name|Type|Format|Description|
|
|`<API key>`|`string`|-|The unique identifier of the credit card transaction (indexed `transactionId`) associated with the expense.|
|`ereceiptId`|`string`|-|-|
|`<API key>`|`string`|-|The unique identifier of the expense capture image associated with the expense.|
|`jptRouteId`|`string`|-|The unique identifier to identify a Japan rail route.|
|`<API key>`|`string`|-|The unique identifier of the personal card transaction associated with the expense.|
|`quickExpenseId`|`string`|-|The unique identifier of the mobile expense associated with the expense.|
|`segmentId`|`integer`|`int64`|The unique identifier of the segment associated with the expense.|
|`segmentTypeId`|`string`|-|Segment type ID associated with the trip. Supported values: `AIRFR` - Air Ticket, `AIRSU` - Air Subscription, `CARRT` - Car Rental, `DININ` - Dining, `EVENT` - Event, `HOTEL` - Hotel Reservation, `INSUR` - Insurance, `LIMOF` - Limousine Reservation, `MISC` - Miscellaneous, `PARKG` - Parking Fee, `RAILF` - Train Ticket, `RAISU` - Train Subscription, `TAXIF` - Taxi Fare, `VISA` - Visa|
|`tripId`|`integer`|`int64`|The unique identifier of the trip ID associated with the expense.|
<a name="<API key>"></a>ExchangeRate
|Name|Type|Format|Description|
|
|`operation`|`string`|-|**Required** Exchange rate operation. Supported values: `MULTIPLY` or `DIVIDE`|
|`value`|`number`|`double`|**Required** Exchange rate value.|
<a name="<API key>"></a>ExpenseTaxSummary
|Name|Type|Format|Description|
|
|`<API key>`|[`Amount`](#amount-schema)|-|Net adjusted tax amount.|
|`<API key>`|[`Amount`](#amount-schema)|-|Net reclaim adjusted amount.|
|`netReclaimAmount`|[`Amount`](#amount-schema)|-|Net reclaim amount.|
|`netTaxAmount`|[`Amount`](#amount-schema)|-|Net tax amount.|
|`<API key>`|[`Amount`](#amount-schema)|-|Total reclaim adjusted amount.|
|`<API key>`|[`Amount`](#amount-schema)|-|Total reclaim posted amount.|
|`<API key>`|[`Amount`](#amount-schema)|-|Total tax adjusted amount.|
|`<API key>`|[`Amount`](#amount-schema)|-|Total tax posted amount.|
|`vatTaxTotal`|[`Amount`](#amount-schema)|-|VAT tax total amount.|
<a name="expense-type-schema"></a>ExpenseType
|Name|Type|Format|Description|
|
|`code`|`string`|-|The code of the expense type.|
|`id`|`string`|-|**Required** The unique identifier of the expense type. Maximum length: 5 characters. Example: `BRKFT`|
|`isDeleted`|`boolean`|`true`/`false`|Whether the expense type returned is deleted or not.|
|`name`|`string`|-|The name of the expense type (localized as per `accept-language` header).|
<a name="location-schema"></a>Location
|Name|Type|Format|Description|
|
|`city`|`string`|-|The location city.|
|`countryCode`|`string`|-|The location country ISO 3166-1 code.|
|`<API key>`|`string`|-|The location country sub division ISO 3166-2 code.|
|`id`|`string`|-|The unique identifier of the location. When location id is specified (when creating or updating a resource), other location object fields will be ignored.|
|`name`|`string`|-|The location name (localized as per `accept-language` header).|
<a name="mileage-schema"></a>Mileage
|Name|Type|Format|Description|
|
|`hasCaravanAttached`|`boolean`|`true`/`false`|Whether the mileage expense has caravan or trailer attached to the car. Default: `false`|
|`hasDogIncluded`|`boolean`|`true`/`false`|Whether the mileage expense includes a dog for work purposes. Default: `false`|
|`<API key>`|`boolean`|`true`/`false`|Whether the mileage route is via a forest road or construction site road. Default: `false`|
|`<API key>`|`boolean`|`true`/`false`|Whether the mileage route has forest road. Default: `false`|
|`hasMachinery`|`boolean`|`true`/`false`|Whether machines or equipment are transported in the car for this mileage expenses. Default: `false`|
|`<API key>`|`boolean`|`true`/`false`|Whether the mileage expense has mobile canteen or is transporting a heavy load attached to the car. Default: `false`|
|`hasTrailerAttached`|`boolean`|`true`/`false`|Whether the mileage expense has trailer attached to the car. Default: `false`|
|`<API key>`|`boolean`|`true`/`false`|Whether a higher rate should be applied to the mileage expense. Default: `false`|
|`odometerEnd`|`integer`|`int32`|The odometer reading at the end of the journey.|
|`odometerStart`|`integer`|`int32`|The odometer reading at the start of the journey.|
|`passengerCount`|`integer`|`int32`|The number of passengers in the vehicle during the journey.|
|`personalDistance`|`integer`|`int32`|The portion of the journey attributed to personal use. Default: `0`|
|`routeId`|`string`|-|The unique identifier of the route for this journey.|
|`totalDistance`|`integer`|`int32`|**Required** The total distance for this journey.|
|`vehicleId`|`string`|-|**Required** The unique identifier for the vehicle used for this journey.|
<a name="payment-type-schema"></a>PaymentType
|Name|Type|Format|Description|
|
|`code`|`string`|-|The code of the payment type.|
|`id`|`string`|-|**Required** The unique identifier of the payment type. Maximum length: 4 characters. Example: `CASH`|
|`name`|`string`|-|The name of the payment type (localized as per `accept-language` header).|
<a name="receipt-type-schema"></a>ReceiptType
|Name|Type|Format|Description|
|
|`id`|`string`|-|**Required** The unique identifier for the receipt type. Supported values: `N` - No Receipt, `R` - Regular Receipt, `T` - Tax Receipt. Default value: `N`|
|`status`|`string`|-|Receipt status (localized as per `accept-language` header).|
<a name="travel-schema"></a>Travel
|Name|Type|Format|Description|
|
|`airlineFeeTypeCode`|`string`|-|Airline fee type code. Supported values: `BAGGS`, `BUSIN`, `OBENT`, `ONBRD`, `OTHER`, `PRACC`, `SEATS`, `TKCHG`, `UPGRD`|
|`airlineFeeTypeName`|`string`|-|The localized airline fee type name.|
|`<API key>`|`string`|-|The airline service class code. Supported values: `BUSIN`, `COACH`, `FIRST`|
|`<API key>`|`string`|-|The localized airline service class name.|
|`carRentalDays`|`integer`|`int32`|The number of days car was rented. Minimum value: `0`|
|`endLocation`|`string`|-|Location where the travel ended. Maximum length: 100 characters|
|`hotelCheckinDate`|`string`|`YYYY-MM-DD`|The hotel checkin date of the expense.|
|`hotelCheckoutDate`|`string`|`YYYY-MM-DD`|The hotel checkout date of the expense.|
|`startLocation`|`string`|-|Location where the travel started. Maximum length: 100 characters|
|`ticketNumber`|`string`|-|The ticket number associated with the travel. Maximum length: 32 characters|
<a name="<API key>"></a>TravelAllowance
|Name|Type|Format|Description|
|
|`dailyLimitAmount`|`number`|`double`|The allowed amount based on government travel allowance rates.|
|`<API key>`|`string`|-|The fixed daily travel allowance ID associated with the expense. Maximum length: 32 characters|
|`<API key>`|`boolean`|`true`/`false`|Whether the expense is part of travel allowance. Default value: `false`|
<a name="vendor-schema"></a>Vendor
|Name|Type|Format|Description|
|
|`description`|`string`|-|The description of the vendor. Maximum length: 64 characters|
|`id`|`string`|-|The unique identifier of the vendor.|
|`name`|`string`|-|The name of the vendor (localized as per `accept-language` header).|
<a name="<API key>"></a>UpdateReportExpense
|Name|Type|Format|Description|
|
|`<API key>`|[`Amount`](#amount-schema)|-|The total amount adjusted for the expense by the approver.|
|`<API key>`|`string`|-|The authorization request expense ID associated with the expense.|
|`budgetAccrualDate`|`string`|`YYYY-MM-DD`|The budget accrual date.|
|`businessPurpose`|`string`|-|The text input for the business purpose by the user. Maximum length: 64 characters|
|`comment`|`string`|-|A comment that describes the expense. Maximum length: 2000 characters|
|`customData`|[`CustomData`](#custom-data-schema)|-|The details from the `customData` fields. These fields may not have data, depending on the configuration.|
|`exchangeRate`|[`ExchangeRate`](#<API key>)|-|The exchange rate data for the expense.|
|`expenseSource`|`string`|-|**Required** The source of the expense. Supported values: `EA` - Expense Assistant, `MOB` - Mobile, `OTHER` - Unknown, `SE` - Smart Expense, `TA` - Travel Allowance, `TR` - Travel Request, `UI` - Web UI|
|`expenseType`|[`ExpenseType`](#expense-type-schema)|-|The expense type data for the expense.|
|`<API key>`|`boolean`|`true`/`false`|Whether the expense has an affidavit declaration for missing receipt.|
|`isCopyDownInherited`|`boolean`|`true`/`false`|If `true`, any change in the report expense fields will be copied down to itemizations and allocations, as per the configuration.|
|`<API key>`|`boolean`|`true`/`false`|Whether the user has excluded the expense from cash advance.|
|`isExpenseBillable`|`boolean`|`true`/`false`|Whether the expense is billable.|
|`isExpenseRejected`|`boolean`|`true`/`false`|Whether the approver or processor has rejected this expense in the report. If `true`, then this expense will be sent back to the report submitted in an addendum (split) report.|
|`<API key>`|`boolean`|`true`/`false`|Whether paper receipts have been received for the expense.|
|`isPersonalExpense`|`boolean`|`true`/`false`|Whether the expense is marked as personal (non-reimbursable) by the user.|
|`jptRouteId`|`string`|-|The unique route ID to identify a Japan rail route.|
|`location`|[`Location`](#location-schema)|-|The location data of the expense.|
|`merchantTaxId`|`string`|-|The merchant tax ID for the expense. Maximum length: 64 characters|
|`mileage`|[`Mileage`](#mileage-schema)|-|The mileage data associated with the expense.|
|`paymentType`|[`PaymentType`](#payment-type-schema)|-|The payment type data for the expense. Default: `CASH` |
|`receiptImageId`|`string`|-|The unique identifier of the image associated with the expense.|
|`receiptType`|[`ReceiptType`](#receipt-type-schema)|-|Receipt type for the expense.|
|`smartExpense`|[`SmartExpense`](#<API key>)|-|The smart expense data associated with this expense.|
|`tax`|[`Tax`](#tax-schema)|-|The tax data associated with the expense.|
|`taxRateLocation`|`string`|-|Transaction location relative to the employee's home location as defined by their user profile. Supported values: `FOREIGN` - The expense transaction took place in foreign currency, `HOME` - The expense transaction took place in the reimbursement currency, `OUT_OF_PROVINCE` - The expense transaction took place outside the state jurisdiction|
|`transactionAmount`|[`Amount`](#amount-schema)|-|The amount of the expense, in the transaction currency paid to the vendor.|
|`transactionDate`|`string`|`YYYY-MM-DD`|The transaction date (ISO-8601) of the expense.|
|`travel`|[`Travel`](#travel-schema)|-|The travel data associated with the expense.|
|`travelAllowance`|[`TravelAllowance`](#<API key>)|-|The travel allowance data associated with the expense.|
|`vendor`|[`Vendor`](#vendor-schema)|-|The vendor data for the expense.|
<a name="<API key>"></a>SmartExpense
|Name|Type|Format|Description|
|
|`<API key>`|`string`|-|The unique identifier of the credit card transaction (indexed `transactionId`) associated with the expense.|
|`ereceipt`|[`EReceipt`](#ereceipt-schema)|-|EReceipt information for the expense.|
|`expenseAttendees`|[`ExpenseAttendees`](#<API key>)|-|The attendee details associated with the smart expense.|
|`isAutoCreated`|`boolean`|`true`/`false`|Whether this expense is auto-created. This element only applies to POST expense request. Default: `false`|
|`<API key>`|`string`|-|The unique identifier of the personal card transaction associated with the expense.|
|`quickExpenseId`|`string`|-|The unique identifier of the mobile expense associated with the expense. When `quickExpenseId` is specified, the `exchangeRate.value` field value will be ignored and its value will be read from exchange rate currency service. `exchangeRate.operation` will still be honored.|
|`trip`|[`Trip`](#schematrip)|-|Trip data associated with the expense.|
<a name="tax-schema"></a>Tax
|Name|Type|Format|Description|
|
|`expenseTax1`|[`ExpenseTax`](#expense-tax-schema)|-|**Required** The tax data for the expense.|
|`expenseTax2`|[`ExpenseTax`](#expense-tax-schema)|-|The tax data for the expense.|
<a name="expense-tax-schema"></a>ExpenseTax
|Name|Type|Format|Description|
|
|`customData`|[CustomData](#custom-data-schema)|-|The details from the `customData` fields. These fields may not have data, depending on the configuration.|
|`reclaimCode`|`string`|-|The tax reclaim code. Maximum length: 20 characters|
|`<API key>`|`number`|`double`|The tax reclaim transaction amount.|
|`taxAuthorityId`|`string`|-|**Required** The unique identifier of the tax authority.|
|`taxAuthorityName`|`string`|-|The name of the tax authority.|
|`taxCode`|`string`|-|The tax code. Maximum length: 20 characters|
|`taxFormId`|`string`|-|The unique identifier of the tax form associated with the expense.|
|`taxLabel`|`string`|-|The localized label of the tax authority.|
|`taxRateTypeId`|`string`|-|The unique identifier of the tax rate type ID.|
|`taxRateTypeName`|`string`|-|The name of the tax rate type.|
|`<API key>`|`string`|-|The unique identifier of the tax reclaim configuration ID.|
|`<API key>`|`number`|`double`|The tax transaction amount.|
<a name="ereceipt-schema"></a>EReceipt
|Name|Type|Format|Description|
|
|`carEReceipt`|[`CarEReceipt`](#car-receipt-schema)|-|The eReceipt car data.|
|`hotelEReceipt`|[`HotelEReceipt`](#<API key>)|-|The eReceipt hotel data.|
|`id`|`string`|-|**Required** The unique identifier of the eReceipt with the expense.|
|`imageId`|`string`|-|The unique identifier of the eReceipt image associated with the expense.|
|`templateURL`|`string`|-|The URL of the eReceipt template. Maximum length: 512 characters|
|`type`|`string`|-|**Required** The type of eReceipt associated with the expense. Supported values: `AIR`, `CAR`, `GASXX`, `GENERAL`, `GRTRN`, `HOTEL`, `JPT`, `MEALS`, `OFFIC`, `PRKNG`, `RAIL`, `RIDE`, `SHIPG`, `TELEC`|
<a name="<API key>"></a>HotelEReceipt
|Name|Type|Format|Description|
|
|`calculatedDailyRate`|`number`|`double`|The calculated hotel daily rate.|
|`endDate`|`string`|`YYYY-MM-DD`|The hotel checkout date.|
|`locationId`|`string`|-|The unique identifier of the location for this hotel.|
|`startDate`|`string`|`YYYY-MM-DD`|The hotel check-in date.|
|`totalAmountPaid`|[`Amount`](#amount-schema)|-|The total amount paid.|
|`vendorName`|`string`|-|The name of the hotel vendor. Maximum length: 255 characters. Examples: `Hilton`, `Four Points by Sheraton, Seattle`|
<a name="car-ereceipt-schema"></a>CarEReceipt
|Name|Type|Format|Description|
|
|`calculatedDailyRate`|`number`|`double`|The calculated car rental daily rate.|
|`carClass`|`string`|-|The car class. Maximum length: 4 characters. Examples: `IDAD`, `ECMZ`, `PCAV`, `IGDV`|
|`currencyCode`|`string`|-|The 3-letter ISO 4217 currency code. Examples: `USD` - US dollars, `BRL` - Brazilian real, `CAD` - Canadian dollar|
|`endDate`|`string`|`YYYY-MM-DD`|The car rental end date.|
|`fuelServiceCharge`|`number`|`double`|The fuel service charge. Minimum value: 0|
|`numberOfRentalDays`|`integer`|`int32`|The number of car rental calculated days. Minimum value: 0|
|`startDate`|`string`|`YYYY-MM-DD`|The car rental start date.|
|`unitsDriven`|`integer`|`int32`|The total units driven. Minimum value: 0|
|`vendorName`|`string`|-|The name of the car vendor. Maximum length: 255 characters. Example: `ABC Rent A Car`|
<a name="<API key>"></a>ExpenseAttendee
|Name|Type|Format|Description|
|
|`<API key>`|`integer`|`int32`|The count of total attendees. A count greater than one (1) means there are unnamed attendees associated with this expense-attendee record. Default : `1`|
|`attendeeId`|`string`|-|**Required** The unique identifier of the associated expense attendee within SAP Concur solutions.|
|`customData`|[`CustomData`](#custom-data-schema)|-|The details from the `customData` fields. These fields may not have data, depending on the configuration.|
|`isAmountUserEdited`|`boolean`|`true`/`false`|This field indicates if the amount value for the attendee on this expense was ever manually edited by the end user. Default: `false`|
|`isTraveling`|`boolean`|`true`/`false`|Whether the attendee was traveling when the expense was incurred. Used for FBT tax calculations.|
|`transactionAmount`|`number`|`double`|The portion of the expense transaction amount assigned to this attendee for both individual expense tracking and attendee totals across time periods.|
|`versionNumber`|`integer`|`int32`|The version number of the attendee. This field value may always be one (1), depending on the configuration. Default: `1`|
<a name="<API key>"></a>ExpenseAttendees
|Name|Type|Format|Description|
|
|`expenseAttendeeList`|[`ExpenseAttendee`](#<API key>)|-|The list of attendees associated with the expense. Maximum attendees: 500|
|`noShowAttendeeCount`|`integer`|`int32`|The number of attendees that were planned but did not show up. Default value: `0`|
<a name="trip-schema"></a>Trip
|Name|Type|Format|Description|
|
|`airTrip`|[`AirTrip`](#Air-trip-schema)|-|Air trip data associated with the expense.|
|`bookingOrigin`|`string`|-|Booking origin of the trip. Supported values: `AETM` - Amadeus E-Travel, `CLIQ` - Concur Travel, `PANM` - Open Booking, `TRPT` - TripIt, `TSUP` - Travel Supplier|
|`bookingSource`|`string`|-|Booking source of the trip. Maximum length: 48 characters. Examples: `Expedia`, `Travelocity`, `Manual`|
|`carTrip`|[`CarTrip`](#car-trip-schema)|-|Car trip data associated with the expense.|
|`cliqbookPaymentId`|`integer`|`int32`|Cliqbook payment ID associated with the trip.|
|`<API key>`|`string`|-|Cliqbook payment method associated with the trip. Supported values: `GHOST_CARD` or `FLGHT_PASS`|
|`hotelTrip`|[`HotelTrip`](#hotel-trip-schema)|-|Hotel trip data associated with the expense.|
|`merchantCode`|`string`|-|Merchant code associated with the trip. Maximum length: 4 characters|
|`rideTrip`|[`RideTrip`](#ride-trip-schema)|-|Ride or taxi trip data associated with the expense.|
|`segmentId`|`integer`|`int64`|**Required** The unique identifier of the segment associated with the expense.|
|`segmentTypeId`|`string`|-|**Required** Segment type ID associated with the trip. Supported values: `AIRFR` - Air Ticket, `AIRSU` - Air Subscription, `CARRT` - Car Rental, `DININ` - Dining, `EVENT` - Event, `HOTEL` - Hotel Reservation, `INSUR` - Insurance, `LIMOF` - Limousine Reservation, `MISC` - Miscellaneous, `PARKG` - Parking Fee, `RAILF` - Train Ticket, `RAISU` - Train Subscription, `TAXIF` - Taxi Fare, `VISA` - Visa|
|`startLocationId`|`string`|-|The unique identifier of the start location associated with the trip.|
|`tripId`|`integer`|`int64`|**Required** The unique identifier of the trip ID associated with the expense.|
<a name="hotel-trip-schema"></a>HotelTrip
|Name|Type|Format|Description|
|
|`calculatedDailyRate`|`number`|`double`|The calculated hotel daily rate.|
|`endDate`|`string`|`YYYY-MM-DD`|The hotel checkout date.|
|`numberOfNights`|`integer`|`int32`|The number of nights. Minimum value: `1`|
|`numberOfRooms`|`integer`|`int32`|The number of hotel rooms. Minimum value: `1`|
|`startDate`|`string`|`YYYY-MM-DD`|The hotel check-in date.|
|`totalAmountPaid`|[`Amount`](#amount-schema)|-|The total amount paid.|
|`vendorName`|`string`|-|The name of the hotel vendor. Maximum length: 255 characters. Examples: `Hilton`, `Four Points by Sheraton, Seattle`|
<a name="air-trip-schema"></a>AirTrip
|Name|Type|Format|Description|
|
|`airlineName`|`string`|-|The name of the airline vendor. Maximum length: 255 characters. Example: `Alaska Airlines`|
|`endDate`|`string`|`YYYY-MM-DD`|The last travel date or the travel end date.|
|`numberOfTravelDays`|`integer`|`int32`|The number of days of travel. Minimum value: `1`|
|`startDate`|`string`|`YYYY-MM-DD`|The first travel date or the travel start date.|
|`ticketType`|`string`|-|The airline class of service. Maximum length: 10 characters. Example: `Economy`|
|`totalAmountPaid`|[`Amount`](#amount-schema)|-|The total amount paid.|
<a name="ride-trip-schema"></a>RideTrip
|Name|Type|Format|Description|
|
|`startDate`|`string`|`YYYY-MM-DD`|The start date for the ride.|
|`totalAmountPaid`|[`Amount`](#amount-schema)|-|The total amount paid.|
|`vendorName`|`string`|-|The name of the vendor. Maximum length: 255 characters. Example: `Yellow Cab`|
<a name="car-trip-schema"></a>CarTrip
|Name|Type|Format|Description|
|
|`calculatedDailyRate`|`number`|`double`|The calculated car rental daily rate.|
|`carClass`|`string`|-|The car class. Maximum length: 10 characters. Examples: `IDAD`, `ECMZ`, `PCAV`, `IGDV`|
|`endDate`|`string`|`YYYY-MM-DD`|The car rental end date.|
|`numberOfCars`|`integer`|`int32`|The number of cars rented. Minimum value: `1`|
|`numberOfRentalDays`|`integer`|`int32`|The number of car rental calculated days. Minimum value: `0`|
|`startDate`|`string`|`YYYY-MM-DD`|The car rental start date.|
|`totalAmountPaid`|[`Amount`](#amount-schema)|-|The total amount paid.|
|`vendorName`|`string`|-|The name of the car vendor. Maximum length: 255 characters. Example: `ABC Rent A Car`|
<a name="link-schema"></a>Link
|Name|Type|Format|Description|
|
|`deprecation`|`string`|-|-|
|`href`|`string`|-|**Required** The URL of the related `HATEOAS` link that you can use for subsequent calls.|
|`hreflang`|`string`|-|-|
|`isTemplated`|`boolean`|`true`/`false`|**Required** Whether the `href` is parameterized.|
|`media`|`string`|-|-|
|`method`|`string`|-|**Required** The HTTP method required for the related call.|
|`rel`|`string`|-|**Required** The link relationship that describes how the `href` relates to the API call.|
|`title`|`string`|-|-|
|`type`|`string`|-|-|
<a name="<API key>"></a>ErrorMessage
|Name|Type|Format|Description|
|
|`errorId`|`string`|-|The unique identifier of the error associated with the response.|
|`errorMessage`|`string`|-|**Required** The detailed error message.|
|`httpStatus`|`string`|-|**Required** The http response code and phrase for the response.|
|`path`|`string`|-|**Required** The URI of the attempted request.|
|`timestamp`|`string`|`date-time`|**Required** The time when the error was captured.|
|`validationErrors`|[`ValidationError`](#<API key>)|-|The validation error messages.|
<a name="<API key>"></a>ValidationError
|Name|Type|Format|Description|
|
|`id`|`string`|-|The ID of the validation error.|
|`message`|`string`|-|The detailed message of the validation error.|
|`source`|`string`|-|The type of validation which failed.| |
package com.example.sunshine;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.widget.Toast;
import com.example.sunshine.LEDContract.LEDEntry;
public class Controller {
String name;
String ipAddress;
int color;
public Controller(){
this.name = "Default";
this.ipAddress = "Default";
this.color = 0xFFFFFFFF;
}
public Controller(String name, String ipAddress, int color){
this.name = name;
this.ipAddress = ipAddress;
this.color = color;
}
public Controller(String name, String ipAddress, int color, Context context){
SQLiteDatabase db = new LEDDbHelper(context).getWritableDatabase();
ContentValues values = new ContentValues();
values.put(LEDEntry.COLUMN_NAME, name);
values.put(LEDEntry.COLUMN_IPADDRESS, ipAddress);
values.put(LEDEntry.COLUMN_COLOR, color);
db.insert(LEDEntry.TABLE_NAME, null, values);
db.close();
this.name = name;
this.ipAddress = ipAddress;
this.color = color;
}
public String getName() {
return name;
}
public String getIpAddress() {
return ipAddress;
}
public int getColor() {
return color;
}
public boolean setName(String newName, Context context) {
SQLiteDatabase db = new LEDDbHelper(context).getWritableDatabase();
Cursor c = db.query(LEDEntry.TABLE_NAME, null, "name = ?", new String[]{newName}, null, null, null);
if(c.getCount() != 0){
db.close();
c.close();
Toast.makeText(context, "Name already exists", Toast.LENGTH_SHORT).show();
return false;
}
ContentValues values = new ContentValues();
values.put(LEDEntry.COLUMN_NAME, newName);
db.update(LEDEntry.TABLE_NAME, values, "name = ?", new String[]{this.name});
c.close();
db.close();
this.name = newName;
return true;
}
public boolean setIpAddress(String newIP, Context context) {
SQLiteDatabase db = new LEDDbHelper(context).getWritableDatabase();
Cursor c = db.query(LEDEntry.TABLE_NAME, null, "ip = ?", new String[]{newIP}, null, null, null);
if(c.getCount() != 0){
db.close();
c.close();
Toast.makeText(context, "IP already in use", Toast.LENGTH_SHORT).show();
return false;
}
ContentValues values = new ContentValues();
values.put(LEDEntry.COLUMN_IPADDRESS, newIP);
db.update(LEDEntry.TABLE_NAME, values, "name = ?", new String[]{this.name});
c.close();
db.close();
this.ipAddress = newIP;
return true;
}
public boolean setColor(long l, Context context) {
SQLiteDatabase db = new LEDDbHelper(context).getWritableDatabase();
Cursor c = db.query(LEDEntry.TABLE_NAME, null, "name = ?", new String[]{this.name}, null, null, null);
if(c.getCount() == 0){
db.close();
c.close();
return false;
}
ContentValues values = new ContentValues();
values.put(LEDEntry.COLUMN_COLOR, l);
db.update(LEDEntry.TABLE_NAME, values, "name = ?", new String[]{this.name});
c.close();
db.close();
this.color = (int) l;
return true;
}
@Override
public String toString(){
return this.name;
}
public static boolean checkName(String nameText, Context context) {
SQLiteDatabase db = new LEDDbHelper(context).getReadableDatabase();
Cursor c = db.query(LEDEntry.TABLE_NAME, null, "name = ?", new String[]{nameText}, null, null, null);
if(c.getCount() != 0){
db.close();
c.close();
return false;
}
db.close();
c.close();
return true;
}
public static boolean checkIP(String ipText, Context context){
SQLiteDatabase db = new LEDDbHelper(context).getReadableDatabase();
Cursor c = db.query(LEDEntry.TABLE_NAME, null, "ip = ?", new String[]{ipText}, null, null, null);
if(c.getCount()!=0){
db.close();
c.close();
return false;
}
db.close();
c.close();
return true;
}
} |
# AUTOGENERATED FILE
FROM balenalib/<API key>:3.11-build
ENV GO_VERSION 1.16.3
# set up nsswitch.conf for Go's "netgo" implementation
# - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf
RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
RUN mkdir -p /usr/local/go \
&& curl -SLO "http://resin-packages.s3.amazonaws.com/golang/v$GO_VERSION/go$GO_VERSION.<API key>.tar.gz" \
&& echo "<SHA256-like> go$GO_VERSION.<API key>.tar.gz" | sha256sum -c - \
&& tar -xzf "go$GO_VERSION.<API key>.tar.gz" -C /usr/local/go --strip-components=1 \
&& rm -f go$GO_VERSION.<API key>.tar.gz
ENV GOROOT /usr/local/go
ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
WORKDIR $GOPATH
CMD ["echo","'No CMD command was set in Dockerfile! Details about CMD command could be found in Dockerfile Guide section in our Docs. Here's the link: https://balena.io/docs"]
RUN curl -SLO "https://raw.githubusercontent.com/balena-io-library/base-images/<SHA1-like>/scripts/assets/tests/test-stack@golang.sh" \
&& echo "Running test-stack@golang" \
&& chmod +x test-stack@golang.sh \
&& bash test-stack@golang.sh \
&& rm -rf test-stack@golang.sh
RUN [ ! -d /.balena/messages ] && mkdir -p /.balena/messages; echo $'Here are a few details about this Docker image (For more information please visit https:
RUN echo $'#!/bin/bash\nbalena-info\nbusybox ln -sf /bin/busybox /bin/sh\n/bin/sh "$@"' > /bin/sh-shim \
&& chmod +x /bin/sh-shim \
&& ln -f /bin/sh /bin/sh.real \
&& ln -f /bin/sh-shim /bin/sh |
// +build !arm
package host
func charsToString(ca [65]int8) string {
s := make([]byte, len(ca))
var lens int
for ; lens < len(ca); lens++ {
if ca[lens] == 0 {
break
}
s[lens] = uint8(ca[lens])
}
return string(s[0:lens])
} |
package mx.zetta.adf.business.salesorder;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import javax.persistence.TypedQuery;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import mx.zetta.adf.commons.JPAUtils;
import mx.zetta.adf.commons.business.entities.Customer;
import mx.zetta.adf.commons.business.entities.OrderLines;
import mx.zetta.adf.commons.business.entities.Product;
import mx.zetta.adf.commons.business.entities.SalesOrder;
@Service
public class SalesOrderService {
private static final String PARAM_ORDER_NUMBER = "paramOrderNumber";
@PersistenceContext
private EntityManager entityManager;
@Transactional(propagation = Propagation.REQUIRED)
public void saveOrUpdate(SalesOrder salesOrder) {
if (entityManager.find(SalesOrder.class, salesOrder.getOrderNumber()) == null) {
salesOrder.setDeleted(false);
salesOrder.setCustomer(entityManager.getReference(Customer.class, salesOrder.getCustomer().getCode()));
entityManager.persist(salesOrder);
for (OrderLines orderLines : salesOrder.getOrderLines()) {
orderLines.setSalesOrder(salesOrder);
orderLines.setProduct(entityManager.getReference(Product.class, orderLines.getProduct().getCode()));
entityManager.persist(orderLines);
}
} else {
update(salesOrder);
}
}
@Transactional(propagation = Propagation.REQUIRED)
public void update(SalesOrder salesOrder) {
final Query query = entityManager.createNamedQuery("OrderLines.deleteByOrderNumber");
query.setParameter(PARAM_ORDER_NUMBER, salesOrder.getOrderNumber());
query.executeUpdate();
SalesOrder salesOrderDB = entityManager.find(SalesOrder.class, salesOrder.getOrderNumber());
salesOrderDB.setCustomer(entityManager.getReference(Customer.class, salesOrder.getCustomer().getCode()));
salesOrderDB.setTotalPrice(salesOrder.getTotalPrice());
entityManager.merge(salesOrderDB);
for (OrderLines orderLines : salesOrder.getOrderLines()) {
orderLines.setSalesOrder(salesOrder);
orderLines.setProduct(entityManager.getReference(Product.class, orderLines.getProduct().getCode()));
entityManager.persist(orderLines);
}
}
@Transactional(propagation = Propagation.REQUIRED)
public void deleteByOrderNumber(Integer orderNumber) {
final Query query = entityManager.createNamedQuery("SalesOrder.deleteByCode");
query.setParameter(PARAM_ORDER_NUMBER, orderNumber);
query.executeUpdate();
}
@Transactional(propagation = Propagation.REQUIRED)
public SalesOrder <API key>(Integer orderNumber) {
final TypedQuery<SalesOrder> query = entityManager.createNamedQuery("SalesOrder.<API key>", SalesOrder.class);
query.setParameter(PARAM_ORDER_NUMBER, orderNumber);
return JPAUtils.getSingleResult(query);
}
@Transactional(propagation = Propagation.NOT_SUPPORTED)
public List<SalesOrder> getAllWithCustomer() {
final TypedQuery<SalesOrder> query = entityManager.createNamedQuery("SalesOrder.getAllWithCustomer", SalesOrder.class);
return query.getResultList();
}
} |
package com.presidentio.testdatagenerator.cons;
public class DelimiterConst {
public static final String COMMA = ",";
public static final String TAB = "\t";
public static final String NEW_LINE = "\n";
public static final String SPACE = " ";
} |
package com.cisco.axl.api._8;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RProcessNode", propOrder = {
"name",
"description",
"mac",
"ipv6Name",
"nodeUsage"
})
public class RProcessNode {
protected String name;
protected String description;
protected String mac;
protected String ipv6Name;
protected String nodeUsage;
@XmlAttribute
protected String uuid;
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the description property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescription(String value) {
this.description = value;
}
/**
* Gets the value of the mac property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMac() {
return mac;
}
/**
* Sets the value of the mac property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMac(String value) {
this.mac = value;
}
/**
* Gets the value of the ipv6Name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIpv6Name() {
return ipv6Name;
}
/**
* Sets the value of the ipv6Name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setIpv6Name(String value) {
this.ipv6Name = value;
}
/**
* Gets the value of the nodeUsage property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNodeUsage() {
return nodeUsage;
}
/**
* Sets the value of the nodeUsage property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNodeUsage(String value) {
this.nodeUsage = value;
}
/**
* Gets the value of the uuid property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUuid() {
return uuid;
}
/**
* Sets the value of the uuid property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUuid(String value) {
this.uuid = value;
}
} |
<?php
namespace Liuwen\Alipay\Request;
/**
* ALIPAY API: zhima.credit.score.get request
*
* @author auto create
* @since 1.0, 2016-11-08 10:44:52
*/
class <API key>
{
private $bizContent;
private $apiParas = array();
private $terminalType;
private $terminalInfo;
private $prodCode;
private $apiVersion="1.0";
private $notifyUrl;
private $returnUrl;
private $needEncrypt=false;
public function setBizContent($bizContent)
{
$this->bizContent = $bizContent;
$this->apiParas["biz_content"] = $bizContent;
}
public function getBizContent()
{
return $this->bizContent;
}
public function getApiMethodName()
{
return "zhima.credit.score.get";
}
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl=$notifyUrl;
}
public function getNotifyUrl()
{
return $this->notifyUrl;
}
public function setReturnUrl($returnUrl)
{
$this->returnUrl=$returnUrl;
}
public function getReturnUrl()
{
return $this->returnUrl;
}
public function getApiParas()
{
return $this->apiParas;
}
public function getTerminalType()
{
return $this->terminalType;
}
public function setTerminalType($terminalType)
{
$this->terminalType = $terminalType;
}
public function getTerminalInfo()
{
return $this->terminalInfo;
}
public function setTerminalInfo($terminalInfo)
{
$this->terminalInfo = $terminalInfo;
}
public function getProdCode()
{
return $this->prodCode;
}
public function setProdCode($prodCode)
{
$this->prodCode = $prodCode;
}
public function setApiVersion($apiVersion)
{
$this->apiVersion=$apiVersion;
}
public function getApiVersion()
{
return $this->apiVersion;
}
public function setNeedEncrypt($needEncrypt)
{
$this->needEncrypt=$needEncrypt;
}
public function getNeedEncrypt()
{
return $this->needEncrypt;
}
} |
package org.neo4j.cypher.internal.compiler.v2_3.mutation
import org.neo4j.cypher.internal.frontend.v2_3.test_helpers.CypherFunSuite
class <API key> extends CypherFunSuite with <API key> {
val byte: Byte = 1
val short: Short = 1
val int: Int = 1
val long: Long = 1
val float: Float = 1
val double: Double = 1
test("checks") {
Array[Byte](1, 1) ==> (byte, byte)
Array[Short](1, 1) ==> (byte, short)
Array[Int](1, 1) ==> (byte, int)
Array[Long](1, 1) ==> (byte, long)
Array[Float](1, 1) ==> (byte, float)
Array[Double](1, 1) ==> (byte, double)
Array[Short](1, 1) ==> (short, byte)
Array[Short](1, 1) ==> (short, short)
Array[Int](1, 1) ==> (short, int)
Array[Long](1, 1) ==> (short, long)
Array[Float](1, 1) ==> (short, float)
Array[Double](1, 1) ==> (short, double)
Array[Int](1, 1) ==> (int, byte)
Array[Int](1, 1) ==> (int, short)
Array[Int](1, 1) ==> (int, int)
Array[Long](1, 1) ==> (int, long)
Array[Float](1, 1) ==> (int, float)
Array[Double](1, 1) ==> (int, double)
Array[Long](1, 1) ==> (long, byte)
Array[Long](1, 1) ==> (long, short)
Array[Long](1, 1) ==> (long, int)
Array[Long](1, 1) ==> (long, long)
Array[Float](1, 1) ==> (long, float)
Array[Double](1, 1) ==> (long, double)
Array[Float](1, 1) ==> (float, byte)
Array[Float](1, 1) ==> (float, short)
Array[Float](1, 1) ==> (float, int)
Array[Float](1, 1) ==> (float, long)
Array[Float](1, 1) ==> (float, float)
Array[Double](1, 1) ==> (float, double)
Array[Double](1, 1) ==> (double, byte)
Array[Double](1, 1) ==> (double, short)
Array[Double](1, 1) ==> (double, int)
Array[Double](1, 1) ==> (double, long)
Array[Double](1, 1) ==> (double, float)
Array[Double](1, 1) ==> (float, double)
}
implicit class CheckValeNeoSafe(expected: Array[_]) {
def ==>(vals: Any*) =
makeValueNeoSafe(vals) should equal(expected)
}
} |
# Identifiers
All objects in the QingYuan REST API are unambiguously identified by a Name and a UID.
For non-unique user-provided attributes, QingYuan provides [labels](labels.md) and [annotations](annotations.md).
## Names
Names are generally client-provided. Only one object of a given kind can have a given name at a time (i.e., they are spatially unique). But if you delete an object, you can make a new object with the same name. Names are the used to refer to an object in a resource URL, such as `/api/v1/pods/some-name`. By convention, the names of QingYuan resources should be up to maximum length of 253 characters and consist of lower case alphanumeric characters, `-`, and `.`, but certain resources have more specific restructions. See the [identifiers design doc](design/identifiers.md) for the precise syntax rules for names.
## UIDs
UID are generated by QingYuan. Every object created over the whole lifetime of a QingYuan cluster has a distinct UID (i.e., they are spatially and temporally unique).
[]()
[]() |
package eu.scape_project.planning.services.notification;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import java.util.UUID;
import javax.annotation.Resource;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.transaction.UserTransaction;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import org.slf4j.Logger;
import eu.scape_project.planning.model.Notification;
import eu.scape_project.planning.model.User;
@Path("/")
@Consumes({"application/json"})
@Produces({"application/json"})
public class <API key> {
static final Logger LOGGER = org.slf4j.LoggerFactory.getLogger(<API key>.class);
@PersistenceContext
private EntityManager em;
@Resource
UserTransaction ut;
/**
* adds the notification in the system.
* If there is a user with email equal to plannerEmail registered, a notification is stored.
*
* @param notification
* @return
*/
@PUT
@Path("/notification")
public boolean addNotification(WatchNotification notification) {
LOGGER.info("recieved a notification: {}", notification.getMessage());
List<User> recipients = new ArrayList<User>();
if (notification.getPlannerEmail() != null) {
User recipient = em.createQuery("select u from User u where u.email = :email", User.class)
.setParameter("email", notification.getPlannerEmail()).getSingleResult();
if (recipient != null) {
recipients.add(recipient);
}
}
// TODO add users related to plan with repository id planId
if (recipients.size() > 0) {
String notificationID = UUID.randomUUID().toString();
Date notificationTime = new Date();
String message = notification.getMessage();
try {
ut.begin();
for (User recipient : recipients) {
Notification n = new Notification(notificationID, notificationTime, "SCOUT", message, recipient);
em.persist(n);
}
ut.commit();
return true;
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
return false;
}
@GET
@Path("/notifications")
public Collection<WatchNotification> getNotifications() {
ArrayList<WatchNotification> list = new ArrayList<WatchNotification>();
WatchNotification n = new WatchNotification(null, "test message", null, null, "test@test.com");
list.add(n);
return list;
}
} |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_112) on Thu Apr 06 08:02:38 MST 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>LoggerConsumer (Public javadocs 2017.4.0 API)</title>
<meta name="date" content="2017-04-06">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="LoggerConsumer (Public javadocs 2017.4.0 API)";
}
}
catch(err) {
}
var methods = {"i0":6,"i1":18};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],16:["t5","Default Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="topNav"><a name="navbar.top">
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/LoggerConsumer.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">WildFly Swarm API, 2017.4.0</div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/wildfly/swarm/config/logging/Logger.html" title="class in org.wildfly.swarm.config.logging"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../../../org/wildfly/swarm/config/logging/LoggerSupplier.html" title="interface in org.wildfly.swarm.config.logging"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/wildfly/swarm/config/logging/LoggerConsumer.html" target="_top">Frames</a></li>
<li><a href="LoggerConsumer.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="<API key>">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!
allClassesLink = document.getElementById("<API key>");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
</a></div>
<div class="header">
<div class="subTitle">org.wildfly.swarm.config.logging</div>
<h2 title="Interface LoggerConsumer" class="title">Interface LoggerConsumer<T extends <a href="../../../../../org/wildfly/swarm/config/logging/Logger.html" title="class in org.wildfly.swarm.config.logging">Logger</a><T>></h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>Functional Interface:</dt>
<dd>This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.</dd>
</dl>
<hr>
<br>
<pre><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/FunctionalInterface.html?is-external=true" title="class or interface in java.lang">@FunctionalInterface</a>
public interface <span class="typeNameLabel">LoggerConsumer<T extends <a href="../../../../../org/wildfly/swarm/config/logging/Logger.html" title="class in org.wildfly.swarm.config.logging">Logger</a><T>></span></pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="method.summary">
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span><span id="t5" class="tableTab"><span><a href="javascript:show(16);">Default Methods</a></span><span class="tabEnd"> </span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/wildfly/swarm/config/logging/LoggerConsumer.html#accept-T-">accept</a></span>(<a href="../../../../../org/wildfly/swarm/config/logging/LoggerConsumer.html" title="type parameter in LoggerConsumer">T</a> value)</code>
<div class="block">Configure a pre-constructed instance of Logger resource</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>default <a href="../../../../../org/wildfly/swarm/config/logging/LoggerConsumer.html" title="interface in org.wildfly.swarm.config.logging">LoggerConsumer</a><<a href="../../../../../org/wildfly/swarm/config/logging/LoggerConsumer.html" title="type parameter in LoggerConsumer">T</a>></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/wildfly/swarm/config/logging/LoggerConsumer.html#andThen-org.wildfly.swarm.config.logging.LoggerConsumer-">andThen</a></span>(<a href="../../../../../org/wildfly/swarm/config/logging/LoggerConsumer.html" title="interface in org.wildfly.swarm.config.logging">LoggerConsumer</a><<a href="../../../../../org/wildfly/swarm/config/logging/LoggerConsumer.html" title="type parameter in LoggerConsumer">T</a>> after)</code> </td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="method.detail">
</a>
<h3>Method Detail</h3>
<a name="accept-org.wildfly.swarm.config.logging.Logger-">
</a><a name="accept-T-">
</a>
<ul class="blockList">
<li class="blockList">
<h4>accept</h4>
<pre>void accept(<a href="../../../../../org/wildfly/swarm/config/logging/LoggerConsumer.html" title="type parameter in LoggerConsumer">T</a> value)</pre>
<div class="block">Configure a pre-constructed instance of Logger resource</div>
</li>
</ul>
<a name="andThen-org.wildfly.swarm.config.logging.LoggerConsumer-">
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>andThen</h4>
<pre>default <a href="../../../../../org/wildfly/swarm/config/logging/LoggerConsumer.html" title="interface in org.wildfly.swarm.config.logging">LoggerConsumer</a><<a href="../../../../../org/wildfly/swarm/config/logging/LoggerConsumer.html" title="type parameter in LoggerConsumer">T</a>> andThen(<a href="../../../../../org/wildfly/swarm/config/logging/LoggerConsumer.html" title="interface in org.wildfly.swarm.config.logging">LoggerConsumer</a><<a href="../../../../../org/wildfly/swarm/config/logging/LoggerConsumer.html" title="type parameter in LoggerConsumer">T</a>> after)</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="bottomNav"><a name="navbar.bottom">
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/LoggerConsumer.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">WildFly Swarm API, 2017.4.0</div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/wildfly/swarm/config/logging/Logger.html" title="class in org.wildfly.swarm.config.logging"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../../../org/wildfly/swarm/config/logging/LoggerSupplier.html" title="interface in org.wildfly.swarm.config.logging"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/wildfly/swarm/config/logging/LoggerConsumer.html" target="_top">Frames</a></li>
<li><a href="LoggerConsumer.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="<API key>">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!
allClassesLink = document.getElementById("<API key>");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
</a></div>
<p class="legalCopy"><small>Copyright &
</body>
</html> |
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
<title>send</title>
<link href="../../../images/logo-icon.svg" rel="icon" type="image/svg"><script>var pathToRoot = "../../../";</script> <script>const storage = localStorage.getItem("dokka-dark-mode")
const savedDarkMode = storage ? JSON.parse(storage) : false
if(savedDarkMode === true){
document.<API key>("html")[0].classList.add("theme-dark")
}</script>
<script type="text/javascript" src="../../../scripts/<API key>.js" async="async"></script><link href="../../../styles/style.css" rel="Stylesheet"><link href="../../../styles/jetbrains-mono.css" rel="Stylesheet"><link href="../../../styles/main.css" rel="Stylesheet"><link href="../../../styles/prism.css" rel="Stylesheet"><link href="../../../styles/logo-styles.css" rel="Stylesheet"><script type="text/javascript" src="../../../scripts/clipboard.js" async="async"></script><script type="text/javascript" src="../../../scripts/navigation-loader.js" async="async"></script><script type="text/javascript" src="../../../scripts/<API key>.js" async="async"></script><script type="text/javascript" src="../../../scripts/main.js" defer="defer"></script><script type="text/javascript" src="../../../scripts/prism.js" async="async"></script> </head>
<body>
<div class="navigation-wrapper" id="navigation-wrapper">
<div id="leftToggler"><span class="icon-toggler"></span></div>
<div class="library-name"><a href="../../../index.html">acra</a></div>
<div></div>
<div class="pull-right d-flex">
<div class="filter-section" id="filter-section"><button class="platform-tag platform-selector jvm-like" data-active="" data-filter=":acra-toast:dokkaHtml/release">androidJvm</button></div>
<button id="theme-toggle-button"><span id="theme-toggle"></span></button>
<div id="searchBar"></div>
</div>
</div>
<div id="container">
<div id="leftColumn">
<div id="sideMenu"></div>
</div>
<div id="main">
<div class="main-content" id="content" pageIds="acra::org.acra.sender/HttpSender/send/#android.content.Context#org.acra.data.CrashReportData/<API key>//-535716451">
<div class="breadcrumbs"><a href="../../../index.html">acra</a>/<a href="../index.html">org.acra.sender</a>/<a href="index.html">HttpSender</a>/<a href="send.html">send</a></div>
<div class="cover ">
<h1 class="cover"><span><span>send</span></span></h1>
</div>
<div class="platform-hinted with-platform-tabs" <API key>="<API key>">
<div class="<API key>" data-toggle-list="data-toggle-list"><button class="platform-bookmark jvm-like" <API key>=":acra-toast:dokkaHtml/release" data-filterable-set=":acra-toast:dokkaHtml/release" data-active="" data-toggle=":acra-toast:dokkaHtml/release">androidJvm</button></div>
<div class="content <API key>" data-active="" data-togglable=":acra-toast:dokkaHtml/release"><div class="symbol monospace"><span class="token keyword">open </span><span class="token keyword">override </span><span class="token keyword">fun </span><a href="send.html"><span class="token function">send</span></a><span class="token punctuation">(</span>context<span class="token operator">: </span><a href="https://developer.android.com/reference/kotlin/android/content/Context.html">Context</a><span class="token punctuation">, </span>errorContent<span class="token operator">: </span><a href="../../org.acra.data/-crash-report-data/index.html">CrashReportData</a><span class="token punctuation">)</span><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div> </div>
</div>
<div class="footer"><span class="go-to-top-icon"><a href="
</div>
</div>
</body>
</html> |
description: Integrate external tools with GoCD
keywords: gocd integrations, tool integrations, cctray, configure tracking tool
title: Integrating GoCD With Other Tools
url: /integration/
# GoCD Integration with external tools
## Integration with bug tracking and story management tools
GoCD allows you to link your commit messages with bug tracking and story management tools which are web applications.
The following shows an example of tracking cards on Jira by card numbers starting with a "\#" (e.g: \#3301):

The pattern has an extra "\#" because it is an escape character for a parameter. [More information...](../configuration/<API key>.html)
For power users, here's how you'd do it from Config XML:
xml
<pipeline name="mypipeline">
<trackingtool link="http://jira.atlassian.com/go/${ID}" regex="
</pipeline>
Now, when a user commits code with comments like "\#3301 - Make sure the TrackingToolConfig and...", GoCD detects the modifications and automatically links story/bug numbers to the configured tracking tool:

## Monitoring your builds with client tools
GoCD allows you to monitor your builds with CCTray through the url 'http://[your_go_server]:8153/go/cctray.xml.
If you have switched on security in your configuration you can use BASIC authentication to connect. In many cases you can do this by including the username and password in the URL. The username and password should not include special characters.
For example:
bash
http://[username]:[password]@[your_go_server]:8153/go/cctray.xml
From 12.3, the CCTray feed includes a message tag with the "breakers" attribute that includes names of users who made the commit that broke the pipeline. Most CCTray clients support this message tag. |
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>Infinity</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">Infinity()</font></b></p>
<p><b></b></p><blockquote>
Result.f = <font color="#3A3966"><b>Infinity</b></font>()</blockquote>
</blockquote>
<b></b><br><blockquote>
Returns the special floating-point value representing positive infinity. Negative infinity can
be calculated using "-Infinity()".
</blockquote><p><b></b></p><blockquote>
.
</blockquote><p><b></b></p><blockquote>
Returns the value representing infinity. The result is a float or double value depending on whether
it is assigned to a <a href="../reference/variables.html">float or double</a> variable.
</blockquote><p><b></b></p><blockquote>
Infinity and negative infinity are special values. They behave in calculations in the way you would
generally expect. For example dividing infinity by any positive number (except 0 or infinity) will result in
infinity again. The <a href="isinfinity.html">IsInfinity()</a> function can be used to check if a value represents
positive or negative infinity.
</blockquote><p><b></b></p><blockquote>
<pre><font face="Courier New, Courier, mono"size="2"> <b><font color="#3A3966">Debug</font></b> <font color="#3A3966">IsInfinity</font>(<font color="#3A3966">Infinity</font>() / 1000) <font color="#3A3966">; will display 1</font>
</font></pre>
</blockquote><p><b></b></p><blockquote>
<a href="isinfinity.html">IsInfinity()</a>, <a href="nan.html">NaN()</a>
</Blockquote><p><b> </b><Blockquote></Blockquote></p><center><- <a href=exp.html>Exp()</a> - <a href="index.html">Math Index</a> - <a href="int.html">Int()</a> -><br><br>
</body></html> |
package com.cheer.petstore.dao;
import com.cheer.petstore.domain.Pet;
public interface PetDao
{
void save(Pet pet);
void delete(Pet pet);
void update(Pet pet);
} |
#!/bin/bash -e
DATA_DIR=data/dqa_parts_v1/
SCRIPT_DIR=experiments/dipart/scripts/preprocess/
RAW_ANNOTATIONS=$DATA_DIR/annotation.json
IMAGE_DIR=$DATA_DIR/
# SYNTACTIC_NGRAMS=~/Desktop/syntactic_ngrams/
DIAGRAM_SIZE_OUTPUT=$DATA_DIR/diagram_sizes.txt
OUTPUT=$DATA_DIR/diagrams.json
# NGRAM_OUTPUT=$DATA_DIR/syntactic_ngrams.json
VGG_DIR=$DATA_DIR/vgg_features/<API key>/
MATCHING_DIR=$DATA_DIR/<API key>/dqa_310/
FEATURE_OUTPUT=$DATA_DIR/diagram_features_xy.json
UNSEEN_SAMPLE=$DATA_DIR/<API key>.json
UNSEEN_S_DIR=$DATA_DIR/data_splits/unseen_sample
UNSEEN_SAMPLE_TRAIN=$UNSEEN_S_DIR/train.json
UNSEEN_SAMPLE_VAL=$UNSEEN_S_DIR/validation.json
UNSEEN_SAMPLE_TEST=$UNSEEN_S_DIR/test.json
UNSEEN_CATEGORY=$DATA_DIR/<API key>.json
UNSEEN_C_DIR=$DATA_DIR/data_splits/unseen_category
<API key>=$UNSEEN_C_DIR/train.json
UNSEEN_CATEGORY_VAL=$UNSEEN_C_DIR/validation.json
<API key>=$UNSEEN_C_DIR/test.json
sips -g pixelHeight -g pixelWidth $IMAGE_DIR*.png > $DIAGRAM_SIZE_OUTPUT
./$SCRIPT_DIR/<API key>.py $RAW_ANNOTATIONS $DIAGRAM_SIZE_OUTPUT $OUTPUT
./$SCRIPT_DIR/<API key>.py $OUTPUT $VGG_DIR $MATCHING_DIR $FEATURE_OUTPUT
# Generate data splits. Note that the sampling is seeded so as to be repeatable
# (as long as the number of samples doesn't change.)
./$SCRIPT_DIR/sample_pairs.py $UNSEEN_SAMPLE $UNSEEN_SAMPLE_TRAIN train -1 -1
./$SCRIPT_DIR/sample_pairs.py $UNSEEN_SAMPLE $UNSEEN_SAMPLE_VAL val -1 -1
./$SCRIPT_DIR/sample_pairs.py $UNSEEN_SAMPLE $UNSEEN_SAMPLE_TEST test -1 -1
./$SCRIPT_DIR/sample_pairs.py $UNSEEN_CATEGORY $<API key> train -1 -1
./$SCRIPT_DIR/sample_pairs.py $UNSEEN_CATEGORY $UNSEEN_CATEGORY_VAL val -1 -1
./$SCRIPT_DIR/sample_pairs.py $UNSEEN_CATEGORY $<API key> test -1 -1
# Unseen sample splits for different numbers of training diagrams
SPLITS=( 2 5 10 20 )
for i in ${SPLITS[@]}; do
DIR=$DATA_DIR/data_splits/unseen_sample_$i
mkdir -p $DIR
TRAIN=$DATA_DIR/data_splits/unseen_sample_$i/train.json
VAL=$DATA_DIR/data_splits/unseen_sample_$i/validation.json
TEST=$DATA_DIR/data_splits/unseen_sample_$i/test.json
python $SCRIPT_DIR/sample_pairs.py $UNSEEN_SAMPLE $TRAIN train 1 $i
python $SCRIPT_DIR/sample_pairs.py $UNSEEN_SAMPLE $VAL val -1 -1
python $SCRIPT_DIR/sample_pairs.py $UNSEEN_SAMPLE $TEST test -1 -1
done |
package by.nesterione.experiments.swing;
import java.awt.Canvas;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.beans.BeanInfo;
import java.beans.Beans;
import java.beans.EventSetDescriptor;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.beans.SimpleBeanInfo;
import java.io.Serializable;
import java.awt.*;
public class DemoBeans {
public static void main(String[] args) {
try {
Class<?> c = Colors.class;//Class.forName("Colors");
BeanInfo BeansInfo = Introspector.getBeanInfo(c);
System.out.println("Свойства:");
PropertyDescriptor propertyDescriptor[] =
BeansInfo.<API key>();
for(int i = 0; i< propertyDescriptor.length; i++) {
System.out.println(propertyDescriptor[i].getName());
}
System.out.println("События:");
EventSetDescriptor eventSetDescriptor[] = BeansInfo.<API key>();
for(int i =0; i< eventSetDescriptor.length;i++) {
System.out.println(eventSetDescriptor[i].getName());
}
} catch(Exception ex) {
System.out.println(ex);
}
}
}
class Colors extends Canvas implements Serializable {
transient private Color color;
private boolean rectangular;
public Colors() {
addMouseListener(new MouseAdapter() {
public void mousePressed(MouseEvent me) {
change();
}
});
rectangular = false;
setSize(200,100);
change();
}
public boolean getRectangular() {
return rectangular;
}
public void setRectangular(boolean flag) {
this.rectangular = flag;
repaint();
}
public void change() {
color = randomColor();
repaint();
}
private Color randomColor() {
int r = (int) (255*Math.random());
int g = (int) (255*Math.random());
int b = (int) (255*Math.random());
return new Color(r,g,b);
}
public void paint(Graphics g) {
Dimension d = getSize();
int h = d.height;
int w = d.width;
g.setColor(color);
if(rectangular) {
g.fillRect(0, 0, w-1, h-1);
}
else {
g.fillOval(0, 0, w-1, h-1);
}
}
}
class ColorsBeansInfo extends SimpleBeanInfo {
public PropertyDescriptor[] <API key>() {
try {
PropertyDescriptor rectangular = new
PropertyDescriptor("rectangular", Colors.class);
PropertyDescriptor pd[] = {rectangular};
return pd;
} catch ( Exception e) {
System.out.println("Ex");
}
return null;
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.