answer
stringlengths 15
1.25M
|
|---|
package de.choesel.blechwiki.model;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
import java.util.UUID;
@DatabaseTable(tableName = "komponist")
public class Komponist {
@DatabaseField(generatedId = true)
private UUID id;
@DatabaseField(canBeNull = true, uniqueCombo = true)
private String name;
@DatabaseField(canBeNull = true)
private String kurzname;
@DatabaseField(canBeNull = true, uniqueCombo = true)
private Integer geboren;
@DatabaseField(canBeNull = true)
private Integer gestorben;
public UUID getId() {
return id;
}
public String getName() {
return name;
}
public String getKurzname() {
return kurzname;
}
public Integer getGeboren() {
return geboren;
}
public Integer getGestorben() {
return gestorben;
}
public void setId(UUID id) {
this.id = id;
}
public void setName(String name) {
this.name = name;
}
public void setKurzname(String kurzname) {
this.kurzname = kurzname;
}
public void setGeboren(Integer geboren) {
this.geboren = geboren;
}
public void setGestorben(Integer gestorben) {
this.gestorben = gestorben;
}
}
|
package server
import (
"fmt"
"math/big"
"net/http"
"strconv"
"time"
"github.com/san-lab/banketh-quorum/banketh/bots"
"github.com/san-lab/banketh-quorum/banketh/cryptobank"
"github.com/san-lab/banketh-quorum/banketh/data"
"github.com/san-lab/banketh-quorum/lib/bank/banktypes"
"github.com/san-lab/banketh-quorum/lib/db"
"github.com/san-lab/banketh-quorum/lib/ethapi"
)
func HandleBackoffice(w http.ResponseWriter, req *http.Request) {
if !logged(w, req) {
reload(w, req, "/")
return
}
req.ParseForm()
whatToShowA, ok := req.Form["whattoshow"]
if !ok || whatToShowA[0] == "Cashins" {
HandleCashins(w, req)
return
} else if whatToShowA[0] == "Cashouts" {
HandleCashouts(w, req)
return
} else if whatToShowA[0] == "PaymentTerminations" {
<API key>(w, req)
return
}
showError(w, req, "Navigation error")
}
func HandleCashins(w http.ResponseWriter, req *http.Request) {
cashins, err := db.ReadTable(data.DBNAME, data.DBTABLECASHINS, &data.CashinT{}, "", "Time desc")
if err != nil {
showErrorf(w, req, "Unable to read cashin transactions table [%v]", err)
return
}
passdata := map[string]interface{}{
"Cashins": cashins,
"Currency": cryptobank.CURRENCY,
}
placeHeader(w, req)
templates.ExecuteTemplate(w, "cashins.html", passdata)
}
func HandleCashouts(w http.ResponseWriter, req *http.Request) {
cashouts, err := db.ReadTable(data.DBNAME, data.DBTABLECASHOUTS, &data.CashoutT{}, "", "Time desc")
if err != nil {
showErrorf(w, req, "Unable to read cashout transactions table [%v]", err)
return
}
passdata := map[string]interface{}{
"Cashouts": cashouts,
"Currency": cryptobank.CURRENCY,
}
placeHeader(w, req)
templates.ExecuteTemplate(w, "cashouts.html", passdata)
}
func <API key>(w http.ResponseWriter, req *http.Request) {
paymentTerminations, err := db.ReadTable(data.DBNAME, data.<API key>, &data.PaymentTerminationT{}, "", "Time desc")
if err != nil {
showErrorf(w, req, "Unable to read payment terminations table [%v]", err)
return
}
passdata := map[string]interface{}{
"PaymentTerminations": paymentTerminations,
"Currency": cryptobank.CURRENCY,
}
placeHeader(w, req)
templates.ExecuteTemplate(w, "paymentterminations.html", passdata)
}
func <API key>(w http.ResponseWriter, req *http.Request) {
if !logged(w, req) {
reload(w, req, "/")
return
}
req.ParseForm()
bankaccountA, ok := req.Form["bankaccount"]
if !ok {
showError(w, req, "Form error")
return
}
banktridA, ok := req.Form["banktrid"]
if !ok {
showError(w, req, "Form error")
return
}
amountA, ok := req.Form["amount"]
if !ok {
showError(w, req, "Form error")
return
}
amount, err := strconv.ParseFloat(amountA[0], 64)
if err != nil {
pushAlertf(w, req, ALERT_DANGER, "Wrong amount argument %v [%v]", amountA[0], err)
reload(w, req, "/backoffice")
return
}
messageA, ok := req.Form["message"]
if !ok {
showError(w, req, "Form error")
return
}
bankethaccountA, ok := req.Form["bankethaccount"]
if !ok {
showError(w, req, "Form error")
return
}
bankethaccount, err := strconv.ParseUint(bankethaccountA[0], 0, 64)
if err != nil {
pushAlertf(w, req, ALERT_DANGER, "Wrong banketh account %v [%v]", bankethaccountA[0], err)
reload(w, req, "/backoffice")
return
}
manyaccounts, err := cryptobank.Many_accounts(ethclient)
if int64(bankethaccount) >= manyaccounts {
pushAlertf(w, req, ALERT_DANGER, "Account %v does not exist in banketh", bankethaccountA[0])
reload(w, req, "/backoffice")
return
}
account, err := cryptobank.Read_account(ethclient, bankethaccount)
if err != nil {
showErrorf(w, req, "Error reading account %v from ethereum node [%v]", bankethaccount, err)
return
}
bankethamount, _ := big.NewFloat(0).Mul(big.NewFloat(amount), big.NewFloat(cryptobank.PRECISION)).Int(nil)
txHash, err := cryptobank.Add_funds(ethclient, int64(bankethaccount), bankethamount)
if err != nil {
pushAlertf(w, req, ALERT_DANGER, "Add_funds method call failed! [%v]", err)
reload(w, req, "/backoffice")
return
}
newT := data.CashinT{
BankTrID: banktridA[0],
Time: db.MyTime(time.Now()),
BankAccount: bankaccountA[0],
BankAmount: amount,
Message: messageA[0],
ToAddress: account.Owner,
ToAccount: int64(bankethaccount),
BankethAmount: big.NewInt(0).Set(bankethamount),
<API key>: txHash,
ReturnTrID: "",
ReturnMessage: "",
Status: data.<API key>,
}
err = db.WriteEntry(data.DBNAME, data.DBTABLECASHINS, newT)
if err != nil {
errMsg := fmt.Sprintf("Sent an addFunds call (hash %v) but could not write it to DB! [%v]", err)
pushAlert(w, req, ALERT_DANGER, errMsg)
db.RegisterEvent(data.DBNAME, data.DBTABLEEVENTS, db.<API key>,
errMsg+fmt.Sprintf(" - Need manual intervention, we should record the transaction in the DB; projected transaction was %v", newT))
reload(w, req, "/backoffice")
return
}
}
func <API key>(w http.ResponseWriter, req *http.Request) {
if !logged(w, req) {
reload(w, req, "/")
return
}
req.ParseForm()
banktridA, ok := req.Form["banktrid"]
if !ok {
showError(w, req, "Form error")
return
}
bankaccountA, ok := req.Form["bankaccount"]
if !ok {
showError(w, req, "Form error")
return
}
amountA, ok := req.Form["amount"]
if !ok {
showError(w, req, "Form error")
return
}
amount, err := strconv.ParseFloat(amountA[0], 64)
if err != nil {
pushAlertf(w, req, ALERT_DANGER, "Wrong amount argument %v [%v]", amountA[0], err)
reload(w, req, "/backoffice")
return
}
typeA, ok := req.Form["type"]
if !ok {
showError(w, req, "Form error")
return
}
messageA, ok := req.Form["message"]
if !ok {
showError(w, req, "Form error")
return
}
newTransfer := banktypes.BankTransferT{
TransferID: banktridA[0],
Time: db.MyTime(time.Now()),
Account: bankaccountA[0],
Amount: amount,
Type: typeA[0],
Message: messageA[0],
}
d, err := db.ConnectDB(data.DBNAME)
if err != nil {
pushAlertf(w, req, ALERT_DANGER, "Error connecting to the database [%v]", err)
reload(w, req, "/backoffice")
return
}
not_ok := bots.<API key>(d, &newTransfer)
if not_ok {
pushAlertf(w, req, ALERT_DANGER, "Error processing manual inbound transfer - pls check the console log")
reload(w, req, "/backoffice")
return
}
}
func <API key>(w http.ResponseWriter, req *http.Request) {
if !logged(w, req) {
reload(w, req, "/")
return
}
req.ParseForm()
var redeemFundsHash ethapi.Hash
var err error
redeemFundsHashA, ok := req.Form["redeemfundshash"]
if ok && redeemFundsHashA[0] != "" {
redeemFundsHash, err = ethapi.String_to_hash(redeemFundsHashA[0])
if err != nil {
pushAlertf(w, req, ALERT_DANGER, "Bad hash %v [%v]", redeemFundsHashA[0], err)
reload(w, req, "/backoffice")
return
}
}
bankethaccountA, ok := req.Form["bankethaccount"]
if !ok {
showError(w, req, "Form error")
return
}
bankethaccount, err := strconv.ParseUint(bankethaccountA[0], 0, 64)
if err != nil {
pushAlertf(w, req, ALERT_DANGER, "Wrong banketh account %v [%v]", bankethaccountA[0], err)
reload(w, req, "/backoffice")
return
}
manyaccounts, err := cryptobank.Many_accounts(ethclient)
if int64(bankethaccount) >= manyaccounts {
pushAlertf(w, req, ALERT_DANGER, "Account %v does not exist in banketh", bankethaccountA[0])
reload(w, req, "/backoffice")
return
}
account, err := cryptobank.Read_account(ethclient, bankethaccount)
if err != nil {
showErrorf(w, req, "Error reading account %v from ethereum node [%v]", bankethaccount, err)
return
}
amountA, ok := req.Form["amount"]
if !ok {
showError(w, req, "Form error")
return
}
amount, err := strconv.ParseFloat(amountA[0], 64)
if err != nil {
pushAlertf(w, req, ALERT_DANGER, "Wrong amount argument %v [%v]", amountA[0], err)
reload(w, req, "/backoffice")
return
}
bankethamount, _ := big.NewFloat(0).Mul(big.NewFloat(amount), big.NewFloat(cryptobank.PRECISION)).Int(nil)
redemptionModeA, ok := req.Form["redemptionmode"]
if !ok {
showError(w, req, "Form error")
return
}
redemptionMode, err := strconv.ParseUint(redemptionModeA[0], 0, 64)
if err != nil {
pushAlertf(w, req, ALERT_DANGER, "Wrong redemption mode %v [%v]", redemptionModeA[0], err)
reload(w, req, "/backoffice")
return
}
routingInfoA, given := req.Form["routinginfo"]
if given {
if len(routingInfoA[0]) > 32 {
pushAlertf(w, req, ALERT_DANGER, "Wrong routing info (%v)", routingInfoA[0])
reload(w, req, "/backoffice")
return
}
}
var errorCode int64
errorCodeA, given := req.Form["errorcode"]
if given {
errorCode, err = strconv.ParseInt(errorCodeA[0], 0, 64)
if err != nil {
pushAlertf(w, req, ALERT_DANGER, "Wrong redemption error code (%v)", errorCodeA[0])
reload(w, req, "/backoffice")
return
}
}
/*
redemptionCodeSent := big.NewInt(0)
redemptionCodeSentA, given := req.Form["redemptioncodesent"]
if given {
redemptionCodeSent, ok = redemptionCodeSent.SetString(redemptionCodeSentA[0], 0)
if !ok {
pushAlertf(w, req, ALERT_DANGER, "Wrong redemption code (%v)", redemptionCodeSentA[0])
reload(w, req, "/backoffice")
return
}
}
*/
bankaccountA, _ := req.Form["bankaccount"]
banktridA, _ := req.Form["banktrid"]
messageA, _ := req.Form["message"]
txHash, err := cryptobank.Remove_funds(ethclient, int64(bankethaccount), bankethamount, redeemFundsHash, errorCode)
/*
txHash, err := cryptobank.Remove_funds(ethclient, int64(bankethaccount), bankethamount, redemptionCodeSent)
*/
if err != nil {
pushAlertf(w, req, ALERT_DANGER, "Remove_funds method call failed! [%v]", err)
reload(w, req, "/backoffice")
return
}
newT := data.CashoutT{
RedeemFundsHash: redeemFundsHash,
Time: db.MyTime(time.Now()),
FromAccount: int64(bankethaccount),
FromAddress: account.Owner,
BankethAmount: big.NewInt(0).Set(bankethamount),
RedemptionMode: redemptionMode,
RoutingInfo: routingInfoA[0],
ErrorCode: errorCode,
RemoveFundsHash: txHash,
// MakeTransferHash: // Not neccessary, since this is a known cashout
BankAccount: bankaccountA[0],
BankAmount: amount,
BankTrID: banktridA[0],
Message: messageA[0],
Status: data.<API key>,
}
err = db.WriteEntry(data.DBNAME, data.DBTABLECASHOUTS, newT)
if err != nil {
errMsg := fmt.Sprintf("Sent an remove_funds call (hash %v) but could not write it to DB! [%v]", err)
pushAlert(w, req, ALERT_DANGER, errMsg)
db.RegisterEvent(data.DBNAME, data.DBTABLEEVENTS, db.<API key>,
errMsg+fmt.Sprintf(" - Need manual intervention, we should record the transaction in the DB; projected transaction was %v", newT))
reload(w, req, "/backoffice")
return
}
}
|
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>OpenNI 1.5.8: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="OpenNILogo.bmp"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">OpenNI 1.5.8
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacexn.html">xn</a></li><li class="navelem"><a class="el" href="<API key>.html">ImageGenerator</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">xn::ImageGenerator Member List</div> </div>
</div><!--header
<div class="contents">
<p>This is the complete list of members for <a class="el" href="<API key>.html">xn::ImageGenerator</a>, including all inherited members.</p>
<table class="directory">
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">AddNeededNode</a>(ProductionNode &needed)</td><td class="entry"><a class="el" href="<API key>.html">xn::ProductionNode</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">AddRef</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::NodeWrapper</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">Create</a>(Context &context, Query *pQuery=NULL, EnumerationErrors *pErrors=NULL)</td><td class="entry"><a class="el" href="<API key>.html">xn::ImageGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">Generator</a>(XnNodeHandle hNode=NULL)</td><td class="entry"><a class="el" href="<API key>.html">xn::Generator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">Generator</a>(const NodeWrapper &other)</td><td class="entry"><a class="el" href="<API key>.html">xn::Generator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a>() const </td><td class="entry"><a class="el" href="<API key>.html">xn::Generator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::Generator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">GetAntiFlickerCap</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">GetAutoExposureCap</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">GetBrightnessCap</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">GetBytesPerPixel</a>() const </td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">GetContext</a>(Context &context) const </td><td class="entry"><a class="el" href="<API key>.html">xn::ProductionNode</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">GetContext</a>() const </td><td class="entry"><a class="el" href="<API key>.html">xn::ProductionNode</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">GetContrastCap</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">GetCroppingCap</a>() const </td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">GetCroppingCap</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">GetData</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::Generator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">GetDataSize</a>() const </td><td class="entry"><a class="el" href="<API key>.html">xn::Generator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">GetErrorStateCap</a>() const </td><td class="entry"><a class="el" href="<API key>.html">xn::ProductionNode</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">GetErrorStateCap</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::ProductionNode</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">GetExposureCap</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">GetFocusCap</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">GetFrameID</a>() const </td><td class="entry"><a class="el" href="<API key>.html">xn::Generator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">GetFrameSyncCap</a>() const </td><td class="entry"><a class="el" href="<API key>.html">xn::Generator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">GetFrameSyncCap</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::Generator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">GetGainCap</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">GetGammaCap</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">GetGeneralIntCap</a>(const XnChar *strCapability)</td><td class="entry"><a class="el" href="<API key>.html">xn::ProductionNode</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">GetGeneralProperty</a>(const XnChar *strName, XnUInt32 nBufferSize, void *pBuffer) const </td><td class="entry"><a class="el" href="<API key>.html">xn::ProductionNode</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a>() const </td><td class="entry"><a class="el" href="<API key>.html">xn::ImageGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a>() const </td><td class="entry"><a class="el" href="<API key>.html">xn::ImageGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">GetHandle</a>() const </td><td class="entry"><a class="el" href="<API key>.html">xn::NodeWrapper</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">GetHueCap</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">GetImageMap</a>() const </td><td class="entry"><a class="el" href="<API key>.html">xn::ImageGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">GetInfo</a>() const </td><td class="entry"><a class="el" href="<API key>.html">xn::ProductionNode</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">GetIntProperty</a>(const XnChar *strName, XnUInt64 &nValue) const </td><td class="entry"><a class="el" href="<API key>.html">xn::ProductionNode</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">GetIrisCap</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">GetMapOutputMode</a>(XnMapOutputMode &OutputMode) const </td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">GetMetaData</a>(ImageMetaData &metaData) const </td><td class="entry"><a class="el" href="<API key>.html">xn::ImageGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">GetMirrorCap</a>() const </td><td class="entry"><a class="el" href="<API key>.html">xn::Generator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">GetMirrorCap</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::Generator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">GetName</a>() const </td><td class="entry"><a class="el" href="<API key>.html">xn::NodeWrapper</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">GetPanCap</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">GetPixelFormat</a>() const </td><td class="entry"><a class="el" href="<API key>.html">xn::ImageGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">GetRealProperty</a>(const XnChar *strName, XnDouble &dValue) const </td><td class="entry"><a class="el" href="<API key>.html">xn::ProductionNode</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">GetRGB24ImageMap</a>() const </td><td class="entry"><a class="el" href="<API key>.html">xn::ImageGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">GetRollCap</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">GetSaturationCap</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">GetSharpnessCap</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">GetStringProperty</a>(const XnChar *strName, XnChar *csValue, XnUInt32 nBufSize) const </td><td class="entry"><a class="el" href="<API key>.html">xn::ProductionNode</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a>(XnMapOutputMode *aModes, XnUInt32 &nCount) const </td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a>() const </td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">GetTiltCap</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">GetTimestamp</a>() const </td><td class="entry"><a class="el" href="<API key>.html">xn::Generator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">GetWhiteBalanceCap</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">GetYUV422ImageMap</a>() const </td><td class="entry"><a class="el" href="<API key>.html">xn::ImageGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">GetZoomCap</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">ImageGenerator</a>(XnNodeHandle hNode=NULL)</td><td class="entry"><a class="el" href="<API key>.html">xn::ImageGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">ImageGenerator</a>(const NodeWrapper &other)</td><td class="entry"><a class="el" href="<API key>.html">xn::ImageGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a>(const XnChar *strCapabilityName) const </td><td class="entry"><a class="el" href="<API key>.html">xn::ProductionNode</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">IsDataNew</a>() const </td><td class="entry"><a class="el" href="<API key>.html">xn::Generator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">IsGenerating</a>() const </td><td class="entry"><a class="el" href="<API key>.html">xn::Generator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">IsNewDataAvailable</a>(XnUInt64 *pnTimestamp=NULL) const </td><td class="entry"><a class="el" href="<API key>.html">xn::Generator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a>(XnPixelFormat Format) const </td><td class="entry"><a class="el" href="<API key>.html">xn::ImageGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">IsValid</a>() const </td><td class="entry"><a class="el" href="<API key>.html">xn::NodeWrapper</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a>(XnLockHandle hLock)</td><td class="entry"><a class="el" href="<API key>.html">xn::ProductionNode</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a>(XnLockHandle hLock)</td><td class="entry"><a class="el" href="<API key>.html">xn::ProductionNode</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">LockForChanges</a>(XnLockHandle *phLock)</td><td class="entry"><a class="el" href="<API key>.html">xn::ProductionNode</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">MapGenerator</a>(XnNodeHandle hNode=NULL)</td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">MapGenerator</a>(const NodeWrapper &other)</td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">NodeWrapper</a>(XnNodeHandle hNode)</td><td class="entry"><a class="el" href="<API key>.html">xn::NodeWrapper</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">NodeWrapper</a>(const NodeWrapper &other)</td><td class="entry"><a class="el" href="<API key>.html">xn::NodeWrapper</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">operator XnNodeHandle</a>() const </td><td class="entry"><a class="el" href="<API key>.html">xn::NodeWrapper</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">operator!=</a>(const NodeWrapper &other)</td><td class="entry"><a class="el" href="<API key>.html">xn::NodeWrapper</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">operator=</a>(const NodeWrapper &other)</td><td class="entry"><a class="el" href="<API key>.html">xn::NodeWrapper</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">operator==</a>(const NodeWrapper &other)</td><td class="entry"><a class="el" href="<API key>.html">xn::NodeWrapper</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">ProductionNode</a>(XnNodeHandle hNode=NULL)</td><td class="entry"><a class="el" href="<API key>.html">xn::ProductionNode</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">ProductionNode</a>(const NodeWrapper &other)</td><td class="entry"><a class="el" href="<API key>.html">xn::ProductionNode</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a>(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)</td><td class="entry"><a class="el" href="<API key>.html">xn::Generator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a>(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)</td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a>(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)</td><td class="entry"><a class="el" href="<API key>.html">xn::Generator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a>(StateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)</td><td class="entry"><a class="el" href="<API key>.html">xn::ImageGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">Release</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::NodeWrapper</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">RemoveNeededNode</a>(ProductionNode &needed)</td><td class="entry"><a class="el" href="<API key>.html">xn::ProductionNode</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">SetGeneralProperty</a>(const XnChar *strName, XnUInt32 nBufferSize, const void *pBuffer)</td><td class="entry"><a class="el" href="<API key>.html">xn::ProductionNode</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">SetHandle</a>(XnNodeHandle hNode)</td><td class="entry"><a class="el" href="<API key>.html">xn::NodeWrapper</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">SetIntProperty</a>(const XnChar *strName, XnUInt64 nValue)</td><td class="entry"><a class="el" href="<API key>.html">xn::ProductionNode</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">SetMapOutputMode</a>(const XnMapOutputMode &OutputMode)</td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">SetPixelFormat</a>(XnPixelFormat Format)</td><td class="entry"><a class="el" href="<API key>.html">xn::ImageGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">SetRealProperty</a>(const XnChar *strName, XnDouble dValue)</td><td class="entry"><a class="el" href="<API key>.html">xn::ProductionNode</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">SetStringProperty</a>(const XnChar *strName, const XnChar *strValue)</td><td class="entry"><a class="el" href="<API key>.html">xn::ProductionNode</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">StartGenerating</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::Generator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">StopGenerating</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::Generator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">TakeOwnership</a>(XnNodeHandle hNode)</td><td class="entry"><a class="el" href="<API key>.html">xn::NodeWrapper</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">UnlockForChanges</a>(XnLockHandle hLock)</td><td class="entry"><a class="el" href="<API key>.html">xn::ProductionNode</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a>(XnCallbackHandle hCallback)</td><td class="entry"><a class="el" href="<API key>.html">xn::Generator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a>(XnCallbackHandle hCallback)</td><td class="entry"><a class="el" href="<API key>.html">xn::MapGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a>(XnCallbackHandle hCallback)</td><td class="entry"><a class="el" href="<API key>.html">xn::Generator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a>(XnCallbackHandle hCallback)</td><td class="entry"><a class="el" href="<API key>.html">xn::ImageGenerator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">WaitAndUpdateData</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::Generator</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">~NodeWrapper</a>()</td><td class="entry"><a class="el" href="<API key>.html">xn::NodeWrapper</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Jun 11 2015 12:31:40 for OpenNI 1.5.8 by &
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
|
#include "chrome/browser/first_run/first_run.h"
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "base/process_util.h"
#include "base/string_util.h"
#include "base/strings/string_piece.h"
#include "base/<API key>.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/first_run/first_run_internal.h"
#include "chrome/browser/importer/importer_host.h"
#include "chrome/browser/process_singleton.h"
#include "chrome/browser/shell_integration.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/installer/util/<API key>.h"
#include "chrome/installer/util/master_preferences.h"
#include "content/public/common/result_codes.h"
#include "googleurl/src/gurl.h"
#include "ui/base/ui_base_switches.h"
namespace first_run {
namespace internal {
bool IsOrganicFirstRun() {
// We treat all installs as organic.
return true;
}
// TODO(port): This is just a piece of the silent import functionality from
// ImportSettings for Windows. It would be nice to get the rest of it ported.
bool ImportBookmarks(const base::FilePath& <API key>) {
const CommandLine& cmdline = *CommandLine::ForCurrentProcess();
CommandLine import_cmd(cmdline.GetProgram());
// Propagate user data directory switch.
if (cmdline.HasSwitch(switches::kUserDataDir)) {
import_cmd.AppendSwitchPath(switches::kUserDataDir,
cmdline.GetSwitchValuePath(switches::kUserDataDir));
}
// Since ImportSettings is called before the local state is stored on disk
// we pass the language as an argument. <API key> checks the
// current command line as fallback.
import_cmd.AppendSwitchASCII(switches::kLang,
g_browser_process-><API key>());
import_cmd.CommandLine::AppendSwitchPath(switches::kImportFromFile,
<API key>);
// The importer doesn't need to do any background networking tasks so disable
// them.
import_cmd.CommandLine::AppendSwitch(switches::<API key>);
// Time to launch the process that is going to do the import. We'll wait
// for the process to return.
base::LaunchOptions options;
options.wait = true;
return base::LaunchProcess(import_cmd, options, NULL);
}
base::FilePath MasterPrefsPath() {
// The standard location of the master prefs is next to the chrome binary.
base::FilePath master_prefs;
if (!PathService::Get(base::DIR_EXE, &master_prefs))
return base::FilePath();
return master_prefs.AppendASCII(installer::kDefaultMasterPrefs);
}
} // namespace internal
} // namespace first_run
|
package request
import (
"bytes"
"encoding/json"
"io/ioutil"
)
// A Handlers provides a collection of handlers for various stages of handling requests.
type Handlers struct {
RequestHandler func(*Request, *interface{}) error
ResponseHandler func(*Request, *interface{}) error
}
// RequestHandler encodes a structure into a JSON string
func RequestHandler(request *Request, input *interface{}) error {
jsonstr, err := json.Marshal(&input)
request.HTTPRequest.Body = ioutil.NopCloser(bytes.NewBuffer(jsonstr))
return err
}
// ResponseHandler decodes a JSON string into a structure.
func ResponseHandler(request *Request, output *interface{}) error {
return json.Unmarshal(request.Body, &output)
}
// ListResponseHandler extracts results from a JSON envelope and decodes them into a structure.
// https://docs.atlas.mongodb.com/api/#lists
func ListResponseHandler(request *Request, output *interface{}) error {
var objmap map[string]*json.RawMessage
err := json.Unmarshal(request.Body, &objmap)
if err != nil {
return err
}
return json.Unmarshal(*objmap["results"], &output)
}
|
package org.judal.examples.java.model.array;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.GregorianCalendar;
import javax.jdo.JDOException;
import org.judal.storage.DataSource;
import org.judal.storage.EngineFactory;
import org.judal.storage.java.ArrayRecord;
import org.judal.storage.relational.<API key>;
/**
* Extend ArrayRecord in order to create model classes manageable by JUDAL.
* Add your getters and setters for database fields.
*/
public class Student extends ArrayRecord {
private static final long serialVersionUID = 1L;
public static final String TABLE_NAME = "student";
public Student() throws JDOException {
this(EngineFactory.<API key>());
}
public Student(<API key> dataSource) throws JDOException {
super(dataSource, TABLE_NAME);
}
@Override
public void store(DataSource dts) throws JDOException {
// Generate the student Id. from a sequence if it is not provided
if (isNull("id_student"))
setId ((int) dts.getSequence("seq_student").nextValue());
super.store(dts);
}
public int getId() {
return getInt("id_student");
}
public void setId(final int id) {
put("id_student", id);
}
public String getFirstName() {
return getString("first_name");
}
public void setFirstName(final String firstName) {
put("first_name", firstName);
}
public String getLastName() {
return getString("last_name");
}
public void setLastName(final String lastName) {
put("last_name", lastName);
}
public Calendar getDateOfBirth() {
return getCalendar("date_of_birth");
}
public void setDateOfBirth(final Calendar dob) {
put("date_of_birth", dob);
}
public void setDateOfBirth(final String yyyyMMdd) throws ParseException {
SimpleDateFormat dobFormat = new SimpleDateFormat("yyyy-MM-dd");
Calendar cal = new GregorianCalendar();
cal.setTime(dobFormat.parse(yyyyMMdd));
setDateOfBirth(cal);
}
public byte[] getPhoto() {
return getBytes("photo");
}
public void setPhoto(final byte[] photoData) {
put("photo", photoData);
}
}
|
using IntelliTect.Coalesce.CodeGeneration.Generation;
using IntelliTect.Coalesce.Tests.Util;
using IntelliTect.Coalesce.Validation;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Text;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace IntelliTect.Coalesce.CodeGeneration.Tests
{
public class CodeGenTestBase
{
protected GenerationExecutor BuildExecutor()
{
return new GenerationExecutor(
new Configuration.<API key>
{
WebProject = new Configuration.<API key>
{
RootNamespace = "MyProject"
}
},
Microsoft.Extensions.Logging.LogLevel.Information
);
}
protected async Task <API key>(IRootGenerator suite)
{
var project = new DirectoryInfo(Directory.GetCurrentDirectory())
.<API key>("IntelliTect.Coalesce.CodeGeneration.Tests.csproj")
.Directory;
var suiteName = suite.GetType().Name;
suite = suite
.WithOutputPath(Path.Combine(project.FullName, "out", suiteName));
var validationResult = ValidateContext.Validate(suite.Model);
Assert.Empty(validationResult.Where(r => r.IsError));
await suite.GenerateAsync();
var generators = suite
.<API key>()
.OfType<IFileGenerator>()
.Where(g => g.EffectiveOutputPath.EndsWith(".cs"))
.ToList();
var tasks = generators.Select(gen => (Generator: gen, Output: gen.GetOutputAsync()));
await Task.WhenAll(tasks.Select(t => t.Output ));
var dtoFiles = tasks
.Select((task) => CSharpSyntaxTree.ParseText(
SourceText.From(new StreamReader(task.Output.Result).ReadToEnd()),
path: task.Generator.EffectiveOutputPath
))
.ToArray();
var comp = <API key>.GetCompilation(dtoFiles);
AssertSuccess(comp);
}
protected void AssertSuccess(CSharpCompilation comp)
{
var errors = comp
.GetDiagnostics()
.Where(d => d.Severity >= Microsoft.CodeAnalysis.DiagnosticSeverity.Error);
Assert.All(errors, error =>
{
var loc = error.Location;
Assert.False(true, "\"" + error.ToString() +
$"\" near:```\n" +
loc.SourceTree.ToString().Substring(loc.SourceSpan.Start, loc.SourceSpan.Length) +
"\n```"
);
});
}
}
}
|
using System.ComponentModel;
using AcceptFramework.Domain.Evaluation;
namespace AcceptFramework.Repository.Evaluation
{
[DataObject]
public class <API key> : RepositoryBase<<API key>>
{
}
}
|
import sys
sys.path.append("helper")
import web
from helper import session
web.config.debug = False
urls = (
"/", "controller.start.index",
"/1", "controller.start.one",
"/2", "controller.start.two",
)
app = web.application(urls, globals())
sessions = session.Sessions()
if __name__ == "__main__":
app.run()
|
<!DOCTYPE html>
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="SHORTCUT ICON" href="../../../../../img/clover.ico" />
<link rel="stylesheet" href="../../../../../aui/css/aui.min.css" media="all"/>
<link rel="stylesheet" href="../../../../../aui/css/aui-experimental.min.css" media="all"/>
<!--[if IE 9]><link rel="stylesheet" href="../../../../../aui/css/aui-ie9.min.css" media="all"/><![endif]-->
<style type="text/css" media="all">
@import url('../../../../../style.css');
@import url('../../../../../tree.css');
</style>
<script src="../../../../../jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="../../../../../aui/js/aui.min.js" type="text/javascript"></script>
<script src="../../../../../aui/js/aui-experimental.min.js" type="text/javascript"></script>
<script src="../../../../../aui/js/aui-soy.min.js" type="text/javascript"></script>
<script src="../../../../../package-nodes-tree.js" type="text/javascript"></script>
<script src="../../../../../clover-tree.js" type="text/javascript"></script>
<script src="../../../../../clover.js" type="text/javascript"></script>
<script src="../../../../../clover-descriptions.js" type="text/javascript"></script>
<script src="../../../../../cloud.js" type="text/javascript"></script>
<title>ABA Route Transit Number Validator 1.0.1-SNAPSHOT</title>
</head>
<body>
<div id="page">
<header id="header" role="banner">
<nav class="aui-header <API key>" role="navigation">
<div class="aui-header-inner">
<div class="aui-header-primary">
<h1 id="logo" class="aui-header-logo <API key>">
<a href="http://openclover.org" title="Visit OpenClover home page"><span class="<API key>">OpenClover</span></a>
</h1>
</div>
<div class="<API key>">
<ul class="aui-nav">
<li id="system-help-menu">
<a class="aui-nav-link" title="Open online documentation" target="_blank"
href="http://openclover.org/documentation">
<span class="aui-icon aui-icon-small aui-iconfont-help"> Help</span>
</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<div class="aui-page-panel">
<div class="<API key>">
<div class="aui-page-panel-nav <API key>">
<div class="<API key>" style="margin-bottom: 20px;">
<div class="<API key>">
<a href="http://cardatechnologies.com" target="_top">
<div class="aui-avatar aui-avatar-large aui-avatar-project">
<div class="aui-avatar-inner">
<img src="../../../../../img/clover_logo_large.png" alt="Clover icon"/>
</div>
</div>
</a>
</div>
<div class="<API key>" >
<h1>
<a href="http://cardatechnologies.com" target="_top">
ABA Route Transit Number Validator 1.0.1-SNAPSHOT
</a>
</h1>
</div>
</div>
<nav class="aui-navgroup <API key>">
<div class="aui-navgroup-inner">
<ul class="aui-nav">
<li class="">
<a href="../../../../../dashboard.html">Project overview</a>
</li>
</ul>
<div class="aui-nav-heading <API key>">
<strong>Packages</strong>
</div>
<div class="aui-nav project-packages">
<form method="get" action="#" class="aui <API key>">
<input type="text" autocomplete="off" class="package-filter text"
placeholder="Type to filter packages..." name="package-filter" id="package-filter"
title="Start typing package name (or part of the name) to search through the tree. Use arrow keys and the Enter key to navigate."/>
</form>
<p class="<API key> hidden">
<small>No results found.</small>
</p>
<div class="<API key>" data-root-relative="../../../../../" data-package-name="com.cardatechnologies.utils.validators.abaroutevalidator">
<div class="<API key>"></div>
<div class="<API key>"></div>
</div>
</div>
</div>
</nav> </div>
<section class="<API key>">
<div class="<API key>">
<div class="<API key>"><ol class="aui-nav aui-nav-breadcrumbs">
<li><a href="../../../../../dashboard.html"> Project Clover database Sat Aug 7 2021 12:29:33 MDT</a></li>
<li><a href="test-pkg-summary.html">Package com.cardatechnologies.utils.validators.abaroutevalidator</a></li>
<li><a href="<API key>.html">Class <API key></a></li>
</ol></div>
<h1 class="aui-h2-clover">
Test <API key>
</h1>
<table class="aui">
<thead>
<tr>
<th>Test</th>
<th><label title="The test result. Either a Pass, Fail or Error.">Status</label></th>
<th><label title="When the test execution was started">Start time</label></th>
<th><label title="The total time in seconds taken to run this test.">Time (seconds)</label></th>
<th><label title="A failure or error message if the test is not successful.">Message</label></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="../../../../../com/cardatechnologies/utils/validators/abaroutevalidator/<API key>.html?line=15785#src-15785" ><API key></a>
</td>
<td>
<span class="sortValue">1</span><span class="aui-lozenge aui-lozenge-success">PASS</span>
</td>
<td>
7 Aug 12:39:52
</td>
<td>
0.0 </td>
<td>
<div></div>
<div class="errorMessage"></div>
</td>
</tr>
</tbody>
</table>
<div> </div>
<table class="aui aui-table-sortable">
<thead>
<tr>
<th style="white-space:nowrap;"><label title="A class that was directly hit by this test.">Target Class</label></th>
<th colspan="4"><label title="The percentage of coverage contributed by each single test.">Coverage contributed by</label> <API key></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span class="sortValue">com.cardatechnologies.utils.validators.abaroutevalidator.AbaRouteValidator</span>
  <a href="../../../../../com/cardatechnologies/utils/validators/abaroutevalidator/AbaRouteValidator.html?id=5501#AbaRouteValidator" title="AbaRouteValidator" name="sl-47">com.cardatechnologies.utils.validators.abaroutevalidator.AbaRouteValidator</a>
</td>
<td>
<span class="sortValue">0.7352941</span>73.5%
</td>
<td class="align-middle" style="width: 100%" colspan="3">
<div>
<div title="73.5% Covered" style="min-width:40px;" class="barNegative contribBarNegative contribBarNegative"><div class="barPositive contribBarPositive contribBarPositive" style="width:73.5%"></div></div></div> </td>
</tr>
</tbody>
</table>
</div> <!-- class="<API key>" -->
<footer id="footer" role="contentinfo">
<section class="footer-body">
<ul>
<li>
Report generated by <a target="_new" href="http://openclover.org">OpenClover</a> v 4.4.1
on Sat Aug 7 2021 12:49:26 MDT using coverage data from Sat Aug 7 2021 12:47:23 MDT.
</li>
</ul>
<ul>
<li>OpenClover is free and open-source software. </li>
</ul>
</section>
</footer> </section> <!-- class="<API key>" -->
</div> <!-- class="<API key>" -->
</div> <!-- class="aui-page-panel" -->
</div> <!-- id="page" -->
</body>
</html>
|
package org.spincast.core.routing;
import java.util.List;
import org.spincast.core.exchange.RequestContext;
/**
* The result of the router, when asked to find matches for
* a request.
*/
public interface RoutingResult<R extends RequestContext<?>> {
/**
* The handlers matching the route (a main handler + filters, if any),
* in order they have to be called.
*/
public List<RouteHandlerMatch<R>> <API key>();
/**
* The main route handler and its information, from the routing result.
*/
public RouteHandlerMatch<R> <API key>();
}
|
package king.flow.common;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import java.io.File;
import java.nio.charset.Charset;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import king.flow.action.business.ShowClockAction;
import king.flow.data.TLSResult;
import king.flow.view.Action;
import king.flow.view.Action.CleanAction;
import king.flow.view.Action.EjectCardAction;
import king.flow.view.Action.WithdrawCardAction;
import king.flow.view.Action.<API key>;
import king.flow.view.Action.HideAction;
import king.flow.view.Action.InsertICardAction;
import king.flow.view.Action.LimitInputAction;
import king.flow.view.Action.MoveCursorAction;
import king.flow.view.Action.NumericPadAction;
import king.flow.view.Action.OpenBrowserAction;
import king.flow.view.Action.PlayMediaAction;
import king.flow.view.Action.PlayVideoAction;
import king.flow.view.Action.PrintPassbookAction;
import king.flow.view.Action.RunCommandAction;
import king.flow.view.Action.RwFingerPrintAction;
import king.flow.view.Action.SetFontAction;
import king.flow.view.Action.SetPrinterAction;
import king.flow.view.Action.ShowComboBoxAction;
import king.flow.view.Action.ShowGridAction;
import king.flow.view.Action.ShowTableAction;
import king.flow.view.Action.Swipe2In1CardAction;
import king.flow.view.Action.SwipeCardAction;
import king.flow.view.Action.UploadFileAction;
import king.flow.view.Action.UseTipAction;
import king.flow.view.Action.<API key>;
import king.flow.view.Action.WriteICardAction;
import king.flow.view.ComponentEnum;
import king.flow.view.DefinedAction;
import king.flow.view.DeviceEnum;
import king.flow.view.JumpAction;
import king.flow.view.MsgSendAction;
/**
*
* @author LiuJin
*/
public class CommonConstants {
public static final String APP_STARTUP_ENTRY = "bank.exe";
public static final Charset UTF8 = Charset.forName("UTF-8");
static final File[] SYS_ROOTS = File.listRoots();
public static final int DRIVER_COUNT = SYS_ROOTS.length;
public static final String XML_NODE_PREFIX = "N_";
public static final String REVERT = "re_";
public static final String BID = "bid";
public static final String UID_PREFIX = "<" + TLSResult.UID + ">";
public static final String UID_AFFIX = "</" + TLSResult.UID + ">";
public static final String <API key> = "yyyy-MM-dd";
public static final String VALID_BANK_CARD = "validBankCard";
public static final String BALANCED_PAY_MAC = "balancedPayMAC";
public static final String <API key> = "[CANCEL]";
public static final String <API key> = "[QUIT]";
public static final String <API key> = "encryption.keyboard.type.length.prompt";
public static final String <API key> = "encryption.keyboard.type.timeout.prompt";
public static final String <API key> = "encryption.keyboard.type.fail.prompt";
public static final int CONTAINER_KEY = Integer.MAX_VALUE;
public static final int NORMAL = 0;
public static final int ABNORMAL = 1;
public static final int BALANCE = 12345;
public static final int RESTART_SIGNAL = 1;
public static final int DOWNLOAD_KEY_SIGNAL = 1;
public static final int UPDATE_SIGNAL = 1;
public static final int <API key> = 5;
public static final String VERSION;
public static final long <API key> = TimeUnit.SECONDS.toMillis(3);
public static final long <API key> = TimeUnit.SECONDS.toMillis(1);
// public static final String VERSION = Paths.get(".").toAbsolutePath().normalize().toString();
static {
String workingPath = System.getProperty("user.dir");
final int lastIndexOf = workingPath.lastIndexOf('_');
if (lastIndexOf != -1 && lastIndexOf < workingPath.length() - 1) {
VERSION = workingPath.substring(lastIndexOf + 1);
} else {
VERSION = "Unknown";
}
}
/* JMX configuration */
private static String getJmxRmiUrl(int port) {
return "service:jmx:rmi:///jndi/rmi://localhost:" + port + "/jmxrmi";
}
public static final int APP_JMX_RMI_PORT = 9998;
public static final String APP_JMX_RMI_URL = getJmxRmiUrl(APP_JMX_RMI_PORT);
public static final int <API key> = 9999;
public static final String <API key> = getJmxRmiUrl(<API key>);
/* system variable pattern */
public static final String SYSTEM_VAR_PATTERN = "\\$\\{(_?\\p{Alpha}+_\\p{Alpha}+)+\\}";
public static final String <API key> = ".*" + SYSTEM_VAR_PATTERN + ".*";
public static final String TERMINAL_ID_SYS_VAR = "TERMINAL_ID";
/* swing default config */
public static final int <API key> = 15;
public static final int TABLE_ROW_HEIGHT = 25;
public static final int <API key> = 20;
/* packet header ID */
public static final int GENERAL_MSG_CODE = 0; //common message
public static final int REGISTRY_MSG_CODE = 1; //terminal registration message
public static final int <API key> = 2; //download secret key message
public static final int MANAGER_MSG_CODE = 100; //management message
/*<API key> refers to <API key>, <API key>, <API key> */
public static final int <API key> = 64; //how many read actions in one message conversation
public static final int <API key> = 1024; //1024 bytes
public static final int <API key> = 32 * 1024; //32k bytes
public static final int <API key> = 64 * 1024; //64k bytes
/* keyboard cipher key */
public static final String WORK_SECRET_KEY = "workSecretKey";
public static final String MA_KEY = "maKey";
public static final String MASTER_KEY = "masterKey";
/* packet result flag */
public static final int SUCCESSFUL_MSG_CODE = 0;
/* xml jaxb context */
public static final String <API key> = "king.flow.net";
public static final String TLS_PACKAGE_CONTEXT = "king.flow.data";
public static final String <API key> = "king.flow.view";
public static final String <API key> = "king.flow.background";
public static final String KING_FLOW_PROGRESS = "king.flow.progress";
public static final String <API key> = "chinese.text.type.config";
public static final String <API key> = "([^,/]*/[^,/]*,)*+([^,/]*/[^,/]*){1}+";
public static final String <API key> = "total";
public static final String <API key> = "value";
public static final String <API key> = "current";
/* card-reading state */
public static final int INVALID_CARD_STATE = -1;
public static final int MAGNET_CARD_STATE = 2;
public static final int IC_CARD_STATE = 3;
/* union-pay transaction type */
public static final String <API key> = "1";
public static final String <API key> = "3";
public static final String <API key> = "4";
/* card affiliation type */
public static final String <API key> = "1";
public static final String <API key> = "2";
/* supported driver types */
static final ImmutableSet<DeviceEnum> SUPPORTED_DEVICES = new ImmutableSet.Builder<DeviceEnum>()
.add(DeviceEnum.IC_CARD)
.add(DeviceEnum.CASH_SAVER)
.add(DeviceEnum.GZ_CARD)
.add(DeviceEnum.HIS_CARD)
.add(DeviceEnum.KEYBOARD)
.add(DeviceEnum.MAGNET_CARD)
.add(DeviceEnum.MEDICARE_CARD)
.add(DeviceEnum.PATIENT_CARD)
.add(DeviceEnum.PID_CARD)
.add(DeviceEnum.PKG_8583)
.add(DeviceEnum.PRINTER)
.add(DeviceEnum.SENSOR_CARD)
.add(DeviceEnum.TWO_IN_ONE_CARD)
.build();
/* action-component relationship map */
public static final String JUMP_ACTION = JumpAction.class.getSimpleName();
public static final String SET_FONT_ACTION = SetFontAction.class.getSimpleName();
public static final String CLEAN_ACTION = CleanAction.class.getSimpleName();
public static final String HIDE_ACTION = HideAction.class.getSimpleName();
public static final String USE_TIP_ACTION = UseTipAction.class.getSimpleName();
public static final String PLAY_MEDIA_ACTION = PlayMediaAction.class.getSimpleName();
public static final String SEND_MSG_ACTION = MsgSendAction.class.getSimpleName();
public static final String MOVE_CURSOR_ACTION = MoveCursorAction.class.getSimpleName();
public static final String LIMIT_INPUT_ACTION = LimitInputAction.class.getSimpleName();
public static final String <API key> = ShowComboBoxAction.class.getSimpleName();
public static final String SHOW_TABLE_ACTION = ShowTableAction.class.getSimpleName();
public static final String SHOW_CLOCK_ACTION = ShowClockAction.class.getSimpleName();
public static final String OPEN_BROWSER_ACTION = OpenBrowserAction.class.getSimpleName();
public static final String RUN_COMMAND_ACTION = RunCommandAction.class.getSimpleName();
public static final String <API key> = <API key>.class.getSimpleName();
public static final String <API key> = SetPrinterAction.class.getSimpleName();
public static final String INSERT_IC_ACTION = InsertICardAction.class.getSimpleName();
public static final String WRITE_IC_ACTION = WriteICardAction.class.getSimpleName();
public static final String <API key> = "BalanceTransAction";
public static final String <API key> = PrintPassbookAction.class.getSimpleName();
public static final String UPLOAD_FILE_ACTION = UploadFileAction.class.getSimpleName();
public static final String SWIPE_CARD_ACTION = SwipeCardAction.class.getSimpleName();
public static final String <API key> = Swipe2In1CardAction.class.getSimpleName();
public static final String EJECT_CARD_ACTION = EjectCardAction.class.getSimpleName();
public static final String <API key> = WithdrawCardAction.class.getSimpleName();
public static final String <API key> = RwFingerPrintAction.class.getSimpleName();
public static final String PLAY_VIDEO_ACTION = PlayVideoAction.class.getSimpleName();
public static final String CUSTOMIZED_ACTION = DefinedAction.class.getSimpleName();
public static final String <API key> = <API key>.class.getSimpleName();
public static final String SHOW_GRID_ACTION = ShowGridAction.class.getSimpleName();
public static final String <API key> = NumericPadAction.class.getSimpleName();
public static final String WEB_LOAD_ACTION = Action.WebLoadAction.class.getSimpleName();
static final Map<ComponentEnum, List<String>> <API key> = new ImmutableMap.Builder<ComponentEnum, List<String>>()
.put(ComponentEnum.BUTTON, new ImmutableList.Builder<String>()
.add(CUSTOMIZED_ACTION)
.add(JUMP_ACTION)
.add(SET_FONT_ACTION)
.add(CLEAN_ACTION)
.add(HIDE_ACTION)
.add(USE_TIP_ACTION)
.add(PLAY_MEDIA_ACTION)
.add(OPEN_BROWSER_ACTION)
.add(RUN_COMMAND_ACTION)
.add(<API key>)
.add(<API key>)
.add(SEND_MSG_ACTION)
.add(INSERT_IC_ACTION)
.add(WRITE_IC_ACTION)
.add(MOVE_CURSOR_ACTION)
.add(<API key>)
.add(UPLOAD_FILE_ACTION)
.add(<API key>)
.add(EJECT_CARD_ACTION)
.add(<API key>)
.add(WEB_LOAD_ACTION)
.build())
.put(ComponentEnum.COMBO_BOX, new ImmutableList.Builder<String>()
.add(CUSTOMIZED_ACTION)
.add(SET_FONT_ACTION)
.add(USE_TIP_ACTION)
.add(<API key>)
.add(SWIPE_CARD_ACTION)
.add(<API key>)
.add(PLAY_MEDIA_ACTION)
.add(MOVE_CURSOR_ACTION)
.build())
.put(ComponentEnum.LABEL, new ImmutableList.Builder<String>()
.add(CUSTOMIZED_ACTION)
.add(SET_FONT_ACTION)
.add(USE_TIP_ACTION)
.add(SHOW_CLOCK_ACTION)
.build())
.put(ComponentEnum.TEXT_FIELD, new ImmutableList.Builder<String>()
.add(CUSTOMIZED_ACTION)
.add(SET_FONT_ACTION)
.add(LIMIT_INPUT_ACTION)
.add(USE_TIP_ACTION)
.add(PLAY_MEDIA_ACTION)
.add(<API key>)
.add(<API key>)
.add(MOVE_CURSOR_ACTION)
.build())
.put(ComponentEnum.PASSWORD_FIELD, new ImmutableList.Builder<String>()
.add(CUSTOMIZED_ACTION)
.add(SET_FONT_ACTION)
.add(LIMIT_INPUT_ACTION)
.add(USE_TIP_ACTION)
.add(PLAY_MEDIA_ACTION)
.add(<API key>)
.add(MOVE_CURSOR_ACTION)
.add(<API key>)
.build())
.put(ComponentEnum.TABLE, new ImmutableList.Builder<String>()
.add(CUSTOMIZED_ACTION)
.add(SET_FONT_ACTION)
.add(USE_TIP_ACTION)
.add(SHOW_TABLE_ACTION)
.build())
.put(ComponentEnum.ADVANCED_TABLE, new ImmutableList.Builder<String>()
.add(CUSTOMIZED_ACTION)
.add(SET_FONT_ACTION)
.add(SHOW_TABLE_ACTION)
.add(SEND_MSG_ACTION)
.build())
.put(ComponentEnum.VIDEO_PLAYER, new ImmutableList.Builder<String>()
.add(CUSTOMIZED_ACTION)
.add(PLAY_VIDEO_ACTION)
.build())
.put(ComponentEnum.GRID, new ImmutableList.Builder<String>()
.add(SHOW_GRID_ACTION)
.build())
.put(ComponentEnum.NUMERIC_PAD, new ImmutableList.Builder<String>()
.add(<API key>)
.build())
.build();
}
|
package ca.qc.bergeron.marcantoine.crammeur.android.repository.crud.sqlite;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import ca.qc.bergeron.marcantoine.crammeur.librairy.annotations.Entity;
import ca.qc.bergeron.marcantoine.crammeur.librairy.exceptions.KeyException;
import ca.qc.bergeron.marcantoine.crammeur.android.models.Client;
import ca.qc.bergeron.marcantoine.crammeur.android.repository.crud.SQLiteTemplate;
import ca.qc.bergeron.marcantoine.crammeur.librairy.repository.i.Repository;
public final class SQLiteClient extends SQLiteTemplate<Client,Integer> implements ca.qc.bergeron.marcantoine.crammeur.android.repository.crud.sqlite.i.SQLiteClient {
public SQLiteClient(Repository pRepository, Context context) {
super(Client.class,Integer.class,pRepository, context);
}
@Override
protected Client <API key>(@NonNull Cursor pCursor) {
Client o = new Client();
o.Id = pCursor.getInt(pCursor.getColumnIndex(mId.getAnnotation(Entity.Id.class).name()));
o.Name = pCursor.getString(pCursor.getColumnIndex(F_CLIENT_NAME));
o.EMail = pCursor.getString(pCursor.getColumnIndex(F_CLIENT_EMAIL));
return o;
}
@Override
protected Integer convertCursorToId(@NonNull Cursor pCursor) {
Integer result;
result = pCursor.getInt(pCursor.getColumnIndex(mId.getAnnotation(Entity.Id.class).name()));
return result;
}
@Override
public void create() {
mDB.execSQL(<API key>);
}
@NonNull
@Override
public Integer save(@NonNull Client pData) throws KeyException {
ContentValues values = new ContentValues();
try {
if (pData.Id == null) {
pData.Id = this.getKey(pData);
}
values.put(mId.getAnnotation(Entity.Id.class).name(), mKey.cast(mId.get(pData)));
values.put(F_CLIENT_NAME, pData.Name);
values.put(F_CLIENT_EMAIL, pData.EMail);
if (mId.get(pData) == null || !this.contains(mKey.cast(mId.get(pData)))) {
mId.set(pData, (int) mDB.insert(T_CLIENTS, null, values));
} else {
mDB.update(T_CLIENTS, values, mId.getAnnotation(Entity.Id.class).name() + "=?", new String[]{String.valueOf(pData.Id)});
}
return pData.Id;
} catch (<API key> e) {
e.printStackTrace();
throw new RuntimeException(e);
}
}
@Nullable
@Override
public Integer getKey(@NonNull Client pEntity) {
Integer result = null;
try {
if (mId.get(pEntity) != null) return (Integer) mId.get(pEntity);
String[] columns = new String[] {F_ID};
String where = "LOWER(" + F_CLIENT_NAME + ")=LOWER(?) AND LOWER(" + F_CLIENT_EMAIL + ")=LOWER(?)";
String[] whereArgs = new String[] {pEntity.Name,pEntity.EMail};
// limit 1 row = "1";
Cursor cursor = mDB.query(T_CLIENTS, columns, where, whereArgs, null, null, null, "1");
if (cursor.moveToFirst()) {
result = cursor.getInt(cursor.getColumnIndex(F_ID));
}
} catch (<API key> e) {
e.printStackTrace();
throw new RuntimeException(e);
}
return result;
}
}
|
(function(window, angular, undefined) {'use strict';
/**
* @ngdoc module
* @name ngCookies
* @description
*
* # ngCookies
*
* The `ngCookies` module provides a convenient wrapper for reading and writing browser cookies.
*
*
* <div <API key>="ngCookies"></div>
*
* See {@link ngCookies.$cookies `$cookies`} and
* {@link ngCookies.$cookieStore `$cookieStore`} for usage.
*/
angular.module('ngCookies', ['ng']).
/**
* @ngdoc service
* @name $cookies
*
* @description
* Provides read/write access to browser's cookies.
*
* Only a simple Object is exposed and by adding or removing properties to/from this object, new
* cookies are created/deleted at the end of current $eval.
* The object's properties can only be strings.
*
* Requires the {@link ngCookies `ngCookies`} module to be installed.
*
* @example
*
* ```js
* function ExampleController($cookies) {
* // Retrieving a cookie
* var favoriteCookie = $cookies.myFavorite;
* // Setting a cookie
* $cookies.myFavorite = 'oatmeal';
* }
* ```
*/
factory('$cookies', ['$rootScope', '$browser', function ($rootScope, $browser) {
var cookies = {},
lastCookies = {},
lastBrowserCookies,
runEval = false,
copy = angular.copy,
isUndefined = angular.isUndefined;
//creates a poller fn that copies all cookies from the $browser to service & inits the service
$browser.addPollFn(function() {
var currentCookies = $browser.cookies();
if (lastBrowserCookies != currentCookies) { //relies on browser.cookies() impl
lastBrowserCookies = currentCookies;
copy(currentCookies, lastCookies);
copy(currentCookies, cookies);
if (runEval) $rootScope.$apply();
}
})();
runEval = true;
//at the end of each eval, push cookies
//TODO: this should happen before the "delayed" watches fire, because if some cookies are not
// strings or browser refuses to store some cookies, we update the model in the push fn.
$rootScope.$watch(push);
return cookies;
/**
* Pushes all the cookies from the service to the browser and verifies if all cookies were
* stored.
*/
function push() {
var name,
value,
browserCookies,
updated;
//delete any cookies deleted in $cookies
for (name in lastCookies) {
if (isUndefined(cookies[name])) {
$browser.cookies(name, undefined);
}
}
//update all cookies updated in $cookies
for(name in cookies) {
value = cookies[name];
if (!angular.isString(value)) {
value = '' + value;
cookies[name] = value;
}
if (value !== lastCookies[name]) {
$browser.cookies(name, value);
updated = true;
}
}
//verify what was actually stored
if (updated){
updated = false;
browserCookies = $browser.cookies();
for (name in cookies) {
if (cookies[name] !== browserCookies[name]) {
//delete or reset all cookies that the browser dropped from $cookies
if (isUndefined(browserCookies[name])) {
delete cookies[name];
} else {
cookies[name] = browserCookies[name];
}
updated = true;
}
}
}
}
}]).
/**
* @ngdoc service
* @name $cookieStore
* @requires $cookies
*
* @description
* Provides a key-value (string-object) storage, that is backed by session cookies.
* Objects put or retrieved from this storage are automatically serialized or
* deserialized by angular's toJson/fromJson.
*
* Requires the {@link ngCookies `ngCookies`} module to be installed.
*
* @example
*
* ```js
* function ExampleController($cookieStore) {
* // Put cookie
* $cookieStore.put('myFavorite','oatmeal');
* // Get cookie
* var favoriteCookie = $cookieStore.get('myFavorite');
* // Removing a cookie
* $cookieStore.remove('myFavorite');
* }
* ```
*/
factory('$cookieStore', ['$cookies', function($cookies) {
return {
/**
* @ngdoc method
* @name $cookieStore#get
*
* @description
* Returns the value of given cookie key
*
* @param {string} key Id to use for lookup.
* @returns {Object} Deserialized cookie value.
*/
get: function(key) {
var value = $cookies[key];
return value ? angular.fromJson(value) : value;
},
/**
* @ngdoc method
* @name $cookieStore#put
*
* @description
* Sets a value for given cookie key
*
* @param {string} key Id for the `value`.
* @param {Object} value Value to be stored.
*/
put: function(key, value) {
$cookies[key] = angular.toJson(value);
},
/**
* @ngdoc method
* @name $cookieStore#remove
*
* @description
* Remove given cookie
*
* @param {string} key Id of the key-value pair to delete.
*/
remove: function(key) {
delete $cookies[key];
}
};
}]);
})(window, window.angular);
|
using System;
namespace <API key>.Commons.Dtos
{
public class BaseDto
{
public Guid Id { get; set; }
}
}
|
package gui;
//: gui/<API key>.java
import javax.swing.*;
import java.util.concurrent.*;
public class <API key> {
public static void main(String[] args) throws Exception {
JFrame frame = new JFrame("Hello Swing");
final JLabel label = new JLabel("A Label");
frame.add(label);
frame.<API key>(JFrame.EXIT_ON_CLOSE);
frame.setSize(300, 100);
frame.setVisible(true);
TimeUnit.SECONDS.sleep(1);
SwingUtilities.invokeLater(new Runnable() {
public void run() {
label.setText("Hey! This is Different!");
}
});
}
}
|
package jp.teraparser.transition;
import java.util.Arrays;
/**
* Resizable-array implementation of Deque which works like java.util.ArrayDeque
*
* jp.teraparser.util
*
* @author Hiroki Teranishi
*/
public class Stack implements Cloneable {
private static final int <API key> = 8;
private int[] elements;
private int head;
private int tail;
/**
* Allocates empty array to hold the given number of elements.
*/
private void allocateElements(int numElements) {
int initialCapacity = <API key>;
// Find the best power of two to hold elements.
// Tests "<=" because arrays aren't kept full.
if (numElements >= initialCapacity) {
initialCapacity = numElements;
initialCapacity |= (initialCapacity >>> 1);
initialCapacity |= (initialCapacity >>> 2);
initialCapacity |= (initialCapacity >>> 4);
initialCapacity |= (initialCapacity >>> 8);
initialCapacity |= (initialCapacity >>> 16);
initialCapacity++;
if (initialCapacity < 0) { // Too many elements, must back off
initialCapacity >>>= 1;// Good luck allocating 2 ^ 30 elements
}
}
elements = new int[initialCapacity];
}
/**
* Doubles the capacity of this deque. Call only when full, i.e.,
* when head and tail have wrapped around to become equal.
*/
private void doubleCapacity() {
assert head == tail;
int p = head;
int n = elements.length;
int r = n - p; // number of elements to the right of p
int newCapacity = n << 1;
if (newCapacity < 0) {
throw new <API key>("Sorry, deque too big");
}
int[] a = new int[newCapacity];
System.arraycopy(elements, p, a, 0, r);
System.arraycopy(elements, 0, a, r, p);
elements = a;
head = 0;
tail = n;
}
public Stack() {
elements = new int[16];
}
public Stack(int numElements) {
allocateElements(numElements);
}
public void push(int e) {
elements[head = (head - 1) & (elements.length - 1)] = e;
if (head == tail) {
doubleCapacity();
}
}
public int pop() {
int h = head;
int result = elements[h];
elements[h] = 0;
head = (h + 1) & (elements.length - 1);
return result;
}
public int top() {
return elements[head];
}
public int getFirst() {
return top();
}
public int get(int position, int defaultValue) {
if (position < 0 || position >= size()) {
return defaultValue;
}
int mask = elements.length - 1;
int h = head;
for (int i = 0; i < position; i++) {
h = (h + 1) & mask;
}
return elements[h];
}
public int size() {
return (tail - head) & (elements.length - 1);
}
public boolean isEmpty() {
return head == tail;
}
public Stack clone() {
try {
Stack result = (Stack) super.clone();
result.elements = Arrays.copyOf(elements, elements.length);
return result;
} catch (<API key> e) {
throw new AssertionError();
}
}
}
|
package ppp.menu;
import java.awt.image.BufferedImage;
public abstract interface Menu {
public abstract void up();
public abstract void down();
public abstract void enter();
public abstract void escape();
public abstract BufferedImage getImage();
}
|
{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}
{% block modal-body-right %}
<div class="quota-dynamic">
<p>{% blocktrans %}Create a Consistency Group that will contain newly created volumes cloned from each of the snapshots in the source Consistency Group Snapshot.{% endblocktrans %}</p>
{% include "admin/volumes/_volume_limits.html" with usages=usages %}
</div>
{% endblock %}
|
require File.join(File.dirname(__FILE__), '..', 'cloudstack_rest')
Puppet::Type.type(:<API key>).provide :rest, :parent => Puppet::Provider::CloudstackRest do
desc "REST provider for Cloudstack Network Service Provider"
mk_resource_methods
def flush
if @property_flush[:ensure] == :absent
<API key>
return
end
if @property_flush[:ensure] != :absent
return if <API key>
end
if @property_flush[:ensure] == :enabled
<API key>
return
end
if @property_flush[:ensure] == :shutdown
<API key>
return
end
if @property_flush[:ensure] == :disabled
<API key>
return
end
<API key>
end
def self.instances
result = Array.new
list = get_objects(:<API key>, "<API key>")
if list != nil
list.each do |object|
map = <API key>(object)
if map != nil
#Puppet.debug "Network Service Provider: "+map.inspect
result.push(new(map))
end
end
end
result
end
def self.<API key>(object)
if object["name"] != nil
physicalnetwork = genericLookup(:<API key>, "physicalnetwork", 'id', object["physicalnetworkid"], {}, 'name')
{
:id => object["id"],
:name => physicalnetwork+'_'+object["name"],
:service_provider => object["name"],
:physicalnetworkid => object["physicalnetworkid"],
:physicalnetwork => physicalnetwork,
:state => object["state"].downcase,
:ensure => :present
}
end
end
# TYPE SPECIFIC
def setState(state)
@property_flush[:ensure] = state
end
def getState
@property_hash[:state]
end
private
def <API key>
if @property_hash.empty?
Puppet.debug "Create Network Service Provider "+resource[:name]
physicalnetworkid = self.class.genericLookup(:<API key>, "physicalnetwork", 'name', resource[:physicalnetwork], {}, 'id')
params = {
:name => resource[:service_provider],
:physicalnetworkid => physicalnetworkid,
}
Puppet.debug "<API key> PARAMS = "+params.inspect
response = self.class.http_get('<API key>', params)
self.class.wait_for_async_call(response["jobid"])
return true
end
false
end
def <API key>
Puppet.debug "Delete Network Service Provider "+resource[:name]
id = lookupId
params = {
:id => id,
}
Puppet.debug "<API key> PARAMS = "+params.inspect
# response = self.class.http_get('<API key>', params)
# self.class.wait_for_async_call(response["jobid"])
end
def updateNetwork
Puppet.debug "Update Network Service Provider "+resource[:name]
raise "Network Service Provider only allows update for servicelist, which is currently not supported by this Puppet Module"
end
def updateState(state)
id = lookupId
params = {
:id => id,
:state => state,
}
Puppet.debug "<API key> PARAMS = "+params.inspect
response = self.class.http_get('<API key>', params)
self.class.wait_for_async_call(response["jobid"])
end
def <API key>
Puppet.debug "Enable Network Service Provider "+resource[:name]
updateState('Enabled')
end
def <API key>
Puppet.debug "Disable Network Service Provider "+resource[:name]
updateState('Disabled')
end
def <API key>
Puppet.debug "Shutdown Network Service Provider "+resource[:name]
updateState('Shutdown')
end
def lookupId
physicalnetworkid = self.class.genericLookup(:<API key>, "physicalnetwork", 'name', resource[:physicalnetwork], {}, 'id')
params = { :physicalnetworkid => physicalnetworkid }
return self.class.genericLookup(:<API key>, "<API key>", 'name', resource[:service_provider], {}, 'id')
end
end
|
package org.hablapps.meetup.common.logic
object Domain{
case class User(
uid: Option[Int] = None,
name: String
)
case class Group(
id: Option[Int] = None,
name: String,
city: String,
must_approve: Boolean
)
case class Member(
mid: Option[Int] = None,
uid: Int,
gid: Int
)
case class JoinRequest(
jid: Option[Int] = None,
uid: Int,
gid: Int
)
type JoinResponse = Either[JoinRequest, Member]
}
|
package org.utilities;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.<API key>;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
// TODO: Auto-generated Javadoc
/**
* The Class CUtils.
*/
public class CUtils {
/**
* Work.
*
* @param task
* the task
* @return the object
*/
public static Object work(Callable<?> task) {
Future<?> futureTask = es.submit(task);
return futureTask;
}
/**
* Gets the random string.
*
* @param rndSeed the rnd seed
* @return the random string
*/
public static String getRandomString(double rndSeed) {
MessageDigest m;
try {
m = MessageDigest.getInstance("MD5");
byte[] data = ("" + rndSeed).getBytes();
m.update(data, 0, data.length);
BigInteger i = new BigInteger(1, m.digest());
return String.format("%1$032X", i);
} catch (<API key> e) {
}
return "" + rndSeed;
}
/**
* Gets the random number.
*
* @param s the s
* @return the random number
* @throws Exception the exception
*/
public static int getRandomNumber(String s) throws Exception {
MessageDigest m;
try {
m = MessageDigest.getInstance("MD5");
byte[] data = s.getBytes();
m.update(data, 0, data.length);
BigInteger i = new BigInteger(1, m.digest());
return i.intValue();
} catch (<API key> e) {
}
throw new Exception("Cannot generate random number");
}
/** The Constant es. */
private final static ExecutorService es = Executors.newCachedThreadPool();
/**
* Instantiates a new c utils.
*/
private CUtils() {
}
}
|
select <API key>('LiveSnapshotEnabled','false','2.2');
select <API key>('LiveSnapshotEnabled','false','3.0');
select <API key>('LiveSnapshotEnabled','true','3.1');
|
package com.rasterfoundry.common.ast
import cats.implicits._
import geotrellis.raster._
import geotrellis.raster.mapalgebra.focal._
import geotrellis.vector.MultiPolygon
import java.util.UUID
/** The ur-type for a recursive representation of MapAlgebra operations */
sealed trait MapAlgebraAST extends Product with Serializable {
def id: UUID
def args: List[MapAlgebraAST]
def metadata: Option[NodeMetadata]
def find(id: UUID): Option[MapAlgebraAST]
def sources: Seq[MapAlgebraAST.MapAlgebraLeaf]
def tileSources: Set[RFMLRaster] = {
val tileList: List[RFMLRaster] = this match {
case r: RFMLRaster => List(r)
case _: MapAlgebraAST.MapAlgebraLeaf => List()
case ast => ast.args.flatMap(_.tileSources)
}
tileList.toSet
}
def substitute(substitutions: Map[UUID, MapAlgebraAST]): Option[MapAlgebraAST]
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST
def withMetadata(newMd: NodeMetadata): MapAlgebraAST
def bufferedSources(buffered: Boolean = false): Set[UUID] = {
val bufferList = this match {
case f: MapAlgebraAST.FocalOperation =>
f.args.flatMap(_.bufferedSources(true))
case op: MapAlgebraAST.Operation =>
op.args.flatMap(_.bufferedSources(buffered))
// case MapAlgebraAST.Source(id, _) => if (buffered) List(id) else List()
case _ => List()
}
bufferList.toSet
}
}
object MapAlgebraAST {
/** Map Algebra operations (nodes in this tree) */
sealed trait Operation extends MapAlgebraAST with Serializable {
val symbol: String
def find(id: UUID): Option[MapAlgebraAST] =
if (this.id == id)
Some(this)
else {
val matches = args.flatMap(_.find(id))
matches.headOption
}
def sources: Seq[MapAlgebraAST.MapAlgebraLeaf] =
args.flatMap(_.sources).distinct
def substitute(
substitutions: Map[UUID, MapAlgebraAST]): Option[MapAlgebraAST] = {
val updatedArgs: Option[List[MapAlgebraAST]] = this.args
.map({ arg =>
arg.substitute(substitutions)
})
.sequence
updatedArgs.map({ newArgs =>
this.withArgs(newArgs)
})
}
}
/** Operations which should only have one argument. */
final case class Addition(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends Operation {
val symbol = "+"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Subtraction(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends Operation {
val symbol = "-"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Multiplication(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends Operation {
val symbol = "*"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Division(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends Operation {
val symbol = "/"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Max(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends Operation {
val symbol = "max"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Min(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends Operation {
val symbol = "min"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Equality(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends Operation {
val symbol = "=="
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Inequality(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends Operation {
val symbol = "!="
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Greater(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends Operation {
val symbol = ">"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class GreaterOrEqual(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends Operation {
val symbol = ">="
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Less(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends Operation {
val symbol = "<"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class LessOrEqual(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends Operation {
val symbol = "<="
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class And(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends Operation {
val symbol = "and"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Or(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends Operation {
val symbol = "or"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Xor(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends Operation {
val symbol = "xor"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Pow(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends Operation {
val symbol = "^"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Atan2(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends Operation {
val symbol = "atan2"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
sealed trait UnaryOperation extends Operation with Serializable
final case class Masking(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata],
mask: MultiPolygon)
extends UnaryOperation {
val symbol = "mask"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Classification(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata],
classMap: ClassMap)
extends UnaryOperation {
val symbol = "classify"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class IsDefined(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends UnaryOperation {
val symbol = "isdefined"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class IsUndefined(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends UnaryOperation {
val symbol = "isundefined"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class SquareRoot(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends UnaryOperation {
val symbol = "sqrt"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Log(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends UnaryOperation {
val symbol = "log"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Log10(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends UnaryOperation {
val symbol = "log10"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Round(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends UnaryOperation {
val symbol = "round"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Floor(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends UnaryOperation {
val symbol = "floor"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Ceil(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends UnaryOperation {
val symbol = "ceil"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class NumericNegation(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends UnaryOperation {
val symbol = "neg"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class LogicalNegation(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends UnaryOperation {
val symbol = "not"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Abs(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends UnaryOperation {
val symbol = "abs"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Sin(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends UnaryOperation {
val symbol = "sin"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Cos(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends UnaryOperation {
val symbol = "cos"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Tan(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends UnaryOperation {
val symbol = "tan"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Sinh(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends UnaryOperation {
val symbol = "sinh"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Cosh(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends UnaryOperation {
val symbol = "cosh"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Tanh(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends UnaryOperation {
val symbol = "tanh"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Asin(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends UnaryOperation {
val symbol = "asin"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Acos(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends UnaryOperation {
val symbol = "acos"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class Atan(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata])
extends UnaryOperation {
val symbol = "atan"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
sealed trait FocalOperation extends UnaryOperation {
def neighborhood: Neighborhood
}
final case class FocalMax(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata],
neighborhood: Neighborhood)
extends FocalOperation {
val symbol = "focalMax"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class FocalMin(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata],
neighborhood: Neighborhood)
extends FocalOperation {
val symbol = "focalMin"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class FocalMean(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata],
neighborhood: Neighborhood)
extends FocalOperation {
val symbol = "focalMean"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class FocalMedian(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata],
neighborhood: Neighborhood)
extends FocalOperation {
val symbol = "focalMedian"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class FocalMode(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata],
neighborhood: Neighborhood)
extends FocalOperation {
val symbol = "focalMode"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class FocalSum(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata],
neighborhood: Neighborhood)
extends FocalOperation {
val symbol = "focalSum"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class FocalStdDev(args: List[MapAlgebraAST],
id: UUID,
metadata: Option[NodeMetadata],
neighborhood: Neighborhood)
extends FocalOperation {
val symbol = "focalStdDev"
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST =
copy(args = newArgs)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
sealed trait MapAlgebraLeaf extends MapAlgebraAST {
val `type`: String
def args: List[MapAlgebraAST] = List.empty
def find(id: UUID): Option[MapAlgebraAST] =
if (this.id == id) Some(this)
else None
def withArgs(newArgs: List[MapAlgebraAST]): MapAlgebraAST = this
}
final case class Constant(id: UUID,
constant: Double,
metadata: Option[NodeMetadata])
extends MapAlgebraLeaf {
val `type` = "const"
def sources: Seq[MapAlgebraAST.MapAlgebraLeaf] = List()
def substitute(
substitutions: Map[UUID, MapAlgebraAST]): Option[MapAlgebraAST] =
Some(this)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
/** Map Algebra sources */
final case class LiteralTile(id: UUID,
lt: Tile,
metadata: Option[NodeMetadata])
extends MapAlgebraLeaf {
val `type` = "rasterLiteral"
def sources: Seq[MapAlgebraAST.MapAlgebraLeaf] = List(this)
def substitute(
substitutions: Map[UUID, MapAlgebraAST]): Option[MapAlgebraAST] =
Some(this)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class ProjectRaster(id: UUID,
projId: UUID,
band: Option[Int],
celltype: Option[CellType],
metadata: Option[NodeMetadata])
extends MapAlgebraLeaf
with RFMLRaster {
val `type` = "projectSrc"
def sources: Seq[MapAlgebraAST.MapAlgebraLeaf] = List(this)
def substitute(
substitutions: Map[UUID, MapAlgebraAST]): Option[MapAlgebraAST] =
Some(this)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class LayerRaster(id: UUID,
layerId: UUID,
band: Option[Int],
celltype: Option[CellType],
metadata: Option[NodeMetadata])
extends MapAlgebraLeaf
with RFMLRaster {
val `type` = "layerSrc"
def sources: Seq[MapAlgebraAST.MapAlgebraLeaf] = List(this)
def substitute(
substitutions: Map[UUID, MapAlgebraAST]): Option[MapAlgebraAST] =
Some(this)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST =
copy(metadata = Some(newMd))
}
final case class ToolReference(id: UUID, toolId: UUID)
extends MapAlgebraLeaf {
val `type` = "ref"
def metadata: Option[NodeMetadata] = None
def sources: List[MapAlgebraAST.MapAlgebraLeaf] = Nil
def substitute(
substitutions: Map[UUID, MapAlgebraAST]): Option[MapAlgebraAST] =
substitutions.get(toolId)
def withMetadata(newMd: NodeMetadata): MapAlgebraAST = this
}
}
|
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.nats;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.<API key>;
import org.apache.camel.spi.<API key>;
import org.apache.camel.util.CaseInsensitiveMap;
import org.apache.camel.support.component.<API key>;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@SuppressWarnings("unchecked")
public class <API key> extends <API key> implements <API key>, <API key> {
private static final Map<String, Object> ALL_OPTIONS;
static {
Map<String, Object> map = new CaseInsensitiveMap();
map.put("servers", java.lang.String.class);
map.put("verbose", boolean.class);
map.put("bridgeErrorHandler", boolean.class);
map.put("lazyStartProducer", boolean.class);
map.put("<API key>", boolean.class);
map.put("<API key>", boolean.class);
ALL_OPTIONS = map;
}
@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
NatsComponent target = (NatsComponent) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "<API key>":
case "<API key>": target.<API key>(property(camelContext, boolean.class, value)); return true;
case "bridgeerrorhandler":
case "bridgeErrorHandler": target.<API key>(property(camelContext, boolean.class, value)); return true;
case "lazystartproducer":
case "lazyStartProducer": target.<API key>(property(camelContext, boolean.class, value)); return true;
case "servers": target.setServers(property(camelContext, java.lang.String.class, value)); return true;
case "<API key>":
case "<API key>": target.<API key>(property(camelContext, boolean.class, value)); return true;
case "verbose": target.setVerbose(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
@Override
public Map<String, Object> getAllOptions(Object target) {
return ALL_OPTIONS;
}
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
NatsComponent target = (NatsComponent) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "<API key>":
case "<API key>": return target.<API key>();
case "bridgeerrorhandler":
case "bridgeErrorHandler": return target.<API key>();
case "lazystartproducer":
case "lazyStartProducer": return target.isLazyStartProducer();
case "servers": return target.getServers();
case "<API key>":
case "<API key>": return target.<API key>();
case "verbose": return target.isVerbose();
default: return null;
}
}
}
|
from typing import List
class Solution:
def partitionLabels(self, S: str) -> List[int]:
lastPos, seen, currMax = {}, set(), -1
res = []
for i in range(0, 26):
c = chr(97+i)
lastPos[c] = S.rfind(c)
for i, c in enumerate(S):
# Encounter new index higher than currMax
if i > currMax:
res.append(currMax+1)
currMax = max(currMax, lastPos[c])
res.append(len(S))
ans = [res[i]-res[i-1] for i in range(1, len(res))]
return ans
|
package Paws::CloudWatchEvents::RemoveTargets;
use Moose;
has Ids => (is => 'ro', isa => 'ArrayRef[Str|Undef]', required => 1);
has Rule => (is => 'ro', isa => 'Str', required => 1);
use MooseX::ClassAttribute;
class_has _api_call => (isa => 'Str', is => 'ro', default => 'RemoveTargets');
class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CloudWatchEvents::<API key>');
class_has _result_key => (isa => 'Str', is => 'ro');
1;
main pod documentation begin
=head1 NAME
Paws::CloudWatchEvents::RemoveTargets - Arguments for method RemoveTargets on Paws::CloudWatchEvents
=head1 DESCRIPTION
This class represents the parameters used for calling the method RemoveTargets on the
Amazon CloudWatch Events service. Use the attributes of this class
as arguments to method RemoveTargets.
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to RemoveTargets.
As an example:
$service_obj->RemoveTargets(Att1 => $value1, Att2 => $value2, ...);
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
=head1 ATTRIBUTES
=head2 B<REQUIRED> Ids => ArrayRef[Str|Undef]
The IDs of the targets to remove from the rule.
=head2 B<REQUIRED> Rule => Str
The name of the rule.
=head1 SEE ALSO
This class forms part of L<Paws>, documenting arguments for method RemoveTargets in L<Paws::CloudWatchEvents>
=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
|
# Welcome to the yMatePlatform! #

[
* [](https://github.com/suninformation/ymateplatform/wiki/YMP)
* [](https://github.com/suninformation/ymateplatform/wiki/YMP)
* [](https://github.com/suninformation/ymateplatform/wiki/YMP)
* [](https://github.com/suninformation/ymateplatform/wiki/YMP)
* [MVC](https://github.com/suninformation/ymateplatform/wiki/YMPMVC)
* [](https://github.com/suninformation/ymateplatform/wiki/YMP)
* [](https://github.com/suninformation/ymateplatform/wiki/YMP)
* [](https://github.com/suninformation/ymateplatform/wiki/YMP)
* [](https://github.com/suninformation/ymateplatform/wiki/YMP)
* [](https://github.com/suninformation/ymateplatform/wiki/YMP)
|
package ruboweb.pushetta.back.model;
import java.security.MessageDigest;
import java.security.<API key>;
import java.security.SecureRandom;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.jpa.domain.AbstractPersistable;
@Entity
@Table(name = "user")
public class User extends AbstractPersistable<Long> {
private static final Logger logger = LoggerFactory.getLogger(User.class);
private static final long serialVersionUID = <API key>;
@Column(nullable = false)
private String name;
@Column(nullable = false)
private String token;
public User() {
}
public User(String name) {
this.name = name;
this.token = this.generateToken();
}
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name
* the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @return the token
*/
public String getToken() {
return token;
}
/**
* @param token
* the token to set
*/
public void setToken(String token) {
this.token = token;
}
private String generateToken() {
try {
SecureRandom prng = SecureRandom.getInstance("SHA1PRNG");
String randomNum = new Integer(prng.nextInt()).toString();
MessageDigest sha = MessageDigest.getInstance("SHA-1");
byte[] bytes = sha.digest(randomNum.getBytes());
StringBuilder result = new StringBuilder();
char[] digits = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'a', 'b', 'c', 'd', 'e', 'f' };
byte b;
for (int idx = 0; idx < bytes.length; ++idx) {
b = bytes[idx];
result.append(digits[(b & 240) >> 4]);
result.append(digits[b & 15]);
}
return result.toString();
} catch (<API key> ex) {
logger.error("generateToken() -- " + ex.getMessage());
}
return null;
}
}
|
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.10.09 at 10:10:23 AM CST
package com.elong.nb.model.elong;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import java.util.List;
import com.alibaba.fastjson.annotation.JSONField;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CommentResult", propOrder = {
"count",
"comments"
})
public class CommentResult {
@JSONField(name = "Count")
protected int count;
@JSONField(name = "Comments")
protected List<CommentInfo> comments;
/**
* Gets the value of the count property.
*
*/
public int getCount() {
return count;
}
/**
* Sets the value of the count property.
*
*/
public void setCount(int value) {
this.count = value;
}
/**
* Gets the value of the comments property.
*
* @return
* possible object is
* {@link List<CommentInfo> }
*
*/
public List<CommentInfo> getComments() {
return comments;
}
/**
* Sets the value of the comments property.
*
* @param value
* allowed object is
* {@link List<CommentInfo> }
*
*/
public void setComments(List<CommentInfo> value) {
this.comments = value;
}
}
|
<?php
include_once 'functionCheckLogin.php';
$code_login = login_check($mysqli);
if($code_login <0) {
header('Location: /index.php');
}
?>
<html>
<head>
<meta name='viewport' content='width=device-width'>
<title>Impostazioni generali</title>
<link rel='stylesheet' href='css/<API key>.css'>
</head>
<body>
<div class='container'>
<div id='settings-div'>
<h3>Impostazioni generali</h3>
<fieldset>
<table align=center cellpadding=5>
<tr><td><button onClick="location.assign('formChangePassword.php')">Cambia Password</button></td></tr>
<tr><td><button onClick="location.assign('<?php if($code_login==1){echo "firstAdmin.php";} else{echo "firstUser.php";}?>')">Torna a Schede</button></td></tr>
<?php if($code_login==1){echo "<tr><td><button onClick='location.assign(\"reboot.php\")'>Riavvia dispositivo</button></td></tr>";}?>
<?php if($code_login==1){echo "<tr><td><button onClick='location.assign(\"shutdown.php\")'>Spegni dispositivo</button></td></tr>";}?>
</table>
</fieldset>
</div>
</div>
</body>
</html>
|
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.6.0_27) on Thu Oct 17 21:44:59 EDT 2013 -->
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
<title>Uses of Class org.apache.solr.update.processor.<API key> (Solr 4.5.1 API)</title>
<meta name="date" content="2013-10-17">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class org.apache.solr.update.processor.<API key> (Solr 4.5.1 API)";
}
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="topNav"><a name="navbar_top">
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><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/solr/update/processor/<API key>.html" title="class in org.apache.solr.update.processor">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/solr/update/processor//<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>
<a name="skip-navbar_top">
</a></div>
<div class="header">
<h2 title="Uses of Class org.apache.solr.update.processor.<API key>" class="title">Uses of Class<br>org.apache.solr.update.processor.<API key></h2>
</div>
<div class="classUseContainer">No usage of org.apache.solr.update.processor.<API key></div>
<div class="bottomNav"><a name="navbar_bottom">
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="<API key>">
</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/solr/update/processor/<API key>.html" title="class in org.apache.solr.update.processor">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/solr/update/processor//<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>
<a name="skip-navbar_bottom">
</a></div>
<p class="legalCopy"><small>
<i>Copyright © 2000-2013 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>
|
#include "mldb/core/procedure.h"
#include "mldb/core/dataset.h"
#include "mldb/base/<API key>.h"
#include "mldb/types/url.h"
#include "mldb/types/<API key>.h"
#include "mldb/types/vector_description.h"
#include "mldb/types/any_impl.h"
#include "mldb/vfs/fs_utils.h"
#include "mldb/base/scope.h"
#include "mldb/utils/distribution.h"
#include "mldb/base/parallel.h"
#include <boost/algorithm/string.hpp>
#include "mldb/types/annotated_exception.h"
#include "mldb/utils/log.h"
#include "mldb/ext/libgit2/include/git2.h"
#include "mldb/ext/libgit2/include/git2/revwalk.h"
#include "mldb/ext/libgit2/include/git2/commit.h"
#include "mldb/ext/libgit2/include/git2/diff.h"
struct GitFileOperation {
GitFileOperation()
: insertions(0), deletions(0)
{
}
int insertions;
int deletions;
std::string op;
};
struct GitFileStats {
GitFileStats()
: insertions(0), deletions(0)
{
}
std::map<std::string, GitFileOperation> files;
int insertions;
int deletions;
};
int <API key>(const git_diff_delta *delta,
float progress,
void *payload)
{
GitFileStats & stats = *((GitFileStats *)payload);
GitFileOperation op;
switch (delta->status) {
case <API key>: /** no changes */
return 0;
case GIT_DELTA_ADDED: /** entry does not exist in old version */
op.op = "added";
break;
case GIT_DELTA_DELETED: /** entry does not exist in new version */
op.op = "deleted";
break;
case GIT_DELTA_MODIFIED: /** entry content changed between old and new */
op.op = "modified";
break;
case GIT_DELTA_RENAMED: /** entry was renamed between old and new */
op.op = "renamed";
break;
case GIT_DELTA_COPIED: /** entry was copied from another old entry */
op.op = "copied";
break;
case GIT_DELTA_IGNORED: /** entry is ignored item in workdir */
return 0;
case GIT_DELTA_UNTRACKED: /** entry is untracked item in workdir */
return 0;
case <API key>: /** type of entry changed between old and new */
return 0;
default:
throw std::logic_error("git status");
}
if (delta->old_file.path)
stats.files[delta->old_file.path] = op;
return 0;
}
int <API key>(const git_diff_delta *delta,
const git_diff_hunk * hunk,
void *payload)
{
GitFileStats & stats = *((GitFileStats *)payload);
if (delta->old_file.path)
stats.files[delta->old_file.path].deletions += hunk->old_lines;
if (delta->new_file.path)
stats.files[delta->new_file.path].insertions += hunk->new_lines;
stats.insertions += hunk->new_lines;
stats.deletions += hunk->old_lines;
return 0;
}
GitFileStats git_diff_by_file(git_diff *diff)
{
GitFileStats result;
int error = git_diff_foreach(diff,
<API key>,
nullptr, /* binary callback */
<API key>,
nullptr, /* line callback */
&result);
if (error < 0) {
throw MLDB::AnnotatedException(400, "Error traversing diff: "
+ std::string(giterr_last()->message));
}
return result;
}
using namespace std;
namespace MLDB {
/* GIT IMPORTER */
struct GitImporterConfig : ProcedureConfig {
static constexpr const char * name = "import.git";
GitImporterConfig()
: revisions({"HEAD"}), importStats(false), importTree(false),
<API key>(true)
{
outputDataset.withType("sparse.mutable");
}
Url repository;
PolyConfigT<Dataset> outputDataset;
std::vector<std::string> revisions;
bool importStats;
bool importTree;
bool <API key>;
// TODO
// when
// where
// limit
// offset
// select (instead of importStats, importTree)
};
<API key>(GitImporterConfig);
<API key>(GitImporterConfig);
<API key>::
<API key>()
{
addField("repository", &GitImporterConfig::repository,
"Git repository to load from. This is currently limited to "
"file:// urls which point to an already cloned repository on "
"local disk. Remote repositories will need to be checked out "
"beforehand using the git command line tools.");
addField("outputDataset", &GitImporterConfig::outputDataset,
"Output dataset for result. One row will be produced per commit. "
"See the documentation for the output format.",
PolyConfigT<Dataset>().withType("sparse.mutable"));
std::vector<std::string> defaultRevisions = { "HEAD" };
addField("revisions", &GitImporterConfig::revisions,
nullptr, true /*overwrite*/);
|
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<span class='rank7 7.131076592273528'>?0</span>
<span class='rank0 0.0'>1</span>
<span class='rank3 2.8337620491379862'>lem</span>
</br>
<span class='rank0 0.0'>^</span>
<span class='rank0 0.0'>w</span>
<span class='rank0 0.0'>w</span>
<span class='rank10 9.615983242061528'>Pf</span>
<span class='rank5 5.380675333968457'>The</span>
<span class='rank6 5.910214491268059'>New</span>
<span class='rank5 5.027215308896533'>York</span>
<span class='rank4 4.050174224831018'>copyright</span>
<span class='rank2 1.7822710117187128'>reserved</span>
<span class='rank3 2.5421264334187086'>Botanical</span>
<span class='rank3 3.451197890939337'>Garden</span>
</br>
<span class='rank-13 -13.080231701061997'>Stewardson</span>
<span class='rank3 2.873252492389657'>Brown</span>
<span class='rank8 7.536541700381693'>N.</span>
<span class='rank6 5.703960236633383'>L.</span>
<span class='rank-2 -1.981923936421886'>Britton</span>
</br>
<span class='rank9 9.328301169609748'>E,</span>
<span class='rank7 6.5714608043381055'>J.</span>
<span class='rank-1 -1.1691379729473965'>WORTLEY</span>
</br>
<span class='rank0 0.2299845632248747'>COLLECTORS</span>
</br>
<span class='rank1 0.9568358528021363'>SEPT.,</span>
<span class='rank3 2.9384859171035345'>1913</span>
</br>
<span class='rank5 5.23758013687111'>NEW</span>
<span class='rank5 5.092407184714711'>YORK</span>
<span class='rank4 4.3452095742978045'>BOTANICAL</span>
<span class='rank5 4.836230413135688'>GARDEN</span>
<span class='rank-2 -2.1799152267468287'>ACADEMY</span>
<span class='rank6 6.171300748459634'>OF</span>
<span class='rank-4 -4.137144714540511'>NATURAL</span>
<span class='rank-4 -4.02435559334085'>SCIENCES</span>
<span class='rank6 6.171300748459634'>OF</span>
<span class='rank-7 -7.111065859143594'>PHILADELPHIA</span>
<span class='rank2 2.4609470333207497'>BERMUDA</span>
<span class='rank-14 -14.452837080563157'>DEPARTMENT</span>
<span class='rank6 6.171300748459634'>OF</span>
<span class='rank-13 -13.257555169685276'>AGRICULTURE</span>
<span class='rank0 -0.025107939329515716'>EXPLORATION</span>
<span class='rank6 6.171300748459634'>OF</span>
<span class='rank2 2.4609470333207497'>BERMUDA</span>
</br>
<span class='rank0 0.0'>/</span>
<span class='rank0 0.0'>V'r/?</span>
</br>
<span class='rank7 7.113163754051207'>NO.</span>
<span class='rank0 0.0'>Ô</span>
</br>
<span class='rank42 42.26324703259235'>01530253</span>
</br>
</br></br>
<strong>Legend - </strong>
Level of confidence that token is an <API key> word</br>
<span class='rank-13'> </span> extremely low
<span class='rank-7'> </span> very low
<span class='rank-1'> </span> low
<span class='rank0'> </span> undetermined
<span class='rank1'> </span> medium
<span class='rank6'> </span> high
<span class='rank16'> </span> very high</br>
</body>
</html>
|
// SendMessageRequest.h
// ProximitySenseSDK
#import <Foundation/Foundation.h>
@interface SendMessageRequest : NSObject
@property (nonatomic, strong) NSString *message;
@end
|
Payments can be reversed for many reasons and many weeks after being received. When you
reverse a payment, a window pops up to ask why.
<figure>
<img src="i/help/PaymentReversed.png" alt="PaymentReversed" width="700px">
<figcaption>Payment Reversed.</figcaption>
</figure>
Choose one of the following from the drop-down box.
<figure>
<img src="i/help/<API key>.png" alt="<API key>" width="700px">
<figcaption>Payment Reverse Reasons Values.</figcaption>
</figure>
<ul>
<li>Applied to Wrong Account</li>
<li> Bank Account Closed</li>
<li>Data Entry Error</li>
<li>No Acct/Cannot Locate</li>
<li> Non-Sufficient Funds</li>
<li>Account Details Page</li>
<li>Stop Payment</li>
</ul>
Clicking the "Reverse" button will open a Microsoft Word document which is a letter to the claimant
explaining why his payment was reversed and to expect a new invoice with a higher balance.
<h2>Cancel</h2>
Adjustments can be canceled for many reasons and many weeks after being entered. When you
cancel a payment, a window pops up to ask why. Its drop-down box offers the same reasons as the
reversals.
<figure>
<img src="i/help/PaymentCancel.png" alt="PaymentCancel" width="700px">
<figcaption>Payment Cancel.</figcaption>
</figure>
<figure>
<img src="i/help/<API key>.png" alt="<API key>" width="700px">
<figcaption>Payment Cancel Reasons Values.</figcaption>
</figure>
|
package uk.co.listpoint.context;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
@XmlType(name = "Context6Type", namespace = "http:
@XmlEnum
public enum Context6Type {
@XmlEnumValue("Data Standard")
DATA_STANDARD("Data Standard"),
@XmlEnumValue("Application")
APPLICATION("Application");
private final String value;
Context6Type(String v) {
value = v;
}
public String value() {
return value;
}
public static Context6Type fromValue(String v) {
for (Context6Type c: Context6Type.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new <API key>(v);
}
}
|
package com.example.customviewdemo;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class DragViewActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_drag_view);
}
}
|
package com.gentics.mesh.core.schema.field;
import static com.gentics.mesh.assertj.MeshAssertions.assertThat;
import static com.gentics.mesh.core.field.FieldSchemaCreator.CREATEBINARY;
import static com.gentics.mesh.core.field.FieldSchemaCreator.CREATEBOOLEAN;
import static com.gentics.mesh.core.field.FieldSchemaCreator.CREATEBOOLEANLIST;
import static com.gentics.mesh.core.field.FieldSchemaCreator.CREATEDATE;
import static com.gentics.mesh.core.field.FieldSchemaCreator.CREATEDATELIST;
import static com.gentics.mesh.core.field.FieldSchemaCreator.CREATEHTML;
import static com.gentics.mesh.core.field.FieldSchemaCreator.CREATEHTMLLIST;
import static com.gentics.mesh.core.field.FieldSchemaCreator.CREATEMICRONODE;
import static com.gentics.mesh.core.field.FieldSchemaCreator.CREATEMICRONODELIST;
import static com.gentics.mesh.core.field.FieldSchemaCreator.CREATENODE;
import static com.gentics.mesh.core.field.FieldSchemaCreator.CREATENODELIST;
import static com.gentics.mesh.core.field.FieldSchemaCreator.CREATENUMBER;
import static com.gentics.mesh.core.field.FieldSchemaCreator.CREATENUMBERLIST;
import static com.gentics.mesh.core.field.FieldSchemaCreator.CREATESTRING;
import static com.gentics.mesh.core.field.FieldSchemaCreator.CREATESTRINGLIST;
import static com.gentics.mesh.core.field.FieldTestHelper.NOOP;
import static com.gentics.mesh.test.<API key>.TRACKING;
import static com.gentics.mesh.test.TestSize.FULL;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertEquals;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeoutException;
import org.junit.Test;
import com.gentics.mesh.FieldUtil;
import com.gentics.mesh.core.data.node.field.HibHtmlField;
import com.gentics.mesh.core.field.html.HtmlFieldTestHelper;
import com.gentics.mesh.test.MeshTestSetting;
import com.gentics.mesh.util.IndexOptionHelper;
@MeshTestSetting(elasticsearch = TRACKING, testSize = FULL, startServer = false)
public class <API key> extends <API key> implements HtmlFieldTestHelper {
@Test
@Override
public void testRemove() throws Exception {
removeField(CREATEHTML, FILLTEXT, FETCH);
}
@Test
@Override
public void testChangeToBinary() throws Exception {
changeType(CREATEHTML, FILLTEXT, FETCH, CREATEBINARY, (container, name) -> {
assertThat(container.getBinary(name)).as(NEWFIELD).isNull();
});
}
@Test
@Override
public void <API key>() throws Exception {
changeType(CREATEHTML, NOOP, FETCH, CREATEBINARY, (container, name) -> {
assertThat(container.getBinary(name)).as(NEWFIELD).isNull();
});
}
@Test
@Override
public void testChangeToBoolean() throws Exception {
changeType(CREATEHTML, FILLTRUE, FETCH, CREATEBOOLEAN, (container, name) -> {
assertThat(container.getBoolean(name)).as(NEWFIELD).isNotNull();
assertThat(container.getBoolean(name).getBoolean()).as(NEWFIELDVALUE).isEqualTo(true);
});
changeType(CREATEHTML, FILLFALSE, FETCH, CREATEBOOLEAN, (container, name) -> {
assertThat(container.getBoolean(name)).as(NEWFIELD).isNotNull();
assertThat(container.getBoolean(name).getBoolean()).as(NEWFIELDVALUE).isEqualTo(false);
});
changeType(CREATEHTML, FILL1, FETCH, CREATEBOOLEAN, (container, name) -> {
assertThat(container.getBoolean(name)).as(NEWFIELD).isNotNull();
assertThat(container.getBoolean(name).getBoolean()).as(NEWFIELDVALUE).isEqualTo(true);
});
changeType(CREATEHTML, FILL0, FETCH, CREATEBOOLEAN, (container, name) -> {
assertThat(container.getBoolean(name)).as(NEWFIELD).isNotNull();
assertThat(container.getBoolean(name).getBoolean()).as(NEWFIELDVALUE).isEqualTo(false);
});
changeType(CREATEHTML, FILLTEXT, FETCH, CREATEBOOLEAN, (container, name) -> {
assertThat(container.getBoolean(name)).as(NEWFIELD).isNull();
});
}
@Test
@Override
public void <API key>() throws Exception {
changeType(CREATEHTML, NOOP, FETCH, CREATEBOOLEAN, (container, name) -> {
assertThat(container.getBoolean(name)).as(NEWFIELD).isNull();
});
}
@Test
@Override
public void <API key>() throws Exception {
changeType(CREATEHTML, FILLTRUE, FETCH, CREATEBOOLEANLIST, (container, name) -> {
assertThat(container.getBooleanList(name)).as(NEWFIELD).isNotNull();
assertThat(container.getBooleanList(name).getValues()).as(NEWFIELDVALUE).containsExactly(true);
});
changeType(CREATEHTML, FILLFALSE, FETCH, CREATEBOOLEANLIST, (container, name) -> {
assertThat(container.getBooleanList(name)).as(NEWFIELD).isNotNull();
assertThat(container.getBooleanList(name).getValues()).as(NEWFIELDVALUE).containsExactly(false);
});
changeType(CREATEHTML, FILL1, FETCH, CREATEBOOLEANLIST, (container, name) -> {
assertThat(container.getBooleanList(name)).as(NEWFIELD).isNotNull();
assertThat(container.getBooleanList(name).getValues()).as(NEWFIELDVALUE).containsExactly(true);
});
changeType(CREATEHTML, FILL0, FETCH, CREATEBOOLEANLIST, (container, name) -> {
assertThat(container.getBooleanList(name)).as(NEWFIELD).isNotNull();
assertThat(container.getBooleanList(name).getValues()).as(NEWFIELDVALUE).containsExactly(false);
});
changeType(CREATEHTML, FILLTEXT, FETCH, CREATEBOOLEANLIST, (container, name) -> {
assertThat(container.getBooleanList(name)).as(NEWFIELD).isNull();
});
}
@Test
@Override
public void <API key>() throws Exception {
changeType(CREATEHTML, NOOP, FETCH, CREATEBOOLEANLIST, (container, name) -> {
assertThat(container.getBooleanList(name)).as(NEWFIELD).isNull();
});
}
@Test
@Override
public void testChangeToDate() throws Exception {
changeType(CREATEHTML, FILL0, FETCH, CREATEDATE, (container, name) -> {
assertThat(container.getDate(name)).as(NEWFIELD).isNotNull();
assertThat(container.getDate(name).getDate()).as(NEWFIELDVALUE).isEqualTo(0L);
});
changeType(CREATEHTML, FILL1, FETCH, CREATEDATE, (container, name) -> {
assertThat(container.getDate(name)).as(NEWFIELD).isNotNull();
// Internally timestamps are stored in miliseconds
assertThat(container.getDate(name).getDate()).as(NEWFIELDVALUE).isEqualTo(1000L);
});
changeType(CREATEHTML, FILLTEXT, FETCH, CREATEDATE, (container, name) -> {
assertThat(container.getDate(name)).as(NEWFIELD).isNull();
});
}
@Test
@Override
public void <API key>() throws Exception {
changeType(CREATEHTML, NOOP, FETCH, CREATEDATE, (container, name) -> {
assertThat(container.getDate(name)).as(NEWFIELD).isNull();
});
}
@Test
@Override
public void <API key>() throws Exception {
changeType(CREATEHTML, FILL0, FETCH, CREATEDATELIST, (container, name) -> {
assertThat(container.getDateList(name)).as(NEWFIELD).isNotNull();
assertThat(container.getDateList(name).getValues()).as(NEWFIELDVALUE).containsExactly(0L);
});
changeType(CREATEHTML, FILL1, FETCH, CREATEDATELIST, (container, name) -> {
assertThat(container.getDateList(name)).as(NEWFIELD).isNotNull();
// Internally timestamps are stored in miliseconds
assertThat(container.getDateList(name).getValues()).as(NEWFIELDVALUE).containsExactly(1000L);
});
changeType(CREATEHTML, FILLTEXT, FETCH, CREATEDATELIST, (container, name) -> {
assertThat(container.getDateList(name)).as(NEWFIELD).isNull();
});
}
@Test
@Override
public void <API key>() throws Exception {
changeType(CREATEHTML, NOOP, FETCH, CREATEDATELIST, (container, name) -> {
assertThat(container.getDateList(name)).as(NEWFIELD).isNull();
});
}
@Test
@Override
public void testChangeToHtml() throws Exception {
changeType(CREATEHTML, FILLTEXT, FETCH, CREATEHTML, (container, name) -> {
assertThat(container.getHtml(name)).as(NEWFIELD).isNotNull();
assertThat(container.getHtml(name).getHTML()).as(NEWFIELDVALUE).isEqualTo("<b>HTML</b> content");
});
}
@Test
@Override
public void <API key>() throws Exception {
changeType(CREATEHTML, NOOP, FETCH, CREATEHTML, (container, name) -> {
assertThat(container.getHtml(name)).as(NEWFIELD).isNull();
});
}
@Test
@Override
public void <API key>() throws Exception {
changeType(CREATEHTML, FILLTEXT, FETCH, CREATEHTMLLIST, (container, name) -> {
assertThat(container.getHTMLList(name)).as(NEWFIELD).isNotNull();
assertThat(container.getHTMLList(name).getValues()).as(NEWFIELDVALUE).containsExactly("<b>HTML</b> content");
});
}
@Test
@Override
public void <API key>() throws Exception {
changeType(CREATEHTML, NOOP, FETCH, CREATEHTMLLIST, (container, name) -> {
assertThat(container.getHTMLList(name)).as(NEWFIELD).isNull();
});
}
@Test
@Override
public void <API key>() throws Exception {
changeType(CREATEHTML, FILLTEXT, FETCH, CREATEMICRONODE, (container, name) -> {
assertThat(container.getMicronode(name)).as(NEWFIELD).isNull();
});
}
@Test
@Override
public void <API key>() throws Exception {
changeType(CREATEHTML, NOOP, FETCH, CREATEMICRONODE, (container, name) -> {
assertThat(container.getMicronode(name)).as(NEWFIELD).isNull();
});
}
@Test
@Override
public void <API key>() throws Exception {
changeType(CREATEHTML, FILLTEXT, FETCH, CREATEMICRONODELIST, (container, name) -> {
assertThat(container.getMicronodeList(name)).as(NEWFIELD).isNull();
});
}
@Test
@Override
public void <API key>() throws Exception {
changeType(CREATEHTML, NOOP, FETCH, CREATEMICRONODELIST, (container, name) -> {
assertThat(container.getMicronodeList(name)).as(NEWFIELD).isNull();
});
}
@Test
@Override
public void testChangeToNode() throws Exception {
changeType(CREATEHTML, FILLTEXT, FETCH, CREATENODE, (container, name) -> {
assertThat(container.getNode(name)).as(NEWFIELD).isNull();
});
}
@Test
@Override
public void <API key>() throws Exception {
changeType(CREATEHTML, NOOP, FETCH, CREATENODE, (container, name) -> {
assertThat(container.getNode(name)).as(NEWFIELD).isNull();
});
}
@Test
@Override
public void <API key>() throws Exception {
changeType(CREATEHTML, FILLTEXT, FETCH, CREATENODELIST, (container, name) -> {
assertThat(container.getNodeList(name)).as(NEWFIELD).isNull();
});
}
@Test
@Override
public void <API key>() throws Exception {
changeType(CREATEHTML, NOOP, FETCH, CREATENODELIST, (container, name) -> {
assertThat(container.getNodeList(name)).as(NEWFIELD).isNull();
});
}
@Test
@Override
public void testChangeToNumber() throws Exception {
changeType(CREATEHTML, FILL0, FETCH, CREATENUMBER, (container, name) -> {
assertThat(container.getNumber(name)).as(NEWFIELD).isNotNull();
assertThat(container.getNumber(name).getNumber().longValue()).as(NEWFIELDVALUE).isEqualTo(0L);
});
changeType(CREATEHTML, FILL1, FETCH, CREATENUMBER, (container, name) -> {
assertThat(container.getNumber(name)).as(NEWFIELD).isNotNull();
assertThat(container.getNumber(name).getNumber().longValue()).as(NEWFIELDVALUE).isEqualTo(1L);
});
changeType(CREATEHTML, FILLTEXT, FETCH, CREATENUMBER, (container, name) -> {
assertThat(container.getNumber(name)).as(NEWFIELD).isNull();
});
}
@Test
@Override
public void <API key>() throws Exception {
changeType(CREATEHTML, NOOP, FETCH, CREATENUMBER, (container, name) -> {
assertThat(container.getNumber(name)).as(NEWFIELD).isNull();
});
}
@Test
@Override
public void <API key>() throws Exception {
changeType(CREATEHTML, FILL0, FETCH, CREATENUMBERLIST, (container, name) -> {
assertThat(container.getNumberList(name)).as(NEWFIELD).isNotNull();
assertThat(container.getNumberList(name).getValues()).as(NEWFIELDVALUE).containsExactly(0L);
});
changeType(CREATEHTML, FILL1, FETCH, CREATENUMBERLIST, (container, name) -> {
assertThat(container.getNumberList(name)).as(NEWFIELD).isNotNull();
assertThat(container.getNumberList(name).getValues()).as(NEWFIELDVALUE).containsExactly(1L);
});
changeType(CREATEHTML, FILLTEXT, FETCH, CREATENUMBERLIST, (container, name) -> {
assertThat(container.getNumberList(name)).as(NEWFIELD).isNull();
});
}
@Test
@Override
public void <API key>() throws Exception {
changeType(CREATEHTML, NOOP, FETCH, CREATENUMBERLIST, (container, name) -> {
assertThat(container.getNumberList(name)).as(NEWFIELD).isNull();
});
}
@Test
@Override
public void testChangeToString() throws Exception {
changeType(CREATEHTML, FILLTEXT, FETCH, CREATESTRING, (container, name) -> {
assertThat(container.getString(name)).as(NEWFIELD).isNotNull();
assertThat(container.getString(name).getString()).as(NEWFIELDVALUE).isEqualTo("<b>HTML</b> content");
});
}
@Test
@Override
public void <API key>() throws Exception {
changeType(CREATEHTML, NOOP, FETCH, CREATESTRING, (container, name) -> {
assertThat(container.getString(name)).as(NEWFIELD).isNull();
});
}
@Test
@Override
public void <API key>() throws Exception {
changeType(CREATEHTML, FILLTEXT, FETCH, CREATESTRINGLIST, (container, name) -> {
assertThat(container.getStringList(name)).as(NEWFIELD).isNotNull();
assertThat(container.getStringList(name).getValues()).as(NEWFIELDVALUE).containsExactly("<b>HTML</b> content");
});
}
@Test
@Override
public void <API key>() throws Exception {
changeType(CREATEHTML, NOOP, FETCH, CREATESTRINGLIST, (container, name) -> {
assertThat(container.getStringList(name)).as(NEWFIELD).isNull();
});
}
@Test
public void <API key>() throws <API key>, ExecutionException, TimeoutException {
changeType(CREATEHTML, FILLLONGTEXT, FETCH,
name -> FieldUtil.<API key>(name).setElasticsearch(IndexOptionHelper.getRawFieldOption()),
(container, name) -> {
HibHtmlField htmlField = container.getHtml(name);
assertEquals("The html field should not be truncated.", 40_000, htmlField.getHTML().length());
<API key>();
assertThat(<API key>()).recordedStoreEvents(1);
});
}
}
|
package fundamental.games.metropolis.connection.bluetooth;
import android.bluetooth.BluetoothSocket;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.UUID;
import fundamental.games.metropolis.connection.global.MessagesQueue;
import fundamental.games.metropolis.connection.serializable.PlayerInitData;
import fundamental.games.metropolis.global.WidgetsData;
public class <API key> extends BluetoothConnection
{
private ObjectOutputStream writer;
private ObjectInputStream reader;
|
// Reset
$('.touch .client-wrap').click(function(event){
var target = $( event.target );
if ( target.hasClass( "client-close" ) ) {
$('.client-wrap div.client').addClass('reset');
}
else{
$('.client-wrap div.client').removeClass('reset');
}
});
// David Walsh simple lazy loading
[].forEach.call(document.querySelectorAll('img[data-src]'), function(img) {
img.setAttribute('src', img.getAttribute('data-src'));
img.onload = function() {
img.removeAttribute('data-src');
};
});
|
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_51) on Sun Apr 20 22:40:20 SAST 2014 -->
<title>Uses of Interface za.co.neilson.sqlite.orm.<API key></title>
<meta name="date" content="2014-04-20">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Interface za.co.neilson.sqlite.orm.<API key>";
}
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="topNav"><a name="navbar_top">
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><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="../../../../../../za/co/neilson/sqlite/orm/<API key>.html" title="interface in za.co.neilson.sqlite.orm">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="../../../../../../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?za/co/neilson/sqlite/orm/class-use/<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>
<a name="skip-navbar_top">
</a></div>
<div class="header">
<h2 title="Uses of Interface za.co.neilson.sqlite.orm.<API key>" class="title">Uses of Interface<br>za.co.neilson.sqlite.orm.<API key></h2>
</div>
<div class="classUseContainer">
<ul class="blockList">
<li class="blockList">
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation">
<caption><span>Packages that use <a href="../../../../../../za/co/neilson/sqlite/orm/<API key>.html" title="interface in za.co.neilson.sqlite.orm"><API key></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="#za.co.neilson.sqlite.orm">za.co.neilson.sqlite.orm</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="za.co.neilson.sqlite.orm">
</a>
<h3>Uses of <a href="../../../../../../za/co/neilson/sqlite/orm/<API key>.html" title="interface in za.co.neilson.sqlite.orm"><API key></a> in <a href="../../../../../../za/co/neilson/sqlite/orm/package-summary.html">za.co.neilson.sqlite.orm</a></h3>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing fields, and an explanation">
<caption><span>Fields in <a href="../../../../../../za/co/neilson/sqlite/orm/package-summary.html">za.co.neilson.sqlite.orm</a> declared as <a href="../../../../../../za/co/neilson/sqlite/orm/<API key>.html" title="interface in za.co.neilson.sqlite.orm"><API key></a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>private <a href="../../../../../../za/co/neilson/sqlite/orm/<API key>.html" title="interface in za.co.neilson.sqlite.orm"><API key></a><<a href="../../../../../../za/co/neilson/sqlite/orm/DatabaseModel.html" title="type parameter in DatabaseModel">R</a>,<a href="../../../../../../za/co/neilson/sqlite/orm/DatabaseModel.html" title="type parameter in DatabaseModel">C</a>></code></td>
<td class="colLast"><span class="strong">DatabaseModel.</span><code><strong><a href="../../../../../../za/co/neilson/sqlite/orm/DatabaseModel.html#<API key>"><API key></a></strong></code> </td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../../za/co/neilson/sqlite/orm/package-summary.html">za.co.neilson.sqlite.orm</a> that return <a href="../../../../../../za/co/neilson/sqlite/orm/<API key>.html" title="interface in za.co.neilson.sqlite.orm"><API key></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="../../../../../../za/co/neilson/sqlite/orm/<API key>.html" title="interface in za.co.neilson.sqlite.orm"><API key></a><<a href="../../../../../../za/co/neilson/sqlite/orm/DatabaseModel.html" title="type parameter in DatabaseModel">R</a>,<a href="../../../../../../za/co/neilson/sqlite/orm/DatabaseModel.html" title="type parameter in DatabaseModel">C</a>></code></td>
<td class="colLast"><span class="strong">DatabaseModel.</span><code><strong><a href="../../../../../../za/co/neilson/sqlite/orm/DatabaseModel.html#<API key>()"><API key></a></strong>()</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected abstract <a href="../../../../../../za/co/neilson/sqlite/orm/<API key>.html" title="interface in za.co.neilson.sqlite.orm"><API key></a><<a href="../../../../../../za/co/neilson/sqlite/orm/DatabaseModel.html" title="type parameter in DatabaseModel">R</a>,<a href="../../../../../../za/co/neilson/sqlite/orm/DatabaseModel.html" title="type parameter in DatabaseModel">C</a>></code></td>
<td class="colLast"><span class="strong">DatabaseModel.</span><code><strong><a href="../../../../../../za/co/neilson/sqlite/orm/DatabaseModel.html#<API key>(java.lang.Object...)"><API key></a></strong>(java.lang.Object... args)</code> </td>
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="bottomNav"><a name="navbar_bottom">
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="<API key>">
</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="../../../../../../za/co/neilson/sqlite/orm/<API key>.html" title="interface in za.co.neilson.sqlite.orm">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="../../../../../../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?za/co/neilson/sqlite/orm/class-use/<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>
<a name="skip-navbar_bottom">
</a></div>
</body>
</html>
|
package bookshop2.client.paymentService;
import java.util.List;
import org.aries.message.Message;
import org.aries.message.MessageInterceptor;
import org.aries.util.ExceptionUtil;
import bookshop2.Payment;
@SuppressWarnings("serial")
public class <API key> extends MessageInterceptor<PaymentService> implements PaymentService {
@Override
public List<Payment> <API key>() {
try {
log.info("
Message request = createMessage("<API key>");
Message response = getProxy().invoke(request);
List<Payment> result = response.getPart("result");
return result;
} catch (Exception e) {
throw ExceptionUtil.rewrap(e);
}
}
@Override
public Payment <API key>(Long id) {
try {
log.info("
Message request = createMessage("<API key>");
request.addPart("id", id);
Message response = getProxy().invoke(request);
Payment result = response.getPart("result");
return result;
} catch (Exception e) {
throw ExceptionUtil.rewrap(e);
}
}
@Override
public List<Payment> <API key>(int pageIndex, int pageSize) {
try {
log.info("
Message request = createMessage("<API key>");
request.addPart("pageIndex", pageIndex);
request.addPart("pageSize", pageSize);
Message response = getProxy().invoke(request);
List<Payment> result = response.getPart("result");
return result;
} catch (Exception e) {
throw ExceptionUtil.rewrap(e);
}
}
@Override
public Long addPaymentRecord(Payment payment) {
try {
log.info("
Message request = createMessage("addPaymentRecord");
request.addPart("payment", payment);
Message response = getProxy().invoke(request);
Long result = response.getPart("result");
return result;
} catch (Exception e) {
throw ExceptionUtil.rewrap(e);
}
}
@Override
public void savePaymentRecord(Payment payment) {
try {
log.info("
Message request = createMessage("savePaymentRecord");
request.addPart("payment", payment);
getProxy().invoke(request);
} catch (Exception e) {
throw ExceptionUtil.rewrap(e);
}
}
@Override
public void <API key>() {
try {
log.info("
Message request = createMessage("<API key>");
getProxy().invoke(request);
} catch (Exception e) {
throw ExceptionUtil.rewrap(e);
}
}
@Override
public void removePaymentRecord(Payment payment) {
try {
log.info("
Message request = createMessage("removePaymentRecord");
request.addPart("payment", payment);
getProxy().invoke(request);
} catch (Exception e) {
throw ExceptionUtil.rewrap(e);
}
}
@Override
public void <API key>() {
try {
log.info("
Message request = createMessage("<API key>");
getProxy().invoke(request);
} catch (Exception e) {
throw ExceptionUtil.rewrap(e);
}
}
}
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http:
<html lang="en-GB" xml:lang="en-GB" xmlns="http:
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Statistics of iobj in UD_Chinese-GSD</title>
<link rel="root" href=""/> <!-- for JS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="../../css/jquery-ui-redmond.css"/>
<link rel="stylesheet" type="text/css" href="../../css/style.css"/>
<link rel="stylesheet" type="text/css" href="../../css/style-vis.css"/>
<link rel="stylesheet" type="text/css" href="../../css/hint.css"/>
<script type="text/javascript" src="../../lib/ext/head.load.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/3.2.2/anchor.min.js"></script>
<script>document.addEventListener("DOMContentLoaded", function(event) {anchors.add();});</script>
<!-- DZ 2021-01-22: I am temporarily hiding the search field to find out whether it slows down loading of the title page.
<script>
(function() {
var cx = '<API key>:dl1mehhcgbo';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
var s = document.<API key>('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<!-- <link rel="shortcut icon" href="favicon.ico"/> -->
</head>
<body>
<div id="main" class="center">
<div id="hp-header">
<table width="100%"><tr><td width="50%">
<span class="header-text"><a href="http://<API key>.org/#language-">home</a></span>
<span class="header-text"><a href="https://github.com/<API key>/docs/edit/pages-source/treebanks/zh_gsd/zh_gsd-dep-iobj.md" target="#">edit page</a></span>
<span class="header-text"><a href="https://github.com/<API key>/docs/issues">issue tracker</a></span>
</td><td>
<gcse:search></gcse:search>
</td></tr></table>
</div>
<hr/>
<div class="v2complete">
This page pertains to UD version 2.
</div>
<div id="content">
<noscript>
<div id="noscript">
It appears that you have Javascript disabled.
Please consider enabling Javascript for this page to see the visualizations.
</div>
</noscript>
<!-- The content may include scripts and styles, hence we must load the shared libraries before the content. -->
<script type="text/javascript">
console.time('loading libraries');
var root = '../../'; // filled in by jekyll
head.js(
// External libraries
// DZ: Copied from embedding.html. I don't know which one is needed for what, so I'm currently keeping them all.
root + 'lib/ext/jquery.min.js',
root + 'lib/ext/jquery.svg.min.js',
root + 'lib/ext/jquery.svgdom.min.js',
root + 'lib/ext/jquery.timeago.js',
root + 'lib/ext/jquery-ui.min.js',
root + 'lib/ext/waypoints.min.js',
root + 'lib/ext/jquery.address.min.js'
);
</script>
<h2 id="<API key>">Treebank Statistics: UD_Chinese-GSD: Relations: <code class="language-plaintext highlighter-rouge">iobj</code></h2>
<p>This relation is universal.</p>
<p>78 nodes (0%) are attached to their parents as <code class="language-plaintext highlighter-rouge">iobj</code>.</p>
<p>78 instances of <code class="language-plaintext highlighter-rouge">iobj</code> (100%) are left-to-right (parent precedes child).
Average distance between parent and child is 2.12820512820513.</p>
<p>The following 4 pairs of parts of speech are connected with <code class="language-plaintext highlighter-rouge">iobj</code>: <tt><a href="zh_gsd-pos-VERB.html">VERB</a></tt>-<tt><a href="zh_gsd-pos-NOUN.html">NOUN</a></tt> (49; 63% instances), <tt><a href="zh_gsd-pos-VERB.html">VERB</a></tt>-<tt><a href="zh_gsd-pos-PROPN.html">PROPN</a></tt> (11; 14% instances), <tt><a href="zh_gsd-pos-VERB.html">VERB</a></tt>-<tt><a href="zh_gsd-pos-PART.html">PART</a></tt> (10; 13% instances), <tt><a href="zh_gsd-pos-VERB.html">VERB</a></tt>-<tt><a href="zh_gsd-pos-PRON.html">PRON</a></tt> (8; 10% instances).</p>
<pre><code class="language-conllu"># visual-style 22 bgColor:blue
# visual-style 22 fgColor:white
# visual-style 20 bgColor:blue
# visual-style 20 fgColor:white
# visual-style 20 22 iobj color:blue
1 2009 2009 NUM CD NumType=Card 2 nummod _ SpaceAfter=No
2 NOUN NNB _ 4 clf _ SpaceAfter=No
3 5 5 NUM CD NumType=Card 4 nummod _ SpaceAfter=No
4 NOUN NNB _ 9 nmod:tmod _ SpaceAfter=No
5 PUNCT , _ 9 punct _ SpaceAfter=No
6 NOUN NN _ 7 compound _ SpaceAfter=No
7 PART SFN _ 9 nsubj _ SpaceAfter=No
8 VERB VV _ 9 advcl _ SpaceAfter=No
9 VERB VV _ 0 root _ SpaceAfter=No
10 PUNCT , _ 9 punct _ SpaceAfter=No
11 VERB VV _ 20 advcl _ SpaceAfter=No
12 PROPN NNP _ 13 compound _ SpaceAfter=No
13 PART SFN _ 11 obj _ SpaceAfter=No
14 PUNCT , _ 20 punct _ SpaceAfter=No
15 ADP BB _ 18 case _ SpaceAfter=No
16 PRON PRP Person=3 18 nmod _ SpaceAfter=No
17 NOUN NN _ 18 nmod _ SpaceAfter=No
18 NOUN NN _ 20 obl:patient _ SpaceAfter=No
19 NOUN NN _ 20 advmod _ SpaceAfter=No
20 VERB VV _ 9 xcomp _ SpaceAfter=No
21 PROPN NNP _ 22 nmod _ SpaceAfter=No
22 NOUN NN _ 20 iobj _ SpaceAfter=No
23 PUNCT . _ 20 punct _ SpaceAfter=No
</code></pre>
<pre><code class="language-conllu"># visual-style 10 bgColor:blue
# visual-style 10 fgColor:white
# visual-style 9 bgColor:blue
# visual-style 9 fgColor:white
# visual-style 9 10 iobj color:blue
1 PROPN NNP _ 2 nmod _ SpaceAfter=No
2 NOUN NN _ 9 nsubj _ SpaceAfter=No
3 VERB VV _ 9 advcl _ SpaceAfter=No
4 AUX AS Aspect=Perf 3 aux _ SpaceAfter=No
5 ADV RB _ 6 advmod _ SpaceAfter=No
6 ADJ JJ _ 8 amod _ SpaceAfter=No
7 PART DEC _ 6 mark:rel _ SpaceAfter=No
8 NOUN NN _ 3 obj _ SpaceAfter=No
9 VERB VV _ 0 root _ SpaceAfter=No
10 PROPN NNP _ 9 iobj _ SpaceAfter=No
11 ADP IN _ 15 det _ SpaceAfter=No
12 PROPN NNP _ 13 nsubj _ SpaceAfter=No
13 VERB VV _ 11 ccomp _ SpaceAfter=No
14 PART DEC Case=Gen 11 case _ SpaceAfter=No
15 NOUN NN _ 9 obj _ SpaceAfter=No
16 PUNCT . _ 9 punct _ SpaceAfter=No
</code></pre>
<pre><code class="language-conllu"># visual-style 14 bgColor:blue
# visual-style 14 fgColor:white
# visual-style 12 bgColor:blue
# visual-style 12 fgColor:white
# visual-style 12 14 iobj color:blue
1 ADP IN _ 3 case _ SpaceAfter=No
2 1555 1555 NUM CD NumType=Card 3 nummod _ SpaceAfter=No
3 NOUN NNB _ 12 obl _ SpaceAfter=No
4 PUNCT , _ 12 punct _ SpaceAfter=No
5 PROPN NNP _ 6 nmod _ SpaceAfter=No
6 NOUN NN _ 12 nsubj _ SpaceAfter=No
7 VERB VV _ 12 advcl _ SpaceAfter=No
8 PROPN NNP _ 10 nmod _ SpaceAfter=No
9 NOUN NN _ 10 nmod _ SpaceAfter=No
10 NOUN NN _ 7 obj _ SpaceAfter=No
11 PUNCT , _ 12 punct _ SpaceAfter=No
12 VERB VV _ 0 root _ SpaceAfter=No
13 PROPN NNP _ 14 nsubj _ SpaceAfter=No
14 PART SFN _ 12 iobj _ SpaceAfter=No
15 NOUN NN _ 16 nmod _ SpaceAfter=No
16 NOUN NN _ 12 obj _ SpaceAfter=No
17 PUNCT . _ 12 punct _ SpaceAfter=No
</code></pre>
</div>
<!-- support for embedded visualizations -->
<script type="text/javascript">
var root = '../../'; // filled in by jekyll
head.js(
// We assume that external libraries such as jquery.min.js have already been loaded outside!
// (See _layouts/base.html.)
// brat helper modules
root + 'lib/brat/configuration.js',
root + 'lib/brat/util.js',
root + 'lib/brat/annotation_log.js',
root + 'lib/ext/webfont.js',
// brat modules
root + 'lib/brat/dispatcher.js',
root + 'lib/brat/url_monitor.js',
root + 'lib/brat/visualizer.js',
// embedding configuration
root + 'lib/local/config.js',
// project-specific collection data
root + 'lib/local/collections.js',
// Annodoc
root + 'lib/annodoc/annodoc.js',
// NOTE: non-local libraries
'https://spyysalo.github.io/conllu.js/conllu.js'
);
var webFontURLs = [
// root + 'static/fonts/Astloch-Bold.ttf',
root + 'static/fonts/<API key>.ttf',
root + 'static/fonts/<API key>.ttf'
];
var setupTimeago = function() {
jQuery("time.timeago").timeago();
};
head.ready(function() {
setupTimeago();
// mark current collection (filled in by Jekyll)
Collections.listing['_current'] = '';
// perform all embedding and support functions
Annodoc.activate(Config.bratCollData, Collections.listing);
});
</script>
<!-- google analytics -->
<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-55233688-1', 'auto');
ga('send', 'pageview');
</script>
<div id="footer">
<p class="footer-text">© 2014–2021
<a href="http://<API key>.org/introduction.html#contributors" style="color:gray">Universal Dependencies contributors</a>.
Site powered by <a href="http:
</div>
</div>
</body>
</html>
|
using Microsoft.AspNetCore.Antiforgery;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Newtonsoft.Json.Linq;
using System;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using tracktor.app.Models;
namespace tracktor.app
{
[Produces("application/json")]
[Route("api/account")]
public class AccountController : Controller
{
private readonly UserManager<ApplicationUser> _userManager;
private readonly SignInManager<ApplicationUser> _signInManager;
private readonly ILogger _logger;
private readonly IConfiguration _config;
private readonly IAntiforgery _antiForgery;
private readonly IEmailSender _emailSender;
private readonly ITracktorService _client;
public AccountController(
UserManager<ApplicationUser> userManager,
SignInManager<ApplicationUser> signInManager,
ILoggerFactory loggerFactory,
IAntiforgery antiForgery,
IConfiguration config,
IEmailSender emailSender,
ITracktorService client)
{
_userManager = userManager;
_signInManager = signInManager;
_logger = loggerFactory.CreateLogger<AccountController>();
_antiForgery = antiForgery;
_config = config;
_emailSender = emailSender;
_client = client;
}
private async Task<LoginDTO> CreateResponse(ApplicationUser user)
{
HttpContext.User = user != null ? await _signInManager.<API key>(user) : null;
var roles = user != null ? await _userManager.GetRolesAsync(user) : null;
var afTokenSet = _antiForgery.GetAndStoreTokens(Request.HttpContext);
return new LoginDTO
{
id = user?.Id,
afToken = afTokenSet.RequestToken,
afHeader = afTokenSet.HeaderName,
email = user?.Email,
roles = roles,
timeZone = user?.TimeZone
};
}
private static bool IsPopulated(string v)
{
return !string.IsNullOrWhiteSpace(v);
}
<summary>
Registers a new user
</summary>
<param name="dto">Required fields: email, password</param>
<returns>LoginDTO</returns>
[HttpPost("register")]
[AllowAnonymous]
public async Task<IActionResult> Register([FromBody]AccountDTO dto)
{
if(!IsPopulated(dto?.email) || !IsPopulated(dto?.password))
{
return BadRequest();
}
if(!EmailHelpers.Validate(dto.Username))
{
return BadRequest();
}
if(!Boolean.Parse(_config["Tracktor:RegistrationEnabled"]))
{
return BadRequest("@<API key>");
}
if (_config["Tracktor:RegistrationCode"] != dto.code)
{
return BadRequest("@BadCode");
}
var user = new ApplicationUser { UserName = dto.Username, Email = dto.Username };
var result = await _userManager.CreateAsync(user, dto.password);
if (result.Succeeded)
{
user = await _userManager.FindByEmailAsync(dto.Username);
await _userManager.AddToRoleAsync(user, "User");
await _signInManager.SignInAsync(user, isPersistent: true);
_logger.LogInformation(3, $"User {dto.Username} created a new account with a password");
// create user in tracktor
user.TUserID = await _client.CreateUserAsync(user.Id);
user.TimeZone = dto.timezone;
await _userManager.UpdateAsync(user);
return Ok(await CreateResponse(user));
}
else if(result.Errors != null && result.Errors.Any(e => e.Code == "DuplicateUserName"))
{
return BadRequest("@UsernameTaken");
}
else
{
_logger.LogWarning($"Unable to register user {dto.Username}: {string.Join(", ", result.Errors.Select(e => e.Description))}");
}
return BadRequest("@UnableToRegister");
}
<summary>
Creates or logs in a user using external provider
</summary>
<param name="dto">Required fields: provider, code</param>
<returns>LoginDTO</returns>
[HttpPost("external")]
[AllowAnonymous]
public async Task<IActionResult> ExternalLogin([FromBody]AccountDTO dto)
{
if (!IsPopulated(dto?.code) || !IsPopulated(dto?.provider))
{
return BadRequest();
}
var appVerified = false;
var emailVerified = false;
switch (dto.provider)
{
case "Facebook":
{
try
{
var hc = new HttpClient();
var verifyUrl = _config["Facebook:VerifyUrl"];
var appId = _config["Facebook:AppId"];
var userUrl = _config["Facebook:UserUrl"];
if (string.IsNullOrWhiteSpace(verifyUrl) || string.IsNullOrWhiteSpace(userUrl))
{
return BadRequest("@ProviderNotEnabled");
}
var appString = await hc.GetStringAsync(verifyUrl + dto.code);
var userString = await hc.GetStringAsync(userUrl + dto.code);
if (!string.IsNullOrWhiteSpace(appString) && !string.IsNullOrWhiteSpace(userString))
{
var appResult = Newtonsoft.Json.JsonConvert.DeserializeObject(appString) as JObject;
var userResult = Newtonsoft.Json.JsonConvert.DeserializeObject(userString) as JObject;
if (userResult["email"] != null)
{
dto.email = userResult["email"].ToString();
emailVerified = true;
}
if (appResult["id"] != null && appResult["id"].ToString() == appId)
{
appVerified = true;
}
}
} catch(Exception ex)
{
_logger.LogError($"Unable to log via {dto.provider}: {ex.Message}");
return BadRequest("@UnableToLogin" + dto.provider);
}
}
break;
default:
return BadRequest("@<API key>");
}
if(string.IsNullOrWhiteSpace(dto.Username) || !emailVerified || !appVerified)
{
return BadRequest("@UnableToLogin" + dto.provider);
}
if (!EmailHelpers.Validate(dto.Username))
{
return BadRequest();
}
// create user if necessary
var user = await _userManager.FindByEmailAsync(dto.Username);
if (user == null)
{
if (!Boolean.Parse(_config["Tracktor:RegistrationEnabled"]))
{
return BadRequest("@<API key>");
}
user = new ApplicationUser { Email = dto.Username, UserName = dto.Username };
await _userManager.CreateAsync(user);
await _userManager.AddToRoleAsync(user, "User");
}
if (await _signInManager.CanSignInAsync(user))
{
await _signInManager.SignInAsync(user, true);
_logger.LogInformation(1, $"User {dto.Username} logged in from {Request.HttpContext.Connection.RemoteIpAddress} via Facebook");
return Ok(await CreateResponse(user));
}
else
{
_logger.LogWarning(2, $"Invalid login attempt for user {dto.Username} from {Request.HttpContext.Connection.RemoteIpAddress}.");
return BadRequest("@UnableToLogin" + dto.provider);
}
}
<summary>
Logs in a user using password
</summary>
<param name="dto">Required fields: email, password</param>
<returns>LoginDTO</returns>
[HttpPost("login")]
[AllowAnonymous]
public async Task<IActionResult> Login([FromBody]AccountDTO dto)
{
if (!IsPopulated(dto?.email) || !IsPopulated(dto?.password))
{
return BadRequest();
}
var result = await _signInManager.PasswordSignInAsync(dto.Username, dto.password, dto.remember, lockoutOnFailure: true);
if (result.Succeeded)
{
var user = await _userManager.FindByEmailAsync(dto.Username);
_logger.LogInformation(1, $"User {dto.Username} logged in from {Request.HttpContext.Connection.RemoteIpAddress}");
return Ok(await CreateResponse(user));
}
if (result.IsLockedOut || result.IsNotAllowed)
{
_logger.LogWarning(2, $"User {dto.Username} is locked out.");
return BadRequest("@LockedOut");
}
else
{
_logger.LogWarning(2, $"Invalid login attempt for user {dto.Username} from {Request.HttpContext.Connection.RemoteIpAddress}.");
return BadRequest("@InvalidAttempt");
}
}
<summary>
Logs out current user
</summary>
<returns>LoginDTO</returns>
[HttpPost("logout")]
[<API key>]
[Authorize]
public async Task<IActionResult> Logout()
{
var userName = User.Identity.Name;
await _signInManager.SignOutAsync();
_logger.LogInformation(4, $"User {userName} logged out");
return Ok(await CreateResponse(null));
}
<summary>
Requests a password reset email
</summary>
<param name="dto">Required fields: email</param>
[HttpPost("forgot")]
[AllowAnonymous]
public async Task<IActionResult> Forgot([FromBody]AccountDTO dto)
{
if (!IsPopulated(dto?.email))
{
return BadRequest();
}
var user = await _userManager.FindByEmailAsync(dto.Username);
if (user == null)
{
return BadRequest("@UnknownUser");
}
var code = await _userManager.<API key>(user);
var callbackUrl = UrlHelperExtensions.Action(Url, "Index", "Home", new { reset = dto.Username, code = code }, HttpContext.Request.Scheme);
_logger.LogInformation(5, $"User {dto.Username} requested a password reset link.");
var subject = dto.messages != null && dto.messages.Length > 0 && !string.IsNullOrWhiteSpace(dto.messages[0]) ? dto.messages[0] : "Tracktor - password reset";
var body = dto.messages != null && dto.messages.Length > 1 && !string.IsNullOrWhiteSpace(dto.messages[1]) ? dto.messages[1] : "Please click the link below to reset your password.";
await _emailSender.SendEmailAsync(dto.Username, subject, body, callbackUrl);
return Ok();
}
<summary>
Changes current user's password
</summary>
<param name="dto">Required fields: password, newPassword</param>
<returns>LoginDTO</returns>
[HttpPost("change")]
[Authorize]
public async Task<IActionResult> Change([FromBody]AccountDTO dto)
{
if (!IsPopulated(dto?.password) || !IsPopulated(dto?.newPassword))
{
return BadRequest();
}
var user = await _userManager.GetUserAsync(User);
if (user == null)
{
// don't reveal anything
return BadRequest("@UnknownUser");
}
var result = await _userManager.ChangePasswordAsync(user, dto.password, dto.newPassword);
if (result.Succeeded)
{
await _signInManager.SignInAsync(user, true);
_logger.LogInformation(6, $"User {user.Email} has successfully changed password.");
return Ok(await CreateResponse(user));
}
return BadRequest("@<API key>");
}
<summary>
Resets current user's password using a reset code
</summary>
<param name="dto">Required fields: email, password, code</param>
<returns>LoginDTO</returns>
[HttpPost("reset")]
[AllowAnonymous]
public async Task<IActionResult> Reset([FromBody]AccountDTO dto)
{
if (!IsPopulated(dto?.email) || !IsPopulated(dto?.password) || !IsPopulated(dto?.code))
{
return BadRequest();
}
var user = await _userManager.FindByEmailAsync(dto.Username);
if (user == null)
{
// don't reveal anything
return Ok();
}
if (_signInManager.IsSignedIn(User))
{
await _signInManager.SignOutAsync();
}
var result = await _userManager.ResetPasswordAsync(user, dto.code, dto.password);
_logger.LogInformation(6, $"User {dto.Username} has successfully reset password.");
await _signInManager.SignInAsync(user, true);
return Ok(await CreateResponse(user));
}
<summary>
Deletes current user and all their data
</summary>
<returns>LoginDTO</returns>
[HttpPost("delete")]
[Authorize]
public async Task<IActionResult> Delete()
{
var user = await _userManager.GetUserAsync(User);
await _signInManager.SignOutAsync();
var result = await _userManager.DeleteAsync(user);
if (result.Succeeded)
{
_logger.LogInformation(6, $"User {user.Email} has been removed.");
}
return Ok(await CreateResponse(null));
}
<summary>
Initiate a new session
</summary>
<returns>LoginDTO</returns>
[HttpGet("handshake")]
[AllowAnonymous]
public async Task<IActionResult> Handshake()
{
if (User.Identity?.IsAuthenticated ?? false)
{
var user = await _userManager.GetUserAsync(User);
return Ok(await CreateResponse(user));
}
return Ok(await CreateResponse(null));
}
}
}
|
using System;
using System.Runtime.CompilerServices;
namespace De.Osthus.Ambeth.Mapping
{
public class <API key>
{
private readonly Object entity;
private readonly Type type;
private int hash;
public <API key>(Object entity, Type type)
{
this.entity = entity;
this.type = type;
hash = RuntimeHelpers.GetHashCode(entity) * 13;
if (type != null)
{
hash += type.GetHashCode() * 23;
}
}
public override bool Equals(Object obj)
{
if (!(obj is <API key>))
{
return false;
}
<API key> otherKey = (<API key>)obj;
bool ee = entity == otherKey.entity;
bool te = type == otherKey.type;
return ee && te;
}
public override int GetHashCode()
{
return hash;
}
}
}
|
<!DOCTYPE html>
<html devsite="">
<head>
<meta name="project_path" value="/dotnet/_project.yaml">
<meta name="book_path" value="/dotnet/_book.yaml">
</head>
<body>
{% verbatim %}
<div>
<article data-uid="Google.Cloud.Asset.V1.BigQueryDestination">
<h1 class="page-title">Class BigQueryDestination
</h1>
<div class="codewrapper">
<pre class="prettyprint"><code>public sealed class BigQueryDestination : IMessage<BigQueryDestination>, IEquatable<BigQueryDestination>, IDeepCloneable<BigQueryDestination>, IBufferMessage, IMessage</code></pre>
</div>
<div class="markdown level0 summary"><p>A BigQuery destination for exporting assets to.</p>
</div>
<div class="inheritance">
<h2>Inheritance</h2>
<span><span class="xref">System.Object</span></span> <span> > </span>
<span class="xref">BigQueryDestination</span>
</div>
<div classs="implements">
<h2>Implements</h2>
<span><span class="xref">Google.Protobuf.IMessage</span><<a class="xref" href="Google.Cloud.Asset.V1.BigQueryDestination.html">BigQueryDestination</a>>,</span>
<span><span class="xref">System.IEquatable</span><<a class="xref" href="Google.Cloud.Asset.V1.BigQueryDestination.html">BigQueryDestination</a>>,</span>
<span><span class="xref">Google.Protobuf.IDeepCloneable</span><<a class="xref" href="Google.Cloud.Asset.V1.BigQueryDestination.html">BigQueryDestination</a>>,</span>
<span><span class="xref">Google.Protobuf.IBufferMessage</span>,</span>
<span><span class="xref">Google.Protobuf.IMessage</span></span>
</div>
<div class="inheritedMembers expandable">
<h2 class="showalways">Inherited Members</h2>
<div>
<span class="xref">System.Object.GetHashCode()</span>
</div>
<div>
<span class="xref">System.Object.GetType()</span>
</div>
<div>
<span class="xref">System.Object.MemberwiseClone()</span>
</div>
<div>
<span class="xref">System.Object.ToString()</span>
</div>
</div>
<h2>Namespace</h2>
<a class="xref" href="Google.Cloud.Asset.V1.html">Google.Cloud.Asset.V1</a>
<h2>Assembly</h2>
<p>Google.Cloud.Asset.V1.dll</p>
<h2 id="constructors">Constructors
</h2>
<a id="<API key>" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.#ctor*"></a>
<h3 id="<API key>" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.#ctor" class="notranslate">BigQueryDestination()</h3>
<div class="codewrapper">
<pre class="prettyprint"><code>public BigQueryDestination()</code></pre>
</div>
<a id="<API key>" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.#ctor*"></a>
<h3 id="Google_Cloud_Asset_V1_BigQueryDestination__ctor_Google_Cloud_Asset_V1_BigQueryDestination_" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.#ctor(Google.Cloud.Asset.V1.BigQueryDestination)" class="notranslate">BigQueryDestination(BigQueryDestination)</h3>
<div class="codewrapper">
<pre class="prettyprint"><code>public BigQueryDestination(BigQueryDestination other)</code></pre>
</div>
<strong>Parameter</strong>
<table class="responsive">
<tbody>
<tr>
<td><strong>Name</strong></td>
<td><strong>Description</strong></td>
</tr>
<tr>
<td><span class="parametername">other</span></td>
<td><code><a class="xref" href="Google.Cloud.Asset.V1.BigQueryDestination.html">BigQueryDestination</a></code><br></td>
</tr>
</tbody>
</table>
<h2 id="properties">Properties
</h2>
<a id="<API key>" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.Dataset*"></a>
<h3 id="<API key>" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.Dataset" class="notranslate">Dataset</h3>
<div class="codewrapper">
<pre class="prettyprint"><code>public string Dataset { get; set; }</code></pre>
</div>
<div class="markdown level1 summary"><p>Required. The BigQuery dataset in format
"projects/projectId/datasets/datasetId", to which the snapshot result
should be exported. If this dataset does not exist, the export call returns
an INVALID_ARGUMENT error.</p>
</div>
<strong>Property Value</strong>
<table class="responsive">
<tbody>
<tr>
<td><strong>Type</strong></td>
<td><strong>Description</strong></td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
<a id="<API key>" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.Force*"></a>
<h3 id="<API key>" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.Force" class="notranslate">Force</h3>
<div class="codewrapper">
<pre class="prettyprint"><code>public bool Force { get; set; }</code></pre>
</div>
<div class="markdown level1 summary"><p>If the destination table already exists and this flag is <code>TRUE</code>, the
table will be overwritten by the contents of assets snapshot. If the flag
is <code>FALSE</code> or unset and the destination table already exists, the export
call returns an INVALID_ARGUMEMT error.</p>
</div>
<strong>Property Value</strong>
<table class="responsive">
<tbody>
<tr>
<td><strong>Type</strong></td>
<td><strong>Description</strong></td>
</tr>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td></td>
</tr>
</tbody>
</table>
<a id="<API key>" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.PartitionSpec*"></a>
<h3 id="<API key>" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.PartitionSpec" class="notranslate">PartitionSpec</h3>
<div class="codewrapper">
<pre class="prettyprint"><code>public PartitionSpec PartitionSpec { get; set; }</code></pre>
</div>
<div class="markdown level1 summary"><p>[partition_spec] determines whether to export to partitioned table(s) and
how to partition the data.</p>
<p>If [partition_spec] is unset or [partition_spec.partition_key] is unset or
<code><API key></code>, the snapshot results will be exported to
non-partitioned table(s). [force] will decide whether to overwrite existing
table(s).</p>
<p>If [partition_spec] is specified. First, the snapshot results will be
written to partitioned table(s) with two additional timestamp columns,
readTime and requestTime, one of which will be the partition key. Secondly,
in the case when any destination table already exists, it will first try to
update existing table's schema as necessary by appending additional
columns. Then, if [force] is <code>TRUE</code>, the corresponding partition will be
overwritten by the snapshot results (data in different partitions will
remain intact); if [force] is unset or <code>FALSE</code>, it will append the data. An
error will be returned if the schema update or data appension fails.</p>
</div>
<strong>Property Value</strong>
<table class="responsive">
<tbody>
<tr>
<td><strong>Type</strong></td>
<td><strong>Description</strong></td>
</tr>
<tr>
<td><a class="xref" href="Google.Cloud.Asset.V1.PartitionSpec.html">PartitionSpec</a></td>
<td></td>
</tr>
</tbody>
</table>
<a id="<API key>" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.<API key>*"></a>
<h3 id="<API key>" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.<API key>" class="notranslate"><API key></h3>
<div class="codewrapper">
<pre class="prettyprint"><code>public bool <API key> { get; set; }</code></pre>
</div>
<div class="markdown level1 summary"><p>If this flag is <code>TRUE</code>, the snapshot results will be written to one or
multiple tables, each of which contains results of one asset type. The
[force] and [partition_spec] fields will apply to each of them.</p>
<p>Field [table] will be concatenated with "<em>" and the asset type names (see
<a href="https:
supported asset types) to construct per-asset-type table names, in which
all non-alphanumeric characters like "." and "/" will be substituted by
"</em>". Example: if field [table] is "mytable" and snapshot results
contain "storage.googleapis.com/Bucket" assets, the corresponding table
name will be "<API key>". If any of these
tables does not exist, a new table with the concatenated name will be
created.</p>
<p>When [content_type] in the ExportAssetsRequest is <code>RESOURCE</code>, the schema of
each table will include RECORD-type columns mapped to the nested fields in
the Asset.resource.data field of that asset type (up to the 15 nested level
BigQuery supports
(<a href="https://cloud.google.com/bigquery/docs/nested-repeated
fields in >15 nested levels will be stored in JSON format string as a child
column of its parent RECORD column.</p>
<p>If error occurs when exporting to any table, the whole export call will
return an error but the export results that already succeed will persist.
Example: if exporting to table_type_A succeeds when exporting to
table_type_B fails during one export call, the results in table_type_A will
persist and there will not be partial results persisting in a table.</p>
</div>
<strong>Property Value</strong>
<table class="responsive">
<tbody>
<tr>
<td><strong>Type</strong></td>
<td><strong>Description</strong></td>
</tr>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td></td>
</tr>
</tbody>
</table>
<a id="<API key>" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.Table*"></a>
<h3 id="<API key>" data-uid="Google.Cloud.Asset.V1.BigQueryDestination.Table" class="notranslate">Table</h3>
<div class="codewrapper">
<pre class="prettyprint"><code>public string Table { get; set; }</code></pre>
</div>
<div class="markdown level1 summary"><p>Required. The BigQuery table to which the snapshot result should be
written. If this table does not exist, a new table with the given name
will be created.</p>
</div>
<strong>Property Value</strong>
<table class="responsive">
<tbody>
<tr>
<td><strong>Type</strong></td>
<td><strong>Description</strong></td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td></td>
</tr>
</tbody>
</table>
</article>
</div>
{% endverbatim %}
</body>
</html>
|
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 generiert
// Generiert: 2020.03.13 um 12:48:52 PM CET
package net.opengis.ows._1;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ReferenceType", propOrder = {
"identifier",
"_abstract",
"format",
"metadata"
})
@XmlSeeAlso({
<API key>.class
})
public class ReferenceType
extends <API key>
{
@XmlElement(name = "Identifier")
protected CodeType identifier;
@XmlElement(name = "Abstract")
protected List<LanguageStringType> _abstract;
@XmlElement(name = "Format")
protected String format;
@XmlElement(name = "Metadata")
protected List<MetadataType> metadata;
/**
* Optional unique identifier of the referenced resource.
*
* @return
* possible object is
* {@link CodeType }
*
*/
public CodeType getIdentifier() {
return identifier;
}
/**
* Legt den Wert der <API key> fest.
*
* @param value
* allowed object is
* {@link CodeType }
*
*/
public void setIdentifier(CodeType value) {
this.identifier = value;
}
public boolean isSetIdentifier() {
return (this.identifier!= null);
}
/**
* Gets the value of the abstract property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the abstract property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAbstract().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link LanguageStringType }
*
*
*/
public List<LanguageStringType> getAbstract() {
if (_abstract == null) {
_abstract = new ArrayList<LanguageStringType>();
}
return this._abstract;
}
public boolean isSetAbstract() {
return ((this._abstract!= null)&&(!this._abstract.isEmpty()));
}
public void unsetAbstract() {
this._abstract = null;
}
/**
* Ruft den Wert der format-Eigenschaft ab.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFormat() {
return format;
}
/**
* Legt den Wert der format-Eigenschaft fest.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFormat(String value) {
this.format = value;
}
public boolean isSetFormat() {
return (this.format!= null);
}
/**
* Optional unordered list of additional metadata about this resource. A list of optional metadata elements for this ReferenceType could be specified in the Implementation Specification for each use of this type in a specific OWS. Gets the value of the metadata property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the metadata property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getMetadata().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link MetadataType }
*
*
*/
public List<MetadataType> getMetadata() {
if (metadata == null) {
metadata = new ArrayList<MetadataType>();
}
return this.metadata;
}
public boolean isSetMetadata() {
return ((this.metadata!= null)&&(!this.metadata.isEmpty()));
}
public void unsetMetadata() {
this.metadata = null;
}
public void setAbstract(List<LanguageStringType> value) {
this._abstract = value;
}
public void setMetadata(List<MetadataType> value) {
this.metadata = value;
}
}
|
package <API key>.ad_hoc
import <API key>.ad_hoc
import org.scalatest.{FunSuite, WordSpecLike}
class GameOfKylesTest extends WordSpecLike {
import GameOfKyles._
implicit val f: (Seq[Pin]) => Set[ad_hoc.GameOfKyles.Pin] = seq2set _
"enum" must {
"1" in {
assert(playGame(Seq(1)))
}
"2" in {
assert(playGame(Seq(2)))
}
"3" in {
assert(playGame(Seq(3)))
}
"10" in {
1 to 10 foreach (i => assert(playGame(Seq(i)), i))
}
"1,2" in {
assert(playGame(Seq(1, 2)))
}
"1,1,1" in {
val seq = Seq(1, 1, 1)
assert(playGame(seq))
}
"1,2,1" in {
val seq = Seq(1, 2, 1)
assert(playGame(seq))
}
"1,3,1" in {
val seq = Seq(1, 3, 1)
assert(playGame(seq))
}
"1,2,2" in {
val seq = Seq(1, 2, 2)
assert(playGame(seq))
}
"n,n" in {
1 to 6 foreach (i => assert(!playGame(Seq(i, i)), i))
}
"1,2,3" in {
assert(!playGame(Seq(1, 2, 3)))
}
"2,3,4" in {
assert(!playGame(Seq(2, 3, 4)))
}
"1,2,3,4" in {
assert(playGame(Seq(1, 2, 3, 4)))
}
"1,2,3,4,5" in {
assert(playGame(Seq(1, 2, 3, 4, 5)))
}
"4,4,10" in {
val seq = Seq(4, 4, 10)
assert(playGame(seq))
}
"12,34,56" in {
// val seq = Seq(12, 34, 56)
// assert(playGame(seq))
}
"finish" in {
println(result.mkString("\n"))
}
}
"prode" must {
"10 10" in {
val x = for {
a <- 1 to 20
b <- 1 to 20
} yield
((a, b), playGame(Seq(a, b)),Integer toBinaryString a | b , Integer.toBinaryString(a ^ b) )
// println(x.filter(_._2 == false).map(_._1).map(_._1))
// println(x.filter(_._2 == false).map(_._1).map(_._2))
println(x.mkString("\n"))
}
}
"test case " must {
"1" in {
assert(playGame(line2Seq("IIXXIIIIII")))
assert(playGame(line2Seq("IXIXI")))
assert(!playGame(line2Seq("XXIXXI")))
assert(!playGame(line2Seq("IIXII")))
assert(playGame(line2Seq("XIXIIXII")))
assert(playGame(line2Seq("IIXIII")))
assert(playGame(line2Seq("IXXXX")))
assert(playGame(line2Seq("IXIXIII")))
assert(playGame(line2Seq("XIIIXIXXIX")))
}
"xx" in {
assert(playGame(Seq(7, 8, 9, 10)))
assert(playGame(Seq(3, 5, 5, 10)))
}
"3" in {
val x = for {
a <- 1 to 20
b <- (a + 1) to 20
if 1 to 10 forall (i =>
playGame(Seq(a, b, i)) == playGame(Seq(b - a, i))
)
} yield {
a -> b
}
println(x.map { case (a, b) => s"case $a :: $b :: other => enumAll(($b-$a)+:other) " }.mkString("\n"))
}
"case 3" in {
println((line2Seq("IIXIIIIIIIXIIIIXIXIIIXIIXIIIIXIIIXIIXXIXXIIIXIIIIXIIIXIIIIIIIXIIXIIIIIIIIIXIIXXIIIIIIIIIIIIIXIXIIIXIIXIXIXIXIIIIXIIIIIXIIXIXIIXIIIIIIIIIXIIIIIIIXIXIIIIXIXIIIIIXXXIIIIIIIIIXIIIIIIIXIIIIXIIIIXIIXI")))
// println((line2Seq("IXXIIXXIXIIIIIIIXXIIIIIIIIXIIXIIIIIIIIIIIIIIIIIIIIIIIIIIIIIXXIIXIIIIIIXXIIIXIXIXIIIXIIXIIIIXIXIIIXIXIIIIIXXXIIIIIIIIIIIIIIIIIXIXIXIIIIIIIXIIIXIXIIIIIIXIIIIIXXIIIXIIIXIIIIIIXXIXXXXIIIIIIIIIIIXIIXIXII")))
// enumAll(Seq(1, 2, 1, 7, 8, 2, 29, 2, 6, 3, 1, 1, 3, 2, 4, 1, 3, 1, 5, 17, 1, 1, 7, 3, 1, 6, 5, 3, 3, 6, 1, 11, 2, 1, 2))
playGame(Seq(1, 4, 6, 8, 11, 17, 29))
}
"10 to 20" in {
val l =
for {
a <- 10 to 20
b <- (a + 1) to 20
} yield ((a, b), playGame(Seq(a, b)))
l.filter(_._2 == false).foreach(println)
}
}
}
|
package io.github.varvelworld.var.ioc.core.annotation.meta.factory;
import io.github.varvelworld.var.ioc.core.annotation.Resource;
import io.github.varvelworld.var.ioc.core.meta.ParamResourceMeta;
import io.github.varvelworld.var.ioc.core.meta.factory.<API key>;
import java.lang.reflect.Parameter;
public class <API key> implements <API key> {
private final ParamResourceMeta paramResourceMeta;
public <API key>(Parameter parameter) {
this(parameter, parameter.getAnnotation(Resource.class));
}
public <API key>(Parameter parameter, Resource annotation) {
String id = annotation.value();
if(id.isEmpty()) {
if(parameter.isNamePresent()){
id = parameter.getName();
}
else {
throw new RuntimeException("id is empty");
}
}
this.paramResourceMeta = new ParamResourceMeta(id);
}
@Override
public ParamResourceMeta paramResourceMeta() {
return paramResourceMeta;
}
}
|
package com.stf.bj.app.game.players;
import java.util.Random;
import com.stf.bj.app.game.bj.Spot;
import com.stf.bj.app.game.server.Event;
import com.stf.bj.app.game.server.EventType;
import com.stf.bj.app.settings.AppSettings;
import com.stf.bj.app.strategy.FullStrategy;
public class RealisticBot extends BasicBot {
private enum InsuranceStrategy {
NEVER, EVEN_MONEY_ONLY, GOOD_HANDS_ONLY, RARELY, OFTEN;
}
private enum PlayAbility {
PERFECT, NOOB, RANDOM;
}
private enum BetChanging {
NEVER, RANDOM;
}
private final InsuranceStrategy insuranceStrategy;
private final PlayAbility playAbility;
private final Random r;
private double wager = -1.0;
private final BetChanging betChanging;
private boolean insurancePlay = false;
private boolean <API key> = false;
private boolean messUpNextPlay = false;
public RealisticBot(AppSettings settings, FullStrategy strategy, Random r, Spot s) {
super(settings, strategy, r, s);
if (r == null) {
r = new Random(System.currentTimeMillis());
}
this.r = r;
insuranceStrategy = InsuranceStrategy.values()[r.nextInt(InsuranceStrategy.values().length)];
playAbility = PlayAbility.values()[r.nextInt(PlayAbility.values().length)];
setBaseBet();
betChanging = BetChanging.RANDOM;
}
@Override
public void sendEvent(Event e) {
super.sendEvent(e);
if (e.getType() == EventType.DECK_SHUFFLED) {
if (betChanging == BetChanging.RANDOM && r.nextInt(2) == 0) {
wager = 5;
}
}
}
@Override
public double getWager() {
if (delay > 0) {
delay
return -1;
}
return wager;
}
private void setBaseBet() {
int rInt = r.nextInt(12);
if (rInt < 6) {
wager = 5.0 * (1 + rInt);
} else if (rInt < 9) {
wager = 10.0;
} else {
wager = 5.0;
}
}
@Override
public boolean getInsurancePlay() {
if (insuranceStrategy == InsuranceStrategy.NEVER) {
return false;
}
if (!<API key>) {
insurancePlay = <API key>();
<API key> = true;
}
return insurancePlay;
}
private boolean <API key>() {
switch (insuranceStrategy) {
case EVEN_MONEY_ONLY:
return getHandSoftTotal(0) == 21;
case GOOD_HANDS_ONLY:
return getHandSoftTotal(0) > 16 + r.nextInt(3);
case OFTEN:
return r.nextInt(2) == 0;
case RARELY:
return r.nextInt(5) == 0;
default:
throw new <API key>();
}
}
@Override
public Play getMove(int handIndex, boolean canDouble, boolean canSplit, boolean canSurrender) {
if (delay > 0) {
delay
return null;
}
Play play = super.getMove(handIndex, canDouble, canSplit, canSurrender);
if (messUpNextPlay) {
if (play != Play.SPLIT && canSplit) {
play = Play.SPLIT;
} else if (play != Play.DOUBLEDOWN && canSplit) {
play = Play.DOUBLEDOWN;
} else if (play == Play.STAND) {
play = Play.HIT;
} else {
play = Play.STAND;
}
}
return play;
}
@Override
protected void reset() {
super.reset();
<API key> = false;
int random = r.nextInt(10);
if (playAbility == PlayAbility.RANDOM) {
messUpNextPlay = (random < 2);
}
if ((random == 2 || random == 3) && betChanging == BetChanging.RANDOM) {
wager += 5;
} else if (random == 4 && betChanging == BetChanging.RANDOM) {
if (wager > 6) {
wager -= 5;
}
}
}
}
|
package me.marcosassuncao.servsim.job;
import me.marcosassuncao.servsim.profile.RangeList;
import com.google.common.base.MoreObjects;
/**
* {@link Reservation} represents a resource reservation request
* made by a customer to reserve a given number of resources
* from a provider.
*
* @see WorkUnit
* @see DefaultWorkUnit
*
* @author Marcos Dias de Assuncao
*/
public class Reservation extends DefaultWorkUnit {
private long reqStartTime = WorkUnit.TIME_NOT_SET;
private RangeList rangeList;
/**
* Creates a reservation request to start at
* <code>startTime</code> and with the given duration.
* @param startTime the requested start time for the reservation
* @param duration the duration of the reservation
* @param numResources number of required resources
*/
public Reservation(long startTime,
long duration, int numResources) {
super(duration);
super.setNumReqResources(numResources);
this.reqStartTime = startTime;
}
/**
* Creates a reservation request to start at
* <code>startTime</code> and with the given duration and priority
* @param startTime the requested start time for the reservation
* @param duration the duration of the reservation
* @param numResources the number of resources to be reserved
* @param priority the reservation priority
*/
public Reservation(long startTime,
long duration, int numResources, int priority) {
super(duration, priority);
super.setNumReqResources(numResources);
this.reqStartTime = startTime;
}
/**
* Returns the start time requested by this reservation
* @return the requested start time
*/
public long <API key>() {
return reqStartTime;
}
/**
* Sets the ranges of reserved resources
* @param ranges the ranges of resources allocated for the reservation
* @return <code>true</code> if the ranges have been set correctly,
* <code>false</code> otherwise.
*/
public boolean setResourceRanges(RangeList ranges) {
if (this.rangeList != null) {
return false;
}
this.rangeList = ranges;
return true;
}
/**
* Gets the ranges of reserved resources
* @return the ranges of reserved resources
*/
public RangeList getResourceRanges() {
return rangeList;
}
@Override
public String toString() {
return MoreObjects.toStringHelper(this)
.add("id", getId())
.add("submission time", getSubmitTime())
.add("start time", getStartTime())
.add("finish time", getFinishTime())
.add("duration", getDuration())
.add("priority", getPriority())
.add("status", getStatus())
.add("resources", rangeList)
.toString();
}
}
|
# AUTOGENERATED FILE
FROM balenalib/<API key>:3.12-run
ENV NODE_VERSION 14.15.4
ENV YARN_VERSION 1.22.4
# Install dependencies
RUN apk add --no-cache libgcc libstdc++ libuv \
&& apk add --no-cache libssl1.0 || apk add --no-cache libssl1.1
RUN buildDeps='curl' \
&& set -x \
&& for key in \
<API key> \
; do \
gpg --keyserver pgp.mit.edu --recv-keys "$key" || \
gpg --keyserver keyserver.pgp.com --recv-keys "$key" || \
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" ; \
done \
&& apk add --no-cache $buildDeps \
&& curl -SLO "http://resin-packages.s3.amazonaws.com/node/v$NODE_VERSION/node-v$<API key>.tar.gz" \
&& echo "<SHA256-like> node-v$<API key>.tar.gz" | sha256sum -c - \
&& tar -xzf "node-v$<API key>.tar.gz" -C /usr/local --strip-components=1 \
&& rm "node-v$<API key>.tar.gz" \
&& curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \
&& curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" \
&& gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
&& mkdir -p /opt/yarn \
&& tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/yarn --strip-components=1 \
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarn \
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarnpkg \
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
&& npm config set unsafe-perm true -g --unsafe-perm \
|
# AUTOGENERATED FILE
FROM balenalib/<API key>:31-build
ENV NODE_VERSION 14.15.4
ENV YARN_VERSION 1.22.4
RUN for key in \
<API key> \
; do \
gpg --keyserver pgp.mit.edu --recv-keys "$key" || \
gpg --keyserver keyserver.pgp.com --recv-keys "$key" || \
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" ; \
done \
&& curl -SLO "http://nodejs.org/dist/v$NODE_VERSION/node-v$<API key>.tar.gz" \
&& echo "<SHA256-like> node-v$<API key>.tar.gz" | sha256sum -c - \
&& tar -xzf "node-v$<API key>.tar.gz" -C /usr/local --strip-components=1 \
&& rm "node-v$<API key>.tar.gz" \
&& curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \
&& curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" \
&& gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
&& mkdir -p /opt/yarn \
&& tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/yarn --strip-components=1 \
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarn \
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarnpkg \
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
&& npm config set unsafe-perm true -g --unsafe-perm \
|
(function() {
'use strict';
angular
.module('sentryApp')
.controller('TimeFrameController', TimeFrameController);
TimeFrameController.$inject = ['$scope', '$state', 'TimeFrame', 'ParseLinks', 'AlertService', 'paginationConstants', 'pagingParams'];
function TimeFrameController ($scope, $state, TimeFrame, ParseLinks, AlertService, paginationConstants, pagingParams) {
var vm = this;
vm.loadPage = loadPage;
vm.predicate = pagingParams.predicate;
vm.reverse = pagingParams.ascending;
vm.transition = transition;
vm.itemsPerPage = paginationConstants.itemsPerPage;
loadAll();
function loadAll () {
TimeFrame.query({
page: pagingParams.page - 1,
size: vm.itemsPerPage,
sort: sort()
}, onSuccess, onError);
function sort() {
var result = [vm.predicate + ',' + (vm.reverse ? 'asc' : 'desc')];
if (vm.predicate !== 'id') {
result.push('id');
}
return result;
}
function onSuccess(data, headers) {
vm.links = ParseLinks.parse(headers('link'));
vm.totalItems = headers('X-Total-Count');
vm.queryCount = vm.totalItems;
vm.timeFrames = data;
vm.page = pagingParams.page;
}
function onError(error) {
AlertService.error(error.data.message);
}
}
function loadPage(page) {
vm.page = page;
vm.transition();
}
function transition() {
$state.transitionTo($state.$current, {
page: vm.page,
sort: vm.predicate + ',' + (vm.reverse ? 'asc' : 'desc'),
search: vm.currentSearch
});
}
}
})();
|
package de.hub.clickwatch.specificmodels.brn.sys_info_systeminfo.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
import org.eclipse.emf.ecore.util.EcoreUtil;
import de.hub.clickwatch.specificmodels.brn.sys_info_systeminfo.Cpu_usage;
import de.hub.clickwatch.specificmodels.brn.sys_info_systeminfo.<API key>;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Cpu usage</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link de.hub.clickwatch.specificmodels.brn.sys_info_systeminfo.impl.Cpu_usageImpl#<API key> <em>EContainer cpu usage</em>}</li>
* <li>{@link de.hub.clickwatch.specificmodels.brn.sys_info_systeminfo.impl.Cpu_usageImpl#getReal <em>Real</em>}</li>
* <li>{@link de.hub.clickwatch.specificmodels.brn.sys_info_systeminfo.impl.Cpu_usageImpl#getUser <em>User</em>}</li>
* <li>{@link de.hub.clickwatch.specificmodels.brn.sys_info_systeminfo.impl.Cpu_usageImpl#getSys <em>Sys</em>}</li>
* <li>{@link de.hub.clickwatch.specificmodels.brn.sys_info_systeminfo.impl.Cpu_usageImpl#getUnit <em>Unit</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class Cpu_usageImpl extends EObjectImpl implements Cpu_usage {
/**
* The default value of the '{@link #getReal() <em>Real</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getReal()
* @generated
* @ordered
*/
protected static final double REAL_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getReal() <em>Real</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getReal()
* @generated
* @ordered
*/
protected double real = REAL_EDEFAULT;
/**
* The default value of the '{@link #getUser() <em>User</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getUser()
* @generated
* @ordered
*/
protected static final double USER_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getUser() <em>User</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getUser()
* @generated
* @ordered
*/
protected double user = USER_EDEFAULT;
/**
* The default value of the '{@link #getSys() <em>Sys</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getSys()
* @generated
* @ordered
*/
protected static final double SYS_EDEFAULT = 0.0;
/**
* The cached value of the '{@link #getSys() <em>Sys</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getSys()
* @generated
* @ordered
*/
protected double sys = SYS_EDEFAULT;
/**
* The default value of the '{@link #getUnit() <em>Unit</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getUnit()
* @generated
* @ordered
*/
protected static final String UNIT_EDEFAULT = null;
/**
* The cached value of the '{@link #getUnit() <em>Unit</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getUnit()
* @generated
* @ordered
*/
protected String unit = UNIT_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected Cpu_usageImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return <API key>.Literals.CPU_USAGE;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public de.hub.clickwatch.specificmodels.brn.sys_info_systeminfo.System <API key>() {
if (eContainerFeatureID() != <API key>.<API key>) return null;
return (de.hub.clickwatch.specificmodels.brn.sys_info_systeminfo.System)eContainer();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain <API key>(de.hub.clickwatch.specificmodels.brn.sys_info_systeminfo.System <API key>, NotificationChain msgs) {
msgs = eBasicSetContainer((InternalEObject)<API key>, <API key>.<API key>, msgs);
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void <API key>(de.hub.clickwatch.specificmodels.brn.sys_info_systeminfo.System <API key>) {
if (<API key> != eInternalContainer() || (eContainerFeatureID() != <API key>.<API key> && <API key> != null)) {
if (EcoreUtil.isAncestor(this, <API key>))
throw new <API key>("Recursive containment not allowed for " + toString());
NotificationChain msgs = null;
if (eInternalContainer() != null)
msgs = <API key>(msgs);
if (<API key> != null)
msgs = ((InternalEObject)<API key>).eInverseAdd(this, <API key>.SYSTEM__CPU_USAGE, de.hub.clickwatch.specificmodels.brn.sys_info_systeminfo.System.class, msgs);
msgs = <API key>(<API key>, msgs);
if (msgs != null) msgs.dispatch();
}
else if (<API key>())
eNotify(new ENotificationImpl(this, Notification.SET, <API key>.<API key>, <API key>, <API key>));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public double getReal() {
return real;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setReal(double newReal) {
double oldReal = real;
real = newReal;
if (<API key>())
eNotify(new ENotificationImpl(this, Notification.SET, <API key>.CPU_USAGE__REAL, oldReal, real));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public double getUser() {
return user;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setUser(double newUser) {
double oldUser = user;
user = newUser;
if (<API key>())
eNotify(new ENotificationImpl(this, Notification.SET, <API key>.CPU_USAGE__USER, oldUser, user));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public double getSys() {
return sys;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSys(double newSys) {
double oldSys = sys;
sys = newSys;
if (<API key>())
eNotify(new ENotificationImpl(this, Notification.SET, <API key>.CPU_USAGE__SYS, oldSys, sys));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getUnit() {
return unit;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setUnit(String newUnit) {
String oldUnit = unit;
unit = newUnit;
if (<API key>())
eNotify(new ENotificationImpl(this, Notification.SET, <API key>.CPU_USAGE__UNIT, oldUnit, unit));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case <API key>.<API key>:
if (eInternalContainer() != null)
msgs = <API key>(msgs);
return <API key>((de.hub.clickwatch.specificmodels.brn.sys_info_systeminfo.System)otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case <API key>.<API key>:
return <API key>(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain <API key>(NotificationChain msgs) {
switch (eContainerFeatureID()) {
case <API key>.<API key>:
return eInternalContainer().eInverseRemove(this, <API key>.SYSTEM__CPU_USAGE, de.hub.clickwatch.specificmodels.brn.sys_info_systeminfo.System.class, msgs);
}
return super.<API key>(msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case <API key>.<API key>:
return <API key>();
case <API key>.CPU_USAGE__REAL:
return getReal();
case <API key>.CPU_USAGE__USER:
return getUser();
case <API key>.CPU_USAGE__SYS:
return getSys();
case <API key>.CPU_USAGE__UNIT:
return getUnit();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case <API key>.<API key>:
<API key>((de.hub.clickwatch.specificmodels.brn.sys_info_systeminfo.System)newValue);
return;
case <API key>.CPU_USAGE__REAL:
setReal((Double)newValue);
return;
case <API key>.CPU_USAGE__USER:
setUser((Double)newValue);
return;
case <API key>.CPU_USAGE__SYS:
setSys((Double)newValue);
return;
case <API key>.CPU_USAGE__UNIT:
setUnit((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case <API key>.<API key>:
<API key>((de.hub.clickwatch.specificmodels.brn.sys_info_systeminfo.System)null);
return;
case <API key>.CPU_USAGE__REAL:
setReal(REAL_EDEFAULT);
return;
case <API key>.CPU_USAGE__USER:
setUser(USER_EDEFAULT);
return;
case <API key>.CPU_USAGE__SYS:
setSys(SYS_EDEFAULT);
return;
case <API key>.CPU_USAGE__UNIT:
setUnit(UNIT_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case <API key>.<API key>:
return <API key>() != null;
case <API key>.CPU_USAGE__REAL:
return real != REAL_EDEFAULT;
case <API key>.CPU_USAGE__USER:
return user != USER_EDEFAULT;
case <API key>.CPU_USAGE__SYS:
return sys != SYS_EDEFAULT;
case <API key>.CPU_USAGE__UNIT:
return UNIT_EDEFAULT == null ? unit != null : !UNIT_EDEFAULT.equals(unit);
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (real: ");
result.append(real);
result.append(", user: ");
result.append(user);
result.append(", sys: ");
result.append(sys);
result.append(", unit: ");
result.append(unit);
result.append(')');
return result.toString();
}
} //Cpu_usageImpl
|
# AUTOGENERATED FILE
FROM balenalib/up-board-ubuntu:xenial-build
ENV NODE_VERSION 14.18.3
ENV YARN_VERSION 1.22.4
RUN for key in \
<API key> \
; do \
gpg --keyserver pgp.mit.edu --recv-keys "$key" || \
gpg --keyserver keyserver.pgp.com --recv-keys "$key" || \
gpg --keyserver keyserver.ubuntu.com --recv-keys "$key" ; \
done \
&& curl -SLO "http://nodejs.org/dist/v$NODE_VERSION/node-v$<API key>.tar.gz" \
&& echo "<SHA256-like> node-v$<API key>.tar.gz" | sha256sum -c - \
&& tar -xzf "node-v$<API key>.tar.gz" -C /usr/local --strip-components=1 \
&& rm "node-v$<API key>.tar.gz" \
&& curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \
&& curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" \
&& gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
&& mkdir -p /opt/yarn \
&& tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/yarn --strip-components=1 \
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarn \
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarnpkg \
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
&& npm config set unsafe-perm true -g --unsafe-perm \
|
#include "pmlc/dialect/pxa/analysis/affine_expr.h"
namespace mlir {
AffineValueExpr::AffineValueExpr(AffineExpr expr, ValueRange operands)
: expr(expr), operands(operands.begin(), operands.end()) {}
AffineValueExpr::AffineValueExpr(MLIRContext *ctx, int64_t v) {
expr = <API key>(v, ctx);
}
AffineValueExpr::AffineValueExpr(Value v) {
operands.push_back(v);
expr = getAffineDimExpr(0, v.getContext());
}
AffineValueExpr::AffineValueExpr(AffineValueMap map, unsigned idx)
: expr(map.getResult(idx)),
operands(map.getOperands().begin(), map.getOperands().end()) {}
AffineValueExpr AffineValueExpr::operator*(const AffineValueExpr &rhs) const {
return AffineValueExpr(AffineExprKind::Mul, *this, rhs);
}
AffineValueExpr AffineValueExpr::operator*(int64_t rhs) const {
auto cst = AffineValueExpr(expr.getContext(), rhs);
return AffineValueExpr(AffineExprKind::Mul, *this, cst);
}
AffineValueExpr AffineValueExpr::operator+(const AffineValueExpr &rhs) const {
return AffineValueExpr(AffineExprKind::Add, *this, rhs);
}
AffineValueExpr AffineValueExpr::operator+(int64_t rhs) const {
auto cst = AffineValueExpr(expr.getContext(), rhs);
return AffineValueExpr(AffineExprKind::Add, *this, cst);
}
AffineValueExpr AffineValueExpr::operator-(const AffineValueExpr &rhs) const {
return *this + (rhs * -1);
}
AffineValueExpr AffineValueExpr::operator-(int64_t rhs) const {
return *this - AffineValueExpr(expr.getContext(), rhs);
}
AffineExpr AffineValueExpr::getExpr() const { return expr; }
ArrayRef<Value> AffineValueExpr::getOperands() const { return operands; }
AffineValueExpr::AffineValueExpr(AffineExprKind kind, AffineValueExpr a,
AffineValueExpr b)
: operands(a.operands.begin(), a.operands.end()) {
SmallVector<AffineExpr, 4> repl_b;
for (auto v : b.operands) {
auto it = std::find(operands.begin(), operands.end(), v);
unsigned idx;
if (it == operands.end()) {
idx = operands.size();
operands.push_back(v);
} else {
idx = it - operands.begin();
}
repl_b.push_back(getAffineDimExpr(idx, a.expr.getContext()));
}
auto new_b = b.expr.<API key>(repl_b, {});
expr = <API key>(kind, a.expr, new_b);
}
AffineValueMap jointValueMap(MLIRContext *ctx,
ArrayRef<AffineValueExpr> exprs) {
DenseMap<Value, unsigned> jointSpace;
for (const auto &expr : exprs) {
for (Value v : expr.getOperands()) {
if (!jointSpace.count(v)) {
unsigned idx = jointSpace.size();
jointSpace[v] = idx;
}
}
}
SmallVector<AffineExpr, 4> jointExprs;
for (const auto &expr : exprs) {
SmallVector<AffineExpr, 4> repl;
for (Value v : expr.getOperands()) {
repl.push_back(getAffineDimExpr(jointSpace[v], ctx));
}
jointExprs.push_back(expr.getExpr().<API key>(repl, {}));
}
SmallVector<Value, 4> jointOperands(jointSpace.size());
for (const auto &kvp : jointSpace) {
jointOperands[kvp.second] = kvp.first;
}
auto map = AffineMap::get(jointSpace.size(), 0, jointExprs, ctx);
return AffineValueMap(map, jointOperands);
}
} // End namespace mlir
|
package leetcode.<API key>;
import common.ListNode;
public class Solution {
public ListNode reverseBetween(ListNode head, int m, int n) {
if(head == null) return null;
ListNode curRight = head;
for(int len = 0; len < n - m; len++){
curRight = curRight.next;
}
ListNode prevLeft = null;
ListNode curLeft = head;
for(int len = 0; len < m - 1; len++){
prevLeft = curLeft;
curLeft = curLeft.next;
curRight = curRight.next;
}
if(prevLeft == null){
head = curRight;
}else{
prevLeft.next = curRight;
}
for(int len = 0; len < n - m; len++){
ListNode next = curLeft.next;
curLeft.next = curRight.next;
curRight.next = curLeft;
curLeft = next;
}
return head;
}
public static void dump(ListNode node){
while(node != null){
System.err.print(node.val + "->");
node = node.next;
}
System.err.println("null");
}
public static void main(String[] args){
final int N = 10;
ListNode[] list = new ListNode[N];
for(int m = 1; m <= N; m++){
for(int n = m; n <= N; n++){
for(int i = 0; i < N; i++){
list[i] = new ListNode(i);
if(i > 0) list[i - 1].next = list[i];
}
dump(new Solution().reverseBetween(list[0], m, n));
}
}
}
}
|
<!DOCTYPE html>
<html>
<head>
<base href="http://fushenghua.github.io/GetHosp">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="viewport" content="width=device-width">
<meta name="description" content="GetHosp">
<link rel="canonical" href="http:
<!-- Custom CSS -->
<link rel="stylesheet" href="http://fushenghua.github.io/GetHosp/css/main.css">
</head>
<body>
<header class="site-header">
<div class="wrap">
<a class="site-title" href="http://fushenghua.github.io/GetHosp/">GetHosp</a>
<nav class="site-nav">
<a href="#" class="menu-icon">
<svg version="1.1" xmlns="http:
viewBox="0 0 18 15" enable-background="new 0 0 18 15" xml:space="preserve">
<path fill="#505050" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0
h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
<path fill="#505050" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484
h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
<path fill="#505050" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0
c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
</svg>
</a>
<div class="trigger">
<a class="page-link" href="http://fushenghua.github.io/GetHosp/about/">About</a>
</div>
</nav>
</div>
</header>
<div class="page-content">
<div class="wrap">
<div class="post">
<header class="post-header">
<h1></h1>
<p class="meta">May 3, 2016</p>
</header>
<article class="post-content">
<p></p>
<p></p>
</article>
</div>
</div>
</div>
<footer class="site-footer">
<div class="wrap">
<h2 class="footer-heading">GetHosp</h2>
<div class="footer-col-1 column">
<ul>
<li>GetHosp</li>
<li><a href="mailto:fushenghua2012@gmail.com">fushenghua2012@gmail.com</a></li>
</ul>
</div>
<div class="footer-col-2 column">
<ul>
<li>
<a href="https://github.com/fushenghua">
<span class="icon github">
<svg version="1.1" class="github-icon-svg" xmlns="http:
viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">
<path fill-rule="evenodd" clip-rule="evenodd" fill="#C2C2C2" d="M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761
c0,3.428,2.223,6.337,5.307,7.363c0.388,0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32
c-2.159,0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481,0.053-0.472,0.053-0.472
c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258,0.645c0.071-0.502,0.271-0.843,0.493-1.037
C4.86,11.425,3.049,10.76,3.049,7.786c0-0.847,0.302-1.54,0.799-2.082C3.768,5.507,3.501,4.718,3.924,3.65
c0,0,0.652-0.209,2.134,0.796C6.677,4.273,7.34,4.187,8,4.184c0.659,0.003,1.323,0.089,1.943,0.261
c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497,0.542,0.798,1.235,0.798,2.082
c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713,0.527,1.437c0,1.037-0.01,1.874-0.01,2.129
c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028,5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z"/>
</svg>
</span>
<span class="username">fushenghua</span>
</a>
</li>
</ul>
</div>
<div class="footer-col-3 column">
<p class="text">GetHosp</p>
</div>
</div>
</footer>
</body>
</html>
|
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
<title>LOWER_HALF_BLOCK</title>
<link href="../../../images/logo-icon.svg" rel="icon" type="image/svg">
<script>var pathToRoot = "../../../";</script>
<script type="text/javascript" src="../../../scripts/<API key>.js" async="async"></script>
<link href="../../../styles/style.css" rel="Stylesheet">
<link href="../../../styles/logo-styles.css" rel="Stylesheet">
<link href="../../../styles/jetbrains-mono.css" rel="Stylesheet">
<link href="../../../styles/main.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" async="async"></script>
</head>
<body>
<div id="container">
<div id="leftColumn">
<div id="logo"></div>
<div id="paneSearch"></div>
<div id="sideMenu"></div>
</div>
<div id="main">
<div id="leftToggler"><span class="icon-toggler"></span></div>
<script type="text/javascript" src="../../../scripts/pages.js"></script>
<script type="text/javascript" src="../../../scripts/main.js"></script>
<div class="main-content" id="content" pageIds="org.hexworks.zircon.api.graphics/Symbols/LOWER_HALF_BLOCK/#/<API key>//-755115832">
<div class="navigation-wrapper" id="navigation-wrapper">
<div class="breadcrumbs"><a href="../../index.html">zircon.core</a>/<a href="../index.html">org.hexworks.zircon.api.graphics</a>/<a href="index.html">Symbols</a>/<a href="-<API key>.html">LOWER_HALF_BLOCK</a></div>
<div class="pull-right d-flex">
<div class="filter-section" id="filter-section"><button class="platform-tag platform-selector common-like" data-active="" data-filter=":zircon.core:dokkaHtml/commonMain">common</button></div>
<div id="searchBar"></div>
</div>
</div>
<div class="cover ">
<h1 class="cover"><span>L</span><wbr></wbr><span>O</span><wbr></wbr><span>W</span><wbr></wbr><span>E</span><wbr></wbr><span>R_</span><wbr></wbr><span>H</span><wbr></wbr><span>A</span><wbr></wbr><span>L</span><wbr></wbr><span>F_</span><wbr></wbr><span>B</span><wbr></wbr><span>L</span><wbr></wbr><span>O</span><wbr></wbr><span>C</span><wbr></wbr><span>K</span></h1>
</div>
<div class="divergent-group" <API key>=":zircon.core:dokkaHtml/commonMain" data-filterable-set=":zircon.core:dokkaHtml/commonMain"><div class="with-platform-tags"><span class="pull-right"></span></div>
<div>
<div class="platform-hinted " <API key>="<API key>"><div class="content <API key>" data-active="" data-togglable=":zircon.core:dokkaHtml/commonMain"><div class="symbol monospace">const val <a href="-<API key>.html">LOWER_HALF_BLOCK</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char/index.html">Char</a><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>
<p class="paragraph"></p></div>
<h2 class="">Sources</h2>
<div class="table" data-togglable="Sources"><a data-name="%5Borg.hexworks.zircon.api.graphics%2FSymbols%2FLOWER_HALF_BLOCK%2F%23%<API key>%2F%5D%2FSource%2F-755115832" anchor-label="https://github.com/Hexworks/zircon/tree/master/zircon.core/src/commonMain/kotlin/org/hexworks/zircon/api/graphics/Symbols.kt#L474" id="%5Borg.hexworks.zircon.api.graphics%2FSymbols%2FLOWER_HALF_BLOCK%2F%23%<API key>%2F%5D%2FSource%2F-755115832" data-filterable-set=":zircon.core:dokkaHtml/commonMain"></a>
<div class="table-row" <API key>=":zircon.core:dokkaHtml/commonMain" data-filterable-set=":zircon.core:dokkaHtml/commonMain">
<div class="main-subrow keyValue ">
<div class=""><span class="inline-flex"><a href="https://github.com/Hexworks/zircon/tree/master/zircon.core/src/commonMain/kotlin/org/hexworks/zircon/api/graphics/Symbols.kt#L474">(source)</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="%5Borg.hexworks.zircon.api.graphics%2FSymbols%2FLOWER_HALF_BLOCK%2F%23%<API key>%2F%5D%2FSource%2F-755115832"></span>
<div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
</span></span></div>
<div></div>
</div>
</div>
</div>
</div>
<div class="footer"><span class="go-to-top-icon"><a href="
</div>
</div>
</body>
</html>
|
// <auto-generated>
// :2.0.50727.8009
// </auto-generated>
namespace MsgPack.Serialization.<API key>.MapBased {
[System.CodeDom.Compiler.<API key>("MsgPack.Serialization.CodeDomSerializers.<API key>", "0.6.0.0")]
[System.Diagnostics.<API key>()]
public class MsgPack_Serialization_PolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionPropertySerializer : MsgPack.Serialization.<API key><MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionProperty> {
private MsgPack.Serialization.<API key><string> _serializer0;
private MsgPack.Serialization.<API key><System.Collections.Generic.IList<object>> _serializer1;
private System.Reflection.MethodBase _methodBasePolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionProperty_set_ListObjectItem0;
public MsgPack_Serialization_PolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionPropertySerializer(MsgPack.Serialization.<API key> context) :
base(context) {
MsgPack.Serialization.PolymorphismSchema schema0 = default(MsgPack.Serialization.PolymorphismSchema);
MsgPack.Serialization.PolymorphismSchema itemsSchema0 = default(MsgPack.Serialization.PolymorphismSchema);
System.Collections.Generic.Dictionary<string, System.Type> itemsSchemaTypeMap0 = default(System.Collections.Generic.Dictionary<string, System.Type>);
itemsSchemaTypeMap0 = new System.Collections.Generic.Dictionary<string, System.Type>(2);
itemsSchemaTypeMap0.Add("0", typeof(MsgPack.Serialization.FileEntry));
itemsSchemaTypeMap0.Add("1", typeof(MsgPack.Serialization.DirectoryEntry));
itemsSchema0 = MsgPack.Serialization.PolymorphismSchema.<API key>(typeof(object), itemsSchemaTypeMap0);
schema0 = MsgPack.Serialization.PolymorphismSchema.<API key>(typeof(System.Collections.Generic.IList<object>), itemsSchema0);
this._serializer0 = context.GetSerializer<string>(schema0);
MsgPack.Serialization.PolymorphismSchema schema1 = default(MsgPack.Serialization.PolymorphismSchema);
MsgPack.Serialization.PolymorphismSchema itemsSchema1 = default(MsgPack.Serialization.PolymorphismSchema);
System.Collections.Generic.Dictionary<string, System.Type> <API key> = default(System.Collections.Generic.Dictionary<string, System.Type>);
<API key> = new System.Collections.Generic.Dictionary<string, System.Type>(2);
<API key>.Add("0", typeof(MsgPack.Serialization.FileEntry));
<API key>.Add("1", typeof(MsgPack.Serialization.DirectoryEntry));
itemsSchema1 = MsgPack.Serialization.PolymorphismSchema.<API key>(typeof(object), <API key>);
schema1 = MsgPack.Serialization.PolymorphismSchema.<API key>(typeof(System.Collections.Generic.IList<object>), itemsSchema1);
this._serializer1 = context.GetSerializer<System.Collections.Generic.IList<object>>(schema1);
this._methodBasePolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionProperty_set_ListObjectItem0 = typeof(MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionProperty).GetMethod("set_ListObjectItem", (System.Reflection.BindingFlags.Instance
| (System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic)), null, new System.Type[] {
typeof(System.Collections.Generic.IList<object>)}, null);
}
protected internal override void PackToCore(MsgPack.Packer packer, MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionProperty objectTree) {
packer.PackMapHeader(1);
this._serializer0.PackTo(packer, "ListObjectItem");
this._serializer1.PackTo(packer, objectTree.ListObjectItem);
}
protected internal override MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionProperty UnpackFromCore(MsgPack.Unpacker unpacker) {
MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionProperty result = default(MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionProperty);
result = new MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionProperty();
if (unpacker.IsArrayHeader) {
int unpacked = default(int);
int itemsCount = default(int);
itemsCount = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker);
System.Collections.Generic.IList<object> nullable = default(System.Collections.Generic.IList<object>);
if ((unpacked < itemsCount)) {
if ((unpacker.Read() == false)) {
throw MsgPack.Serialization.<API key>.NewMissingItem(0);
}
if (((unpacker.IsArrayHeader == false)
&& (unpacker.IsMapHeader == false))) {
nullable = this._serializer1.UnpackFrom(unpacker);
}
else {
MsgPack.Unpacker disposable = default(MsgPack.Unpacker);
disposable = unpacker.ReadSubtree();
try {
nullable = this._serializer1.UnpackFrom(disposable);
}
finally {
if (((disposable == null)
== false)) {
disposable.Dispose();
}
}
}
}
if (((nullable == null)
== false)) {
if ((result.ListObjectItem == null)) {
this._methodBasePolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionProperty_set_ListObjectItem0.Invoke(result, new object[] {
nullable});
}
else {
System.Collections.Generic.IEnumerator<object> enumerator = nullable.GetEnumerator();
object current;
try {
for (
; enumerator.MoveNext();
) {
current = enumerator.Current;
result.ListObjectItem.Add(current);
}
}
finally {
enumerator.Dispose();
}
}
}
unpacked = (unpacked + 1);
}
else {
int itemsCount0 = default(int);
itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker);
for (int i = 0; (i < itemsCount0); i = (i + 1)) {
string key = default(string);
string nullable0 = default(string);
nullable0 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(MsgPack.Serialization.PolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionProperty), "MemberName");
if (((nullable0 == null)
== false)) {
key = nullable0;
}
else {
throw MsgPack.Serialization.<API key>.NewNullIsProhibited("MemberName");
}
if ((key == "ListObjectItem")) {
System.Collections.Generic.IList<object> nullable1 = default(System.Collections.Generic.IList<object>);
if ((unpacker.Read() == false)) {
throw MsgPack.Serialization.<API key>.NewMissingItem(i);
}
if (((unpacker.IsArrayHeader == false)
&& (unpacker.IsMapHeader == false))) {
nullable1 = this._serializer1.UnpackFrom(unpacker);
}
else {
MsgPack.Unpacker disposable0 = default(MsgPack.Unpacker);
disposable0 = unpacker.ReadSubtree();
try {
nullable1 = this._serializer1.UnpackFrom(disposable0);
}
finally {
if (((disposable0 == null)
== false)) {
disposable0.Dispose();
}
}
}
if (((nullable1 == null)
== false)) {
if ((result.ListObjectItem == null)) {
this._methodBasePolymorphicMemberTypeKnownType_List_ListObjectItemPrivateSetterCollectionProperty_set_ListObjectItem0.Invoke(result, new object[] {
nullable1});
}
else {
System.Collections.Generic.IEnumerator<object> enumerator0 = nullable1.GetEnumerator();
object current0;
try {
for (
; enumerator0.MoveNext();
) {
current0 = enumerator0.Current;
result.ListObjectItem.Add(current0);
}
}
finally {
enumerator0.Dispose();
}
}
}
}
else {
unpacker.Skip();
}
}
}
return result;
}
private static T @__Conditional<T>(bool condition, T whenTrue, T whenFalse)
{
if (condition) {
return whenTrue;
}
else {
return whenFalse;
}
}
}
}
|
// This source code is available under agreement available at
// You should have received a copy of the agreement
// along with this program; if not, write to Talend SA
// 9 rue Pages 92150 Suresnes, France
package org.talend.components.google.drive.connection;
import java.util.EnumSet;
import java.util.Set;
import org.talend.components.api.component.ConnectorTopology;
import org.talend.components.api.component.runtime.ExecutionEngine;
import org.talend.components.api.properties.ComponentProperties;
import org.talend.components.google.drive.<API key>;
import org.talend.daikon.runtime.RuntimeInfo;
public class <API key> extends <API key> {
public static final String COMPONENT_NAME = "<API key>"; //$NON-NLS-1$
public <API key>() {
super(COMPONENT_NAME);
}
@Override
public Class<? extends ComponentProperties> getPropertyClass() {
return <API key>.class;
}
@Override
public Set<ConnectorTopology> <API key>() {
return EnumSet.of(ConnectorTopology.NONE);
}
@Override
public RuntimeInfo getRuntimeInfo(ExecutionEngine engine, ComponentProperties properties,
ConnectorTopology connectorTopology) {
<API key>(engine);
<API key>(connectorTopology);
return getRuntimeInfo(<API key>.<API key>);
}
@Override
public boolean isStartable() {
return true;
}
}
|
package si.majeric.smarthouse.xstream.dao;
public class <API key> extends RuntimeException {
private static final long serialVersionUID = 1L;
public <API key>(Exception e) {
super(e);
}
}
|
<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<head>
<title>Topic 06 -- Abstracts with Biological Entities (English) - 75 Topics / Sub-Topic Model 13 - 15 Topics</title>
<style>
table {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #ddd;
padding: 8px;
}
tr:nth-child(even){background-color: #f2f2f2;}
tr:hover {background-color: #ddd;}
th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #0099FF;
color: white;
}
</style>
</head>
<body>
<h2>Topic 06 -- Abstracts with Biological Entities (English) - 75 Topics / Sub-Topic Model 13 - 15 Topics</h2>
<table border="1" class="dataframe">
<thead>
<tr style="text-align: right;">
<th></th>
<th>cite ad</th>
<th>title</th>
<th>authors</th>
<th>publish year</th>
<th>publish time</th>
<th>dataset</th>
<th>abstract mentions covid</th>
<th>pmcid</th>
<th>pubmed id</th>
<th>doi</th>
<th>cord uid</th>
<th>topic weight</th>
<th>Similarity scispacy</th>
<th>Similarity specter</th>
</tr>
</thead>
<tbody>
<tr>
<th id="ryychtqa";>1</th>
<td>Zuniga_2007</td>
<td>Attenuated measles virus as a vaccine vector</td>
<td>Zuniga, Armando; Wang, ZiLi; Liniger, Matthias; Hangartner, Lars; Caballero, Michael; Pavlovic, Jovan; Wild, Peter; Viret, Jean Francois; Glueck, Reinhard; Billeter, Martin A.; Naim, Hussein Y.</td>
<td>2007</td>
<td>2007-04-20</td>
<td>None</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1016/j.vaccine.2007.01.064" target="_blank">10.1016/j.vaccine.2007.01.064</a></td>
<td>ryychtqa</td>
<td>0.647705</td>
<td></td>
<td><a href="Topic_06.html
</tr>
<tr>
<th id="u361oua5";>2</th>
<td>Peruzzi_2009</td>
<td>A novel Chimpanzee serotype-based adenoviral vector as delivery tool for cancer vaccines</td>
<td>Peruzzi, Daniela; Dharmapuri, Sridhar; Cirillo, Agostino; Bruni, Bruno Ercole; Nicosia, Alfredo; Cortese, Riccardo; Colloca, Stefano; Ciliberto, Gennaro; La Monica, Nicola; Aurisicchio, Luigi</td>
<td>2009</td>
<td>2009-02-25</td>
<td>PMC</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1016/j.vaccine.2008.12.051" target="_blank">10.1016/j.vaccine.2008.12.051</a></td>
<td>u361oua5</td>
<td>0.627562</td>
<td><a href="Topic_06.html#hrfbygub">Singh_2016</a>, <a href="Topic_07.html#nzuq0dk7">Schwartz_2007</a>, <a href="Topic_01.html#z2u5frvq">Montefiori_2007</a></td>
<td></td>
</tr>
<tr>
<th id="ctass7hz";>3</th>
<td>Bull_2019</td>
<td>Recombinant vector vaccine evolution</td>
<td>Bull, James J.; Nuismer, Scott L.; Antia, Rustom</td>
<td>2019</td>
<td>2019-07-19</td>
<td>COMM-USE</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1371/journal.pcbi.1006857" target="_blank">10.1371/journal.pcbi.1006857</a></td>
<td>ctass7hz</td>
<td>0.626904</td>
<td><a href="Topic_01.html#z2u5frvq">Montefiori_2007</a>, <a href="Topic_07.html#neclg3gb">Tripp_2014</a></td>
<td><a href="Topic_06.html
</tr>
<tr>
<th id="v5n1gupw";>4</th>
<td>Bangari_2006</td>
<td>Development of nonhuman adenoviruses as vaccine vectors</td>
<td>Bangari, Dinesh S.; Mittal, Suresh K.</td>
<td>2006</td>
<td>2006-02-13</td>
<td>None</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1016/j.vaccine.2005.08.101" target="_blank">10.1016/j.vaccine.2005.08.101</a></td>
<td>v5n1gupw</td>
<td>0.622664</td>
<td><a href="Topic_02.html#aw8p35c5">Tatsis_2004</a></td>
<td><a href="Topic_02.html#aw8p35c5">Tatsis_2004</a>, <a href="Topic_06.html#mxtry60e">Mittal_2016</a></td>
</tr>
<tr>
<th id="3vssgben";>5</th>
<td>Bull_2019</td>
<td>Recombinant vector vaccines and within-host evolution</td>
<td>James Bull; Scott L. Nuismer; Rustom Antia</td>
<td>2019</td>
<td>2019-02-08</td>
<td>BioRxiv</td>
<td>N</td>
<td></td>
<td></td>
<td><a href="https://doi.org/10.1101/545087" target="_blank">10.1101/545087</a></td>
<td>3vssgben</td>
<td>0.609826</td>
<td><a href="Topic_06.html#ctass7hz">Bull_2019</a></td>
<td><a href="Topic_06.html
</tr>
<tr>
<th id="s1zl9nbb";>6</th>
<td>Bishop_1988</td>
<td>The release into the environment of genetically engineered viruses, vaccines and viral pesticides</td>
<td>Bishop, David H.L.</td>
<td>1988</td>
<td>1988-04-30</td>
<td>PMC</td>
<td>N</td>
<td></td>
<td></td>
<td><a href="https://doi.org/10.1016/0169-5347(88)90130-9" target="_blank">10.1016/0169-5347(88)90130-9</a></td>
<td>s1zl9nbb</td>
<td>0.597917</td>
<td><a href="Topic_02.html#lke4y02f">Bishop_1988</a></td>
<td></td>
</tr>
<tr>
<th id="mxtry60e";>7</th>
<td>Mittal_2016</td>
<td>19 Xenogenic Adenoviral Vectors</td>
<td>Mittal, Suresh K.; Ahi, Yadvinder S.; Vemula, Sai V.</td>
<td>2016</td>
<td>2016-12-31</td>
<td>PMC</td>
<td>N</td>
<td><a href="https:
<td></td>
<td><a href="https://doi.org/10.1016/b978-0-12-800276-6.00019-x" target="_blank">10.1016/b978-0-12-800276-6.00019-x</a></td>
<td>mxtry60e</td>
<td>0.569062</td>
<td><a href="Topic_06.html#v5n1gupw">Bangari_2006</a></td>
<td><a href="Topic_06.html#v5n1gupw">Bangari_2006</a>, <a href="Topic_02.html#u1xbkaq0">Ploquin_2013</a></td>
</tr>
<tr>
<th id="uacon432";>8</th>
<td>Liniger_2009</td>
<td>Recombinant measles viruses expressing single or multiple antigens of human immunodeficiency virus (HIV-1) induce cellular and humoral immune responses</td>
<td>Liniger, Matthias; Zuniga, Armando; Morin, Teldja Neige Azzouz; Combardiere, Behazine; Marty, Rene; Wiegand, Marian; Ilter, Orhan; Knuchel, Marlyse; Naim, Hussein Y.</td>
<td>2009</td>
<td>2009-05-26</td>
<td>PMC</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1016/j.vaccine.2009.01.057" target="_blank">10.1016/j.vaccine.2009.01.057</a></td>
<td>uacon432</td>
<td>0.555529</td>
<td><a href="Topic_07.html#nzuq0dk7">Schwartz_2007</a>, <a href="Topic_03.html#k785hl1r">Lv_L_2014</a></td>
<td><a href="Topic_01.html
</tr>
<tr>
<th id="zceca4c1";>9</th>
<td>Roy_S_2007</td>
<td>Rescue of chimeric adenoviral vectors to expand the serotype repertoire</td>
<td>Roy, Soumitra; Clawson, David S.; Lavrukhin, Oleg; Sandhu, Arbans; Miller, Jim; Wilson, James M.</td>
<td>2007</td>
<td>2007-04-30</td>
<td>None</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1016/j.jviromet.2006.11.022" target="_blank">10.1016/j.jviromet.2006.11.022</a></td>
<td>zceca4c1</td>
<td>0.541514</td>
<td></td>
<td><a href="Topic_06.html#mxtry60e">Mittal_2016</a>, <a href="Topic_02.html#odeksech">Ertl_2016</a>, <a href="Topic_06.html#v5n1gupw">Bangari_2006</a></td>
</tr>
<tr>
<th id="s27bp7ft";>10</th>
<td>Bolton_2012</td>
<td>Priming T-cell responses with recombinant measles vaccine vector in a heterologous prime-boost setting in non-human primates</td>
<td>Bolton, Diane L.; Santra, Sampa; Swett-Tapia, Cindy; Custers, Jerome; Song, Kaimei; Balachandran, Harikrishnan; Mach, Linh; Naim, Hussein; Kozlowski, Pamela A.; Lifton, Michelle; Goudsmit, Jaap; Letvin, Norman; Roederer, Mario; Radošević, Katarina</td>
<td>2012</td>
<td>2012-09-07</td>
<td>None</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1016/j.vaccine.2012.06.029" target="_blank">10.1016/j.vaccine.2012.06.029</a></td>
<td>s27bp7ft</td>
<td>0.537387</td>
<td><a href="Topic_01.html#z2u5frvq">Montefiori_2007</a>, <a href="Topic_07.html#nzuq0dk7">Schwartz_2007</a></td>
<td><a href="Topic_01.html#f78ug0c6">Meng_2012</a>, <a href="Topic_01.html#6rcezxjx">Zakhartchouk_2005</a>, <a href="Topic_05.html#ctikde7d"><API key></a>, <a href="Topic_01.html#3qdjmb2j">Mok_H_2012</a></td>
</tr>
<tr>
<th id="vr4c59hy";>11</th>
<td>Xiao_2011</td>
<td>A host-restricted viral vector for antigen-specific immunization against Lyme disease pathogen</td>
<td>Xiao, Sa; Kumar, Manish; Yang, Xiuli; Akkoyunlu, Mustafa; Collins, Peter L.; Samal, Siba K.; Pal, Utpal</td>
<td>2011</td>
<td>2011-07-18</td>
<td>None</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1016/j.vaccine.2011.05.010" target="_blank">10.1016/j.vaccine.2011.05.010</a></td>
<td>vr4c59hy</td>
<td>0.533249</td>
<td><a href="Topic_07.html#nzuq0dk7">Schwartz_2007</a>, <a href="Topic_03.html#k785hl1r">Lv_L_2014</a></td>
<td><a href="Topic_10.html#ovoli9dr">Keshwara_2019</a></td>
</tr>
<tr>
<th id="xaohrtq7";>12</th>
<td>Lorin_2015</td>
<td>Heterologous Prime-Boost Regimens with a Recombinant Chimpanzee Adenoviral Vector and Adjuvanted F4 Protein Elicit Polyfunctional HIV-1-Specific T-Cell Responses in Macaques</td>
<td>Lorin, Clarisse; Vanloubbeeck, Yannick; Baudart, Sébastien; Ska, Michaël; Bayat, Babak; Brauers, Geoffroy; Clarinval, Géraldine; Donner, Marie-Noëlle; Marchand, Martine; Koutsoukos, Marguerite; Mettens, Pascal; Cohen, Joe; Voss, Gerald</td>
<td>2015</td>
<td>2015-04-09</td>
<td>COMM-USE</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1371/journal.pone.0122835" target="_blank">10.1371/journal.pone.0122835</a></td>
<td>xaohrtq7</td>
<td>0.505593</td>
<td><a href="Topic_01.html#5lnehhu1">Mazeike_2012</a></td>
<td><a href="Topic_06.html#s27bp7ft">Bolton_2012</a>, <a href="Topic_01.html#5hryh1ft">Azizi_2006</a>, <a href="Topic_06.html#270nzddu">Busch_2020</a></td>
</tr>
<tr>
<th id="fie121ns";>13</th>
<td>White_2018</td>
<td>Development of improved therapeutic mesothelin-based vaccines for pancreatic cancer</td>
<td>White, Michael; Freistaedter, Andrew; Jones, Gwendolyn J. B.; Zervos, Emmanuel; Roper, Rachel L.</td>
<td>2018</td>
<td>2018-02-23</td>
<td>COMM-USE</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1371/journal.pone.0193131" target="_blank">10.1371/journal.pone.0193131</a></td>
<td>fie121ns</td>
<td>0.498469</td>
<td></td>
<td></td>
</tr>
<tr>
<th id="m4sp9sjn";>14</th>
<td>Matthews_2010</td>
<td>HIV Antigen Incorporation within Adenovirus Hexon Hypervariable 2 for a Novel HIV Vaccine Approach</td>
<td>Matthews, Qiana L.; Fatima, Aiman; Tang, Yizhe; Perry, Brian A.; Tsuruta, Yuko; Komarova, Svetlana; Timares, Laura; Zhao, Chunxia; Makarova, Natalia; Borovjagin, Anton V.; Stewart, Phoebe L.; Wu, Hongju; Blackwell, Jerry L.; Curiel, David T.</td>
<td>2010</td>
<td>2010-07-27</td>
<td>COMM-USE</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1371/journal.pone.0011815" target="_blank">10.1371/journal.pone.0011815</a></td>
<td>m4sp9sjn</td>
<td>0.495758</td>
<td><a href="Topic_01.html#z2u5frvq">Montefiori_2007</a>, <a href="Topic_01.html#vct6xakc">Jiang_2006</a>, <a href="Topic_06.html#hrfbygub">Singh_2016</a></td>
<td><a href="Topic_06.html#p6ikd8ns">Hansra_2015</a>, <a href="Topic_06.html#u361oua5">Peruzzi_2009</a></td>
</tr>
<tr>
<th id="4mt2v3ip";>15</th>
<td>Bayer_2011</td>
<td>Improved vaccine protection against retrovirus infection after co-administration of adenoviral vectors encoding viral antigens and type I interferon subtypes</td>
<td>Bayer, Wibke; Lietz, Ruth; Ontikatze, Teona; Johrden, Lena; Tenbusch, Matthias; Nabi, Ghulam; Schimmer, Simone; Groitl, Peter; Wolf, Hans; Berry, Cassandra M; Überla, Klaus; Dittmer, Ulf; Wildner, Oliver</td>
<td>2011</td>
<td>2011-09-26</td>
<td>COMM-USE</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1186/1742-4690-8-75" target="_blank">10.1186/1742-4690-8-75</a></td>
<td>4mt2v3ip</td>
<td>0.491964</td>
<td><a href="Topic_01.html#vct6xakc">Jiang_2006</a>, <a href="Topic_01.html#z2u5frvq">Montefiori_2007</a>, <a href="Topic_06.html#hrfbygub">Singh_2016</a></td>
<td><a href="Topic_01.html#3qdjmb2j">Mok_H_2012</a>, <a href="Topic_06.html#s27bp7ft">Bolton_2012</a>, <a href="Topic_01.html#f78ug0c6">Meng_2012</a></td>
</tr>
<tr>
<th id="mu4fdrel";>16</th>
<td>Meseda_2004</td>
<td>DNA immunization with a herpes simplex virus 2 bacterial artificial chromosome</td>
<td>Meseda, Clement A.; Schmeisser, Falko; Pedersen, Robin; Woerner, Amy; Weir, Jerry P.</td>
<td>2004</td>
<td>2004-01-05</td>
<td>PMC</td>
<td>N</td>
<td></td>
<td><a href="https:
<td><a href="https://doi.org/10.1016/j.virol.2003.09.033" target="_blank">10.1016/j.virol.2003.09.033</a></td>
<td>mu4fdrel</td>
<td>0.483117</td>
<td></td>
<td></td>
</tr>
<tr>
<th id="yw8gubcy";>17</th>
<td>Wang_2010</td>
<td>Modified H5 promoter improves stability of insert genes while maintaining immunogenicity during extended passage of genetically engineered MVA vaccines</td>
<td>Wang, Zhongde; Martinez, Joy; Zhou, Wendi; La Rosa, Corinna; Srivastava, Tumul; Dasgupta, Anindya; Rawal, Ravindra; Li, Zhongqui; Britt, William J.; Diamond, Don</td>
<td>2010</td>
<td>2010-02-10</td>
<td>PMC</td>
<td>N</td>
<td></td>
<td><a href="https:
<td><a href="https://doi.org/10.1016/j.vaccine.2009.11.056" target="_blank">10.1016/j.vaccine.2009.11.056</a></td>
<td>yw8gubcy</td>
<td>0.477085</td>
<td></td>
<td></td>
</tr>
<tr>
<th id="3894l9qi";>18</th>
<td><API key></td>
<td>Pre-existing immunity against Ad vectors: Humoral, cellular, and innate response, what's important?</td>
<td>Fausther-Bovendo, Hugues; Kobinger, Gary P</td>
<td>2014</td>
<td>2014-11-01</td>
<td>NONCOMM</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.4161/hv.29594" target="_blank">10.4161/hv.29594</a></td>
<td>3894l9qi</td>
<td>0.475906</td>
<td><a href="Topic_01.html#z2u5frvq">Montefiori_2007</a>, <a href="Topic_06.html#hrfbygub">Singh_2016</a></td>
<td><a href="Topic_01.html#pr9i9swk">Croyle_2008</a>, <a href="Topic_01.html#eu80ccm6">Pandey_2012</a></td>
</tr>
<tr>
<th id="270nzddu";>19</th>
<td>Busch_2020</td>
<td>Measles Vaccines Designed for Enhanced CD8(+) T Cell Activation</td>
<td>Busch, Elena; Kubon, Kristina D.; Mayer, Johanna K. M.; Pidelaserra-Martí, Gemma; Albert, Jessica; Hoyler, Birgit; Heidbuechel, Johannes P. W.; Stephenson, Kyle B.; Lichty, Brian D.; Osen, Wolfram; Eichmüller, Stefan B.; Jäger, Dirk; Ungerechts, Guy; Engeland, Christine E.</td>
<td>2020</td>
<td>2020-02-21</td>
<td>None</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.3390/v12020242" target="_blank">10.3390/v12020242</a></td>
<td>270nzddu</td>
<td>0.467243</td>
<td><a href="Topic_01.html#z2u5frvq">Montefiori_2007</a></td>
<td><a href="Topic_01.html#lcoo85s6">Kim_S_2012</a>, <a href="Topic_05.html#ctikde7d"><API key></a>, <a href="Topic_01.html#3qdjmb2j">Mok_H_2012</a></td>
</tr>
<tr>
<th id="p6ikd8ns";>20</th>
<td>Hansra_2015</td>
<td>Exploration of New Sites in Adenovirus Hexon for Foreign Peptides Insertion</td>
<td>Hansra, Satyender; Pujhari, Sujit; Zakhartchouk, Alexander N</td>
<td>2015</td>
<td>2015-05-29</td>
<td>NONCOMM</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.2174/1874357901509010001" target="_blank">10.2174/1874357901509010001</a></td>
<td>p6ikd8ns</td>
<td>0.466283</td>
<td></td>
<td><a href="Topic_06.html#m4sp9sjn">Matthews_2010</a></td>
</tr>
<tr>
<th id="591iufv1";>21</th>
<td>Babiuk_2000</td>
<td>Adenoviruses as vectors for delivering vaccines to mucosal surfaces</td>
<td>Babiuk, L.A; Tikoo, S.K</td>
<td>2000</td>
<td>2000-09-29</td>
<td>PMC</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1016/s0168-1656(00)00314-x" target="_blank">10.1016/s0168-1656(00)00314-x</a></td>
<td>591iufv1</td>
<td>0.447938</td>
<td><a href="Topic_01.html#z2u5frvq">Montefiori_2007</a></td>
<td><a href="Topic_02.html
</tr>
<tr>
<th id="cmbg0ty8";>22</th>
<td>Mühlebach_2016</td>
<td>Development of Recombinant Measles Virus-Based Vaccines</td>
<td>Mühlebach, Michael D.; Hutzler, Stefan</td>
<td>2016</td>
<td>2016-11-26</td>
<td>PMC</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1007/978-1-4939-6869-5_9" target="_blank">10.1007/978-1-4939-6869-5_9</a></td>
<td>cmbg0ty8</td>
<td>0.447755</td>
<td></td>
<td><a href="Topic_06.html#ryychtqa">Zuniga_2007</a>, <a href="Topic_01.html#3qdjmb2j">Mok_H_2012</a></td>
</tr>
<tr>
<th id="gqqzekfk";>23</th>
<td>Lin_C_2012</td>
<td>Enhancement of anti-murine colon cancer immunity by fusion of a SARS fragment to a low-immunogenic carcinoembryonic antigen</td>
<td>Lin, Chen-Si; Kao, Shih-Han; Chen, Yu-Cheng; Li, Chi-Han; Hsieh, Yuan-Ting; Yang, Shang-Chih; Wu, Chang-Jer; Lee, Ru-Ping; Liao, Kuang-Wen</td>
<td>2012</td>
<td>2012-02-03</td>
<td>COMM-USE</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1186/1480-9222-14-2" target="_blank">10.1186/1480-9222-14-2</a></td>
<td>gqqzekfk</td>
<td>0.437763</td>
<td><a href="Topic_01.html#xv0esvos">Azizi_2005</a>, <a href="Topic_01.html#z2u5frvq">Montefiori_2007</a>, <a href="Topic_06.html#hrfbygub">Singh_2016</a></td>
<td><a href="Topic_01.html#lbx8tqws">Li_W_2013</a></td>
</tr>
<tr>
<th id="tzq4i5xr";>24</th>
<td>Bloom_2018</td>
<td>Immunization by <API key> Controlled Herpesvirus Vectors</td>
<td>Bloom, David C.; Tran, Robert K.; Feller, Joyce; Voellmy, Richard</td>
<td>2018</td>
<td>2018-07-31</td>
<td>COMM-USE</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1128/jvi.00616-18" target="_blank">10.1128/jvi.00616-18</a></td>
<td>tzq4i5xr</td>
<td>0.437112</td>
<td></td>
<td><a href="Topic_06.html
</tr>
<tr>
<th id="wi7qdbc7";>25</th>
<td>Lawrence_2013</td>
<td>Comparison of Heterologous Prime-Boost Strategies against Human Immunodeficiency Virus Type 1 Gag Using Negative Stranded RNA Viruses</td>
<td>Lawrence, Tessa M.; Wanjalla, Celestine N.; Gomme, Emily A.; Wirblich, Christoph; Gatt, Anthony; Carnero, Elena; García-Sastre, Adolfo; Lyles, Douglas S.; McGettigan, James P.; Schnell, Matthias J.</td>
<td>2013</td>
<td>2013-06-26</td>
<td>COMM-USE</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1371/journal.pone.0067123" target="_blank">10.1371/journal.pone.0067123</a></td>
<td>wi7qdbc7</td>
<td>0.435406</td>
<td><a href="Topic_07.html#nzuq0dk7">Schwartz_2007</a>, <a href="Topic_01.html#z2u5frvq">Montefiori_2007</a>, <a href="Topic_01.html#vct6xakc">Jiang_2006</a></td>
<td><a href="Topic_06.html#s27bp7ft">Bolton_2012</a>, <a href="Topic_01.html#vct6xakc">Jiang_2006</a>, <a href="Topic_01.html#3qdjmb2j">Mok_H_2012</a></td>
</tr>
<tr>
<th id="lke4y02f";>26</th>
<td>Bishop_1988</td>
<td>The release into the environment of genetically engineered viruses, vaccines and viral pesticides</td>
<td>Bishop, David H.L.</td>
<td>1988</td>
<td>1988-04-30</td>
<td>PMC</td>
<td>N</td>
<td></td>
<td></td>
<td><a href="https://doi.org/10.1016/0167-7799(88)90006-6" target="_blank">10.1016/0167-7799(88)90006-6</a></td>
<td>lke4y02f</td>
<td>0.428086</td>
<td><a href="Topic_06.html#s1zl9nbb">Bishop_1988</a></td>
<td></td>
</tr>
<tr>
<th id="7a6q4d3h";>27</th>
<td>Thacker_2009</td>
<td>Strategies to overcome host immunity to adenovirus vectors in vaccine development</td>
<td>Thacker, Erin E; Timares, Laura; Matthews, Qiana L</td>
<td>2009</td>
<td>2009-06-01</td>
<td>PMC</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1586/erv.09.29" target="_blank">10.1586/erv.09.29</a></td>
<td>7a6q4d3h</td>
<td>0.422274</td>
<td><a href="Topic_01.html#z2u5frvq">Montefiori_2007</a>, <a href="Topic_07.html#fq78593b">Mooney_2013</a></td>
<td><a href="Topic_02.html#7eqpb7ge">Borovjagin_2014</a>, <a href="Topic_02.html#aw8p35c5">Tatsis_2004</a>, <a href="Topic_06.html#v5n1gupw">Bangari_2006</a></td>
</tr>
<tr>
<th id="dgeisr8h";>28</th>
<td>Folegatti_2019</td>
<td>Safety and Immunogenicity of a Novel Recombinant Simian Adenovirus ChAdOx2 as a Vectored Vaccine</td>
<td>Folegatti, Pedro M.; Bellamy, Duncan; Roberts, Rachel; Powlson, Jonathan; Edwards, Nick J.; Mair, Catherine F.; Bowyer, Georgina; Poulton, Ian; Mitton, Celia H.; Green, Nicky; Berrie, Eleanor; Lawrie, Alison M.; Hill, Adrian V.S.; Ewer, Katie J.; Hermon-Taylor, John; Gilbert, Sarah C.</td>
<td>2019</td>
<td>2019-05-15</td>
<td>COMM-USE</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.3390/vaccines7020040" target="_blank">10.3390/vaccines7020040</a></td>
<td>dgeisr8h</td>
<td>0.420425</td>
<td><a href="Topic_07.html#nzuq0dk7">Schwartz_2007</a>, <a href="Topic_01.html#z2u5frvq">Montefiori_2007</a></td>
<td><a href="Topic_02.html#u1xbkaq0">Ploquin_2013</a>, <a href="Topic_12.html#5zn2vrj5">Warimwe_2013</a></td>
</tr>
<tr>
<th id="bmrfz8pz";>29</th>
<td>Lopera-Madrid_2017</td>
<td>Safety and immunogenicity of mammalian cell derived and Modified Vaccinia Ankara vectored African swine fever subunit antigens in swine</td>
<td>Lopera-Madrid, Jaime; Osorio, Jorge E.; He, Yongqun; Xiang, Zuoshuang; Adams, L. Garry; Laughlin, Richard C.; Mwangi, Waithaka; Subramanya, Sandesh; Neilan, John; Brake, David; Burrage, Thomas G.; Brown, William Clay; Clavijo, Alfonso; Bounpheng, Mangkey A.</td>
<td>2017</td>
<td>2017-03-31</td>
<td>PMC</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1016/j.vetimm.2017.01.004" target="_blank">10.1016/j.vetimm.2017.01.004</a></td>
<td>bmrfz8pz</td>
<td>0.418540</td>
<td><a href="Topic_07.html#nzuq0dk7">Schwartz_2007</a></td>
<td><a href="Topic_01.html#f78ug0c6">Meng_2012</a>, <a href="Topic_14.html#ngms51ie">Sawada_2011</a>, <a href="Topic_01.html#yk0xxv16">Do_V_2020</a></td>
</tr>
<tr>
<th id="2sg1tlrg";>30</th>
<td>Clarke_2006</td>
<td>Recombinant vesicular stomatitis virus as an HIV-1 vaccine vector</td>
<td>Clarke, David K.; Cooper, David; Egan, Michael A.; Hendry, R. Michael; Parks, Christopher L.; Udem, Stephen A.</td>
<td>2006</td>
<td>2006-09-15</td>
<td>PMC</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1007/s00281-006-0042-3" target="_blank">10.1007/s00281-006-0042-3</a></td>
<td>2sg1tlrg</td>
<td>0.409973</td>
<td><a href="Topic_07.html#nzuq0dk7">Schwartz_2007</a></td>
<td><a href="Topic_12.html#i8xi0h4g">Akahata_2010</a>, <a href="Topic_01.html#3qdjmb2j">Mok_H_2012</a>, <a href="Topic_01.html#vct6xakc">Jiang_2006</a>, <a href="Topic_10.html#ovoli9dr">Keshwara_2019</a></td>
</tr>
<tr>
<th id="zfuglf2e";>31</th>
<td>Wyatt_2008</td>
<td>Correlation of immunogenicities and in vitro expression levels of recombinant modified vaccinia virus Ankara HIV vaccines</td>
<td>Wyatt, Linda S.; Earl, Patricia L.; Vogt, Jennifer; Eller, Leigh Anne; Chandran, Dev; Liu, Jinyan; Robinson, Harriet L.; Moss, Bernard</td>
<td>2008</td>
<td>2008-01-01</td>
<td>PMC</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1016/j.vaccine.2007.11.036" target="_blank">10.1016/j.vaccine.2007.11.036</a></td>
<td>zfuglf2e</td>
<td>0.383510</td>
<td><a href="Topic_01.html#vct6xakc">Jiang_2006</a></td>
<td><a href="Topic_01.html#8kvs0qw8">Hao_H_2008</a>, <a href="Topic_01.html#d9v2s9o4">Zhang_2011</a></td>
</tr>
<tr>
<th id="axkdf5vu";>32</th>
<td>Kim_S_2016</td>
<td>Newcastle Disease Virus as a Vaccine Vector for Development of Human and Veterinary Vaccines</td>
<td>Kim, Shin-Hee; Samal, Siba K.</td>
<td>2016</td>
<td>2016-07-04</td>
<td>COMM-USE</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.3390/v8070183" target="_blank">10.3390/v8070183</a></td>
<td>axkdf5vu</td>
<td>0.383122</td>
<td><a href="Topic_07.html#nzuq0dk7">Schwartz_2007</a></td>
<td><a href="Topic_10.html#ovoli9dr">Keshwara_2019</a>, <a href="Topic_12.html#i8xi0h4g">Akahata_2010</a></td>
</tr>
<tr>
<th id="1x1bnt5j";>33</th>
<td>Huang_2005</td>
<td>A differential proteome in tumors suppressed by an adenovirus-based skin patch vaccine encoding human carcinoembryonic antigen</td>
<td>Huang, Chun-Ming; Shi, Zhongkai; DeSilva, Tivanka S.; Yamamoto, Masato; Van Kampen, Kent R.; Elmets, Craig A.; Tang, De-chu C.</td>
<td>2005</td>
<td>2005-03-01</td>
<td>PMC</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1002/pmic.200401114" target="_blank">10.1002/pmic.200401114</a></td>
<td>1x1bnt5j</td>
<td>0.381976</td>
<td><a href="Topic_01.html#wxf60gww">Hu_M_2007</a>, <a href="Topic_01.html#8kvs0qw8">Hao_H_2008</a></td>
<td><a href="Topic_01.html#8kvs0qw8">Hao_H_2008</a></td>
</tr>
<tr>
<th id="vct6xakc";>34</th>
<td>Jiang_2006</td>
<td>Elicitation of neutralizing antibodies by intranasal administration of recombinant vesicular stomatitis virus expressing human immunodeficiency virus type 1 gp120</td>
<td>Jiang, Pengfei; Liu, Yanxia; Yin, Xiaolei; Yuan, Fei; Nie, YuChun; Luo, Min; Aihua, Zheng; Liyin, Du; Ding, Mingxiao; Deng, Hongkui</td>
<td>2006</td>
<td>2006-01-13</td>
<td>PMC</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1016/j.bbrc.2005.11.067" target="_blank">10.1016/j.bbrc.2005.11.067</a></td>
<td>vct6xakc</td>
<td>0.380656</td>
<td><a href="Topic_07.html#nzuq0dk7">Schwartz_2007</a></td>
<td><a href="Topic_01.html#3qdjmb2j">Mok_H_2012</a>, <a href="Topic_01.html#5hryh1ft">Azizi_2006</a>, <a href="Topic_06.html#2sg1tlrg">Clarke_2006</a></td>
</tr>
<tr>
<th id="u8y47qmd";>35</th>
<td>Fedosyuk_2019</td>
<td>Simian adenovirus vector production for early-phase clinical trials: A simple method applicable to multiple serotypes and using entirely disposable product-contact components</td>
<td>Fedosyuk, Sofiya; Merritt, Thomas; Peralta-Alvarez, Marco Polo; Morris, Susan J; Lam, Ada; Laroudie, Nicolas; Kangokar, Anilkumar; Wright, Daniel; Warimwe, George M; Angell-Manning, Phillip; Ritchie, Adam J; Gilbert, Sarah C; Xenopoulos, Alex; Boumlic, Anissa; Douglas, Alexander D</td>
<td>2019</td>
<td>2019-11-08</td>
<td>None</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1016/j.vaccine.2019.04.056" target="_blank">10.1016/j.vaccine.2019.04.056</a></td>
<td>u8y47qmd</td>
<td>0.375573</td>
<td><a href="Topic_02.html#pnl1acrj"><API key></a>, <a href="Topic_07.html#neclg3gb">Tripp_2014</a></td>
<td><a href="Topic_06.html#v5n1gupw">Bangari_2006</a>, <a href="Topic_02.html#aw8p35c5">Tatsis_2004</a>, <a href="Topic_06.html#489dpefx">Hammond_2005</a></td>
</tr>
<tr>
<th id="hrfbygub";>36</th>
<td>Singh_2016</td>
<td>Heterologous Immunity between Adenoviruses and Hepatitis C Virus: A New Paradigm in HCV Immunity and Vaccines</td>
<td>Singh, Shakti; Vedi, Satish; Samrat, Subodh Kumar; Li, Wen; Kumar, Rakesh; Agrawal, Babita</td>
<td>2016</td>
<td>2016-01-11</td>
<td>COMM-USE</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1371/journal.pone.0146404" target="_blank">10.1371/journal.pone.0146404</a></td>
<td>hrfbygub</td>
<td>0.359073</td>
<td><a href="Topic_01.html#z2u5frvq">Montefiori_2007</a></td>
<td><a href="Topic_01.html#3qdjmb2j">Mok_H_2012</a>, <a href="Topic_12.html#i8xi0h4g">Akahata_2010</a></td>
</tr>
<tr>
<th id="aw8p35c5";>37</th>
<td>Tatsis_2004</td>
<td>Adenoviruses as vaccine vectors</td>
<td>Tatsis, Nia; Ertl, Hildegund C.J.</td>
<td>2004</td>
<td>2004-10-31</td>
<td>PMC</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1016/j.ymthe.2004.07.013" target="_blank">10.1016/j.ymthe.2004.07.013</a></td>
<td>aw8p35c5</td>
<td>0.354678</td>
<td><a href="Topic_01.html#z2u5frvq">Montefiori_2007</a>, <a href="Topic_06.html#v5n1gupw">Bangari_2006</a></td>
<td><a href="Topic_06.html#v5n1gupw">Bangari_2006</a>, <a href="Topic_06.html#hrfbygub">Singh_2016</a>, <a href="Topic_02.html#7eqpb7ge">Borovjagin_2014</a>, <a href="Topic_06.html#mxtry60e">Mittal_2016</a></td>
</tr>
<tr>
<th id="489dpefx";>38</th>
<td>Hammond_2005</td>
<td>Porcine adenovirus as a delivery system for swine vaccines and immunotherapeutics</td>
<td>Hammond, Jef M.; Johnson, Michael A.</td>
<td>2005</td>
<td>2005-01-31</td>
<td>PMC</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1016/j.tvjl.2003.09.007" target="_blank">10.1016/j.tvjl.2003.09.007</a></td>
<td>489dpefx</td>
<td>0.345603</td>
<td><a href="Topic_06.html#axkdf5vu">Kim_S_2016</a></td>
<td></td>
</tr>
<tr>
<th id="v812zn3r";>39</th>
<td>Saxena_2013</td>
<td>Pre-existing immunity against vaccine vectors – friend or foe?</td>
<td>Saxena, Manvendra; Van, Thi Thu Hao; Baird, Fiona J.; Coloe, Peter J.; Smooker, Peter M.</td>
<td>2013</td>
<td>2013-01-23</td>
<td>COMM-USE</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1099/mic.0.049601-0" target="_blank">10.1099/mic.0.049601-0</a></td>
<td>v812zn3r</td>
<td>0.344349</td>
<td><a href="Topic_01.html#z2u5frvq">Montefiori_2007</a>, <a href="Topic_07.html#neclg3gb">Tripp_2014</a></td>
<td><a href="Topic_02.html#b8mfn6o9">Tarahomjoo_2011</a>, <a href="Topic_06.html#hrfbygub">Singh_2016</a>, <a href="Topic_01.html#2gt3fwpy">Meseda_2016</a></td>
</tr>
<tr>
<th id="de0b27nq";>40</th>
<td>Anraku_2008</td>
<td>Kunjin replicon-based simian immunodeficiency virus gag vaccines</td>
<td>Anraku, Itaru; Mokhonov, Vladislav V.; Rattanasena, Paweena; Mokhonova, Ekaterina I.; Leung, Jason; Pijlman, Gorben; Cara, Andrea; Schroder, Wayne A.; Khromykh, Alexander A.; Suhrbier, Andreas</td>
<td>2008</td>
<td>2008-06-19</td>
<td>PMC</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1016/j.vaccine.2008.04.001" target="_blank">10.1016/j.vaccine.2008.04.001</a></td>
<td>de0b27nq</td>
<td>0.340714</td>
<td></td>
<td><a href="Topic_09.html#0h5vgi5c">Dahiya_2012</a></td>
</tr>
<tr>
<th id="7del8d2p";>41</th>
<td>Callendret_2007</td>
<td>Heterologous viral RNA export elements improve expression of severe acute respiratory syndrome (SARS) coronavirus spike protein and protective efficacy of DNA vaccines against SARS</td>
<td>Callendret, Benoît; Lorin, Valérie; Charneau, Pierre; Marianneau, Philippe; Contamin, Hugues; Betton, Jean-Michel; van der Werf, Sylvie; Escriou, Nicolas</td>
<td>2007</td>
<td>2007-07-05</td>
<td>PMC</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1016/j.virol.2007.01.012" target="_blank">10.1016/j.virol.2007.01.012</a></td>
<td>7del8d2p</td>
<td>0.328733</td>
<td></td>
<td><a href="Topic_01.html#mghgvr76">Liu_R_2005</a>, <a href="Topic_01.html#ltyqrg81">Escriou_2014</a></td>
</tr>
<tr>
<th id="dqvgng2s";>42</th>
<td>Ohtsuka_2019</td>
<td>A versatile platform technology for recombinant vaccines using non-propagative human parainfluenza virus type 2 vector</td>
<td>Ohtsuka, Junpei; Fukumura, Masayuki; Furuyama, Wakako; Wang, Shujie; Hara, Kenichiro; Maeda, Mitsuyo; Tsurudome, Masato; Miyamoto, Hiroko; Kaito, Aika; Tsuda, Nobuyuki; Kataoka, Yosky; Mizoguchi, Akira; Takada, Ayato; Nosaka, Tetsuya</td>
<td>2019</td>
<td>2019-09-09</td>
<td>COMM-USE</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1038/s41598-019-49579-y" target="_blank">10.1038/s41598-019-49579-y</a></td>
<td>dqvgng2s</td>
<td>0.328249</td>
<td><a href="Topic_01.html#vct6xakc">Jiang_2006</a>, <a href="Topic_07.html#nzuq0dk7">Schwartz_2007</a></td>
<td><a href="Topic_01.html#8kvs0qw8">Hao_H_2008</a>, <a href="Topic_04.html#0czzjeop">Chen_2007</a></td>
</tr>
<tr>
<th id="4vkag60z";>43</th>
<td>Nakayama_2016</td>
<td>Recombinant measles AIK-C vaccine strain expressing heterologous virus antigens</td>
<td>Nakayama, Tetsuo; Sawada, Akihito; Yamaji, Yoshiaki; Ito, Takashi</td>
<td>2016</td>
<td>2016-01-04</td>
<td>PMC</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1016/j.vaccine.2015.10.127" target="_blank">10.1016/j.vaccine.2015.10.127</a></td>
<td>4vkag60z</td>
<td>0.325056</td>
<td><a href="Topic_07.html#fq78593b">Mooney_2013</a></td>
<td><a href="Topic_14.html
</tr>
<tr>
<th id="tjvjlyn9";>44</th>
<td>Luke_2010</td>
<td>Improved antibiotic-free plasmid vector design by incorporation of transient expression enhancers</td>
<td>Luke, J M; Vincent, J M; Du, S X; Gerdemann, U; Leen, A M; Whalen, R G; Hodgson, C P; Williams, J A</td>
<td>2010</td>
<td>2010-11-25</td>
<td>PMC</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1038/gt.2010.149" target="_blank">10.1038/gt.2010.149</a></td>
<td>tjvjlyn9</td>
<td>0.320161</td>
<td></td>
<td></td>
</tr>
<tr>
<th id="a3nzj6yh";>45</th>
<td>Zhang_2016</td>
<td>Adenoviral vector-based strategies against infectious disease and cancer</td>
<td>Zhang, Chao; Zhou, Dongming</td>
<td>2016</td>
<td>2016-04-22</td>
<td>NONCOMM</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1080/21645515.2016.1165908" target="_blank">10.1080/21645515.2016.1165908</a></td>
<td>a3nzj6yh</td>
<td>0.305064</td>
<td><a href="Topic_01.html#z2u5frvq">Montefiori_2007</a>, <a href="Topic_02.html#aw8p35c5">Tatsis_2004</a>, <a href="Topic_07.html#fq78593b">Mooney_2013</a></td>
<td><a href="Topic_02.html#aw8p35c5">Tatsis_2004</a>, <a href="Topic_02.html#7eqpb7ge">Borovjagin_2014</a>, <a href="Topic_02.html#odeksech">Ertl_2016</a></td>
</tr>
<tr>
<th id="l3ej1hdk";>46</th>
<td>Patel_2010</td>
<td>A Porcine Adenovirus with Low Human Seroprevalence Is a Promising Alternative Vaccine Vector to Human Adenovirus 5 in an H5N1 Virus Disease Model</td>
<td>Patel, Ami; Tikoo, Suresh; Kobinger, Gary</td>
<td>2010</td>
<td>2010-12-16</td>
<td>COMM-USE</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1371/journal.pone.0015301" target="_blank">10.1371/journal.pone.0015301</a></td>
<td>l3ej1hdk</td>
<td>0.304688</td>
<td><a href="Topic_07.html#nzuq0dk7">Schwartz_2007</a></td>
<td><a href="Topic_01.html#f78ug0c6">Meng_2012</a>, <a href="Topic_12.html#5zn2vrj5">Warimwe_2013</a>, <a href="Topic_07.html#xdpajuit">Wu_P_2017</a></td>
</tr>
<tr>
<th id="7mi07qm9";>47</th>
<td>Hangalapura_2012</td>
<td>CD40-targeted adenoviral cancer vaccines: the long and winding road to the clinic</td>
<td>Hangalapura, Basav N.; Timares, Laura; Oosterhoff, Dinja; Scheper, Rik J.; Curiel, David T.; de Gruijl, Tanja D.</td>
<td>2012</td>
<td>2012-06-01</td>
<td>PMC</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1002/jgm.1648" target="_blank">10.1002/jgm.1648</a></td>
<td>7mi07qm9</td>
<td>0.304020</td>
<td><a href="Topic_01.html#z2u5frvq">Montefiori_2007</a></td>
<td><a href="Topic_05.html#tkzwzc57">Garu_2016</a>, <a href="Topic_05.html#ctikde7d"><API key></a></td>
</tr>
<tr>
<th id="tbp3it7r";>48</th>
<td>Liniger_2008</td>
<td>Induction of neutralising antibodies and cellular immune responses against SARS coronavirus by recombinant measles viruses</td>
<td>Liniger, Matthias; Zuniga, Armando; Tamin, Azaibi; Azzouz-Morin, Teldja N.; Knuchel, Marlyse; Marty, Rene R.; Wiegand, Marian; Weibel, Sara; Kelvin, David; Rota, Paul A.; Naim, Hussein Y.</td>
<td>2008</td>
<td>2008-04-16</td>
<td>PMC</td>
<td>N</td>
<td><a href="https:
<td><a href="https:
<td><a href="https://doi.org/10.1016/j.vaccine.2008.01.057" target="_blank">10.1016/j.vaccine.2008.01.057</a></td>
<td>tbp3it7r</td>
<td>0.300148</td>
<td><a href="Topic_07.html#nzuq0dk7">Schwartz_2007</a>, <a href="Topic_03.html#k785hl1r">Lv_L_2014</a></td>
<td><a href="Topic_01.html#ltyqrg81">Escriou_2014</a></td>
</tr>
</tbody>
</table>
</body>
</html>
|
<!DOCTYPE html>
<html xmlns:th="http:
xmlns:yq="http:
<head>
<title th:text="#{FSS0001}">File Management</title>
</head>
<body>
<div layout:fragment="breadcrumbs">
<yq:breadcrumbs menu="FSS"/>
</div>
<div class="content content-sm height-600" layout:fragment="content">
<div class="container">
<yq:alert level="danger" />
<form class="sky-form" action="#" th:action="@{/fss/}" th:object="${model}" method="post"
enctype="multipart/form-data">
<header th:text="#{FSS0012}">FSS Form</header>
<fieldset>
<section>
<label class="label" th:text="#{FSS0013}">Input a File</label>
<label class="input input-file">
<div class="button">
<input th:field="*{file}" type="file"/>
<span th:text="#{FSS0014}">Browse</span>
</div>
<input type="text" readonly="readonly"/>
</label>
<p th:if="${#fields.hasErrors('file')}" th:errors="*{file}"></p>
</section>
<section>
<label class="label" th:text="#{FSS0015}">Destination</label>
<label class="select">
<select th:field="*{path}">
<option value="" th:text="#{FSS0016}">Please Select</option>
<yq:options name="FSS_AVAILABLE_DIRS"/>
</select>
<i></i>
</label>
<p th:if="${#fields.hasErrors('path')}" th:errors="*{path}"></p>
</section>
<section>
<label class="label" th:text="#{FSS0017}">Override</label>
<input th:field="*{overrideExisting}" type="checkbox"/>
<label th:for="${#ids.prev('overrideExisting')}" th:text="#{FSS0018}">Override Existing?</label>
</section>
</fieldset>
<footer>
<button class="btn-u rounded" type="submit" th:text="#{FSS0019}">Submit</button>
<button class="btn-u rounded" id="cancel" type="reset" th:text="#{FSS0020}">Reset</button>
</footer>
</form>
</div>
</div>
</body>
</html>
|
import { Component } from '@angular/core';
import { Platform } from 'ionic-angular';
import { InAppBrowser } from '@ionic-native/in-app-browser';
@Component({
selector: 'page-apuntes',
templateUrl: 'apuntes.html'
})
export class ApuntesPage {
constructor(public platform: Platform, private theInAppBrowser: InAppBrowser){}
launch() {
this.platform.ready().then(() => {
this.theInAppBrowser.create("http://apuntes.lafuenteunlp.com.ar", '_self', 'location=yes');
});
}
/*
ionViewDidLoad() {
this.confData.getMap().subscribe((mapData: any) => {
let mapEle = this.mapElement.nativeElement;
let map = new google.maps.Map(mapEle, {
center: mapData.find((d: any) => d.center),
zoom: 16
});
mapData.forEach((markerData: any) => {
let infoWindow = new google.maps.InfoWindow({
content: `<h5>${markerData.name}</h5>`
});
let marker = new google.maps.Marker({
position: markerData,
map: map,
title: markerData.name
});
marker.addListener('click', () => {
infoWindow.open(map, marker);
});
});
google.maps.event.addListenerOnce(map, 'idle', () => {
mapEle.classList.add('show-map');
});
});
}
*/
}
|
/*price range*/
$('#sl2').slider();
var RGBChange = function() {
$('#RGB').css('background', 'rgb('+r.getValue()+','+g.getValue()+','+b.getValue()+')')
};
/*scroll to top*/
$(document).ready(function(){
$(function () {
$.scrollUp({
scrollName: 'scrollUp', // Element ID
scrollDistance: 300, // Distance from top/bottom before showing element (px)
scrollFrom: 'top', // 'top' or 'bottom'
scrollSpeed: 300, // Speed back to top (ms)
easingType: 'linear',
animation: 'fade', // Fade, slide, none
animationSpeed: 200, // Animation in speed (ms)
scrollTrigger: false, // Set a custom triggering element. Can be an HTML string or jQuery object
//scrollTarget: false, // Set a custom target element for scrolling to the top
scrollText: '<i class="fa fa-angle-up"></i>', // Text for element, can contain HTML
scrollTitle: false, // Set a custom <a> title if required.
scrollImg: false, // Set true to use image
activeOverlay: false, // Set CSS color to display scrollUp active point, e.g '#00FFFF'
zIndex: 2147483647 // Z-Index for the overlay
});
});
});
// Returns a random integer between min and max
// Using Math.round() will give you a non-uniform distribution!
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
// Replace url parameter - WishlistItems
function replaceUrlParam(url, paramName, paramValue) {
var pattern = new RegExp('(' + paramName + '=).*?(&|$)')
var newUrl = url
if (url.search(pattern) >= 0) {
newUrl = url.replace(pattern, '$1' + paramValue + '$2');
}
else {
newUrl = newUrl + (newUrl.indexOf('?') > 0 ? '&' : '?') + paramName + '=' + paramValue
}
return newUrl
}
// Scroll back to selected wishlist item
if (window.location.hash != '') {
var target = window.location.hash;
//var $target = $(target);
$('html, body').stop().animate({
//'scrollTop': $target.offset().top
}, 900, 'swing', function () {
window.location.hash = target;
});
}
|
import sys
sys.path.insert(1,"../../../")
import h2o
from tests import pyunit_utils
from h2o.estimators.gbm import <API key>
def <API key>():
train = h2o.import_file(path=pyunit_utils.locate("bigdata/laptop/mnist/train.csv.gz"))
train.tail()
gbm_mnist = <API key>(ntrees=1,
max_depth=1,
min_rows=10,
learn_rate=0.01)
gbm_mnist.train(x=range(784), y=784, training_frame=train)
gbm_mnist.show()
if __name__ == "__main__":
pyunit_utils.standalone_test(<API key>)
else:
<API key>()
|
<?php
use Phalcon\DI\FactoryDefault\CLI as CliDI,
Phalcon\CLI\Console as ConsoleApp;
define('VERSION', '1.0.0');
//CLI
$di = new CliDI();
defined('APP_PATH')
|| define('APP_PATH', realpath(dirname(dirname(__FILE__))));
$loader = new \Phalcon\Loader();
$loader->registerDirs(
array(
APP_PATH . '/tasks',
APP_PATH . '/apps/models',
)
);
$loader->register();
if(is_readable(APP_PATH . '/config/config.php')) {
$config = include APP_PATH . '/config/config.php';
$di->set('config', $config);
$di->set('db', function() use ( $config, $di) {
$eventsManager = new \Phalcon\Events\Manager();
$profiler = new \Phalcon\Db\Profiler();
$eventsManager->attach('db', function($event, $connection) use ($profiler) {
//profilersql
if ($event->getType() == 'beforeQuery') {
$profiler->startProfile($connection->getSQLStatement());
}
//profiler
if ($event->getType() == 'afterQuery') {
$profiler->stopProfile();
}
});
$connection = new \Phalcon\Db\Adapter\Pdo\Mysql(
[
"host" => $config->database->host,
"username" => $config->database->username,
"password" => $config->database->password,
"dbname" => $config->database->dbname,
"charset" => $config->database->charset
]
);
$connection->setEventsManager($eventsManager);
return $connection;
});
}
// console
$console = new ConsoleApp();
$console->setDI($di);
/**
* console
*/
$arguments = array();
foreach($argv as $k => $arg) {
if($k == 1) {
$arguments['task'] = $arg;
} elseif($k == 2) {
$arguments['action'] = $arg;
} elseif($k >= 3) {
$arguments['params'][] = $arg;
}
}
// action
define('CURRENT_TASK', (isset($argv[1]) ? $argv[1] : null));
define('CURRENT_ACTION', (isset($argv[2]) ? $argv[2] : null));
try {
$console->handle($arguments);
}
catch (\Phalcon\Exception $e) {
echo $e->getMessage();
exit(255);
}
|
-- create in cinefiles_domain database, cinefiles_denorm schema
CREATE OR REPLACE FUNCTION cinefiles_denorm.concat_worktitles (shortid VARCHAR)
RETURNS VARCHAR AS
$$
DECLARE
titlestring VARCHAR(1000);
preftitle VARCHAR(500);
engltitle VARCHAR(500);
prefcount INTEGER;
englcount INTEGER;
errormsg VARCHAR(500);
BEGIN
select into prefcount count(*)
from works_common wc
inner join hierarchy hwc on (
wc.id = hwc.parentid
and hwc.primarytype = 'workTermGroup'
and hwc.pos = 0)
inner join worktermgroup wtg on (hwc.id = wtg.id)
where wc.shortidentifier = $1;
select into englcount count(*)
from works_common wc
inner join hierarchy hwc on (
wc.id = hwc.parentid
and hwc.primarytype = 'workTermGroup'
and hwc.pos > 0)
inner join worktermgroup wtg on (
hwc.id = wtg.id
and wtg.termlanguage like '%''English''%')
where wc.shortidentifier = $1;
IF prefcount = 0 THEN
return NULL;
ELSEIF prefcount > 1 THEN
errormsg := 'There can be only one! But there are ' ||
prefcount::text || ' preferred titles!';
RAISE EXCEPTION '%', errormsg;
ELSEIF prefcount = 1 THEN
select into preftitle trim(wtg.termdisplayname)
from works_common wc
inner join hierarchy hwc on (
wc.id = hwc.parentid
and hwc.primarytype = 'workTermGroup'
and hwc.pos = 0)
inner join worktermgroup wtg on (hwc.id = wtg.id)
where wc.shortidentifier = $1;
IF englcount = 0 THEN
titlestring := preftitle;
RETURN titlestring;
ELSEIF englcount = 1 THEN
select into engltitle trim(wtg.termdisplayname)
from works_common wc
inner join hierarchy hwc on (
wc.id = hwc.parentid
and hwc.primarytype = 'workTermGroup'
and hwc.pos > 0)
inner join worktermgroup wtg on (
hwc.id = wtg.id
and wtg.termlanguage like '%''English''%')
where wc.shortidentifier = $1;
titlestring := preftitle || ' (' || engltitle || ')';
RETURN titlestring;
ELSEIF englcount > 1 THEN
errormsg := 'There can be only one! But there are ' ||
englcount::text || ' non-preferred English titles!';
RAISE EXCEPTION '%', errormsg;
ELSE
errormsg := 'Unable to get a count of non-preferred English titles!';
RAISE EXCEPTION '%', errormsg;
END IF;
ELSE
errormsg := 'Unable to get a count of preferred titles!';
RAISE EXCEPTION '%', errormsg;
END IF;
RETURN NULL;
END;
$$
LANGUAGE 'plpgsql'
IMMUTABLE
RETURNS NULL ON NULL INPUT;
GRANT EXECUTE ON FUNCTION cinefiles_denorm.concat_worktitles (filmid VARCHAR) TO PUBLIC;
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=constant.SDL_SCANCODE_LSHIFT.html">
</head>
<body>
<p>Redirecting to <a href="constant.SDL_SCANCODE_LSHIFT.html">constant.SDL_SCANCODE_LSHIFT.html</a>...</p>
<script>location.replace("constant.SDL_SCANCODE_LSHIFT.html" + location.search + location.hash);</script>
</body>
</html>
|
<?php
namespace Google\AdsApi\AdWords\v201809\cm;
/**
* This file was generated from WSDL. DO NOT EDIT.
*/
class IdErrorReason
{
const NOT_FOUND = 'NOT_FOUND';
}
|
#!/Users/wuga/Documents/website/wuga/env/bin/python2.7
# The Python Imaging Library
from __future__ import print_function
import sys
if sys.version_info[0] > 2:
import tkinter
else:
import Tkinter as tkinter
from PIL import Image, ImageTk
# an image animation player
class UI(tkinter.Label):
def __init__(self, master, im):
if isinstance(im, list):
# list of images
self.im = im[1:]
im = self.im[0]
else:
# sequence
self.im = im
if im.mode == "1":
self.image = ImageTk.BitmapImage(im, foreground="white")
else:
self.image = ImageTk.PhotoImage(im)
tkinter.Label.__init__(self, master, image=self.image, bg="black", bd=0)
self.update()
duration = im.info.get("duration", 100)
self.after(duration, self.next)
def next(self):
if isinstance(self.im, list):
try:
im = self.im[0]
del self.im[0]
self.image.paste(im)
except IndexError:
return # end of list
else:
try:
im = self.im
im.seek(im.tell() + 1)
self.image.paste(im)
except EOFError:
return # end of file
duration = im.info.get("duration", 100)
self.after(duration, self.next)
self.update_idletasks()
# script interface
if __name__ == "__main__":
if not sys.argv[1:]:
print("Syntax: python player.py imagefile(s)")
sys.exit(1)
filename = sys.argv[1]
root = tkinter.Tk()
root.title(filename)
if len(sys.argv) > 2:
# list of images
print("loading...")
im = []
for filename in sys.argv[1:]:
im.append(Image.open(filename))
else:
# sequence
im = Image.open(filename)
UI(root, im).pack()
root.mainloop()
|
package com.apixandru.rummikub.api;
/**
* @author <API key> Bledea
* @since Sep 16, 2015
*/
public enum Rank {
ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, TEN, ELEVEN, TWELVE, THIRTEEN;
public int asNumber() {
return ordinal() + 1;
}
@Override
public String toString() {
return String.format("%2d", asNumber());
}
}
|
package OpenXPKI::Server::Workflow::Activity::Tools::SetAttribute;
use strict;
use base qw( OpenXPKI::Server::Workflow::Activity );
use OpenXPKI::Server::Context qw( CTX );
use OpenXPKI::Exception;
use OpenXPKI::Debug;
use OpenXPKI::Serialization::Simple;
use Data::Dumper;
sub execute
{
my $self = shift;
my $workflow = shift;
my $context = $workflow->context();
my $serializer = OpenXPKI::Serialization::Simple->new();
my $params = $self->param();
my $attrib = {};
##! 32: 'SetAttrbute action parameters ' . Dumper $params
foreach my $key (keys %{$params}) {
my $val = $params->{$key};
if ($val) {
##! 16: 'Set attrib ' . $key
$workflow->attrib({ $key => $val });
CTX('log')->workflow()->debug("Writing workflow attribute $key => $val");
} else {
##! 16: 'Unset attrib ' . $key
# translation from empty to undef is required as the
# attribute backend will write empty values
$workflow->attrib({ $key => undef });
CTX('log')->workflow()->debug("Deleting workflow attribute $key");
}
}
return;
}
1;
__END__
=head1 Name
OpenXPKI::Server::Workflow::Activity::Tools::SetAttribute
=head1 Description
Set values in the workflow attribute table. Uses the actions parameter list
to determine the key/value pairs to be written. Values that result in an
empty string are removed from the attribute table!
|
package com.cognizant.cognizantits.qcconnection.qcupdation;
import com4j.DISPID;
import com4j.IID;
import com4j.VTID;
@IID("{<API key>}")
public abstract interface <API key>
extends IBaseFactoryEx
{
@DISPID(9)
@VTID(17)
public abstract IList <API key>(IList paramIList);
}
|
// file at the top-level directory of this distribution and at
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use collections::HashMap;
use std::fmt;
use std::from_str::from_str;
use std::str::{MaybeOwned, Owned, Slice};
use compile::Program;
use parse;
use vm;
use vm::{CaptureLocs, MatchKind, Exists, Location, Submatches};
Escapes all regular expression meta characters in `text` so that it may be
safely used in a regular expression as a literal string.
pub fn quote(text: &str) -> StrBuf {
let mut quoted = StrBuf::with_capacity(text.len());
for c in text.chars() {
if parse::is_punct(c) {
quoted.push_char('\\')
}
quoted.push_char(c);
}
quoted
}
Tests if the given regular expression matches somewhere in the text given.
If there was a problem compiling the regular expression, an error is
returned.
To find submatches, split or replace text, you'll need to compile an
expression first.
Note that you should prefer the `regex!` macro when possible. For example,
`regex!("...").is_match("...")`.
pub fn is_match(regex: &str, text: &str) -> Result<bool, parse::Error> {
Regex::new(regex).map(|r| r.is_match(text))
}
Regex is a compiled regular expression, represented as either a sequence
of bytecode instructions (dynamic) or as a specialized Rust function
(native). It can be used to search, split
or replace text. All searching is done with an implicit `.*?` at the
beginning and end of an expression. To force an expression to match the
whole string (or a prefix or a suffix), you must use an anchor like `^` or
`$` (or `\A` and `\z`).
While this crate will handle Unicode strings (whether in the regular
expression or in the search text), all positions returned are **byte
indices**. Every byte index is guaranteed to be at a UTF8 codepoint
boundary.
The lifetimes `'r` and `'t` in this crate correspond to the lifetime of a
compiled regular expression and text to search, respectively.
The only methods that allocate new strings are the string replacement
methods. All other methods (searching and splitting) return borrowed
pointers into the string given.
# Examples
Find the location of a US phone number:
```rust
# use regex::Regex;
let re = match Regex::new("[0-9]{3}-[0-9]{3}-[0-9]{4}") {
Ok(re) => re,
Err(err) => fail!("{}", err),
};
assert_eq!(re.find("phone: 111-222-3333"), Some((7, 19)));
```
You can also use the `regex!` macro to compile a regular expression when
you compile your program:
```rust
#![feature(phase)]
extern crate regex;
#[phase(syntax)] extern crate regex_macros;
fn main() {
let re = regex!(r"\d+");
assert_eq!(re.find("123 abc"), Some((0, 3)));
}
```
Given an incorrect regular expression, `regex!` will cause the Rust
compiler to produce a compile time error.
Note that `regex!` will compile the expression to native Rust code, which
makes it much faster when searching text.
More details about the `regex!` macro can be found in the `regex` crate
documentation.
#[deriving(Clone)]
#[allow(<API key>)]
pub struct Regex {
The representation of `Regex` is exported to support the `regex!`
syntax extension. Do not rely on it.
See the comments for the `program` module in `lib.rs` for a more
detailed explanation for what `regex!` requires.
#[doc(hidden)]
pub original: StrBuf,
#[doc(hidden)]
pub names: Vec<Option<StrBuf>>,
#[doc(hidden)]
pub p: MaybeNative,
}
impl fmt::Show for Regex {
Shows the original regular expression.
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.original)
}
}
pub enum MaybeNative {
Dynamic(Program),
Native(fn(MatchKind, &str, uint, uint) -> Vec<Option<uint>>),
}
impl Clone for MaybeNative {
fn clone(&self) -> MaybeNative {
match *self {
Dynamic(ref p) => Dynamic(p.clone()),
Native(fp) => Native(fp),
}
}
}
impl Regex {
Compiles a dynamic regular expression. Once compiled, it can be
used repeatedly to search, split or replace text in a string.
When possible, you should prefer the `regex!` macro since it is
safer and always faster.
If an invalid expression is given, then an error is returned.
pub fn new(re: &str) -> Result<Regex, parse::Error> {
let ast = try!(parse::parse(re));
let (prog, names) = Program::new(ast);
Ok(Regex {
original: re.to_strbuf(),
names: names, p: Dynamic(prog),
})
}
Returns true if and only if the regex matches the string given.
# Example
Test if some text contains at least one word with exactly 13
characters:
```rust
# #![feature(phase)]
# extern crate regex; #[phase(syntax)] extern crate regex_macros;
# fn main() {
let text = "I categorically deny having triskaidekaphobia.";
let matched = regex!(r"\b\w{13}\b").is_match(text);
assert!(matched);
```
pub fn is_match(&self, text: &str) -> bool {
has_match(&exec(self, Exists, text))
}
Returns the start and end byte range of the leftmost-first match in
`text`. If no match exists, then `None` is returned.
Note that this should only be used if you want to discover the position
of the match. Testing the existence of a match is faster if you use
`is_match`.
# Example
Find the start and end location of every word with exactly 13
characters:
```rust
# #![feature(phase)]
# extern crate regex; #[phase(syntax)] extern crate regex_macros;
# fn main() {
let text = "I categorically deny having triskaidekaphobia.";
let pos = regex!(r"\b\w{13}\b").find(text);
assert_eq!(pos, Some((2, 15)));
```
pub fn find(&self, text: &str) -> Option<(uint, uint)> {
let caps = exec(self, Location, text);
if has_match(&caps) {
Some((caps.get(0).unwrap(), caps.get(1).unwrap()))
} else {
None
}
}
Returns an iterator for each successive non-overlapping match in
`text`, returning the start and end byte indices with respect to
`text`.
# Example
Find the start and end location of the first word with exactly 13
characters:
```rust
# #![feature(phase)]
# extern crate regex; #[phase(syntax)] extern crate regex_macros;
# fn main() {
let text = "Retroactively relinquishing remunerations is reprehensible.";
for pos in regex!(r"\b\w{13}\b").find_iter(text) {
println!("{}", pos);
}
// Output:
// (0, 13)
// (14, 27)
// (28, 41)
// (45, 58)
```
pub fn find_iter<'r, 't>(&'r self, text: &'t str) -> FindMatches<'r, 't> {
FindMatches {
re: self,
search: text,
last_end: 0,
last_match: None,
}
}
Returns the capture groups corresponding to the leftmost-first
match in `text`. Capture group `0` always corresponds to the entire
match. If no match is found, then `None` is returned.
You should only use `captures` if you need access to submatches.
Otherwise, `find` is faster for discovering the location of the overall
match.
# Examples
Say you have some text with movie names and their release years,
like "'Citizen Kane' (1941)". It'd be nice if we could search for text
looking like that, while also extracting the movie name and its release
year separately.
```rust
# #![feature(phase)]
# extern crate regex; #[phase(syntax)] extern crate regex_macros;
# fn main() {
let re = regex!(r"'([^']+)'\s+\((\d{4})\)");
let text = "Not my favorite movie: 'Citizen Kane' (1941).";
let caps = re.captures(text).unwrap();
assert_eq!(caps.at(1), "Citizen Kane");
assert_eq!(caps.at(2), "1941");
assert_eq!(caps.at(0), "'Citizen Kane' (1941)");
```
Note that the full match is at capture group `0`. Each subsequent
capture group is indexed by the order of its opening `(`.
We can make this example a bit clearer by using *named* capture groups:
```rust
# #![feature(phase)]
# extern crate regex; #[phase(syntax)] extern crate regex_macros;
# fn main() {
let re = regex!(r"'(?P<title>[^']+)'\s+\((?P<year>\d{4})\)");
let text = "Not my favorite movie: 'Citizen Kane' (1941).";
let caps = re.captures(text).unwrap();
assert_eq!(caps.name("title"), "Citizen Kane");
assert_eq!(caps.name("year"), "1941");
assert_eq!(caps.at(0), "'Citizen Kane' (1941)");
```
Here we name the capture groups, which we can access with the `name`
method. Note that the named capture groups are still accessible with
`at`.
The `0`th capture group is always unnamed, so it must always be
accessed with `at(0)`.
pub fn captures<'t>(&self, text: &'t str) -> Option<Captures<'t>> {
let caps = exec(self, Submatches, text);
Captures::new(self, text, caps)
}
Returns an iterator over all the non-overlapping capture groups matched
in `text`. This is operationally the same as `find_iter` (except it
yields information about submatches).
# Example
We can use this to find all movie titles and their release years in
some text, where the movie is formatted like "'Title' (xxxx)":
```rust
# #![feature(phase)]
# extern crate regex; #[phase(syntax)] extern crate regex_macros;
# fn main() {
let re = regex!(r"'(?P<title>[^']+)'\s+\((?P<year>\d{4})\)");
let text = "'Citizen Kane' (1941), 'The Wizard of Oz' (1939), 'M' (1931).";
for caps in re.captures_iter(text) {
println!("Movie: {}, Released: {}", caps.name("title"), caps.name("year"));
}
// Output:
// Movie: Citizen Kane, Released: 1941
// Movie: The Wizard of Oz, Released: 1939
// Movie: M, Released: 1931
```
pub fn captures_iter<'r, 't>(&'r self, text: &'t str)
-> FindCaptures<'r, 't> {
FindCaptures {
re: self,
search: text,
last_match: None,
last_end: 0,
}
}
Returns an iterator of substrings of `text` delimited by a match
of the regular expression.
Namely, each element of the iterator corresponds to text that *isn't*
matched by the regular expression.
This method will *not* copy the text given.
# Example
To split a string delimited by arbitrary amounts of spaces or tabs:
```rust
# #![feature(phase)]
# extern crate regex; #[phase(syntax)] extern crate regex_macros;
# fn main() {
let re = regex!(r"[ \t]+");
let fields: Vec<&str> = re.split("a b \t c\td e").collect();
assert_eq!(fields, vec!("a", "b", "c", "d", "e"));
```
pub fn split<'r, 't>(&'r self, text: &'t str) -> RegexSplits<'r, 't> {
RegexSplits {
finder: self.find_iter(text),
last: 0,
}
}
Returns an iterator of at most `limit` substrings of `text` delimited
by a match of the regular expression. (A `limit` of `0` will return no
substrings.)
Namely, each element of the iterator corresponds to text that *isn't*
matched by the regular expression.
The remainder of the string that is not split will be the last element
in the iterator.
This method will *not* copy the text given.
# Example
Get the first two words in some text:
```rust
# #![feature(phase)]
# extern crate regex; #[phase(syntax)] extern crate regex_macros;
# fn main() {
let re = regex!(r"\W+");
let fields: Vec<&str> = re.splitn("Hey! How are you?", 3).collect();
assert_eq!(fields, vec!("Hey", "How", "are you?"));
```
pub fn splitn<'r, 't>(&'r self, text: &'t str, limit: uint)
-> RegexSplitsN<'r, 't> {
RegexSplitsN {
splits: self.split(text),
cur: 0,
limit: limit,
}
}
Replaces the leftmost-first match with the replacement provided.
The replacement can be a regular string (where `$N` and `$name` are
expanded to match capture groups) or a function that takes the matches'
`Captures` and returns the replaced string.
If no match is found, then a copy of the string is returned unchanged.
# Examples
Note that this function is polymorphic with respect to the replacement.
In typical usage, this can just be a normal string:
```rust
# #![feature(phase)]
# extern crate regex; #[phase(syntax)] extern crate regex_macros;
# fn main() {
let re = regex!("[^01]+");
assert_eq!(re.replace("1078910", "").as_slice(), "1010");
```
But anything satisfying the `Replacer` trait will work. For example,
a closure of type `|&Captures| -> StrBuf` provides direct access to the
captures corresponding to a match. This allows one to access
submatches easily:
```rust
# #![feature(phase)]
# extern crate regex; #[phase(syntax)] extern crate regex_macros;
# use regex::Captures; fn main() {
let re = regex!(r"([^,\s]+),\s+(\S+)");
let result = re.replace("Springsteen, Bruce", |caps: &Captures| {
format_strbuf!("{} {}", caps.at(2), caps.at(1))
});
assert_eq!(result.as_slice(), "Bruce Springsteen");
```
But this is a bit cumbersome to use all the time. Instead, a simple
syntax is supported that expands `$name` into the corresponding capture
group. Here's the last example, but using this expansion technique
with named capture groups:
```rust
# #![feature(phase)]
# extern crate regex; #[phase(syntax)] extern crate regex_macros;
# fn main() {
let re = regex!(r"(?P<last>[^,\s]+),\s+(?P<first>\S+)");
let result = re.replace("Springsteen, Bruce", "$first $last");
assert_eq!(result.as_slice(), "Bruce Springsteen");
```
Note that using `$2` instead of `$first` or `$1` instead of `$last`
would produce the same result. To write a literal `$` use `$$`.
Finally, sometimes you just want to replace a literal string with no
submatch expansion. This can be done by wrapping a string with
`NoExpand`:
```rust
# #![feature(phase)]
# extern crate regex; #[phase(syntax)] extern crate regex_macros;
# fn main() {
use regex::NoExpand;
let re = regex!(r"(?P<last>[^,\s]+),\s+(\S+)");
let result = re.replace("Springsteen, Bruce", NoExpand("$2 $last"));
assert_eq!(result.as_slice(), "$2 $last");
```
pub fn replace<R: Replacer>(&self, text: &str, rep: R) -> StrBuf {
self.replacen(text, 1, rep)
}
Replaces all non-overlapping matches in `text` with the
replacement provided. This is the same as calling `replacen` with
`limit` set to `0`.
See the documentation for `replace` for details on how to access
submatches in the replacement string.
pub fn replace_all<R: Replacer>(&self, text: &str, rep: R) -> StrBuf {
self.replacen(text, 0, rep)
}
Replaces at most `limit` non-overlapping matches in `text` with the
replacement provided. If `limit` is 0, then all non-overlapping matches
are replaced.
See the documentation for `replace` for details on how to access
submatches in the replacement string.
pub fn replacen<R: Replacer>
(&self, text: &str, limit: uint, mut rep: R) -> StrBuf {
let mut new = StrBuf::with_capacity(text.len());
let mut last_match = 0u;
for (i, cap) in self.captures_iter(text).enumerate() {
// It'd be nicer to use the 'take' iterator instead, but it seemed
// awkward given that '0' => no limit.
if limit > 0 && i >= limit {
break
}
let (s, e) = cap.pos(0).unwrap(); // captures only reports matches
new.push_str(text.slice(last_match, s));
new.push_str(rep.reg_replace(&cap).as_slice());
last_match = e;
}
new.append(text.slice(last_match, text.len()))
}
}
NoExpand indicates literal string replacement.
It can be used with `replace` and `replace_all` to do a literal
string replacement without expanding `$name` to their corresponding
capture groups.
`'r` is the lifetime of the literal text.
pub struct NoExpand<'t>(pub &'t str);
Replacer describes types that can be used to replace matches in a string.
pub trait Replacer {
Returns a possibly owned string that is used to replace the match
corresponding the the `caps` capture group.
The `'a` lifetime refers to the lifetime of a borrowed string when
a new owned string isn't needed (e.g., for `NoExpand`).
fn reg_replace<'a>(&'a mut self, caps: &Captures) -> MaybeOwned<'a>;
}
impl<'t> Replacer for NoExpand<'t> {
fn reg_replace<'a>(&'a mut self, _: &Captures) -> MaybeOwned<'a> {
let NoExpand(s) = *self;
Slice(s)
}
}
impl<'t> Replacer for &'t str {
fn reg_replace<'a>(&'a mut self, caps: &Captures) -> MaybeOwned<'a> {
Owned(caps.expand(*self).into_owned())
}
}
impl<'a> Replacer for |&Captures|: 'a -> StrBuf {
fn reg_replace<'r>(&'r mut self, caps: &Captures) -> MaybeOwned<'r> {
Owned((*self)(caps).into_owned())
}
}
Yields all substrings delimited by a regular expression match.
`'r` is the lifetime of the compiled expression and `'t` is the lifetime
of the string being split.
pub struct RegexSplits<'r, 't> {
finder: FindMatches<'r, 't>,
last: uint,
}
impl<'r, 't> Iterator<&'t str> for RegexSplits<'r, 't> {
fn next(&mut self) -> Option<&'t str> {
let text = self.finder.search;
match self.finder.next() {
None => {
if self.last >= text.len() {
None
} else {
let s = text.slice(self.last, text.len());
self.last = text.len();
Some(s)
}
}
Some((s, e)) => {
let matched = text.slice(self.last, s);
self.last = e;
Some(matched)
}
}
}
}
Yields at most `N` substrings delimited by a regular expression match.
The last substring will be whatever remains after splitting.
`'r` is the lifetime of the compiled expression and `'t` is the lifetime
of the string being split.
pub struct RegexSplitsN<'r, 't> {
splits: RegexSplits<'r, 't>,
cur: uint,
limit: uint,
}
impl<'r, 't> Iterator<&'t str> for RegexSplitsN<'r, 't> {
fn next(&mut self) -> Option<&'t str> {
let text = self.splits.finder.search;
if self.cur >= self.limit {
None
} else {
self.cur += 1;
if self.cur >= self.limit {
Some(text.slice(self.splits.last, text.len()))
} else {
self.splits.next()
}
}
}
}
Captures represents a group of captured strings for a single match.
The 0th capture always corresponds to the entire match. Each subsequent
index corresponds to the next capture group in the regex.
If a capture group is named, then the matched string is *also* available
via the `name` method. (Note that the 0th capture is always unnamed and so
must be accessed with the `at` method.)
Positions returned from a capture group are always byte indices.
`'t` is the lifetime of the matched text.
pub struct Captures<'t> {
text: &'t str,
locs: CaptureLocs,
named: Option<HashMap<StrBuf, uint>>,
}
impl<'t> Captures<'t> {
fn new(re: &Regex, search: &'t str, locs: CaptureLocs)
-> Option<Captures<'t>> {
if !has_match(&locs) {
return None
}
let named =
if re.names.len() == 0 {
None
} else {
let mut named = HashMap::new();
for (i, name) in re.names.iter().enumerate() {
match name {
&None => {},
&Some(ref name) => {
named.insert(name.to_strbuf(), i);
}
}
}
Some(named)
};
Some(Captures {
text: search,
locs: locs,
named: named,
})
}
Returns the start and end positions of the Nth capture group.
Returns `None` if `i` is not a valid capture group or if the capture
group did not match anything.
The positions returned are *always* byte indices with respect to the
original string matched.
pub fn pos(&self, i: uint) -> Option<(uint, uint)> {
let (s, e) = (i * 2, i * 2 + 1);
if e >= self.locs.len() || self.locs.get(s).is_none() {
// VM guarantees that each pair of locations are both Some or None.
return None
}
Some((self.locs.get(s).unwrap(), self.locs.get(e).unwrap()))
}
Returns the matched string for the capture group `i`.
If `i` isn't a valid capture group or didn't match anything, then the
empty string is returned.
pub fn at(&self, i: uint) -> &'t str {
match self.pos(i) {
None => "",
Some((s, e)) => {
self.text.slice(s, e)
}
}
}
Returns the matched string for the capture group named `name`.
If `name` isn't a valid capture group or didn't match anything, then
the empty string is returned.
pub fn name(&self, name: &str) -> &'t str {
match self.named {
None => "",
Some(ref h) => {
match h.find_equiv(&name) {
None => "",
Some(i) => self.at(*i),
}
}
}
}
Creates an iterator of all the capture groups in order of appearance
in the regular expression.
pub fn iter(&'t self) -> SubCaptures<'t> {
SubCaptures { idx: 0, caps: self, }
}
Creates an iterator of all the capture group positions in order of
appearance in the regular expression. Positions are byte indices
in terms of the original string matched.
pub fn iter_pos(&'t self) -> SubCapturesPos<'t> {
SubCapturesPos { idx: 0, caps: self, }
}
Expands all instances of `$name` in `text` to the corresponding capture
group `name`.
`name` may be an integer corresponding to the index of the
capture group (counted by order of opening parenthesis where `0` is the
entire match) or it can be a name (consisting of letters, digits or
underscores) corresponding to a named capture group.
If `name` isn't a valid capture group (whether the name doesn't exist or
isn't a valid index), then it is replaced with the empty string.
To write a literal `$` use `$$`.
pub fn expand(&self, text: &str) -> StrBuf {
// How evil can you get?
// FIXME: Don't use regexes for this. It's completely unnecessary.
let re = Regex::new(r"(^|[^$]|\b)\$(\w+)").unwrap();
let text = re.replace_all(text, |refs: &Captures| -> StrBuf {
let (pre, name) = (refs.at(1), refs.at(2));
format_strbuf!("{}{}",
pre,
match from_str::<uint>(name.as_slice()) {
None => self.name(name).to_strbuf(),
Some(i) => self.at(i).to_strbuf(),
})
});
let re = Regex::new(r"\$\$").unwrap();
re.replace_all(text.as_slice(), NoExpand("$"))
}
}
impl<'t> Container for Captures<'t> {
Returns the number of captured groups.
#[inline]
fn len(&self) -> uint {
self.locs.len() / 2
}
}
An iterator over capture groups for a particular match of a regular
expression.
`'t` is the lifetime of the matched text.
pub struct SubCaptures<'t> {
idx: uint,
caps: &'t Captures<'t>,
}
impl<'t> Iterator<&'t str> for SubCaptures<'t> {
fn next(&mut self) -> Option<&'t str> {
if self.idx < self.caps.len() {
self.idx += 1;
Some(self.caps.at(self.idx - 1))
} else {
None
}
}
}
An iterator over capture group positions for a particular match of a
regular expression.
Positions are byte indices in terms of the original string matched.
`'t` is the lifetime of the matched text.
pub struct SubCapturesPos<'t> {
idx: uint,
caps: &'t Captures<'t>,
}
impl<'t> Iterator<Option<(uint, uint)>> for SubCapturesPos<'t> {
fn next(&mut self) -> Option<Option<(uint, uint)>> {
if self.idx < self.caps.len() {
self.idx += 1;
Some(self.caps.pos(self.idx - 1))
} else {
None
}
}
}
An iterator that yields all non-overlapping capture groups matching a
particular regular expression. The iterator stops when no more matches can
be found.
`'r` is the lifetime of the compiled expression and `'t` is the lifetime
of the matched string.
pub struct FindCaptures<'r, 't> {
re: &'r Regex,
search: &'t str,
last_match: Option<uint>,
last_end: uint,
}
impl<'r, 't> Iterator<Captures<'t>> for FindCaptures<'r, 't> {
fn next(&mut self) -> Option<Captures<'t>> {
if self.last_end > self.search.len() {
return None
}
let caps = exec_slice(self.re, Submatches, self.search,
self.last_end, self.search.len());
let (s, e) =
if !has_match(&caps) {
return None
} else {
(caps.get(0).unwrap(), caps.get(1).unwrap())
};
// Don't accept empty matches immediately following a match.
// i.e., no infinite loops please.
if e == s && Some(self.last_end) == self.last_match {
self.last_end += 1;
return self.next()
}
self.last_end = e;
self.last_match = Some(self.last_end);
Captures::new(self.re, self.search, caps)
}
}
An iterator over all non-overlapping matches for a particular string.
The iterator yields a tuple of integers corresponding to the start and end
of the match. The indices are byte offsets. The iterator stops when no more
matches can be found.
`'r` is the lifetime of the compiled expression and `'t` is the lifetime
of the matched string.
pub struct FindMatches<'r, 't> {
re: &'r Regex,
search: &'t str,
last_match: Option<uint>,
last_end: uint,
}
impl<'r, 't> Iterator<(uint, uint)> for FindMatches<'r, 't> {
fn next(&mut self) -> Option<(uint, uint)> {
if self.last_end > self.search.len() {
return None
}
let caps = exec_slice(self.re, Location, self.search,
self.last_end, self.search.len());
let (s, e) =
if !has_match(&caps) {
return None
} else {
(caps.get(0).unwrap(), caps.get(1).unwrap())
};
// Don't accept empty matches immediately following a match.
// i.e., no infinite loops please.
if e == s && Some(self.last_end) == self.last_match {
self.last_end += 1;
return self.next()
}
self.last_end = e;
self.last_match = Some(self.last_end);
Some((s, e))
}
}
fn exec(re: &Regex, which: MatchKind, input: &str) -> CaptureLocs {
exec_slice(re, which, input, 0, input.len())
}
fn exec_slice(re: &Regex, which: MatchKind,
input: &str, s: uint, e: uint) -> CaptureLocs {
match re.p {
Dynamic(ref prog) => vm::run(which, prog, input, s, e),
Native(exec) => exec(which, input, s, e),
}
}
#[inline]
fn has_match(caps: &CaptureLocs) -> bool {
caps.len() >= 2 && caps.get(0).is_some() && caps.get(1).is_some()
}
|
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.6.0_27) on Thu Jan 23 20:22:10 EST 2014 -->
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
<title>Uses of Class org.apache.solr.update.processor.<API key> (Solr 4.6.1 API)</title>
<meta name="date" content="2014-01-23">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class org.apache.solr.update.processor.<API key> (Solr 4.6.1 API)";
}
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="topNav"><a name="navbar_top">
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><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/solr/update/processor/<API key>.html" title="class in org.apache.solr.update.processor">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/solr/update/processor//<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>
<a name="skip-navbar_top">
</a></div>
<div class="header">
<h2 title="Uses of Class org.apache.solr.update.processor.<API key>" class="title">Uses of Class<br>org.apache.solr.update.processor.<API key></h2>
</div>
<div class="classUseContainer">No usage of org.apache.solr.update.processor.<API key></div>
<div class="bottomNav"><a name="navbar_bottom">
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="<API key>">
</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/solr/update/processor/<API key>.html" title="class in org.apache.solr.update.processor">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/solr/update/processor//<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>
<a name="skip-navbar_bottom">
</a></div>
<p class="legalCopy"><small>
<i>Copyright © 2000-2014 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>
|
package de.devisnik.mine.robot.test;
import de.devisnik.mine.robot.AutoPlayerTest;
import de.devisnik.mine.robot.ConfigurationTest;
import junit.framework.Test;
import junit.framework.TestSuite;
public class AllTests {
public static Test suite() {
TestSuite suite = new TestSuite("Tests for de.devisnik.mine.robot");
//$JUnit-BEGIN$
suite.addTestSuite(AutoPlayerTest.class);
suite.addTestSuite(ConfigurationTest.class);
//$JUnit-END$
return suite;
}
}
|
package com.beanu.l2_shareutil.share;
import androidx.annotation.IntDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
public class SharePlatform {
@IntDef({ DEFAULT, QQ, QZONE, WEIBO, WX, WX_TIMELINE })
@Retention(RetentionPolicy.SOURCE)
public @interface Platform{}
public static final int DEFAULT = 0;
public static final int QQ = 1;
public static final int QZONE = 2;
public static final int WX = 3;
public static final int WX_TIMELINE = 4;
public static final int WEIBO = 5;
}
|
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_77) on Mon May 23 19:37:01 EDT 2016 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Uses of Class org.apache.lucene.spatial.prefix.<API key> (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.spatial.prefix.<API key> (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/spatial/prefix/<API key>.html" title="class in org.apache.lucene.spatial.prefix">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/spatial/prefix/class-use/<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>
<a name="skip.navbar.top">
</a></div>
<div class="header">
<h2 title="Uses of Class org.apache.lucene.spatial.prefix.<API key>" class="title">Uses of Class<br>org.apache.lucene.spatial.prefix.<API key></h2>
</div>
<div class="classUseContainer">No usage of org.apache.lucene.spatial.prefix.<API key></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/spatial/prefix/<API key>.html" title="class in org.apache.lucene.spatial.prefix">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/spatial/prefix/class-use/<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>
<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>
|
# This migration comes from grocer (originally 20170119220038)
class CreateGrocerExports < ActiveRecord::Migration[5.0]
def change
create_table :grocer_exports do |t|
t.string :pid
t.integer :job
t.string :status
t.datetime :last_error
t.datetime :last_success
t.string :logfile
t.timestamps
end
add_index :grocer_exports, :pid, unique: true
end
end
|
const loopback = require('loopback');
const boot = require('loopback-boot');
const request = require('request-promise');
const config = require('./config.json');
const log = require('log4js').getLogger('server');
const jwt = require('jwt-simple');
var app = module.exports = loopback();
|
class TreeBuilderTenants < TreeBuilder
has_kids_for Tenant, [:<API key>]
def initialize(name, sandbox, build, **params)
@additional_tenants = params[:additional_tenants]
@selectable = params[:selectable]
@ansible_playbook = params[:ansible_playbook]
@catalog_bundle = params[:catalog_bundle]
super(name, sandbox, build)
end
private
def tree_init_options
{
:checkboxes => true,
:check_url => "/catalog/#{cat_item_or_bundle}/",
:open_all => false,
:oncheck => @selectable ? <API key> : nil,
:post_check => true,
:three_checks => true
}.compact
end
def <API key>
if @ansible_playbook
'<API key>'
else
'miqOnCheckGeneric'
end
end
def cat_item_or_bundle
if @catalog_bundle
'<API key>'
else
'<API key>'
end
end
def root_options
text = _('All Tenants')
{
:text => text,
:tooltip => text,
:icon => 'pficon pficon-tenant',
:hideCheckbox => true
}
end
def x_get_tree_roots
if ApplicationHelper.role_allows?(:feature => 'rbac_tenant_view')
Tenant.with_current_tenant
end
end
def <API key>(object, count_only)
<API key>(count_only, object.children, 'name')
end
def override(node, object)
node.checked = @additional_tenants.try(:include?, object)
node.checkable = @selectable
end
end
|
import {NgModule} from '@angular/core';
import {TestimonialService} from "./testimonial.service";
import {<API key>} from "./testimonial-editor.component";
import {<API key>} from "./testimonial-list.component";
import {TestimonialRouting} from './testimonial.route';
import {SharedModule} from '../../../shared/shared.module';
import { XhrService } from '../../../shared/services/xhr.service';
@NgModule({
imports: [SharedModule.forRoot(),TestimonialRouting],
declarations: [<API key>, <API key>],
providers: [TestimonialService, XhrService]
})
export class TestimonialModule {
}
|
class Solution:
def <API key>(self, preorder):
"""
:type preorder: str
:rtype: bool
"""
arr_pre_order = preorder.split(',')
stack = []
for node in arr_pre_order:
stack.append(node)
while len(stack) > 1 and stack[-1] == '#' and stack[-2] == '#':
stack.pop()
stack.pop()
if len(stack) < 1:
return False
stack[-1] = '
if len(stack) == 1 and stack[0] == '
return True
return False
|
#!/usr/bin/python
# -*- coding: utf-8 -*-
import tensorflow as tf
import numpy as np
x_shape = [5, 3, 3, 2]
x = np.arange(reduce(lambda t, s: t*s, list(x_shape), 1))
print x
x = x.reshape([5, 3, 3, -1])
print x.shape
X = tf.Variable(x)
with tf.Session() as sess:
m = tf.nn.moments(X, axes=[0])
# m = tf.nn.moments(X, axes=[0,1])
# m = tf.nn.moments(X, axes=np.arange(len(x_shape)-1))
mean, variance = m
print(sess.run(m, feed_dict={X: x}))
# print(sess.run(m, feed_dict={X: x}))
|
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#include <sys/types.h>
#include <sys/event.h>
#include <sys/time.h>
#include <string.h>
#include <unistd.h>
#include <ckit/event.h>
#include <ckit/debug.h>
#include <ckit/time.h>
int event_open(void)
{
return kqueue();
}
void event_close(int efd)
{
close(efd);
}
static unsigned short kevent_flags(enum event_ctl ctl, struct event *ev)
{
unsigned short flags = 0;
switch (ctl) {
case EVENT_CTL_ADD:
case EVENT_CTL_MOD:
flags |= EV_ADD;
break;
case EVENT_CTL_DEL:
flags |= EV_DELETE;
break;
}
if (ev->events & EVENT_ONESHOT)
flags |= EV_ONESHOT;
return flags;
}
static void kevent_to_event(const struct kevent *kev, struct event *ev)
{
memset(ev, 0, sizeof(*ev));
if (kev->filter == EVFILT_READ) {
//LOG_DBG("EVFILT_READ is set fd=%d\n", (int)kev->ident);
ev->events |= EVENT_IN;
}
if (kev->filter == EVFILT_WRITE) {
//LOG_DBG("EVFILT_WRITE is set fd=%d\n", (int)kev->ident);
ev->events |= EVENT_OUT;
}
if (kev->flags & EV_EOF) {
//LOG_DBG("EV_EOF set on fd=%d\n", (int)kev->ident);
ev->events |= EVENT_RDHUP;
}
ev->data.fd = (int)kev->ident;
ev->data.ptr = kev->udata;
}
int event_ctl(int efd, enum event_ctl ctl, int fd, struct event *ev)
{
struct kevent kev[2];
unsigned i = 0;
if (ev->events & EVENT_IN) {
//LOG_ERR("EVFILT_READ fd=%d\n", fd);
EV_SET(&kev[i++], fd, EVFILT_READ, kevent_flags(ctl, ev),
0, 0, ev->data.ptr);
}
if (ev->events & EVENT_OUT) {
//LOG_ERR("EVFILT_WRITE fd=%d\n", fd);
EV_SET(&kev[i++], fd, EVFILT_WRITE, kevent_flags(ctl, ev),
0, 0, ev->data.ptr);
}
return kevent(efd, kev, i, NULL, 0, NULL);
}
int event_wait(int efd, struct event *events, int maxevents, int timeout)
{
struct kevent kevents[maxevents];
struct timespec ts = { 0, 0 };
struct timespec *ts_ptr = &ts;
int ret;
timespec_add_nsec(&ts, timeout * 1000000L);
memset(kevents, 0, sizeof(kevents));
if (timeout == -1)
ts_ptr = NULL;
ret = kevent(efd, NULL, 0, kevents, maxevents, ts_ptr);
if (ret == -1) {
LOG_ERR("kevent: %s\n", strerror(errno));
} else if (ret > 0) {
int i;
/* Fill in events */
for (i = 0; i < ret; i++) {
/* Check for error. The kevent() call may return either -1
* on error or an error event in the eventlist in case
* there is room */
if (kevents[i].flags & EV_ERROR) {
errno = kevents[i].data;
/* NOTE/WARNING: What happens to other events returned
* that aren't errors when we return -1 here? This is
* not entirely clear, but since they won't be
* processed by the caller of this function (as the
* return value is -1) the events should still be
* pending and returned in the next call to this
* function. This might, however, not be true for edge
* triggered events. */
return -1;
}
kevent_to_event(&kevents[i], &events[i]);
}
}
return ret;
}
|
package com.blp.minotaurus.utils;
import com.blp.minotaurus.Minotaurus;
import net.milkbowl.vault.economy.Economy;
import org.bukkit.Bukkit;
import org.bukkit.plugin.<API key>;
/**
* @author TheJeterLP
*/
public class EconomyManager {
private static Economy econ = null;
public static boolean setupEconomy() {
if (!Minotaurus.getInstance().getServer().getPluginManager().isPluginEnabled("Vault")) return false;
<API key><Economy> rsp = Bukkit.getServicesManager().getRegistration(Economy.class);
if (rsp == null || rsp.getProvider() == null) return false;
econ = rsp.getProvider();
return true;
}
public static Economy getEcon() {
return econ;
}
}
|
package eas.com;
public interface SomeInterface {
String someMethod(String param1, String param2, String param3, String param4);
}
|
'use strict';
angular.module('donetexampleApp')
.service('ParseLinks', function () {
this.parse = function (header) {
if (header.length == 0) {
throw new Error("input must not be of zero length");
}
// Split parts by comma
var parts = header.split(',');
var links = {};
// Parse each part into a named link
angular.forEach(parts, function (p) {
var section = p.split(';');
if (section.length != 2) {
throw new Error("section could not be split on ';'");
}
var url = section[0].replace(/<(.*)>/, '$1').trim();
var queryString = {};
url.replace(
new RegExp("([^?=&]+)(=([^&]*))?", "g"),
function($0, $1, $2, $3) { queryString[$1] = $3; }
);
var page = queryString['page'];
if( angular.isString(page) ) {
page = parseInt(page);
}
var name = section[1].replace(/rel="(.*)"/, '$1').trim();
links[name] = page;
});
return links;
}
});
|
package com.mobisys.musicplayer.model;
import android.os.Parcel;
import android.os.Parcelable;
public class MusicFile implements Parcelable {
private String title;
private String album;
private String id;
private String singer;
private String path;
public MusicFile() {
}
public MusicFile(String title, String album, String id, String singer, String path) {
this.title = title;
this.album = album;
this.id = id;
this.singer = singer;
this.path = path;
}
protected MusicFile(Parcel in) {
title = in.readString();
album = in.readString();
id = in.readString();
singer = in.readString();
path=in.readString();
}
public static final Creator<MusicFile> CREATOR = new Creator<MusicFile>() {
@Override
public MusicFile createFromParcel(Parcel in) {
return new MusicFile(in);
}
@Override
public MusicFile[] newArray(int size) {
return new MusicFile[size];
}
};
public String getTitle() {
return title;
}
public String getAlbum() {
return album;
}
public String getId() {
return id;
}
public String getSinger() {
return singer;
}
public void setTitle(String title) {
this.title = title;
}
public void setAlbum(String album) {
this.album = album;
}
public void setId(String id) {
this.id = id;
}
public void setSinger(String singer) {
this.singer = singer;
}
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
@Override
public String toString() {
return "MusicFile{" +
"title='" + title + '\'' +
", album='" + album + '\'' +
", id='" + id + '\'' +
", singer='" + singer + '\'' +
", path='" + path + '\'' +
'}';
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(title);
dest.writeString(album);
dest.writeString(id);
dest.writeString(singer);
dest.writeString(path);
}
}
|
<?php
add_action( '<API key>', 'pf_ajax_itemsystem' );
add_action( '<API key>', 'pf_ajax_itemsystem' );
function pf_ajax_itemsystem(){
check_ajax_referer( 'pfget_itemsystem', 'security');
header('Content-Type: application/json; charset=UTF-8;');
/* Get form variables */
if(isset($_POST['formtype']) && $_POST['formtype']!=''){
$formtype = $processname = esc_attr($_POST['formtype']);
}
/* Get data*/
$vars = array();
if(isset($_POST['dt']) && $_POST['dt']!=''){
if ($formtype == 'delete') {
$pid = sanitize_text_field($_POST['dt']);
}else{
$vars = array();
parse_str($_POST['dt'], $vars);
if (is_array($vars)) {
$vars = PFCleanArrayAttr('PFCleanFilters',$vars);
} else {
$vars = esc_attr($vars);
}
}
}
/* WPML Fix */
$lang_c = '';
if(isset($_POST['lang']) && $_POST['lang']!=''){
$lang_c = sanitize_text_field($_POST['lang']);
}
if(function_exists('icl_object_id')) {
global $sitepress;
if (isset($sitepress) && !empty($lang_c)) {
$sitepress->switch_lang($lang_c);
}
}
$current_user = wp_get_current_user();
$user_id = $current_user->ID;
$returnval = $errorval = $pfreturn_url = $msg_output = $overlay_add = $sccval = '';
$icon_processout = 62;
$<API key> = PFSAIssetControl('<API key>','','pfitemfinder');
if ($formtype == 'delete') {
/**
*Start: Delete Item for PPP/Membership
**/
if($user_id != 0){
$delete_postid = (is_numeric($pid))? $pid:'';
if ($delete_postid != '') {
$old_status_featured = false;
$<API key> = PFSAIssetControl('<API key>','','1');
if ($<API key> == 2) {
/*Check if item user s item*/
global $wpdb;
$result = $wpdb->get_results( $wpdb->prepare(
"SELECT ID, post_author FROM $wpdb->posts WHERE ID = %s and post_author = %s and post_type = %s",
$delete_postid,
$user_id,
$<API key>
) );
if (is_array($result) && count($result)>0) {
if ($result[0]->ID == $delete_postid) {
$delete_item_images = get_post_meta($delete_postid, '<API key>');
if (!empty($delete_item_images)) {
foreach ($delete_item_images as $item_image) {
<API key>(esc_attr($item_image),true);
}
}
<API key>(<API key>( $delete_postid ),true);
$old_status_featured = get_post_meta( $delete_postid, '<API key>', true );
wp_delete_post($delete_postid);
$<API key> = get_user_meta( $user_id, '<API key>', true );
/* - Creating record for process system. */
<API key>(
array(
'user_id' => $user_id,
'item_post_id' => $<API key>,
'processname' => esc_html__('Item deleted by USER.','pointfindert2d'),
'membership' => 1
)
);
/* - Create a record for payment system. */
$sccval .= esc_html__('Item successfully deleted. Refreshing...','pointfindert2d');
}
}else{
$icon_processout = 485;
$errorval .= esc_html__('Wrong item ID or already deleted. Item can not delete.','pointfindert2d');
}
/*Membership limits for item /featured limit*/
$<API key> = get_user_meta( $user_id, '<API key>', true );
$<API key> = get_user_meta( $user_id, '<API key>', true );
$<API key> = get_user_meta( $user_id, '<API key>', true );
$packageinfox = <API key>($<API key>);
if ($<API key> == -1) {
/* Do nothing... */
}else{
if ($<API key> >= 0) {
$<API key> = $<API key> + 1;
if ($<API key> <= $packageinfox['<API key>']) {
update_user_meta( $user_id, '<API key>', $<API key>);
}
}
}
if($old_status_featured != false && $old_status_featured != 0){
$<API key> = $<API key> + 1;
if ($<API key> <= $packageinfox['<API key>']) {
update_user_meta( $user_id, '<API key>', $<API key>);
}
}
} else {
/*Check if item user s item*/
global $wpdb;
$result = $wpdb->get_results( $wpdb->prepare(
"SELECT ID, post_author FROM $wpdb->posts WHERE ID = %s and post_author = %s and post_type = %s",
$delete_postid,
$user_id,
$<API key>
) );
$result_id = $wpdb->get_var( $wpdb->prepare(
"SELECT post_id FROM $wpdb->postmeta WHERE meta_key = %s and meta_value = %s",
'<API key>',
$delete_postid
) );
$<API key> = esc_attr(get_post_meta( $result_id, '<API key>', true ));
if($<API key> == 1){
$<API key> = esc_attr(get_post_meta( $result_id, '<API key>', true ));
<API key>(
array(
'user_id' => $user_id,
'profile_id' => $<API key>,
'item_post_id' => $delete_postid,
'order_post_id' => $result_id,
)
);
}
if (is_array($result) && count($result)>0) {
if ($result[0]->ID == $delete_postid) {
$delete_item_images = get_post_meta($delete_postid, '<API key>');
if (!empty($delete_item_images)) {
foreach ($delete_item_images as $item_image) {
<API key>(esc_attr($item_image),true);
}
}
<API key>(<API key>( $delete_postid ),true);
wp_delete_post($delete_postid);
/* - Creating record for process system. */
<API key>(
array(
'user_id' => $user_id,
'item_post_id' => $delete_postid,
'processname' => esc_html__('Item deleted by USER.','pointfindert2d')
)
);
/* - Create a record for payment system. */
$sccval .= esc_html__('Item successfully deleted. Refreshing...','pointfindert2d');
}
}else{
$icon_processout = 485;
$errorval .= esc_html__('Wrong item ID (Not your item!). Item can not delete.','pointfindert2d');
}
}
}else{
$icon_processout = 485;
$errorval .= esc_html__('Wrong item ID.','pointfindert2d');
}
}else{
$icon_processout = 485;
$errorval .= esc_html__('Please login again to upload/edit item (Invalid UserID).','pointfindert2d');
}
if (!empty($sccval)) {
$msg_output .= $sccval;
$overlay_add = ' pfoverlayapprove';
}elseif (!empty($errorval)) {
$msg_output .= $errorval;
}
/**
*End: Delete Item for PPP/Membership
**/
} else {
/**
*Start: New/Edit Item Form Request
**/
if(isset($_POST) && $_POST!='' && count($_POST)>0){
if($user_id != 0){
if($vars['action'] == 'pfget_edititem'){
if (isset($vars['edit_pid']) && !empty($vars['edit_pid'])) {
$edit_postid = $vars['edit_pid'];
global $wpdb;
$result = $wpdb->get_results( $wpdb->prepare(
"
SELECT ID, post_author
FROM $wpdb->posts
WHERE ID = %s and post_author = %s and post_type = %s
",
$edit_postid,
$user_id,
$<API key>
) );
if (is_array($result) && count($result)>0) {
if ($result[0]->ID == $edit_postid) {
$returnval = <API key>(
array(
'post_id' => $edit_postid,
'order_post_id' => PFU_GetOrderID($edit_postid,1),
'order_title' => PFU_GetOrderID($edit_postid,0),
'vars' => $vars,
'user_id' => $user_id
)
);
}else{
$icon_processout = 485;
$errorval .= esc_html__('This is not your item.','pointfindert2d');
}
}else{
$icon_processout = 485;
$errorval .= esc_html__('Wrong Item ID','pointfindert2d');
}
}else{
$icon_processout = 485;
$errorval .= esc_html__('There is no item ID to edit.','pointfindert2d');
}
}elseif ($vars['action'] == 'pfget_uploaditem') {
$returnval = <API key>(
array(
'post_id' => '',
'order_post_id' => '',
'order_title' => '',
'vars' => $vars,
'user_id' => $user_id
)
);
}
}else{
$icon_processout = 485;
$errorval .= esc_html__('Please login again to upload/edit item (Invalid UserID).','pointfindert2d');
}
}
if (is_array($returnval) && !empty($returnval)) {
if (isset($returnval['sccval'])) {
$msg_output .= $returnval['sccval'];
$overlay_add = ' pfoverlayapprove';
}elseif (isset($returnval['errorval'])) {
$msg_output .= $returnval['errorval'];
}
}else{
$msg_output .= $errorval;
}
/**
*End: New/Edit Item Form Request
**/
}
$<API key> = PFSAIssetControl('<API key>','','');
$<API key> = get_permalink($<API key>);
$pfmenu_perout = PFPermalinkCheck();
$pfreturn_url = $<API key>.$pfmenu_perout.'ua=myitems';
$output_html = '';
$output_html .= '<div class="golden-forms wrapper mini" style="height:200px">';
$output_html .= '<div id="<API key>" class="<API key>">';
$output_html .= "<div class='pf-overlay-close'><i class='pfadmicon-glyph-707'></i></div>";
$output_html .= "<div class='pfrevoverlaytext".$overlay_add."'><i class='pfadmicon-glyph-".$icon_processout."'></i><span>".$msg_output."</span></div>";
$output_html .= '</div>';
$output_html .= '</div>';
if (!empty($errorval)) {
echo json_encode(
array(
'process'=>false,
'processname'=>$processname,
'mes'=>$output_html,
'returnurl' => $pfreturn_url
)
);
}else{
echo json_encode(
array(
'process'=>true,
'processname'=>$processname,
'returnval'=>$returnval,
'mes'=>$output_html,
'returnurl' => $pfreturn_url
)
);
}
die();
}
?>
|
module Serf.Event where
import Serf.Member
import Control.Applicative
import Control.Monad.IO.Class
import System.Environment
import System.Exit
import System.IO
import Text.Parsec
type SerfError = String
data SerfEvent = MemberJoin Member
| MemberLeave Member
| MemberFailed Member
| MemberUpdate Member
| MemberReap Member
| User
| Query
| Unknown String
getSerfEvent :: IO (Either SerfError SerfEvent)
getSerfEvent = getEnv "SERF_EVENT" >>= fromString
where
fromString :: String -> IO (Either SerfError SerfEvent)
fromString "member-join" = readMemberEvent MemberJoin
fromString "member-leave" = readMemberEvent MemberLeave
fromString "member-failed" = readMemberEvent MemberFailed
fromString "member-update" = readMemberEvent MemberUpdate
fromString "member-reap" = readMemberEvent MemberReap
fromString "user" = return $ Right User
fromString "query" = return $ Right Query
fromString unk = return . Right $ Unknown unk
readMemberEvent :: (Member -> SerfEvent) -> IO (Either SerfError SerfEvent)
readMemberEvent f = addMember f <$> readMember
addMember :: (Member -> SerfEvent)
-> Either ParseError Member
-> Either SerfError SerfEvent
addMember _ (Left err) = Left $ show err
addMember f (Right m) = Right $ f m
readMember :: IO (Either ParseError Member)
readMember = memberFromString <$> getLine
isMemberEvent :: SerfEvent -> Bool
isMemberEvent (MemberJoin _) = True
isMemberEvent (MemberLeave _) = True
isMemberEvent (MemberFailed _) = True
isMemberEvent (MemberUpdate _) = True
isMemberEvent (MemberReap _) = True
isMemberEvent _ = False
type EventHandler m = SerfEvent -> m ()
handleEventWith :: MonadIO m => EventHandler m -> m ()
handleEventWith hdlr = do
evt <- liftIO getSerfEvent
case evt of
Left err -> liftIO $ hPutStrLn stderr err >> exitFailure
Right ev -> hdlr ev
|
package com.doglandia.<API key>;
import android.app.Application;
import android.test.ApplicationTestCase;
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
}
|
@media (min-width: 980px) {
.custom-bar-chart {
margin-bottom: 40px;
}
}
@media (min-width: 768px) and (max-width: 979px) {
.custom-bar-chart {
margin-bottom: 40px;
}
/*chat room*/
}
@media (max-width: 768px) {
.header {
position: absolute;
}
/*sidebar*/
#sidebar {
height: auto;
overflow: hidden;
position: absolute;
width: 100%;
z-index: 1001;
}
/* body container */
#main-content {
margin: 0px !important;
position: none !important;
}
#sidebar > ul > li > a > span {
line-height: 35px;
}
#sidebar > ul > li {
margin: 0 10px 5px 10px;
}
#sidebar > ul > li > a {
height: 35px;
line-height: 35px;
padding: 0 10px;
text-align: left;
}
#sidebar > ul > li > a i {
/*display: none !important;*/
}
#sidebar ul > li > a .arrow, #sidebar > ul > li > a .arrow.open {
margin-right: 10px;
margin-top: 15px;
}
#sidebar ul > li.active > a .arrow, #sidebar ul > li > a:hover .arrow, #sidebar ul > li > a:focus .arrow,
#sidebar > ul > li.active > a .arrow.open, #sidebar > ul > li > a:hover .arrow.open, #sidebar > ul > li > a:focus .arrow.open {
margin-top: 15px;
}
#sidebar > ul > li > a, #sidebar > ul > li > ul.sub > li {
width: 100%;
}
#sidebar > ul > li > ul.sub > li > a {
background: transparent !important;
}
#sidebar > ul > li > ul.sub > li > a:hover {
}
/* sidebar */
#sidebar {
margin: 0px !important;
}
/* sidebar collabler */
#sidebar .btn-navbar.collapsed .arrow {
display: none;
}
#sidebar .btn-navbar .arrow {
position: absolute;
right: 35px;
width: 0;
height: 0;
top: 48px;
border-bottom: 15px solid #282e36;
border-left: 15px solid transparent;
border-right: 15px solid transparent;
}
.modal-footer .btn {
margin-bottom: 0px !important;
}
.btn {
margin-bottom: 5px;
}
/* full calendar fix */
.fc-header-right {
left: 25px;
position: absolute;
}
.fc-header-left .fc-button {
margin: 0px !important;
top: -10px !important;
}
.fc-header-right .fc-button {
margin: 0px !important;
top: -50px !important;
}
.fc-state-active, .fc-state-active .fc-button-inner, .fc-state-hover, .fc-state-hover .fc-button-inner {
background: none !important;
color: #FFFFFF !important;
}
.fc-state-default, .fc-state-default .fc-button-inner {
background: none !important;
}
.fc-button {
border: none !important;
margin-right: 2px;
}
.fc-view {
top: 0px !important;
}
.fc-button .fc-button-inner {
margin: 0px !important;
padding: 2px !important;
border: none !important;
margin-right: 2px !important;
background-color: #fafafa !important;
background-image: -moz-linear-gradient(top, #fafafa, #efefef) !important;
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fafafa), to(#efefef)) !important;
background-image: -<API key>(top, #fafafa, #efefef) !important;
background-image: -o-linear-gradient(top, #fafafa, #efefef) !important;
background-image: linear-gradient(to bottom, #fafafa, #efefef) !important;
filter: progid:dximagetransform.microsoft.gradient(startColorstr='#fafafa', endColorstr='#efefef', GradientType=0) !important;
-webkit-box-shadow: 0 1px 0px rgba(255, 255, 255, .8) !important;
-moz-box-shadow: 0 1px 0px rgba(255, 255, 255, .8) !important;
box-shadow: 0 1px 0px rgba(255, 255, 255, .8) !important;
-<API key>: 3px !important;
-moz-border-radius: 3px !important;
border-radius: 3px !important;
color: #646464 !important;
border: 1px solid #ddd !important;
text-shadow: 0 1px 0px rgba(255, 255, 255, .6) !important;
text-align: center;
}
.fc-button.fc-state-disabled .fc-button-inner {
color: #bcbbbb !important;
}
.fc-button.fc-state-active .fc-button-inner {
background-color: #e5e4e4 !important;
background-image: -moz-linear-gradient(top, #e5e4e4, #dddcdc) !important;
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#e5e4e4), to(#dddcdc)) !important;
background-image: -<API key>(top, #e5e4e4, #dddcdc) !important;
background-image: -o-linear-gradient(top, #e5e4e4, #dddcdc) !important;
background-image: linear-gradient(to bottom, #e5e4e4, #dddcdc) !important;
filter: progid:dximagetransform.microsoft.gradient(startColorstr='#e5e4e4', endColorstr='#dddcdc', GradientType=0) !important;
}
.fc-content {
margin-top: 50px;
}
.fc-header-title h2 {
line-height: 40px !important;
font-size: 12px !important;
}
.fc-header {
margin-bottom: 0px !important;
}
/*.chart-position {*/
/*margin-top: 0px;*/
.stepy-titles li {
margin: 10px 3px;
}
.custom-bar-chart {
margin-bottom: 40px;
}
/*menu icon plus minus*/
.dcjq-icon {
top: 10px;
}
ul.sidebar-menu li ul.sub li a {
padding: 0;
}
.img-responsive {
width: 100%;
}
}
@media (max-width: 480px) {
.notify-row, .search, .dont-show, .inbox-head .sr-input, .inbox-head .sr-btn {
display: none;
}
#top_menu .nav > li, ul.top-menu > li {
float: right;
}
.hidden-phone {
display: none !important;
}
.chart-position {
margin-top: 0px;
}
.navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus {
background-color: #ccc;
border-color: #ccc;
}
}
@media (max-width: 320px) {
.login-social-link a {
padding: 15px 17px !important;
}
.notify-row, .search, .dont-show, .inbox-head .sr-input, .inbox-head .sr-btn {
display: none;
}
#top_menu .nav > li, ul.top-menu > li {
float: right;
}
.hidden-phone {
display: none !important;
}
.chart-position {
margin-top: 0px;
}
.lock-wrapper {
margin: 10% auto;
max-width: 310px;
}
.lock-input {
width: 82%;
}
.cmt-form {
display: inline-block;
width: 75%;
}
}
|
import React from 'react'
import {
StyleSheet,
View,
processColor
} from 'react-native'
import { BubbleChart } from '<API key>'
class BubbleChartScreen extends React.Component<any, any> {
constructor(props) {
super(props)
const { modeInfo } = props
const temp = props.value.weekLoc.sort((a, b) => {
const day = a.x - b.x
return day || (a.y - b.y)
})
const valueFormatter = props.value.daysMapper.slice()
valueFormatter.unshift()
valueFormatter.push(props.value.daysMapper[0])
const isX = item => item.x === 6
const values = [...temp.filter(isX), ...temp.filter(item => item.x !== 6)]
this.state = {
data: {
dataSets: [{
values,
label: '',
config: {
color: processColor(modeInfo.deepColor),
<API key>: 2,
drawValues: false,
valueTextColor: processColor(modeInfo.titleTextColor)
}
}]
},
legend: {
enabled: true,
textSize: 14,
form: 'CIRCLE',
wordWrapEnabled: true,
textColor: processColor(props.modeInfo.standardTextColor)
},
xAxis: {
valueFormatter,
position: 'BOTTOM',
drawGridLines: false,
granularityEnabled: true,
granularity: 1,
textColor: processColor(props.modeInfo.standardTextColor)
// <API key>: true
// labelCountForce: true,
// labelCount: 12
},
yAxis: {
left: {
axisMinimum: 0,
axisMaximum: 23,
textColor: processColor(props.modeInfo.standardTextColor)
},
right: {
axisMinimum: 0,
axisMaximum: 23,
textColor: processColor(props.modeInfo.standardTextColor)
}
}
}
}
handleSelect = () => {
}
render() {
return (
<View style={{ height: 250 }}>
<BubbleChart
style={styles.chart}
data={this.state.data}
legend={this.state.legend}
chartDescription={{text: ''}}
xAxis={this.state.xAxis}
yAxis={this.state.yAxis}
entryLabelColor={processColor(this.props.modeInfo.titleTextColor)}
onSelect={this.handleSelect}
/>
</View>
)
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#F5FCFF'
},
chart: {
flex: 1
}
})
export default BubbleChartScreen
|
# -*- coding: utf-8 -*-
"""Template shortcut & filters"""
import os
import datetime
from jinja2 import Environment, FileSystemLoader
from uwsgi_sloth.settings import ROOT
from uwsgi_sloth import settings, __VERSION__
template_path = os.path.join(ROOT, 'templates')
env = Environment(loader=FileSystemLoader(template_path))
# Template filters
def friendly_time(msecs):
secs, msecs = divmod(msecs, 1000)
mins, secs = divmod(secs, 60)
hours, mins = divmod(mins, 60)
if hours:
return '%dh%dm%ds' % (hours, mins, secs)
elif mins:
return '%dm%ds' % (mins, secs)
elif secs:
return '%ds%dms' % (secs, msecs)
else:
return '%.2fms' % msecs
env.filters['friendly_time'] = friendly_time
def render_template(template_name, context={}):
template = env.get_template(template_name)
context.update(
SETTINGS=settings,
now=datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'),
version='.'.join(map(str, __VERSION__)))
return template.render(**context)
|
package org.openstack.atlas.service.domain.exception;
public class <API key> extends <API key> {
private final String message;
public <API key>(final String message) {
this.message = message;
}
@Override
public String getMessage() {
return message;
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.