answer
stringlengths 15
1.25M
|
|---|
body {
font-size: 1rem;
font-weight: 300;
background-color: #292B36;
color: #d0d0d0;
font-family: "Roboto", "sans-serif";
width: 100%;
}
header, main, footer {
margin: 3rem;
}
pre {
margin-top: 1.75rem;
}
pre, code {
font-family: "Hack", "monospace";
font-size: .75rem;
}
a {
color: #00aba5;
text-decoration: none;
}
a:hover, a:active {
color: #8485CE;
}
p {
margin: 1rem 0;
}
h3 {
font-weight: 300;
}
|
package io.swagger.client.api;
import com.sun.jersey.api.client.GenericType;
import io.swagger.client.ApiException;
import io.swagger.client.ApiClient;
import io.swagger.client.Configuration;
import io.swagger.client.Pair;
import io.swagger.client.model.CodeSnippet;
import io.swagger.client.model.CodeSnippetList;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-03-11T02:09:38.462Z")
public class DefaultApi {
private ApiClient apiClient;
public DefaultApi() {
this(Configuration.getDefaultApiClient());
}
public DefaultApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Creates a code snippet.
* Creates a code snippet in the specified language.
* @param codeSnippetBody Code snippet object.
* @throws ApiException if fails to make API call
*/
public void snipPost(CodeSnippet codeSnippetBody) throws ApiException {
Object localVarPostBody = codeSnippetBody;
// create path and map variables
String localVarPath = "/snip".replaceAll("\\{format\\}","json");
// query params
List<Pair> localVarQueryParams = new ArrayList<Pair>();
Map<String, String> <API key> = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] <API key> = {
"application/json"
};
final String localVarContentType = apiClient.<API key>(<API key>);
String[] localVarAuthNames = new String[] { };
apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, <API key>, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
}
/**
* Retrieves the specified code snippet.
* Retrieves the specified code snippet.
* @param codeSnippetUuid Code snippet unique identifier.
* @return CodeSnippet
* @throws ApiException if fails to make API call
*/
public CodeSnippet <API key>(String codeSnippetUuid) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'codeSnippetUuid' is set
if (codeSnippetUuid == null) {
throw new ApiException(400, "Missing the required parameter 'codeSnippetUuid' when calling <API key>");
}
// create path and map variables
String localVarPath = "/snip/{code_snippet_uuid}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "code_snippet_uuid" + "\\}", apiClient.escapeString(codeSnippetUuid.toString()));
// query params
List<Pair> localVarQueryParams = new ArrayList<Pair>();
Map<String, String> <API key> = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] <API key> = {
"application/json"
};
final String localVarContentType = apiClient.<API key>(<API key>);
String[] localVarAuthNames = new String[] { };
GenericType<CodeSnippet> localVarReturnType = new GenericType<CodeSnippet>() {};
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, <API key>, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Updates a code snippet.
* Updates a code snippet changes.
* @param codeSnippetUuid Code snippet unique identifier.
* @param codeSnippetBody Code snippet object.
* @throws ApiException if fails to make API call
*/
public void <API key>(String codeSnippetUuid, CodeSnippet codeSnippetBody) throws ApiException {
Object localVarPostBody = codeSnippetBody;
// verify the required parameter 'codeSnippetUuid' is set
if (codeSnippetUuid == null) {
throw new ApiException(400, "Missing the required parameter 'codeSnippetUuid' when calling <API key>");
}
// create path and map variables
String localVarPath = "/snip/{code_snippet_uuid}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "code_snippet_uuid" + "\\}", apiClient.escapeString(codeSnippetUuid.toString()));
// query params
List<Pair> localVarQueryParams = new ArrayList<Pair>();
Map<String, String> <API key> = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] <API key> = {
"application/json"
};
final String localVarContentType = apiClient.<API key>(<API key>);
String[] localVarAuthNames = new String[] { };
apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, <API key>, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
}
/**
* Deletes the specified code snippet.
* Deletes the specified code snippet.
* @param codeSnippetUuid Code snippet unique identifier.
* @throws ApiException if fails to make API call
*/
public void <API key>(String codeSnippetUuid) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'codeSnippetUuid' is set
if (codeSnippetUuid == null) {
throw new ApiException(400, "Missing the required parameter 'codeSnippetUuid' when calling <API key>");
}
// create path and map variables
String localVarPath = "/snip/{code_snippet_uuid}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "code_snippet_uuid" + "\\}", apiClient.escapeString(codeSnippetUuid.toString()));
// query params
List<Pair> localVarQueryParams = new ArrayList<Pair>();
Map<String, String> <API key> = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] <API key> = {
"application/json"
};
final String localVarContentType = apiClient.<API key>(<API key>);
String[] localVarAuthNames = new String[] { };
apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, <API key>, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
}
/**
* Retrieves all code snippets.
*
* @return CodeSnippetList
* @throws ApiException if fails to make API call
*/
public CodeSnippetList snipsGet() throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/snips".replaceAll("\\{format\\}","json");
// query params
List<Pair> localVarQueryParams = new ArrayList<Pair>();
Map<String, String> <API key> = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] <API key> = {
"application/json"
};
final String localVarContentType = apiClient.<API key>(<API key>);
String[] localVarAuthNames = new String[] { };
GenericType<CodeSnippetList> localVarReturnType = new GenericType<CodeSnippetList>() {};
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, <API key>, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
}
|
package org.test;
import org.test.act.MainGame;
import loon.LSetting;
import loon.LSystem;
import loon.LazyLoading;
import loon.Screen;
import loon.javase.Loon;
public class JavaSEMain {
public static void main(String[]args){
LSetting setting = new LSetting();
setting.isFPS = true;
setting.isLogo = false;
setting.logoPath = "loon_logo.png";
setting.width = 800;
setting.height = 480;
setting.fps = 60;
setting.fontName = "";
setting.appName = "";
LSystem.NOT_MOVE = true;
Loon.register(setting, new LazyLoading.Data() {
@Override
public Screen onScreen() {
//Screensample
return new MainGame();
}
});
}
}
|
// <API key>
// Code Wars program written in JavaScript for the RingoJS environment
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// all copies or substantial portions of the Software.
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
var stdin = require("system").stdin;
var stdout = require("system").stdout;
"use strict";
(function SpiralTriangles() {
function run() {
var inputData = readDiamondInfo();
while( inputData.size > 0 ) {
printDiamonds( inputData );
inputData = readDiamondInfo();
}
};
function printDiamonds( inputData ) {
var midSize = inputData.size / 2;
for( var gridRow=0; gridRow<inputData.rows; ++gridRow ) {
for( var diamondRow=0; diamondRow<inputData.size; ++diamondRow ) {
var line = "";
for( var gridCol=0; gridCol<inputData.cols; ++gridCol ) {
for( var diamondCol=0; diamondCol<inputData.size; ++diamondCol ) {
var c = "
if( diamondRow < midSize ) { // top half
if( diamondCol >= (midSize-(diamondRow+1)) && diamondCol < midSize ) {
c = "/";
}
else if( diamondCol >= midSize && diamondCol <= (midSize+diamondRow) ) {
c = "\\";
}
}
else { // bottom half
if( diamondCol >= (diamondRow-midSize) && diamondCol < midSize ) {
c = "\\";
}
else if( diamondCol >= midSize && diamondCol < (inputData.size+midSize-diamondRow) ) {
c = "/";
}
}
line += c;
}
}
print( line );
}
}
};
function readDiamondInfo() {
var tokens = stdin.readLine().split(/\s+/);
return {
size: parseInt( tokens[0] ),
rows: parseInt( tokens[1] ),
cols: parseInt( tokens[2] )
};
};
run();
}) ();
|
package apple.uikit;
import java.io.*;
import java.nio.*;
import java.util.*;
import com.google.j2objc.annotations.*;
import com.google.j2objc.runtime.*;
import com.google.j2objc.runtime.block.*;
import apple.audiotoolbox.*;
import apple.corefoundation.*;
import apple.coregraphics.*;
import apple.coreservices.*;
import apple.foundation.*;
import apple.coreanimation.*;
import apple.coredata.*;
import apple.coreimage.*;
import apple.coretext.*;
import apple.corelocation.*;
@Library("UIKit/UIKit.h")
@Mapping("<API key>")
public final class <API key> extends ObjCEnum {
@GlobalConstant("<API key>")
public static final long Default = 0L;
@GlobalConstant("<API key>")
public static final long Up = 1L;
@GlobalConstant("<API key>")
public static final long Down = 2L;
@GlobalConstant("<API key>")
public static final long Left = 3L;
@GlobalConstant("<API key>")
public static final long Right = 4L;
}
|
/**
* @private
* @providesModule CustomTabsAndroid
* @flow
*/
'use strict';
import { NativeModules } from 'react-native';
import type { TabOption } from './TabOption';
const CustomTabsManager = NativeModules.CustomTabsManager;
/**
* To open the URL of the http or https in Chrome Custom Tabs.
* If Chrome is not installed, opens the URL in other browser.
*/
export default class CustomTabsAndroid {
/**
* Opens the URL on a Custom Tab.
*
* @param url the Uri to be opened.
* @param option the Option to customize Custom Tabs of look & feel.
*/
static openURL(url: string, option: TabOption = {}): Promise<boolean> {
return CustomTabsManager.openURL(url, option)
}
}
|
package com.swifts.frame.modules.wx.fastweixin.company.message.req;
public final class QYBatchJobType {
private String SYNCUSER = "sync_user";
private String REPLACEUSER = "replace_user";
private String INVITEUSER = "invite_user";
private String REPLACEPARTY = "replace_party";
private QYBatchJobType() {
}
}
|
package com.koch.ambeth.util;
import org.junit.Assert;
import org.junit.Test;
import com.koch.ambeth.ioc.util.ImmutableTypeSet;
public class <API key> {
public interface MyType {
// intended blank
}
public class MyClass implements MyType {
// intended blank
}
@Test
public void test() {
ImmutableTypeSet immutableTypeSet = new ImmutableTypeSet();
Assert.assertFalse(immutableTypeSet.isImmutableType(MyClass.class));
immutableTypeSet.<API key>(MyType.class);
Assert.assertTrue(immutableTypeSet.isImmutableType(MyType.class));
Assert.assertTrue(immutableTypeSet.isImmutableType(MyClass.class));
}
}
|
package android_testsuite;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android_testsuite.mytest.application_search.AppSearchActivity;
import android_testsuite.mytest.application_search.UidActivity;
import android_testsuite.mytest.camera.CameraActivity;
import android_testsuite.mytest.camera.<API key>;
import android_testsuite.mytest.custom_loading.<API key>;
import android_testsuite.mytest.media.<API key>;
import android_testsuite.mytest.network_test.HttpActivity;
import android_testsuite.mytest.network_test.SocketActivity;
import android_testsuite.mytest.rsa.RsaActivity;
import android_testsuite.mytest.seekbar.SeekBarActivity;
/**
* @author Ren Hui
* @since 1.0.1.058
*/
public class GuideActivity extends Activity {
private Button mBtSelHttp;
private Button mBtSelSocket;
private Button mBtSearchApp;
private Button mBtRSa;
private Button mBtUid;
private Button mBtMedia;
private Button mCameraBt;
private Button mCustomLoadingBt;
private Button mCameraNewBtn;
private Button mSeekBarBtn;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_guide);
this.mBtSelHttp = (Button) findViewById(R.id.bt_selHttp);
mBtSelHttp.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent();
intent.setClass(GuideActivity.this, HttpActivity.class);
GuideActivity.this.startActivity(intent);
}
});
this.mBtSelSocket = (Button) findViewById(R.id.bt_selSocket);
mBtSelSocket.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent();
intent.setClass(GuideActivity.this, SocketActivity.class);
GuideActivity.this.startActivity(intent);
}
});
this.mBtSearchApp = (Button) findViewById(R.id.bt_searchApp);
mBtSearchApp.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent();
intent.setClass(GuideActivity.this, AppSearchActivity.class);
GuideActivity.this.startActivity(intent);
}
});
this.mBtRSa = (Button) findViewById(R.id.RSA);
mBtRSa.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent();
intent.setClass(GuideActivity.this, RsaActivity.class);
GuideActivity.this.startActivity(intent);
}
});
this.mBtUid = (Button) findViewById(R.id.uid);
mBtUid.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent();
intent.setClass(GuideActivity.this, UidActivity.class);
GuideActivity.this.startActivity(intent);
}
});
this.mBtMedia = (Button) findViewById(R.id.media);
mBtMedia.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent();
intent.setClass(GuideActivity.this, <API key>.class);
GuideActivity.this.startActivity(intent);
}
});
this.mCameraBt = (Button) findViewById(R.id.camera_intent);
mCameraBt.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent();
intent.setClass(GuideActivity.this, <API key>.class);
GuideActivity.this.startActivity(intent);
}
});
this.mCustomLoadingBt = (Button) findViewById(R.id.custom_loading);
mCustomLoadingBt.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(GuideActivity.this, <API key>.class));
}
});
mCameraNewBtn = (Button) findViewById(R.id.camera);
mCameraNewBtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(GuideActivity.this, CameraActivity.class));
}
});
mSeekBarBtn = (Button) findViewById(R.id.seek_bar);
mSeekBarBtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(GuideActivity.this, SeekBarActivity.class));
}
});
}
}
|
using System;
using Microsoft.SPOT;
namespace WeatherStation.WebServer
{
<summary>
Base class for HTTP object (request/response)
</summary>
public class HttpBase
{
#region Constants ...
// const string separator
protected const char CR = '\r';
protected const char LF = '\n';
// request line separator
protected const char <API key> = ' ';
// starting of query string
protected const char <API key> = '?';
// query string parameters separator
protected const char <API key> = '&';
// query string value separator
protected const char <API key> = '=';
// header-value separator
protected const char <API key> = ':';
// form parameters separator
protected const char <API key> = '&';
// form value separator
protected const char <API key> = '=';
#endregion
#region Properties ...
<summary>
Headers of the HTTP request/response
</summary>
public NameValueCollection Headers { get; protected set; }
<summary>
Body of HTTP request/response
</summary>
public string Body { get; set; }
#endregion
<summary>
Constructor
</summary>
public HttpBase()
{
this.Headers = new NameValueCollection();
}
}
}
|
<?php
namespace NetSuite\Classes;
class FolderFolderType {
static $paramtypesmap = array(
);
const _appPackages = "_appPackages";
const <API key> = "<API key>";
const _attachmentsSent = "_attachmentsSent";
const _certificates = "_certificates";
const _documentsAndFiles = "_documentsAndFiles";
const _emailTemplates = "_emailTemplates";
const _faxTemplates = "_faxTemplates";
const _images = "_images";
const _letterTemplates = "_letterTemplates";
const _mailMerge = "_mailMerge";
const _marketingTemplates = "_marketingTemplates";
const _pdfTemplates = "_pdfTemplates";
const _suitebundles = "_suitebundles";
const <API key> = "<API key>";
const _suitescripts = "_suitescripts";
const _templates = "_templates";
const <API key> = "<API key>";
}
|
<?php
namespace Franklin\Component;
class Menu extends \Franklin\System\Object{
public $Id;
public $Name;
public $Status;
public $CleanURL;
public function __construct($Parent) {
parent::__construct($Parent);
$this->Status = new Status($this);
}
}
|
package pe.com.ccpl.siconc.web.service;
import pe.com.ccpl.siconc.web.model.Role;
public interface RoleService {
public Role getRole(int id);
}
|
<API key>.before_filter do
if params[:context]
collection = Admin::Collection.find(params[:context])
browser.providers['file_system'].config[:home] = collection.<API key>
end
end
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hello Wooorld</title>
<!-- Bootstrap -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link href="styles.css" rel="stylesheet">
</head>
<body>
<div class="container">
<h1>Welcome.</h1>
<div id="nameInput" class="input-group-lg center-block helloInput">
<p class="lead">What is your name?</p>
<input id="user_name" type="text" class="form-control" placeholder="name" aria-describedby="sizing-addon1" value="" />
</div>
<p id="response" class="lead text-center"></p>
<p id="databaseNames" class="lead text-center"></p>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="antixss.js" type="text/javascript"></script>
<script>
//Submit data when enter key is pressed
$('#user_name').keydown(function(e) {
var name = $('#user_name').val();
if (e.which == 13 && name.length > 0) { //catch Enter key
//POST request to API to create a new visitor entry in the database
$.ajax({
method: "POST",
url: "./api/visitors",
contentType: "application/json",
data: JSON.stringify({name: name })
})
.done(function(data) {
$('#response').html(AntiXSS.sanitizeInput(data));
$('#nameInput').hide();
getNames();
});
}
});
//Retreive all the visitors from the database
function getNames(){
$.get("./api/visitors")
.done(function(data) {
if(data.length > 0) {
data.forEach(function(element, index) {
data[index] = AntiXSS.sanitizeInput(element)
});
$('#databaseNames').html("Database contents: " + JSON.stringify(data));
}
});
}
//Call getNames on page load.
getNames();
</script>
</body>
</html>
|
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<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>
</br>
<span class='rank24 23.68441486703646'>CULTIVATED</span>
<span class='rank4 3.9555862618421074'>PLANTS</span>
<span class='rank6 6.171300748459634'>OF</span>
<span class='rank10 9.986050120726519'>GRAN</span>
<span class='rank0 0.0'>D</span>
<span class='rank2 2.156557235213036'>C/EfMAN</span>
<span class='rank12 12.081526498619874'>EWI</span>
</br>
<span class='rank11 10.714595530729639'>VoI^SUZlJ</span>
</br>
<span class='rank12 12.270670438212889'>ÇÕÔivd'ta</span>
<span class='rank6 6.37332945951861'>sp.</span>
<span class='rank6 5.703960236633383'>L.</span>
</br>
<span class='rank5 5.131137911966853'>Shrub;</span>
<span class='rank8 7.54588394801948'>Leaves</span>
<span class='rank0 0.3947714162252218'>green</span>
<span class='rank-17 -16.585643118145434'>containing</span>
<span class='rank3 3.162206211046385'>white</span>
<span class='rank11 11.18572446377565'>margins;</span>
<span class='rank10 10.249410291448903'>full</span>
<span class='rank17 17.287585110585724'>sunlight;</span>
<span class='rank3 3.360632617274767'>rocky</span>
<span class='rank2 2.416899481030569'>soil;</span>
<span class='rank9 9.328301169609748'>1,5</span>
<span class='rank8 7.947303845497636'>meters;</span>
<span class='rank-12 -11.551466452746979'>abandoned</span>
<span class='rank-3 -2.7004070387897556'>honesite,</span>
<span class='rank2 2.2670777674599414'>South</span>
<span class='rank12 12.082006686030129'>£cund</span>
<span class='rank16 15.899761973947854'>Rd.,</span>
<span class='rank17 16.53645291085764'>outside</span>
<span class='rank6 6.129628052059067'>of</span>
<span class='rank-13 -13.008372207453675'>Georgetown.</span>
</br>
<span class='rank2 1.9684131869572745'>goll</span>
<span class='rank8 7.536541700381693'>N.</span>
<span class='rank-13 -13.184994579363924'>Chevalier_</span>
<span class='rank0 0.0'>1S1</span>
<span class='rank3 2.8711404739185156'>August</span>
<span class='rank7 7.181168483165266'>24,</span>
<span class='rank4 3.8650293934949715'>1971</span>
<span class='rank3 3.017868087179137'>det</span>
</br>
<span class='rank-3 -2.810734468887766'>00198996</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>
|
#import "<API key>.h"
#pragma mark - <API key> protocol
@protocol <API key> <NSObject>
// Suitability checking
+ (BOOL)canHandleTableView:(UITableView *)tableView viewModel:(id<<API key>>)viewModel view:(UIView *)view;
// Collaborators
- (void)setTableView:(UITableView *)tableView;
- (void)setViewModel:(id<<API key>>)viewModel;
- (void)setView:(UIView *)view;
@optional
// Display customization
- (void)willReuseView;
- (void)willDisplayView;
- (void)<API key>;
@end
#pragma mark - <API key> protocol
@protocol <API key> <<API key>>
@optional
// Accessories (disclosures)
- (void)<API key>;
// Selection
- (BOOL)shouldHighlightView;
- (void)didHighlightView;
- (void)didUnhighlightView;
- (void)willSelectView;
- (void)willDeselectView;
- (void)didSelectView;
- (void)didDeselectView;
// Editing
- (void)willBeginEditing;
- (void)didEndEditing;
- (NSArray *)editActions;
// Copy and Paste
- (BOOL)canPerformAction:(SEL)action withSender:(id)sender;
- (void)performAction:(SEL)action withSender:(id)sender;
@end
#pragma mark - <API key> protocol
@protocol <API key> <<API key>>
@end
#pragma mark - <API key> protocol
@protocol <API key> <NSObject>
- (id<<API key>>)<API key>:(UITableView *)tableView viewModel:(id<<API key>>)viewModel view:(UIView *)view;
@end
|
#include "parse_options.h"
/**
* takes a string in the Format "c i i i ..."
* (1 char followed by potentially many integers) and returns a vector of all i
* @param str the string to tokenize
* @param tokens the result vector of wire id
*/
void tokenize_verilog(const std::string& str, std::vector<uint32_t>& tokens, const std::string& delimiters) {
tokens.clear();
// Skip delimiters at beginning. Skip first two characters (1 Char + 1 Space)
std::string::size_type lastPos = str.find_first_not_of(delimiters, 2);
// Find first "non-delimiter".
std::string::size_type pos = str.find_first_of(delimiters, lastPos);
while (std::string::npos != pos || std::string::npos != lastPos) {
// Found a token, add it to the vector.
tokens.push_back(atoi(str.substr(lastPos, pos - lastPos).c_str()));
// Skip delimiters. Note the "not_of"
lastPos = str.find_first_not_of(delimiters, pos);
// Find next "non-delimiter"
pos = str.find_first_of(delimiters, lastPos);
}
}
/**
* takes a string in the Format "i|i|i|..."
* (integers separated by '|') and returns a vector of all integers
* @param str the string to tokenize
* @param tokens the result vector of wire id
*/
void tokenize(const std::string& str, std::vector<uint32_t>& tokens, const std::string& delimiters) {
tokens.clear();
// Skip delimiters at beginning
std::string::size_type lastPos = str.find_first_not_of(delimiters, 0);
// Find first "non-delimiter".
std::string::size_type pos = str.find_first_of(delimiters, lastPos);
while (std::string::npos != pos || std::string::npos != lastPos) {
// Found a token, add it to the vector.
tokens.push_back(atoi(str.substr(lastPos, pos - lastPos).c_str()));
// Skip delimiters. Note the "not_of"
lastPos = str.find_first_not_of(delimiters, pos);
// Find next "non-delimiter"
pos = str.find_first_of(delimiters, lastPos);
}
}
int32_t parse_options(int32_t* argcp, char*** argvp, parsing_ctx* options, uint32_t nops) {
int result = 0;
bool skip;
uint32_t i;
if(*argcp < 2)
return 0;
while ((*argcp) > 1) {
if ((*argvp)[1][0] != '-' || (*argvp)[1][1] == '\0' || (*argvp)[1][2] != '\0')
return result;
for (i = 0, skip = false; i < nops && !skip; i++) {
if (((*argvp)[1][1]) == options[i].opt_name) {
switch (options[i].type) {
case T_NUM:
if (isdigit((*argvp)[2][0])) {
++*argvp;
--*argcp;
*((uint32_t*) options[i].val) = atoi((*argvp)[1]);
}
break;
case T_DOUBLE:
++*argvp;
--*argcp;
*((double*) options[i].val) = atof((*argvp)[1]);
break;
case T_STR:
++*argvp;
--*argcp;
*((std::string*) options[i].val) = (*argvp)[1];
break;
case T_FLAG:
*((bool*) options[i].val) = true;
break;
}
++result;
++*argvp;
--*argcp;
options[i].set = true;
skip = true;
}
}
}
for (i = 0; i < nops; i++) {
if (options[i].required && !options[i].set)
return 0;
}
return 1;
}
void print_usage(std::string progname, parsing_ctx* options, uint32_t nops) {
uint32_t i;
std::cout << "Usage: " << progname << std::endl;
for (i = 0; i < nops; i++) {
std::cout << " -" << options[i].opt_name << " [" << options[i].help_str << (options[i].required ? ", required" : ", optional") << "]" << std::endl;
}
std::cout << std::endl << "Program exiting" << std::endl;
}
|
from django.conf.urls import include, url
from django.contrib import admin
from blog.views import index, signup, login, logout
urlpatterns = [
url(r'^$', index, name='index'),
url(r'^signup', signup, name='signup'),
url(r'^login', login, name='login'),
url(r'^logout', logout, name='logout'),
url(r'^admin/', include(admin.site.urls)),
]
|
package Zoe::Runtime::Database;
use Mojo::Base 'Zoe::Runtime';
sub new
{
my $class = shift;
my %arg = @_;
my $self = {
type => undef, #database type (mysql | sqlite| perl DBD driver name])
dbfile => undef, #path to database
# required if type is sqlite
dbname => undef, #database name
port => undef, #database port
host => undef, #databse host
dbuser => undef, #database user name
dbpassword => undef, #database user password
is_verbose => undef, #verbose logging (1| 0)
mandatory_fields => [ 'type'], #mandatory fields
%arg
};
return bless $self, $class;
}
sub check_valid {
#if type is sqlite ->dbfile is required
#else all other params are required
my $self = shift;
my $type = $self->{type};
my @not_valids = ();
push(@not_valids, 'type') unless (defined($self->{type}));
if ($type =~ /sqlite/imx){
push(@not_valids, 'type');
}else {
my @list = ('dbname', 'port', 'host', 'dbuser', 'dbpassword');
foreach my $field (@list) {
push(@not_valids, $field) unless ( defined($self->{$field}) );
}
}
return @not_valids;
}
1;
__DATA__
=head1 NAME
ZOE::Runtime::Database
=head1 Description
Stores the runtime Database details;
Database parameters are stored in the runtime.yml file or passed as
key values to the Zoe::Runtime::Database constructer
keys and description below
type database type (mysql | sqlite| perl DBD driver name])
dbfile path to database
required if type is sqlite
dbname database name
port database port
host databse host
dbuser database user name
dbpassword database user password
is_verbose verbose logging (1| 0)
mandatory_fields => [ 'type'], #mandatory fields
#if type is sqlite ->dbfile is required
#else all other params are required
=head1 YML Examples
Sqlite example:
database:
type: sqlite
dbfile: /var/apps/myapp/app.db
is_verbose: 1
All other DB example:
database:
type: mysql
dbname: mydatabase
port: 3306
host: dbhost
dbuser: dbuser
dbpassword: butt3rSk0tcH!
is_verbose: 1
=head1 Author
dinnibartholomew@gmail.com
=cut
|
body {
margin:0px;
background-image:none;
position:relative;
left:-0px;
width:1074px;
margin-left:auto;
margin-right:auto;
text-align:left;
}
#base {
position:absolute;
z-index:0;
}
#u6641 {
position:absolute;
left:0px;
top:63px;
width:128px;
height:320px;
}
#u6641_menu {
position:absolute;
left:-3px;
top:-3px;
width:134px;
height:326px;
}
#u6642 {
position:absolute;
left:0px;
top:0px;
width:133px;
height:325px;
}
#u6643_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6643 {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6644 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6645_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6645 {
position:absolute;
left:0px;
top:32px;
width:128px;
height:32px;
}
#u6646 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6647_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6647 {
position:absolute;
left:0px;
top:64px;
width:128px;
height:32px;
}
#u6648 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6649_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6649 {
position:absolute;
left:0px;
top:96px;
width:128px;
height:32px;
}
#u6650 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6651_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6651 {
position:absolute;
left:0px;
top:128px;
width:128px;
height:32px;
}
#u6652 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6653_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6653 {
position:absolute;
left:0px;
top:160px;
width:128px;
height:32px;
}
#u6654 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6655_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6655 {
position:absolute;
left:0px;
top:192px;
width:128px;
height:32px;
}
#u6656 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6657_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6657 {
position:absolute;
left:0px;
top:224px;
width:128px;
height:32px;
}
#u6658 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6659_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6659 {
position:absolute;
left:0px;
top:256px;
width:128px;
height:32px;
}
#u6660 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6661_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6661 {
position:absolute;
left:0px;
top:288px;
width:128px;
height:32px;
}
#u6662 {
position:absolute;
left:2px;
top:8px;
width:124px;
visibility:hidden;
word-wrap:break-word;
}
#u6663 {
position:absolute;
left:128px;
top:0px;
width:128px;
height:192px;
visibility:hidden;
}
#u6663_menu {
position:absolute;
left:-3px;
top:-3px;
width:134px;
height:198px;
}
#u6664 {
position:absolute;
left:0px;
top:0px;
width:133px;
height:197px;
}
#u6665_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6665 {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6666 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6667_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6667 {
position:absolute;
left:0px;
top:32px;
width:128px;
height:32px;
}
#u6668 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6669_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6669 {
position:absolute;
left:0px;
top:64px;
width:128px;
height:32px;
}
#u6670 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6671_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6671 {
position:absolute;
left:0px;
top:96px;
width:128px;
height:32px;
}
#u6672 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6673_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6673 {
position:absolute;
left:0px;
top:128px;
width:128px;
height:32px;
}
#u6674 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6675_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6675 {
position:absolute;
left:0px;
top:160px;
width:128px;
height:32px;
}
#u6676 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6677 {
position:absolute;
left:128px;
top:32px;
width:128px;
height:128px;
visibility:hidden;
}
#u6677_menu {
position:absolute;
left:-3px;
top:-3px;
width:134px;
height:134px;
}
#u6678 {
position:absolute;
left:0px;
top:0px;
width:133px;
height:133px;
}
#u6679_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6679 {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6680 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6681_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6681 {
position:absolute;
left:0px;
top:32px;
width:128px;
height:32px;
}
#u6682 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6683_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6683 {
position:absolute;
left:0px;
top:64px;
width:128px;
height:32px;
}
#u6684 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6685_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6685 {
position:absolute;
left:0px;
top:96px;
width:128px;
height:32px;
}
#u6686 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6687 {
position:absolute;
left:128px;
top:64px;
width:128px;
height:224px;
visibility:hidden;
}
#u6687_menu {
position:absolute;
left:-3px;
top:-3px;
width:134px;
height:230px;
}
#u6688 {
position:absolute;
left:0px;
top:0px;
width:133px;
height:229px;
}
#u6689_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6689 {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6690 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6691_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6691 {
position:absolute;
left:0px;
top:32px;
width:128px;
height:32px;
}
#u6692 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6693_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6693 {
position:absolute;
left:0px;
top:64px;
width:128px;
height:32px;
}
#u6694 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6695_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6695 {
position:absolute;
left:0px;
top:96px;
width:128px;
height:32px;
}
#u6696 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6697_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6697 {
position:absolute;
left:0px;
top:128px;
width:128px;
height:32px;
}
#u6698 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6699_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6699 {
position:absolute;
left:0px;
top:160px;
width:128px;
height:32px;
}
#u6700 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6701_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6701 {
position:absolute;
left:0px;
top:192px;
width:128px;
height:32px;
}
#u6702 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6703 {
position:absolute;
left:128px;
top:96px;
width:128px;
height:128px;
visibility:hidden;
}
#u6703_menu {
position:absolute;
left:-3px;
top:-3px;
width:134px;
height:134px;
}
#u6704 {
position:absolute;
left:0px;
top:0px;
width:133px;
height:133px;
}
#u6705_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6705 {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6706 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6707_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6707 {
position:absolute;
left:0px;
top:32px;
width:128px;
height:32px;
}
#u6708 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6709_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6709 {
position:absolute;
left:0px;
top:64px;
width:128px;
height:32px;
}
#u6710 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6711_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6711 {
position:absolute;
left:0px;
top:96px;
width:128px;
height:32px;
}
#u6712 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6713 {
position:absolute;
left:128px;
top:128px;
width:128px;
height:128px;
visibility:hidden;
}
#u6713_menu {
position:absolute;
left:-3px;
top:-3px;
width:134px;
height:134px;
}
#u6714 {
position:absolute;
left:0px;
top:0px;
width:133px;
height:133px;
}
#u6715_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6715 {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6716 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6717_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6717 {
position:absolute;
left:0px;
top:32px;
width:128px;
height:32px;
}
#u6718 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6719_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6719 {
position:absolute;
left:0px;
top:64px;
width:128px;
height:32px;
}
#u6720 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6721_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6721 {
position:absolute;
left:0px;
top:96px;
width:128px;
height:32px;
}
#u6722 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6723 {
position:absolute;
left:128px;
top:160px;
width:128px;
height:64px;
visibility:hidden;
}
#u6723_menu {
position:absolute;
left:-3px;
top:-3px;
width:134px;
height:70px;
}
#u6724 {
position:absolute;
left:0px;
top:0px;
width:133px;
height:69px;
}
#u6725_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6725 {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6726 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6727_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6727 {
position:absolute;
left:0px;
top:32px;
width:128px;
height:32px;
}
#u6728 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6729 {
position:absolute;
left:128px;
top:192px;
width:128px;
height:32px;
visibility:hidden;
}
#u6729_menu {
position:absolute;
left:-3px;
top:-3px;
width:134px;
height:38px;
}
#u6730 {
position:absolute;
left:0px;
top:0px;
width:133px;
height:37px;
}
#u6731_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6731 {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6732 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6733 {
position:absolute;
left:128px;
top:224px;
width:128px;
height:224px;
visibility:hidden;
}
#u6733_menu {
position:absolute;
left:-3px;
top:-3px;
width:134px;
height:230px;
}
#u6734 {
position:absolute;
left:0px;
top:0px;
width:133px;
height:229px;
}
#u6735_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6735 {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6736 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6737_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6737 {
position:absolute;
left:0px;
top:32px;
width:128px;
height:32px;
}
#u6738 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6739_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6739 {
position:absolute;
left:0px;
top:64px;
width:128px;
height:32px;
}
#u6740 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6741_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6741 {
position:absolute;
left:0px;
top:96px;
width:128px;
height:32px;
}
#u6742 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6743_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6743 {
position:absolute;
left:0px;
top:128px;
width:128px;
height:32px;
}
#u6744 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6745_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6745 {
position:absolute;
left:0px;
top:160px;
width:128px;
height:32px;
}
#u6746 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6747_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6747 {
position:absolute;
left:0px;
top:192px;
width:128px;
height:32px;
}
#u6748 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6749 {
position:absolute;
left:128px;
top:256px;
width:128px;
height:64px;
visibility:hidden;
}
#u6749_menu {
position:absolute;
left:-3px;
top:-3px;
width:134px;
height:70px;
}
#u6750 {
position:absolute;
left:0px;
top:0px;
width:133px;
height:69px;
}
#u6751_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6751 {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6752 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6753_img {
position:absolute;
left:0px;
top:0px;
width:128px;
height:32px;
}
#u6753 {
position:absolute;
left:0px;
top:32px;
width:128px;
height:32px;
}
#u6754 {
position:absolute;
left:2px;
top:8px;
width:124px;
word-wrap:break-word;
}
#u6756_div {
position:absolute;
left:0px;
top:0px;
width:1024px;
height:64px;
background:inherit;
background-color:rgba(215, 215, 215, 1);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6756 {
position:absolute;
left:0px;
top:0px;
width:1024px;
height:64px;
}
#u6757 {
position:absolute;
left:2px;
top:24px;
width:1020px;
visibility:hidden;
word-wrap:break-word;
}
#u6759_img {
position:absolute;
left:0px;
top:0px;
width:85px;
height:29px;
}
#u6759 {
position:absolute;
left:22px;
top:18px;
width:85px;
height:29px;
font-family:' Regular', '';
font-weight:400;
font-style:normal;
font-size:28px;
}
#u6760 {
position:absolute;
left:2px;
top:6px;
width:81px;
visibility:hidden;
word-wrap:break-word;
}
#u6761_img {
position:absolute;
left:0px;
top:0px;
width:64px;
height:64px;
}
#u6761 {
position:absolute;
left:960px;
top:0px;
width:64px;
height:64px;
}
#u6762 {
position:absolute;
left:2px;
top:24px;
width:60px;
visibility:hidden;
word-wrap:break-word;
}
#u6763_div {
position:absolute;
left:0px;
top:0px;
width:85px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
color:#666666;
}
#u6763 {
position:absolute;
left:858px;
top:11px;
width:85px;
height:16px;
color:#666666;
}
#u6764 {
position:absolute;
left:0px;
top:0px;
width:85px;
white-space:nowrap;
}
#u6765_div {
position:absolute;
left:0px;
top:0px;
width:29px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
color:#666666;
}
#u6765 {
position:absolute;
left:914px;
top:37px;
width:29px;
height:16px;
color:#666666;
}
#u6766 {
position:absolute;
left:0px;
top:0px;
width:29px;
white-space:nowrap;
}
#u6767_div {
position:absolute;
left:0px;
top:0px;
width:57px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6767 {
position:absolute;
left:138px;
top:74px;
width:57px;
height:16px;
}
#u6768 {
position:absolute;
left:0px;
top:0px;
width:57px;
white-space:nowrap;
}
#u6769_div {
position:absolute;
left:0px;
top:0px;
width:5px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6769 {
position:absolute;
left:205px;
top:74px;
width:5px;
height:16px;
}
#u6770 {
position:absolute;
left:0px;
top:0px;
width:5px;
white-space:nowrap;
}
#u6771_div {
position:absolute;
left:0px;
top:0px;
width:57px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6771 {
position:absolute;
left:219px;
top:74px;
width:57px;
height:16px;
}
#u6772 {
position:absolute;
left:0px;
top:0px;
width:57px;
white-space:nowrap;
}
#u6773_img {
position:absolute;
left:0px;
top:0px;
width:887px;
height:2px;
}
#u6773 {
position:absolute;
left:138px;
top:96px;
width:886px;
height:1px;
}
#u6774 {
position:absolute;
left:2px;
top:-8px;
width:882px;
visibility:hidden;
word-wrap:break-word;
}
#u6775_div {
position:absolute;
left:0px;
top:0px;
width:886px;
height:149px;
background:inherit;
background-color:rgba(204, 204, 204, 0);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(204, 204, 204, 1);
border-radius:5px;
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6775 {
position:absolute;
left:138px;
top:107px;
width:886px;
height:149px;
}
#u6776 {
position:absolute;
left:2px;
top:66px;
width:882px;
visibility:hidden;
word-wrap:break-word;
}
#u6777_div {
position:absolute;
left:0px;
top:0px;
width:96px;
height:36px;
background:inherit;
background-color:rgba(70, 140, 200, 0);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(201, 201, 201, 1);
border-radius:5px;
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
font-size:14px;
color:#666666;
}
#u6777 {
position:absolute;
left:911px;
top:192px;
width:96px;
height:36px;
font-size:14px;
color:#666666;
}
#u6778 {
position:absolute;
left:2px;
top:10px;
width:92px;
word-wrap:break-word;
}
#u6779_div {
position:absolute;
left:0px;
top:0px;
width:96px;
height:36px;
background:inherit;
background-color:rgba(70, 140, 200, 0);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(201, 201, 201, 1);
border-radius:5px;
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
font-size:14px;
color:#666666;
}
#u6779 {
position:absolute;
left:911px;
top:128px;
width:96px;
height:36px;
font-size:14px;
color:#666666;
}
#u6780 {
position:absolute;
left:2px;
top:10px;
width:92px;
word-wrap:break-word;
}
#u6781_div {
position:absolute;
left:0px;
top:0px;
width:886px;
height:171px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(204, 204, 204, 1);
border-radius:5px;
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6781 {
position:absolute;
left:138px;
top:320px;
width:886px;
height:171px;
}
#u6782 {
position:absolute;
left:2px;
top:78px;
width:882px;
visibility:hidden;
word-wrap:break-word;
}
#u6783_div {
position:absolute;
left:0px;
top:0px;
width:9px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
font-family:'Arial Negreta', 'Arial';
font-weight:700;
font-style:normal;
}
#u6783 {
position:absolute;
left:219px;
top:341px;
width:9px;
height:16px;
font-family:'Arial Negreta', 'Arial';
font-weight:700;
font-style:normal;
}
#u6784 {
position:absolute;
left:0px;
top:0px;
width:9px;
white-space:nowrap;
}
#u6785_div {
position:absolute;
left:0px;
top:0px;
width:72px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
font-family:'Arial Negreta', 'Arial';
font-weight:700;
font-style:normal;
}
#u6785 {
position:absolute;
left:291px;
top:341px;
width:72px;
height:16px;
font-family:'Arial Negreta', 'Arial';
font-weight:700;
font-style:normal;
}
#u6786 {
position:absolute;
left:0px;
top:0px;
width:72px;
word-wrap:break-word;
}
#u6787_img {
position:absolute;
left:-1px;
top:-1px;
width:858px;
height:5px;
}
#u6787 {
position:absolute;
left:152px;
top:367px;
width:855px;
height:2px;
}
#u6788 {
position:absolute;
left:2px;
top:-7px;
width:851px;
visibility:hidden;
word-wrap:break-word;
}
#u6789_div {
position:absolute;
left:0px;
top:0px;
width:9px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6789 {
position:absolute;
left:219px;
top:383px;
width:9px;
height:16px;
}
#u6790 {
position:absolute;
left:0px;
top:0px;
width:9px;
white-space:nowrap;
}
#u6791_div {
position:absolute;
left:0px;
top:0px;
width:9px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6791 {
position:absolute;
left:219px;
top:420px;
width:9px;
height:16px;
}
#u6792 {
position:absolute;
left:0px;
top:0px;
width:9px;
white-space:nowrap;
}
#u6793_div {
position:absolute;
left:0px;
top:0px;
width:9px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6793 {
position:absolute;
left:219px;
top:458px;
width:9px;
height:16px;
}
#u6794 {
position:absolute;
left:0px;
top:0px;
width:9px;
white-space:nowrap;
}
#u6795_div {
position:absolute;
left:0px;
top:0px;
width:71px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6795 {
position:absolute;
left:505px;
top:383px;
width:71px;
height:16px;
}
#u6796 {
position:absolute;
left:0px;
top:0px;
width:71px;
word-wrap:break-word;
}
#u6797_div {
position:absolute;
left:0px;
top:0px;
width:71px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6797 {
position:absolute;
left:505px;
top:420px;
width:71px;
height:16px;
}
#u6798 {
position:absolute;
left:0px;
top:0px;
width:71px;
word-wrap:break-word;
}
#u6799_div {
position:absolute;
left:0px;
top:0px;
width:71px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6799 {
position:absolute;
left:505px;
top:458px;
width:71px;
height:16px;
}
#u6800 {
position:absolute;
left:0px;
top:0px;
width:71px;
word-wrap:break-word;
}
#u6801_img {
position:absolute;
left:0px;
top:0px;
width:856px;
height:2px;
}
#u6801 {
position:absolute;
left:152px;
top:410px;
width:855px;
height:1px;
}
#u6802 {
position:absolute;
left:2px;
top:-8px;
width:851px;
visibility:hidden;
word-wrap:break-word;
}
#u6803_img {
position:absolute;
left:0px;
top:0px;
width:856px;
height:2px;
}
#u6803 {
position:absolute;
left:152px;
top:447px;
width:855px;
height:1px;
}
#u6804 {
position:absolute;
left:2px;
top:-8px;
width:851px;
visibility:hidden;
word-wrap:break-word;
}
#u6805 {
position:absolute;
left:154px;
top:341px;
width:52px;
height:16px;
font-family:'Arial Negreta', 'Arial';
font-weight:700;
font-style:normal;
}
#u6806 {
position:absolute;
left:16px;
top:0px;
width:34px;
word-wrap:break-word;
}
#u6805_input {
position:absolute;
left:-3px;
top:-2px;
}
#u6807 {
position:absolute;
left:154px;
top:383px;
width:39px;
height:16px;
}
#u6808 {
position:absolute;
left:16px;
top:0px;
width:21px;
visibility:hidden;
word-wrap:break-word;
}
#u6807_input {
position:absolute;
left:-3px;
top:-2px;
}
#u6809 {
position:absolute;
left:154px;
top:420px;
width:39px;
height:16px;
}
#u6810 {
position:absolute;
left:16px;
top:0px;
width:21px;
visibility:hidden;
word-wrap:break-word;
}
#u6809_input {
position:absolute;
left:-3px;
top:-2px;
}
#u6811 {
position:absolute;
left:154px;
top:458px;
width:39px;
height:16px;
}
#u6812 {
position:absolute;
left:16px;
top:0px;
width:21px;
visibility:hidden;
word-wrap:break-word;
}
#u6811_input {
position:absolute;
left:-3px;
top:-2px;
}
#u6813 {
position:absolute;
left:0px;
top:0px;
width:0px;
height:0px;
}
#u6814_div {
position:absolute;
left:0px;
top:0px;
width:40px;
height:36px;
background:inherit;
background-color:rgba(255, 255, 255, 1);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(121, 121, 121, 1);
border-right:0px;
border-radius:5px;
<API key>:0px;
<API key>:0px;
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6814 {
position:absolute;
left:491px;
top:669px;
width:40px;
height:36px;
}
#u6815 {
position:absolute;
left:2px;
top:10px;
width:36px;
visibility:hidden;
word-wrap:break-word;
}
#u6816_div {
position:absolute;
left:0px;
top:0px;
width:40px;
height:36px;
background:inherit;
background-color:rgba(255, 255, 255, 1);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(121, 121, 121, 1);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6816 {
position:absolute;
left:649px;
top:669px;
width:40px;
height:36px;
}
#u6817 {
position:absolute;
left:2px;
top:10px;
width:36px;
word-wrap:break-word;
}
#u6818_div {
position:absolute;
left:0px;
top:0px;
width:40px;
height:36px;
background:inherit;
background-color:rgba(255, 255, 255, 1);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(121, 121, 121, 1);
border-left:0px;
border-radius:5px;
<API key>:0px;
<API key>:0px;
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6818 {
position:absolute;
left:920px;
top:669px;
width:40px;
height:36px;
}
#u6819 {
position:absolute;
left:2px;
top:10px;
width:36px;
visibility:hidden;
word-wrap:break-word;
}
#u6820_div {
position:absolute;
left:0px;
top:0px;
width:40px;
height:36px;
background:inherit;
background-color:rgba(255, 255, 255, 1);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(121, 121, 121, 1);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6820 {
position:absolute;
left:571px;
top:669px;
width:40px;
height:36px;
}
#u6821 {
position:absolute;
left:2px;
top:10px;
width:36px;
word-wrap:break-word;
}
#u6822_div {
position:absolute;
left:0px;
top:0px;
width:40px;
height:36px;
background:inherit;
background-color:rgba(255, 255, 255, 1);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(121, 121, 121, 1);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6822 {
position:absolute;
left:610px;
top:669px;
width:40px;
height:36px;
}
#u6823 {
position:absolute;
left:2px;
top:10px;
width:36px;
word-wrap:break-word;
}
#u6824_div {
position:absolute;
left:0px;
top:0px;
width:40px;
height:36px;
background:inherit;
background-color:rgba(255, 255, 255, 1);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(121, 121, 121, 1);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6824 {
position:absolute;
left:688px;
top:669px;
width:40px;
height:36px;
}
#u6825 {
position:absolute;
left:2px;
top:10px;
width:36px;
word-wrap:break-word;
}
#u6826_div {
position:absolute;
left:0px;
top:0px;
width:40px;
height:36px;
background:inherit;
background-color:rgba(255, 255, 255, 1);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(121, 121, 121, 1);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6826 {
position:absolute;
left:724px;
top:669px;
width:40px;
height:36px;
}
#u6827 {
position:absolute;
left:2px;
top:10px;
width:36px;
word-wrap:break-word;
}
#u6828_div {
position:absolute;
left:0px;
top:0px;
width:40px;
height:36px;
background:inherit;
background-color:rgba(255, 255, 255, 1);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(121, 121, 121, 1);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6828 {
position:absolute;
left:763px;
top:669px;
width:40px;
height:36px;
}
#u6829 {
position:absolute;
left:2px;
top:10px;
width:36px;
word-wrap:break-word;
}
#u6830_div {
position:absolute;
left:0px;
top:0px;
width:40px;
height:36px;
background:inherit;
background-color:rgba(255, 255, 255, 1);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(121, 121, 121, 1);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6830 {
position:absolute;
left:802px;
top:669px;
width:40px;
height:36px;
}
#u6831 {
position:absolute;
left:2px;
top:10px;
width:36px;
word-wrap:break-word;
}
#u6832_div {
position:absolute;
left:0px;
top:0px;
width:40px;
height:36px;
background:inherit;
background-color:rgba(255, 255, 255, 1);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(121, 121, 121, 1);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6832 {
position:absolute;
left:841px;
top:669px;
width:40px;
height:36px;
}
#u6833 {
position:absolute;
left:2px;
top:10px;
width:36px;
word-wrap:break-word;
}
#u6834_div {
position:absolute;
left:0px;
top:0px;
width:40px;
height:36px;
background:inherit;
background-color:rgba(255, 255, 255, 1);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(121, 121, 121, 1);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6834 {
position:absolute;
left:532px;
top:669px;
width:40px;
height:36px;
}
#u6835 {
position:absolute;
left:2px;
top:10px;
width:36px;
word-wrap:break-word;
}
#u6836_div {
position:absolute;
left:0px;
top:0px;
width:40px;
height:36px;
background:inherit;
background-color:rgba(255, 255, 255, 1);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(121, 121, 121, 1);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6836 {
position:absolute;
left:880px;
top:669px;
width:40px;
height:36px;
}
#u6837 {
position:absolute;
left:2px;
top:10px;
width:36px;
word-wrap:break-word;
}
#u6838_img {
position:absolute;
left:0px;
top:0px;
width:30px;
height:30px;
}
#u6838 {
position:absolute;
left:925px;
top:672px;
width:30px;
height:30px;
font-family:'IOS8-Icons Regular', 'IOS8-Icons';
font-weight:400;
font-style:normal;
font-size:28px;
}
#u6839 {
position:absolute;
left:0px;
top:7px;
width:30px;
visibility:hidden;
word-wrap:break-word;
}
#u6840_img {
position:absolute;
left:0px;
top:0px;
width:30px;
height:30px;
}
#u6840 {
position:absolute;
left:496px;
top:672px;
width:30px;
height:30px;
font-family:'IOS8-Icons Regular', 'IOS8-Icons';
font-weight:400;
font-style:normal;
font-size:28px;
}
#u6841 {
position:absolute;
left:0px;
top:7px;
width:30px;
visibility:hidden;
word-wrap:break-word;
}
#u6843_div {
position:absolute;
left:0px;
top:0px;
width:1024px;
height:64px;
background:inherit;
background-color:rgba(215, 215, 215, 1);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
color:#FFFFFF;
}
#u6843 {
position:absolute;
left:0px;
top:741px;
width:1024px;
height:64px;
color:#FFFFFF;
}
#u6844 {
position:absolute;
left:2px;
top:24px;
width:1020px;
word-wrap:break-word;
}
#u6845_div {
position:absolute;
left:0px;
top:0px;
width:60px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
font-family:'Arial Negreta', 'Arial';
font-weight:700;
font-style:normal;
}
#u6845 {
position:absolute;
left:506px;
top:341px;
width:60px;
height:16px;
font-family:'Arial Negreta', 'Arial';
font-weight:700;
font-style:normal;
}
#u6846 {
position:absolute;
left:0px;
top:0px;
width:60px;
word-wrap:break-word;
}
#u6847_div {
position:absolute;
left:0px;
top:0px;
width:63px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
font-family:'Arial Negreta', 'Arial';
font-weight:700;
font-style:normal;
}
#u6847 {
position:absolute;
left:638px;
top:341px;
width:63px;
height:16px;
font-family:'Arial Negreta', 'Arial';
font-weight:700;
font-style:normal;
}
#u6848 {
position:absolute;
left:0px;
top:0px;
width:63px;
word-wrap:break-word;
}
#u6849_div {
position:absolute;
left:0px;
top:0px;
width:36px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
font-family:'Arial Negreta', 'Arial';
font-weight:700;
font-style:normal;
}
#u6849 {
position:absolute;
left:916px;
top:341px;
width:36px;
height:16px;
font-family:'Arial Negreta', 'Arial';
font-weight:700;
font-style:normal;
}
#u6850 {
position:absolute;
left:0px;
top:0px;
width:36px;
word-wrap:break-word;
}
#u6851_div {
position:absolute;
left:0px;
top:0px;
width:96px;
height:36px;
background:inherit;
background-color:rgba(70, 140, 200, 0);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(201, 201, 201, 1);
border-radius:5px;
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
font-size:14px;
color:#666666;
}
#u6851 {
position:absolute;
left:146px;
top:266px;
width:96px;
height:36px;
font-size:14px;
color:#666666;
}
#u6852 {
position:absolute;
left:2px;
top:10px;
width:92px;
word-wrap:break-word;
}
#u6853_div {
position:absolute;
left:0px;
top:0px;
width:174px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6853 {
position:absolute;
left:591px;
top:383px;
width:174px;
height:16px;
}
#u6854 {
position:absolute;
left:0px;
top:0px;
width:174px;
word-wrap:break-word;
}
#u6855_div {
position:absolute;
left:0px;
top:0px;
width:72px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
color:#0099FF;
}
#u6855 {
position:absolute;
left:898px;
top:383px;
width:72px;
height:16px;
color:#0099FF;
}
#u6856 {
position:absolute;
left:0px;
top:0px;
width:72px;
word-wrap:break-word;
}
#u6857_div {
position:absolute;
left:0px;
top:0px;
width:96px;
height:36px;
background:inherit;
background-color:rgba(70, 140, 200, 0);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(201, 201, 201, 1);
border-radius:5px;
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
font-size:14px;
color:#666666;
}
#u6857 {
position:absolute;
left:269px;
top:266px;
width:96px;
height:36px;
font-size:14px;
color:#666666;
}
#u6858 {
position:absolute;
left:2px;
top:10px;
width:92px;
word-wrap:break-word;
}
#u6859_div {
position:absolute;
left:0px;
top:0px;
width:96px;
height:36px;
background:inherit;
background-color:rgba(70, 140, 200, 0);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(201, 201, 201, 1);
border-radius:5px;
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
font-size:14px;
color:#666666;
}
#u6859 {
position:absolute;
left:394px;
top:266px;
width:96px;
height:36px;
font-size:14px;
color:#666666;
}
#u6860 {
position:absolute;
left:2px;
top:10px;
width:92px;
word-wrap:break-word;
}
#u6861_div {
position:absolute;
left:0px;
top:0px;
width:115px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6861 {
position:absolute;
left:281px;
top:383px;
width:115px;
height:16px;
}
#u6862 {
position:absolute;
left:0px;
top:0px;
width:115px;
word-wrap:break-word;
}
#u6863_div {
position:absolute;
left:0px;
top:0px;
width:115px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6863 {
position:absolute;
left:281px;
top:420px;
width:115px;
height:16px;
}
#u6864 {
position:absolute;
left:0px;
top:0px;
width:115px;
word-wrap:break-word;
}
#u6865_div {
position:absolute;
left:0px;
top:0px;
width:71px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6865 {
position:absolute;
left:281px;
top:458px;
width:71px;
height:16px;
}
#u6866 {
position:absolute;
left:0px;
top:0px;
width:71px;
word-wrap:break-word;
}
#u6867_div {
position:absolute;
left:0px;
top:0px;
width:36px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
font-family:'Arial Negreta', 'Arial';
font-weight:700;
font-style:normal;
}
#u6867 {
position:absolute;
left:791px;
top:341px;
width:36px;
height:16px;
font-family:'Arial Negreta', 'Arial';
font-weight:700;
font-style:normal;
}
#u6868 {
position:absolute;
left:0px;
top:0px;
width:36px;
word-wrap:break-word;
}
#u6869_div {
position:absolute;
left:0px;
top:0px;
width:71px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6869 {
position:absolute;
left:784px;
top:383px;
width:71px;
height:16px;
}
#u6870 {
position:absolute;
left:0px;
top:0px;
width:71px;
word-wrap:break-word;
}
#u6871_div {
position:absolute;
left:0px;
top:0px;
width:71px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6871 {
position:absolute;
left:784px;
top:420px;
width:71px;
height:16px;
}
#u6872 {
position:absolute;
left:0px;
top:0px;
width:71px;
word-wrap:break-word;
}
#u6873_div {
position:absolute;
left:0px;
top:0px;
width:71px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6873 {
position:absolute;
left:784px;
top:458px;
width:71px;
height:16px;
}
#u6874 {
position:absolute;
left:0px;
top:0px;
width:71px;
word-wrap:break-word;
}
#u6875_div {
position:absolute;
left:0px;
top:0px;
width:174px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6875 {
position:absolute;
left:591px;
top:420px;
width:174px;
height:16px;
}
#u6876 {
position:absolute;
left:0px;
top:0px;
width:174px;
word-wrap:break-word;
}
#u6877_div {
position:absolute;
left:0px;
top:0px;
width:174px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6877 {
position:absolute;
left:591px;
top:458px;
width:174px;
height:16px;
}
#u6878 {
position:absolute;
left:0px;
top:0px;
width:174px;
word-wrap:break-word;
}
#u6879_div {
position:absolute;
left:0px;
top:0px;
width:72px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
color:#0099FF;
}
#u6879 {
position:absolute;
left:898px;
top:420px;
width:72px;
height:16px;
color:#0099FF;
}
#u6880 {
position:absolute;
left:0px;
top:0px;
width:72px;
word-wrap:break-word;
}
#u6881_div {
position:absolute;
left:0px;
top:0px;
width:72px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
color:#0099FF;
}
#u6881 {
position:absolute;
left:898px;
top:458px;
width:72px;
height:16px;
color:#0099FF;
}
#u6882 {
position:absolute;
left:0px;
top:0px;
width:72px;
word-wrap:break-word;
}
#u6883_div {
position:absolute;
left:0px;
top:0px;
width:71px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6883 {
position:absolute;
left:411px;
top:383px;
width:71px;
height:16px;
}
#u6884 {
position:absolute;
left:0px;
top:0px;
width:71px;
word-wrap:break-word;
}
#u6885_div {
position:absolute;
left:0px;
top:0px;
width:71px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6885 {
position:absolute;
left:411px;
top:420px;
width:71px;
height:16px;
}
#u6886 {
position:absolute;
left:0px;
top:0px;
width:71px;
word-wrap:break-word;
}
#u6887_div {
position:absolute;
left:0px;
top:0px;
width:71px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6887 {
position:absolute;
left:411px;
top:458px;
width:71px;
height:16px;
}
#u6888 {
position:absolute;
left:0px;
top:0px;
width:71px;
word-wrap:break-word;
}
#u6889_div {
position:absolute;
left:0px;
top:0px;
width:42px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
font-family:'Arial Negreta', 'Arial';
font-weight:700;
font-style:normal;
}
#u6889 {
position:absolute;
left:412px;
top:341px;
width:42px;
height:16px;
font-family:'Arial Negreta', 'Arial';
font-weight:700;
font-style:normal;
}
#u6890 {
position:absolute;
left:0px;
top:0px;
width:42px;
word-wrap:break-word;
}
#u6891_img {
position:absolute;
left:0px;
top:0px;
width:24px;
height:30px;
}
#u6891 {
position:absolute;
left:1050px;
top:324px;
width:24px;
height:30px;
font-size:16px;
color:#FFFFFF;
}
#u6892 {
position:absolute;
left:2px;
top:2px;
width:20px;
word-wrap:break-word;
}
#u6893_img {
position:absolute;
left:0px;
top:0px;
width:24px;
height:24px;
}
#u6893 {
position:absolute;
left:20px;
top:856px;
width:24px;
height:24px;
font-size:16px;
color:#FFFFFF;
}
#u6894 {
position:absolute;
left:2px;
top:2px;
width:20px;
word-wrap:break-word;
}
#u6895_div {
position:absolute;
left:0px;
top:0px;
width:239px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
color:#FF00FF;
}
#u6895 {
position:absolute;
left:54px;
top:860px;
width:239px;
height:16px;
color:#FF00FF;
}
#u6896 {
position:absolute;
left:0px;
top:0px;
width:239px;
white-space:nowrap;
}
#u6897_div {
position:absolute;
left:0px;
top:0px;
width:180px;
height:36px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(188, 188, 188, 1);
border-radius:3px;
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6897 {
position:absolute;
left:211px;
top:192px;
width:180px;
height:36px;
}
#u6898 {
position:absolute;
left:2px;
top:10px;
width:176px;
visibility:hidden;
word-wrap:break-word;
}
#u6899 {
position:absolute;
left:212px;
top:193px;
width:178px;
height:34px;
}
#u6899_input {
position:absolute;
left:0px;
top:0px;
width:178px;
height:34px;
font-family:'Arial Normal', 'Arial';
font-weight:400;
font-style:normal;
font-size:13px;
text-decoration:none;
color:#000000;
text-align:left;
border-color:transparent;
outline-style:none;
}
#u6900_img {
position:absolute;
left:0px;
top:0px;
width:12px;
height:8px;
}
#u6900 {
position:absolute;
left:370px;
top:206px;
width:12px;
height:8px;
-webkit-transform:rotate(180deg);
-moz-transform:rotate(180deg);
-ms-transform:rotate(180deg);
transform:rotate(180deg);
color:#000000;
}
#u6901 {
position:absolute;
left:2px;
top:-4px;
width:8px;
visibility:hidden;
word-wrap:break-word;
}
#u6902_div {
position:absolute;
left:0px;
top:0px;
width:29px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6902 {
position:absolute;
left:146px;
top:202px;
width:29px;
height:16px;
}
#u6903 {
position:absolute;
left:0px;
top:0px;
width:29px;
white-space:nowrap;
}
#u6904_div {
position:absolute;
left:0px;
top:0px;
width:96px;
height:36px;
background:inherit;
background-color:rgba(70, 140, 200, 0);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(201, 201, 201, 1);
border-radius:5px;
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
font-size:14px;
color:#666666;
}
#u6904 {
position:absolute;
left:518px;
top:266px;
width:96px;
height:36px;
font-size:14px;
color:#666666;
}
#u6905 {
position:absolute;
left:2px;
top:10px;
width:92px;
word-wrap:break-word;
}
#u6906_div {
position:absolute;
left:0px;
top:0px;
width:96px;
height:36px;
background:inherit;
background-color:rgba(70, 140, 200, 0);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(201, 201, 201, 1);
border-radius:5px;
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
font-size:14px;
color:#666666;
}
#u6906 {
position:absolute;
left:638px;
top:266px;
width:96px;
height:36px;
font-size:14px;
color:#666666;
}
#u6907 {
position:absolute;
left:2px;
top:10px;
width:92px;
word-wrap:break-word;
}
#u6908_img {
position:absolute;
left:0px;
top:0px;
width:24px;
height:30px;
}
#u6908 {
position:absolute;
left:1050px;
top:167px;
width:24px;
height:30px;
font-size:16px;
color:#FFFFFF;
}
#u6909 {
position:absolute;
left:2px;
top:2px;
width:20px;
word-wrap:break-word;
}
#u6910_img {
position:absolute;
left:0px;
top:0px;
width:24px;
height:30px;
}
#u6910 {
position:absolute;
left:1050px;
top:269px;
width:24px;
height:30px;
font-size:16px;
color:#FFFFFF;
}
#u6911 {
position:absolute;
left:2px;
top:2px;
width:20px;
word-wrap:break-word;
}
#u6912_img {
position:absolute;
left:0px;
top:0px;
width:24px;
height:24px;
}
#u6912 {
position:absolute;
left:20px;
top:953px;
width:24px;
height:24px;
font-size:16px;
color:#FFFFFF;
}
#u6913 {
position:absolute;
left:2px;
top:2px;
width:20px;
word-wrap:break-word;
}
#u6914_div {
position:absolute;
left:0px;
top:0px;
width:57px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
color:#FF00FF;
}
#u6914 {
position:absolute;
left:54px;
top:957px;
width:57px;
height:16px;
color:#FF00FF;
}
#u6915 {
position:absolute;
left:0px;
top:0px;
width:57px;
white-space:nowrap;
}
#u6916_img {
position:absolute;
left:0px;
top:0px;
width:24px;
height:24px;
}
#u6916 {
position:absolute;
left:20px;
top:1333px;
width:24px;
height:24px;
font-size:16px;
color:#FFFFFF;
}
#u6917 {
position:absolute;
left:2px;
top:2px;
width:20px;
word-wrap:break-word;
}
#u6918_div {
position:absolute;
left:0px;
top:0px;
width:281px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
color:#FF00FF;
}
#u6918 {
position:absolute;
left:54px;
top:1337px;
width:281px;
height:16px;
color:#FF00FF;
}
#u6919 {
position:absolute;
left:0px;
top:0px;
width:281px;
white-space:nowrap;
}
#u6920_div {
position:absolute;
left:0px;
top:0px;
width:600px;
height:240px;
background:inherit;
background-color:rgba(153, 153, 153, 0);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(204, 204, 204, 1);
border-radius:5px;
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6920 {
position:absolute;
left:54px;
top:997px;
width:600px;
height:240px;
}
#u6921 {
position:absolute;
left:2px;
top:112px;
width:596px;
visibility:hidden;
word-wrap:break-word;
}
#u6922_img {
position:absolute;
left:0px;
top:0px;
width:601px;
height:2px;
}
#u6922 {
position:absolute;
left:54px;
top:1050px;
width:600px;
height:1px;
}
#u6923 {
position:absolute;
left:2px;
top:-8px;
width:596px;
visibility:hidden;
word-wrap:break-word;
}
#u6924_div {
position:absolute;
left:0px;
top:0px;
width:29px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
font-family:'Arial Negreta', 'Arial';
font-weight:700;
font-style:normal;
}
#u6924 {
position:absolute;
left:72px;
top:1016px;
width:29px;
height:16px;
font-family:'Arial Negreta', 'Arial';
font-weight:700;
font-style:normal;
}
#u6925 {
position:absolute;
left:0px;
top:0px;
width:29px;
white-space:nowrap;
}
#u6926_div {
position:absolute;
left:0px;
top:0px;
width:71px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6926 {
position:absolute;
left:72px;
top:1070px;
width:71px;
height:16px;
}
#u6927 {
position:absolute;
left:0px;
top:0px;
width:71px;
white-space:nowrap;
}
#u6928_img {
position:absolute;
left:0px;
top:0px;
width:601px;
height:2px;
}
#u6928 {
position:absolute;
left:54px;
top:1186px;
width:600px;
height:1px;
}
#u6929 {
position:absolute;
left:2px;
top:-8px;
width:596px;
visibility:hidden;
word-wrap:break-word;
}
#u6930_div {
position:absolute;
left:0px;
top:0px;
width:120px;
height:36px;
background:inherit;
background-color:rgba(0, 157, 217, 1);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(201, 201, 201, 1);
border-radius:5px;
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
font-size:14px;
color:#FFFFFF;
}
#u6930 {
position:absolute;
left:509px;
top:1193px;
width:120px;
height:36px;
font-size:14px;
color:#FFFFFF;
}
#u6931 {
position:absolute;
left:2px;
top:10px;
width:116px;
word-wrap:break-word;
}
#u6932_div {
position:absolute;
left:0px;
top:0px;
width:80px;
height:36px;
background:inherit;
background-color:rgba(70, 140, 200, 0);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(201, 201, 201, 1);
border-radius:5px;
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
font-size:14px;
color:#666666;
}
#u6932 {
position:absolute;
left:405px;
top:1193px;
width:80px;
height:36px;
font-size:14px;
color:#666666;
}
#u6933 {
position:absolute;
left:2px;
top:10px;
width:76px;
word-wrap:break-word;
}
#u6934_div {
position:absolute;
left:0px;
top:0px;
width:9px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6934 {
position:absolute;
left:629px;
top:1006px;
width:9px;
height:16px;
}
#u6935 {
position:absolute;
left:0px;
top:0px;
width:9px;
white-space:nowrap;
}
#u6936_div {
position:absolute;
left:0px;
top:0px;
width:337px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
color:#FF00FF;
}
#u6936 {
position:absolute;
left:54px;
top:1271px;
width:337px;
height:16px;
color:#FF00FF;
}
#u6937 {
position:absolute;
left:0px;
top:0px;
width:337px;
white-space:nowrap;
}
#u6938_div {
position:absolute;
left:0px;
top:0px;
width:180px;
height:36px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(188, 188, 188, 1);
border-radius:3px;
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6938 {
position:absolute;
left:210px;
top:129px;
width:180px;
height:36px;
}
#u6939 {
position:absolute;
left:2px;
top:10px;
width:176px;
visibility:hidden;
word-wrap:break-word;
}
#u6940 {
position:absolute;
left:211px;
top:130px;
width:177px;
height:34px;
}
#u6940_input {
position:absolute;
left:0px;
top:0px;
width:177px;
height:34px;
font-family:'Arial Normal', 'Arial';
font-weight:400;
font-style:normal;
font-size:13px;
text-decoration:none;
color:#000000;
text-align:center;
border-color:transparent;
outline-style:none;
}
#u6941_img {
position:absolute;
left:0px;
top:0px;
width:12px;
height:8px;
}
#u6941 {
position:absolute;
left:369px;
top:143px;
width:12px;
height:8px;
-webkit-transform:rotate(180deg);
-moz-transform:rotate(180deg);
-ms-transform:rotate(180deg);
transform:rotate(180deg);
color:#000000;
}
#u6942 {
position:absolute;
left:2px;
top:-4px;
width:8px;
visibility:hidden;
word-wrap:break-word;
}
#u6943_div {
position:absolute;
left:0px;
top:0px;
width:57px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6943 {
position:absolute;
left:146px;
top:139px;
width:57px;
height:16px;
}
#u6944 {
position:absolute;
left:0px;
top:0px;
width:57px;
white-space:nowrap;
}
#u6945_div {
position:absolute;
left:0px;
top:0px;
width:180px;
height:36px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(188, 188, 188, 1);
border-radius:3px;
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6945 {
position:absolute;
left:483px;
top:129px;
width:180px;
height:36px;
}
#u6946 {
position:absolute;
left:2px;
top:10px;
width:176px;
visibility:hidden;
word-wrap:break-word;
}
#u6947 {
position:absolute;
left:484px;
top:130px;
width:177px;
height:34px;
}
#u6947_input {
position:absolute;
left:0px;
top:0px;
width:177px;
height:34px;
font-family:'Arial Normal', 'Arial';
font-weight:400;
font-style:normal;
font-size:13px;
text-decoration:none;
color:#000000;
text-align:center;
border-color:transparent;
outline-style:none;
}
#u6948_img {
position:absolute;
left:0px;
top:0px;
width:15px;
height:18px;
}
#u6948 {
position:absolute;
left:411px;
top:138px;
width:15px;
height:18px;
font-family:'FontAwesome Regular', 'FontAwesome';
font-weight:400;
font-style:normal;
font-size:18px;
text-align:left;
}
#u6949 {
position:absolute;
left:0px;
top:0px;
width:15px;
visibility:hidden;
word-wrap:break-word;
}
#u6950_div {
position:absolute;
left:0px;
top:0px;
width:197px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
color:#FF00FF;
}
#u6950 {
position:absolute;
left:54px;
top:894px;
width:197px;
height:16px;
color:#FF00FF;
}
#u6951 {
position:absolute;
left:0px;
top:0px;
width:197px;
white-space:nowrap;
}
#u6952_div {
position:absolute;
left:0px;
top:0px;
width:57px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6952 {
position:absolute;
left:408px;
top:202px;
width:57px;
height:16px;
}
#u6953 {
position:absolute;
left:0px;
top:0px;
width:57px;
white-space:nowrap;
}
#u6954_div {
position:absolute;
left:0px;
top:0px;
width:182px;
height:36px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(188, 188, 188, 1);
border-radius:3px;
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6954 {
position:absolute;
left:482px;
top:192px;
width:182px;
height:36px;
}
#u6955 {
position:absolute;
left:2px;
top:10px;
width:178px;
visibility:hidden;
word-wrap:break-word;
}
#u6956 {
position:absolute;
left:484px;
top:193px;
width:178px;
height:34px;
}
#u6956_input {
position:absolute;
left:0px;
top:0px;
width:178px;
height:34px;
font-family:'Arial Normal', 'Arial';
font-weight:400;
font-style:normal;
font-size:13px;
text-decoration:none;
color:#000000;
text-align:center;
border-color:transparent;
outline-style:none;
}
#u6957_div {
position:absolute;
left:0px;
top:0px;
width:15px;
height:16px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6957 {
position:absolute;
left:675px;
top:202px;
width:15px;
height:16px;
}
#u6958 {
position:absolute;
left:0px;
top:0px;
width:15px;
white-space:nowrap;
}
#u6959_div {
position:absolute;
left:0px;
top:0px;
width:182px;
height:36px;
background:inherit;
background-color:rgba(255, 255, 255, 0);
box-sizing:border-box;
border-width:1px;
border-style:solid;
border-color:rgba(188, 188, 188, 1);
border-radius:3px;
-moz-box-shadow:none;
-webkit-box-shadow:none;
box-shadow:none;
}
#u6959 {
position:absolute;
left:701px;
top:192px;
width:182px;
height:36px;
}
#u6960 {
position:absolute;
left:2px;
top:10px;
width:178px;
visibility:hidden;
word-wrap:break-word;
}
#u6961 {
position:absolute;
left:703px;
top:193px;
width:178px;
height:34px;
}
#u6961_input {
position:absolute;
left:0px;
top:0px;
width:178px;
height:34px;
font-family:'Arial Normal', 'Arial';
font-weight:400;
font-style:normal;
font-size:13px;
text-decoration:none;
color:#000000;
text-align:center;
border-color:transparent;
outline-style:none;
}
|
@import url('../../../assets/css/app.css');
@font-face {
font-family: 'Muli';
font-style: normal;
font-weight: 400;
src: local('Muli'), url(../fonts/Muli.woff) format('woff');
}
body {
background-color: #e7a279;
color: #434343;
font-family: 'Muli', sans-serif;
font-size: 14px;
max-width: 800px;
padding-bottom: 20px;
}
q,blockquote {
font-family: 'Muli', sans-serif;
}
a {
color: #cf7c4b;
text-decoration: underline;
}
a:hover {
color: #cf7c4b;
text-decoration: none;
}
a:visited {
color: #cf7c4b;
text-decoration: line-through;
}
h1, h2, h3 {
color: #9b6d51;
margin: 0;
}
h3 {
margin-top: 5px;
margin-bottom: 5px;
}
header {
margin: 0;
padding-top: 10px;
padding-bottom: 10px;
border-left: 1px solid #9b6d51;
border-right: 1px solid #9b6d51;
border-bottom: 1px solid #9b6d51;
background: #434343;
}
.logo {
color: #CCC;
}
a.logo {
margin-left: 8px;
}
a.logo:hover {
color: #000;
}
header li a {
color: #CCC;
text-decoration: none;
padding-top: 3px;
padding-left: 9px;
padding-right: 9px;
padding-bottom: 3px;
}
header li a:hover {
color: #cf7c4b;
text-decoration: underline;
}
header li {
padding-left: 0;
}
nav .active a {
border: 1px solid #9b6d51;
-moz-border-radius: 8px;
border-radius: 8px;
background-color: #e7a279;
margin-left: 6px;
margin-right: 6px;
font-weight: normal;
}
section.page {
background-color: #FFF;
border-left: 1px solid #CCC;
border-right: 1px solid #CCC;
border-bottom: 1px solid #CCC;
border-radius: 0px 0px 8px 8px;
padding-bottom: 5px;
padding-top: 15px;
}
.page-header {
margin-bottom: 15px;
}
.page-header ul {
margin-right: 5px;
}
.page-header li {
margin: 0;
padding: 0;
padding-right: 5px;
}
.page-header h2, .page-section h2 {
border-bottom: 1px dotted #CCC;
font-family: 'Muli', sans-serif;
font-size: 20px;
font-weight: normal;
margin: 0;
padding: 6px 10px;
}
.items article {
border: none;
border-bottom: 1px dotted #CCC;
background-color: inherit;
margin-bottom: 0;
padding-bottom: 10px;
}
.items #current-item {
border: #9b6d51;
}
.items article:last-child {
border-bottom: none;
padding-bottom: 0;
}
.items a:hover {
color: #cf7c4b;
}
#items-paging {
margin-top: 10px;
font-size: 100%;
}
.items .preview {
font-family: 'Muli', sans-serif;
}
form {
border: none;
padding-left: 10px;
}
.form-actions {
margin-top: 20px;
}
input[type='email'],
input[type='tel'],
input[type='password'],
input[type='text'],
textarea,
select {
-<API key>: 4px;
border-radius: 4px;
border: 1px solid #CCC;
margin-top: 3px;
padding: 5px;
font-family: 'Muli', sans-serif;
font-size: 15px;
}
input[type='email']:focus,
input[type='tel']:focus,
input[type='password']:focus,
input[type='text']:focus,
textarea:focus {
border: 1px solid #cf7c4b;
box-shadow: none;
}
/* alerts */
.alert {
padding: 8px 35px 8px 14px;
margin-left: 10px;
margin-right: 10px;
margin-bottom: 10px;
color: #cf7c4b;
background-color: #434343;
border: 1px solid #cf7c4b;
border-radius: 4px;
}
.alert-success {
color: #cf7c4b;
background-color: #434343;
border-color: #cf7c4b;
}
.alert-error {
color: #cf7c4b;
background-color: #434343;
border-color: #cf7c4b;
}
.alert-info {
color: #cf7c4b;
background-color: #434343;
border-color: #cf7c4b;
}
.alert-normal {
color: #cf7c4b;
background-color: #434343;
border-color: #cf7c4b;
}
/* buttons */
.btn {
-webkit-appearance: none;
appearance: none;
display: inline-block;
color: #cf7c4b;
border: 1px solid #cf7c4b;
background: #434343;
padding: 5px;
padding-left: 15px;
padding-right: 15px;
font-size: 90%;
cursor: pointer;
border-radius: 2px;
}
a.btn {
text-decoration: none;
font-weight: bold;
}
.btn-red {
border-color: #cf7c4b;
background: #434343;
color: #cf7c4b;
}
a.btn-red:hover,
.btn-red:hover,
.btn-red:focus {
color: #cf7c4b;
background: #e7a279;
}
.btn-blue {
border-color: #cf7c4b;
background: #434343;
color: #cf7c4b;
}
.btn-blue:hover,
.btn-blue:focus {
border-color: #cf7c4b;
background: #e7a279;
}
.item {
padding-bottom: 0;
font-family: 'Muli', sans-serif;
}
.item nav span, .item nav a, .item nav a:visited {
color: #cf7c4b;
}
.item nav.top {
margin-bottom: 20px;
}
#login {
border-radius: 8px;
}
@media only screen and (max-width: 480px) {
body {
border-left: 1px solid #CCC;
border-right: 1px solid #CCC;
padding-bottom: 0;
}
#login-page {
border: none;
}
header {
padding: 0;
border: none;
}
header li {
background-color: #FFF;
}
section.page {
border: none;
border-radius: 0;
}
.item {
padding-bottom: 0;
font-family: 'Muli', sans-serif;
}
}
|
/**
* <API key>.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.dfp.axis.v201306;
/**
* The action used to activate {@link <API key>} objects.
*/
public class <API key> extends com.google.api.ads.dfp.axis.v201306.<API key> implements java.io.Serializable {
public <API key>() {
}
public <API key>(
java.lang.String <API key>) {
super(
<API key>);
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof <API key>)) return false;
<API key> other = (<API key>) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj);
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(<API key>.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("https:
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
|
<?php
namespace Elastica\Filter;
use Elastica\Exception\InvalidException;
abstract class AbstractGeoDistance extends AbstractFilter
{
const <API key> = 'geohash';
const <API key> = 'latlon';
/**
* Location type
*
* Decides if this filter uses latitude/longitude or geohash for the location.
* Values are "latlon" or "geohash".
*
* @var string
*/
protected $_locationType = null;
/**
* Key
*
* @var string
*/
protected $_key = null;
/**
* Latitude
*
* @var float
*/
protected $_latitude = null;
/**
* Longitude
*
* @var float
*/
protected $_longitude = null;
/**
* Geohash
*
* @var string
*/
protected $_geohash = null;
/**
* Create GeoDistance object
*
* @param string $key Key
* @param array|string $location Location as array or geohash: array('lat' => 48.86, 'lon' => 2.35) OR 'drm3btev3e86'
* @internal param string $distance Distance
*/
public function __construct($key, $location)
{
// Key
$this->setKey($key);
$this->setLocation($location);
}
/**
* @param string $key
* @return \Elastica\Filter\AbstractGeoDistance current filter
*/
public function setKey($key)
{
$this->_key = $key;
return $this;
}
/**
* @param array|string $location
* @return \Elastica\Filter\AbstractGeoDistance
* @throws \Elastica\Exception\InvalidException
*/
public function setLocation($location)
{
// Location
if (is_array($location)) { // Latitude/Longitude
// Latitude
if (isset($location['lat'])) {
$this->setLatitude($location['lat']);
} else {
throw new InvalidException('$location[\'lat\'] has to be set');
}
// Longitude
if (isset($location['lon'])) {
$this->setLongitude($location['lon']);
} else {
throw new InvalidException('$location[\'lon\'] has to be set');
}
} elseif (is_string($location)) { // Geohash
$this->setGeohash($location);
} else { // Invalid location
throw new InvalidException('$location has to be an array (latitude/longitude) or a string (geohash)');
}
return $this;
}
/**
* @param float $latitude
* @return \Elastica\Filter\AbstractGeoDistance current filter
*/
public function setLatitude($latitude)
{
$this->_latitude = (float) $latitude;
$this->_locationType = self::<API key>;
return $this;
}
/**
* @param float $longitude
* @return \Elastica\Filter\AbstractGeoDistance current filter
*/
public function setLongitude($longitude)
{
$this->_longitude = (float) $longitude;
$this->_locationType = self::<API key>;
return $this;
}
/**
* @param string $geohash
* @return \Elastica\Filter\AbstractGeoDistance current filter
*/
public function setGeohash($geohash)
{
$this->_geohash = $geohash;
$this->_locationType = self::<API key>;
return $this;
}
/**
* @return array|string
* @throws \Elastica\Exception\InvalidException
*/
protected function _getLocationData()
{
if ($this->_locationType === self::<API key>) { // Latitude/longitude
$location = array();
if (isset($this->_latitude)) { // Latitude
$location['lat'] = $this->_latitude;
} else {
throw new InvalidException('Latitude has to be set');
}
if (isset($this->_longitude)) { // Geohash
$location['lon'] = $this->_longitude;
} else {
throw new InvalidException('Longitude has to be set');
}
} elseif ($this->_locationType === self::<API key>) { // Geohash
$location = $this->_geohash;
} else { // Invalid location type
throw new InvalidException('Invalid location type');
}
return $location;
}
/**
* @see \Elastica\Param::toArray()
* @throws \Elastica\Exception\InvalidException
*/
public function toArray()
{
$this->setParam($this->_key, $this->_getLocationData());
return parent::toArray();
}
}
|
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Mon May 07 13:00:01 PDT 2012 -->
<TITLE>
Uses of Class org.apache.hadoop.mapred.TaskTracker (Hadoop 0.20.2-cdh3u4 API)
</TITLE>
<META NAME="date" CONTENT="2012-05-07">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class org.apache.hadoop.mapred.TaskTracker (Hadoop 0.20.2-cdh3u4 API)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<A NAME="navbar_top"></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../org/apache/hadoop/mapred/TaskTracker.html" title="class in org.apache.hadoop.mapred"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?org/apache/hadoop/mapred//<API key>.html" target="_top"><B>FRAMES</B></A>
<A HREF="TaskTracker.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!
if(window==top) {
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<HR>
<CENTER>
<H2>
<B>Uses of Class<br>org.apache.hadoop.mapred.TaskTracker</B></H2>
</CENTER>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
Packages that use <A HREF="../../../../../org/apache/hadoop/mapred/TaskTracker.html" title="class in org.apache.hadoop.mapred">TaskTracker</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><A HREF="#org.apache.hadoop.mapred"><B>org.apache.hadoop.mapred</B></A></TD>
<TD>A software framework for easily writing applications which process vast
amounts of data (multi-terabyte data-sets) parallelly on large clusters
(thousands of nodes) built of commodity hardware in a reliable, fault-tolerant
manner. </TD>
</TR>
</TABLE>
<P>
<A NAME="org.apache.hadoop.mapred"></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
Uses of <A HREF="../../../../../org/apache/hadoop/mapred/TaskTracker.html" title="class in org.apache.hadoop.mapred">TaskTracker</A> in <A HREF="../../../../../org/apache/hadoop/mapred/package-summary.html">org.apache.hadoop.mapred</A></FONT></TH>
</TR>
</TABLE>
<P>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="<API key>">
<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../org/apache/hadoop/mapred/package-summary.html">org.apache.hadoop.mapred</A> with parameters of type <A HREF="../../../../../org/apache/hadoop/mapred/TaskTracker.html" title="class in org.apache.hadoop.mapred">TaskTracker</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract org.apache.hadoop.mapred.TaskRunner</CODE></FONT></TD>
<TD><CODE><B>Task.</B><B><A HREF="../../../../../org/apache/hadoop/mapred/Task.html#createRunner(org.apache.hadoop.mapred.TaskTracker, org.apache.hadoop.mapred.TaskTracker.TaskInProgress, org.apache.hadoop.mapred.TaskTracker.RunningJob)">createRunner</A></B>(<A HREF="../../../../../org/apache/hadoop/mapred/TaskTracker.html" title="class in org.apache.hadoop.mapred">TaskTracker</A> tracker,
org.apache.hadoop.mapred.TaskTracker.TaskInProgress tip,
org.apache.hadoop.mapred.TaskTracker.RunningJob rjob)</CODE>
<BR>
Return an approprate thread runner for this task.</TD>
</TR>
</TABLE>
<P>
<HR>
<A NAME="navbar_bottom"></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="<API key>"></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../org/apache/hadoop/mapred/TaskTracker.html" title="class in org.apache.hadoop.mapred"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?org/apache/hadoop/mapred//<API key>.html" target="_top"><B>FRAMES</B></A>
<A HREF="TaskTracker.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!
if(window==top) {
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<HR>
Copyright © 2009 The Apache Software Foundation
</BODY>
</HTML>
|
<?php
declare(strict_types=1);
return [
];
|
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_151) on Tue Dec 12 12:37:08 MST 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><API key> (BOM: * : All 2012.12.0 API)</title>
<meta name="date" content="2017-12-12">
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="<API key> (BOM: * : All 2012.12.0 API)";
}
}
catch(err) {
}
var methods = {"i0":6};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="topNav"><a name="navbar.top">
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/<API key>.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">WildFly Swarm API, 2012.12.0</div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/<API key>.html" title="interface in org.wildfly.swarm.config.messaging.activemq.server"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/HTTPConnector.html" title="class in org.wildfly.swarm.config.messaging.activemq.server"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/wildfly/swarm/config/messaging/activemq/server/<API key>.html" target="_top">Frames</a></li>
<li><a href="<API key>.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="<API key>">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!
allClassesLink = document.getElementById("<API key>");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
</a></div>
<div class="header">
<div class="subTitle">org.wildfly.swarm.config.messaging.activemq.server</div>
<h2 title="Interface <API key>" class="title">Interface <API key><T extends <a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/HTTPAcceptor.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">HTTPAcceptor</a>></h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>Functional Interface:</dt>
<dd>This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.</dd>
</dl>
<hr>
<br>
<pre><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/FunctionalInterface.html?is-external=true" title="class or interface in java.lang">@FunctionalInterface</a>
public interface <span class="typeNameLabel"><API key><T extends <a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/HTTPAcceptor.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">HTTPAcceptor</a>></span></pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="method.summary">
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/HTTPAcceptor.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">HTTPAcceptor</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/<API key>.html#get--">get</a></span>()</code>
<div class="block">Constructed instance of HTTPAcceptor resource</div>
</td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="method.detail">
</a>
<h3>Method Detail</h3>
<a name="get
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>get</h4>
<pre><a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/HTTPAcceptor.html" title="class in org.wildfly.swarm.config.messaging.activemq.server">HTTPAcceptor</a> get()</pre>
<div class="block">Constructed instance of HTTPAcceptor resource</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The instance</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="bottomNav"><a name="navbar.bottom">
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/<API key>.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage">WildFly Swarm API, 2012.12.0</div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/<API key>.html" title="interface in org.wildfly.swarm.config.messaging.activemq.server"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../../../../../org/wildfly/swarm/config/messaging/activemq/server/HTTPConnector.html" title="class in org.wildfly.swarm.config.messaging.activemq.server"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/wildfly/swarm/config/messaging/activemq/server/<API key>.html" target="_top">Frames</a></li>
<li><a href="<API key>.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="<API key>">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!
allClassesLink = document.getElementById("<API key>");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li>Constr | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
</a></div>
<p class="legalCopy"><small>Copyright &
</body>
</html>
|
package com.google.api.ads.adwords.jaxws.v201406.cm;
import java.util.List;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;
@WebService(name = "<API key>", targetNamespace = "https://adwords.google.com/api/adwords/cm/v201406")
@XmlSeeAlso({
ObjectFactory.class
})
public interface <API key> {
/**
*
* Returns a list of CampaignFeeds that meet the selector criteria.
*
* @param selector Determines which CampaignFeeds to return. If empty all
* Campaign feeds are returned.
* @return The list of CampaignFeeds.
* @throws ApiException Indicates a problem with the request.
*
*
* @param selector
* @return
* returns com.google.api.ads.adwords.jaxws.v201406.cm.CampaignFeedPage
* @throws <API key>
*/
@WebMethod
@WebResult(name = "rval", targetNamespace = "https://adwords.google.com/api/adwords/cm/v201406")
@RequestWrapper(localName = "get", targetNamespace = "https://adwords.google.com/api/adwords/cm/v201406", className = "com.google.api.ads.adwords.jaxws.v201406.cm.<API key>")
@ResponseWrapper(localName = "getResponse", targetNamespace = "https://adwords.google.com/api/adwords/cm/v201406", className = "com.google.api.ads.adwords.jaxws.v201406.cm.<API key>")
public CampaignFeedPage get(
@WebParam(name = "selector", targetNamespace = "https://adwords.google.com/api/adwords/cm/v201406")
Selector selector)
throws <API key>
;
/**
*
* Adds, sets or removes CampaignFeeds.
*
* @param operations The operations to apply.
* @return The resulting Feeds.
* @throws ApiException Indicates a problem with the request.
*
*
* @param operations
* @return
* returns com.google.api.ads.adwords.jaxws.v201406.cm.<API key>
* @throws <API key>
*/
@WebMethod
@WebResult(name = "rval", targetNamespace = "https://adwords.google.com/api/adwords/cm/v201406")
@RequestWrapper(localName = "mutate", targetNamespace = "https://adwords.google.com/api/adwords/cm/v201406", className = "com.google.api.ads.adwords.jaxws.v201406.cm.<API key>")
@ResponseWrapper(localName = "mutateResponse", targetNamespace = "https://adwords.google.com/api/adwords/cm/v201406", className = "com.google.api.ads.adwords.jaxws.v201406.cm.<API key>")
public <API key> mutate(
@WebParam(name = "operations", targetNamespace = "https://adwords.google.com/api/adwords/cm/v201406")
List<<API key>> operations)
throws <API key>
;
/**
*
* Returns a list of {@link CampaignFeed}s inside a {@link CampaignFeedPage} that matches
* the query.
*
* @param query The SQL-like AWQL query string.
* @throws ApiException when there are one or more errors with the request.
*
*
* @param query
* @return
* returns com.google.api.ads.adwords.jaxws.v201406.cm.CampaignFeedPage
* @throws <API key>
*/
@WebMethod
@WebResult(name = "rval", targetNamespace = "https://adwords.google.com/api/adwords/cm/v201406")
@RequestWrapper(localName = "query", targetNamespace = "https://adwords.google.com/api/adwords/cm/v201406", className = "com.google.api.ads.adwords.jaxws.v201406.cm.<API key>")
@ResponseWrapper(localName = "queryResponse", targetNamespace = "https://adwords.google.com/api/adwords/cm/v201406", className = "com.google.api.ads.adwords.jaxws.v201406.cm.<API key>")
public CampaignFeedPage query(
@WebParam(name = "query", targetNamespace = "https://adwords.google.com/api/adwords/cm/v201406")
String query)
throws <API key>
;
}
|
package com.svcet.cashportal.service;
import com.svcet.cashportal.web.beans.UserRequest;
import com.svcet.cashportal.web.beans.<API key>;
import com.svcet.cashportal.web.beans.<API key>;
public interface UserRoleService {
<API key> editUserRoles(UserRequest userRequest);
void updateUserRoles(<API key> <API key>);
}
|
# <API key>
## SYNOPSIS
Adds an AWS::RoboMaker::Robot resource to the template.
The AWS::RoboMaker::RobotApplication resource creates an AWS RoboMaker robot.
## SYNTAX
<API key> [-LogicalId] <String> [-Fleet <Object>] -Architecture <Object> -GreengrassGroupId <Object>
[-Tags <Object>] [-Name <Object>] [-DeletionPolicy <String>] [-UpdateReplacePolicy <String>]
[-DependsOn <String[]>] [-Metadata <Object>] [-UpdatePolicy <Object>] [-Condition <Object>]
[<CommonParameters>]
## DESCRIPTION
Adds an AWS::RoboMaker::Robot resource to the template.
The AWS::RoboMaker::RobotApplication resource creates an AWS RoboMaker robot.
## PARAMETERS
-LogicalId
The logical ID must be alphanumeric (A-Za-z0-9) and unique within the template.
Use the logical name to reference the resource in other parts of the template.
For example, if you want to map an Amazon Elastic Block Store volume to an Amazon EC2 instance, you reference the logical IDs to associate the block stores with the instance.
yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Fleet
The Amazon Resource Name ARN of the fleet to which the robot will be registered.
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/<API key>.html#<API key>
PrimitiveType: String
UpdateType: Immutable
yaml
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Architecture
The architecture of the robot.
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/<API key>.html#<API key>
PrimitiveType: String
UpdateType: Immutable
yaml
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-GreengrassGroupId
The Greengrass group associated with the robot.
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/<API key>.html#<API key>
PrimitiveType: String
UpdateType: Immutable
yaml
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Tags
A map that contains tag keys and tag values that are attached to the robot.
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/<API key>.html#<API key>
PrimitiveType: Json
UpdateType: Mutable
yaml
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Name
The name of the robot.
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/<API key>.html#<API key>
PrimitiveType: String
UpdateType: Immutable
yaml
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DeletionPolicy
With the DeletionPolicy attribute you can preserve or (in some cases) backup a resource when its stack is deleted.
You specify a DeletionPolicy attribute for each resource that you want to control.
If a resource has no DeletionPolicy attribute, AWS CloudFormation deletes the resource by default.
To keep a resource when its stack is deleted, specify Retain for that resource.
You can use retain for any resource.
For example, you can retain a nested stack, S3 bucket, or EC2 instance so that you can continue to use or modify those resources after you delete their stacks.
You must use one of the following options: "Delete","Retain","Snapshot"
yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-UpdateReplacePolicy
Use the UpdateReplacePolicy attribute to retain or (in some cases) backup the existing physical instance of a resource when it is replaced during a stack update operation.
When you initiate a stack update, AWS CloudFormation updates resources based on differences between what you submit and the stack's current template and parameters.
If you update a resource property that requires that the resource be replaced, AWS CloudFormation recreates the resource during the update.
Recreating the resource generates a new physical ID.
AWS CloudFormation creates the replacement resource first, and then changes references from other dependent resources to point to the replacement resource.
By default, AWS CloudFormation then deletes the old resource.
Using the UpdateReplacePolicy, you can specify that AWS CloudFormation retain or (in some cases) create a snapshot of the old resource.
For resources that support snapshots, such as AWS::EC2::Volume, specify Snapshot to have AWS CloudFormation create a snapshot before deleting the old resource instance.
You can apply the UpdateReplacePolicy attribute to any resource.
UpdateReplacePolicy is only executed if you update a resource property whose update behavior is specified as Replacement, thereby causing AWS CloudFormation to replace the old resource with a new one with a new physical ID.
For example, if you update the Engine property of an AWS::RDS::DBInstance resource type, AWS CloudFormation creates a new resource and replaces the current DB instance resource with the new one.
The UpdateReplacePolicy attribute would then dictate whether AWS CloudFormation deleted, retained, or created a snapshot of the old DB instance.
The update behavior for each property of a resource is specified in the reference topic for that resource in the AWS Resource and Property Types Reference.
For more information on resource update behavior, see Update Behaviors of Stack Resources.
The UpdateReplacePolicy attribute applies to stack updates you perform directly, as well as stack updates performed using change sets.
Note
Resources that are retained continue to exist and continue to incur applicable charges until you delete those resources.
Snapshots that are created with this policy continue to exist and continue to incur applicable charges until you delete those snapshots.
UpdateReplacePolicy retains the old physical resource or snapshot, but removes it from AWS CloudFormation's scope.
UpdateReplacePolicy differs from the DeletionPolicy attribute in that it only applies to resources replaced during stack updates.
Use DeletionPolicy for resources deleted when a stack is deleted, or when the resource definition itself is deleted from the template as part of a stack update.
You must use one of the following options: "Delete","Retain","Snapshot"
yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DependsOn
With the DependsOn attribute you can specify that the creation of a specific resource follows another.
When you add a DependsOn attribute to a resource, that resource is created only after the creation of the resource specified in the DependsOn attribute.
This parameter takes a string or list of strings representing Logical IDs of resources that must be created prior to this resource being created.
yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Metadata
The Metadata attribute enables you to associate structured data with a resource.
By adding a Metadata attribute to a resource, you can add data in JSON or YAML to the resource declaration.
In addition, you can use intrinsic functions (such as GetAtt and Ref), parameters, and pseudo parameters within the Metadata attribute to add those interpreted values.
You must use a PSCustomObject containing key/value pairs here.
This will be returned when describing the resource using AWS CLI.
yaml
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-UpdatePolicy
Use the UpdatePolicy attribute to specify how AWS CloudFormation handles updates to the AWS::AutoScaling::AutoScalingGroup resource.
AWS CloudFormation invokes one of three update policies depending on the type of change you make or whether a scheduled action is associated with the Auto Scaling group.
You must use the "Add-UpdatePolicy" function here.
yaml
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Condition
Logical ID of the condition that this resource needs to be true in order for this resource to be provisioned.
yaml
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [<API key>](http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
## OUTPUTS
Vaporshell.Resource.RoboMaker.Robot
## NOTES
## RELATED LINKS
[http:
|
package com.igoldin.qa.school.appmanager;
import com.igoldin.qa.school.model.ContactData;
import com.igoldin.qa.school.model.Contacts;
import com.igoldin.qa.school.model.GroupData;
import com.igoldin.qa.school.model.Groups;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.boot.MetadataSources;
import org.hibernate.boot.registry.<API key>;
import org.hibernate.boot.registry.<API key>;
import java.util.List;
public class DbHelper {
private final SessionFactory sessionFactory;
public DbHelper() {
// A SessionFactory is set up once for an application!
final <API key> registry = new <API key>()
.configure() // configures settings from hibernate.cfg.xml
.build();
sessionFactory = new MetadataSources( registry ).buildMetadata().buildSessionFactory();
}
public Groups groups() {
Session session = sessionFactory.openSession();
session.beginTransaction();
List<GroupData> result = session.createQuery("from GroupData" ).list();
session.getTransaction().commit();
session.close();
return new Groups(result);
}
public Contacts contacts() {
Session session = sessionFactory.openSession();
session.beginTransaction();
List<ContactData> result = session.createQuery("from ContactData where deprecated = '0000-00-00 00:00:00'" ).list();
session.getTransaction().commit();
session.close();
return new Contacts(result);
}
}
|
<?php
namespace ZPHP\Rank;
use ZPHP\Core\Factory as CFactory;
use ZPHP\Core\Config as ZConfig;
class Factory
{
public static function getInstance($adapter = 'Redis', $config = null)
{
if (empty($config)) {
$config = ZConfig::get('rank');
if (!empty($config['adapter'])) {
$adapter = $config['adapter'];
}
}
$className = __NAMESPACE__ . "\\Adapter\\{$adapter}";
return CFactory::getInstance($className, $config);
}
}
|
package org.netbeans.modules.manifestsupport.dataobject;
import org.openide.loaders.DataNode;
import org.openide.nodes.Children;
public class ManifestDataNode extends DataNode {
private static final String IMAGE_ICON_BASE = "SET/PATH/TO/ICON/HERE";
public ManifestDataNode(ManifestDataObject obj) {
super(obj, Children.LEAF);
// <API key>(IMAGE_ICON_BASE);
}
// /** Creates a property sheet. */
// protected Sheet createSheet() {
// Sheet s = super.createSheet();
// Sheet.Set ss = s.get(Sheet.PROPERTIES);
// if (ss == null) {
// ss = Sheet.createPropertiesSet();
// s.put(ss);
// // TODO add some relevant properties: ss.put(...)
// return s;
}
|
<?php
session_start();
if(isset($_SESSION['id']))
{
$zoubouboubou=$_SESSION['mail'];
$id_etudiant=$_SESSION['id'];
require_once("includes/connexion.php");
$sql="SELECT id, mail FROM compte_etudiant WHERE id='$id_etudiant'";
$req=mysql_query($sql);
$ligne=mysql_fetch_assoc($req);
if($id_etudiant==$ligne['id'])
{
if (isset($_GET['section']))
{
$sql="DELETE FROM compte_etudiant WHERE mail='$zoubouboubou'";
mysql_query($sql);
mysql_close($db);
header('location:index.php');
exit;
}
elseif (isset($_GET['numeri']))
{
$sql="DELETE FROM commande_new WHERE id_etudiant='$id_etudiant'";
mysql_query($sql);
mysql_close($db);
header('location:accueilUtilisateur.php');
exit;
}
else
{
header('location:connexion.php');
exit;
}
}
}
else
{
header('location:index.php');
exit;
}
|
using Aggregator.Core.Monitoring;
namespace Aggregator.Core.Configuration
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Xml;
using System.Xml.Linq;
using System.Xml.Schema;
#pragma warning disable S101 // Types should be named in camel case
<summary>
This class represents Core settings as properties
</summary>
<remarks>Marked partial to apply nested trick</remarks>
public partial class <API key>
#pragma warning restore S101 // Types should be named in camel case
{
private static readonly char[] ListSeparators = new char[] { ',', ';' };
<summary>
Load configuration from file. Main scenario.
</summary>
<param name="settingsPath">Path to policies file</param>
<param name="logger">Logging object</param>
<returns>An instance of <see cref="<API key>"/> or null</returns>
public static <API key> LoadFromFile(string settingsPath, ILogEvents logger)
{
DateTime lastWriteTime
= System.IO.File.GetLastWriteTimeUtc(settingsPath);
var parser = new <API key>(logger);
return parser.Parse(lastWriteTime, (xmlLoadOptions) => XDocument.Load(settingsPath, xmlLoadOptions));
}
<summary>
Load configuration from string. Used by automated tests.
</summary>
<param name="content">Configuration data to parse</param>
<param name="logger">Logging object</param>
<returns>An instance of <see cref="<API key>"/> or null</returns>
public static <API key> LoadXml(string content, ILogEvents logger)
{
// conventional point in time reference
DateTime staticTimestamp = new DateTime(0, DateTimeKind.Utc);
var parser = new <API key>(logger);
return parser.Parse(staticTimestamp, (xmlLoadOptions) => XDocument.Parse(content, xmlLoadOptions));
}
public LogLevel LogLevel { get; private set; }
public string ScriptLanguage { get; private set; }
public bool AutoImpersonate { get; private set; }
public Uri ServerBaseUrl { get; private set; }
public string PersonalToken { get; private set; }
public string BasicPassword { get; private set; }
public string BasicUsername { get; private set; }
public string Hash { get; private set; }
public IEnumerable<Snippet> Snippets { get; private set; }
public IEnumerable<Function> Functions { get; private set; }
public IEnumerable<Rule> Rules { get; private set; }
public IEnumerable<Policy> Policies { get; private set; }
public bool Debug { get; set; }
public RateLimit RateLimit { get; set; }
public bool WhatIf { get; set; }
public bool IgnoreSslErrors { get; set; }
}
}
|
# <API key>
## SYNOPSIS
Adds an AWS::EMR::Cluster.KerberosAttributes resource property to the template.
KerberosAttributes is a property of the AWS::EMR::Cluster resource.
KerberosAttributes define the cluster-specific Kerberos configuration when Kerberos authentication is enabled using a security configuration.
The cluster-specific configuration must be compatible with the security configuration.
For more information see Use Kerberos Authentication: https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-kerberos.html in the *EMR Management Guide*.
## SYNTAX
<API key> [[-<API key>] <Object>] [[-ADDomainJoinUser] <Object>]
[[-<API key>] <Object>] [-KdcAdminPassword] <Object> [-Realm] <Object>
[<CommonParameters>]
## DESCRIPTION
Adds an AWS::EMR::Cluster.KerberosAttributes resource property to the template.
KerberosAttributes is a property of the AWS::EMR::Cluster resource.
KerberosAttributes define the cluster-specific Kerberos configuration when Kerberos authentication is enabled using a security configuration.
The cluster-specific configuration must be compatible with the security configuration.
For more information see Use Kerberos Authentication: https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-kerberos.html in the *EMR Management Guide*.
## PARAMETERS
-<API key>
The Active Directory password for ADDomainJoinUser.
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/<API key>.html#<API key>
PrimitiveType: String
UpdateType: Mutable
yaml
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ADDomainJoinUser
Required only when establishing a cross-realm trust with an Active Directory domain.
A user with sufficient privileges to join resources to the domain.
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/<API key>.html#<API key>
PrimitiveType: String
UpdateType: Mutable
yaml
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-<API key>
Required only when establishing a cross-realm trust with a KDC in a different realm.
The cross-realm principal password, which must be identical across realms.
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/<API key>.html#<API key>
PrimitiveType: String
UpdateType: Mutable
yaml
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-KdcAdminPassword
The password used within the cluster for the kadmin service on the cluster-dedicated KDC, which maintains Kerberos principals, password policies, and keytabs for the cluster.
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/<API key>.html#<API key>
PrimitiveType: String
UpdateType: Mutable
yaml
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Realm
The name of the Kerberos realm to which all nodes in a cluster belong.
For example, EC2.INTERNAL.
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/<API key>.html#<API key>
PrimitiveType: String
UpdateType: Mutable
yaml
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [<API key>](http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
## OUTPUTS
Vaporshell.Resource.EMR.Cluster.KerberosAttributes
## NOTES
## RELATED LINKS
[http:
|
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0-google-v3) on Fri May 13 11:40:11 CDT 2011 -->
<TITLE>
com.google.appengine.api.blobstore.dev
</TITLE>
<META NAME="date" CONTENT="2011-05-13">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../dev_javadoc.css" TITLE="Style">
</HEAD>
<BODY BGCOLOR="white">
<FONT size="+1" CLASS="FrameTitleFont">
<A HREF="../../../../../../com/google/appengine/api/blobstore/dev/package-summary.html" target="classFrame">com.google.appengine.api.blobstore.dev</A></FONT>
<TABLE BORDER="0" WIDTH="100%" SUMMARY="">
<TR>
<TD NOWRAP><FONT size="+1" CLASS="FrameHeadingFont">
Interfaces</FONT>
<FONT CLASS="FrameItemFont">
<BR>
<A HREF="BlobStorage.html" title="interface in com.google.appengine.api.blobstore.dev" target="classFrame"><I>BlobStorage</I></A></FONT></TD>
</TR>
</TABLE>
<TABLE BORDER="0" WIDTH="100%" SUMMARY="">
<TR>
<TD NOWRAP><FONT size="+1" CLASS="FrameHeadingFont">
Classes</FONT>
<FONT CLASS="FrameItemFont">
<BR>
<A HREF="BlobInfoStorage.html" title="class in com.google.appengine.api.blobstore.dev" target="classFrame">BlobInfoStorage</A>
<BR>
<A HREF="BlobStorageFactory.html" title="class in com.google.appengine.api.blobstore.dev" target="classFrame">BlobStorageFactory</A>
<BR>
<A HREF="<API key>.html" title="class in com.google.appengine.api.blobstore.dev" target="classFrame"><API key></A>
<BR>
<A HREF="<API key>.html" title="class in com.google.appengine.api.blobstore.dev" target="classFrame"><API key></A>
<BR>
<A HREF="ServeBlobFilter.html" title="class in com.google.appengine.api.blobstore.dev" target="classFrame">ServeBlobFilter</A>
<BR>
<A HREF="ServeBlobFilter.ResponseWrapper.html" title="class in com.google.appengine.api.blobstore.dev" target="classFrame">ServeBlobFilter.ResponseWrapper</A>
<BR>
<A HREF="UploadBlobServlet.html" title="class in com.google.appengine.api.blobstore.dev" target="classFrame">UploadBlobServlet</A></FONT></TD>
</TR>
</TABLE>
</BODY>
</HTML>
|
<!DOCTYPE html>
<html>
<head>
<title>PoseNet - Camera Feed Demo</title>
<style>.footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
color: black;
}
.footer-text {
max-width: 600px;
text-align: center;
margin: auto;
}
@media only screen and (max-width: 600px) {
.footer-text,
.dg {
display: none;
}
}
.sk-spinner-pulse {
width: 20px;
height: 20px;
margin: auto 10px;
float: left;
background-color: #333;
border-radius: 100%;
-webkit-animation: sk-pulseScaleOut 1s infinite ease-in-out;
animation: sk-pulseScaleOut 1s infinite ease-in-out;
}
@-webkit-keyframes sk-pulseScaleOut {
0% {
-webkit-transform: scale(0);
transform: scale(0);
}
100% {
-webkit-transform: scale(1.0);
transform: scale(1.0);
opacity: 0;
}
}
@keyframes sk-pulseScaleOut {
0% {
-webkit-transform: scale(0);
transform: scale(0);
}
100% {
-webkit-transform: scale(1.0);
transform: scale(1.0);
opacity: 0;
}
}
.spinner-text {
float: left;
}</style>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="info" style="display:none">
</div>
<div id="loading" style="display:flex">
<div class="spinner-text">
Loading PoseNet model...
</div>
<div class="sk-spinner sk-spinner-pulse"></div>
</div>
<br><br><br>
<div id="contentContainer">
<div id="leftContainer">
<div id="objectListContainer">
<span class="paragraphTitle">Object List</span>
<button id="newImage">Add New Image</button>
</div>
<div id="<API key>">
<span class="paragraphTitle">Property Editor</span>
<div id="properties">
<div id="inputHandler">
<button id="inputButton">
<label for="inputImg">
Choose File
</label>
|
using System.Reflection;
namespace System.Web.OData.Builder
{
<summary>
Represents the configuration for a complex property of a structural type (an entity type or a complex type).
</summary>
public class <API key> : <API key>
{
<summary>
Instantiates a new instance of the <see cref="<API key>"/> class.
</summary>
<param name="property">The property of the configuration.</param>
<param name="declaringType">The declaring type of the property.</param>
public <API key>(PropertyInfo property, <API key> declaringType)
: base(property, declaringType)
{
}
<inheritdoc />
public override PropertyKind Kind
{
get { return PropertyKind.Complex; }
}
<inheritdoc />
public override Type RelatedClrType
{
get { return PropertyInfo.PropertyType; }
}
<summary>
Marks the current complex property as optional.
</summary>
<returns>Returns itself so that multiple calls can be chained.</returns>
public <API key> IsOptional()
{
OptionalProperty = true;
return this;
}
<summary>
Marks the current complex property as required.
</summary>
<returns>Returns itself so that multiple calls can be chained.</returns>
public <API key> IsRequired()
{
OptionalProperty = false;
return this;
}
}
}
|
#!/bin/sh
$SPARK_HOME/bin/spark-submit \
--master "local[*]" \
--deploy-mode client \
--class com.godatadriven.<TwitterConsumerkey>.HdfsToKafka \
target/scala-2.10/<TwitterConsumerkey>.0.jar
|
package com.gbaldera.yts.fragments;
import android.content.Loader;
import com.gbaldera.yts.loaders.PopularMoviesLoader;
import com.jakewharton.trakt.entities.Movie;
import java.util.List;
public class <API key> extends BaseMovieFragment {
@Override
protected int getLoaderId() {
return BaseMovieFragment.<API key>;
}
@Override
protected Loader<List<Movie>> getLoader() {
return new PopularMoviesLoader(getActivity());
}
}
|
using System.Collections.Generic;
using System.Windows.Forms;
using System.Xml;
using System.Xml.XPath;
namespace PlaylistEditor
{
class HTMLHandler
{
public static string XPathHTML(HtmlElement elem)
{
string elemXPath = "";
string children = "";
List<string> ParentTagsList = new List<string>();
List<string> TagsList = new List<string>();
while (elem.Parent != null)
{
//from actual node go to parent
HtmlElement prnt = elem.Parent;
ParentTagsList.Add(prnt.TagName);
children += "|" + prnt.TagName;
//loop through all the children
foreach (HtmlElement chld in prnt.Children)
{
//=> this code is retrieving all the paths to the root.
//=>I will create an array with it instead of looping trough all the childern of the parent
TagsList.Add(chld.TagName);
}
elem = elem.Parent;
TagsList.Add(elem.TagName);
}
string prevtag = ""; //holds the previous tag to create the duplicate tag index
int tagcount = 1; //holds the duplicate tag index
foreach (string tag in TagsList)
{
if (tag == prevtag)
{
//if (tagcount == 1)
// tagcount++;
// int prvtaglength = ("/" + tag + "/").Length;
// if (prvtaglength > elemXPath.Length - prvtaglength)
// elemXPath = "/" + tag + "[" + tagcount + "]";
// else
// elemXPath = elemXPath.Substring(prvtaglength, elemXPath.Length - prvtaglength);
// elemXPath = "/" + tag + "[" + tagcount + "]/" + elemXPath;
//else
int prvtaglength = ("/" + tag + "[" + tagcount + "]/").Length;
if (prvtaglength > elemXPath.Length - prvtaglength)
{
elemXPath = "/" + tag + "[" + tagcount + "]";
}
else
{
elemXPath = elemXPath.Substring(prvtaglength, elemXPath.Length - prvtaglength);
tagcount++;
elemXPath = "/" + tag + "[" + tagcount + "]/" + elemXPath;
}
}
else
{
tagcount = 1;
elemXPath = "/" + tag + "[" + tagcount + "]" + elemXPath;
}
prevtag = tag;
}
//this.txtExtracted.Text = children + Environment.NewLine + elemXPath.ToLower();
return elemXPath.ToLower();
}
public static string XPathHTMLSimple(HtmlElement elem)
{
HtmlElement selelem = elem;
string elemXPath = "";
string prntXPath = "";
string children = "";
List<string> ParentTagsList = new List<string>();
List<string> TagsList = new List<string>();
//loop through the parents until reaching root
while (elem.Parent != null)
{
//from actual node go to parent
HtmlElement prnt = elem.Parent;
ParentTagsList.Add(prnt.TagName);
prntXPath = getParentLocation(prnt) + prntXPath;
elem = elem.Parent;
}
//Add selected element to path;
elemXPath = getParentLocation(selelem);
//Join the selected path with the route to root
elemXPath = prntXPath + elemXPath;
/br[1]/div[1]/ul[8]/li[1]/a
//TODO: The XPath should be shorten to the nearest unique value and use // (from root XPath indicator)
//this.txtExtracted.Text = children + Environment.NewLine + elemXPath.ToLower();
return elemXPath.ToLower();
}
public static string <API key>(HtmlElement elem)
{
string prntXPath = "";
List<string> ParentTagsList = new List<string>();
string XMLelem = "";
XPathNavigator xpathNav = null;
//Convert selected element to XML
XMLelem = XMLHandler.HTMLtoXMLString(elem.OuterHtml);
//TODO!! ==V
//The search has to be done after the complete document is in xml not using parent and intermediate conversions
//the result is not the same
XmlDocument prntXDoc = null;
//loop through the parents until reaching root
while (elem.Parent != null)
{ //(Using HTMLElement)
//from actual node go to parent
//HtmlElement prnt = elem.Parent;
//ParentTagsList.Add(prnt.TagName);
//prntXPath = getParentLocation(prnt) + prntXPath;
//(Using HTMLDocument)
prntXDoc = XMLHandler.HTMLtoXML(elem.Parent.OuterHtml);
string Xelem = XMLHandler.HTMLtoXMLString(elem.OuterHtml);
ParentTagsList.Add(prntXDoc.DocumentElement.Name);
prntXPath = XMLHandler.getParentXPath(prntXDoc.FirstChild.ChildNodes, Xelem, elem.TagName.ToLower()) + prntXPath;
elem = elem.Parent;
}
if (prntXDoc != null)
{
prntXPath = "/" + prntXDoc.FirstChild.Name + "[1]" + prntXPath;
}
/br[1]/div[1]/ul[8]/li[1]/a
html[1]/body[1]/br[1]/p[1]/hr[1]/center[1]/hr[1]/p[1]/p[1]
//TODO: The XPath should be shorten to the nearest unique value and use // (from root XPath indicator)
//this.txtExtracted.Text = prntXPath;
return prntXPath.ToLower();
}
public static string XPathHTMLtoXML(string html, string elem, string tagname)
{
string prntXPath = "";
List<string> ParentTagsList = new List<string>();
string XMLelem = "";
//Convert selected element to XML
XMLelem = XMLHandler.HTMLtoXMLString(elem);
//TODO!! ==V
//The search has to be done after the complete document is in xml not using parent and intermediate conversions
//the result is not the same
XmlDocument prntXDoc = null;
prntXDoc = XMLHandler.HTMLtoXML(html);
prntXPath = XMLHandler.getChildrenXPath(prntXDoc.FirstChild.ChildNodes, XMLelem) + prntXPath;
if (prntXDoc != null)
{
prntXPath = "//" + prntXDoc.FirstChild.Name + "[1]" + prntXPath;
}
/br[1]/div[1]/ul[8]/li[1]/a
html[1]/body[1]/br[1]/p[1]/hr[1]/center[1]/hr[1]/p[1]/p[1]
//TODO: The XPath should be shorten to the nearest unique value and use // (from root XPath indicator)
//this.txtExtracted.Text = prntXPath;
return prntXPath.ToLower();
}
public static string getParentLocation(HtmlElement selelem)
{
string elemXPath = "";
string prevtag = ""; //holds the previous tag to create the duplicate tag index
int tagcount = 0; //holds the duplicate tag index
if (selelem.Parent != null && selelem.Parent.Children != null)
{
foreach (HtmlElement chld in selelem.Parent.Children)
{
string tag = chld.TagName;
if (tag == selelem.TagName)//Only write to XPath if the tag is the same not if it is a sibling. 7-13-2015
{
//if (tag == prevtag)
tagcount++;
int prvtaglength = ("/" + tag + "[" + tagcount + "]/").Length;
if (prvtaglength > elemXPath.Length - prvtaglength)
{
elemXPath = "/" + tag + "[" + tagcount + "]";
}
else
{
elemXPath = elemXPath.Substring(prvtaglength, elemXPath.Length - prvtaglength);
tagcount++;
elemXPath = elemXPath + "/" + tag + "[" + tagcount + "]";
}
//else
// tagcount = 1;
// elemXPath = elemXPath + "/" + tag + "[" + tagcount + "]";
}
prevtag = tag;
if (chld.InnerHtml == selelem.InnerHtml) { break; }
}
}
return elemXPath;
}
}
}
|
package com.google.api.ads.adwords.jaxws.v201406.video;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import com.google.api.ads.adwords.jaxws.v201406.cm.Money;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SummaryBudgets", propOrder = {
"totalVideoBudget",
"nonVideoBudget",
"combinedBudget"
})
public class SummaryBudgets {
protected VideoBudget totalVideoBudget;
protected Money nonVideoBudget;
protected Money combinedBudget;
/**
* Gets the value of the totalVideoBudget property.
*
* @return
* possible object is
* {@link VideoBudget }
*
*/
public VideoBudget getTotalVideoBudget() {
return totalVideoBudget;
}
/**
* Sets the value of the totalVideoBudget property.
*
* @param value
* allowed object is
* {@link VideoBudget }
*
*/
public void setTotalVideoBudget(VideoBudget value) {
this.totalVideoBudget = value;
}
/**
* Gets the value of the nonVideoBudget property.
*
* @return
* possible object is
* {@link Money }
*
*/
public Money getNonVideoBudget() {
return nonVideoBudget;
}
/**
* Sets the value of the nonVideoBudget property.
*
* @param value
* allowed object is
* {@link Money }
*
*/
public void setNonVideoBudget(Money value) {
this.nonVideoBudget = value;
}
/**
* Gets the value of the combinedBudget property.
*
* @return
* possible object is
* {@link Money }
*
*/
public Money getCombinedBudget() {
return combinedBudget;
}
/**
* Sets the value of the combinedBudget property.
*
* @param value
* allowed object is
* {@link Money }
*
*/
public void setCombinedBudget(Money value) {
this.combinedBudget = value;
}
}
|
var assert = require("assert"),
expect = require('expect.js'),
cda = require("../utils/xml.js").cda,
DOMParser = require('xmldom').DOMParser,
XmlSerializer = require('xmldom').XMLSerializer,
xmlUtils = require("../utils/xml.js").xml,
<API key> = require("../Model/<API key>.js"),
<API key> = require("../Model/<API key>.js"),
<API key> = require("../Model/<API key>.js"),
Σ = xmlUtils.CreateNode,
A = xmlUtils.<API key>,
adapter = require("../CDA/ModeltoCDA.js").cda;
var createMockEntry = function(num) {
var entry = <API key>.create();
entry.Name = "Name " + num;
entry.Value = "Value " + num;
entry.EffectiveTime = new Date().toString();
return entry;
};
var <API key> = function (num) {
var entry = <API key>.create();
entry.id = num;
entry.PainScore = 1;
entry.<API key> = '2/1/2013';
return entry;
};
describe("Build Functional Status Section.", function() {
it("Should be able to generate an entry for each type.", function() {
var e = new adapter.<API key>();
var document = new DOMParser().parseFromString("<?xml version='1.0' standalone='yes'?><ClinicalDocument xmlns:xsi='http:
var section = <API key>.create();
section.Capabilities.push(createMockEntry(1));
section.Cognitions.push(createMockEntry(1));
section.DailyLivings.push(createMockEntry(1));
section.PainScales.push(<API key>(1));
var cdaAdapter = new adapter.<API key>();
var node = cdaAdapter.BuildAll(section, document);
assert.equal(node.<API key>("title")[0].childNodes[0].nodeValue, "FUNCTIONAL STATUS");
assert.equal(node.<API key>("templateId")[0].getAttributeNode("root").value, "2.16.840.1.113883.10.20.22.2.14");
assert.equal(node.<API key>("code")[0].getAttributeNode("code").value, "47420-5");
//var output = new XmlSerializer().serializeToString(node);
//console.log(output);
});
});
|
# <API key>
## SYNOPSIS
Adds an AWS::Pinpoint::APNSChannel resource to the template.
A *channel* is a type of platform that you can deliver messages to.
You can use the APNs channel to send push notification messages to the Apple Push Notification service (APNs.
Before you can use Amazon Pinpoint to send notifications to APNs, you have to enable the APNs channel for an Amazon Pinpoint application.
## SYNTAX
<API key> [-LogicalId] <String> [-BundleId <Object>] [-PrivateKey <Object>] [-Enabled <Object>]
[-Default<API key> <Object>] [-TokenKey <Object>] -ApplicationId <Object> [-TeamId <Object>]
[-Certificate <Object>] [-TokenKeyId <Object>] [-DeletionPolicy <String>] [-UpdateReplacePolicy <String>]
[-DependsOn <String[]>] [-Metadata <Object>] [-UpdatePolicy <Object>] [-Condition <Object>]
[<CommonParameters>]
## DESCRIPTION
Adds an AWS::Pinpoint::APNSChannel resource to the template.
A *channel* is a type of platform that you can deliver messages to.
You can use the APNs channel to send push notification messages to the Apple Push Notification service (APNs.
Before you can use Amazon Pinpoint to send notifications to APNs, you have to enable the APNs channel for an Amazon Pinpoint application.
The AWS::Pinpoint::APNSChannel resource defines the status and authentication settings of the APNs channel for an application.
## PARAMETERS
-LogicalId
The logical ID must be alphanumeric (A-Za-z0-9) and unique within the template.
Use the logical name to reference the resource in other parts of the template.
For example, if you want to map an Amazon Elastic Block Store volume to an Amazon EC2 instance, you reference the logical IDs to associate the block stores with the instance.
yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-BundleId
The bundle identifier that's assigned to your iOS app.
This identifier is used for APNs tokens.
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/<API key>.html#<API key>
PrimitiveType: String
UpdateType: Mutable
yaml
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-PrivateKey
The private key for the APNs client certificate that you want Amazon Pinpoint to use to communicate with APNs.
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/<API key>.html#<API key>
PrimitiveType: String
UpdateType: Mutable
yaml
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Enabled
Specifies whether to enable the APNs channel for the application.
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/<API key>.html#<API key>
PrimitiveType: Boolean
UpdateType: Mutable
yaml
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Default<API key>
The default authentication method that you want Amazon Pinpoint to use when authenticating with APNs, key or certificate.
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/<API key>.html#<API key><API key>
PrimitiveType: String
UpdateType: Mutable
yaml
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-TokenKey
The authentication key to use for APNs tokens.
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/<API key>.html#<API key>
PrimitiveType: String
UpdateType: Mutable
yaml
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ApplicationId
The unique identifier for the application that the APNs channel applies to.
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/<API key>.html#<API key>
PrimitiveType: String
UpdateType: Immutable
yaml
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-TeamId
The identifier that's assigned to your Apple developer account team.
This identifier is used for APNs tokens.
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/<API key>.html#<API key>
PrimitiveType: String
UpdateType: Mutable
yaml
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Certificate
The APNs client certificate that you received from Apple, if you want Amazon Pinpoint to communicate with APNs by using an APNs certificate.
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/<API key>.html#<API key>
PrimitiveType: String
UpdateType: Mutable
yaml
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-TokenKeyId
The key identifier that's assigned to your APNs signing key, if you want Amazon Pinpoint to communicate with APNs by using APNs tokens.
Documentation: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/<API key>.html#<API key>
PrimitiveType: String
UpdateType: Mutable
yaml
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DeletionPolicy
With the DeletionPolicy attribute you can preserve or (in some cases) backup a resource when its stack is deleted.
You specify a DeletionPolicy attribute for each resource that you want to control.
If a resource has no DeletionPolicy attribute, AWS CloudFormation deletes the resource by default.
To keep a resource when its stack is deleted, specify Retain for that resource.
You can use retain for any resource.
For example, you can retain a nested stack, S3 bucket, or EC2 instance so that you can continue to use or modify those resources after you delete their stacks.
You must use one of the following options: "Delete","Retain","Snapshot"
yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-UpdateReplacePolicy
Use the UpdateReplacePolicy attribute to retain or (in some cases) backup the existing physical instance of a resource when it is replaced during a stack update operation.
When you initiate a stack update, AWS CloudFormation updates resources based on differences between what you submit and the stack's current template and parameters.
If you update a resource property that requires that the resource be replaced, AWS CloudFormation recreates the resource during the update.
Recreating the resource generates a new physical ID.
AWS CloudFormation creates the replacement resource first, and then changes references from other dependent resources to point to the replacement resource.
By default, AWS CloudFormation then deletes the old resource.
Using the UpdateReplacePolicy, you can specify that AWS CloudFormation retain or (in some cases) create a snapshot of the old resource.
For resources that support snapshots, such as AWS::EC2::Volume, specify Snapshot to have AWS CloudFormation create a snapshot before deleting the old resource instance.
You can apply the UpdateReplacePolicy attribute to any resource.
UpdateReplacePolicy is only executed if you update a resource property whose update behavior is specified as Replacement, thereby causing AWS CloudFormation to replace the old resource with a new one with a new physical ID.
For example, if you update the Engine property of an AWS::RDS::DBInstance resource type, AWS CloudFormation creates a new resource and replaces the current DB instance resource with the new one.
The UpdateReplacePolicy attribute would then dictate whether AWS CloudFormation deleted, retained, or created a snapshot of the old DB instance.
The update behavior for each property of a resource is specified in the reference topic for that resource in the AWS Resource and Property Types Reference.
For more information on resource update behavior, see Update Behaviors of Stack Resources.
The UpdateReplacePolicy attribute applies to stack updates you perform directly, as well as stack updates performed using change sets.
Note
Resources that are retained continue to exist and continue to incur applicable charges until you delete those resources.
Snapshots that are created with this policy continue to exist and continue to incur applicable charges until you delete those snapshots.
UpdateReplacePolicy retains the old physical resource or snapshot, but removes it from AWS CloudFormation's scope.
UpdateReplacePolicy differs from the DeletionPolicy attribute in that it only applies to resources replaced during stack updates.
Use DeletionPolicy for resources deleted when a stack is deleted, or when the resource definition itself is deleted from the template as part of a stack update.
You must use one of the following options: "Delete","Retain","Snapshot"
yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DependsOn
With the DependsOn attribute you can specify that the creation of a specific resource follows another.
When you add a DependsOn attribute to a resource, that resource is created only after the creation of the resource specified in the DependsOn attribute.
This parameter takes a string or list of strings representing Logical IDs of resources that must be created prior to this resource being created.
yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Metadata
The Metadata attribute enables you to associate structured data with a resource.
By adding a Metadata attribute to a resource, you can add data in JSON or YAML to the resource declaration.
In addition, you can use intrinsic functions (such as GetAtt and Ref), parameters, and pseudo parameters within the Metadata attribute to add those interpreted values.
You must use a PSCustomObject containing key/value pairs here.
This will be returned when describing the resource using AWS CLI.
yaml
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-UpdatePolicy
Use the UpdatePolicy attribute to specify how AWS CloudFormation handles updates to the AWS::AutoScaling::AutoScalingGroup resource.
AWS CloudFormation invokes one of three update policies depending on the type of change you make or whether a scheduled action is associated with the Auto Scaling group.
You must use the "Add-UpdatePolicy" function here.
yaml
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Condition
Logical ID of the condition that this resource needs to be true in order for this resource to be provisioned.
yaml
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [<API key>](http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
## OUTPUTS
Vaporshell.Resource.Pinpoint.APNSChannel
## NOTES
## RELATED LINKS
[http:
|
package com.glaf.base.modules.sys.model;
import java.io.Serializable;
import java.util.Date;
public class Dictory implements Serializable {
private static final long serialVersionUID = <API key>;
private long id;
private long typeId;
private String code;
private String name;
private int sort;
private String desc;
private int blocked;
private String ext1;
private String ext2;
private String ext3;
private String ext4;
private Date ext5;
private Date ext6;
public int getBlocked() {
return blocked;
}
public String getCode() {
return code;
}
public String getDesc() {
return desc;
}
public String getExt1() {
return ext1;
}
public String getExt2() {
return ext2;
}
public String getExt3() {
return ext3;
}
public String getExt4() {
return ext4;
}
public Date getExt5() {
return ext5;
}
public Date getExt6() {
return ext6;
}
public long getId() {
return id;
}
public String getName() {
return name;
}
public int getSort() {
return sort;
}
public long getTypeId() {
return typeId;
}
public void setBlocked(int blocked) {
this.blocked = blocked;
}
public void setCode(String code) {
this.code = code;
}
public void setDesc(String desc) {
this.desc = desc;
}
public void setExt1(String ext1) {
this.ext1 = ext1;
}
public void setExt2(String ext2) {
this.ext2 = ext2;
}
public void setExt3(String ext3) {
this.ext3 = ext3;
}
public void setExt4(String ext4) {
this.ext4 = ext4;
}
public void setExt5(Date ext5) {
this.ext5 = ext5;
}
public void setExt6(Date ext6) {
this.ext6 = ext6;
}
public void setId(long id) {
this.id = id;
}
public void setName(String name) {
this.name = name;
}
public void setSort(int sort) {
this.sort = sort;
}
public void setTypeId(long typeId) {
this.typeId = typeId;
}
}
|
/**
* <API key>.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.dfp.axis.v201311;
public class <API key> implements java.io.Serializable {
private java.lang.String _value_;
private static java.util.HashMap _table_ = new java.util.HashMap();
// Constructor
protected <API key>(java.lang.String value) {
_value_ = value;
_table_.put(_value_,this);
}
public static final java.lang.String _FIRST_PARTY = "FIRST_PARTY";
public static final java.lang.String _SHARED = "SHARED";
public static final java.lang.String _THIRD_PARTY = "THIRD_PARTY";
public static final java.lang.String _UNKNOWN = "UNKNOWN";
public static final <API key> FIRST_PARTY = new <API key>(_FIRST_PARTY);
public static final <API key> SHARED = new <API key>(_SHARED);
public static final <API key> THIRD_PARTY = new <API key>(_THIRD_PARTY);
public static final <API key> UNKNOWN = new <API key>(_UNKNOWN);
public java.lang.String getValue() { return _value_;}
public static <API key> fromValue(java.lang.String value)
throws java.lang.<API key> {
<API key> enumeration = (<API key>)
_table_.get(value);
if (enumeration==null) throw new java.lang.<API key>();
return enumeration;
}
public static <API key> fromString(java.lang.String value)
throws java.lang.<API key> {
return fromValue(value);
}
public boolean equals(java.lang.Object obj) {return (obj == this);}
public int hashCode() { return toString().hashCode();}
public java.lang.String toString() { return _value_;}
public java.lang.Object readResolve() throws java.io.<API key> { return fromValue(_value_);}
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.EnumSerializer(
_javaType, _xmlType);
}
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.EnumDeserializer(
_javaType, _xmlType);
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(<API key>.class);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("https:
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
}
|
## COMISS - Compare Scalar Ordered Single-Precision Floating-Point Values and Set EFLAGS
> Operation
slim
RESULT <- OrderedCompare(SRC1[31:0] <> SRC2[31:0]) {
(\* Set EFLAGS \*) CASE (RESULT) OF```
UNORDERED
GREATER_THAN
LESS_THAN
EQUAL
ESAC;
OF,AF,SF <- 0; }
> Intel C/C++ Compiler Intrinsic Equivalents
slim
int _mm_comieq_ss (__m128 a, __m128 b) int _mm_comilt_ss (__m128 a, __m128 b)
int _mm_comile_ss (__m128 a, __m128 b) int _mm_comigt_ss (__m128 a, __m128 b)
int _mm_comige_ss (__m128 a, __m128 b) int _mm_comineq_ss (__m128 a, __m128
b)
Opcode/Instruction | Op/En| 64/32-bit Mode| CPUID Feature Flag| Description
|
0F 2F /r COMISS xmm1, xmm2/m32 | RM | V/V | SSE | Compare low single-precision floating-point
| | | | values in xmm1 and xmm2/mem32 and set
| | | | the EFLAGS flags accordingly.
VEX.LIG.0F.WIG 2F /r VCOMISS xmm1, xmm2/m32| RM | V/V | AVX | Compare low single precision floating-point
| | | | values in xmm1 and xmm2/mem32 and set
| | | | the EFLAGS flags accordingly.
Instruction Operand Encoding
Op/En| Operand 1 | Operand 2 | Operand 3| Operand 4
|
RM | ModRM:reg (r)| ModRM:r/m (r)| NA | NA
Description
Compares the single-precision floating-point values in the low doublewords of
operand 1 (first operand) and operand 2 (second operand), and sets the ZF, PF,
and CF flags in the EFLAGS register according to the result (unordered, greater
than, less than, or equal). The OF, SF, and AF flags in the EFLAGS register
are set to 0. The unordered result is returned if either source operand is a
NaN (QNaN or SNaN). The sign of zero is ignored for comparisons, so that -0.0
is equal to +0.0.
Operand 1 is an XMM register; Operand 2 can be an XMM register or a 32 bit memory
location.
The COMISS instruction differs from the UCOMISS instruction in that it signals
a SIMD floating-point invalid operation exception (**``#I)``** when a source operand
is either a QNaN or SNaN. The UCOMISS instruction signals an invalid numeric
exception only if a source operand is an SNaN.
The EFLAGS register is not updated if an unmasked SIMD floating-point exception
is generated.
In 64-bit mode, use of the REX.R prefix permits this instruction to access additional
registers (XMM8-XMM15). Note: In VEX-encoded versions, VEX.vvvv is reserved
and must be 1111b, otherwise instructions will **``
SIMD Floating-Point Exceptions
Invalid (if SNaN or QNaN operands), Denormal.
Other Exceptions
See Exceptions Type 3; additionally
| |
- |
**``#UD``**| If VEX.vvvv != 1111B.
|
<?php
namespace OpenOrchestra\ModelBundle\Repository;
use OpenOrchestra\ModelInterface\Repository\<API key>;
use OpenOrchestra\Repository\<API key>;
use OpenOrchestra\Pagination\Configuration\<API key>;
use Solution\MongoAggregation\Pipeline\Stage;
/**
* Class <API key>
*/
class <API key> extends <API key> implements <API key>
{
/**
* @param string $nodeId
* @param string $locale
* @param string $siteId
*
* @return array
*/
public function findByNode($nodeId, $locale, $siteId){
$qa = $this-><API key>();
$qa->match(array(
'nodeId' => $nodeId,
'locale' => $locale,
'siteId' => $siteId,
));
return $this-><API key>($qa);
}
/**
* @param string $siteId
*
* @return array
*/
public function findBySiteId($siteId){
$qa = $this-><API key>();
$qa->match(array(
'siteId' => $siteId,
));
return $this-><API key>($qa);
}
/**
* @param <API key> $configuration
*
* @return array
*/
public function findForPaginate(<API key> $configuration)
{
$qa = $this-><API key>();
$this->filterSearch($configuration, $qa);
$order = $configuration->getOrder();
if (!empty($order)) {
$qa->sort($order);
}
$qa->skip($configuration->getSkip());
$qa->limit($configuration->getLimit());
return $this-><API key>($qa);
}
/**
* @return int
*/
public function count()
{
$qa = $this-><API key>();
return $this-><API key>($qa);
}
/**
* @param string $pattern
* @param string $redirectionId
*
* @return int
*/
public function countByPattern($pattern, $redirectionId)
{
$qa = $this-><API key>();
$qa->match(array(
'routePattern' => $pattern,
'_id' => array('$ne' => new \MongoId($redirectionId))
));
return $this-><API key>($qa);
}
/**
* @param <API key> $configuration
*
* @return int
*/
public function countWithFilter(<API key> $configuration)
{
$qa = $this-><API key>();
$this->filterSearch($configuration, $qa);
return $this-><API key>($qa);
}
/**
* @param <API key> $configuration
* @param Stage $qa
*
* @return array
*/
protected function filterSearch(<API key> $configuration, Stage $qa)
{
$siteName = $configuration->getSearchIndex('site_name');
if (null !== $siteName && '' !== $siteName) {
$qa->match(array('siteName' => new \MongoRegex('/.*' . $siteName . '.*/i')));
}
$locale = $configuration->getSearchIndex('locale');
if (null !== $locale && '' !== $locale) {
$qa->match(array('locale' => new \MongoRegex('/.*' . $locale . '.*/i')));
}
$routePattern = $configuration->getSearchIndex('route_pattern');
if (null !== $routePattern && '' !== $routePattern) {
$qa->match(array('routePattern' => new \MongoRegex('/.*' . $routePattern . '.*/i')));
}
$redirection = $configuration->getSearchIndex('redirection');
if (null !== $redirection && '' !== $redirection) {
$qa->match(array('$or' => array(
array('url' => new \MongoRegex('/.*' . $redirection . '.*/i')),
array('nodeId' => new \MongoRegex('/.*' . $redirection . '.*/i'))
)));
}
$permanent = $configuration->getSearchIndex('permanent');
if (null !== $redirection && '' !== $permanent) {
if ('true' == $permanent) {
$qa->match(array('permanent' => true));
}
if ('false' == $permanent) {
$qa->match(array('permanent' => false));
}
}
return $qa;
}
/**
* @param array $redirectionIds
*
* @throws \Exception
*/
public function removeRedirections(array $redirectionIds)
{
$redirectionMongoIds = array();
foreach ($redirectionIds as $redirectionId) {
$redirectionMongoIds[] = new \MongoId($redirectionId);
}
$qb = $this->createQueryBuilder();
$qb->remove()
->field('id')->in($redirectionMongoIds)
->getQuery()
->execute();
}
}
|
<?php
// Check for empty fields
if(empty($_POST['name']) ||
empty($_POST['email']) ||
empty($_POST['phone']) ||
empty($_POST['message']) ||
!filter_var($_POST['email'],<API key>))
{
echo "No arguments Provided!";
return false;
}
$name = $_POST['name'];
$email_address = $_POST['email'];
$phone = $_POST['phone'];
$message = $_POST['message'];
// Create the email and send the message
$to = 'development@sharay.com'; // Add your email address inbetween the '' replacing yourname@yourdomain.com - This is where the form will send a message to.
$email_subject = "Website Contact Form: $name";
$email_body = "You have received a new message from your website contact form.\n\n"."Here are the details:\n\nName: $name\n\nEmail: $email_address\n\nPhone: $phone\n\nMessage:\n$message";
$headers = "From: noreply@yourdomain.com\n"; // This is the email address the generated message will be from. We recommend using something like noreply@yourdomain.com.
$headers .= "Reply-To: $email_address";
mail($to,$email_subject,$email_body,$headers);
return true;
?>
|
code: true
type: page
title: mCreateOrReplace
description: Creates or replaces documents in kuzzle
# MCreateOrReplace
Creates or replaces multiple documents.
Returns a partial error (error code 206) if one or more document creations/replacements fail.
## Arguments
go
MCreateOrReplace(
index string,
collection string,
documents json.RawMessage,
options types.QueryOptions) (json.RawMessage, error)
<br/>
| Argument | Type | Description |
|
| `index` | <pre>string</pre> | Index name |
| `collection` | <pre>string</pre> | Collection name |
| `documents` | <pre>json.RawMessage</pre> | JSON array of documents to create |
| `options` | <pre>types.QueryOptions</pre> | A struct containing query options |
options
Additional query options
| Option | Type<br/>(default) | Description |
|
| `Queuable` | <pre>bool</pre> <br/>(`true`) | If true, queues the request during downtime, until connected to Kuzzle again |
| `Refresh` | <pre>string</pre><br/>(`""`) | If set to `wait_for`, waits for the change to be reflected for `search` (up to 1s) |
## Return
Returns a json.RawMessage containing two arrays, successes and errors.
Each created or replaced document is an object of the `successes` array with the following properties:
| Name | Type | Description |
|
| `_id` | <pre>string</pre> | Document ID |
| `_version` | <pre>int</pre> | Version of the document in the persistent data storage |
| `_source` | <pre>json.RawMessage</pre> | Document content |
| `created` | <pre>bool</pre> | True if the document was created |
Each errored document is an object of the `errors` array with the following properties:
| Name | Type | Description |
|
| `document` | <pre>json.RawMessage</pre> | Document that caused the error |
| `status` | <pre>int</pre> | HTTP error status |
| `reason` | <pre>string</pre> | Human readable reason |
## Usage
./snippets/m-create-or-replace.go
|
<!-- About Section -->
<section id="about" class="container content-section text-center">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<h2>About Me</h2>
<p>I am a Computer Science Undergrad from <span>National Institute of Technology, Silchar.</span></p>
<p>Love to spend my time coding and hanging out with friends.If you like to create and kill 'BUGS',
Party Hard or Dream Big you will feel right at home with me.
</p>
<p>I am more of a laid-back ambitious coder, and like to know about stuffs. My interests include Competitive
Programming, Machine Learning, Contributing to Open source. I like to share what I know and
if you feel I can help you in any way drop me a mail at
<a href="mailto:sagarkar10@gmail.com">sagarkar10@gmail.com</a>
</p>
</div>
</div>
</section>
|
/**
* <API key>.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.dfp.axis.v201308;
/**
* Represents the delete action that can be performed on
* {@link <API key>} objects.
*/
public class <API key> extends com.google.api.ads.dfp.axis.v201308.<API key> implements java.io.Serializable {
public <API key>() {
}
public <API key>(
java.lang.String <API key>) {
super(
<API key>);
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof <API key>)) return false;
<API key> other = (<API key>) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = super.equals(obj);
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = super.hashCode();
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(<API key>.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("https:
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
|
'use strict';
goog.provide('Blockly.JavaScript.serial');
goog.require('Blockly.JavaScript');
Blockly.JavaScript.serial_print = function() {
var content = Blockly.JavaScript.valueToCode(this, 'CONTENT', Blockly.JavaScript.ORDER_ATOMIC) || '\"\"'
var code = 'serial.writeString(\'\' + '+content+');\n';
return code;
};
Blockly.JavaScript.serial_println = function() {
var content = Blockly.JavaScript.valueToCode(this, 'CONTENT', Blockly.JavaScript.ORDER_ATOMIC) || '\"\"'
var code = 'serial.writeLine(\'\' + '+content+');\n';
return code;
};
Blockly.JavaScript.serial_print_hex = function() {
var content = Blockly.JavaScript.valueToCode(this, 'CONTENT', Blockly.JavaScript.ORDER_ATOMIC) || '0';
var code = 'serial.writeLine('+content+'.toString(16));\n';
return code;
};
Blockly.JavaScript.<API key> = function() {
var char_marker = Blockly.JavaScript.valueToCode(this, 'char_marker', Blockly.JavaScript.ORDER_ATOMIC) || ';';
var branch = Blockly.JavaScript.statementToCode(this, 'DO');
Blockly.JavaScript.definitions_['<API key>' + char_marker.charCodeAt(1)] = "serial.onDataReceived(" + char_marker + ", () => {\n" + branch + "};\n";
};
Blockly.JavaScript.serial_readstr = function() {
var code ="serial.readString()";
return [code,Blockly.JavaScript.ORDER_ATOMIC];
};
Blockly.JavaScript.serial_readline = function() {
var code ="serial.readLine()";
return [code,Blockly.JavaScript.ORDER_ATOMIC];
};
Blockly.JavaScript.<API key> = function() {
var char_marker = this.getFieldValue('char_marker');
var code ="serial.readUntil("+char_marker + ")";
return [code,Blockly.JavaScript.ORDER_ATOMIC];
};
Blockly.JavaScript.serial_softserial = function () {
var dropdown_pin1 = Blockly.JavaScript.valueToCode(this, 'RX',Blockly.JavaScript.ORDER_ATOMIC);
var dropdown_pin2 = Blockly.JavaScript.valueToCode(this, 'TX',Blockly.JavaScript.ORDER_ATOMIC);
var baudrate = this.getFieldValue('baudrate');
return "serial.redirect(" + dropdown_pin1 + ", " + dropdown_pin2 + ", BaudRate.BaudRate" + baudrate + ");\n";
};
|
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from google.cloud.spanner_v1.proto import (
result_set_pb2 as <API key>,
)
from google.cloud.spanner_v1.proto import (
spanner_pb2 as <API key>,
)
from google.cloud.spanner_v1.proto import (
transaction_pb2 as <API key>,
)
from google.protobuf import empty_pb2 as <API key>
class SpannerStub(object):
"""Cloud Spanner API
The Cloud Spanner API can be used to manage sessions and execute
transactions on data stored in Cloud Spanner databases.
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.CreateSession = channel.unary_unary(
"/google.spanner.v1.Spanner/CreateSession",
request_serializer=<API key>.<API key>.SerializeToString,
<API key>=<API key>.Session.FromString,
)
self.BatchCreateSessions = channel.unary_unary(
"/google.spanner.v1.Spanner/BatchCreateSessions",
request_serializer=<API key>.<API key>.SerializeToString,
<API key>=<API key>.<API key>.FromString,
)
self.GetSession = channel.unary_unary(
"/google.spanner.v1.Spanner/GetSession",
request_serializer=<API key>.GetSessionRequest.SerializeToString,
<API key>=<API key>.Session.FromString,
)
self.ListSessions = channel.unary_unary(
"/google.spanner.v1.Spanner/ListSessions",
request_serializer=<API key>.ListSessionsRequest.SerializeToString,
<API key>=<API key>.<API key>.FromString,
)
self.DeleteSession = channel.unary_unary(
"/google.spanner.v1.Spanner/DeleteSession",
request_serializer=<API key>.<API key>.SerializeToString,
<API key>=<API key>.Empty.FromString,
)
self.ExecuteSql = channel.unary_unary(
"/google.spanner.v1.Spanner/ExecuteSql",
request_serializer=<API key>.ExecuteSqlRequest.SerializeToString,
<API key>=<API key>.ResultSet.FromString,
)
self.ExecuteStreamingSql = channel.unary_stream(
"/google.spanner.v1.Spanner/ExecuteStreamingSql",
request_serializer=<API key>.ExecuteSqlRequest.SerializeToString,
<API key>=<API key>.PartialResultSet.FromString,
)
self.ExecuteBatchDml = channel.unary_unary(
"/google.spanner.v1.Spanner/ExecuteBatchDml",
request_serializer=<API key>.<API key>.SerializeToString,
<API key>=<API key>.<API key>.FromString,
)
self.Read = channel.unary_unary(
"/google.spanner.v1.Spanner/Read",
request_serializer=<API key>.ReadRequest.SerializeToString,
<API key>=<API key>.ResultSet.FromString,
)
self.StreamingRead = channel.unary_stream(
"/google.spanner.v1.Spanner/StreamingRead",
request_serializer=<API key>.ReadRequest.SerializeToString,
<API key>=<API key>.PartialResultSet.FromString,
)
self.BeginTransaction = channel.unary_unary(
"/google.spanner.v1.Spanner/BeginTransaction",
request_serializer=<API key>.<API key>.SerializeToString,
<API key>=<API key>.Transaction.FromString,
)
self.Commit = channel.unary_unary(
"/google.spanner.v1.Spanner/Commit",
request_serializer=<API key>.CommitRequest.SerializeToString,
<API key>=<API key>.CommitResponse.FromString,
)
self.Rollback = channel.unary_unary(
"/google.spanner.v1.Spanner/Rollback",
request_serializer=<API key>.RollbackRequest.SerializeToString,
<API key>=<API key>.Empty.FromString,
)
self.PartitionQuery = channel.unary_unary(
"/google.spanner.v1.Spanner/PartitionQuery",
request_serializer=<API key>.<API key>.SerializeToString,
<API key>=<API key>.PartitionResponse.FromString,
)
self.PartitionRead = channel.unary_unary(
"/google.spanner.v1.Spanner/PartitionRead",
request_serializer=<API key>.<API key>.SerializeToString,
<API key>=<API key>.PartitionResponse.FromString,
)
class SpannerServicer(object):
"""Cloud Spanner API
The Cloud Spanner API can be used to manage sessions and execute
transactions on data stored in Cloud Spanner databases.
"""
def CreateSession(self, request, context):
"""Creates a new session. A session can be used to perform
transactions that read and/or modify data in a Cloud Spanner database.
Sessions are meant to be reused for many consecutive
transactions.
Sessions can only execute one transaction at a time. To execute
multiple concurrent read-write/write-only transactions, create
multiple sessions. Note that standalone reads and queries use a
transaction internally, and count toward the one transaction
limit.
Active sessions use additional server resources, so it is a good idea to
delete idle and unneeded sessions.
Aside from explicit deletes, Cloud Spanner can delete sessions for which no
operations are sent for more than an hour. If a session is deleted,
requests to it return `NOT_FOUND`.
Idle sessions can be kept alive by sending a trivial SQL query
periodically, e.g., `"SELECT 1"`.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
def BatchCreateSessions(self, request, context):
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
def GetSession(self, request, context):
"""Gets a session. Returns `NOT_FOUND` if the session does not exist.
This is mainly useful for determining whether a session is still
alive.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
def ListSessions(self, request, context):
"""Lists all sessions in a given database.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
def DeleteSession(self, request, context):
"""Ends a session, releasing server resources associated with it. This will
asynchronously trigger cancellation of any operations that are running with
this session.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
def ExecuteSql(self, request, context):
"""Executes an SQL statement, returning all results in a single reply. This
method cannot be used to return a result set larger than 10 MiB;
if the query yields more data than that, the query fails with
a `FAILED_PRECONDITION` error.
Operations inside read-write transactions might return `ABORTED`. If
this occurs, the application should restart the transaction from
the beginning. See [Transaction][google.spanner.v1.Transaction] for more details.
Larger result sets can be fetched in streaming fashion by calling
[ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql] instead.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
def ExecuteStreamingSql(self, request, context):
"""Like [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], except returns the result
set as a stream. Unlike [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql], there
is no limit on the size of the returned result set. However, no
individual row in the result set can exceed 100 MiB, and no
column value can exceed 10 MiB.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
def ExecuteBatchDml(self, request, context):
"""Executes a batch of SQL DML statements. This method allows many statements
to be run with lower latency than submitting them sequentially with
[ExecuteSql][google.spanner.v1.Spanner.ExecuteSql].
Statements are executed in sequential order. A request can succeed even if
a statement fails. The [<API key>.status][google.spanner.v1.<API key>.status] field in the
response provides information about the statement that failed. Clients must
inspect this field to determine whether an error occurred.
Execution stops after the first failed statement; the remaining statements
are not executed.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
def Read(self, request, context):
"""Reads rows from the database using key lookups and scans, as a
simple key/value style alternative to
[ExecuteSql][google.spanner.v1.Spanner.ExecuteSql]. This method cannot be used to
return a result set larger than 10 MiB; if the read matches more
data than that, the read fails with a `FAILED_PRECONDITION`
error.
Reads inside read-write transactions might return `ABORTED`. If
this occurs, the application should restart the transaction from
the beginning. See [Transaction][google.spanner.v1.Transaction] for more details.
Larger result sets can be yielded in streaming fashion by calling
[StreamingRead][google.spanner.v1.Spanner.StreamingRead] instead.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
def StreamingRead(self, request, context):
"""Like [Read][google.spanner.v1.Spanner.Read], except returns the result set as a
stream. Unlike [Read][google.spanner.v1.Spanner.Read], there is no limit on the
size of the returned result set. However, no individual row in
the result set can exceed 100 MiB, and no column value can exceed
10 MiB.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
def BeginTransaction(self, request, context):
"""Begins a new transaction. This step can often be skipped:
[Read][google.spanner.v1.Spanner.Read], [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] and
[Commit][google.spanner.v1.Spanner.Commit] can begin a new transaction as a
side-effect.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
def Commit(self, request, context):
"""Commits a transaction. The request includes the mutations to be
applied to rows in the database.
`Commit` might return an `ABORTED` error. This can occur at any time;
commonly, the cause is conflicts with concurrent
transactions. However, it can also happen for a variety of other
reasons. If `Commit` returns `ABORTED`, the caller should re-attempt
the transaction from the beginning, re-using the same session.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
def Rollback(self, request, context):
"""Rolls back a transaction, releasing any locks it holds. It is a good
idea to call this for any transaction that includes one or more
[Read][google.spanner.v1.Spanner.Read] or [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] requests and
ultimately decides not to commit.
`Rollback` returns `OK` if it successfully aborts the transaction, the
transaction was already aborted, or the transaction is not
found. `Rollback` never returns `ABORTED`.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
def PartitionQuery(self, request, context):
"""Creates a set of partition tokens that can be used to execute a query
operation in parallel. Each of the returned partition tokens can be used
by [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql] to specify a subset
of the query result to read. The same session and read-only transaction
must be used by the <API key> used to create the
partition tokens and the ExecuteSqlRequests that use the partition tokens.
Partition tokens become invalid when the session used to create them
is deleted, is idle for too long, begins a new transaction, or becomes too
old. When any of these happen, it is not possible to resume the query, and
the whole operation must be restarted from the beginning.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
def PartitionRead(self, request, context):
"""Creates a set of partition tokens that can be used to execute a read
operation in parallel. Each of the returned partition tokens can be used
by [StreamingRead][google.spanner.v1.Spanner.StreamingRead] to specify a subset of the read
result to read. The same session and read-only transaction must be used by
the <API key> used to create the partition tokens and the
ReadRequests that use the partition tokens. There are no ordering
guarantees on rows returned among the returned partition tokens, or even
within each individual StreamingRead call issued with a partition_token.
Partition tokens become invalid when the session used to create them
is deleted, is idle for too long, begins a new transaction, or becomes too
old. When any of these happen, it is not possible to resume the read, and
the whole operation must be restarted from the beginning.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details("Method not implemented!")
raise NotImplementedError("Method not implemented!")
def <API key>(servicer, server):
rpc_method_handlers = {
"CreateSession": grpc.<API key>(
servicer.CreateSession,
<API key>=<API key>.<API key>.FromString,
response_serializer=<API key>.Session.SerializeToString,
),
"BatchCreateSessions": grpc.<API key>(
servicer.BatchCreateSessions,
<API key>=<API key>.<API key>.FromString,
response_serializer=<API key>.<API key>.SerializeToString,
),
"GetSession": grpc.<API key>(
servicer.GetSession,
<API key>=<API key>.GetSessionRequest.FromString,
response_serializer=<API key>.Session.SerializeToString,
),
"ListSessions": grpc.<API key>(
servicer.ListSessions,
<API key>=<API key>.ListSessionsRequest.FromString,
response_serializer=<API key>.<API key>.SerializeToString,
),
"DeleteSession": grpc.<API key>(
servicer.DeleteSession,
<API key>=<API key>.<API key>.FromString,
response_serializer=<API key>.Empty.SerializeToString,
),
"ExecuteSql": grpc.<API key>(
servicer.ExecuteSql,
<API key>=<API key>.ExecuteSqlRequest.FromString,
response_serializer=<API key>.ResultSet.SerializeToString,
),
"ExecuteStreamingSql": grpc.<API key>(
servicer.ExecuteStreamingSql,
<API key>=<API key>.ExecuteSqlRequest.FromString,
response_serializer=<API key>.PartialResultSet.SerializeToString,
),
"ExecuteBatchDml": grpc.<API key>(
servicer.ExecuteBatchDml,
<API key>=<API key>.<API key>.FromString,
response_serializer=<API key>.<API key>.SerializeToString,
),
"Read": grpc.<API key>(
servicer.Read,
<API key>=<API key>.ReadRequest.FromString,
response_serializer=<API key>.ResultSet.SerializeToString,
),
"StreamingRead": grpc.<API key>(
servicer.StreamingRead,
<API key>=<API key>.ReadRequest.FromString,
response_serializer=<API key>.PartialResultSet.SerializeToString,
),
"BeginTransaction": grpc.<API key>(
servicer.BeginTransaction,
<API key>=<API key>.<API key>.FromString,
response_serializer=<API key>.Transaction.SerializeToString,
),
"Commit": grpc.<API key>(
servicer.Commit,
<API key>=<API key>.CommitRequest.FromString,
response_serializer=<API key>.CommitResponse.SerializeToString,
),
"Rollback": grpc.<API key>(
servicer.Rollback,
<API key>=<API key>.RollbackRequest.FromString,
response_serializer=<API key>.Empty.SerializeToString,
),
"PartitionQuery": grpc.<API key>(
servicer.PartitionQuery,
<API key>=<API key>.<API key>.FromString,
response_serializer=<API key>.PartitionResponse.SerializeToString,
),
"PartitionRead": grpc.<API key>(
servicer.PartitionRead,
<API key>=<API key>.<API key>.FromString,
response_serializer=<API key>.PartitionResponse.SerializeToString,
),
}
generic_handler = grpc.<API key>(
"google.spanner.v1.Spanner", rpc_method_handlers
)
server.<API key>((generic_handler,))
|
package com.comps.util;
import com.google.gson.Gson;
public class GsonManager {
private static Gson instance;
public static Gson getInstance(){
if (instance == null){
instance = new Gson();
}
return instance;
}
}
|
module.exports.blueprints = {
actions: true,
rest: true,
shortcuts: true,
prefix: '/api/v1.0',
// pluralize: false,
// populate: true,
// autoWatch: true,
// defaultLimit: 30
};
|
import { IInjectable } from "../common/common";
import { TypedMap } from "../common/common";
import { StateProvider } from "./stateProvider";
import { ResolveContext } from "../resolve/resolveContext";
import * as angular from 'angular';
import IScope = angular.IScope;
/**
* Annotates a controller expression (may be a controller function(), a "controllername",
* or "controllername as name")
*
* - Temporarily decorates $injector.instantiate.
* - Invokes $controller() service
* - Calls $injector.instantiate with controller constructor
* - Annotate constructor
* - Undecorate $injector
*
* returns an array of strings, which are the arguments of the controller expression
*/
export declare function annotateController(<API key>: (IInjectable | string)): string[];
declare module "../router" {
interface UIRouter {
/** @hidden TODO: move this to ng1.ts */
stateProvider: StateProvider;
}
}
export declare function watchDigests($rootScope: IScope): void;
export declare const getLocals: (ctx: ResolveContext) => TypedMap<any>;
|
// This file is part of JavaSMT,
// an API wrapper for a collection of SMT solvers:
// <API key>: Apache-2.0
package org.sosy_lab.java_smt.test;
import static com.google.common.truth.Truth.assertThat;
import static com.google.common.truth.TruthJUnit.assume;
import static org.sosy_lab.java_smt.api.FormulaType.BooleanType;
import static org.sosy_lab.java_smt.api.FormulaType.IntegerType;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.testing.EqualsTester;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Map;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameter;
import org.junit.runners.Parameterized.Parameters;
import org.sosy_lab.java_smt.<API key>.Solvers;
import org.sosy_lab.java_smt.api.ArrayFormula;
import org.sosy_lab.java_smt.api.BitvectorFormula;
import org.sosy_lab.java_smt.api.BooleanFormula;
import org.sosy_lab.java_smt.api.FormulaType;
import org.sosy_lab.java_smt.api.FormulaType.ArrayFormulaType;
import org.sosy_lab.java_smt.api.FunctionDeclaration;
import org.sosy_lab.java_smt.api.NumeralFormula.IntegerFormula;
import org.sosy_lab.java_smt.api.SolverException;
@RunWith(Parameterized.class)
public class FormulaManagerTest extends SolverBasedTest0 {
@Parameters(name = "{0}")
public static Object[] getAllSolvers() {
return Solvers.values();
}
@Parameter(0)
public Solvers solver;
@Override
protected Solvers solverToUse() {
return solver;
}
@Test
public void <API key>() throws SolverException, <API key> {
// Boolector does not support substitution
assume().that(solverToUse()).isNotEqualTo(Solvers.BOOLECTOR);
assume().withMessage("Princess fails").that(solver).isNotEqualTo(Solvers.PRINCESS);
IntegerFormula variable1 = imgr.makeVariable("variable1");
IntegerFormula variable2 = imgr.makeVariable("variable2");
IntegerFormula variable3 = imgr.makeVariable("variable3");
IntegerFormula variable4 = imgr.makeVariable("variable4");
FunctionDeclaration<BooleanFormula> uf2Decl =
fmgr.declareUF("uf", BooleanType, IntegerType, IntegerType);
BooleanFormula f1 = fmgr.callUF(uf2Decl, variable1, variable3);
BooleanFormula f2 = fmgr.callUF(uf2Decl, variable2, variable4);
BooleanFormula input = bmgr.xor(f1, f2);
BooleanFormula out = mgr.substitute(input, ImmutableMap.of());
assertThatFormula(out).isEquivalentTo(input);
}
@Test
public void testNoSubstitution() throws SolverException, <API key> {
// Boolector does not support substitution
assume().that(solverToUse()).isNotEqualTo(Solvers.BOOLECTOR);
assume().withMessage("Princess fails").that(solver).isNotEqualTo(Solvers.PRINCESS);
IntegerFormula variable1 = imgr.makeVariable("variable1");
IntegerFormula variable2 = imgr.makeVariable("variable2");
IntegerFormula variable3 = imgr.makeVariable("variable3");
IntegerFormula variable4 = imgr.makeVariable("variable4");
FunctionDeclaration<BooleanFormula> uf2Decl =
fmgr.declareUF("uf", BooleanType, IntegerType, IntegerType);
BooleanFormula f1 = fmgr.callUF(uf2Decl, variable1, variable3);
BooleanFormula f2 = fmgr.callUF(uf2Decl, variable2, variable4);
BooleanFormula input = bmgr.xor(f1, f2);
Map<BooleanFormula, BooleanFormula> substitution =
ImmutableMap.of(
bmgr.makeVariable("a"), bmgr.makeVariable("a1"),
bmgr.makeVariable("b"), bmgr.makeVariable("b1"),
bmgr.and(bmgr.makeVariable("c"), bmgr.makeVariable("d")), bmgr.makeVariable("e"));
BooleanFormula out = mgr.substitute(input, substitution);
assertThatFormula(out).isEquivalentTo(input);
}
@Test
public void testSubstitution() throws SolverException, <API key> {
// Boolector does not support substitution
assume().that(solverToUse()).isNotEqualTo(Solvers.BOOLECTOR);
BooleanFormula input =
bmgr.or(
bmgr.and(bmgr.makeVariable("a"), bmgr.makeVariable("b")),
bmgr.and(bmgr.makeVariable("c"), bmgr.makeVariable("d")));
BooleanFormula out =
mgr.substitute(
input,
ImmutableMap.of(
bmgr.makeVariable("a"), bmgr.makeVariable("a1"),
bmgr.makeVariable("b"), bmgr.makeVariable("b1"),
bmgr.and(bmgr.makeVariable("c"), bmgr.makeVariable("d")), bmgr.makeVariable("e")));
assertThatFormula(out)
.isEquivalentTo(
bmgr.or(
bmgr.and(bmgr.makeVariable("a1"), bmgr.makeVariable("b1")),
bmgr.makeVariable("e")));
}
@Test
public void <API key>() throws SolverException, <API key> {
// Boolector does not support substitution
assume().that(solverToUse()).isNotEqualTo(Solvers.BOOLECTOR);
BooleanFormula input =
bmgr.or(
bmgr.and(bmgr.makeVariable("a"), bmgr.makeVariable("b")),
bmgr.and(bmgr.makeVariable("c"), bmgr.makeVariable("d")));
ImmutableMap<BooleanFormula, BooleanFormula> substitution =
ImmutableMap.of(
bmgr.makeVariable("a"), bmgr.makeVariable("a1"),
bmgr.makeVariable("b"), bmgr.makeVariable("b1"),
bmgr.and(bmgr.makeVariable("c"), bmgr.makeVariable("d")), bmgr.makeVariable("e"));
BooleanFormula out = mgr.substitute(input, substitution);
assertThatFormula(out)
.isEquivalentTo(
bmgr.or(
bmgr.and(bmgr.makeVariable("a1"), bmgr.makeVariable("b1")),
bmgr.makeVariable("e")));
BooleanFormula out2 = mgr.substitute(out, substitution);
assertThatFormula(out2).isEquivalentTo(out);
}
@Test
public void <API key>() {
// Solvers without integers (Boolector) get their own test below
assume().that(solverToUse()).isNotEqualTo(Solvers.BOOLECTOR);
FunctionDeclaration<IntegerFormula> fb = fmgr.declareUF("f_b", IntegerType, IntegerType);
new EqualsTester()
.addEqualityGroup(bmgr.makeBoolean(true))
.addEqualityGroup(bmgr.makeBoolean(false))
.addEqualityGroup(bmgr.makeVariable("bool_a"))
.addEqualityGroup(imgr.makeVariable("int_a"))
// Way of creating numbers should not make a difference.
.addEqualityGroup(
imgr.makeNumber(0.0),
imgr.makeNumber(0L),
imgr.makeNumber(BigInteger.ZERO),
imgr.makeNumber(BigDecimal.ZERO),
imgr.makeNumber("0"))
.addEqualityGroup(
imgr.makeNumber(1.0),
imgr.makeNumber(1L),
imgr.makeNumber(BigInteger.ONE),
imgr.makeNumber(BigDecimal.ONE),
imgr.makeNumber("1"))
// The same formula when created twice should compare equal.
.addEqualityGroup(bmgr.makeVariable("bool_b"), bmgr.makeVariable("bool_b"))
.addEqualityGroup(
bmgr.and(bmgr.makeVariable("bool_a"), bmgr.makeVariable("bool_b")),
bmgr.and(bmgr.makeVariable("bool_a"), bmgr.makeVariable("bool_b")))
.addEqualityGroup(
imgr.equal(imgr.makeNumber(0), imgr.makeVariable("int_a")),
imgr.equal(imgr.makeNumber(0), imgr.makeVariable("int_a")))
// <API key> should not compare equal to Formulas,
// but declaring one twice needs to return the same UIF.
.addEqualityGroup(
fmgr.declareUF("f_a", IntegerType, IntegerType),
fmgr.declareUF("f_a", IntegerType, IntegerType))
.addEqualityGroup(fb)
.addEqualityGroup(fmgr.callUF(fb, imgr.makeNumber(0)))
.addEqualityGroup(fmgr.callUF(fb, imgr.makeNumber(1)), fmgr.callUF(fb, imgr.makeNumber(1)))
.testEquals();
}
@Test
public void <API key>() {
// Boolector does not support integers and it is easier to make a new test with bvs
requireBitvectors();
FunctionDeclaration<BitvectorFormula> fb =
fmgr.declareUF(
"f_bv",
FormulaType.<API key>(8),
FormulaType.<API key>(8));
new EqualsTester()
.addEqualityGroup(bmgr.makeBoolean(true))
.addEqualityGroup(bmgr.makeBoolean(false))
.addEqualityGroup(bmgr.makeVariable("bool_a"))
.addEqualityGroup(bvmgr.makeVariable(8, "bv_a"))
// Way of creating numbers should not make a difference.
.addEqualityGroup(
bvmgr.makeBitvector(8, 0L),
bvmgr.makeBitvector(8, 0),
bvmgr.makeBitvector(8, BigInteger.ZERO))
.addEqualityGroup(
bvmgr.makeBitvector(8, 1L),
bvmgr.makeBitvector(8, 1),
bvmgr.makeBitvector(8, BigInteger.ONE))
// The same formula when created twice should compare equal.
.addEqualityGroup(bmgr.makeVariable("bool_b"), bmgr.makeVariable("bool_b"))
.addEqualityGroup(
bmgr.and(bmgr.makeVariable("bool_a"), bmgr.makeVariable("bool_b")),
bmgr.and(bmgr.makeVariable("bool_a"), bmgr.makeVariable("bool_b")))
.addEqualityGroup(
bvmgr.equal(bvmgr.makeBitvector(8, 0), bvmgr.makeVariable(8, "int_a")),
bvmgr.equal(bvmgr.makeBitvector(8, 0), bvmgr.makeVariable(8, "int_a")))
// <API key> should not compare equal to Formulas,
// but declaring one twice needs to return the same UIF.
.addEqualityGroup(
fmgr.declareUF(
"f_a",
FormulaType.<API key>(8),
FormulaType.<API key>(8)),
fmgr.declareUF(
"f_a",
FormulaType.<API key>(8),
FormulaType.<API key>(8)))
.addEqualityGroup(fb)
.addEqualityGroup(fmgr.callUF(fb, bvmgr.makeBitvector(8, 0)))
.addEqualityGroup(
fmgr.callUF(fb, bvmgr.makeBitvector(8, 1)), // why not equal?!
fmgr.callUF(fb, bvmgr.makeBitvector(8, 1)))
.testEquals();
}
@Test
public void <API key>() {
// Since Boolector does not support integers we use bitvectors
if (imgr != null) {
BooleanFormula constr =
bmgr.or(
imgr.equal(
imgr.subtract(
imgr.add(imgr.makeVariable("x"), imgr.makeVariable("z")),
imgr.makeNumber(10)),
imgr.makeVariable("y")),
imgr.equal(imgr.makeVariable("xx"), imgr.makeVariable("zz")));
assertThat(mgr.extractVariables(constr).keySet()).containsExactly("x", "y", "z", "xx", "zz");
assertThat(mgr.<API key>(constr)).isEqualTo(mgr.extractVariables(constr));
} else {
BooleanFormula bvConstr =
bmgr.or(
bvmgr.equal(
bvmgr.subtract(
bvmgr.add(bvmgr.makeVariable(8, "x"), bvmgr.makeVariable(8, "z")),
bvmgr.makeBitvector(8, 10)),
bvmgr.makeVariable(8, "y")),
bvmgr.equal(bvmgr.makeVariable(8, "xx"), bvmgr.makeVariable(8, "zz")));
requireVisitor();
assertThat(mgr.extractVariables(bvConstr).keySet())
.containsExactly("x", "y", "z", "xx", "zz");
assertThat(mgr.<API key>(bvConstr)).isEqualTo(mgr.extractVariables(bvConstr));
}
}
@Test
public void ufNameExtractorTest() {
// Since Boolector does not support integers we use bitvectors for constraints
if (imgr != null) {
BooleanFormula constraint =
imgr.equal(
fmgr.declareAndCallUF("uf1", IntegerType, ImmutableList.of(imgr.makeVariable("x"))),
fmgr.declareAndCallUF("uf2", IntegerType, ImmutableList.of(imgr.makeVariable("y"))));
assertThat(mgr.<API key>(constraint).keySet())
.containsExactly("uf1", "uf2", "x", "y");
assertThat(mgr.extractVariables(constraint).keySet()).containsExactly("x", "y");
} else {
BooleanFormula bvConstraint =
bvmgr.equal(
fmgr.declareAndCallUF(
"uf1",
FormulaType.<API key>(8),
ImmutableList.of(bvmgr.makeVariable(8, "x"))),
fmgr.declareAndCallUF(
"uf2",
FormulaType.<API key>(8),
ImmutableList.of(bvmgr.makeVariable(8, "y"))));
requireVisitor();
assertThat(mgr.<API key>(bvConstraint).keySet())
.containsExactly("uf1", "uf2", "x", "y");
assertThat(mgr.extractVariables(bvConstraint).keySet()).containsExactly("x", "y");
}
}
@Test
public void simplifyIntTest() throws SolverException, <API key> {
requireIntegers();
// x=1 && y=x+2 && z=y+3 --> simplified: x=1 && y=3 && z=6
IntegerFormula num1 = imgr.makeNumber(1);
IntegerFormula num2 = imgr.makeNumber(2);
IntegerFormula num3 = imgr.makeNumber(3);
IntegerFormula x = imgr.makeVariable("x");
IntegerFormula y = imgr.makeVariable("y");
IntegerFormula z = imgr.makeVariable("z");
BooleanFormula f =
bmgr.and(
imgr.equal(x, num1),
imgr.equal(y, imgr.add(x, num2)),
imgr.equal(z, imgr.add(y, num3)));
assertThatFormula(mgr.simplify(f)).isEquisatisfiableTo(f);
}
@Test
public void simplifyArrayTest() throws SolverException, <API key> {
requireIntegers();
requireArrays();
// exists arr : (arr[0]=5 && x=arr[0]) --> simplified: x=5
ArrayFormula<IntegerFormula, IntegerFormula> arr =
amgr.makeArray("arr", new ArrayFormulaType<>(IntegerType, IntegerType));
IntegerFormula index = imgr.makeNumber(0);
IntegerFormula value = imgr.makeNumber(5);
IntegerFormula x = imgr.makeVariable("x");
ArrayFormula<IntegerFormula, IntegerFormula> write = amgr.store(arr, index, value);
IntegerFormula read = amgr.select(write, index);
BooleanFormula f = imgr.equal(x, read);
assertThatFormula(mgr.simplify(f)).isEquisatisfiableTo(f);
}
}
|
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.09.17 at 02:39:44 KST
package com.athena.chameleon.engine.entity.xml.application.jeus.v5_0;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
@XmlEnum
public enum VendorType {
@XmlEnumValue("db2")
DB_2("db2"),
@XmlEnumValue("informix")
INFORMIX("informix"),
@XmlEnumValue("mssql")
MSSQL("mssql"),
@XmlEnumValue("mysql")
MYSQL("mysql"),
@XmlEnumValue("oracle")
ORACLE("oracle"),
@XmlEnumValue("others")
OTHERS("others"),
@XmlEnumValue("sybase")
SYBASE("sybase"),
@XmlEnumValue("tibero")
TIBERO("tibero");
private final String value;
VendorType(String v) {
value = v;
}
public String value() {
return value;
}
public static VendorType fromValue(String v) {
for (VendorType c: VendorType.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new <API key>(v.toString());
}
}
|
#!/bin/bash
SOURCE="${BASH_SOURCE[0]}"
while [ -h ${SOURCE} ];do
DIR=$( cd -P $( dirname ${SOURCE} ) && pwd )
SOURCE="$(readlink ${SOURCE})"
|
// Provides control sap.m.MessagePopover.
sap.ui.define(["jquery.sap.global", "./ResponsivePopover", "./Button", "./Toolbar", "./ToolbarSpacer", "./Bar", "./List",
"./StandardListItem", "./library", "sap/ui/core/Control", "./PlacementType", "sap/ui/core/IconPool",
"sap/ui/core/HTML", "./Text", "sap/ui/core/Icon", "./SegmentedButton", "./Page", "./NavContainer",
"./semantic/SemanticPage", "./Popover", "./MessagePopoverItem", "jquery.sap.dom"],
function (jQuery, ResponsivePopover, Button, Toolbar, ToolbarSpacer, Bar, List,
StandardListItem, library, Control, PlacementType, IconPool,
HTML, Text, Icon, SegmentedButton, Page, NavContainer, SemanticPage, Popover, MessagePopoverItem) {
"use strict";
/**
* Constructor for a new MessagePopover
*
* @param {string} [sId] ID for the new control, generated automatically if no id is given
* @param {object} [mSettings] Initial settings for the new control
*
* @class
* A MessagePopover is a Popover containing a summarized list with messages.
* @extends sap.ui.core.Control
*
* @author SAP SE
* @version 1.36.11
*
* @constructor
* @public
* @since 1.28
* @alias sap.m.MessagePopover
* @ui5-metamodel This control also will be described in the legacy UI5 design-time metamodel
*/
var MessagePopover = Control.extend("sap.m.MessagePopover", /** @lends sap.m.MessagePopover.prototype */ {
metadata: {
library: "sap.m",
properties: {
/**
* Callback function for resolving a promise after description has been asynchronously loaded inside this function
* @callback sap.m.MessagePopover~<API key>
* @param {object} config A single parameter object
* @param {MessagePopoverItem} config.item Reference to respective MessagePopoverItem instance
* @param {object} config.promise Object grouping a promise's reject and resolve methods
* @param {function} config.promise.resolve Method to resolve promise
* @param {function} config.promise.reject Method to reject promise
*/
<API key>: {type: "any", group: "Behavior", defaultValue: null},
/**
* Callback function for resolving a promise after a link has been asynchronously validated inside this function
* @callback sap.m.MessagePopover~asyncURLHandler
* @param {object} config A single parameter object
* @param {string} config.url URL to validate
* @param {string|Int} config.id ID of the validation job
* @param {object} config.promise Object grouping a promise's reject and resolve methods
* @param {function} config.promise.resolve Method to resolve promise
* @param {function} config.promise.reject Method to reject promise
*/
asyncURLHandler: {type: "any", group: "Behavior", defaultValue: null},
/**
* Determines the position, where the control will appear on the screen. Possible values are: sap.m.<API key>.Top, sap.m.<API key>.Bottom and sap.m.<API key>.Vertical.
* The default value is sap.m.<API key>.Vertical. Setting this property while the control is open, will not cause any re-rendering and changing of the position. Changes will only be applied with the next interaction.
*/
placement: {type: "sap.m.<API key>", group: "Behavior", defaultValue: "Vertical"},
/**
* Sets the initial state of the control - expanded or collapsed. By default the control opens as expanded
*/
initiallyExpanded: {type: "boolean", group: "Behavior", defaultValue: true}
},
defaultAggregation: "items",
aggregations: {
/**
* A list with message items
*/
items: {type: "sap.m.MessagePopoverItem", multiple: true, singularName: "item"}
},
events: {
/**
* This event will be fired after the popover is opened
*/
afterOpen: {
parameters: {
/**
* This refers to the control which opens the popover
*/
openBy: {type: "sap.ui.core.Control"}
}
},
/**
* This event will be fired after the popover is closed
*/
afterClose: {
parameters: {
/**
* Refers to the control which opens the popover
*/
openBy: {type: "sap.ui.core.Control"}
}
},
/**
* This event will be fired before the popover is opened
*/
beforeOpen: {
parameters: {
/**
* Refers to the control which opens the popover
*/
openBy: {type: "sap.ui.core.Control"}
}
},
/**
* This event will be fired before the popover is closed
*/
beforeClose: {
parameters: {
/**
* Refers to the control which opens the popover
* See sap.ui.core.MessageType enum values for types
*/
openBy: {type: "sap.ui.core.Control"}
}
},
/**
* This event will be fired when description is shown
*/
itemSelect: {
parameters: {
/**
* Refers to the message popover item that is being presented
*/
item: {type: "sap.m.MessagePopoverItem"},
/**
* Refers to the type of messages being shown
* See sap.ui.core.MessageType values for types
*/
messageTypeFilter: {type: "sap.ui.core.MessageType"}
}
},
/**
* This event will be fired when one of the lists is shown when (not) filtered by type
*/
listSelect: {
parameters: {
/**
* This parameter refers to the type of messages being shown.
*/
messageTypeFilter: {type: "sap.ui.core.MessageType"}
}
},
/**
* This event will be fired when the long text description data from a remote URL is loaded
*/
longtextLoaded: {},
/**
* This event will be fired when a validation of a URL from long text description is ready
*/
urlValidated: {}
}
}
});
var CSS_CLASS = "sapMMsgPopover",
ICONS = {
back: IconPool.getIconURI("nav-back"),
close: IconPool.getIconURI("decline"),
information: IconPool.getIconURI("message-information"),
warning: IconPool.getIconURI("message-warning"),
error: IconPool.getIconURI("message-error"),
success: IconPool.getIconURI("message-success")
},
LIST_TYPES = ["all", "error", "warning", "success", "information"],
// Property names array
ASYNC_HANDLER_NAMES = ["<API key>", "asyncURLHandler"],
// Private class variable used for static method below that sets default async handlers
<API key> = {
<API key>: function (config) {
var sLongTextUrl = config.item.getLongtextUrl();
if (sLongTextUrl) {
jQuery.ajax({
type: "GET",
url: sLongTextUrl,
success: function (data) {
config.item.setDescription(data);
config.promise.resolve();
},
error: function() {
var sError = "A request has failed for long text data. URL: " + sLongTextUrl;
jQuery.sap.log.error(sError);
config.promise.reject(sError);
}
});
}
}
};
/**
* Setter for default description and URL validation callbacks across all instances of MessagePopover
* @static
* @protected
* @param {object} mDefaultHandlers An object setting default callbacks
* @param {function} mDefaultHandlers.<API key>
* @param {function} mDefaultHandlers.asyncURLHandler
*/
MessagePopover.setDefaultHandlers = function (mDefaultHandlers) {
ASYNC_HANDLER_NAMES.forEach(function (sFuncName) {
if (mDefaultHandlers.hasOwnProperty(sFuncName)) {
<API key>[sFuncName] = mDefaultHandlers[sFuncName];
}
});
};
/**
* Initializes the control
*
* @override
* @private
*/
MessagePopover.prototype.init = function () {
var that = this;
var oPopupControl;
this._oResourceBundle = sap.ui.getCore().<API key>("sap.m");
this._oPopover = new ResponsivePopover(this.getId() + "-messagePopover", {
showHeader: false,
contentWidth: "440px",
placement: this.getPlacement(),
showCloseButton: false,
modal: false,
afterOpen: function (oEvent) {
that.fireAfterOpen({openBy: oEvent.getParameter("openBy")});
},
afterClose: function (oEvent) {
that._navContainer.backToTop();
that.fireAfterClose({openBy: oEvent.getParameter("openBy")});
},
beforeOpen: function (oEvent) {
that.fireBeforeOpen({openBy: oEvent.getParameter("openBy")});
},
beforeClose: function (oEvent) {
that.fireBeforeClose({openBy: oEvent.getParameter("openBy")});
}
}).addStyleClass(CSS_CLASS);
this.<API key>();
this._createLists();
oPopupControl = this._oPopover.getAggregation("_popup");
oPopupControl.oPopup.setAutoClose(false);
oPopupControl.addEventDelegate({
onBeforeRendering: this.<API key>,
onkeypress: this._onkeypress
}, this);
if (sap.ui.Device.system.phone) {
this._oPopover.setBeginButton(new Button({
text: this._oResourceBundle.getText("<API key>"),
press: this.close.bind(this)
}));
}
// Check for default async handlers and set them appropriately
ASYNC_HANDLER_NAMES.forEach(function (sFuncName) {
if (<API key>.hasOwnProperty(sFuncName)) {
that.setProperty(sFuncName, <API key>[sFuncName]);
}
});
};
/**
* Called when the control is destroyed
*
* @private
*/
MessagePopover.prototype.exit = function () {
this._oResourceBundle = null;
this._oListHeader = null;
this._oDetailsHeader = null;
this._oSegmentedButton = null;
this._oBackButton = null;
this._navContainer = null;
this._listPage = null;
this._detailsPage = null;
this._sCurrentList = null;
if (this._oLists) {
this._destroyLists();
}
// Destroys ResponsivePopover control that is used by MessagePopover
// This will walk through all aggregations in the Popover and destroy them (in our case this is NavContainer)
// Next this will walk through all aggregations in the NavContainer, etc.
if (this._oPopover) {
this._oPopover.destroy();
this._oPopover = null;
}
};
/**
* Required adaptations before rendering MessagePopover
*
* @private
*/
MessagePopover.prototype.<API key> = function () {
// Bind automatically to the MessageModel if no items are bound
if (!this.getBindingInfo("items")) {
this.<API key>();
}
// Update lists only if 'items' aggregation is changed
if (this._bItemsChanged) {
this._clearLists();
this._fillLists(this.getItems());
this.<API key>();
this.<API key>();
this._bItemsChanged = false;
}
this._setInitialFocus();
};
/**
* Makes automatic binding to the Message Model with default template
*
* @private
*/
MessagePopover.prototype.<API key> = function () {
this.setModel(sap.ui.getCore().getMessageManager().getMessageModel(), "message");
this.bindAggregation("items",
{
path: "message>/",
template: new MessagePopoverItem({
type: "{message>type}",
title: "{message>title}",
description: "{message>description}",
longtextUrl: "{message>longtextUrl}"
})
}
);
};
/**
* Handles keyup event
*
* @param {jQuery.Event} oEvent - keyup event object
* @private
*/
MessagePopover.prototype._onkeypress = function (oEvent) {
if (oEvent.shiftKey && oEvent.keyCode == jQuery.sap.KeyCodes.ENTER) {
this._fnHandleBackPress();
}
};
/**
* Returns header of the MessagePopover's ListPage
*
* @returns {sap.m.Toolbar} ListPage header
* @private
*/
MessagePopover.prototype._getListHeader = function () {
return this._oListHeader || this._createListHeader();
};
/**
* Returns header of the MessagePopover's ListPage
*
* @returns {sap.m.Toolbar} DetailsPage header
* @private
*/
MessagePopover.prototype._getDetailsHeader = function () {
return this._oDetailsHeader || this.<API key>();
};
/**
* Creates header of MessagePopover's ListPage
*
* @returns {sap.m.Toolbar} ListPage header
* @private
*/
MessagePopover.prototype._createListHeader = function () {
var sCloseBtnDescr = this._oResourceBundle.getText("<API key>");
var sCloseBtnDescrId = this.getId() + "-CloseBtnDescr";
var <API key> = new HTML(sCloseBtnDescrId, {
content: "<span id=\"" + sCloseBtnDescrId + "\" style=\"display: none;\">" + sCloseBtnDescr + "</span>"
});
var sHeadingDescr = this._oResourceBundle.getText("<API key>");
var sHeadingDescrId = this.getId() + "-HeadingDescr";
var <API key> = new HTML(sHeadingDescrId, {
content: "<span id=\"" + sHeadingDescrId + "\" style=\"display: none;\" role=\"heading\">" + sHeadingDescr + "</span>"
});
this._oPopover.addAssociation("ariaDescribedBy", sHeadingDescrId, true);
var oCloseBtn = new Button({
icon: ICONS["close"],
visible: !sap.ui.Device.system.phone,
ariaLabelledBy: <API key>,
tooltip: sCloseBtnDescr,
press: this.close.bind(this)
}).addStyleClass(CSS_CLASS + "CloseBtn");
this._oSegmentedButton = new SegmentedButton(this.getId() + "-segmented", {}).addStyleClass("<API key>");
this._oListHeader = new Toolbar({
content: [this._oSegmentedButton, new ToolbarSpacer(), oCloseBtn, <API key>, <API key>]
});
return this._oListHeader;
};
/**
* Creates header of MessagePopover's ListPage
*
* @returns {sap.m.Toolbar} DetailsPage header
* @private
*/
MessagePopover.prototype.<API key> = function () {
var sCloseBtnDescr = this._oResourceBundle.getText("<API key>");
var sCloseBtnDescrId = this.getId() + "-CloseBtnDetDescr";
var <API key> = new HTML(sCloseBtnDescrId, {
content: "<span id=\"" + sCloseBtnDescrId + "\" style=\"display: none;\">" + sCloseBtnDescr + "</span>"
});
var sBackBtnDescr = this._oResourceBundle.getText("<API key>");
var sBackBtnDescrId = this.getId() + "-BackBtnDetDescr";
var <API key> = new HTML(sBackBtnDescrId, {
content: "<span id=\"" + sBackBtnDescrId + "\" style=\"display: none;\">" + sBackBtnDescr + "</span>"
});
var oCloseBtn = new Button({
icon: ICONS["close"],
visible: !sap.ui.Device.system.phone,
ariaLabelledBy: <API key>,
tooltip: sCloseBtnDescr,
press: this.close.bind(this)
}).addStyleClass(CSS_CLASS + "CloseBtn");
this._oBackButton = new Button({
icon: ICONS["back"],
press: this._fnHandleBackPress.bind(this),
ariaLabelledBy: <API key>,
tooltip: sBackBtnDescr
});
this._oDetailsHeader = new Toolbar({
content: [this._oBackButton, new ToolbarSpacer(), oCloseBtn, <API key>, <API key>]
});
return this._oDetailsHeader;
};
/**
* Creates navigation pages
*
* @returns {sap.m.MessagePopover} Reference to the 'this' for chaining purposes
* @private
*/
MessagePopover.prototype.<API key> = function () {
// Create two main pages
this._listPage = new Page(this.getId() + "listPage", {
customHeader: this._getListHeader()
});
this._detailsPage = new Page(this.getId() + "-detailsPage", {
customHeader: this._getDetailsHeader()
});
// TODO: check if this is the best location for this
// Disable clicks on disabled and/or pending links
this._detailsPage.addEventDelegate({
onclick: function(oEvent) {
var target = oEvent.target;
if (target.nodeName.toUpperCase() === 'A' &&
(target.className.indexOf('<API key>') !== -1 ||
target.className.indexOf('<API key>') !== -1)) {
oEvent.preventDefault();
}
}
});
// Initialize nav container with two main pages
this._navContainer = new NavContainer(this.getId() + "-navContainer", {
initialPage: this.getId() + "listPage",
pages: [this._listPage, this._detailsPage],
navigate: this._navigate.bind(this),
afterNavigate: this._afterNavigate.bind(this)
});
// Assign nav container to content of _oPopover
this._oPopover.addContent(this._navContainer);
return this;
};
/**
* Creates Lists of the MessagePopover
*
* @returns {sap.m.MessagePopover} Reference to the 'this' for chaining purposes
* @private
*/
MessagePopover.prototype._createLists = function () {
this._oLists = {};
LIST_TYPES.forEach(function (sListName) {
this._oLists[sListName] = new List({
itemPress: this._fnHandleItemPress.bind(this),
visible: false
});
// no re-rendering
this._listPage.addAggregation("content", this._oLists[sListName], true);
}, this);
return this;
};
/**
* Destroy items in the MessagePopover's Lists
*
* @returns {sap.m.MessagePopover} Reference to the 'this' for chaining purposes
* @private
*/
MessagePopover.prototype._clearLists = function () {
LIST_TYPES.forEach(function (sListName) {
if (this._oLists[sListName]) {
this._oLists[sListName].destroyAggregation("items", true);
}
}, this);
return this;
};
/**
* Destroys internal Lists of the MessagePopover
*
* @private
*/
MessagePopover.prototype._destroyLists = function () {
LIST_TYPES.forEach(function (sListName) {
this._oLists[sListName] = null;
}, this);
this._oLists = null;
};
/**
* Fill the list with items
*
* @param {array} aItems An array with items type of sap.ui.core.Item.
* @private
*/
MessagePopover.prototype._fillLists = function (aItems) {
aItems.forEach(function (oMessagePopoverItem) {
var oListItem = this._mapItemToListItem(oMessagePopoverItem),
oCloneListItem = this._mapItemToListItem(oMessagePopoverItem);
// add the mapped item to the List
this._oLists["all"].addAggregation("items", oListItem, true);
this._oLists[oMessagePopoverItem.getType().toLowerCase()].addAggregation("items", oCloneListItem, true);
}, this);
};
/**
* Map a MessagePopoverItem to StandardListItem
*
* @param {sap.m.MessagePopoverItem} oMessagePopoverItem Base information to generate the list items
* @returns {sap.m.StandardListItem | null} oListItem List item which will be displayed
* @private
*/
MessagePopover.prototype._mapItemToListItem = function (oMessagePopoverItem) {
if (!oMessagePopoverItem) {
return null;
}
var sType = oMessagePopoverItem.getType(),
oListItem = new StandardListItem({
title: oMessagePopoverItem.getTitle(),
icon: this._mapIcon(sType),
type: sap.m.ListType.Navigation
}).addStyleClass(CSS_CLASS + "Item").addStyleClass(CSS_CLASS + "Item" + sType);
oListItem.<API key> = oMessagePopoverItem;
return oListItem;
};
/**
* Map an MessageType to the Icon URL.
*
* @param {sap.ui.core.ValueState} sIcon Type of Error
* @returns {string | null} Icon string
* @private
*/
MessagePopover.prototype._mapIcon = function (sIcon) {
if (!sIcon) {
return null;
}
return ICONS[sIcon.toLowerCase()];
};
/**
* Destroy the buttons in the SegmentedButton
*
* @returns {sap.m.MessagePopover} Reference to the 'this' for chaining purposes
* @private
*/
MessagePopover.prototype.<API key> = function () {
if (this._oSegmentedButton) {
this._oSegmentedButton.destroyAggregation("buttons", true);
}
return this;
};
/**
* Fill SegmentedButton with needed Buttons for filtering
*
* @returns {sap.m.MessagePopover} Reference to the 'this' for chaining purposes
* @private
*/
MessagePopover.prototype.<API key> = function () {
var that = this;
var pressClosure = function (sListName) {
return function () {
that._fnFilterList(sListName);
};
};
LIST_TYPES.forEach(function (sListName) {
var oList = this._oLists[sListName],
iCount = oList.getItems().length,
oButton;
if (iCount > 0) {
oButton = new Button(this.getId() + "-" + sListName, {
text: sListName == "all" ? this._oResourceBundle.getText("MESSAGEPOPOVER_ALL") : iCount,
icon: ICONS[sListName],
press: pressClosure(sListName)
}).addStyleClass(CSS_CLASS + "Btn" + sListName.charAt(0).toUpperCase() + sListName.slice(1));
this._oSegmentedButton.addButton(oButton, true);
}
}, this);
return this;
};
/**
* Sets icon in details page
* @param {sap.m.MessagePopoverItem} oMessagePopoverItem
* @param {sap.m.StandardListItem} oListItem
* @private
*/
MessagePopover.prototype._setIcon = function (oMessagePopoverItem, oListItem) {
this.<API key> = CSS_CLASS + "DescIcon" + oMessagePopoverItem.getType();
this._oMessageIcon = new Icon({
src: oListItem.getIcon()
})
.addStyleClass(CSS_CLASS + "DescIcon")
.addStyleClass(this.<API key>);
this._detailsPage.addContent(this._oMessageIcon);
};
/**
* Sets title part of details page
* @param {sap.m.MessagePopoverItem} oMessagePopoverItem
* @private
*/
MessagePopover.prototype._setTitle = function (oMessagePopoverItem) {
this._oMessageTitleText = new Text(this.getId() + 'MessageTitleText', {
text: oMessagePopoverItem.getTitle()
}).addStyleClass('<API key>');
this._detailsPage.addAggregation("content", this._oMessageTitleText);
};
/**
* Sets description text part of details page
* When markup description is used it is sanitized within it's container's setter method (MessagePopoverItem)
* @param {sap.m.MessagePopoverItem} oMessagePopoverItem
* @private
*/
MessagePopover.prototype._setDescription = function (oMessagePopoverItem) {
if (oMessagePopoverItem.<API key>()) {
// description is sanitized in MessagePopoverItem.setDescription()
this.<API key> = new HTML(this.getId() + 'MarkupDescription', {
content: "<div class='markupDescription'>" + oMessagePopoverItem.getDescription() + "</div>"
});
} else {
this.<API key> = new Text(this.getId() + '<API key>', {
text: oMessagePopoverItem.getDescription()
}).addStyleClass('<API key>');
}
this._detailsPage.addContent(this.<API key>);
};
MessagePopover.prototype.<API key> = 0;
MessagePopover.prototype._validateURL = function (sUrl) {
if (jQuery.sap.validateUrl(sUrl)) {
return sUrl;
}
jQuery.sap.log.warning("You have entered invalid URL");
return '';
};
MessagePopover.prototype._queueValidation = function (href) {
var fnAsyncURLHandler = this.getAsyncURLHandler();
var iValidationTaskId = ++this.<API key>;
var oPromiseArgument = {};
var oPromise = new window.Promise(function(resolve, reject) {
oPromiseArgument.resolve = resolve;
oPromiseArgument.reject = reject;
var config = {
url: href,
id: iValidationTaskId,
promise: oPromiseArgument
};
fnAsyncURLHandler(config);
});
oPromise.id = iValidationTaskId;
return oPromise;
};
MessagePopover.prototype._getTagPolicy = function () {
var that = this,
i;
/*global html*/
var defaultTagPolicy = html.makeTagPolicy(this._validateURL());
return function customTagPolicy(tagName, attrs) {
var href,
validateLink = false;
if (tagName.toUpperCase() === "A") {
for (i = 0; i < attrs.length;) {
// if there is href the link should be validated, href's value is on position(i+1)
if (attrs[i] === "href") {
validateLink = true;
href = attrs[i + 1];
attrs.splice(0, 2);
continue;
}
i += 2;
}
}
// let the default sanitizer do its work
// it won't see the href attribute
attrs = defaultTagPolicy(tagName, attrs);
// if we detected a link before, we modify the <A> tag
// and keep the link in a dataset attribute
if (validateLink && typeof that.getAsyncURLHandler() === "function") {
attrs = attrs || [];
var done = false;
// first check if there is a class attribute and enrich it with '<API key>'
for (i = 0; i < attrs.length; i += 2) {
if (attrs[i] === "class") {
attrs[i + 1] += "<API key> <API key>";
done = true;
break;
}
}
// check for existing id
var indexOfId = attrs.indexOf("id");
if (indexOfId > -1) {
// we start backwards
attrs.splice(indexOfId + 1, 1);
attrs.splice(indexOfId, 1);
}
// if no class attribute was found, add one
if (!done) {
attrs.unshift("<API key> <API key>");
attrs.unshift("class");
}
var oValidation = that._queueValidation(href);
// add other attributes
attrs.push("href");
// the link is deactivated via class names later read by event delegate on the description page
attrs.push(href);
// let the page open in another window, so state is preserved
attrs.push("target");
attrs.push("_blank");
// use id here as data attributes are not passing through caja
attrs.push("id");
attrs.push("sap-ui-" + that.getId() + "-<API key>-" + oValidation.id);
oValidation
.then(function (result) {
// Update link in output
var $link = jQuery.sap.byId("sap-ui-" + that.getId() + "-<API key>-" + result.id);
if (result.allowed) {
jQuery.sap.log.info("Allow link " + href);
} else {
jQuery.sap.log.info("Disallow link " + href);
}
// Adapt the link style
$link.removeClass('<API key>');
$link.toggleClass('<API key>', !result.allowed);
that.fireUrlValidated();
})
.catch(function () {
jQuery.sap.log.warning("Async URL validation could not be performed.");
});
}
return attrs;
};
};
/**
* Perform description sanitization based on Caja HTML sanitizer
* @param {sap.m.MessagePopoverItem} oMessagePopoverItem
* @private
*/
MessagePopover.prototype.<API key> = function (oMessagePopoverItem) {
jQuery.sap.require("jquery.sap.encoder");
jQuery.sap.require("sap.ui.thirdparty.caja-html-sanitizer");
var tagPolicy = this._getTagPolicy();
/*global html*/
var sanitized = html.sanitizeWithPolicy(oMessagePopoverItem.getDescription(), tagPolicy);
oMessagePopoverItem.setDescription(sanitized);
this._setDescription(oMessagePopoverItem);
};
/**
* Handles click of the ListItems
*
* @param {jQuery.Event} oEvent ListItem click event object
* @private
*/
MessagePopover.prototype._fnHandleItemPress = function (oEvent) {
var oListItem = oEvent.getParameter("listItem"),
oMessagePopoverItem = oListItem.<API key>;
var asyncDescHandler = this.<API key>();
var <API key> = function (suppressNavigate) {
this._setTitle(oMessagePopoverItem);
this.<API key>(oMessagePopoverItem);
this._setIcon(oMessagePopoverItem, oListItem);
this.fireLongtextLoaded();
if (!suppressNavigate) {
this._navContainer.to(this._detailsPage);
}
}.bind(this);
this.<API key> = this.<API key> || '';
this.fireItemSelect({
item: oMessagePopoverItem,
messageTypeFilter: this.<API key>()
});
this._detailsPage.destroyContent();
if (typeof asyncDescHandler === "function" && !!oMessagePopoverItem.getLongtextUrl()) {
// Set markupDescription to true as markup description should be processed as markup
oMessagePopoverItem.<API key>(true);
var oPromiseArgument = {};
var oPromise = new window.Promise(function (resolve, reject) {
oPromiseArgument.resolve = resolve;
oPromiseArgument.reject = reject;
});
var proceed = function () {
this._detailsPage.setBusy(false);
<API key>(true);
}.bind(this);
oPromise
.then(function () {
proceed();
})
.catch(function () {
jQuery.sap.log.warning("Async description loading could not be performed.");
proceed();
});
this._navContainer.to(this._detailsPage);
this._detailsPage.setBusy(true);
asyncDescHandler({
promise: oPromiseArgument,
item: oMessagePopoverItem
});
} else {
<API key>();
}
this._listPage.$().attr("aria-hidden", "true");
};
/**
* Handles click of the BackButton
*
* @private
*/
MessagePopover.prototype._fnHandleBackPress = function () {
this._listPage.$().removeAttr("aria-hidden");
this._navContainer.back();
};
/**
* Handles click of the SegmentedButton
*
* @param {string} sCurrentListName ListName to be shown
* @private
*/
MessagePopover.prototype._fnFilterList = function (sCurrentListName) {
LIST_TYPES.forEach(function (sListIterName) {
if (sListIterName != sCurrentListName && this._oLists[sListIterName].getVisible()) {
// Hide Lists if they are visible and their name is not the same as current list name
this._oLists[sListIterName].setVisible(false);
}
}, this);
this._sCurrentList = sCurrentListName;
this._oLists[sCurrentListName].setVisible(true);
this._expandMsgPopover();
this.fireListSelect({messageTypeFilter: this.<API key>()});
};
/**
* Returns current selected List name
*
* @returns {string} Current list name
* @private
*/
MessagePopover.prototype.<API key> = function () {
return this._sCurrentList == "all" ? "" : this._sCurrentList;
};
/**
* Handles navigate event of the NavContainer
*
* @private
*/
MessagePopover.prototype._navigate = function () {
if (this._isListPage()) {
this._oRestoreFocus = jQuery(document.activeElement);
}
};
/**
* Handles navigate event of the NavContainer
*
* @private
*/
MessagePopover.prototype._afterNavigate = function () {
// Just wait for the next tick to apply the focus
jQuery.sap.delayedCall(0, this, this._restoreFocus);
};
/**
* Checks whether the current page is ListPage
*
* @returns {boolean} Whether the current page is ListPage
* @private
*/
MessagePopover.prototype._isListPage = function () {
return (this._navContainer.getCurrentPage() == this._listPage);
};
/**
* Sets initial focus of the control
*
* @private
*/
MessagePopover.prototype._setInitialFocus = function () {
if (this._isListPage()) {
// if current page is the list page - set initial focus to the list.
// otherwise use default functionality built-in the popover
this._oPopover.setInitialFocus(this._oLists[this._sCurrentList]);
}
};
/**
* Restores the focus after navigation
*
* @private
*/
MessagePopover.prototype._restoreFocus = function () {
if (this._isListPage()) {
var oRestoreFocus = this._oRestoreFocus && this._oRestoreFocus.control(0);
if (oRestoreFocus) {
oRestoreFocus.focus();
}
} else {
this._oBackButton.focus();
}
};
/**
* Restores the state defined by the initiallyExpanded property of the MessagePopover
* @private
*/
MessagePopover.prototype.<API key> = function () {
if (this.<API key>()) {
this._fnFilterList("all");
this._oSegmentedButton.setSelectedButton(null);
} else {
this._collapseMsgPopover();
}
};
/**
* Expands the MessagePopover so that the width and height are equal
* @private
*/
MessagePopover.prototype._expandMsgPopover = function () {
this._oPopover
.setContentHeight(this._oPopover.getContentWidth())
.removeStyleClass(CSS_CLASS + "-init");
};
/**
* Sets the height of the MessagePopover to auto so that only the header with
* the SegmentedButton is visible
* @private
*/
MessagePopover.prototype._collapseMsgPopover = function () {
LIST_TYPES.forEach(function (sListName) {
this._oLists[sListName].setVisible(false);
}, this);
this._oPopover
.addStyleClass(CSS_CLASS + "-init")
.setContentHeight("auto");
this._oSegmentedButton.setSelectedButton("none");
};
/**
* Opens the MessagePopover
*
* @param {sap.ui.core.Control} oControl Control which opens the MessagePopover
* @returns {sap.m.MessagePopover} Reference to the 'this' for chaining purposes
* @public
* @ui5-metamodel
*/
MessagePopover.prototype.openBy = function (oControl) {
var <API key> = this._oPopover.getAggregation("_popup"),
oParent = oControl.getParent();
// If MessagePopover is opened from an instance of sap.m.Toolbar and is instance of sap.m.Popover remove the Arrow
if (<API key> instanceof Popover) {
if ((oParent instanceof Toolbar || oParent instanceof Bar || oParent instanceof SemanticPage)) {
<API key>.setShowArrow(false);
} else {
<API key>.setShowArrow(true);
}
}
if (this._oPopover) {
this.<API key>();
this._oPopover.openBy(oControl);
}
return this;
};
/**
* Closes the MessagePopover
*
* @returns {sap.m.MessagePopover} Reference to the 'this' for chaining purposes
* @public
*/
MessagePopover.prototype.close = function () {
if (this._oPopover) {
this._oPopover.close();
}
return this;
};
/**
* The method checks if the MessagePopover is open. It returns true when the MessagePopover is currently open
* (this includes opening and closing animations), otherwise it returns false
*
* @public
* @returns {boolean} Whether the MessagePopover is open
*/
MessagePopover.prototype.isOpen = function () {
return this._oPopover.isOpen();
};
/**
* This method toggles between open and closed state of the MessagePopover instance.
* oControl parameter is mandatory in the same way as in 'openBy' method
*
* @param {sap.ui.core.Control} oControl Control which opens the MessagePopover
* @returns {sap.m.MessagePopover} Reference to the 'this' for chaining purposes
* @public
*/
MessagePopover.prototype.toggle = function (oControl) {
if (this.isOpen()) {
this.close();
} else {
this.openBy(oControl);
}
return this;
};
/**
* The method sets the placement position of the MessagePopover. Only accepted Values are:
* sap.m.PlacementType.Top, sap.m.PlacementType.Bottom and sap.m.PlacementType.Vertical
*
* @param {sap.m.PlacementType} sPlacement Placement type
* @returns {sap.m.MessagePopover} Reference to the 'this' for chaining purposes
*/
MessagePopover.prototype.setPlacement = function (sPlacement) {
this.setProperty("placement", sPlacement, true);
this._oPopover.setPlacement(sPlacement);
return this;
};
MessagePopover.prototype.getDomRef = function (sSuffix) {
return this._oPopover && this._oPopover.getAggregation("_popup").getDomRef(sSuffix);
};
["addStyleClass", "removeStyleClass", "toggleStyleClass", "hasStyleClass", "<API key>",
"<API key>", "getVisible", "setVisible", "getBusy", "setBusy"].forEach(function(sName){
MessagePopover.prototype[sName] = function() {
if (this._oPopover && this._oPopover[sName]) {
var oPopover = this._oPopover;
var res = oPopover[sName].apply(oPopover, arguments);
return res === oPopover ? this : res;
}
};
});
// The following inherited methods of this control are extended because this control uses ResponsivePopover for rendering
["setModel", "bindAggregation", "setAggregation", "insertAggregation", "addAggregation",
"removeAggregation", "<API key>", "destroyAggregation"].forEach(function (sFuncName) {
// First, they are saved for later reference
MessagePopover.prototype["_" + sFuncName + "Old"] = MessagePopover.prototype[sFuncName];
// Once they are called
MessagePopover.prototype[sFuncName] = function () {
// We immediately call the saved method first
var result = MessagePopover.prototype["_" + sFuncName + "Old"].apply(this, arguments);
// Then there is additional logic
// Mark items aggregation as changed and invalidate popover to trigger rendering
// See 'MessagePopover.prototype.<API key>'
this._bItemsChanged = true;
// If Popover dependency has already been instantiated ...
if (this._oPopover) {
// ... invalidate it
this._oPopover.invalidate();
}
// If the called method is 'removeAggregation' or '<API key>' ...
if (["removeAggregation", "<API key>"].indexOf(sFuncName) !== -1) {
// ... return the result of the operation
return result;
}
return this;
};
});
return MessagePopover;
}, /* bExport= */ true);
|
using BdlIBMS.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BdlIBMS.Repositories
{
public interface IUserRepository : IRepository<string, User>
{
User <API key>(string userName, string password);
}
}
|
<div class="table-overflow overflow">
<table class="efor-table-logs mdl-data-table mdl-shadow--2dp">
<thead>
<tr>
<th class="<API key>">Nombre</th>
<th class="<API key>" width="280px">Email</th>
<th class="<API key>">Apellido</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="user in users">
<td class="text-a-left" data-title="Nombre">{[{user.first_name}]}</td>
<td class="text-a-left" data-title="email">
<a ng-href="{[{user.email}]}" class="text-overflow">{[{user.email}]}</a>
</td>
<td class="text-a-left" data-title="Apellido">
{[{user.last_name}]}
<button id="menu-lower-right-{[{$index}]}" class="button-to-right mdl-button mdl-js-button mdl-button--icon">
<i class="material-icons">more_vert</i>
</button>
<ul class="efor-menu efor-menu__small mdl-menu <API key> mdl-js-menu <API key>" for="menu-lower-right-{[{$index}]}">
<li class="mdl-menu__item" ng-click="openDelete(user)">
<i class="material-icons">delete</i>
{[{'user_delete_title' | translate}]}
</li>
</ul>
</td>
</tr>
</tbody>
</table>
</div>
|
package com.github.particlesystem.modifiers;
import com.github.particlesystem.Particle;
public interface ParticleModifier {
/**
* modifies the specific value of a particle given the current miliseconds
*
* @param particle
* @param miliseconds
*/
void apply(Particle particle, long miliseconds);
}
|
package com.ftfl.icare;
import java.util.List;
import com.ftfl.icare.adapter.<API key>;
import com.ftfl.icare.adapter.CustomDoctorAdapter;
import com.ftfl.icare.helper.<API key>;
import com.ftfl.icare.helper.<API key>;
import com.ftfl.icare.model.Appointment;
import com.ftfl.icare.model.DoctorProfile;
import com.ftfl.icare.util.FragmentHome;
import android.app.AlertDialog;
import android.app.Fragment;
import android.app.FragmentManager;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
public class <API key> extends Fragment {
TextView mId_tv = null;
<API key> <API key>;
Appointment mAppointment;
FragmentManager mFrgManager;
Fragment mFragment;
Context mContext;
ListView mLvProfileList;
List<Appointment> mDoctorProfileList;
String mId;
Bundle mArgs = new Bundle();
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.<API key>, container,
false);
mContext = container.getContext();
<API key> = new <API key>(getActivity());
mDoctorProfileList = <API key>.appointmentList();
<API key> arrayAdapter = new <API key>(
getActivity(), mDoctorProfileList);
mLvProfileList = (ListView) view.findViewById(R.id.lvDoctorList);
mLvProfileList.setAdapter(arrayAdapter);
mLvProfileList
.<API key>(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view,
int position, long id) {
final int pos = position;
new AlertDialog.Builder(mContext)
.setTitle("Delete entry")
.setMessage(
"Are you sure you want to delete this entry?")
.setPositiveButton(android.R.string.yes,
new DialogInterface.OnClickListener() {
public void onClick(
DialogInterface dialog,
int which) {
<API key> = new <API key>(
getActivity());
if (<API key>.deleteData(Integer
.parseInt(mDoctorProfileList
.get(pos)
.getId())) == true) {
Toast toast = Toast
.makeText(
getActivity(),
"Successfully Deleted.",
Toast.LENGTH_LONG);
toast.show();
mFragment = new FragmentHome();
mFrgManager = getFragmentManager();
mFrgManager
.beginTransaction()
.replace(
R.id.content_frame,
mFragment)
.commit();
setTitle("Home");
} else {
Toast toast = Toast
.makeText(
getActivity(),
"Error, Couldn't inserted data to database",
Toast.LENGTH_LONG);
toast.show();
}
}
})
.setNegativeButton(android.R.string.no,
new DialogInterface.OnClickListener() {
public void onClick(
DialogInterface dialog,
int which) {
// do nothing
}
})
.setIcon(android.R.drawable.ic_dialog_alert)
.show();
}
});
return view;
}
public void setTitle(CharSequence title) {
getActivity().getActionBar().setTitle(title);
}
}
|
title: IDEA
date: 2017-05-27 10:50:00
tags: idea
categories: tools
- [Windows](https://download.jetbrains.com/idea/ideaIU-14.1.7.zip)
- [OS X](https://download.jetbrains.com/idea/ideaIU-14.1.7.dmg)
- [Linux](https://download.jetbrains.com/idea/ideaIU-14.1.7.tar.gz)
1. IntelliJ( D:\Portable\IntelliJ)
2. `${idea.home}/bin/idea.properties`
properties
# idea.config.path=${user.home}/.IntelliJIdea/config
idea.config.path=${idea.home}/config
# idea.system.path=${user.home}/.IntelliJIdea/system
idea.system.path=${idea.home}/system
3. `${idea.home}/bin/idea(64).exe.vmoptions``-Dfile.encoding=UTF-8`
4.
py
File > Settings > Editor > General > Appearance > Show line numbers
File > Settings > Editor > Colors & Fonts > Font
File > Settings > Keymap > Keymaps > Eclipse
File > Settings > Keymap > Main menu > Code > Completion > Cyclic Expand Word > Alt+. & Basic > Alt+/
File > Settings > Editor > General > Code Completion > Case sensitive completion=None
File > Settings > Editor > General > Code Folding > One-line methods=false
File > Settings > Editor > Code Style > Java > Imports > Class count to use import with ‘*’=99
File > Settings > Editor > File Encodings > IDE Encoding&Project Encoding&Default encoding > UTF-8
File > Settings > Editor > File Types > Ignore files and folders > *.idea;*.iml
## Plugin
- [JRebel](http://dl.zeroturnaround.com/idea/)
http://dl.zeroturnaround.com/idea/jr-ide-intellij-7.0.9_13-17.zip
> *lib${idea.home}/plugins*
|
package com.ymsino.water.service.manager.manager;
import java.util.List;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;
@WebService(name = "ManagerService", targetNamespace = "http://api.service.manager.esb.ymsino.com/")
public interface ManagerService {
/**
* (,)
*
* @param mangerId
* @param password
* @return returns com.ymsino.water.service.manager.manager.ManagerReturn
*/
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "login", targetNamespace = "http://api.service.manager.esb.ymsino.com/", className = "com.ymsino.water.service.manager.manager.Login")
@ResponseWrapper(localName = "loginResponse", targetNamespace = "http://api.service.manager.esb.ymsino.com/", className = "com.ymsino.water.service.manager.manager.LoginResponse")
public ManagerReturn login(@WebParam(name = "mangerId", targetNamespace = "") String mangerId, @WebParam(name = "password", targetNamespace = "") String password);
/**
*
*
* @param managerSaveParam
* @return returns java.lang.Boolean
*/
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "save", targetNamespace = "http://api.service.manager.esb.ymsino.com/", className = "com.ymsino.water.service.manager.manager.Save")
@ResponseWrapper(localName = "saveResponse", targetNamespace = "http://api.service.manager.esb.ymsino.com/", className = "com.ymsino.water.service.manager.manager.SaveResponse")
public Boolean save(@WebParam(name = "managerSaveParam", targetNamespace = "") ManagerSaveParam managerSaveParam);
/**
*
*
* @param queryParam
* @param startRow
* @param pageSize
* @return returns java.util.List<com.ymsino.water.service.manager.manager.ManagerReturn>
*/
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "getListpager", targetNamespace = "http://api.service.manager.esb.ymsino.com/", className = "com.ymsino.water.service.manager.manager.GetListpager")
@ResponseWrapper(localName = "<API key>", targetNamespace = "http://api.service.manager.esb.ymsino.com/", className = "com.ymsino.water.service.manager.manager.<API key>")
public List<ManagerReturn> getListpager(@WebParam(name = "queryParam", targetNamespace = "") QueryParam queryParam, @WebParam(name = "startRow", targetNamespace = "") Integer startRow, @WebParam(name = "pageSize", targetNamespace = "") Integer pageSize);
/**
* ()
*
* @param mangerId
* @return returns java.lang.Boolean
*/
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "closeStatus", targetNamespace = "http://api.service.manager.esb.ymsino.com/", className = "com.ymsino.water.service.manager.manager.CloseStatus")
@ResponseWrapper(localName = "closeStatusResponse", targetNamespace = "http://api.service.manager.esb.ymsino.com/", className = "com.ymsino.water.service.manager.manager.CloseStatusResponse")
public Boolean closeStatus(@WebParam(name = "mangerId", targetNamespace = "") String mangerId);
/**
*
*
* @param managerModifyParam
* @return returns java.lang.Boolean
*/
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "modify", targetNamespace = "http://api.service.manager.esb.ymsino.com/", className = "com.ymsino.water.service.manager.manager.Modify")
@ResponseWrapper(localName = "modifyResponse", targetNamespace = "http://api.service.manager.esb.ymsino.com/", className = "com.ymsino.water.service.manager.manager.ModifyResponse")
public Boolean modify(@WebParam(name = "managerModifyParam", targetNamespace = "") ManagerModifyParam managerModifyParam);
/**
*
*
* @param queryParam
* @return returns java.lang.Integer
*/
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "getCount", targetNamespace = "http://api.service.manager.esb.ymsino.com/", className = "com.ymsino.water.service.manager.manager.GetCount")
@ResponseWrapper(localName = "getCountResponse", targetNamespace = "http://api.service.manager.esb.ymsino.com/", className = "com.ymsino.water.service.manager.manager.GetCountResponse")
public Integer getCount(@WebParam(name = "queryParam", targetNamespace = "") QueryParam queryParam);
/**
* ()
*
* @param managerId
* @return returns java.lang.Boolean
*/
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "openStatus", targetNamespace = "http://api.service.manager.esb.ymsino.com/", className = "com.ymsino.water.service.manager.manager.OpenStatus")
@ResponseWrapper(localName = "openStatusResponse", targetNamespace = "http://api.service.manager.esb.ymsino.com/", className = "com.ymsino.water.service.manager.manager.OpenStatusResponse")
public Boolean openStatus(@WebParam(name = "managerId", targetNamespace = "") String managerId);
/**
* id
*
* @param mangerId
* @return returns com.ymsino.water.service.manager.manager.ManagerReturn
*/
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "getByManagerId", targetNamespace = "http://api.service.manager.esb.ymsino.com/", className = "com.ymsino.water.service.manager.manager.GetByManagerId")
@ResponseWrapper(localName = "<API key>", targetNamespace = "http://api.service.manager.esb.ymsino.com/", className = "com.ymsino.water.service.manager.manager.<API key>")
public ManagerReturn getByManagerId(@WebParam(name = "mangerId", targetNamespace = "") String mangerId);
}
|
# -*- coding: utf-8 -*-
import allure
from selenium.webdriver.common.by import By
from .base import BasePage
from .elements import SimpleInput, SimpleText
from .blocks.nav import NavBlock
class <API key>(object):
TITLE_LOCATOR = (By.CSS_SELECTOR, '#movie h2')
COUNTRY_LOCATOR = (By.NAME, 'country')
DIRECTOR_LOCATOR = (By.NAME, 'director')
WRITER_LOCATOR = (By.NAME, 'writer')
PRODUCER_LOCATOR = (By.NAME, 'producer')
EDIT_BUTTON_LOCATOR = (By.CSS_SELECTOR, 'img[title="Edit"]')
<API key> = (By.CSS_SELECTOR, 'img[title="Remove"]')
class BrowseMoviePage(BasePage):
def __init__(self, driver):
super(BrowseMoviePage, self).__init__(driver)
self.nav = NavBlock(driver)
title = SimpleText(<API key>.TITLE_LOCATOR)
director = SimpleText(<API key>.DIRECTOR_LOCATOR)
writer = SimpleText(<API key>.WRITER_LOCATOR)
producer = SimpleText(<API key>.PRODUCER_LOCATOR)
@allure.step('Нажмем на кноку "Edit"')
def click_edit_button(self):
"""
:rtype: EditMoviePage
"""
self._click(<API key>.EDIT_BUTTON_LOCATOR)
return EditMoviePage(self._driver)
@allure.step('Нажмем на кноку "Remove"')
def click_remove_button(self):
"""
:rtype: HomePage
"""
self._click(<API key>.<API key>)
self.alert_accept()
from .home import HomePage
return HomePage(self._driver)
class <API key>(object):
TITLE_INPUT_LOCATOR = (By.NAME, 'name')
<API key> = (By.CSS_SELECTOR, 'input[name="name"].error')
<API key> = (By.NAME, 'aka')
YEAR_INPUT_LOCATOR = (By.NAME, 'year')
<API key> = (By.CSS_SELECTOR, 'input[name="year"].error')
<API key> = (By.NAME, 'duration')
<API key> = (By.NAME, 'trailer')
<API key> = (By.NAME, 'format')
<API key> = (By.NAME, 'country')
<API key> = (By.NAME, 'director')
<API key> = (By.NAME, 'writer')
<API key> = (By.NAME, 'producer')
SAVE_BUTTON_LOCATOR = (By.CSS_SELECTOR, 'img[title="Save"]')
class AddMoviePage(BasePage):
def __init__(self, driver):
super(AddMoviePage, self).__init__(driver)
self.nav = NavBlock(driver)
title = SimpleInput(<API key>.TITLE_INPUT_LOCATOR, 'название фильма')
also_know_as = SimpleInput(<API key>.<API key>, 'оригинальное название фильма')
year = SimpleInput(<API key>.YEAR_INPUT_LOCATOR, 'год')
duration = SimpleInput(<API key>.<API key>, 'продолжительность')
trailer_url = SimpleInput(<API key>.<API key>, 'адрес трейлера')
format = SimpleInput(<API key>.<API key>, 'формат')
country = SimpleInput(<API key>.<API key>, 'страну')
director = SimpleInput(<API key>.<API key>, 'директора')
writer = SimpleInput(<API key>.<API key>, 'сценариста')
producer = SimpleInput(<API key>.<API key>, 'продюсера')
@allure.step('Нажмем на кноку "Save"')
def click_save_button(self):
"""
:rtype: BrowseMoviePage
"""
self._click(<API key>.SAVE_BUTTON_LOCATOR)
return BrowseMoviePage(self._driver)
def <API key>(self):
"""
:rtype: bool
"""
return self._is_element_present(<API key>.<API key>)
def <API key>(self):
"""
:rtype: bool
"""
return self._is_element_present(<API key>.<API key>)
class <API key>(object):
<API key> = (By.CSS_SELECTOR, 'img[title="Remove"]')
class EditMoviePage(AddMoviePage):
@allure.step('Нажмем на кноку "Remove"')
def click_remove_button(self):
"""
:rtype: HomePage
"""
self._click(<API key>.<API key>)
self.alert_accept()
from .home import HomePage
return HomePage(self._driver)
|
Contextual Image Delivery
==========================
This is an optional module for the SDL Digital Experience Accelerator Java web application. It contains an implementation
of interface `MediaHelper` that uses Tridion Contextual Image Delivery (CID) to resize images on the server side.
Note that in order to use Tridion CID, you need a license. If you do not have a license for CID or if you are not sure,
then contact SDL if you want to use CID.
You can also choose to not use CID. The web application will then use a different implementation of `MediaHelper` to
resize images.
In the `dxa-common-api` there is a Spring factory bean `MediaHelperFactory` that automatically chooses the
implementation of `MediaHelper` to use. It does this by checking if the CID-specific implementation is available in the
classpath. If it is, it will use the CID-specific implementation, otherwise it will use the default implementation.
## Enabling or disabling the use of CID
When you activate the Maven profile `cid`, this module and its dependencies will be included in the project. This means
you can compile the web application with support for CID by compiling the project with:
mvn clean package -P cid
If you do not want to use CID, simply leave off `-P cid`.
Note that if you do use CID, you will have to edit the configuration file `cd_ambient_conf` in
`dxa-webapp\src\main\resources` to enable the CID Ambient Data Framework cartridge.
|
// DZYSquareCell.h
// budejie
#import <UIKit/UIKit.h>
@class DZYSquareModel;
@interface DZYSquareCell : <API key>
@property (nonatomic, strong) DZYSquareModel *squareModel;
@end
|
package app.yweather.com.yweather.util;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Build;
import android.preference.PreferenceManager;
import org.json.JSONArray;
import org.json.JSONObject;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
/**
* JSON
*/
public class Utility {
//JSON
public static void <API key>(Context context, String response){
try{
JSONArray jsonObjs = new JSONObject(response).getJSONArray("results");
JSONObject locationJsonObj = ((JSONObject)jsonObjs.opt(0)).getJSONObject("location");
String id = locationJsonObj.getString("id");
String name = locationJsonObj.getString("name");
JSONObject nowJsonObj = ((JSONObject)jsonObjs.opt(0)).getJSONObject("now");
String text = nowJsonObj.getString("text");
String temperature = nowJsonObj.getString("temperature");
String wind = nowJsonObj.getString("wind_direction");
String lastUpdateTime = ((JSONObject) jsonObjs.opt(0)).getString("last_update");
lastUpdateTime = lastUpdateTime.substring(lastUpdateTime.indexOf("+") + 1,lastUpdateTime.length());
LogUtil.e("Utility", "name:" + name + ",text:"+ text + "wind:" + wind + ",lastUpdateTime:" + lastUpdateTime);
saveWeatherInfo(context,name,id,temperature,text,lastUpdateTime);
}catch (Exception e){
e.printStackTrace();
}
}
/**
* SharedPreferences
* context : Context
* cityName :
* cityId : id
* temperature:
* text
* lastUpdateTime :
* 2016-07-16T13:10:00+08:00
*/
@TargetApi(Build.VERSION_CODES.N)
public static void saveWeatherInfo(Context context, String cityName, String cityId, String temperature,
String text, String lastUpdateTime){
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMd", Locale.CANADA);
SharedPreferences.Editor editor = PreferenceManager.<API key>(context).edit();
editor.putBoolean("city_selected",true);
editor.putString("city_name",cityName);
editor.putString("city_id",cityId);
editor.putString("temperature",temperature);
editor.putString("text",text);
editor.putString("last_update_time",lastUpdateTime);
editor.putString("current_date",sdf.format(new Date()));
editor.commit();
}
}
|
package pl.touk.nussknacker.engine.flink.util.timestamp
import com.github.ghik.silencer.silent
import org.apache.flink.streaming.api.functions.<API key>
import org.apache.flink.streaming.api.watermark.Watermark
import scala.annotation.nowarn
@silent("deprecated")
@nowarn("cat=deprecation")
class <API key>[T](<API key>: Long)
extends <API key>[T] with Serializable {
private var currentMaxTimestamp = Long.MinValue + <API key>
private var <API key> = Long.MinValue
override def extractTimestamp(element: T, <API key>: Long): Long = {
if (<API key> > currentMaxTimestamp)
currentMaxTimestamp = <API key>
<API key>
}
override def getCurrentWatermark: Watermark = {
val potentialWM = currentMaxTimestamp - <API key>
if (potentialWM >= <API key>)
<API key> = potentialWM
new Watermark(<API key>)
}
}
|
/*jslint browser: true*/
/*global $, jQuery, alert*/
(function ($) {
"use strict";
$(document).ready(function () {
$("input[name=dob]").datepicker({
dateFormat: 'yy-mm-dd',
inline: true,
showOtherMonths: true
});
});
$(document).ready(function () {
$("input[name='rep_password']").focusout(function () {
var p1 = $('input[name="password"]').val(), p2 = $('input[name="rep_password"]').val();
if (p1 !== p2) {
$('#passDM').show(300);
} else if (p1 === "") {
$('#passDM').show(300);
} else {
$('#passDM').hide(300);
}
});
});
$(document).ready(function () {
$("input[name=password]").focusin(function () {
$('#passDM').hide(300);
});
$("input[name=rep_password]").focusin(function () {
$('#passDM').hide(300);
});
});
}(jQuery));
|
// Code generated from specification version 7.7.0: DO NOT EDIT
package esapi
import (
"context"
"io"
"net/http"
"strings"
)
func <API key>(t Transport) <API key> {
return func(name string, body io.Reader, o ...func(*<API key>)) (*Response, error) {
var r = <API key>{Name: name, Body: body}
for _, f := range o {
f(&r)
}
return r.Do(r.ctx, t)
}
}
// <API key> -
// This API is experimental.
type <API key> func(name string, body io.Reader, o ...func(*<API key>)) (*Response, error)
// <API key> configures the Autoscaling Put Autoscaling Policy API request.
type <API key> struct {
Body io.Reader
Name string
Pretty bool
Human bool
ErrorTrace bool
FilterPath []string
Header http.Header
ctx context.Context
}
// Do executes the request and returns response or error.
func (r <API key>) Do(ctx context.Context, transport Transport) (*Response, error) {
var (
method string
path strings.Builder
params map[string]string
)
method = "PUT"
path.Grow(1 + len("_autoscaling") + 1 + len("policy") + 1 + len(r.Name))
path.WriteString("/")
path.WriteString("_autoscaling")
path.WriteString("/")
path.WriteString("policy")
path.WriteString("/")
path.WriteString(r.Name)
params = make(map[string]string)
if r.Pretty {
params["pretty"] = "true"
}
if r.Human {
params["human"] = "true"
}
if r.ErrorTrace {
params["error_trace"] = "true"
}
if len(r.FilterPath) > 0 {
params["filter_path"] = strings.Join(r.FilterPath, ",")
}
req, err := newRequest(method, path.String(), r.Body)
if err != nil {
return nil, err
}
if len(params) > 0 {
q := req.URL.Query()
for k, v := range params {
q.Set(k, v)
}
req.URL.RawQuery = q.Encode()
}
if r.Body != nil {
req.Header[headerContentType] = <API key>
}
if len(r.Header) > 0 {
if len(req.Header) == 0 {
req.Header = r.Header
} else {
for k, vv := range r.Header {
for _, v := range vv {
req.Header.Add(k, v)
}
}
}
}
if ctx != nil {
req = req.WithContext(ctx)
}
res, err := transport.Perform(req)
if err != nil {
return nil, err
}
response := Response{
StatusCode: res.StatusCode,
Body: res.Body,
Header: res.Header,
}
return &response, nil
}
// WithContext sets the request context.
func (f <API key>) WithContext(v context.Context) func(*<API key>) {
return func(r *<API key>) {
r.ctx = v
}
}
// WithPretty makes the response body pretty-printed.
func (f <API key>) WithPretty() func(*<API key>) {
return func(r *<API key>) {
r.Pretty = true
}
}
// WithHuman makes statistical values human-readable.
func (f <API key>) WithHuman() func(*<API key>) {
return func(r *<API key>) {
r.Human = true
}
}
// WithErrorTrace includes the stack trace for errors in the response body.
func (f <API key>) WithErrorTrace() func(*<API key>) {
return func(r *<API key>) {
r.ErrorTrace = true
}
}
// WithFilterPath filters the properties of the response body.
func (f <API key>) WithFilterPath(v ...string) func(*<API key>) {
return func(r *<API key>) {
r.FilterPath = v
}
}
// WithHeader adds the headers to the HTTP request.
func (f <API key>) WithHeader(h map[string]string) func(*<API key>) {
return func(r *<API key>) {
if r.Header == nil {
r.Header = make(http.Header)
}
for k, v := range h {
r.Header.Add(k, v)
}
}
}
// WithOpaqueID adds the X-Opaque-Id header to the HTTP request.
func (f <API key>) WithOpaqueID(s string) func(*<API key>) {
return func(r *<API key>) {
if r.Header == nil {
r.Header = make(http.Header)
}
r.Header.Set("X-Opaque-Id", s)
}
}
|
layout: post
title: Underperformance of Lenovo ThinkBook Intel i7-8565U with Windows 10 pro
date: 2021-07-07
type: post
published: true
status: publish
categories: [travel]
tags:
author:
login: MiguelGamboa
email:
display_name: Miguel Gamboa
The stack Lenovo-Intel-Win10 is a completely rubbish for remote software developer work. Other guys with the same CPU and Windows 10 on different brand laptops have no breaks of performance as I am experiencing in my laptop.
Simply put, every time I am working with Zoom or Skype my CPU stays limited to 0.39GHz! After a while it returns to normality, as you can observe in next screen shots during and after a CPU break.
<img src="/assets/lenovo-i7-CPU-0.39ghz.png" width="300px">
<img src="/assets/lenovo-i7-CPU-4.02ghz.png" width="300px">
|
# -*- coding: utf-8 -*-
import unittest
import pykintone
from pykintone.model import kintoneModel
import tests.envs as envs
class TestAppModelSimple(kintoneModel):
def __init__(self):
super(TestAppModelSimple, self).__init__()
self.my_key = ""
self.stringField = ""
class TestComment(unittest.TestCase):
def test_comment(self):
app = pykintone.load(envs.FILE_PATH).app()
model = TestAppModelSimple()
model.my_key = "comment_test"
model.stringField = "comment_test_now"
result = app.create(model)
self.assertTrue(result.ok) # confirm create the record to test comment
_record_id = result.record_id
# create comment
r_created = app.comment(_record_id).create("")
self.assertTrue(r_created.ok)
# it requires Administrator user is registered in kintone
r_created_m = app.comment(_record_id).create("", [("Administrator", "USER")])
self.assertTrue(r_created_m.ok)
# select comment
r_selected = app.comment(_record_id).select(True, 0, 10)
self.assertTrue(r_selected.ok)
self.assertTrue(2, len(r_selected.raw_comments))
comments = r_selected.comments()
self.assertTrue(1, len(comments[-1].mentions))
# delete comment
for c in comments:
r_deleted = app.comment(_record_id).delete(c.comment_id)
self.assertTrue(r_deleted.ok)
r_selected = app.comment(_record_id).select()
self.assertEqual(0, len(r_selected.raw_comments))
# done test
app.delete(_record_id)
|
package com.iclockwork.percy.wechat4j;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
public class HelloWorldTest {
/**
* helloworld
*/
private HelloWorld helloworld;
@BeforeMethod
public void setUp() throws Exception {
helloworld = new HelloWorld();
}
@AfterMethod
public void tearDown() throws Exception {
}
@Test
public void testHello() throws Exception {
helloworld.hello();
}
}
|
package com.scicrop.se.commons.utils;
import java.io.IOException;
import org.apache.commons.logging.Log;
import org.apache.log4j.ConsoleAppender;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.log4j.PatternLayout;
import org.apache.log4j.RollingFileAppender;
public class LogHelper {
private LogHelper(){}
private static LogHelper INSTANCE = null;
public static LogHelper getInstance(){
if(INSTANCE == null) INSTANCE = new LogHelper();
return INSTANCE;
}
public void setLogger(String logNamePattern, String logFolder){
String logPath = logFolder + Constants.APP_NAME+"_"+logNamePattern+".log";
Logger rootLogger = Logger.getRootLogger();
rootLogger.setLevel(Level.INFO);
PatternLayout layout = new PatternLayout("%d{ISO8601} [%t] %-5p %c %x - %m%n");
rootLogger.addAppender(new ConsoleAppender(layout));
try {
RollingFileAppender fileAppender = new RollingFileAppender(layout, logPath);
rootLogger.addAppender(fileAppender);
} catch (IOException e) {
System.err.println("Failed to find/access "+logPath+" !");
System.exit(1);
}
}
public void handleVerboseLog(boolean isVerbose, boolean isLog, Log log, char type, String data){
if(isLog){
logData(data, type, log);
}
if(isVerbose){
verbose(data, type);
}
}
public void logData(String data, char type, Log log){
switch (type) {
case 'i':
log.info(data);
break;
case 'w':
log.warn(data);
break;
case 'e':
log.error(data);
break;
default:
log.info(data);
break;
}
}
public void verbose(String data, char type){
switch (type) {
case 'e':
System.err.println(data);
break;
default:
System.out.println(data);
break;
}
}
}
|
function <API key> {
<
.SYNOPSIS
Adds an AWS::WAFv2::RuleGroup.CountAction resource property to the template.
.DESCRIPTION
Adds an AWS::WAFv2::RuleGroup.CountAction resource property to the template.
.LINK
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/<API key>.html
.FUNCTIONALITY
Vaporshell
[OutputType('Vaporshell.Resource.WAFv2.RuleGroup.CountAction')]
[cmdletbinding()]
Param
(
)
Begin {
$obj = [PSCustomObject]@{}
$commonParams = @('Verbose','Debug','ErrorAction','WarningAction','InformationAction','ErrorVariable','WarningVariable','InformationVariable','OutVariable','OutBuffer','PipelineVariable')
}
Process {
foreach ($key in $PSBoundParameters.Keys | Where-Object {$commonParams -notcontains $_}) {
switch ($key) {
Default {
$obj | Add-Member -MemberType NoteProperty -Name $key -Value $PSBoundParameters.$key
}
}
}
}
End {
$obj | Add-ObjectDetail -TypeName 'Vaporshell.Resource.WAFv2.RuleGroup.CountAction'
Write-Verbose "Resulting JSON from $($MyInvocation.MyCommand): `n`n$($obj | ConvertTo-Json -Depth 5)`n"
}
}
|
# -*- coding: utf-8 -*-
'''
The Salt Key backend API and interface used by the CLI. The Key class can be
used to manage salt keys directly without interfacing with the CLI.
'''
# Import python libs
from __future__ import absolute_import, print_function
import os
import copy
import json
import stat
import shutil
import fnmatch
import hashlib
import logging
# Import salt libs
import salt.crypt
import salt.utils
import salt.exceptions
import salt.utils.event
import salt.daemons.masterapi
from salt.utils import kinds
from salt.utils.event import tagify
# Import third party libs
# pylint: disable=import-error,no-name-in-module,redefined-builtin
import salt.ext.six as six
from salt.ext.six.moves import input
# pylint: enable=import-error,no-name-in-module,redefined-builtin
try:
import msgpack
except ImportError:
pass
log = logging.getLogger(__name__)
def get_key(opts):
if opts['transport'] in ('zeromq', 'tcp'):
return Key(opts)
else:
return RaetKey(opts)
class KeyCLI(object):
'''
Manage key CLI operations
'''
def __init__(self, opts):
self.opts = opts
if self.opts['transport'] in ('zeromq', 'tcp'):
self.key = Key(opts)
else:
self.key = RaetKey(opts)
def list_status(self, status):
'''
Print out the keys under a named status
:param str status: A string indicating which set of keys to return
'''
keys = self.key.list_keys()
if status.startswith('acc'):
salt.output.display_output(
{self.key.ACC: keys[self.key.ACC]},
'key',
self.opts
)
elif status.startswith(('pre', 'un')):
salt.output.display_output(
{self.key.PEND: keys[self.key.PEND]},
'key',
self.opts
)
elif status.startswith('rej'):
salt.output.display_output(
{self.key.REJ: keys[self.key.REJ]},
'key',
self.opts
)
elif status.startswith('den'):
if self.key.DEN:
salt.output.display_output(
{self.key.DEN: keys[self.key.DEN]},
'key',
self.opts
)
elif status.startswith('all'):
self.list_all()
def list_all(self):
'''
Print out all keys
'''
salt.output.display_output(
self.key.list_keys(),
'key',
self.opts)
def accept(self, match, include_rejected=False):
'''
Accept the keys matched
:param str match: A string to match against. i.e. 'web*'
:param bool include_rejected: Whether or not to accept a matched key that was formerly rejected
'''
def _print_accepted(matches, after_match):
if self.key.ACC in after_match:
accepted = sorted(
set(after_match[self.key.ACC]).difference(
set(matches.get(self.key.ACC, []))
)
)
for key in accepted:
print('Key for minion {0} accepted.'.format(key))
matches = self.key.name_match(match)
keys = {}
if self.key.PEND in matches:
keys[self.key.PEND] = matches[self.key.PEND]
if include_rejected and bool(matches.get(self.key.REJ)):
keys[self.key.REJ] = matches[self.key.REJ]
if not keys:
msg = (
'The key glob {0!r} does not match any unaccepted {1}keys.'
.format(match, 'or rejected ' if include_rejected else '')
)
print(msg)
raise salt.exceptions.SaltSystemExit(code=1)
if not self.opts.get('yes', False):
print('The following keys are going to be accepted:')
salt.output.display_output(
keys,
'key',
self.opts)
try:
veri = input('Proceed? [n/Y] ')
except KeyboardInterrupt:
raise SystemExit("\nExiting on CTRL-c")
if not veri or veri.lower().startswith('y'):
_print_accepted(
matches,
self.key.accept(
match_dict=keys,
include_rejected=include_rejected
)
)
else:
print('The following keys are going to be accepted:')
salt.output.display_output(
keys,
'key',
self.opts)
_print_accepted(
matches,
self.key.accept(
match_dict=keys,
include_rejected=include_rejected
)
)
def accept_all(self, include_rejected=False):
'''
Accept all keys
:param bool include_rejected: Whether or not to accept a matched key that was formerly rejected
'''
self.accept('*', include_rejected=include_rejected)
def delete(self, match):
'''
Delete the matched keys
:param str match: A string to match against. i.e. 'web*'
'''
def _print_deleted(matches, after_match):
deleted = []
for keydir in (self.key.ACC, self.key.PEND, self.key.REJ):
deleted.extend(list(
set(matches.get(keydir, [])).difference(
set(after_match.get(keydir, []))
)
))
for key in sorted(deleted):
print('Key for minion {0} deleted.'.format(key))
matches = self.key.name_match(match)
if not matches:
print(
'The key glob {0!r} does not match any accepted, unaccepted '
'or rejected keys.'.format(match)
)
raise salt.exceptions.SaltSystemExit(code=1)
if not self.opts.get('yes', False):
print('The following keys are going to be deleted:')
salt.output.display_output(
matches,
'key',
self.opts)
try:
veri = input('Proceed? [N/y] ')
except KeyboardInterrupt:
raise SystemExit("\nExiting on CTRL-c")
if veri.lower().startswith('y'):
_print_deleted(
matches,
self.key.delete_key(match_dict=matches)
)
else:
print('Deleting the following keys:')
salt.output.display_output(
matches,
'key',
self.opts)
_print_deleted(
matches,
self.key.delete_key(match_dict=matches)
)
def delete_all(self):
'''
Delete all keys
'''
self.delete('*')
def reject(self, match, include_accepted=False):
'''
Reject the matched keys
:param str match: A string to match against. i.e. 'web*'
:param bool include_accepted: Whether or not to accept a matched key that was formerly accepted
'''
def _print_rejected(matches, after_match):
if self.key.REJ in after_match:
rejected = sorted(
set(after_match[self.key.REJ]).difference(
set(matches.get(self.key.REJ, []))
)
)
for key in rejected:
print('Key for minion {0} rejected.'.format(key))
matches = self.key.name_match(match)
keys = {}
if self.key.PEND in matches:
keys[self.key.PEND] = matches[self.key.PEND]
if include_accepted and bool(matches.get(self.key.ACC)):
keys[self.key.ACC] = matches[self.key.ACC]
if not keys:
msg = 'The key glob {0!r} does not match any {1} keys.'.format(
match,
'accepted or unaccepted' if include_accepted else 'unaccepted'
)
print(msg)
return
if not self.opts.get('yes', False):
print('The following keys are going to be rejected:')
salt.output.display_output(
keys,
'key',
self.opts)
veri = input('Proceed? [n/Y] ')
if veri.lower().startswith('n'):
return
_print_rejected(
matches,
self.key.reject(
match_dict=matches,
include_accepted=include_accepted
)
)
def reject_all(self, include_accepted=False):
'''
Reject all keys
:param bool include_accepted: Whether or not to accept a matched key that was formerly accepted
'''
self.reject('*', include_accepted=include_accepted)
def print_key(self, match):
'''
Print out a single key
:param str match: A string to match against. i.e. 'web*'
'''
matches = self.key.key_str(match)
salt.output.display_output(
matches,
'key',
self.opts)
def print_all(self):
'''
Print out all managed keys
'''
self.print_key('*')
def finger(self, match):
'''
Print out the fingerprints for the matched keys
:param str match: A string to match against. i.e. 'web*'
'''
matches = self.key.finger(match)
salt.output.display_output(
matches,
'key',
self.opts)
def finger_all(self):
'''
Print out all fingerprints
'''
matches = self.key.finger('*')
salt.output.display_output(
matches,
'key',
self.opts)
def prep_signature(self):
'''
Searches for usable keys to create the
master public-key signature
'''
self.privkey = None
self.pubkey = None
# check given pub-key
if self.opts['pub']:
if not os.path.isfile(self.opts['pub']):
print('Public-key {0} does not exist'.format(self.opts['pub']))
return
self.pubkey = self.opts['pub']
# default to master.pub
else:
mpub = self.opts['pki_dir'] + '/' + 'master.pub'
if os.path.isfile(mpub):
self.pubkey = mpub
# check given priv-key
if self.opts['priv']:
if not os.path.isfile(self.opts['priv']):
print('Private-key {0} does not exist'.format(self.opts['priv']))
return
self.privkey = self.opts['priv']
# default to master_sign.pem
else:
mpriv = self.opts['pki_dir'] + '/' + 'master_sign.pem'
if os.path.isfile(mpriv):
self.privkey = mpriv
if not self.privkey:
if self.opts['auto_create']:
print('Generating new signing key-pair {0}.* in {1}'
''.format(self.opts['<API key>'],
self.opts['pki_dir']))
salt.crypt.gen_keys(self.opts['pki_dir'],
self.opts['<API key>'],
self.opts['keysize'],
self.opts.get('user'))
self.privkey = self.opts['pki_dir'] + '/' + self.opts['<API key>'] + '.pem'
else:
print('No usable private-key found')
return
if not self.pubkey:
print('No usable public-key found')
return
print('Using public-key {0}'.format(self.pubkey))
print('Using private-key {0}'.format(self.privkey))
if self.opts['signature_path']:
if not os.path.isdir(self.opts['signature_path']):
print('target directory {0} does not exist'
''.format(self.opts['signature_path']))
else:
self.opts['signature_path'] = self.opts['pki_dir']
sign_path = self.opts['signature_path'] + '/' + self.opts['<API key>']
self.key.gen_signature(self.privkey,
self.pubkey,
sign_path)
def run(self):
'''
Run the logic for saltkey
'''
if self.opts['gen_keys']:
self.key.gen_keys()
return
elif self.opts['gen_signature']:
self.prep_signature()
return
if self.opts['list']:
self.list_status(self.opts['list'])
elif self.opts['list_all']:
self.list_all()
elif self.opts['print']:
self.print_key(self.opts['print'])
elif self.opts['print_all']:
self.print_all()
elif self.opts['accept']:
self.accept(
self.opts['accept'],
include_rejected=self.opts['include_all']
)
elif self.opts['accept_all']:
self.accept_all(include_rejected=self.opts['include_all'])
elif self.opts['reject']:
self.reject(
self.opts['reject'],
include_accepted=self.opts['include_all']
)
elif self.opts['reject_all']:
self.reject_all(include_accepted=self.opts['include_all'])
elif self.opts['delete']:
self.delete(self.opts['delete'])
elif self.opts['delete_all']:
self.delete_all()
elif self.opts['finger']:
self.finger(self.opts['finger'])
elif self.opts['finger_all']:
self.finger_all()
else:
self.list_all()
class MultiKeyCLI(KeyCLI):
'''
Manage multiple key backends from the CLI
'''
def __init__(self, opts):
opts['__multi_key'] = True
super(MultiKeyCLI, self).__init__(opts)
# Remove the key attribute set in KeyCLI.__init__
delattr(self, 'key')
zopts = copy.copy(opts)
ropts = copy.copy(opts)
self.keys = {}
zopts['transport'] = 'zeromq'
self.keys['ZMQ Keys'] = KeyCLI(zopts)
ropts['transport'] = 'raet'
self.keys['RAET Keys'] = KeyCLI(ropts)
def _call_all(self, fun, *args):
'''
Call the given function on all backend keys
'''
for kback in self.keys:
print(kback)
getattr(self.keys[kback], fun)(*args)
def list_status(self, status):
self._call_all('list_status', status)
def list_all(self):
self._call_all('list_all')
def accept(self, match, include_rejected=False):
self._call_all('accept', match, include_rejected)
def accept_all(self, include_rejected=False):
self._call_all('accept_all', include_rejected)
def delete(self, match):
self._call_all('delete', match)
def delete_all(self):
self._call_all('delete_all')
def reject(self, match, include_accepted=False):
self._call_all('reject', match, include_accepted)
def reject_all(self, include_accepted=False):
self._call_all('reject_all', include_accepted)
def print_key(self, match):
self._call_all('print_key', match)
def print_all(self):
self._call_all('print_all')
def finger(self, match):
self._call_all('finger', match)
def finger_all(self):
self._call_all('finger_all')
def prep_signature(self):
self._call_all('prep_signature')
class Key(object):
'''
The object that encapsulates saltkey actions
'''
ACC = 'minions'
PEND = 'minions_pre'
REJ = 'minions_rejected'
DEN = 'minions_denied'
def __init__(self, opts):
self.opts = opts
kind = self.opts.get('__role', '') # application kind
if kind not in kinds.APPL_KINDS:
emsg = ("Invalid application kind = '{0}'.".format(kind))
log.error(emsg + '\n')
raise ValueError(emsg)
self.event = salt.utils.event.get_event(
kind,
opts['sock_dir'],
opts['transport'],
opts=opts,
listen=False)
def <API key>(self):
'''
Return the minion keys directory paths
'''
minions_accepted = os.path.join(self.opts['pki_dir'], self.ACC)
minions_pre = os.path.join(self.opts['pki_dir'], self.PEND)
minions_rejected = os.path.join(self.opts['pki_dir'],
self.REJ)
minions_denied = os.path.join(self.opts['pki_dir'],
self.DEN)
return minions_accepted, minions_pre, minions_rejected, minions_denied
def gen_keys(self):
'''
Generate minion RSA public keypair
'''
salt.crypt.gen_keys(
self.opts['gen_keys_dir'],
self.opts['gen_keys'],
self.opts['keysize'])
return
def gen_signature(self, privkey, pubkey, sig_path):
'''
Generate master <API key>
'''
return salt.crypt.gen_signature(privkey,
pubkey,
sig_path)
def check_minion_cache(self, preserve_minions=None):
'''
Check the minion cache to make sure that old minion data is cleared
Optionally, pass in a list of minions which should have their caches
preserved. To preserve all caches, set __opts__['<API key>']
'''
if preserve_minions is None:
preserve_minions = []
m_cache = os.path.join(self.opts['cachedir'], self.ACC)
if not os.path.isdir(m_cache):
return
keys = self.list_keys()
minions = []
for key, val in six.iteritems(keys):
minions.extend(val)
if not self.opts.get('<API key>', False) or not preserve_minions:
for minion in os.listdir(m_cache):
if minion not in minions and minion not in preserve_minions:
shutil.rmtree(os.path.join(m_cache, minion))
def check_master(self):
'''
Log if the master is not running
:rtype: bool
:return: Whether or not the master is running
'''
if not os.path.exists(
os.path.join(
self.opts['sock_dir'],
'publish_pull.ipc'
)
):
return False
return True
def name_match(self, match, full=False):
'''
Accept a glob which to match the of a key and return the key's location
'''
if full:
matches = self.all_keys()
else:
matches = self.list_keys()
ret = {}
if ',' in match and isinstance(match, str):
match = match.split(',')
for status, keys in six.iteritems(matches):
for key in salt.utils.isorted(keys):
if isinstance(match, list):
for match_item in match:
if fnmatch.fnmatch(key, match_item):
if status not in ret:
ret[status] = []
ret[status].append(key)
else:
if fnmatch.fnmatch(key, match):
if status not in ret:
ret[status] = []
ret[status].append(key)
return ret
def dict_match(self, match_dict):
'''
Accept a dictionary of keys and return the current state of the
specified keys
'''
ret = {}
cur_keys = self.list_keys()
for status, keys in six.iteritems(match_dict):
for key in salt.utils.isorted(keys):
for keydir in (self.ACC, self.PEND, self.REJ, self.DEN):
if keydir and fnmatch.filter(cur_keys.get(keydir, []), key):
ret.setdefault(keydir, []).append(key)
return ret
def local_keys(self):
'''
Return a dict of local keys
'''
ret = {'local': []}
for fn_ in salt.utils.isorted(os.listdir(self.opts['pki_dir'])):
if fn_.endswith('.pub') or fn_.endswith('.pem'):
path = os.path.join(self.opts['pki_dir'], fn_)
if os.path.isfile(path):
ret['local'].append(fn_)
return ret
def list_keys(self):
'''
Return a dict of managed keys and what the key status are
'''
key_dirs = []
# We have to differentiate between RaetKey.<API key>
# and Zeromq-Keys. Raet-Keys only have three states while ZeroMQ-keys
# havd an additional 'denied' state.
if self.opts['transport'] in ('zeromq', 'tcp'):
key_dirs = self.<API key>()
else:
key_dirs = self.<API key>()
ret = {}
for dir_ in key_dirs:
ret[os.path.basename(dir_)] = []
try:
for fn_ in salt.utils.isorted(os.listdir(dir_)):
if not fn_.startswith('.'):
if os.path.isfile(os.path.join(dir_, fn_)):
ret[os.path.basename(dir_)].append(fn_)
except (OSError, IOError):
# key dir kind is not created yet, just skip
continue
return ret
def all_keys(self):
'''
Merge managed keys with local keys
'''
keys = self.list_keys()
keys.update(self.local_keys())
return keys
def list_status(self, match):
'''
Return a dict of managed keys under a named status
'''
acc, pre, rej, den = self.<API key>()
ret = {}
if match.startswith('acc'):
ret[os.path.basename(acc)] = []
for fn_ in salt.utils.isorted(os.listdir(acc)):
if not fn_.startswith('.'):
if os.path.isfile(os.path.join(acc, fn_)):
ret[os.path.basename(acc)].append(fn_)
elif match.startswith('pre') or match.startswith('un'):
ret[os.path.basename(pre)] = []
for fn_ in salt.utils.isorted(os.listdir(pre)):
if not fn_.startswith('.'):
if os.path.isfile(os.path.join(pre, fn_)):
ret[os.path.basename(pre)].append(fn_)
elif match.startswith('rej'):
ret[os.path.basename(rej)] = []
for fn_ in salt.utils.isorted(os.listdir(rej)):
if not fn_.startswith('.'):
if os.path.isfile(os.path.join(rej, fn_)):
ret[os.path.basename(rej)].append(fn_)
elif match.startswith('den'):
ret[os.path.basename(den)] = []
for fn_ in salt.utils.isorted(os.listdir(den)):
if not fn_.startswith('.'):
if os.path.isfile(os.path.join(den, fn_)):
ret[os.path.basename(den)].append(fn_)
elif match.startswith('all'):
return self.all_keys()
return ret
def key_str(self, match):
'''
Return the specified public key or keys based on a glob
'''
ret = {}
for status, keys in six.iteritems(self.name_match(match)):
ret[status] = {}
for key in salt.utils.isorted(keys):
path = os.path.join(self.opts['pki_dir'], status, key)
with salt.utils.fopen(path, 'r') as fp_:
ret[status][key] = fp_.read()
return ret
def key_str_all(self):
'''
Return all managed key strings
'''
ret = {}
for status, keys in six.iteritems(self.list_keys()):
ret[status] = {}
for key in salt.utils.isorted(keys):
path = os.path.join(self.opts['pki_dir'], status, key)
with salt.utils.fopen(path, 'r') as fp_:
ret[status][key] = fp_.read()
return ret
def accept(self, match=None, match_dict=None, include_rejected=False):
'''
Accept public keys. If "match" is passed, it is evaluated as a glob.
Pre-gathered matches can also be passed via "match_dict".
'''
if match is not None:
matches = self.name_match(match)
elif match_dict is not None and isinstance(match_dict, dict):
matches = match_dict
else:
matches = {}
keydirs = [self.PEND]
if include_rejected:
keydirs.append(self.REJ)
for keydir in keydirs:
for key in matches.get(keydir, []):
try:
shutil.move(
os.path.join(
self.opts['pki_dir'],
keydir,
key),
os.path.join(
self.opts['pki_dir'],
self.ACC,
key)
)
eload = {'result': True,
'act': 'accept',
'id': key}
self.event.fire_event(eload, tagify(prefix='key'))
except (IOError, OSError):
pass
return (
self.name_match(match) if match is not None
else self.dict_match(matches)
)
def accept_all(self):
'''
Accept all keys in pre
'''
keys = self.list_keys()
for key in keys[self.PEND]:
try:
shutil.move(
os.path.join(
self.opts['pki_dir'],
self.PEND,
key),
os.path.join(
self.opts['pki_dir'],
self.ACC,
key)
)
eload = {'result': True,
'act': 'accept',
'id': key}
self.event.fire_event(eload, tagify(prefix='key'))
except (IOError, OSError):
pass
return self.list_keys()
def delete_key(self, match=None, match_dict=None, preserve_minions=False):
'''
Delete public keys. If "match" is passed, it is evaluated as a glob.
Pre-gathered matches can also be passed via "match_dict".
To preserve the master caches of minions who are matched, set preserve_minions
'''
if match is not None:
matches = self.name_match(match)
elif match_dict is not None and isinstance(match_dict, dict):
matches = match_dict
else:
matches = {}
for status, keys in six.iteritems(matches):
for key in keys:
try:
os.remove(os.path.join(self.opts['pki_dir'], status, key))
eload = {'result': True,
'act': 'delete',
'id': key}
self.event.fire_event(eload, tagify(prefix='key'))
except (OSError, IOError):
pass
self.check_minion_cache(preserve_minions=matches.get('minions', []))
if self.opts.get('rotate_aes_key'):
salt.crypt.dropfile(self.opts['cachedir'], self.opts['user'])
return (
self.name_match(match) if match is not None
else self.dict_match(matches)
)
def delete_all(self):
'''
Delete all keys
'''
for status, keys in six.iteritems(self.list_keys()):
for key in keys:
try:
os.remove(os.path.join(self.opts['pki_dir'], status, key))
eload = {'result': True,
'act': 'delete',
'id': key}
self.event.fire_event(eload, tagify(prefix='key'))
except (OSError, IOError):
pass
self.check_minion_cache()
if self.opts.get('rotate_aes_key'):
salt.crypt.dropfile(self.opts['cachedir'], self.opts['user'])
return self.list_keys()
def reject(self, match=None, match_dict=None, include_accepted=False):
'''
Reject public keys. If "match" is passed, it is evaluated as a glob.
Pre-gathered matches can also be passed via "match_dict".
'''
if match is not None:
matches = self.name_match(match)
elif match_dict is not None and isinstance(match_dict, dict):
matches = match_dict
else:
matches = {}
keydirs = [self.PEND]
if include_accepted:
keydirs.append(self.ACC)
for keydir in keydirs:
for key in matches.get(keydir, []):
try:
shutil.move(
os.path.join(
self.opts['pki_dir'],
keydir,
key),
os.path.join(
self.opts['pki_dir'],
self.REJ,
key)
)
eload = {'result': True,
'act': 'reject',
'id': key}
self.event.fire_event(eload, tagify(prefix='key'))
except (IOError, OSError):
pass
self.check_minion_cache()
if self.opts.get('rotate_aes_key'):
salt.crypt.dropfile(self.opts['cachedir'], self.opts['user'])
return (
self.name_match(match) if match is not None
else self.dict_match(matches)
)
def reject_all(self):
'''
Reject all keys in pre
'''
keys = self.list_keys()
for key in keys[self.PEND]:
try:
shutil.move(
os.path.join(
self.opts['pki_dir'],
self.PEND,
key),
os.path.join(
self.opts['pki_dir'],
self.REJ,
key)
)
eload = {'result': True,
'act': 'reject',
'id': key}
self.event.fire_event(eload, tagify(prefix='key'))
except (IOError, OSError):
pass
self.check_minion_cache()
if self.opts.get('rotate_aes_key'):
salt.crypt.dropfile(self.opts['cachedir'], self.opts['user'])
return self.list_keys()
def finger(self, match):
'''
Return the fingerprint for a specified key
'''
matches = self.name_match(match, True)
ret = {}
for status, keys in six.iteritems(matches):
ret[status] = {}
for key in keys:
if status == 'local':
path = os.path.join(self.opts['pki_dir'], key)
else:
path = os.path.join(self.opts['pki_dir'], status, key)
ret[status][key] = salt.utils.pem_finger(path, sum_type=self.opts['hash_type'])
return ret
def finger_all(self):
'''
Return fingerprins for all keys
'''
ret = {}
for status, keys in six.iteritems(self.list_keys()):
ret[status] = {}
for key in keys:
if status == 'local':
path = os.path.join(self.opts['pki_dir'], key)
else:
path = os.path.join(self.opts['pki_dir'], status, key)
ret[status][key] = salt.utils.pem_finger(path, sum_type=self.opts['hash_type'])
return ret
class RaetKey(Key):
'''
Manage keys from the raet backend
'''
ACC = 'accepted'
PEND = 'pending'
REJ = 'rejected'
DEN = None
def __init__(self, opts):
Key.__init__(self, opts)
self.auto_key = salt.daemons.masterapi.AutoKey(self.opts)
self.serial = salt.payload.Serial(self.opts)
def <API key>(self):
'''
Return the minion keys directory paths
'''
accepted = os.path.join(self.opts['pki_dir'], self.ACC)
pre = os.path.join(self.opts['pki_dir'], self.PEND)
rejected = os.path.join(self.opts['pki_dir'], self.REJ)
return accepted, pre, rejected
def check_minion_cache(self, preserve_minions=False):
'''
Check the minion cache to make sure that old minion data is cleared
'''
keys = self.list_keys()
minions = []
for key, val in six.iteritems(keys):
minions.extend(val)
m_cache = os.path.join(self.opts['cachedir'], 'minions')
if os.path.isdir(m_cache):
for minion in os.listdir(m_cache):
if minion not in minions:
shutil.rmtree(os.path.join(m_cache, minion))
kind = self.opts.get('__role', '') # application kind
if kind not in kinds.APPL_KINDS:
emsg = ("Invalid application kind = '{0}'.".format(kind))
log.error(emsg + '\n')
raise ValueError(emsg)
role = self.opts.get('id', '')
if not role:
emsg = ("Invalid id.")
log.error(emsg + "\n")
raise ValueError(emsg)
name = "{0}_{1}".format(role, kind)
road_cache = os.path.join(self.opts['cachedir'],
'raet',
name,
'remote')
if os.path.isdir(road_cache):
for road in os.listdir(road_cache):
root, ext = os.path.splitext(road)
if ext not in ['.json', '.msgpack']:
continue
prefix, sep, name = root.partition('.')
if not name or prefix != 'estate':
continue
path = os.path.join(road_cache, road)
with salt.utils.fopen(path, 'rb') as fp_:
if ext == '.json':
data = json.load(fp_)
elif ext == '.msgpack':
data = msgpack.load(fp_)
if data['role'] not in minions:
os.remove(path)
def gen_keys(self):
'''
Use libnacl to generate and safely save a private key
'''
import libnacl.public
d_key = libnacl.dual.DualSecret()
path = '{0}.key'.format(os.path.join(
self.opts['gen_keys_dir'],
self.opts['gen_keys']))
d_key.save(path, 'msgpack')
def check_master(self):
'''
Log if the master is not running
NOT YET IMPLEMENTED
'''
return True
def local_keys(self):
'''
Return a dict of local keys
'''
ret = {'local': []}
fn_ = os.path.join(self.opts['pki_dir'], 'local.key')
if os.path.isfile(fn_):
ret['local'].append(fn_)
return ret
def status(self, minion_id, pub, verify):
'''
Accepts the minion id, device id, curve public and verify keys.
If the key is not present, put it in pending and return "pending",
If the key has been accepted return "accepted"
if the key should be rejected, return "rejected"
'''
acc, pre, rej = self.<API key>() # pylint: disable=W0632
acc_path = os.path.join(acc, minion_id)
pre_path = os.path.join(pre, minion_id)
rej_path = os.path.join(rej, minion_id)
# open mode is turned on, force accept the key
keydata = {
'minion_id': minion_id,
'pub': pub,
'verify': verify}
if self.opts['open_mode']: # always accept and overwrite
with salt.utils.fopen(acc_path, 'w+b') as fp_:
fp_.write(self.serial.dumps(keydata))
return self.ACC
if os.path.isfile(rej_path):
log.debug("Rejection Reason: Keys already rejected.\n")
return self.REJ
elif os.path.isfile(acc_path):
# The minion id has been accepted, verify the key strings
with salt.utils.fopen(acc_path, 'rb') as fp_:
keydata = self.serial.loads(fp_.read())
if keydata['pub'] == pub and keydata['verify'] == verify:
return self.ACC
else:
log.debug("Rejection Reason: Keys not match prior accepted.\n")
return self.REJ
elif os.path.isfile(pre_path):
auto_reject = self.auto_key.check_autoreject(minion_id)
auto_sign = self.auto_key.check_autosign(minion_id)
with salt.utils.fopen(pre_path, 'rb') as fp_:
keydata = self.serial.loads(fp_.read())
if keydata['pub'] == pub and keydata['verify'] == verify:
if auto_reject:
self.reject(minion_id)
log.debug("Rejection Reason: Auto reject pended.\n")
return self.REJ
elif auto_sign:
self.accept(minion_id)
return self.ACC
return self.PEND
else:
log.debug("Rejection Reason: Keys not match prior pended.\n")
return self.REJ
# This is a new key, evaluate auto accept/reject files and place
# accordingly
auto_reject = self.auto_key.check_autoreject(minion_id)
auto_sign = self.auto_key.check_autosign(minion_id)
if self.opts['auto_accept']:
w_path = acc_path
ret = self.ACC
elif auto_sign:
w_path = acc_path
ret = self.ACC
elif auto_reject:
w_path = rej_path
log.debug("Rejection Reason: Auto reject new.\n")
ret = self.REJ
else:
w_path = pre_path
ret = self.PEND
with salt.utils.fopen(w_path, 'w+b') as fp_:
fp_.write(self.serial.dumps(keydata))
return ret
def _get_key_str(self, minion_id, status):
'''
Return the key string in the form of:
pub: <pub>
verify: <verify>
'''
path = os.path.join(self.opts['pki_dir'], status, minion_id)
with salt.utils.fopen(path, 'r') as fp_:
keydata = self.serial.loads(fp_.read())
return 'pub: {0}\nverify: {1}'.format(
keydata['pub'],
keydata['verify'])
def _get_key_finger(self, path):
'''
Return a sha256 kingerprint for the key
'''
with salt.utils.fopen(path, 'r') as fp_:
keydata = self.serial.loads(fp_.read())
key = 'pub: {0}\nverify: {1}'.format(
keydata['pub'],
keydata['verify'])
return hashlib.sha256(key).hexdigest()
def key_str(self, match):
'''
Return the specified public key or keys based on a glob
'''
ret = {}
for status, keys in six.iteritems(self.name_match(match)):
ret[status] = {}
for key in salt.utils.isorted(keys):
ret[status][key] = self._get_key_str(key, status)
return ret
def key_str_all(self):
'''
Return all managed key strings
'''
ret = {}
for status, keys in six.iteritems(self.list_keys()):
ret[status] = {}
for key in salt.utils.isorted(keys):
ret[status][key] = self._get_key_str(key, status)
return ret
def accept(self, match=None, match_dict=None, include_rejected=False):
'''
Accept public keys. If "match" is passed, it is evaluated as a glob.
Pre-gathered matches can also be passed via "match_dict".
'''
if match is not None:
matches = self.name_match(match)
elif match_dict is not None and isinstance(match_dict, dict):
matches = match_dict
else:
matches = {}
keydirs = [self.PEND]
if include_rejected:
keydirs.append(self.REJ)
for keydir in keydirs:
for key in matches.get(keydir, []):
try:
shutil.move(
os.path.join(
self.opts['pki_dir'],
keydir,
key),
os.path.join(
self.opts['pki_dir'],
self.ACC,
key)
)
except (IOError, OSError):
pass
return (
self.name_match(match) if match is not None
else self.dict_match(matches)
)
def accept_all(self):
'''
Accept all keys in pre
'''
keys = self.list_keys()
for key in keys[self.PEND]:
try:
shutil.move(
os.path.join(
self.opts['pki_dir'],
self.PEND,
key),
os.path.join(
self.opts['pki_dir'],
self.ACC,
key)
)
except (IOError, OSError):
pass
return self.list_keys()
def delete_key(self, match=None, match_dict=None, preserve_minions=False):
'''
Delete public keys. If "match" is passed, it is evaluated as a glob.
Pre-gathered matches can also be passed via "match_dict".
'''
if match is not None:
matches = self.name_match(match)
elif match_dict is not None and isinstance(match_dict, dict):
matches = match_dict
else:
matches = {}
for status, keys in six.iteritems(matches):
for key in keys:
try:
os.remove(os.path.join(self.opts['pki_dir'], status, key))
except (OSError, IOError):
pass
self.check_minion_cache(preserve_minions=matches.get('minions', []))
return (
self.name_match(match) if match is not None
else self.dict_match(matches)
)
def delete_all(self):
'''
Delete all keys
'''
for status, keys in six.iteritems(self.list_keys()):
for key in keys:
try:
os.remove(os.path.join(self.opts['pki_dir'], status, key))
except (OSError, IOError):
pass
self.check_minion_cache()
return self.list_keys()
def reject(self, match=None, match_dict=None, include_accepted=False):
'''
Reject public keys. If "match" is passed, it is evaluated as a glob.
Pre-gathered matches can also be passed via "match_dict".
'''
if match is not None:
matches = self.name_match(match)
elif match_dict is not None and isinstance(match_dict, dict):
matches = match_dict
else:
matches = {}
keydirs = [self.PEND]
if include_accepted:
keydirs.append(self.ACC)
for keydir in keydirs:
for key in matches.get(keydir, []):
try:
shutil.move(
os.path.join(
self.opts['pki_dir'],
keydir,
key),
os.path.join(
self.opts['pki_dir'],
self.REJ,
key)
)
except (IOError, OSError):
pass
self.check_minion_cache()
return (
self.name_match(match) if match is not None
else self.dict_match(matches)
)
def reject_all(self):
'''
Reject all keys in pre
'''
keys = self.list_keys()
for key in keys[self.PEND]:
try:
shutil.move(
os.path.join(
self.opts['pki_dir'],
self.PEND,
key),
os.path.join(
self.opts['pki_dir'],
self.REJ,
key)
)
except (IOError, OSError):
pass
self.check_minion_cache()
return self.list_keys()
def finger(self, match):
'''
Return the fingerprint for a specified key
'''
matches = self.name_match(match, True)
ret = {}
for status, keys in six.iteritems(matches):
ret[status] = {}
for key in keys:
if status == 'local':
path = os.path.join(self.opts['pki_dir'], key)
else:
path = os.path.join(self.opts['pki_dir'], status, key)
ret[status][key] = self._get_key_finger(path)
return ret
def finger_all(self):
'''
Return fingerprints for all keys
'''
ret = {}
for status, keys in six.iteritems(self.list_keys()):
ret[status] = {}
for key in keys:
if status == 'local':
path = os.path.join(self.opts['pki_dir'], key)
else:
path = os.path.join(self.opts['pki_dir'], status, key)
ret[status][key] = self._get_key_finger(path)
return ret
def read_all_remote(self):
'''
Return a dict of all remote key data
'''
data = {}
for status, mids in six.iteritems(self.list_keys()):
for mid in mids:
keydata = self.read_remote(mid, status)
if keydata:
keydata['acceptance'] = status
data[mid] = keydata
return data
def read_remote(self, minion_id, status=ACC):
'''
Read in a remote key of status
'''
path = os.path.join(self.opts['pki_dir'], status, minion_id)
if not os.path.isfile(path):
return {}
with salt.utils.fopen(path, 'rb') as fp_:
return self.serial.loads(fp_.read())
def read_local(self):
'''
Read in the local private keys, return an empy dict if the keys do not
exist
'''
path = os.path.join(self.opts['pki_dir'], 'local.key')
if not os.path.isfile(path):
return {}
with salt.utils.fopen(path, 'rb') as fp_:
return self.serial.loads(fp_.read())
def write_local(self, priv, sign):
'''
Write the private key and the signing key to a file on disk
'''
keydata = {'priv': priv,
'sign': sign}
path = os.path.join(self.opts['pki_dir'], 'local.key')
c_umask = os.umask(191)
if os.path.exists(path):
#mode = os.stat(path).st_mode
os.chmod(path, stat.S_IWUSR | stat.S_IRUSR)
with salt.utils.fopen(path, 'w+') as fp_:
fp_.write(self.serial.dumps(keydata))
os.chmod(path, stat.S_IRUSR)
os.umask(c_umask)
def delete_local(self):
'''
Delete the local private key file
'''
path = os.path.join(self.opts['pki_dir'], 'local.key')
if os.path.isfile(path):
os.remove(path)
def delete_pki_dir(self):
'''
Delete the private key directory
'''
path = self.opts['pki_dir']
if os.path.exists(path):
shutil.rmtree(path)
|
/* jshint node: true */
module.exports = function(environment) {
var ENV = {
modulePrefix: 'chapter4-components',
environment: environment,
baseURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. 'with-controller': true
}
},
APP: {
// Here you can pass flags/options to your application instance
// when it is created
},
<API key>: {
'default-src': "'none'",
'script-src': "'self' 'unsafe-inline' 'unsafe-eval' *",
'font-src': "'self' *",
'connect-src': "'self' *",
'img-src': "'self' *",
'style-src': "'self' 'unsafe-inline' *",
'frame-src': "*"
}
};
if (environment === 'development') {
// ENV.APP.LOG_RESOLVER = true;
// ENV.APP.<API key> = true;
// ENV.APP.LOG_TRANSITIONS = true;
// ENV.APP.<API key> = true;
// ENV.APP.LOG_VIEW_LOOKUPS = true;
}
if (environment === 'test') {
// Testem prefers this...
ENV.baseURL = '/';
ENV.locationType = 'none';
// keep test console output quieter
ENV.APP.<API key> = false;
ENV.APP.LOG_VIEW_LOOKUPS = false;
ENV.APP.rootElement = '#ember-testing';
}
if (environment === 'production') {
}
return ENV;
};
|
require_relative '../lib/rails_stub'
require_relative 'lib/pb_core_ingester'
require_relative '../lib/has_logger'
require 'rake'
require_relative '../app/models/collection'
require_relative '../app/models/exhibit'
class Exception
def short
message + "\n" + backtrace[0..2].join("\n")
end
end
class ParamsError < StandardError
end
class Ingest
include HasLogger
def const_init(name)
const_name = name.upcase.tr('-', '_')
flag_name = "--#{name}"
begin
# to avoid "warning: already initialized constant" in tests.
Ingest.const_get(const_name)
rescue NameError
Ingest.const_set(const_name, flag_name)
end
end
def initialize(argv)
orig_argv = argv.dup
%w(files dirs grep-files grep-dirs).each do |name|
const_init(name)
end
%w(batch-commit stdout-log).each do |name|
flag_name = const_init(name)
variable_name = "@is_#{name.tr('-', '_')}"
<API key>(variable_name, argv.include?(flag_name))
argv.delete(flag_name)
end
# The code above sets fields which log_init needs,
# but it also modifies argv in place, so we need the dup.
log_init!(orig_argv)
mode = argv.shift
args = argv
@flags = { is_just_reindex: @is_just_reindex }
begin
case mode
when DIRS
fail ParamsError.new if args.empty? || args.map { |dir| !File.directory?(dir) }.any?
target_dirs = args
when FILES
fail ParamsError.new if args.empty?
@files = args
when GREP_DIRS
fail ParamsError.new if args.empty?
@regex = argv.shift
fail ParamsError.new if args.empty? || args.map { |dir| !File.directory?(dir) }.any?
target_dirs = args
when GREP_FILES
fail ParamsError.new if args.empty?
@regex = argv.shift
fail ParamsError.new if args.empty?
@files = args
else
fail ParamsError.new
end
rescue ParamsError
abort usage_message
end
@files ||= target_dirs.map do |target_dir|
Dir.entries(target_dir)
.reject { |file_name| ['.', '..'].include?(file_name) }
.map { |file_name| "#{target_dir}/#{file_name}" }
end.flatten.sort
end
def log_init!(argv)
# Specify a log file unless we are logging to stdout
unless @is_stdout_log
self.logger = Logger.new(log_file_name)
# Print to stdout where the logfile is
puts "logging to #{log_file_name}"
end
logger.formatter = proc do |severity, datetime, _progname, msg|
"#{severity} [#{datetime.strftime('%Y-%m-%d %H:%M:%S')}]: #{msg}\n"
end
# Log how the script was invoked
logger.info("START: Process ##{Process.pid}: #{__FILE__} #{argv.join(' ')}")
end
def usage_message
<<-EOF.gsub(/^ {4}/, '')
USAGE: #{File.basename(__FILE__)}
[#{BATCH_COMMIT}] [#{STDOUT_LOG}]
#{FILES} FILE ... |
#{DIRS} DIR ... |
#{GREP_FILES} REGEX FILE ... |
#{GREP_DIRS} REGEX DIR ...
boolean flags:
#{BATCH_COMMIT}: Optionally, make just one commit at the end, rather than
one commit per file.
#{STDOUT_LOG}: Optionally, log to stdout, rather than a log file.
mutually exclusive modes:
#{DIRS}: Clean and ingest the given directories.
#{FILES}: Clean and ingest the given files (either xml or zip).
#{GREP_DIRS} and #{GREP_FILES}: Same as above, except a regex is also provided.
Only PBCore which matches the regexp is ingested.
EOF
end
def process
ingester = PBCoreIngester.new(regex: @regex)
# set the PBCoreIngester's logger to the same as this object's logger
ingester.logger = logger
@files.each do |path|
begin
<API key> = ingester.success_count
error_count_before = ingester.errors.values.flatten.count
ingester.ingest(path: path, is_batch_commit: @is_batch_commit)
success_count_after = ingester.success_count
error_count_after = ingester.errors.values.flatten.count
logger.info("Processed '#{path}' #{'but not committed' if @is_batch_commit}")
logger.info("success: #{success_count_after - <API key>}; " \
"error: #{error_count_after - error_count_before}")
end
end
if @is_batch_commit
logger.info('Starting one big commit...')
ingester.commit
logger.info('Finished one big commit.')
end
# TODO: Investigate whether optimization is worth it. Requires a lot of disk and time.
# puts 'Ingest complete; Begin optimization...'
# ingester.optimize
errors = ingester.errors.sort # So related errors are together
error_count = errors.map { |pair| pair[1] }.flatten.count
success_count = ingester.success_count
total_count = error_count + success_count
logger.info('SUMMARY: DETAIL')
errors.each do |type, list|
logger.warn("#{list.count} #{type} errors:\n#{list.join("\n")}")
end
logger.info('SUMMARY: STATS')
logger.info('(Look just above for details on each error.)')
errors.each do |type, list|
logger.warn("#{list.count} (#{percent(list.count, total_count)}%) #{type}")
end
logger.info("#{success_count} (#{percent(success_count, total_count)}%) succeeded")
logger.info('DONE')
end
def percent(part, whole)
(100.0 * part / whole).round(1)
end
def log_file_name
@log_file_name ||= "#{Rails.root}/log/ingest.#{Time.now.strftime('%Y-%m-%d_%H%M%S')}.log"
end
end
Ingest.new(ARGV).process if __FILE__ == $PROGRAM_NAME
|
# With alpha replaced with perl6 & SOURCES changed to my sources.
PERL6 = perl6
SOURCES=lib/SIC/AST.pm lib/SIC/Grammar.pm \
lib/SIC/Actions.pm lib/SIC/Compiler.pm
PIRS=$(SOURCES:.pm=.pir)
all: $(PIRS)
%.pir: %.pm
env PERL6LIB=`pwd`/lib $(PERL6) --target=pir --output=$@ $<
clean:
rm -f $(PIRS)
test: all
env PERL6LIB=`pwd`/lib prove -e '$(PERL6)' -r --nocolor t/
|
# GitURL
GitURL represents something that can be passed to `git clone`.
## clone
>method clone([Str](./Str.md) **:$to** [File](./File.md))
Calls `git clone` on the the url and returns the path to the cloned directory.
perl6
GitURL<https://github.com/spitsh/spitsh.git/>.clone.cd;
say ${ $*git status };
|Parameter|Description|
|
|**:$to**| Path to clone the repo to|
## name
>method name( [Str](./Str.md))
Gets the last section of the url without its extension. This is the same as directory name git will use to clone into by default.
perl6
say GitURL<https://github.com/nodejs/node.git>.name #->node
|
// Version Alpha 0.92
// INSTRUCTIONS
// Drop a PlayMakerArrayList script onto a GameObject, and define a unique name for reference if several PlayMakerArrayList coexists on that GameObject.
// In this Action interface, link that GameObject in "arrayListObject" and input the reference name if defined.
// Note: You can directly reference that GameObject or store it in an Fsm variable or global Fsm variable
using UnityEngine;
namespace HutongGames.PlayMaker.Actions
{
[ActionCategory("ArrayMaker/ArrayList")]
[Tooltip("Set an item at a specified index to a PlayMaker array List component")]
public class ArrayListSet : ArrayListActions
{
[ActionSection("Set up")]
[RequiredField]
[Tooltip("The gameObject with the PlayMaker ArrayList Proxy component")]
[CheckForComponent(typeof(<API key>))]
public FsmOwnerDefault gameObject;
[Tooltip("Author defined Reference of the PlayMaker ArrayList Proxy component (necessary if several component coexists on the same GameObject)")]
[UIHint(UIHint.FsmString)]
public FsmString reference;
[Tooltip("The index of the Data in the ArrayList")]
[UIHint(UIHint.FsmString)]
public FsmInt atIndex;
public bool everyFrame;
[ActionSection("Data")]
[Tooltip("The variable to add.")]
public FsmVar variable;
public override void Reset()
{
gameObject = null;
reference = null;
variable = null;
everyFrame = false;
}
public override void OnEnter()
{
if ( <API key>(Fsm.<API key>(gameObject),reference.Value) )
SetToArrayList();
if (!everyFrame){
Finish();
}
}
public override void OnUpdate()
{
SetToArrayList();
}
public void SetToArrayList()
{
if (! isProxyValid() ) return;
proxy.Set(atIndex.Value,PlayMakerUtils.GetValueFromFsmVar(Fsm,variable),variable.Type.ToString());
}
}
}
|
#!/bin/sh
# MyRPM - Rpm Utilities
# Contact : Jean-Marie Renouard <jmrenouard at gmail.com>
# Artistic Licence 2.0
# Everyone is permitted to copy and distribute verbatim copies of
TMP_DIR=/tmp
MD5_SUM=$(echo "$1_$2" | md5sum | cut -d' ' -f 1)
TMP_FILE="$TMP_DIR/$MD5_SUM.dat"
if [ -e "$TMP_FILE" ]; then
DATE_TMP_FILE=$(stat -c '%Y' $TMP_FILE)
DATE=$(date +%s)
DIFF_DATE=$(echo "$DATE-$DATE_TMP_FILE"|bc)
if [ "$DIFF_DATE" -lt "200" ]; then
echo "$2:`cat $TMP_FILE`"
exit 0
fi
fi
#Recherche de la derniere version d'un repertoire
<API key>() {
|
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_292) on Fri Jul 02 03:47:37 UTC 2021 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>com.destroystokyo.paper (Glowkit 1.12.2-R6.0-SNAPSHOT API)</title>
<meta name="date" content="2021-07-02">
<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="com.destroystokyo.paper (Glowkit 1.12.2-R6.0-SNAPSHOT API)";
}
}
catch(err) {
}
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="topNav"><a name="navbar.top">
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-use.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../co/aikar/util/package-summary.html">Prev Package</a></li>
<li><a href="../../../com/destroystokyo/paper/entity/package-summary.html">Next Package</a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/destroystokyo/paper/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.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">
<h1 title="Package" class="title">Package com.destroystokyo.paper</h1>
</div>
<div class="contentContainer">
<ul class="blockList">
<li class="blockList">
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation">
<caption><span>Class Summary</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../com/destroystokyo/paper/ParticleBuilder.html" title="class in com.destroystokyo.paper">ParticleBuilder</a></td>
<td class="colLast">
<div class="block">Helps prepare a particle to be sent to players.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../com/destroystokyo/paper/Title.html" title="class in com.destroystokyo.paper">Title</a></td>
<td class="colLast">
<div class="block">Represents a title to may be sent to a <a href="../../../org/bukkit/entity/Player.html" title="interface in org.bukkit.entity"><code>Player</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../com/destroystokyo/paper/Title.Builder.html" title="class in com.destroystokyo.paper">Title.Builder</a></td>
<td class="colLast">
<div class="block">A builder for creating titles</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Enum Summary table, listing enums, and an explanation">
<caption><span>Enum Summary</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Enum</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../com/destroystokyo/paper/<API key>.html" title="enum in com.destroystokyo.paper"><API key></a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
</ul>
</div>
<div class="bottomNav"><a name="navbar.bottom">
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-use.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../co/aikar/util/package-summary.html">Prev Package</a></li>
<li><a href="../../../com/destroystokyo/paper/entity/package-summary.html">Next Package</a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?com/destroystokyo/paper/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="<API key>">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!
allClassesLink = document.getElementById("<API key>");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
</script>
</div>
<a name="skip.navbar.bottom">
</a></div>
<p class="legalCopy"><small>Copyright &
</body>
</html>
|
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Transforms</title>
<style>
#threed-example {
margin: 50px 20px;
-webkit-transform: rotateZ(5deg);
-moz-transform: rotateZ(5deg);
-o-transform: rotateZ(5deg);
transform: rotateZ(5deg);
-webkit-transition: -webkit-transform 2s ease-in-out;
-moz-transition: -moz-transform 2s ease-in-out;
-o-transition: -o-transform 2s ease-in-out;
transition: transform 2s ease-in-out;
}
#threed-example:hover {
-webkit-transform: rotateZ(-5deg);
-moz-transform: rotateZ(-5deg);
-o-transform: rotateZ(-5deg);
transform: rotateZ(-5deg);
}
</style>
</head>
<body>
<div class="slide styling" id="css-transforms">
<header><span class="css">CSS</span> <h1>Transforms</h1></header>
<section>
<p class="center">
Hover over me:
</p>
<pre id="threed-example">-webkit-<b>transform</b>: <b>rotateY</b>(45deg);
-webkit-transform: <b>scaleX</b>(25deg);
-webkit-transform: <b>translate3d</b>(0, 0, 90deg);
-webkit-transform: <b>perspective</b>(500px)
</pre>
<pre>#threed-example {
-webkit-transform: rotateZ(5deg);
-webkit-transition: -webkit-transform 2s ease-in-out;
}
#threed-example:hover {
-webkit-transform: rotateZ(-5deg);
}
</pre>
<p class="center">
Now press <span class="key">3</span>!
</p>
</section>
</div>
</body>
</html>
|
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>De Mulierum Subtili Deceptione</title>
</head>
<body>
<!--XXVII De Mulierum Subtili Deceptione
<h4>The Subtle Deciption of a Woman</h4>
<p>
<!
Darius regnavit prudens valde, qui tres filios habuit quos
multum dilexit. Cum vero mori deberet totam hereditatem
primogenito legavit; secundo filio dedit omnia quae in
tempore suo acquisivit; tertio filio, scilicet minori,
tria iocalia pretiosa dedit, scilicet anulum aureum,
monile et pannum pretiosum. Anulus illam virtutem habuit
quod qui ipsum in digito gestabat gratiam omnium habuit,
in tantum quod, quicquid ab eis peteret, obtineret; monile
illam virtutem habuit quod qui eum in pectore portabat,
quicquid cor suum desiderabat quod possibile esset,
obtineret. Pannus illam virtutem habuit quod, quicumque
super eum sederet et intra se cogitaret ubicumque esse
vellet, subito ibi esset.
Once upon a time Darius reigned. He was highly learned,
and loved his three sons intensely. Indeed, when he was
about to die he bequeathed his entire inheritance to the
first-born; to the second he gave everything that he had
acquired in his lifetime; and to the third, the youngest
of course, he gave three costly possesions - a gold ring,
a necklace and a costly rug. The ring had the virtue
that whoever wore it on their finger had the goodwill of
all men, so much so, that whatsoever they might ask of
them, they would gain; the necklace had the virtue that
whoever carried it on their breast, whatever their heart
desired that might be possible, they would gain. The rug
had the virtue that, whoever might sit upon it and think
to themselves wherever they wished to be, they would
suddenly be there.
<!
Ista tria iocalia dedit filio suo iuniori ut ad studium
pergeret et mater ea custodiret et tempore opportuno ei
daret; statimque rex spiritum emisit, qui honorifice
est sepultus. Duo primi filii eius legata occupabant,
tertius filius anulum a matre recepit ut ad studium
pergeret; cui mater dixit: "Fili, scientiam acquire et a
muliere caveas ne forte anulum perdas." Ionathas anulum
accepit, ad studium accessit et in scientia profecit.
He gave these three possessions to his youngest son so
that he could proceed with his studies and that his
mother should watch over them and give them to him at an
opportune time; and at once the king gave up the ghost,
and was honorably buried. His first two sons seized
their legacies, while the third son recieved the ring
from his mother so that he might continue with his
studies. And his mother said to him: "Son, gain
learning, and may you avoid a woman, and not by chance
lose the ring." Jonathan accepted the ring, undertook
his studies and became accomplished in learning.
</p>
<p>
<!
Post hoc cito quadam die in platea ei quaedam puella
occurrebat satis formosa et, captus eius amore, eam secum
duxit; continuo anulo utebatur et gratiam omnium habuit et
quicquid ab eis voluit habere obtinuit. Puella eius
concubina mirabatur quod tam laute viveret cum tamen
pecuniam non haberet; rationem quadam vice, cum laetus
esset, quaesivit, dicens quod creatura* sub caelo non
esset quam magis diligeret; ideo sibi dicere
deberet. Ille, de malitia non praemeditatus sibi, dixit
virtutem anuli esse talem, etc.
Soon after this there came a day that he met a young
woman in the high street. She was pretty enough and,
seized with love, he led her away with him. He constantly
made use of the ring and had all goodwill and whatsoever
he wished to have of them he gained. The young woman,
now his concubine, marvelled that he lived so sumptuously
when he didn't have any money; and one day, when he was
in a good mood, she asked how it was, saying that there
was no creature under heaven who loved him more; and
therefore he should tell her. He, not considering malice
towards himself, told her that virtue of the ring was
such, etc.
<!
At illa: "Cum singulis diebus cum hominibus conversare
soles, perdere posses; ideo custodiam tibi eum fideliter."
Qui tradidit ei anulum, sed cum repeteret, penuria ductus,
illa alta voce clamavit quod fures abstulissent; qui motus
flevit amare, quia unde viveret non habuit. Qui statim
ad reginam, matrem suam, est reversus denuntians ei anulum
perditum. At illa: "Fili mi, tibi praedixi ut a muliere te
caveres; ecce tibi iam trado monile quod diligentius
custodias; si perdideris, honore et commodo perpetuo
carebis." Ionathas monile recepit et ad idem studium est
reversus, et ecce concubina eius in porta civitatis
occurrit et cum gaudio eum recepit; ille, ut prius,
convivia multa habuit et laute vixit.
But she said: "You are wont to keep company with men
every day, you might lose it; therefore I will faithfully
guard it for you." And he handed over the ring, but when
he returned, led by want, she cried out in a loud voice
that theives had carried it off; and he was agitated and
wept bitterly, for he didn't have the wherewithall to
live on. And he returned at once to his mother the queen,
and announced the loss of the ring to her. But she said:
"My son, I warned you to beware a woman. Look, I am now
handing over to you the necklace that you must guard
carefully; if you were to lose it, then you will lose
honor and profit forever." Jonathan accepted the
necklace and returned to his studies, and lo his
concubine met him at the gate of the city and received
him joyfully; and he, as before, had great banquets and
lived sumptuously.
</p>
<p>
<!
Concubina mirabatur quia nec aurum nec argentum videbat, et
cogitabat quod aliud iocale apportasset, quod sagaciter ab
eo indagavit; qui ei monile ostendit et virtutem eius dixit.
Quae ait: "Semper monile tecum portas; una hora tantum
cogitare posses quod per annum sufficeret tibi; ideo trade
mihi ad custodiendum."
The concubine marveled, for she saw neither gold nor silver, and
reflected that he had brought another possession, which she
shrewdly dug out from him; and he showed her the necklace and
told her of its virtue. And she said: "You always carry the
necklace with you; a single hour is enough for you to imagine
what would suffice you for a year; therefore hand it over to me
for safekeeping."
<!
At ille: "Timeo quod sicut anulum perdidisti sic perderes monile
et sic damnum maximum incurrerem."
But he said: "I'm afraid that, just as you lost the ring, so
might you lose the necklace, and so I would incur a very great
loss."
<!
Quae ait: "O domine, iam per anulum scientiam acquisivi; unde
tibi fideliter promitto quod sic custodiam monile quod nullus
posset a me auferre."
And she said: "O lord, I have already gotten experience from
the ring; from which I faithfully promise you that I will guard
the ring so well that no one could carry it away from me."
<!
Ille credens dictis eius, monile ei tradidit. Postquam omnia
consumpta fuissent monile petiit; ilia, sicut prius, iuravit quod
furtive ablatum esset. Quod audiens Ionathas flevit amare et ait:
"Nonne sensum perdidi quod post anulum perditum monile tibi
tradidi!"
Believing in her words, he handed the necklace over to her.
After everything had been used up he asked for the necklace;
but she, as before, swore that it had been furtively stolen
away. On hearing this Jonathan wept bitterly and said: "Surely
I have not lost the thought that, after losing the ring, I gave
you the necklace!"
</p>
<p>
<!
Perrexit ad matrem et ei totum processum nuntiavit; illa non
modicum dolens dixit: "O fili carissime, quare spem posuisti in
muliere? Iam altera vice deceptus es per eam et ab omnibus ut
stultus reputaris; ammodo sapientiam addiscas quia nihil habeo
tibi nisi pannum pretiosum quem pater tuus tibi dedit, et si
illum perdideris, ad me amplius redire non valeas."
He proceeded to his mother and reported to her the entire course
of events. She, grieving not a little, said: "O my dearest son,
why have you put your hope in a women? You have already been
cheated in another exchange with her and are thought to be
foolish by everyone; henceforth you should learn wisdom, for I
have nothing else for you except the costly length of cloth that
your father gave you, and if you lose that, it will not avail
you to come back to me."
<!
Ille pannum recepit et ad studium perrexit et concubina eius, ut
prius, gaudenter eum recepit. Qui expandens pannum dixit:
"Carissima, istum pannum dedit mihi pater meus," et ambo
posuerunt se super pannum.
He accepted this length of cloth and went on to his studies and
his concubine, as before, received him with joy. And he,
spreading out the cloth, said: "Dearest love, my father gave me
this cloth," and they both sat down upon the cloth.
<!
Ionathas intra se cogitabat: "Utinam essemus in tantam
distantiam ubi nullus hominum ante venit!" Et sic factum
est; fuerunt enim in fine mundi in una foresta quae multum
distabat ab hominibus. Illa tristabatur et Ionathas votum
vovit Deo caeli quod dimitteret eam bestiis ad devorandum
donec redderet anulum et monile; quae promisit facere si
posset, et ad petitionem concubinae Ionathas virtutem panni
dixit, scilicet, quicumque super eo quiesceret et cogitaret ubi
esse vellet, ibi statim esset.
Jonathan thought to himself: "If only we were so far away
that no man had been there before!" And so it happened; for
they were at the end of the world in a forest which was far away
from men. She was grieved, and Jonathan made a vow to God in heaven
that he would leave her to be devoured by wild animals unless
she restored the ring and the necklace. She promised to do this
if she could, and Jonathan spoke of the virtue of the cloth,
namely, that whoever sat on it and thought where they wished to
go, there they were at once.
<!
Deinde ipsa se super pannum posuit et caput eius in gremio suo
collocavit et, cum dormire coepisset, ipsa partem panni supra quam
sedebat ad se traxit. At illa cogitabat: "Utinam essem in loco ubi
mane fui!" Quod et factum est, et Ionathas dormiens in foresta
mansit.
Then she positioned herself on the cloth and placed his head on her
lap and, when he had fallen asleep, drew the part of the cloth on
which he was lying towards her. But then she thought: "If only I
were in the place where I was this morning!" And this was
accomplished, and Jonathan remained asleep in the forest.
</p>
<p>
<!
Cum autem de somno surrexisset et pannum ablatum cum concubina
vidisset, flevit amarissime nec scivit ad quem locum pergeret.
Surrexit et, signo crucis se muniens, per quandam viam ambulavit, per
quam ad aquam profundam venit per quam transire oportebat, quae tam
amara et fervida fuit quod carnes pedum usque ad nuda ossa
separavit. Ille vero, de hoc contristatus, vas implevit et secum
portavit et ulterius veniens coepit esurire, vidensque quandam
arborem, de fructu eius comedit et statim factus est leprosus. De
fructu illo etiam collegit et secum portavit. Tunc veniens ad aliam
aquam, per quam transivit, quae aqua carnes restaurabat pedum, vas de
ea implevit et secum portavit et ulterius procedens coepit esurire;
et videns quandam arborem, de cuius fructu cepit et comedit et, sicut
per primum fructum infectus erat, sic per secundum fructum a lepra
est mundatus. De illo fructu etiam attulit et secum portavit.
But when he awoke from his sleep and saw that the cloth had been
carried off, along with his concubine, he wept most bitterly and
knew not where to go. He got up and, fortifying himself with the
sign of the cross, wandered along a road, which led him to a deep
body of water that he needed to cross, but which was so caustic and
boiling hot that the flesh of his feet was nearly stripped to the
bone. Indeed, he was disheartened by this, filled up a vessel and
carried it with him and, coming to the far side, began to feel
hunger. He saw a tree, and ate of its fruit and at once contracted
leprosy. He gathered some of this fruit as well and carried it with
him. Then he came to another body of water and crossed over it, and
it restored the flesh to his feet. He filled a vessel with this
water and carried it with him and, once on the other side, grew
hungry. And when he saw a tree, he seized its fruit and ate it, so
that as he had been infected by the the first fruit, so by the
second he was healed of the leprosy. He picked more of this fruit
and carried it away with him.
</p>
<p>
<!
Dum vero ulterius ambularet vidit quoddam castrum, et duo homines ei
obviabant, quaerentes quis esset. At ille: "Medicus peritus sum."
Qui dixerunt: "Rex istius regni manet in isto castro et est homo
leprosus; si eum a lepra curare posses, multas divitias tibi daret."
At ille: "Etiam."
Truly, while he wandered on the far shore he saw a castle, and two
men met him, asking who he might be. And he said, "I am a skilled
physician." And they said: "The king of this realm lies in that
castle and is a leper; if you can cure him of the leprosy, he will
give you great riches." And he said: "Very well."
</p>
<p>
<!
Qui adducentes ipsum ad regem, dedit ei de secundo fructu et curatus
est a lepra, et de secunda aqua ad bibendum, quae carnes eius
restaurabat. Rex ergo multa donaria ei contulit. Ionathas igitur
postea invenit navem de civitate sua et illuc transfretavit. Rumor
per totam civitatem exivit quod magnus medicus advenisset et
concubina sua, quae abstulerat iocalia ei, ad mortem infirmata est
mittens pro medico isto.
They conducted him to the king, and he gave him some of the second
fruit and he was cured of the leprosy. And he gave him some of the
second water to drink, and his flesh was restored. And so the king
gathered together many gifts for him. And so Jonathan afterwards
found a ship and sailed from that city to there. The rumor issued
through the entire city that a great physician had arrived, and his
concubine, who had stolen his possessions, was sick unto death and
sent for this physician.
<!
Ionathas ignotus est ab omnibus sed ipse eam cognoscens dixit ei quod
medicina sua non valeret ei, nisi prius confiteretur omnia peccata
sua, et si aliquem defraudasset, quod redderet. Illa vero alta voce
confitebatur quomodo Ionatham decepisset de anulo, monili et panno et
quomodo eum in loco deserto reliquisset bestiis ad devorandum. Ille
hoc audiens ait: "Dic, domina, ubi sunt ista tria iocalia?" Et illa:
"In area mea." Et dedit ei claves arcae et invenit ea. Ionathas ei
de fructu illius arboris a qua lepram recepit ad comedendum dedit et
de aqua prima, quae carnem de ossibus separavit, ad bibendum ei
tribuit; et cum gustasset et bibisset statim est arefacta et, dolores
interiores sentiens, lacrimabiliter clamavit et spiritum
emisit. Ionathas cum iocalibus suis ad matrem suam perrexit, de cuius
adventu totus populus gaudebat. Ille vero matri a principio usque ad
finem narravit quomodo Deus eum a multis malis periculis liberavit et
per aliquos annos vixit et vitam in pace finivit.
Jonathan was a stranger to all, but he recognized her and said to
her that his medicine would avail her nothing, unless she would
first confess all of her sins, and if she had cheated anyone, then
she must pay them back. Indeed she confessed in a loud voice how
she had abandoned Jonathan to be devoured by the wild animals. He
heard this and said: "Tell me, lady, where are the three
possessions?" And she said: "In my courtyard." And she gave him the
keys to the courtyard and he found them. Jonathan gave her the
fruit of the first tree and she recieved leprosy from it. And he
gave her some of the first water, which strips the flesh from the
bones, and presented it to her to drink; and when she had eaten and
drunk she at once withered up and, feeling pain within her, cried
out mournfully and gave up the ghost. Jonathan took his possessions
and proceeded to his mother, and the whole population rejoiced at
his coming. Indeed he related to his mother from beginning to end
how God freed him from many grim perils, and lived for some years,
and finished his life in peace.
</p>
</body>
</html>
|
// Convert DMD CodeView debug information to PDB files
#include "mspdb.h"
#include <windows.h>
#pragma comment(lib, "rpcrt4.lib")
HMODULE modMsPdb;
mspdb::fnPDBOpen2W *pPDBOpen2W;
char* mspdb80_dll = "mspdb80.dll";
char* mspdb100_dll = "mspdb100.dll";
bool mspdb::DBI::isVS10 = false;
bool getInstallDir(const char* version, char* installDir, DWORD size)
{
char key[260] = "SOFTWARE\\Microsoft\\";
strcat(key, version);
HKEY hkey;
if (RegOpenKeyExA(HKEY_LOCAL_MACHINE, key, 0, KEY_QUERY_VALUE, &hkey) != ERROR_SUCCESS)
return false;
bool rc = RegQueryValueExA(hkey, "InstallDir", 0, 0, (LPBYTE)installDir, &size) == ERROR_SUCCESS;
RegCloseKey(hkey);
return rc;
}
bool tryLoadMsPdb(const char* version, const char* mspdb)
{
char installDir[260];
if (!getInstallDir(version, installDir, sizeof(installDir)))
return false;
char* p = installDir + strlen(installDir);
if (p[-1] != '\\' && p[-1] != '/')
*p++ = '\\';
strcpy(p, mspdb);
modMsPdb = LoadLibraryA(installDir);
return modMsPdb != 0;
}
bool initMsPdb()
{
if (!modMsPdb)
modMsPdb = LoadLibraryA(mspdb80_dll);
if (!modMsPdb)
tryLoadMsPdb("VisualStudio\\9.0", mspdb80_dll);
if (!modMsPdb)
tryLoadMsPdb("VisualStudio\\8.0", mspdb80_dll);
if (!modMsPdb)
tryLoadMsPdb("VCExpress\\9.0", mspdb80_dll);
if (!modMsPdb)
tryLoadMsPdb("VCExpress\\8.0", mspdb80_dll);
#if 1
if (!modMsPdb)
{
modMsPdb = LoadLibraryA(mspdb100_dll);
if (!modMsPdb)
tryLoadMsPdb("VisualStudio\\10.0", mspdb100_dll);
if (!modMsPdb)
tryLoadMsPdb("VCExpress\\10.0", mspdb100_dll);
if (modMsPdb)
mspdb::DBI::isVS10 = true;
}
#endif
if (!modMsPdb)
return false;
if (!pPDBOpen2W)
pPDBOpen2W = (mspdb::fnPDBOpen2W*) GetProcAddress(modMsPdb, "PDBOpen2W");
if (!pPDBOpen2W)
return false;
return true;
}
bool exitMsPdb()
{
pPDBOpen2W = 0;
if (modMsPdb)
FreeLibrary(modMsPdb);
modMsPdb = 0;
return true;
}
mspdb::PDB* CreatePDB(const wchar_t* pdbname)
{
if (!initMsPdb ())
return 0;
mspdb::PDB* pdb = 0;
long data[194] = { 193, 0 };
wchar_t ext[256] = L".exe";
if (!(*pPDBOpen2W) (pdbname, "wf", data, ext, 0x400, &pdb))
return 0;
return pdb;
}
|
package TearDrop::Command::import_blast;
use 5.12.0;
use Mojo::Base 'Mojolicious::Command';
use Carp;
use Try::Tiny;
use TearDrop::Task::ImportBLAST;
use Getopt::Long qw(GetOptionsFromArray :config no_auto_abbrev no_ignore_case);
has description => 'Import BLAST results (currently only custom format)';
has usage => sub { shift->extract_usage };
sub run {
my ($self, @args) = @_;
my %opt = (evalue_cutoff => 0.01, max_target_seqs => 20);
GetOptionsFromArray(\@args, \%opt, 'project|p=s', 'reverse',
'db_source|db=s', 'assembly|a=s', 'evalue_cutoff=f', 'max_target_seqs=i')
or croak $self->help;
croak 'need project context' unless $opt{project};
croak 'need db_source that was blasted' unless $opt{db_source};
croak 'need assembly that was blasted against for reverse' if $opt{reverse} && !$opt{assembly};
my $task = new TearDrop::Task::ImportBLAST(
project => $opt{project},
assembly => $opt{assembly},
database => $opt{db_source},
reverse => $opt{reverse},
files => \@args,
evalue_cutoff => $opt{evalue_cutoff},
max_target_seqs => $opt{max_target_seqs},
);
try {
my $res = $task->run || croak 'task failed!';
say $res->{count}." entries imported.\n";
} catch {
croak 'import failed: '.$_;
};
}
1;
=pod
=head1 NAME
TearDrop::Command::import_blast - import BLAST results
=head1 SYNOPSIS
Usage: tear_drop import_blast [OPTIONS] [files...]
Required Options:
-p, --project [project]
Name of the project context in which to run. See L<TearDrop::Command::deploy_project>.
"Forward" BLAST:
--db, --db_source [db]
Name of a configured db source that was queried
"Reverse" BLAST:
--reverse
This was a reverse BLAST, ie. you extracted sequences from a BLAST db and blasted against a transcript assembly.
-a, --assembly [assembly]
Name of the assembly that was queried
--db, --db_source [db]
Name of the database that was BLASTed, ie. where you extracted the sequences from. This database needs to be configured!
Filtering (currently non-functional, please set the corresponding BLAST options).
--evalue_cutoff
default .01
--max_target_seqs
default 20
If no files are specified, input is read from STDIN.
Currently only a custom tabular format is understood, please use
-outfmt "6 qseqid sseqid bitscore qlen length nident pident ppos evalue slen qseq sseq qstart qend sstart send stitle"
=head1 DESCRIPTION
=head1 METHODS
Inherits all methods from L<Mojolicious::Command> and implements the following new ones.
=head2 run
$import_blast->run(@ARGV);
=cut
|
public class Lab4_2
{
public static void main(String[] arg)
{
System.out.print(" * |");
for(int x=1;x<=12;x++) {
if (x<10) System.out.print(' ');
if (x<100) System.out.print(' ');
System.out.print(x+" ");
}
System.out.println();
for(int x=1;x<=21;x++) {
if (x<10) System.out.print('-');
System.out.print("
}
System.out.println();
for(int i=1;i<=12;i++)
{
if (i<10) System.out.print(' ');
System.out.print(i+" |");
for(int j=1;j<=12;j++) {
if (i*j<10) System.out.print(' ');
if (j*i<100) System.out.print(' ');
System.out.print(j*i+" ");
}
System.out.println();
}
System.out.println();
System.out.println();
System.out.print(" + |");
for(int x=1;x<=12;x++) {
if (x<10) System.out.print(' ');
if (x<100) System.out.print(' ');
System.out.print(x+" ");
}
System.out.println();
for(int x=1;x<=21;x++) {
if (x<10) System.out.print('-');
System.out.print("
}
System.out.println();
for(int i=1;i<=12;i++)
{
if (i<10) System.out.print(' ');
System.out.print(i+" |");
for(int j=1;j<=12;j++) {
if (i+j<10) System.out.print(' ');
if (j+i<100) System.out.print(' ');
System.out.print(j+i+" ");
}
System.out.println();
}
}
}
|
var HLSP = {
/*
set squareness to 0 for a flat land
*/
mizu: {
cameraPositionY: 10,
seaLevel: 0,
displayText: '<b>CHAPTER ONE, MIZU</b><br/><i>TO BE TRAPPED INTO THE MORNING UNDERTOW</i>',
speed: 10,
modelsParams: ['stones', function(){return 1+Math.random()*40}, 3, true, true, 0],
tiles: 62,
repeatUV: 1,
bFactor: 0.5,
cFactor: 0.07594379703811609,
buildFreq: 10,
natural: 0.6834941733430447,
rainbow: 0.5641539208545766,
squareness: 0.022450016948639295,
map: 'white',
landRGB: 1966335,
horizonRGB: 0,
skyMap: 'sky4',
},
solar_valley: {
cameraPositionY: -180,
seaLevel: -450,
fogDensity: 0.00054,
displayText: '<b>CHAPTER TWO, SOLAR VALLEY</b><br><i>FIRE EXECUTION STOPPED BY CLOUDS</i>',
speed: 10,
modelsParams: ['stones', function(){return 1+Math.random()*5}, 40, true, false, -750],
tiles: 200,
repeatUV: 7,
bFactor: 0.6617959456178687,
cFactor: 0.3471716436028164,
buildFreq: 10,
natural: 0.18443493566399619,
rainbow: 0.03254734158776403,
squareness: 0.00001,
map: 'land3',
landRGB: 9675935,
horizonRGB: 3231404,
skyMap: 'sky4',
},
// camera underwater
escher_surfers: {
cameraPositionY: 40,
seaLevel: 50,
displayText: '<b>CHAPTER THREE, ESCHER SURFERS</b><br><i>TAKING REST ON K 11</i>',
speed: 15,
modelsParams: ['cube', 3, 1, true, true, 0 ],
tiles: 73,
repeatUV: 112,
bFactor: 1.001,
cFactor: 0,
buildFreq: 10,
natural: 0,
rainbow: 0.16273670793882017,
squareness: 0.08945796327125173,
map: 'pattern1',
landRGB: 16727705,
horizonRGB: 7935,
skyMap: 'sky1',
},
// modelli: cubid
currybox: {
cameraPositionY: 100,//HLE.WORLD_HEIGHT*.5,
seaLevel: -100,
displayText: '<b>CHAPTER FOUR, CURRYBOX</b><br><i>A FLAKE ON THE ROAD AND A KING AND HIS BONES</i>',
speed: 5,
modelsParams: [['cube'], function(){return 1+Math.random()*5}, 1, true, false,-100],
tiles: 145,
repeatUV: 1,
bFactor: 0.751,
cFactor: 0.054245569312940056,
buildFreq: 10,
natural: 0.176420247632921,
rainbow: 0.21934025248846812,
squareness: 0.01,
map: 'white',
landRGB: 13766158,
horizonRGB: 2665099,
skyMap: 'sky1',
},
// sealevel basso
galaxy_glacier: {
cameraPositionY: 50,
seaLevel: -100,
displayText: '<b>CHAPTER FIVE, GALAXY GLACIER</b><br><i>HITTING ICEBERGS BLAMES</i>',
speed: 2,
modelsParams: [null, 1, true, true],
tiles: 160,
repeatUV: 1,
bFactor: 0.287989180087759,
cFactor: 0.6148319562024518,
buildFreq: 61.5837970429,
natural: 0.4861551769529205,
rainbow: 0.099628324585666777,
squareness: 0.01198280149135716,
map: 'pattern5',
landRGB: 11187452,
horizonRGB: 6705,
skyMap: 'sky1',
},
firefly: {
cameraPositionY: 50,
displayText: '<b>CHAPTER SIX, FIREFLY</b>',
speed: 10,
modelsParams: ['sea', 1, true, true],
tiles: 100,
repeatUV: 1,
bFactor: 1,
cFactor: 1,
buildFreq: 1,
natural: 1,
rainbow: 0,
squareness: 0,
map: 'white',
landRGB: 2763306,
horizonRGB: 0,
skyMap: 'sky1',
},
//camera position.y -400
// partire sopra acqua, e poi gradualmente finire sott'acqua
drift: {
cameraPositionY: -450,
seaLevel: 0,
displayText: '<b>CHAPTER SEVEN, DRIFT</b><br><i>LEAVING THE BOAT</i>',
speed: 3,
modelsParams: [['ducky'], function(){return 1+Math.random()*2}, 2, true, true, 0],
tiles: 128,
repeatUV: 0,
bFactor: 0.24952961883952426,
cFactor: 0.31,
buildFreq: 15.188759407623216,
natural: 0.3471716436028164,
rainbow: 1.001,
squareness: 0.00001,
map: 'land1',
landRGB: 16777215,
horizonRGB: 6039170,
skyMap: 'sky2',
},
hyperocean: {
cameraPositionY: 50,
displayText: '<b>CHAPTER EIGHT, HYPEROCEAN</b><br><i>CRAVING FOR LOVE LASTS FOR LIFE</i>',
speed: 8,
modelsParams: ['space', 2, 40, true, false, 200],
tiles: 200,
repeatUV: 12,
bFactor: 1.001,
cFactor: 0.21934025248846812,
buildFreq: 15.188759407623216,
natural: 0.7051924010682208,
rainbow: 0.1952840495265842,
squareness: 0.00001,
map: 'land5',
landRGB: 14798516,
horizonRGB: 7173242,
skyMap: 'sky2',
},
// balene
// capovolgere di conseguenza modelli balene
twin_horizon: {
cameraPositionY: 100,
displayText: '<b>CHAPTER NINE, TWIN HORIZON</b><br><i>ON THE RIGHT VISION TO THE RIGHT SEASON</i>',
speed: 10,
modelsParams: ['sea', function(){return 20+Math.random()*20}, 20, false, false, 550],
tiles: 99,
repeatUV: 1,
bFactor: 0.20445411338494512,
cFactor: 0.33632252974022836,
buildFreq: 45.50809304437684,
natural: 0.4448136683661085,
rainbow: 0,
squareness: 0.0013619887944460984,
map: 'white',
landRGB: 0x000fff,
horizonRGB: 16728899,
skyMap: 'sky1',
},
// da un certo punto random colors (quando il pezzo aumenta)
// sea level basso
// modelli elettrodomestici / elettronica
else: {
cameraPositionY: 50,
displayText: '<b>CHAPTER TEN, ELSE</b><br><i>DIE LIKE AN ELECTRIC MACHINE</i>',
speed: 10,
modelsParams: [['ducky'], function(){return 2+Math.random()*20}, 3, true, true, 0],
tiles: 104,
repeatUV: 128,
bFactor: 0.5641539208545766,
cFactor: 0,
buildFreq: 30.804098302357595,
natural: 0.0,
rainbow: 0.6458797021572349,
squareness: 0.013562721707765414,
map: 'pattern2',
landRGB: 65399,
horizonRGB: 0x000000,
skyMap: 'sky3',
},
// quando iniziano i kick randomizza landscape
// odissea nello spazio
// cielo stellato (via lattea)
roger_water: {
cameraPositionY: 50,
displayText: '<b>CHAPTER ELEVEN, ROGER WATER</b><br><i>PROTECT WATER</i>',
speed: 10,
modelsParams: ['stones', function(){return 1+Math.random()*40}, 3, true, true, 0],
tiles: 80,
repeatUV: 1,
bFactor: 0,
cFactor: 0.20613316338917223,
buildFreq: 10,
natural: 1.001,
rainbow: 0.1735858218014082,
squareness: 0.00001,
map: 'white',
landRGB: 2105376,
horizonRGB: 0,
skyMap: 'sky1',
},
alpha_11: {
cameraPositionY: 50,
displayText: '<b>CHAPTER TWELVE, ALPHA 11</b><br><i>A MASSIVE WAVE IS DRIVING ME HOME</i>',
speed: 1,
modelsParams: ['stones', function(){return 1+Math.random()*40}, 3, true, true, 0],
tiles: 6,
repeatUV: 1,
bFactor: 0,
cFactor: 0,
buildFreq: 44.48136683661085,
natural: 0,
rainbow: 0,
squareness: 0.00001,
map: 'white',
landRGB: 0,
horizonRGB: 3980219,
skyMap: 'sky1',
},
blackpool: {
displayText: 'BLACKPOOL',
speed: -10,
modelsParams: ['space', 2, 400, true, false, 200],
cameraPositionY: 110,
seaLevel: 10,
// speed: 4,
// modelsParams: ['sea', 1, true, true],
tiles: 182,
repeatUV: 16.555478741450983,
bFactor: 0.6048772396441062,
cFactor: 0.016358953883098624,
buildFreq: 73.3797815423632,
natural: 0.9833741906510363,
rainbow: 0.10821609644148733,
squareness: 0.00599663055740593,
map: 'land3',
landRGB: 12105440,
horizonRGB: 2571781,
skyMap: 'sky1',
},
intro: {
cameraPositionY: 650,
seaLevel:0,
displayText: 'INTRO',
speed: 0,
modelsParams: ['sea', 1, true, true],
tiles: 100,
repeatUV: 1,
bFactor: 0,
cFactor: 0,
buildFreq: 10,
natural: 1,
rainbow: 0,
squareness: 0,
map: 'sky1',
landRGB: 0x111111,
horizonRGB: 0x6f6f6f,
skyMap: 'sky3'
}
}
|
* { box-sizing: border-box; }
body {
background-color: #D4D4D4;
padding: 0px;
margin: 0px;
font-family: 'Rubik', serif;
}
section {
float: left;
width: 100%;
min-height: 100vh;
padding: 40px 80px;
}
section div {
max-width: 800px;
margin: auto;
}
p, #essay p, #classes p {
font-family: 'Roboto Mono', serif;
font-size: 1.3em;
}
li {
color: #D4D4D4;
line-height: 1.4em;
font-style: italic;
padding-right: 30px;
}
h1, h2, h3, h4, h5, h6 { /*reset for mobile browsers */
font-weight: normal;
}
h2 {
color: #ff431d;
font-size: 3em;
}
a {
color: indianred;
text-decoration: none;
font-weight: bold;
}
a:hover {
color: #ff431d;
}
#hero h1 {
color: #ff431d;
font-weight: 800;
font-size: 5em;
font-family: "Rubik", sans-serif;
margin-bottom: 0px;
font-style: italic;
}
h3 {
font-size: 2em;
font-family: "Roboto Mono", sans-serif;
}
#hero a {
text-transform: uppercase;
}
#colophon {
background-color: #7b868e;
padding-top: 10vh;
text-align: center;
border-top: 1px solid #333;
}
#colophon div p {
font-size: .9em;
color: #333;
margin: 20px 40px;
}
#colophon a {
text-decoration: none;
color: #1d6496;
}
#colophon h2 {
color: #D4D4D4;
font-size: 1.3em;
border-bottom: 1px solid #D4D4D4;
line-height: 200%;
margin:5px 20px;
}
@media screen and (max-width: 800px) {
* {
box-sizing: border-box;
}
body {
margin: 0px;
padding: 0px;
font-size: 20px;
}
#hero h1 {
font-size: 2.5em;
}
#hero h3, h3 {
font-size: 1em;
}
p {
font-size: .9em;
}
}
|
package Mojolicious::Plugins;
use Mojo::Base 'Mojo::EventEmitter';
use Mojo::Util 'camelize';
has namespaces => sub { ['Mojolicious::Plugin'] };
sub emit_hook {
my $self = shift;
for my $cb (@{$self->subscribers(shift)}) { $cb->(@_) }
return $self;
}
sub emit_chain {
my ($self, $name, @args) = @_;
my $wrapper;
for my $cb (reverse @{$self->subscribers($name)}) {
my $next = $wrapper;
$wrapper = sub { $cb->($next, @args) };
}
!$wrapper ? return : return $wrapper->();
}
sub emit_hook_reverse {
my $self = shift;
for my $cb (reverse @{$self->subscribers(shift)}) { $cb->(@_) }
return $self;
}
sub load_plugin {
my ($self, $name) = @_;
# Try all namespaces and full module name
my $suffix = $name =~ /^[a-z]/ ? camelize($name) : $name;
my @classes = map {"${_}::$suffix"} @{$self->namespaces};
for my $class (@classes, $name) { return $class->new if _load($class) }
# Not found
die qq{Plugin "$name" missing, maybe you need to install it?\n};
}
sub register_plugin {
shift->load_plugin(shift)->register(shift, ref $_[0] ? $_[0] : {@_});
}
sub _load {
my $module = shift;
return $module->isa('Mojolicious::Plugin')
unless my $e = Mojo::Loader->new->load($module);
ref $e ? die $e : return undef;
}
1;
=encoding utf8
=head1 NAME
Mojolicious::Plugins - Plugin manager
=head1 SYNOPSIS
use Mojolicious::Plugins;
my $plugins = Mojolicious::Plugins->new;
push @{$plugins->namespaces}, 'MyApp::Plugin';
=head1 DESCRIPTION
L<Mojolicious::Plugins> is the plugin manager of L<Mojolicious>.
=head1 PLUGINS
The following plugins are included in the L<Mojolicious> distribution as
examples.
=over 2
=item L<Mojolicious::Plugin::Charset>
Change the application charset.
=item L<Mojolicious::Plugin::Config>
Perl-ish configuration files.
=item L<Mojolicious::Plugin::DefaultHelpers>
General purpose helper collection, loaded automatically.
=item L<Mojolicious::Plugin::EPLRenderer>
Renderer for plain embedded Perl templates, loaded automatically.
=item L<Mojolicious::Plugin::EPRenderer>
Renderer for more sophisticated embedded Perl templates, loaded automatically.
=item L<Mojolicious::Plugin::HeaderCondition>
Route condition for all kinds of headers, loaded automatically.
=item L<Mojolicious::Plugin::JSONConfig>
JSON configuration files.
=item L<Mojolicious::Plugin::Mount>
Mount whole L<Mojolicious> applications.
=item L<Mojolicious::Plugin::PODRenderer>
Renderer for turning POD into HTML and documentation browser for
L<Mojolicious::Guides>.
=item L<Mojolicious::Plugin::TagHelpers>
Template specific helper collection, loaded automatically.
=back
=head1 EVENTS
L<Mojolicious::Plugins> inherits all events from L<Mojo::EventEmitter>.
=head1 ATTRIBUTES
L<Mojolicious::Plugins> implements the following attributes.
=head2 namespaces
my $namespaces = $plugins->namespaces;
$plugins = $plugins->namespaces(['Mojolicious::Plugin']);
Namespaces to load plugins from, defaults to L<Mojolicious::Plugin>.
# Add another namespace to load plugins from
push @{$plugins->namespaces}, 'MyApp::Plugin';
=head1 METHODS
L<Mojolicious::Plugins> inherits all methods from L<Mojo::EventEmitter> and
implements the following new ones.
=head2 emit_chain
$plugins->emit_chain('foo');
$plugins->emit_chain(foo => 123);
Emit events as chained hooks.
=head2 emit_hook
$plugins = $plugins->emit_hook('foo');
$plugins = $plugins->emit_hook(foo => 123);
Emit events as hooks.
=head2 emit_hook_reverse
$plugins = $plugins->emit_hook_reverse('foo');
$plugins = $plugins->emit_hook_reverse(foo => 123);
Emit events as hooks in reverse order.
=head2 load_plugin
my $plugin = $plugins->load_plugin('some_thing');
my $plugin = $plugins->load_plugin('SomeThing');
my $plugin = $plugins->load_plugin('MyApp::Plugin::SomeThing');
Load a plugin from the configured namespaces or by full module name.
=head2 register_plugin
$plugins->register_plugin('some_thing', Mojolicious->new);
$plugins->register_plugin('some_thing', Mojolicious->new, foo => 23);
$plugins->register_plugin('some_thing', Mojolicious->new, {foo => 23});
$plugins->register_plugin('SomeThing', Mojolicious->new);
$plugins->register_plugin('SomeThing', Mojolicious->new, foo => 23);
$plugins->register_plugin('SomeThing', Mojolicious->new, {foo => 23});
$plugins->register_plugin('MyApp::Plugin::SomeThing', Mojolicious->new);
$plugins->register_plugin(
'MyApp::Plugin::SomeThing', Mojolicious->new, foo => 23);
$plugins->register_plugin(
'MyApp::Plugin::SomeThing', Mojolicious->new, {foo => 23});
Load a plugin from the configured namespaces or by full module name and run
C<register>, optional arguments are passed through.
=head1 SEE ALSO
L<Mojolicious>, L<Mojolicious::Guides>, L<http://mojolicio.us>.
=cut
|
import os
from dj_static import Cling
from django.core.wsgi import <API key>
os.environ.setdefault("<API key>", "brp.settings")
os.environ.setdefault('<API key>', 'Dev')
application = Cling(<API key>())
|
class Imagemagick < Formula
desc "Tools and libraries to manipulate images in many formats"
homepage "https:
# Please always keep the Homebrew mirror as the primary URL as the
# ImageMagick site removes tarballs regularly which means we get issues
# unnecessarily and older versions of the formula are broken.
url "https://dl.bintray.com/homebrew/mirror/imagemagick-7.0.7-7.tar.xz"
mirror "https:
sha256 "<SHA256-like>"
head "https://github.com/ImageMagick/ImageMagick.git"
bottle do
sha256 "<SHA256-like>" => :high_sierra
sha256 "<SHA256-like>" => :sierra
sha256 "<SHA256-like>" => :el_capitan
end
option "with-fftw", "Compile with FFTW support"
option "with-hdri", "Compile with HDRI support"
option "with-opencl", "Compile with OpenCL support"
option "with-openmp", "Compile with OpenMP support"
option "with-perl", "Compile with PerlMagick"
option "<API key>", "disable build/install of Magick++"
option "without-modules", "Disable support for dynamically loadable modules"
option "without-threads", "Disable threads support"
option "<API key>", "Disables depending on XML configuration files"
deprecated_option "enable-hdri" => "with-hdri"
deprecated_option "with-jp2" => "with-openjpeg"
depends_on "pkg-config" => :build
depends_on "libtool" => :run
depends_on "xz"
depends_on "jpeg" => :recommended
depends_on "libpng" => :recommended
depends_on "libtiff" => :recommended
depends_on "freetype" => :recommended
depends_on :x11 => :optional
depends_on "fontconfig" => :optional
depends_on "little-cms" => :optional
depends_on "little-cms2" => :optional
depends_on "libwmf" => :optional
depends_on "librsvg" => :optional
depends_on "liblqr" => :optional
depends_on "openexr" => :optional
depends_on "ghostscript" => :optional
depends_on "webp" => :optional
depends_on "openjpeg" => :optional
depends_on "fftw" => :optional
depends_on "pango" => :optional
depends_on :perl => ["5.5", :optional]
needs :openmp if build.with? "openmp"
skip_clean :la
def install
args = %W[
--<API key>
--prefix=#{prefix}
--<API key>
--<API key>
--enable-shared
--enable-static
]
if build.without? "modules"
args << "--without-modules"
else
args << "--with-modules"
end
if build.with? "opencl"
args << "--enable-opencl"
else
args << "--disable-opencl"
end
if build.with? "openmp"
args << "--enable-openmp"
else
args << "--disable-openmp"
end
if build.with? "webp"
args << "--with-webp=yes"
else
args << "--without-webp"
end
if build.with? "openjpeg"
args << "--with-openjp2"
else
args << "--without-openjp2"
end
args << "--without-gslib" if build.without? "ghostscript"
args << "--with-perl" << "--with-perl-options='PREFIX=#{prefix}'" if build.with? "perl"
args << "--with-gs-font-dir=#{HOMEBREW_PREFIX}/share/ghostscript/fonts" if build.without? "ghostscript"
args << "--<API key>" if build.without? "magick-plus-plus"
args << "--enable-hdri=yes" if build.with? "hdri"
args << "--without-fftw" if build.without? "fftw"
args << "--without-pango" if build.without? "pango"
args << "--without-threads" if build.without? "threads"
args << "--with-rsvg" if build.with? "librsvg"
args << "--without-x" if build.without? "x11"
args << "--with-fontconfig=yes" if build.with? "fontconfig"
args << "--with-freetype=yes" if build.with? "freetype"
args << "--<API key>" if build.with? "zero-configuration"
args << "--without-wmf" if build.without? "libwmf"
# versioned stuff in main tree is pointless for us
inreplace "configure", "${PACKAGE_NAME}-${PACKAGE_VERSION}", "${PACKAGE_NAME}"
system "./configure", *args
system "make", "install"
end
def caveats
s = <<-EOS.undent
For full Perl support you may need to adjust your PERL5LIB variable:
export PERL5LIB="#{HOMEBREW_PREFIX}/lib/perl5/site_perl":$PERL5LIB
EOS
s if build.with? "perl"
end
test do
assert_match "PNG", shell_output("#{bin}/identify #{test_fixtures("test.png")}")
# Check support for recommended features and delegates.
features = shell_output("#{bin}/convert -version")
%w[Modules freetype jpeg png tiff].each do |feature|
assert_match feature, features
end
end
end
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Reflection;
using CSScriptLibrary;
using System.Windows.Controls;
using Mono.CSharp;
namespace RobinhoodDesktop.Script
{
<summary>
Specifies the options for keeping processed data in memory. Ideally all processed data would be kept,
but if there is not enough memory for that then some may be discarded once processing has completed.
</summary>
public enum MemoryScheme
{
MEM_KEEP_NONE,
MEM_KEEP_SOURCE,
MEM_KEEP_DERIVED
}
[Serializable]
public class StockSession
{
#region Constants
<summary>
The designator for the stock data source (the data read from the file/live interface)
</summary>
public const string SOURCE_CLASS = "StockDataSource";
<summary>
The designator for the stock data sink (the analyzed data)
</summary>
public const string SINK_CLASS = "StockDataSink";
#endregion
#region Variables
<summary>
Stores a reference to the most recent session that was created (probably the only session)
</summary>
public static StockSession Instance;
<summary>
The path to the source data file
</summary>
public string SourceFilePath;
<summary>
The list of scripts that should be loaded to process the stock data
</summary>
public List<string> DataScriptPaths = new List<string>();
<summary>
The data file the source stock data is being pulled from
</summary>
[NonSerialized]
public StockDataFile SourceFile;
<summary>
The data file representing the analyzed stock data
</summary>
[NonSerialized]
public StockDataFile SinkFile;
<summary>
The stock data associated with the session
</summary>
[NonSerialized]
public Dictionary<string, List<StockDataInterface>> Data;
<summary>
List of action scripts that have been executed
</summary>
public Dictionary<object, Assembly> Scripts = new Dictionary<object, Assembly>();
<summary>
Callback that can be used to add an element to the GUI
</summary>
[NonSerialized]
public static AddGuiFunc AddToGui = null;
public delegate void AddGuiFunc(System.Windows.Forms.Control c);
<summary>
The container object that other GUI elements should be added to
</summary>
[NonSerialized]
public static System.Windows.Forms.Control GuiContainer = null;
<summary>
Callback that can be executed when the session is reloaded
</summary>
[NonSerialized]
public Action OnReload;
<summary>
A list of charts associated with this session
</summary>
public List<DataChartGui> Charts = new List<DataChartGui>();
#endregion
<summary>
Creates a session based on the specified source data an analysis scripts
</summary>
<param name="sources">The source data files</param>
<param name="sinkScripts">The data analysis scripts</param>
<returns>The session instance</returns>
public static StockSession LoadData(List<string> sources, List<string> sinkScripts)
{
StockSession session = new StockSession();
session.DataScriptPaths.Clear();
Directory.CreateDirectory("tmp");
// Convert any legacy files before further processing
var legacyFiles = sources.Where((s) => { return s.EndsWith(".csv"); }).ToList();
if(legacyFiles.Count() > 0)
{
System.Windows.Forms.SaveFileDialog saveDiag = new System.Windows.Forms.SaveFileDialog();
saveDiag.Title = "Save converted data file as...";
saveDiag.CheckFileExists = false;
if (saveDiag.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
List<string> convertedFileNames;
var convertedFiles = StockDataFile.ConvertByMonth(legacyFiles, Path.GetDirectoryName(saveDiag.FileName), out convertedFileNames);
foreach (var cf in convertedFileNames) sources.Add(cf);
}
else
{
// Cancel running the script
return null;
}
foreach(var l in legacyFiles) sources.Remove(l);
}
session.SourceFile = StockDataFile.Open(sources.ConvertAll<Stream>((s) => { return System.IO.Stream.Synchronized(new FileStream(s, FileMode.Open)); }));
session.DataScriptPaths.Add("tmp/" + SOURCE_CLASS + ".cs");
using(var file = new StreamWriter(new FileStream(session.DataScriptPaths.Last(), FileMode.Create))) file.Write(session.SourceFile.GetSourceCode(SOURCE_CLASS));
// Put the data set reference script first
List<string> totalSinkScripts = sinkScripts.ToList();
totalSinkScripts.Insert(0, "Script\\Data\\DataSetReference.cs");
session.SinkFile = new StockDataFile(totalSinkScripts.ConvertAll<string>((f) => { return Path.<API key>(f); }), totalSinkScripts.ConvertAll<string>((f) => { return File.ReadAllText(f); }));
session.SinkFile.Interval = session.SourceFile.Interval;
session.DataScriptPaths.Add("tmp/" + SINK_CLASS + ".cs");
using(var file = new StreamWriter(new FileStream(session.DataScriptPaths.Last(), FileMode.Create))) file.Write(session.SinkFile.GenStockDataSink());
session.DataScriptPaths.AddRange(totalSinkScripts);
// Create the evaluator file (needs to be compiled in the script since it references StockDataSource)
string[] embeddedFiles = new string[]
{
"RobinhoodDesktop.Script.StockEvaluator.cs",
"RobinhoodDesktop.Script.StockProcessor.cs"
};
foreach(var f in embeddedFiles)
{
session.DataScriptPaths.Add(string.Format("tmp/{0}.cs", f.Substring(24, f.Length - 27)));
StringBuilder analyzerCode = new StringBuilder();
analyzerCode.Append(new StreamReader(Assembly.<API key>().<API key>(f)).ReadToEnd());
using(var file = new StreamWriter(new FileStream(session.DataScriptPaths.Last(), FileMode.Create))) file.Write(StockDataFile.FormatSource(analyzerCode.ToString()));
}
// Add the user defined analyzers
foreach(string path in Directory.GetFiles(@"Script/Decision", "*.cs", SearchOption.AllDirectories)) session.DataScriptPaths.Add(path);
foreach(string path in Directory.GetFiles(@"Script/Action", "*.cs", SearchOption.AllDirectories)) session.DataScriptPaths.Add(path);
// Build the data
session.Reload();
if(session.Data != null)
{
StockSession.Instance = session;
}
else
{
session.SourceFile.Close();
}
return StockSession.Instance;
}
<summary>
Creates a chart instance within a data script
</summary>
<param name="sources">The data sources to load</param>
<param name="sinkScripts">The data processors to apply</param>
public static DataChartGui AddChart(List<string> sources, List<string> sinkScripts)
{
var session = (Instance != null) ? Instance : LoadData(sources, sinkScripts);
DataChartGui chart = null;
if(session != null) chart = session.AddChart();
return chart;
}
<summary>
Creates a new chart and adds it to the session
</summary>
<returns>The created chart</returns>
public DataChartGui AddChart()
{
DataChartGui chart = null;
if(this.Data != null)
{
try
{
chart = new DataChartGui(this.Data, this);
this.Charts.Add(chart);
var ctrl = (System.Windows.Forms.Control)(chart.GuiPanel);
if((ctrl != null) && (AddToGui != null))
{
AddToGui(ctrl);
}
}
catch(Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.ToString());
}
}
return chart;
}
<summary>
Reloads the scripts and executes them
</summary>
public void Reload()
{
Data = null;
SourceFile.Reload();
SinkFile.Reload();
// Re-load the data scripts, pulling in any recent changes
Run(this, DataScriptPaths);
// Create and get the StockProcessor instance, which also populates the Data field in the session
Assembly dataScript;
if(Scripts.TryGetValue(this, out dataScript))
{
var getProcessor = dataScript.GetStaticMethod("RobinhoodDesktop.Script.StockProcessor.GetInstance", this);
var processor = getProcessor(this);
// Execute the reload callback
if(OnReload != null) OnReload();
}
}
<summary>
Loads a script instance
</summary>
public void Run(object owner, List<string> scripts)
{
#if DEBUG
var isDebug = true;
#else
var isDebug = false;
#endif
Assembly oldScript;
if(Scripts.TryGetValue(owner, out oldScript))
{
oldScript.UnloadOwnerDomain();
Scripts.Remove(owner);
}
try
{
CSScript.EvaluatorConfig.Engine = EvaluatorEngine.Mono;
CSScript.MonoEvaluator.CompilerSettings.Platform = Mono.CSharp.Platform.X64;
List<string> references = new List<string>()
{
"TensorFlow.NET.dll",
"Google.Protobuf.dll",
"Newtonsoft.Json",
"NumSharp.Lite",
"netstandard",
"System.Memory",
"System.Numerics"
};
foreach(var s in Scripts.Values) references.Add(s.Location);
Scripts[owner] = CSScript.LoadFiles(scripts.ToArray(), null, isDebug, references.ToArray());
// Check if a "Run" method should be executed
MethodDelegate runFunc = null;
try { runFunc = Scripts[owner].GetStaticMethod("*.Run", this); } catch(Exception ex) { };
if(runFunc != null)
{
System.Threading.Tasks.Task.Run(() => { runFunc(this); });
}
}
catch(Exception ex)
{
string err = ex.ToString();
System.Text.RegularExpressions.Regex.Replace(err, "\r\n.*?warning.*?\r\n", "\r\n");
Console.WriteLine(err);
System.Windows.Forms.MessageBox.Show(err);
}
}
}
}
|
#ifndef __GENERIC_H
#define __GENERIC_H 1
/* Name concatenator functions */
#define name2(n1,n2) n1
#define name3(n1,n2,n3) n1 ## n2 ## n3
#define name4(n1,n2,n3,n4) n1 ## n2 ## n3 ## n4
typedef int (*GPT) (int,char *);
extern int genericerror(int,char *);
#define set_handler(generic,type,x) set_##type##generic##_handler(x)
#define errorhandler(generic,type) type##generic##handler
#define callerror(generic,type,a,b) (*errorhandler(generic,type))(a,b)
#define declare(a,type) a##declare(type)
#define implement(a,type) a##implement(type)
#define declare2(a,type1,type2) a##declare2(type1,type2)
#define implement2(a,type1,type2) a##implement2(type1,type2)
#endif /* __GENERIC_H */
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.