answer
stringlengths 15
1.25M
|
|---|
<?php
namespace Alcys\Core\Db\Facade;
use Alcys\Core\Db\Factory\DbFactoryInterface;
use Alcys\Core\Db\References\ColumnInterface;
use Alcys\Core\Db\References\<API key>;
use Alcys\Core\Db\References\TableInterface;
use Alcys\Core\Db\Statement\<API key>;
use Alcys\Core\Db\Statement\StatementInterface;
use Alcys\Core\Db\Statement\UpdateInterface;
use Alcys\Core\Types\Numeric;
/**
* Class UpdateFacade
* @package Alcys\Core\Db\Facade
*/
class UpdateFacade implements <API key>, <API key>
{
/**
* @var \PDO
*/
private $pdo;
/**
* @var UpdateInterface|StatementInterface|<API key>
*/
private $update;
/**
* @var DbFactoryInterface
*/
private $factory;
/**
* @var array
*/
private $columnsArray = array();
/**
* Initialize the update facade.
* Set all required properties to update entries in the database.
*
* @param \PDO $pdo PDO connection.
* @param UpdateInterface $update Select statement.
* @param DbFactoryInterface $factory Factory to create several objects.
* @param string $table Name of the table from which should select (tables can get extended).
*/
public function __construct(\PDO $pdo, UpdateInterface $update, DbFactoryInterface $factory, $table)
{
$this->pdo = $pdo;
$this->update = $update;
$this->factory = $factory;
/** @var TableInterface $tableObj */
$tableObj = $this->factory->references('Table', $table);
$this->update->table($tableObj);
}
/**
* Execute the query and update the expected entries in the database.
*
* @throws \Exception When an error occur while updating.
*/
public function execute()
{
$query = $this->factory->builder($this->update)->process();
$result = $this->pdo->query($query);
if(!$result)
{
throw new \Exception('An error while updating is occurred');
}
}
/**
* Set a single column to the query which should get an update.
* Afterwards, you have to call the UpdateFacade::value() method!!!
* This process can done multiple times to update more then one column.
*
* @param string $column Name of the column which should updated.
*
* @return $this The same instance to concatenate methods.
*/
public function column($column)
{
/** @var ColumnInterface $columnObj */
$columnObj = $this->factory->references('Column', $column);
$this->update->column($columnObj);
return $this;
}
/**
* Set the value for the column, which is passed as argument in the UpdateFacade::column() method.
* You have to call this method immediate after the column method.
* Before calling this method again, the column() has to be invoked.
*
* @param string $value The value which should set.
*
* @return $this The same instance to concatenate methods.
* @throws \Exception When UpdateFacade::column() was not called before.
*/
public function value($value, $type = null)
{
$refType = ($type === 'column') ? 'Column' : 'Value';
$valueObj = $this->factory->references($refType, $value);
$this->update->value($valueObj);
return $this;
}
/**
* Set multiple columns to the query which should get an update.
* Afterwards, you have to call the UpdateFacade::values() method!!!
*
* @param array $columns An usual array with the column names as elements.
*
* @return $this The same instance to concatenate methods.
*/
public function columns(array $columns)
{
$this->columnsArray = $columns;
return $this;
}
/**
* Set values for the columns, which are passed as array argument in the UpdateFacade::columns() method.
* You have to call this method immediate after the columns method.
* Before calling this method again, the columns() has to be invoked.
*
* @param array $values An usual array with the values as elements.
*
* @return $this The same instance to concatenate methods.
* @throws \Exception When the UpdateFacade::columns() method was not called before.
*/
public function values(array $values)
{
$columnsArraySize = count($this->columnsArray);
if($columnsArraySize === 0 || $columnsArraySize !== count($values))
{
throw new \Exception('Columns method must called before and both passed array require the same amount of elements');
}
foreach($this->columnsArray as $number => $column)
{
/** @var ColumnInterface $columnObj */
$columnObj = $this->factory->references('Column', $column);
$valueObj = $this->factory->references('Value', $values[$number]);
$this->update->column($columnObj)->value($valueObj);
}
return $this;
}
/**
* Add a where expression to the query.
*
* @param <API key> $condition The configured condition object, get by conditionBuilder method.
*
* @return $this The same instance to concatenate methods.
*/
public function where(<API key> $condition)
{
$this->update->where($condition->getCondition());
return $this;
}
/**
* Add an order by expression to the query.
*
* @param string $column Column Name.
* @param string|null $orderMode Order mode, whether desc or asc.
*
* @return $this The same instance to concatenate methods.
*/
public function orderBy($column, $orderMode = null)
{
/** @var ColumnInterface $columnObj */
$columnObj = $this->factory->references('Column', $column);
/** @var <API key> $orderModeObj */
$orderModeObj = ($orderMode) ? $this->factory->references('OrderModeEnum', $orderMode) : null;
$this->update->orderBy($columnObj, $orderModeObj);
return $this;
}
/**
* Add a limit expression to the query.
*
* @param int $beginAmount Amount if only one arg isset, if two, the first entry which will used.
* @param int|null $amount (Optional) Amount of entries which.
*
* @return $this The same instance to concatenate methods.
*/
public function limit($beginAmount, $amount = null)
{
$beginObj = new Numeric((int)$beginAmount);
$amountObj = ($amount) ? new Numeric((int)$amount) : null;
$this->update->limit($beginObj, $amountObj);
return $this;
}
/**
* Return an condition facade to create where conditions for the query.
*
* @return ConditionFacade Instance of conditionFacade.
*/
public function condition()
{
$condition = $this->factory->expression('Condition');
return $this->factory->expressionFacade('Condition', $condition);
}
}
|
'use strict';
import * as assert from 'assert';
import * as platform from 'vs/base/common/platform';
import { FileChangeType, FileChangesEvent } from 'vs/platform/files/common/files';
import uri from 'vs/base/common/uri';
import { IRawFileChange, toFileChangesEvent, normalize } from 'vs/workbench/services/files/node/watcher/common';
import { Event, Emitter } from 'vs/base/common/event';
class TestFileWatcher {
private readonly _onFileChanges: Emitter<FileChangesEvent>;
constructor() {
this._onFileChanges = new Emitter<FileChangesEvent>();
}
public get onFileChanges(): Event<FileChangesEvent> {
return this._onFileChanges.event;
}
public report(changes: IRawFileChange[]): void {
this.onRawFileEvents(changes);
}
private onRawFileEvents(events: IRawFileChange[]): void {
// Normalize
let normalizedEvents = normalize(events);
// Emit through event emitter
if (normalizedEvents.length > 0) {
this._onFileChanges.fire(toFileChangesEvent(normalizedEvents));
}
}
}
enum Path {
UNIX,
WINDOWS,
UNC
}
suite('Watcher', () => {
test('watching - simple add/update/delete', function (done: () => void) {
const watch = new TestFileWatcher();
const added = uri.file('/users/data/src/added.txt');
const updated = uri.file('/users/data/src/updated.txt');
const deleted = uri.file('/users/data/src/deleted.txt');
const raw: IRawFileChange[] = [
{ path: added.fsPath, type: FileChangeType.ADDED },
{ path: updated.fsPath, type: FileChangeType.UPDATED },
{ path: deleted.fsPath, type: FileChangeType.DELETED },
];
watch.onFileChanges(e => {
assert.ok(e);
assert.equal(e.changes.length, 3);
assert.ok(e.contains(added, FileChangeType.ADDED));
assert.ok(e.contains(updated, FileChangeType.UPDATED));
assert.ok(e.contains(deleted, FileChangeType.DELETED));
done();
});
watch.report(raw);
});
let pathSpecs = platform.isWindows ? [Path.WINDOWS, Path.UNC] : [Path.UNIX];
pathSpecs.forEach((p) => {
test('watching - delete only reported for top level folder (' + p + ')', function (done: () => void) {
const watch = new TestFileWatcher();
const deletedFolderA = uri.file(p === Path.UNIX ? '/users/data/src/todelete1' : p === Path.WINDOWS ? 'C:\\users\\data\\src\\todelete1' : '\\\\localhost\\users\\data\\src\\todelete1');
const deletedFolderB = uri.file(p === Path.UNIX ? '/users/data/src/todelete2' : p === Path.WINDOWS ? 'C:\\users\\data\\src\\todelete2' : '\\\\localhost\\users\\data\\src\\todelete2');
const deletedFolderBF1 = uri.file(p === Path.UNIX ? '/users/data/src/todelete2/file.txt' : p === Path.WINDOWS ? 'C:\\users\\data\\src\\todelete2\\file.txt' : '\\\\localhost\\users\\data\\src\\todelete2\\file.txt');
const deletedFolderBF2 = uri.file(p === Path.UNIX ? '/users/data/src/todelete2/more/test.txt' : p === Path.WINDOWS ? 'C:\\users\\data\\src\\todelete2\\more\\test.txt' : '\\\\localhost\\users\\data\\src\\todelete2\\more\\test.txt');
const deletedFolderBF3 = uri.file(p === Path.UNIX ? '/users/data/src/todelete2/super/bar/foo.txt' : p === Path.WINDOWS ? 'C:\\users\\data\\src\\todelete2\\super\\bar\\foo.txt' : '\\\\localhost\\users\\data\\src\\todelete2\\super\\bar\\foo.txt');
const deletedFileA = uri.file(p === Path.UNIX ? '/users/data/src/deleteme.txt' : p === Path.WINDOWS ? 'C:\\users\\data\\src\\deleteme.txt' : '\\\\localhost\\users\\data\\src\\deleteme.txt');
const addedFile = uri.file(p === Path.UNIX ? '/users/data/src/added.txt' : p === Path.WINDOWS ? 'C:\\users\\data\\src\\added.txt' : '\\\\localhost\\users\\data\\src\\added.txt');
const updatedFile = uri.file(p === Path.UNIX ? '/users/data/src/updated.txt' : p === Path.WINDOWS ? 'C:\\users\\data\\src\\updated.txt' : '\\\\localhost\\users\\data\\src\\updated.txt');
const raw: IRawFileChange[] = [
{ path: deletedFolderA.fsPath, type: FileChangeType.DELETED },
{ path: deletedFolderB.fsPath, type: FileChangeType.DELETED },
{ path: deletedFolderBF1.fsPath, type: FileChangeType.DELETED },
{ path: deletedFolderBF2.fsPath, type: FileChangeType.DELETED },
{ path: deletedFolderBF3.fsPath, type: FileChangeType.DELETED },
{ path: deletedFileA.fsPath, type: FileChangeType.DELETED },
{ path: addedFile.fsPath, type: FileChangeType.ADDED },
{ path: updatedFile.fsPath, type: FileChangeType.UPDATED }
];
watch.onFileChanges(e => {
assert.ok(e);
assert.equal(e.changes.length, 5);
assert.ok(e.contains(deletedFolderA, FileChangeType.DELETED));
assert.ok(e.contains(deletedFolderB, FileChangeType.DELETED));
assert.ok(e.contains(deletedFileA, FileChangeType.DELETED));
assert.ok(e.contains(addedFile, FileChangeType.ADDED));
assert.ok(e.contains(updatedFile, FileChangeType.UPDATED));
done();
});
watch.report(raw);
});
});
test('watching - event normalization: ignore CREATE followed by DELETE', function (done: () => void) {
const watch = new TestFileWatcher();
const created = uri.file('/users/data/src/related');
const deleted = uri.file('/users/data/src/related');
const unrelated = uri.file('/users/data/src/unrelated');
const raw: IRawFileChange[] = [
{ path: created.fsPath, type: FileChangeType.ADDED },
{ path: deleted.fsPath, type: FileChangeType.DELETED },
{ path: unrelated.fsPath, type: FileChangeType.UPDATED },
];
watch.onFileChanges(e => {
assert.ok(e);
assert.equal(e.changes.length, 1);
assert.ok(e.contains(unrelated, FileChangeType.UPDATED));
done();
});
watch.report(raw);
});
test('watching - event normalization: flatten DELETE followed by CREATE into CHANGE', function (done: () => void) {
const watch = new TestFileWatcher();
const deleted = uri.file('/users/data/src/related');
const created = uri.file('/users/data/src/related');
const unrelated = uri.file('/users/data/src/unrelated');
const raw: IRawFileChange[] = [
{ path: deleted.fsPath, type: FileChangeType.DELETED },
{ path: created.fsPath, type: FileChangeType.ADDED },
{ path: unrelated.fsPath, type: FileChangeType.UPDATED },
];
watch.onFileChanges(e => {
assert.ok(e);
assert.equal(e.changes.length, 2);
assert.ok(e.contains(deleted, FileChangeType.UPDATED));
assert.ok(e.contains(unrelated, FileChangeType.UPDATED));
done();
});
watch.report(raw);
});
test('watching - event normalization: ignore UPDATE when CREATE received', function (done: () => void) {
const watch = new TestFileWatcher();
const created = uri.file('/users/data/src/related');
const updated = uri.file('/users/data/src/related');
const unrelated = uri.file('/users/data/src/unrelated');
const raw: IRawFileChange[] = [
{ path: created.fsPath, type: FileChangeType.ADDED },
{ path: updated.fsPath, type: FileChangeType.UPDATED },
{ path: unrelated.fsPath, type: FileChangeType.UPDATED },
];
watch.onFileChanges(e => {
assert.ok(e);
assert.equal(e.changes.length, 2);
assert.ok(e.contains(created, FileChangeType.ADDED));
assert.ok(!e.contains(created, FileChangeType.UPDATED));
assert.ok(e.contains(unrelated, FileChangeType.UPDATED));
done();
});
watch.report(raw);
});
test('watching - event normalization: apply DELETE', function (done: () => void) {
const watch = new TestFileWatcher();
const updated = uri.file('/users/data/src/related');
const updated2 = uri.file('/users/data/src/related');
const deleted = uri.file('/users/data/src/related');
const unrelated = uri.file('/users/data/src/unrelated');
const raw: IRawFileChange[] = [
{ path: updated.fsPath, type: FileChangeType.UPDATED },
{ path: updated2.fsPath, type: FileChangeType.UPDATED },
{ path: unrelated.fsPath, type: FileChangeType.UPDATED },
{ path: updated.fsPath, type: FileChangeType.DELETED }
];
watch.onFileChanges(e => {
assert.ok(e);
assert.equal(e.changes.length, 2);
assert.ok(e.contains(deleted, FileChangeType.DELETED));
assert.ok(!e.contains(updated, FileChangeType.UPDATED));
assert.ok(e.contains(unrelated, FileChangeType.UPDATED));
done();
});
watch.report(raw);
});
});
|
namespace Xsharp.Events
{
using System;
using System.Runtime.InteropServices;
using OpenSystem.Platform;
using OpenSystem.Platform.X11;
// Property change event.
[StructLayout(LayoutKind.Sequential)]
internal struct XPropertyEvent
{
// Structure fields.
XAnyEvent common__;
public XAtom atom;
public XTime time;
public Xlib.Xint state__;
// Access parent class fields.
public int type { get { return common__.type; } }
public uint serial { get { return common__.serial; } }
public bool send_event { get { return common__.send_event; } }
public IntPtr display { get { return common__.display; } }
public XWindow window { get { return common__.window; } }
// Convert odd fields into types that are useful.
public int state { get { return (int)state__; } }
// Convert this object into a string.
public override String ToString()
{
return common__.ToString() +
" atom=" + ((ulong)atom).ToString() +
" time=" + ((ulong)time).ToString() +
" state=" + state.ToString();
}
} // struct XPropertyEvent
} // namespace Xsharp.Events
|
<!DOCTYPE html><html><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="description">
<meta name="keywords" content="static content generator,static site generator,static site,HTML,web development,.NET,C#,Razor,Markdown,YAML">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="/OpenTl.Schema/assets/img/favicon.ico" type="image/x-icon">
<link rel="icon" href="/OpenTl.Schema/assets/img/favicon.ico" type="image/x-icon">
<title>OpenTl.Schema - API - <API key> Class</title>
<link href="/OpenTl.Schema/assets/css/mermaid.css" rel="stylesheet">
<link href="/OpenTl.Schema/assets/css/highlight.css" rel="stylesheet">
<link href="/OpenTl.Schema/assets/css/bootstrap/bootstrap.css" rel="stylesheet">
<link href="/OpenTl.Schema/assets/css/adminlte/AdminLTE.css" rel="stylesheet">
<link href="/OpenTl.Schema/assets/css/theme/theme.css" rel="stylesheet">
<link href="//fonts.googleapis.com/css?family=Roboto+Mono:400,700|Roboto:400,400i,700,700i" rel="stylesheet">
<link href="/OpenTl.Schema/assets/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="/OpenTl.Schema/assets/css/override.css" rel="stylesheet">
<script src="/OpenTl.Schema/assets/js/jquery-2.2.3.min.js"></script>
<script src="/OpenTl.Schema/assets/js/bootstrap.min.js"></script>
<script src="/OpenTl.Schema/assets/js/app.min.js"></script>
<script src="/OpenTl.Schema/assets/js/highlight.pack.js"></script>
<script src="/OpenTl.Schema/assets/js/jquery.slimscroll.min.js"></script>
<script src="/OpenTl.Schema/assets/js/jquery.sticky-kit.min.js"></script>
<script src="/OpenTl.Schema/assets/js/mermaid.min.js"></script>
<!--[if lt IE 9]>
<script src="/OpenTl.Schema/assets/js/html5shiv.min.js"></script>
<script src="/OpenTl.Schema/assets/js/respond.min.js"></script>
<![endif]
</head>
<body class="hold-transition wyam layout-boxed ">
<div class="top-banner"></div>
<div class="wrapper with-container">
<!-- Header -->
<header class="main-header">
<a href="/OpenTl.Schema/" class="logo">
<span>OpenTl.Schema</span>
</a>
<nav class="navbar navbar-static-top" role="navigation">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle visible-xs-block" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle side menu</span>
<i class="fa <API key>"></i>
</a>
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse">
<span class="sr-only">Toggle side menu</span>
<i class="fa <API key>"></i>
</button>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse pull-left" id="navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="/OpenTl.Schema/about.html">About This Project</a></li>
<li class="active"><a href="/OpenTl.Schema/api">API</a></li>
</ul>
</div>
<!-- /.navbar-collapse -->
<!-- Navbar Right Menu -->
</nav>
</header>
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar ">
<section class="infobar" data-spy="affix" data-offset-top="60" data-offset-bottom="200">
<div id="infobar-headings"><h6>On This Page</h6><p><a href="#Syntax">Syntax</a></p>
<p><a href="#Attributes">Attributes</a></p>
<p><a href="#ExtensionMethods">Extension Methods</a></p>
<hr class="infobar-hidden">
</div>
</section>
<section class="sidebar">
<script src="/OpenTl.Schema/assets/js/lunr.min.js"></script>
<script src="/OpenTl.Schema/assets/js/searchIndex.js"></script>
<div class="sidebar-form">
<div class="input-group">
<input type="text" name="search" id="search" class="form-control" placeholder="Search Types...">
<span class="input-group-btn">
<button class="btn btn-flat"><i class="fa fa-search"></i></button>
</span>
</div>
</div>
<div id="search-results">
</div>
<script>
function runSearch(query){
$("#search-results").empty();
if( query.length < 2 ){
return;
}
var results = searchModule.search("*" + query + "*");
var listHtml = "<ul class='sidebar-menu'>";
listHtml += "<li class='header'>Type Results</li>";
if(results.length == 0 ){
listHtml += "<li>No results found</li>";
} else {
for(var i = 0; i < results.length; ++i){
var res = results[i];
listHtml += "<li><a href='" + res.url + "'>" + htmlEscape(res.title) + "</a></li>";
}
}
listHtml += "</ul>";
$("#search-results").append(listHtml);
}
$(document).ready(function(){
$("#search").on('input propertychange paste', function() {
runSearch($("#search").val());
});
});
function htmlEscape(html) {
return document.createElement('div')
.appendChild(document.createTextNode(html))
.parentNode
.innerHTML;
}
</script>
<hr>
<ul class="sidebar-menu">
<li class="header">Namespace</li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema">OpenTl<wbr>.Schema</a></li>
<li role="separator" class="divider"></li>
<li class="header">Class Types</li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/MsgContainer">MsgContainer</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">Request<wbr>Destroy<wbr>Auth<wbr>Key</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">Request<wbr>Destroy<wbr>Session</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">Request<wbr>Get<wbr>Future<wbr>Salts</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">Request<wbr>Init<wbr>Connection</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">Request<wbr>Invoke<wbr>After<wbr>Msg</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">Request<wbr>Invoke<wbr>After<wbr>Msgs</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">Request<wbr>Invoke<wbr>With<wbr>Layer</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">Request<wbr>Invoke<wbr>With<wbr>Messages<wbr>Range</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">Request<wbr>Invoke<wbr>Without<wbr>Updates</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">Request<wbr>Invoke<wbr>With<wbr>Takeout</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/RequestPing">RequestPing</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">Request<wbr>Ping<wbr>Delay<wbr>Disconnect</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/RequestReqDHParams">RequestReqDHParams</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/RequestReqPq">RequestReqPq</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/RequestReqPqMulti">RequestReqPqMulti</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">Request<wbr>Set<wbr>Client<wbr>D<wbr>H<wbr>Params</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/SchemaInfo">SchemaInfo</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TAccessPointRule">TAccessPointRule</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TAccountDaysTTL">TAccountDaysTTL</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TAuthorization">TAuthorization</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TBadMsgNotification">TBadMsgNotification</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TBadServerSalt">TBadServerSalt</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TBoolFalse">TBoolFalse</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TBoolTrue">TBoolTrue</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TBotCommand">TBotCommand</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TBotInfo">TBotInfo</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Bot<wbr>Inline<wbr>Media<wbr>Result</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Bot<wbr>Inline<wbr>Message<wbr>Media<wbr>Auto</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Bot<wbr>Inline<wbr>Message<wbr>Media<wbr>Contact</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Bot<wbr>Inline<wbr>Message<wbr>Media<wbr>Geo</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Bot<wbr>Inline<wbr>Message<wbr>Media<wbr>Venue</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Bot<wbr>Inline<wbr>Message<wbr>Text</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TBotInlineResult">TBotInlineResult</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TCdnConfig">TCdnConfig</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TCdnPublicKey">TCdnPublicKey</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TChannel">TChannel</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Admin<wbr>Log<wbr>Event</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Admin<wbr>Log<wbr>Event<wbr>Action<wbr>Change<wbr>About</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Admin<wbr>Log<wbr>Event<wbr>Action<wbr>Change<wbr>Photo</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Admin<wbr>Log<wbr>Event<wbr>Action<wbr>Change<wbr>Sticker<wbr>Set</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Admin<wbr>Log<wbr>Event<wbr>Action<wbr>Change<wbr>Title</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Admin<wbr>Log<wbr>Event<wbr>Action<wbr>Change<wbr>Username</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Admin<wbr>Log<wbr>Event<wbr>Action<wbr>Delete<wbr>Message</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Admin<wbr>Log<wbr>Event<wbr>Action<wbr>Edit<wbr>Message</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Admin<wbr>Log<wbr>Event<wbr>Action<wbr>Participant<wbr>Invite</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Admin<wbr>Log<wbr>Event<wbr>Action<wbr>Participant<wbr>Join</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Admin<wbr>Log<wbr>Event<wbr>Action<wbr>Participant<wbr>Leave</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Admin<wbr>Log<wbr>Event<wbr>Action<wbr>Participant<wbr>Toggle<wbr>Admin</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Admin<wbr>Log<wbr>Event<wbr>Action<wbr>Participant<wbr>Toggle<wbr>Ban</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Admin<wbr>Log<wbr>Event<wbr>Action<wbr>Toggle<wbr>Invites</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Admin<wbr>Log<wbr>Event<wbr>Action<wbr>Toggle<wbr>Pre<wbr>History<wbr>Hidden</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Admin<wbr>Log<wbr>Event<wbr>Action<wbr>Toggle<wbr>Signatures</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Admin<wbr>Log<wbr>Event<wbr>Action<wbr>Update<wbr>Pinned</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Admin<wbr>Log<wbr>Events<wbr>Filter</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TChannelAdminRights">TChannelAdminRights</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TChannelForbidden">TChannelForbidden</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TChannelFull">TChannelFull</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Messages<wbr>Filter</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Messages<wbr>Filter<wbr>Empty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TChannelParticipant">TChannelParticipant</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Participant<wbr>Admin</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Participant<wbr>Banned</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Participant<wbr>Creator</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Participants<wbr>Admins</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Participants<wbr>Banned</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Participants<wbr>Bots</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Participant<wbr>Self</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Participants<wbr>Kicked</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Participants<wbr>Recent</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Channel<wbr>Participants<wbr>Search</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TChat">TChat</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TChatEmpty">TChatEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TChatForbidden">TChatForbidden</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TChatFull">TChatFull</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TChatInvite">TChatInvite</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TChatInviteAlready">TChatInviteAlready</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TChatInviteEmpty">TChatInviteEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TChatInviteExported">TChatInviteExported</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TChatParticipant">TChatParticipant</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Chat<wbr>Participant<wbr>Admin</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Chat<wbr>Participant<wbr>Creator</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TChatParticipants">TChatParticipants</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Chat<wbr>Participants<wbr>Forbidden</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TChatPhoto">TChatPhoto</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TChatPhotoEmpty">TChatPhotoEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TClientDHInnerData">TClientDHInnerData</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TConfig">TConfig</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TContact">TContact</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TContactBlocked">TContactBlocked</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TContactLinkContact">TContactLinkContact</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TContactLinkNone">TContactLinkNone</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TContactLinkUnknown">TContactLinkUnknown</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TContactStatus">TContactStatus</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TContainerMessage">TContainerMessage</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TDataJSON">TDataJSON</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TDcOption">TDcOption</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TDestroyAuthKeyFail">TDestroyAuthKeyFail</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TDestroyAuthKeyNone">TDestroyAuthKeyNone</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TDestroyAuthKeyOk">TDestroyAuthKeyOk</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TDestroySessionNone">TDestroySessionNone</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TDestroySessionOk">TDestroySessionOk</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TDhGenFail">TDhGenFail</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TDhGenOk">TDhGenOk</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TDhGenRetry">TDhGenRetry</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TDialog">TDialog</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TDialogPeer">TDialogPeer</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TDocument">TDocument</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Document<wbr>Attribute<wbr>Animated</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Document<wbr>Attribute<wbr>Audio</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Document<wbr>Attribute<wbr>Filename</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Document<wbr>Attribute<wbr>Has<wbr>Stickers</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Document<wbr>Attribute<wbr>Image<wbr>Size</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Document<wbr>Attribute<wbr>Sticker</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Document<wbr>Attribute<wbr>Video</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TDocumentEmpty">TDocumentEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TDraftMessage">TDraftMessage</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TDraftMessageEmpty">TDraftMessageEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TEncryptedChat">TEncryptedChat</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Encrypted<wbr>Chat<wbr>Discarded</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TEncryptedChatEmpty">TEncryptedChatEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Encrypted<wbr>Chat<wbr>Requested</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Encrypted<wbr>Chat<wbr>Waiting</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TEncryptedFile">TEncryptedFile</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TEncryptedFileEmpty">TEncryptedFileEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TEncryptedMessage">TEncryptedMessage</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Encrypted<wbr>Message<wbr>Service</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TError">TError</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TFileHash">TFileHash</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TFileLocation">TFileLocation</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>File<wbr>Location<wbr>Unavailable</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TFoundGif">TFoundGif</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TFoundGifCached">TFoundGifCached</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TFutureSalt">TFutureSalt</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TFutureSalts">TFutureSalts</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TGame">TGame</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TGeoPoint">TGeoPoint</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TGeoPointEmpty">TGeoPointEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TgZipPacked">TgZipPacked</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/THighScore">THighScore</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/THttpWait">THttpWait</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TImportedContact">TImportedContact</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInlineBotSwitchPM">TInlineBotSwitchPM</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputAppEvent">TInputAppEvent</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Bot<wbr>Inline<wbr>Message<wbr>Game</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Bot<wbr>Inline<wbr>Message<wbr>I<wbr>D</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Bot<wbr>Inline<wbr>Message<wbr>Media<wbr>Auto</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Bot<wbr>Inline<wbr>Message<wbr>Media<wbr>Contact</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Bot<wbr>Inline<wbr>Message<wbr>Media<wbr>Geo</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Bot<wbr>Inline<wbr>Message<wbr>Media<wbr>Venue</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Bot<wbr>Inline<wbr>Message<wbr>Text</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Bot<wbr>Inline<wbr>Result</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Bot<wbr>Inline<wbr>Result<wbr>Document</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Bot<wbr>Inline<wbr>Result<wbr>Game</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Bot<wbr>Inline<wbr>Result<wbr>Photo</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputChannel">TInputChannel</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputChannelEmpty">TInputChannelEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputChatPhoto">TInputChatPhoto</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Chat<wbr>Uploaded<wbr>Photo</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Check<wbr>Password<wbr>Empty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Check<wbr>Password<wbr>S<wbr>R<wbr>P</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputClientProxy">TInputClientProxy</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputDialogPeer">TInputDialogPeer</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputDocument">TInputDocument</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputDocumentEmpty">TInputDocumentEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Document<wbr>File<wbr>Location</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputEncryptedChat">TInputEncryptedChat</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputEncryptedFile">TInputEncryptedFile</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Encrypted<wbr>File<wbr>Big<wbr>Uploaded</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Encrypted<wbr>File<wbr>Empty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Encrypted<wbr>File<wbr>Location</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Encrypted<wbr>File<wbr>Uploaded</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputFile">TInputFile</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputFileBig">TInputFileBig</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputFileLocation">TInputFileLocation</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputGameID">TInputGameID</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputGameShortName">TInputGameShortName</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputGeoPoint">TInputGeoPoint</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputGeoPointEmpty">TInputGeoPointEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputMediaContact">TInputMediaContact</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputMediaDocument">TInputMediaDocument</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Media<wbr>Document<wbr>External</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputMediaEmpty">TInputMediaEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputMediaGame">TInputMediaGame</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputMediaGeoLive">TInputMediaGeoLive</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputMediaGeoPoint">TInputMediaGeoPoint</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Media<wbr>Gif<wbr>External</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputMediaInvoice">TInputMediaInvoice</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputMediaPhoto">TInputMediaPhoto</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Media<wbr>Photo<wbr>External</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Media<wbr>Uploaded<wbr>Document</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Media<wbr>Uploaded<wbr>Photo</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputMediaVenue">TInputMediaVenue</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Message<wbr>Entity<wbr>Mention<wbr>Name</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputMessageID">TInputMessageID</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputMessagePinned">TInputMessagePinned</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Messages<wbr>Filter<wbr>Chat<wbr>Photos</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Messages<wbr>Filter<wbr>Contacts</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Messages<wbr>Filter<wbr>Document</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Messages<wbr>Filter<wbr>Empty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Messages<wbr>Filter<wbr>Geo</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Messages<wbr>Filter<wbr>Gif</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Messages<wbr>Filter<wbr>Music</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Messages<wbr>Filter<wbr>My<wbr>Mentions</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Messages<wbr>Filter<wbr>Phone<wbr>Calls</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Messages<wbr>Filter<wbr>Photos</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Messages<wbr>Filter<wbr>Photo<wbr>Video</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Messages<wbr>Filter<wbr>Round<wbr>Video</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Messages<wbr>Filter<wbr>Round<wbr>Voice</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Messages<wbr>Filter<wbr>Url</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Messages<wbr>Filter<wbr>Video</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Messages<wbr>Filter<wbr>Voice</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputNotifyChats">TInputNotifyChats</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputNotifyPeer">TInputNotifyPeer</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputNotifyUsers">TInputNotifyUsers</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Payment<wbr>Credentials</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Payment<wbr>Credentials<wbr>Android<wbr>Pay</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Payment<wbr>Credentials<wbr>Apple<wbr>Pay</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Payment<wbr>Credentials<wbr>Saved</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputPeerChannel">TInputPeerChannel</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputPeerChat">TInputPeerChat</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputPeerEmpty">TInputPeerEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Peer<wbr>Notify<wbr>Settings</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputPeerSelf">TInputPeerSelf</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputPeerUser">TInputPeerUser</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputPhoneCall">TInputPhoneCall</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputPhoneContact">TInputPhoneContact</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputPhoto">TInputPhoto</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputPhotoEmpty">TInputPhotoEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Privacy<wbr>Key<wbr>Chat<wbr>Invite</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Privacy<wbr>Key<wbr>Phone<wbr>Call</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Privacy<wbr>Key<wbr>Status<wbr>Timestamp</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Privacy<wbr>Value<wbr>Allow<wbr>All</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Privacy<wbr>Value<wbr>Allow<wbr>Contacts</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Privacy<wbr>Value<wbr>Allow<wbr>Users</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Privacy<wbr>Value<wbr>Disallow<wbr>All</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Privacy<wbr>Value<wbr>Disallow<wbr>Contacts</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Privacy<wbr>Value<wbr>Disallow<wbr>Users</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Report<wbr>Reason<wbr>Copyright</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Report<wbr>Reason<wbr>Other</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Report<wbr>Reason<wbr>Pornography</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Report<wbr>Reason<wbr>Spam</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Report<wbr>Reason<wbr>Violence</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputSecureFile">TInputSecureFile</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Secure<wbr>File<wbr>Location</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Secure<wbr>File<wbr>Uploaded</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputSecureValue">TInputSecureValue</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputSingleMedia">TInputSingleMedia</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Stickered<wbr>Media<wbr>Document</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Stickered<wbr>Media<wbr>Photo</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Sticker<wbr>Set<wbr>Empty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputStickerSetID">TInputStickerSetID</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Sticker<wbr>Set<wbr>Short<wbr>Name</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Takeout<wbr>File<wbr>Location</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputUser">TInputUser</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputUserEmpty">TInputUserEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputUserSelf">TInputUserSelf</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInputWebDocument">TInputWebDocument</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Web<wbr>File<wbr>Geo<wbr>Point<wbr>Location</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Input<wbr>Web<wbr>File<wbr>Location</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TInvoice">TInvoice</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TIpPort">TIpPort</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TIpPortSecret">TIpPortSecret</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TKeyboardButton">TKeyboardButton</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TKeyboardButtonBuy">TKeyboardButtonBuy</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Keyboard<wbr>Button<wbr>Callback</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TKeyboardButtonGame">TKeyboardButtonGame</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Keyboard<wbr>Button<wbr>Request<wbr>Geo<wbr>Location</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Keyboard<wbr>Button<wbr>Request<wbr>Phone</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TKeyboardButtonRow">TKeyboardButtonRow</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Keyboard<wbr>Button<wbr>Switch<wbr>Inline</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TKeyboardButtonUrl">TKeyboardButtonUrl</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TLabeledPrice">TLabeledPrice</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TLangPackDifference">TLangPackDifference</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TLangPackLanguage">TLangPackLanguage</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TLangPackString">TLangPackString</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Lang<wbr>Pack<wbr>String<wbr>Deleted</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Lang<wbr>Pack<wbr>String<wbr>Pluralized</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TMaskCoords">TMaskCoords</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TMessage">TMessage</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Action<wbr>Bot<wbr>Allowed</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Action<wbr>Channel<wbr>Create</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Action<wbr>Channel<wbr>Migrate<wbr>From</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Action<wbr>Chat<wbr>Add<wbr>User</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Action<wbr>Chat<wbr>Create</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Action<wbr>Chat<wbr>Delete<wbr>Photo</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Action<wbr>Chat<wbr>Delete<wbr>User</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Action<wbr>Chat<wbr>Edit<wbr>Photo</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Action<wbr>Chat<wbr>Edit<wbr>Title</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Action<wbr>Chat<wbr>Joined<wbr>By<wbr>Link</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Action<wbr>Chat<wbr>Migrate<wbr>To</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Action<wbr>Custom<wbr>Action</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TMessageActionEmpty">TMessageActionEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Action<wbr>Game<wbr>Score</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Action<wbr>History<wbr>Clear</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Action<wbr>Payment<wbr>Sent</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Action<wbr>Payment<wbr>Sent<wbr>Me</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Action<wbr>Phone<wbr>Call</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Action<wbr>Pin<wbr>Message</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Action<wbr>Screenshot<wbr>Taken</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Action<wbr>Secure<wbr>Values<wbr>Sent</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Action<wbr>Secure<wbr>Values<wbr>Sent<wbr>Me</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TMessageEmpty">TMessageEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TMessageEntityBold">TMessageEntityBold</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Entity<wbr>Bot<wbr>Command</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Entity<wbr>Cashtag</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TMessageEntityCode">TMessageEntityCode</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TMessageEntityEmail">TMessageEntityEmail</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Entity<wbr>Hashtag</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Entity<wbr>Mention</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Entity<wbr>Mention<wbr>Name</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TMessageEntityPhone">TMessageEntityPhone</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TMessageEntityPre">TMessageEntityPre</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Entity<wbr>Text<wbr>Url</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Entity<wbr>Unknown</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TMessageEntityUrl">TMessageEntityUrl</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TMessageFwdHeader">TMessageFwdHeader</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Media<wbr>Document</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TMessageMediaEmpty">TMessageMediaEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TMessageMediaGame">TMessageMediaGame</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TMessageMediaGeo">TMessageMediaGeo</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TMessageMediaPhoto">TMessageMediaPhoto</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Message<wbr>Media<wbr>Unsupported</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TMessageMediaVenue">TMessageMediaVenue</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TMessageRange">TMessageRange</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TMessageService">TMessageService</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TMsgDetailedInfo">TMsgDetailedInfo</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TMsgNewDetailedInfo">TMsgNewDetailedInfo</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TMsgResendReq">TMsgResendReq</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TMsgsAck">TMsgsAck</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TMsgsAllInfo">TMsgsAllInfo</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TMsgsStateInfo">TMsgsStateInfo</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TMsgsStateReq">TMsgsStateReq</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TNearestDc">TNearestDc</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TNewSessionCreated">TNewSessionCreated</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TNotifyChats">TNotifyChats</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TNotifyPeer">TNotifyPeer</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TNotifyUsers">TNotifyUsers</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TNull">TNull</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPageBlockAnchor">TPageBlockAnchor</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPageBlockAudio">TPageBlockAudio</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPageBlockChannel">TPageBlockChannel</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPageBlockCollage">TPageBlockCollage</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPageBlockCover">TPageBlockCover</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPageBlockDivider">TPageBlockDivider</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPageBlockEmbed">TPageBlockEmbed</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPageBlockEmbedPost">TPageBlockEmbedPost</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPageBlockFooter">TPageBlockFooter</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPageBlockHeader">TPageBlockHeader</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPageBlockList">TPageBlockList</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPageBlockParagraph">TPageBlockParagraph</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPageBlockPhoto">TPageBlockPhoto</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Page<wbr>Block<wbr>Preformatted</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPageBlockPullquote">TPageBlockPullquote</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPageBlockSlideshow">TPageBlockSlideshow</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPageBlockSubheader">TPageBlockSubheader</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPageBlockSubtitle">TPageBlockSubtitle</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPageBlockTitle">TPageBlockTitle</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Page<wbr>Block<wbr>Unsupported</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPageBlockVideo">TPageBlockVideo</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPageFull">TPageFull</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPagePart">TPagePart</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/T<API key>>T<wbr>Password<wbr>Kdf<wbr>Algo<wbr>S<wbr>H<wbr>A256<wbr>S<wbr>H<wbr>A256<wbr>P<wbr>B<wbr>K<wbr>D<wbr>F2<wbr>H<wbr>M<wbr>A<wbr>C<wbr>S<wbr>H<wbr>A512iter100000<wbr>S<wbr>H<wbr>A256<wbr>Mod<wbr>Pow</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Password<wbr>Kdf<wbr>Algo<wbr>Unknown</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPaymentCharge">TPaymentCharge</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Payment<wbr>Requested<wbr>Info</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Payment<wbr>Saved<wbr>Credentials<wbr>Card</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPeerChannel">TPeerChannel</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPeerChat">TPeerChat</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPeerNotifySettings">TPeerNotifySettings</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPeerSettings">TPeerSettings</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPeerUser">TPeerUser</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPhoneCall">TPhoneCall</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPhoneCallAccepted">TPhoneCallAccepted</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPhoneCallDiscarded">TPhoneCallDiscarded</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Phone<wbr>Call<wbr>Discard<wbr>Reason<wbr>Busy</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Phone<wbr>Call<wbr>Discard<wbr>Reason<wbr>Disconnect</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Phone<wbr>Call<wbr>Discard<wbr>Reason<wbr>Hangup</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Phone<wbr>Call<wbr>Discard<wbr>Reason<wbr>Missed</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPhoneCallEmpty">TPhoneCallEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPhoneCallProtocol">TPhoneCallProtocol</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPhoneCallRequested">TPhoneCallRequested</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPhoneCallWaiting">TPhoneCallWaiting</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPhoneConnection">TPhoneConnection</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPhoto">TPhoto</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPhotoCachedSize">TPhotoCachedSize</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPhotoEmpty">TPhotoEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPhotoSize">TPhotoSize</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPhotoSizeEmpty">TPhotoSizeEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPong">TPong</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPopularContact">TPopularContact</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPostAddress">TPostAddress</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPQInnerData">TPQInnerData</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPQInnerDataDc">TPQInnerDataDc</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPQInnerDataTemp">TPQInnerDataTemp</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TPQInnerDataTempDc">TPQInnerDataTempDc</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Privacy<wbr>Key<wbr>Chat<wbr>Invite</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Privacy<wbr>Key<wbr>Status<wbr>Timestamp</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Privacy<wbr>Value<wbr>Allow<wbr>All</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Privacy<wbr>Value<wbr>Allow<wbr>Contacts</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Privacy<wbr>Value<wbr>Allow<wbr>Users</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Privacy<wbr>Value<wbr>Disallow<wbr>All</a></li>
<li class="selected"><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Privacy<wbr>Value<wbr>Disallow<wbr>Contacts</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Privacy<wbr>Value<wbr>Disallow<wbr>Users</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Received<wbr>Notify<wbr>Message</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TRecentMeUrlChat">TRecentMeUrlChat</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Recent<wbr>Me<wbr>Url<wbr>Chat<wbr>Invite</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Recent<wbr>Me<wbr>Url<wbr>Sticker<wbr>Set</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TRecentMeUrlUnknown">TRecentMeUrlUnknown</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TRecentMeUrlUser">TRecentMeUrlUser</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TReplyInlineMarkup">TReplyInlineMarkup</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Reply<wbr>Keyboard<wbr>Force<wbr>Reply</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TReplyKeyboardHide">TReplyKeyboardHide</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TResPQ">TResPQ</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TRpcAnswerDropped">TRpcAnswerDropped</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Rpc<wbr>Answer<wbr>Dropped<wbr>Running</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TRpcAnswerUnknown">TRpcAnswerUnknown</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TRpcError">TRpcError</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TRpcResult">TRpcResult</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TRsaPublicKey">TRsaPublicKey</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TSavedPhoneContact">TSavedPhoneContact</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Credentials<wbr>Encrypted</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TSecureData">TSecureData</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TSecureFile">TSecureFile</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TSecureFileEmpty">TSecureFileEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TSecure<API key>>T<wbr>Secure<wbr>Password<wbr>Kdf<wbr>Algo<wbr>P<wbr>B<wbr>K<wbr>D<wbr>F2<wbr>H<wbr>M<wbr>A<wbr>C<wbr>S<wbr>H<wbr>A512iter100000</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Password<wbr>Kdf<wbr>Algo<wbr>S<wbr>H<wbr>A512</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Password<wbr>Kdf<wbr>Algo<wbr>Unknown</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TSecurePlainEmail">TSecurePlainEmail</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TSecurePlainPhone">TSecurePlainPhone</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TSecureRequiredType">TSecureRequiredType</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Required<wbr>Type<wbr>One<wbr>Of</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Secret<wbr>Settings</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TSecureValue">TSecureValue</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TSecureValueError">TSecureValueError</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Value<wbr>Error<wbr>Data</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Value<wbr>Error<wbr>File</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Value<wbr>Error<wbr>Files</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Value<wbr>Error<wbr>Front<wbr>Side</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Value<wbr>Error<wbr>Reverse<wbr>Side</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Value<wbr>Error<wbr>Selfie</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Value<wbr>Error<wbr>Translation<wbr>File</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Value<wbr>Error<wbr>Translation<wbr>Files</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TSecureValueHash">TSecureValueHash</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Value<wbr>Type<wbr>Address</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Value<wbr>Type<wbr>Bank<wbr>Statement</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Value<wbr>Type<wbr>Driver<wbr>License</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Value<wbr>Type<wbr>Email</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Value<wbr>Type<wbr>Identity<wbr>Card</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Value<wbr>Type<wbr>Internal<wbr>Passport</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Value<wbr>Type<wbr>Passport</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Value<wbr>Type<wbr>Passport<wbr>Registration</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Value<wbr>Type<wbr>Personal<wbr>Details</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Value<wbr>Type<wbr>Phone</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Value<wbr>Type<wbr>Rental<wbr>Agreement</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Value<wbr>Type<wbr>Temporary<wbr>Registration</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Secure<wbr>Value<wbr>Type<wbr>Utility<wbr>Bill</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Send<wbr>Message<wbr>Cancel<wbr>Action</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Send<wbr>Message<wbr>Choose<wbr>Contact<wbr>Action</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Send<wbr>Message<wbr>Game<wbr>Play<wbr>Action</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Send<wbr>Message<wbr>Geo<wbr>Location<wbr>Action</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Send<wbr>Message<wbr>Record<wbr>Audio<wbr>Action</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Send<wbr>Message<wbr>Record<wbr>Round<wbr>Action</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Send<wbr>Message<wbr>Record<wbr>Video<wbr>Action</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Send<wbr>Message<wbr>Typing<wbr>Action</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Send<wbr>Message<wbr>Upload<wbr>Audio<wbr>Action</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Send<wbr>Message<wbr>Upload<wbr>Document<wbr>Action</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Send<wbr>Message<wbr>Upload<wbr>Photo<wbr>Action</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Send<wbr>Message<wbr>Upload<wbr>Round<wbr>Action</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Send<wbr>Message<wbr>Upload<wbr>Video<wbr>Action</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TServerDHInnerData">TServerDHInnerData</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TServerDHParamsFail">TServerDHParamsFail</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TServerDHParamsOk">TServerDHParamsOk</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TShippingOption">TShippingOption</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TStickerPack">TStickerPack</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TStickerSet">TStickerSet</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TStickerSetCovered">TStickerSetCovered</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Sticker<wbr>Set<wbr>Multi<wbr>Covered</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TTextBold">TTextBold</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TTextConcat">TTextConcat</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TTextEmail">TTextEmail</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TTextEmpty">TTextEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TTextFixed">TTextFixed</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TTextItalic">TTextItalic</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TTextPlain">TTextPlain</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TTextStrike">TTextStrike</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TTextUnderline">TTextUnderline</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TTextUrl">TTextUrl</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TTopPeer">TTopPeer</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Top<wbr>Peer<wbr>Category<wbr>Bots<wbr>Inline</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Top<wbr>Peer<wbr>Category<wbr>Bots<wbr>P<wbr>M</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Top<wbr>Peer<wbr>Category<wbr>Channels</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Top<wbr>Peer<wbr>Category<wbr>Correspondents</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Top<wbr>Peer<wbr>Category<wbr>Groups</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Top<wbr>Peer<wbr>Category<wbr>Peers</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Top<wbr>Peer<wbr>Category<wbr>Phone<wbr>Calls</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TTrue">TTrue</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Bot<wbr>Callback<wbr>Query</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Bot<wbr>Inline<wbr>Query</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Bot<wbr>Precheckout<wbr>Query</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Bot<wbr>Shipping<wbr>Query</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Bot<wbr>Webhook<wbr>J<wbr>S<wbr>O<wbr>N</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Bot<wbr>Webhook<wbr>J<wbr>S<wbr>O<wbr>N<wbr>Query</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdateChannel">TUpdateChannel</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Channel<wbr>Available<wbr>Messages</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Channel<wbr>Message<wbr>Views</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Channel<wbr>Pinned<wbr>Message</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Channel<wbr>Read<wbr>Messages<wbr>Contents</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Channel<wbr>Too<wbr>Long</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Channel<wbr>Web<wbr>Page</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdateChatAdmins">TUpdateChatAdmins</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Chat<wbr>Participant<wbr>Add</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Chat<wbr>Participant<wbr>Admin</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Chat<wbr>Participant<wbr>Delete</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Chat<wbr>Participants</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Chat<wbr>User<wbr>Typing</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdateConfig">TUpdateConfig</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdateContactLink">TUpdateContactLink</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Contact<wbr>Registered</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdateDcOptions">TUpdateDcOptions</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Delete<wbr>Channel<wbr>Messages</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Delete<wbr>Messages</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdateDialogPinned">TUpdateDialogPinned</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Dialog<wbr>Unread<wbr>Mark</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdateDraftMessage">TUpdateDraftMessage</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Edit<wbr>Channel<wbr>Message</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdateEditMessage">TUpdateEditMessage</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Encrypted<wbr>Chat<wbr>Typing</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Encrypted<wbr>Messages<wbr>Read</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdateEncryption">TUpdateEncryption</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Inline<wbr>Bot<wbr>Callback<wbr>Query</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdateLangPack">TUpdateLangPack</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Lang<wbr>Pack<wbr>Too<wbr>Long</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdateMessageID">TUpdateMessageID</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>New<wbr>Channel<wbr>Message</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>New<wbr>Encrypted<wbr>Message</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdateNewMessage">TUpdateNewMessage</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Notify<wbr>Settings</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdatePhoneCall">TUpdatePhoneCall</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdatePrivacy">TUpdatePrivacy</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdatePtsChanged">TUpdatePtsChanged</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Read<wbr>Channel<wbr>Inbox</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Read<wbr>Channel<wbr>Outbox</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Read<wbr>Featured<wbr>Stickers</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Read<wbr>History<wbr>Inbox</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Read<wbr>History<wbr>Outbox</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Read<wbr>Messages<wbr>Contents</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Recent<wbr>Stickers</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdates">TUpdates</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdateSavedGifs">TUpdateSavedGifs</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdatesCombined">TUpdatesCombined</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Service<wbr>Notification</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdateShort">TUpdateShort</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Short<wbr>Chat<wbr>Message</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdateShortMessage">TUpdateShortMessage</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Short<wbr>Sent<wbr>Message</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdateStickerSets">TUpdateStickerSets</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>Update<wbr>Sticker<wbr>Sets<wbr>Order</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdatesTooLong">TUpdatesTooLong</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdateUserBlocked">TUpdateUserBlocked</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdateUserName">TUpdateUserName</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdateUserPhone">TUpdateUserPhone</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdateUserPhoto">TUpdateUserPhoto</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdateUserStatus">TUpdateUserStatus</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdateUserTyping">TUpdateUserTyping</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUpdateWebPage">TUpdateWebPage</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUser">TUser</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUserEmpty">TUserEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUserFull">TUserFull</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUserProfilePhoto">TUserProfilePhoto</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">T<wbr>User<wbr>Profile<wbr>Photo<wbr>Empty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUserStatusEmpty">TUserStatusEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUserStatusLastWeek">TUserStatusLastWeek</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUserStatusOffline">TUserStatusOffline</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUserStatusOnline">TUserStatusOnline</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TUserStatusRecently">TUserStatusRecently</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TVector_1">TVector<wbr><T><wbr></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TWallPaper">TWallPaper</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TWallPaperSolid">TWallPaperSolid</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TWebAuthorization">TWebAuthorization</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TWebDocument">TWebDocument</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TWebDocumentNoProxy">TWebDocumentNoProxy</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TWebPage">TWebPage</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TWebPageEmpty">TWebPageEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TWebPageNotModified">TWebPageNotModified</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/TWebPagePending">TWebPagePending</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/Utils">Utils</a></li>
<li class="header">Interface Types</li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IAccessPointRule">IAccessPointRule</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IAccountDaysTTL">IAccountDaysTTL</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IAuthorization">IAuthorization</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IBadMsgNotification">IBadMsgNotification</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IBool">IBool</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IBotCommand">IBotCommand</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IBotInfo">IBotInfo</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IBotInlineMessage">IBotInlineMessage</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IBotInlineResult">IBotInlineResult</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/ICdnConfig">ICdnConfig</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/ICdnPublicKey">ICdnPublicKey</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">I<wbr>Channel<wbr>Admin<wbr>Log<wbr>Event</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">I<wbr>Channel<wbr>Admin<wbr>Log<wbr>Event<wbr>Action</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">I<wbr>Channel<wbr>Admin<wbr>Log<wbr>Events<wbr>Filter</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IChannelAdminRights">IChannelAdminRights</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">I<wbr>Channel<wbr>Messages<wbr>Filter</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IChannelParticipant">IChannelParticipant</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">I<wbr>Channel<wbr>Participants<wbr>Filter</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IChat">IChat</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IChatCommon">IChatCommon</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IChatFull">IChatFull</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IChatInvite">IChatInvite</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IChatParticipant">IChatParticipant</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IChatParticipants">IChatParticipants</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IChatPhoto">IChatPhoto</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IConfig">IConfig</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IContact">IContact</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IContactBlocked">IContactBlocked</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IContactLink">IContactLink</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IContactStatus">IContactStatus</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IDataJSON">IDataJSON</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IDcOption">IDcOption</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IDestroyAuthKeyRes">IDestroyAuthKeyRes</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IDestroySessionRes">IDestroySessionRes</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IDialog">IDialog</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IDialogPeer">IDialogPeer</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IDocument">IDocument</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IDocumentAttribute">IDocumentAttribute</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IDraftMessage">IDraftMessage</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IEmpty">IEmpty</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IEncryptedChat">IEncryptedChat</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IEncryptedFile">IEncryptedFile</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IEncryptedMessage">IEncryptedMessage</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IError">IError</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IExportedChatInvite">IExportedChatInvite</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IFileHash">IFileHash</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IFileLocation">IFileLocation</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IFoundGif">IFoundGif</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IFutureSalts">IFutureSalts</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IGame">IGame</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IGeoPoint">IGeoPoint</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IHighScore">IHighScore</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IImportedContact">IImportedContact</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInlineBotSwitchPM">IInlineBotSwitchPM</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputAppEvent">IInputAppEvent</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">I<wbr>Input<wbr>Bot<wbr>Inline<wbr>Message</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">I<wbr>Input<wbr>Bot<wbr>Inline<wbr>Message<wbr>I<wbr>D</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">I<wbr>Input<wbr>Bot<wbr>Inline<wbr>Result</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputChannel">IInputChannel</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputChatPhoto">IInputChatPhoto</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">I<wbr>Input<wbr>Chat<wbr>Photo<wbr>Common</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">I<wbr>Input<wbr>Check<wbr>Password<wbr>S<wbr>R<wbr>P</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputClientProxy">IInputClientProxy</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputContact">IInputContact</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputDialogPeer">IInputDialogPeer</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputDocument">IInputDocument</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputEncryptedChat">IInputEncryptedChat</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputEncryptedFile">IInputEncryptedFile</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">I<wbr>Input<wbr>Encrypted<wbr>File<wbr>Common</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputFile">IInputFile</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputFileLocation">IInputFileLocation</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputGame">IInputGame</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputGeoPoint">IInputGeoPoint</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputMedia">IInputMedia</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputMediaCommon">IInputMediaCommon</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputMessage">IInputMessage</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputNotifyPeer">IInputNotifyPeer</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">I<wbr>Input<wbr>Payment<wbr>Credentials</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputPeer">IInputPeer</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputPeerCommon">IInputPeerCommon</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">I<wbr>Input<wbr>Peer<wbr>Notify<wbr>Settings</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputPhoneCall">IInputPhoneCall</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputPhoto">IInputPhoto</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputPrivacyKey">IInputPrivacyKey</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputPrivacyRule">IInputPrivacyRule</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputSecureFile">IInputSecureFile</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputSecureValue">IInputSecureValue</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputSingleMedia">IInputSingleMedia</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputStickerSet">IInputStickerSet</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">I<wbr>Input<wbr>Sticker<wbr>Set<wbr>Common</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputUser">IInputUser</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputUserCommon">IInputUserCommon</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInputWebDocument">IInputWebDocument</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">I<wbr>Input<wbr>Web<wbr>File<wbr>Location</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IInvoice">IInvoice</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IIpPort">IIpPort</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IKeyboardButton">IKeyboardButton</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IKeyboardButtonRow">IKeyboardButtonRow</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/ILabeledPrice">ILabeledPrice</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/ILangPackDifference">ILangPackDifference</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/ILangPackLanguage">ILangPackLanguage</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/ILangPackString">ILangPackString</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IMaskCoords">IMaskCoords</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IMessage">IMessage</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IMessageAction">IMessageAction</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>"><API key></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IMessageCommon">IMessageCommon</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IMessageEntity">IMessageEntity</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IMessageFwdHeader">IMessageFwdHeader</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IMessageMedia">IMessageMedia</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IMessageMediaCommon">IMessageMediaCommon</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IMessageRange">IMessageRange</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IMessagesFilter">IMessagesFilter</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">I<wbr>Messages<wbr>Filter<wbr>Common</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IMsgDetailedInfo">IMsgDetailedInfo</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/INearestDc">INearestDc</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/INotifyPeer">INotifyPeer</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IObject">IObject</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IPage">IPage</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IPageBlock">IPageBlock</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IPasswordKdfAlgo">IPasswordKdfAlgo</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IPaymentCharge">IPaymentCharge</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">I<wbr>Payment<wbr>Requested<wbr>Info</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">I<wbr>Payment<wbr>Saved<wbr>Credentials</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IPeer">IPeer</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IPeerNotifySettings">IPeerNotifySettings</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IPeerSettings">IPeerSettings</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IPhoneCall">IPhoneCall</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IPhoneCallCommon">IPhoneCallCommon</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">I<wbr>Phone<wbr>Call<wbr>Discard<wbr>Reason</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IPhoneCallProtocol">IPhoneCallProtocol</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IPhoneConnection">IPhoneConnection</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IPhoto">IPhoto</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IPhotoSize">IPhotoSize</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IPhotoSizeCommon">IPhotoSizeCommon</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IPong">IPong</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IPopularContact">IPopularContact</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IPostAddress">IPostAddress</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IPQInnerData">IPQInnerData</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IPrivacyKey">IPrivacyKey</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IPrivacyRule">IPrivacyRule</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">I<wbr>Received<wbr>Notify<wbr>Message</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IRecentMeUrl">IRecentMeUrl</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IReplyMarkup">IReplyMarkup</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IReportReason">IReportReason</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IRequest">IRequest</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IRequest_1">IRequest<wbr><TResult><wbr></a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IResPQ">IResPQ</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IRichText">IRichText</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IRichTextCommon">IRichTextCommon</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IRpcDropAnswer">IRpcDropAnswer</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/ISavedContact">ISavedContact</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">I<wbr>Secure<wbr>Credentials<wbr>Encrypted</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/ISecureData">ISecureData</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/ISecureFile">ISecureFile</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">I<wbr>Secure<wbr>Password<wbr>Kdf<wbr>Algo</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/ISecurePlainData">ISecurePlainData</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/ISecureRequiredType">ISecureRequiredType</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">I<wbr>Secure<wbr>Secret<wbr>Settings</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/ISecureValue">ISecureValue</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/ISecureValueError">ISecureValueError</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/ISecureValueHash">ISecureValueHash</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/ISecureValueType">ISecureValueType</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/ISendMessageAction">ISendMessageAction</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IServerDHParams">IServerDHParams</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">I<wbr>Set<wbr>Client<wbr>D<wbr>H<wbr>Params<wbr>Answer</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IShippingOption">IShippingOption</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IStickerPack">IStickerPack</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IStickerSet">IStickerSet</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IStickerSetCovered">IStickerSetCovered</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/ITopPeer">ITopPeer</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/ITopPeerCategory">ITopPeerCategory</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/<API key>">I<wbr>Top<wbr>Peer<wbr>Category<wbr>Peers</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IUpdate">IUpdate</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IUpdates">IUpdates</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IUser">IUser</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IUserFull">IUserFull</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IUserProfilePhoto">IUserProfilePhoto</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IUserStatus">IUserStatus</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IUserStatusCommon">IUserStatusCommon</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IWallPaper">IWallPaper</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IWebAuthorization">IWebAuthorization</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IWebDocument">IWebDocument</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IWebPage">IWebPage</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IWebPageCommon">IWebPageCommon</a></li>
</ul>
</section>
</aside>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<section class="content-header">
<h1>T<wbr>Privacy<wbr>Value<wbr>Disallow<wbr>Contacts <small>Class</small></h1>
</section>
<section class="content">
<div class="panel panel-default">
<div class="panel-body">
<div class="row">
<div class="col-md-6">
<dl class="dl-horizontal">
<dt>Namespace</dt>
<dd><a href="/OpenTl.Schema/api/OpenTl.Schema">OpenTl<wbr>.Schema</a></dd>
<dt>Interfaces</dt>
<dd>
<ul class="list-unstyled">
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IPrivacyRule">IPrivacyRule</a></li>
<li><a href="/OpenTl.Schema/api/OpenTl.Schema/IObject">IObject</a></li>
</ul>
</dd>
<dt>Base Types</dt>
<dd>
<ul class="list-unstyled">
<li>object</li>
</ul>
</dd>
</dl>
</div>
<div class="col-md-6">
<div class="mermaid">
graph TD
Base0["object"]-->Type
Interface0["IPrivacyRule"]-.->Type
click Interface0 "/OpenTl.Schema/api/OpenTl.Schema/IPrivacyRule"
Interface1["IObject"]-.->Type
click Interface1 "/OpenTl.Schema/api/OpenTl.Schema/IObject"
Type["<API key>"]
class Type type-node
</div>
</div>
</div>
</div>
</div>
<h1 id="Syntax">Syntax</h1>
<pre><code>[Serialize(0xf888fa1a)]
public sealed class <API key> : IPrivacyRule, IObject</code></pre>
<h1 id="Attributes">Attributes</h1>
<div class="box">
<div class="box-body no-padding table-responsive">
<table class="table table-striped table-hover two-cols">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody><tr>
<td>SerializeAttribute</td>
<td></td>
</tr>
</tbody></table>
</div>
</div>
<h1 id="ExtensionMethods">Extension Methods</h1>
<div class="box">
<div class="box-body no-padding table-responsive">
<table class="table table-striped table-hover three-cols">
<thead>
<tr>
<th>Name</th>
<th>Value</th>
<th>Summary</th>
</tr>
</thead>
<tbody><tr>
<td><a href="/OpenTl.Schema/api/OpenTl.Schema/Utils/A1A958DE.html">As<wbr><T><wbr><wbr>()<wbr></a></td>
<td>T</td>
<td>
<div></div>
<div><small><em>From <a href="/OpenTl.Schema/api/OpenTl.Schema/Utils">Utils</a></em></small></div>
</td>
</tr>
<tr>
<td><a href="/OpenTl.Schema/api/OpenTl.Schema/Utils/4941F7D3.html">Is<wbr><T><wbr><wbr>()<wbr></a></td>
<td>T</td>
<td>
<div></div>
<div><small><em>From <a href="/OpenTl.Schema/api/OpenTl.Schema/Utils">Utils</a></em></small></div>
</td>
</tr>
<tr>
<td><a href="/OpenTl.Schema/api/OpenTl.Schema/Utils/CF7043C9.html">IsEmpty<wbr>()<wbr></a></td>
<td>bool</td>
<td>
<div></div>
<div><small><em>From <a href="/OpenTl.Schema/api/OpenTl.Schema/Utils">Utils</a></em></small></div>
</td>
</tr>
</tbody></table>
</div>
</div>
</section>
</div>
<!-- Footer -->
<footer class="main-footer">
</footer>
</div>
<div class="wrapper bottom-wrapper">
<footer class="bottom-footer">
Generated by <a href="https://wyam.io">Wyam</a>
</footer>
</div>
<a href="javascript:" id="return-to-top"><i class="fa fa-chevron-up"></i></a>
<script>
// Close the sidebar if we select an anchor link
$(".main-sidebar a[href^='#']:not('.expand')").click(function(){
$(document.body).removeClass('sidebar-open');
});
$(document).load(function() {
mermaid.initialize(
{
flowchart:
{
htmlLabels: false,
useMaxWidth:false
}
});
mermaid.init(undefined, ".mermaid")
$('svg').addClass('img-responsive');
$('pre code').each(function(i, block) {
hljs.highlightBlock(block);
});
});
hljs.<API key>();
// Back to top
$(window).scroll(function() {
if ($(this).scrollTop() >= 200) { // If page is scrolled more than 50px
$('#return-to-top').fadeIn(1000); // Fade in the arrow
} else {
$('#return-to-top').fadeOut(1000); // Else fade out the arrow
}
});
$('#return-to-top').click(function() { // When arrow is clicked
$('body,html').animate({
scrollTop : 0 // Scroll to top of body
}, 500);
});
</script>
</body></html>
|
import * as Models from './'
export const ItemRequestPriority = [
'low',
'standard',
'high',
'highest'
] as const
export type <API key> = typeof ItemRequestPriority
export type ItemRequestPriority = <API key>[number]
export const <API key> = ['Svařovna'] as const
export type <API key> = typeof <API key>
export type <API key> = <API key>[number]
export interface ErrorData {
errors: string[]
warnings: string[]
}
export default interface ItemRequest {
id: number
name: string
description: string | null
priority: ItemRequestPriority
orderMethod: string
destination: string
deadline: Date
comment: string | null
baseId: number
supplierEshop: string | null
supplierId: number | null
attachmentId: number | null
supervisorId: string | null
approverId: string | null
purchaserId: string | null
itemBase?: Models.ItemBase
supplier?: Models.Supplier
approvals?: Models.Approval[]
delays?: Models.Delay[]
subitems?: number[]
orders?: Models.Order[]
inspections?: Models.Inspection[]
attachment?: Models.File
supervisor?: Models.User
approver?: Models.User
purchaser?: Models.User
requestorName?: string
statusId?: Models.StatusId
statusName?: string
uid?: string
isActive?: boolean
attachmentName?: string
totalPrice?: number
delayedDeadline?: Date
currOrder?: Models.Order
errorData?: ErrorData
}
|
layout: default
title: Home
<div class="posts">
{% for post in paginator.posts %}
<div class="post">
<h1 class="post-title">
{{ post.title }}
</h1>
<span class="post-date">{{ post.date | date_to_string }}</span>
{{ post.content }}
</div>
{% endfor %}
</div>
<div class="pagination">
{% if paginator.previous_page %}
<a class="pagination-item older" href="{{ paginator.previous_page_path }}">Newer Posts</a>
{% else %}
<span class="pagination-item older">Newer Posts</span>
{% endif %}
{% if paginator.next_page %}
<a class="pagination-item newer" href="{{ paginator.next_page_path }}">Older Posts</a>
{% else %}
<span class="pagination-item newer">Older Posts</span>
{% endif %}
</div>
|
package com.orbital.lead.controller.Activity;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.DatePickerDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.DatePicker;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;
import com.orbital.lead.R;
import com.orbital.lead.controller.RecyclerViewAdapter.<API key>;
import com.orbital.lead.controller.RecyclerViewAdapter.<API key>;
import com.orbital.lead.controller.RecyclerViewAdapter.<API key>;
import com.orbital.lead.model.Constant;
import com.orbital.lead.model.<API key>;
import com.orbital.lead.model.<API key>;
import com.orbital.lead.model.Journal;
import com.orbital.lead.model.Project;
import com.orbital.lead.model.ProjectList;
import com.orbital.lead.model.Tag;
import com.orbital.lead.model.TagList;
public class <API key> extends BaseActivity {
private final String TAG = this.getClass().getSimpleName();
private View mToolbarView;
private TextView mToolbarTitle;
private TextView mTextJournalDate;
private TextView mTextTag;
private TextView mTextProject;
private EditText mEditTextTitle;
private EditText mEditTextContent;
private AlertDialog mDialogSave;
private Journal newJournal;
private TagList newTagList;
private ProjectList newProjectList;
private Project newProject;
private DatePickerDialog datePickerDialog;
private DatePickerDialog.OnDateSetListener datePickerListener;
private RecyclerView <API key>;
private RecyclerView <API key>;
private RecyclerView.Adapter <API key>;
private RecyclerView.Adapter <API key>;
//private String newJournalID;
//private String newAlbumID;
private int mYear;
private int mMonth;
private int mDay;
private boolean toggleRefresh = false;
private boolean isSaved = false;
private boolean discard = false;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getLayoutInflater().inflate(R.layout.<API key>, getBaseFrameLayout());
this.initToolbar();
this.initToolbarTitle();
this.setToolbarTitle(Constant.<API key>);
this.<API key>();
this.<API key>();
this.<API key>();
this.initJournalReceiver();
this.<API key>();
this.initNewJournal();
this.initTextTitle();
this.initTextContent();
this.initTextJournalDate();
this.initTextTag();
this.initTextProject();
this.initNewTagList();
this.initNewProject();
this.<API key>();
this.initTagSet();
this.<API key>();
this.newProjectList = new ProjectList();
this.newProjectList.setList(this.getCurrentUser().getProjectList());
Bundle getBundleExtra = getIntent().getExtras();
if (getBundleExtra != null) {
}
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
if (!<API key>().isDrawerOpen()) {
getMenuInflater().inflate(R.menu.<API key>, menu);
this.<API key>();
}
return true;
}
@Override
public boolean <API key>(MenuItem item) {
int id = item.getItemId();
switch(id) {
case android.R.id.home: // save the current new journal
//onBackPressed();
this.uploadNewJournal();
return true;
case R.id.action_image:
getLogic().<API key>(this, <API key>.<API key>,
this.getNewJournal().getAlbum(), this.getNewJournal().getJournalID());
return true;
}
return false;
}
@Override
public void setToolbarTitle(String title){
this.mToolbarTitle.setText(title);
}
@Override
public void onBackPressed() {
if(!this.getIsSaved() && !this.getDiscard()) { // save and not discard
this.showSaveDialog();
return;
}else{ //if discard and don't save, delete album and return to previous activity
this.deleteAlbum();
}
Intent intent = new Intent();
intent.putExtra(Constant.<API key>, this.getToggleRefresh());
setResult(Activity.RESULT_OK, intent);
finish();
super.onBackPressed();
}
private void <API key>(){
// disable the home button and onClick to open navigation drawer
// enable the back arrow button
getSupportActionBar().<API key>(false);
getSupportActionBar().<API key>(true);
getSupportActionBar().<API key>(true);
getSupportActionBar().<API key>(true);
getSupportActionBar().<API key>(R.drawable.ic_done);
}
public void initToolbar() {
this.mToolbarView = findViewById(R.id.<API key>);
((Toolbar) this.mToolbarView).<API key>(new View.OnClickListener() {
@Override
public void onClick(View v) {
//onBackPressed();
getLogging().debug(TAG, "mToolbarView <API key> onClick");
}
});
}
public void <API key>(){
if(this.<API key> != null) {
this.<API key>.<API key>();
}
}
public void setToggleRefresh(boolean val) {
this.toggleRefresh = val;
}
public void setIsSaved(boolean val) {
this.isSaved = val;
}
public void setDiscard(boolean val) {
this.discard = val;
}
private void initToolbarTitle() {
this.mToolbarTitle = (TextView) findViewById(R.id.toolbar_text_title);
}
private View getToolbar() {
return this.mToolbarView;
}
private void <API key>() {
setSupportActionBar((Toolbar) this.getToolbar());
}
private void <API key>() {
this.getLogic().<API key>(this, this.getCurrentUser().getUserID());
}
private void initNewJournal() {
this.newJournal = new Journal();
}
private void initTextTitle() {
this.mEditTextTitle = (EditText) findViewById(R.id.edit_text_title);
}
private void initTextContent(){
this.mEditTextContent = (EditText) findViewById(R.id.edit_text_content);
}
private void initTextJournalDate() {
this.mTextJournalDate = (TextView) findViewById(R.id.text_journal_date);
this.mTextJournalDate.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
<API key>();
}
});
}
private void <API key>() {
this.datePickerListener = new DatePickerDialog.OnDateSetListener() {
@Override
public void onDateSet(DatePicker view, int year,
int monthOfYear, int dayOfMonth) {
mYear = year;
mMonth = monthOfYear;
mDay = dayOfMonth;
String databaseFormatDate = year + "-" + (monthOfYear + 1) + "-" + dayOfMonth;
setTextJournalDate(<API key>(databaseFormatDate));
}
};
}
private void initTextTag() {
this.mTextTag = (TextView) findViewById(R.id.text_journal_tag);
this.mTextTag.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
showTagDialog(getTagSet().getTagList());
}
});
}
private void initTextProject() {
this.mTextProject = (TextView) findViewById(R.id.<API key>);
this.mTextProject.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
showProjectDialog(getCurrentUser().getProjectList());
}
});
}
private void initNewTagList() {
this.newTagList = new TagList();
}
private void initNewProject() {
this.newProject = new Project();
}
private void <API key>(View v){
RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(this);
this.<API key> = (RecyclerView) v.findViewById(R.id.recycler_edit_tag);
this.<API key>.setLayoutManager(layoutManager);
this.<API key>.setHasFixedSize(false);
this.<API key>.addItemDecoration(new <API key>(this, <API key>.VERTICAL_LIST));
this.<API key>.setAdapter(this.<API key>());
}
private void <API key>(View v){
RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(this);
this.<API key> = (RecyclerView) v.findViewById(R.id.<API key>);
this.<API key>.setLayoutManager(layoutManager);
this.<API key>.setHasFixedSize(false);
this.<API key>.addItemDecoration(new <API key>(this, <API key>.VERTICAL_LIST));
this.<API key>.setAdapter(this.<API key>());
}
private void <API key>(TagList currentUsedTagList){
getLogging().debug(TAG, "<API key>");
this.<API key> = new <API key>(currentUsedTagList);
/*
((<API key>) <API key>).<API key>(new <API key>.OnItemClickListener() {
@Override
public void onItemClick(View view, int position) {
getLogging().debug(TAG, "<API key> onItemClick position -> " + position);
}
});
*/
}
private void <API key>(ProjectList list){
getLogging().debug(TAG, "<API key>");
if(this.newProject != null) {
this.<API key> = new <API key>(list, this.newProject.getProjectID());
}else{
this.<API key> = new <API key>(list, "");
}
}
private RecyclerView.Adapter <API key>(){
return this.<API key>;
}
private RecyclerView.Adapter <API key>(){
return this.<API key>;
}
public void setNewJournalID(String id) {
this.getLogging().debug(TAG, "setNewJournalID id => " + id);
this.getNewJournal().setJournalID(id);
}
public void setNewAlbumID(String id) {
this.getLogging().debug(TAG, "setNewAlbumID id => " + id);
this.getNewJournal().getAlbum().setAlbumID(id);
}
public void setJournal(Journal j){
this.newJournal = j;
}
private void setEditTextTitle(String value){
this.mEditTextTitle.setText(value);
}
private void setEditTextContent(String value){
this.mEditTextContent.setText(value);
}
private void setTextJournalDate(String value) {
this.mTextJournalDate.setText(value);
}
private void setTextTag(String value){
this.mTextTag.setText(value);
}
private void setTextProject(String value){
this.mTextProject.setText(value);
}
private void setNewProject(Project project) {
this.newProject = project;
}
private String getEditTextTitle() {
return this.mEditTextTitle.getText().toString();
}
private String getTextJournalDate() {
return this.mTextJournalDate.getText().toString();
}
private String getTextTags() {
return this.mTextTag.getText().toString();
}
private String getTextProject() {
return this.mTextProject.getText().toString();
}
private String getEditTextContent() {
return this.mEditTextContent.getText().toString();
}
private TagList getTagList() {
return this.newTagList;
}
private boolean getToggleRefresh() {
return this.toggleRefresh;
}
private boolean getIsSaved() {
return this.isSaved;
}
private boolean getDiscard() {
return this.discard;
}
private Journal getNewJournal() {
return this.newJournal;
}
private void updateNewTagList(TagList list) {
this.newTagList.replaceWithTagList(list);
}
private void <API key>(){
this.datePickerDialog = new DatePickerDialog(this,
this.<API key>(),
this.mYear,
this.mMonth,
this.mDay);
this.datePickerDialog.show();
}
private DatePickerDialog.OnDateSetListener <API key>(){
return this.datePickerListener;
}
private void showTagDialog(TagList list){
AlertDialog.Builder builder = new AlertDialog.Builder(this);
LayoutInflater inflater = this.getLayoutInflater();
final View dialogView = inflater.inflate(R.layout.dialog_tag, null);
this.<API key>(list);
this.<API key>(dialogView);
ImageView addNewTag = (ImageView) dialogView.findViewById(R.id.<API key>);
addNewTag.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
getLogic().<API key>(<API key>.this, <API key>.ADD_TAG, "");
}
});
builder.setView(dialogView)
.setPositiveButton(R.string.dialog_ok, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int id) {
TagList list = ((<API key>) <API key>()).getTagList();
updateNewTagList(list); // update new tag list
for (Tag t : newTagList.getList()) {
getLogging().debug(TAG, "after update newTagList t.getName() => " + t.getName() + " checked => " + t.getIsChecked());
}
setTextTag(newTagList.getCheckedToString()); // update the tag text, show only all checked tags
}
});
builder.create().show();
}
private void showProjectDialog(ProjectList projectList){
AlertDialog.Builder builder = new AlertDialog.Builder(this);
LayoutInflater inflater = this.getLayoutInflater();
final View dialogView = inflater.inflate(R.layout.dialog_project, null);
this.<API key>(projectList);
this.<API key>(dialogView);
ImageView addNewProject = (ImageView) dialogView.findViewById(R.id.<API key>);
addNewProject.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
getLogic().<API key>(<API key>.this, <API key>.ADD_PROJECT, "");
}
});
builder.setView(dialogView)
.setPositiveButton(R.string.dialog_ok, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int id) {
Project selectedProject = ((<API key>) <API key>()).getSelectedProject();
newProject = selectedProject;
newProjectList.resetList();
if (selectedProject != null) { // sometimes user will not choose a project
newProjectList.updateProject(selectedProject);
}
setTextProject(selectedProject != null ? selectedProject.getName() : "");
setNewProject(selectedProject); // update the new project
}
});
builder.create().show();
}
private void showSaveDialog() {
final AlertDialog.Builder builder = new AlertDialog.Builder(this);
LayoutInflater inflater = this.getLayoutInflater();
final View dialogView = inflater.inflate(R.layout.dialog_save_layout, null);
builder.setView(dialogView)
.setPositiveButton(R.string.dialog_save, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int id) {
getLogging().debug(TAG, "showSaveDialog Save");
uploadNewJournal();
}
})
.setNegativeButton(R.string.dialog_cancel, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int id) {
getLogging().debug(TAG, "showSaveDialog Cancel");
mDialogSave.dismiss();
}
})
.setNeutralButton(R.string.dialog_discard, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int id) {
getLogging().debug(TAG, "showSaveDialog Discard");
setDiscard(true);
setToggleRefresh(false);
setIsSaved(false);
onBackPressed();
}
});
this.mDialogSave = builder.create();
this.mDialogSave.<API key>(false);
this.mDialogSave.setCancelable(true);
this.mDialogSave.show();
}
private void uploadNewJournal() {
if(!this.isValidJournal()) {
this.getLogging().debug(TAG, "uploadNewJournal it is not a valid new journal");
return;
}
this.getNewJournal().setJournalID(this.getNewJournal().getJournalID());
this.getNewJournal().setTitle(this.getEditTextTitle());
this.getNewJournal().setContent(this.getEditTextContent());
this.getNewJournal().setJournalDate(this.<API key>(this.getTextJournalDate()));
this.getNewJournal().setTagList(this.newTagList);
this.getNewJournal().setProject(this.newProject);
String detail = this.getParser().<API key>(this.getNewJournal());
this.getLogging().debug(TAG, "uploadNewJournal detail => " + detail);
this.getLogic().insertNewJournal(this,
this.getCurrentUser().getUserID(),
this.getNewJournal().getJournalID(),
this.getNewJournal().getAlbum().getAlbumID(),
detail);
}
private void deleteAlbum() {
this.getLogic().deleteAlbum(this, this.getNewJournal().getAlbum().getAlbumID());
}
private boolean isValidJournal() {
// Check title and content
if(getParser().isStringEmpty(this.getEditTextTitle()) &&
getParser().isStringEmpty(this.getEditTextContent())) {
return false; // if both empty, means it is not suitable to be uploaded as a new journal
}
return true;
}
}
|
const colors = require('colors/safe');
const <API key> = (...messages) =>
[].some((msgRegex) => messages.some((msg) => msgRegex.test(msg)));
const <API key> = (...messages) =>
[].some((msgRegex) => messages.some((msg) => msgRegex.test(msg)));
const logOrThrow = (log, method, messages) => {
const warning = `console.${method} calls not allowed in tests`;
if (process.env.CI) {
if (<API key>(messages)) return;
log(warning, '\n', ...messages);
// NOTE: That some warnings should be logged allowing us to refactor graceully
// without having to introduce a breaking change.
if (<API key>(messages)) return;
throw new Error(...messages);
} else {
log(colors.bgYellow.black(' WARN '), warning, '\n', ...messages);
}
};
// <API key> no-console
const logMessage = console.log;
global.console.log = (...messages) => {
logOrThrow(logMessage, 'log', messages);
};
// <API key> no-console
const logInfo = console.info;
global.console.info = (...messages) => {
logOrThrow(logInfo, 'info', messages);
};
// <API key> no-console
const logWarning = console.warn;
global.console.warn = (...messages) => {
logOrThrow(logWarning, 'warn', messages);
};
// <API key> no-console
const logError = console.error;
global.console.error = (...messages) => {
logOrThrow(logError, 'error', messages);
};
|
#include <vcl.h>
#pragma hdrstop
#include "fmStats.h"
#pragma package(smart_init)
#pragma resource "*.dfm"
TfrmStats *frmStats;
__fastcall TfrmStats::TfrmStats(TComponent* Owner)
: TForm(Owner), total_html_tags(CJerdyParser::HtmlTags().CountLeft()), tag_descriptors(CJerdyParser::HtmlTags().Current())
{
}
void __fastcall TfrmStats::CountTags(const CjHtmlElement* node)
{
tag_frequency[node->Meta()->id]++;
for (long i=0, cnt = node->ChildrenCount() ; i < cnt ; i++)
CountTags(node->Child(i));
}
void __fastcall TfrmStats::FormShow(TObject *Sender)
{
AnsiString title;
title.cat_printf("Frequency Of Tags Under '%s' At Level %ld", subtree_root->TagName(), subtree_root->Level());
Caption = title;
freqChart->Title->Text->Clear();
freqChart->Title->Text->Add(title);
Series1->Clear();
tag_frequency = new long[total_html_tags+1];
memset(tag_frequency, 0, (total_html_tags+1) * sizeof(long));
CountTags(subtree_root);
for (long index_max, max, i=0 ; i < total_html_tags ; i++)
{
index_max=tiNil;
max=-1;
for (long j=0 ; j < total_html_tags ; j++)
if (max < tag_frequency[j])
{
max = tag_frequency[j];
index_max = j;
}
if (index_max > tiRoot && tag_frequency[index_max]>0)
Series1->Add(tag_frequency[index_max], tag_descriptors[index_max].meta.name);
tag_frequency[index_max] = -1;
}
delete []tag_frequency;
}
void __fastcall TfrmStats::FormKeyPress(TObject *Sender, char &Key)
{
if (Key==27)
Close();
}
|
require "chamberevents/version"
require 'chamberevents/read'
require 'chamberevents/ical'
require 'chamberevents/upload'
module Chamberevents
def self.update!
events = Read.current
ical = Ical.new(events).to_s
Upload.write('elginchamber-events.ics', ical)
end
end
|
require File.dirname(__FILE__) + '/test_helper'
context "Resque::Scheduler" do
setup do
Resque::Scheduler.dynamic = false
Resque.redis.flushall
Resque::Scheduler.clear_schedule!
end
test 'set custom logger' do
custom_logger = Logger.new('/dev/null')
Resque::Scheduler.logger = custom_logger
assert_equal(custom_logger, Resque::Scheduler.logger)
end
context 'logger default settings' do
setup do
nullify_logger
end
test 'uses STDOUT' do
assert_equal(Resque::Scheduler.logger.<API key>(:@logdev).dev, STDOUT)
end
test 'not verbose' do
assert Resque::Scheduler.logger.level > Logger::DEBUG
end
test 'not muted' do
assert Resque::Scheduler.logger.level < Logger::FATAL
end
teardown do
nullify_logger
end
end
context 'logger custom settings' do
setup do
nullify_logger
end
test 'uses logfile' do
Resque::Scheduler.logfile = '/dev/null'
assert_equal(Resque::Scheduler.logger.<API key>(:@logdev).filename, '/dev/null')
end
test 'set verbosity' do
Resque::Scheduler.verbose = true
assert Resque::Scheduler.logger.level == Logger::DEBUG
end
test 'mute logger' do
Resque::Scheduler.mute = true
assert Resque::Scheduler.logger.level == Logger::FATAL
end
teardown do
nullify_logger
end
end
end
|
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="flayoutclass"><div class="flayoutclass_first"><table class="tableoutfmt2"><tr><th class="std1"><b> </b></th><td class="std2"></td></tr>
<tr><th class="std1"><b> </b></th><td class="std2"><sup class="subfont">ˋ</sup></td></tr>
<tr><th class="std1"><b> </b></th><td class="std2"><font class="english_word">duō shì zhī qiū</font></td></tr>
<tr><th class="std1"><b> </b></th><td class="std2">˙<img src=/cydic/dicword/fa40.gif border=0 alt=* class=fontimg valign=center><img src=/cydic/dicword/fa41.gif border=0 alt=* class=fontimg valign=center>˙<img src=/cydic/dicword/fa40.gif border=0 alt=* class=fontimg valign=center><img src=/cydic/dicword/fa41.gif border=0 alt=* class=fontimg valign=center></td></tr>
<tr><th class="std1"><b><font class="fltypefont"></font> </b></th><td class="std2"></td></tr>
</td></tr></table></div> <!-- flayoutclass_first --><div class="flayoutclass_second"></div> <!-- flayoutclass_second --></div> <!-- flayoutclass --></td></tr></table>
|
package com.jumi.scene.objects;
/**
*
* @author RGreenlees
*/
public class JUMISkinDeformer {
String name;
public JUMISubDeformer[] deformers = new JUMISubDeformer[0];
public JUMISkinDeformer(String inName) {
name = inName;
}
public String toString() {
String result = "Skin Deformer " + name + ":";
for (int i = 0; i < deformers.length; i++) {
result = result + "\n\t" + deformers[i].name;
}
return result;
}
public JUMISubDeformer <API key>(int index) {
if (index >= deformers.length) {
return null;
}
return deformers[index];
}
public JUMISubDeformer <API key>(String inName) {
for (JUMISubDeformer a : deformers) {
if (a.name.equals(inName)) {
return a;
}
}
return null;
}
}
|
<?php
// Load DB
include "ConfigDb.php";
// Load core classes
include "core/Model.php";
include "core/Controller.php";
// Load model classes - they extend Model.php
include "model/AddressesModel.php";
include "model/EmployeesModel.php";
// Load Controller class - it extends Controller.php
include 'controller/FilterInput.php';
include "controller/MainController.php";
include 'controller/EmployeeController.php';
include 'controller/AddressController.php';
include 'controller/RouteController.php';
$route = new RouteController();
$route->route();
|
package action
import (
"os"
"path/filepath"
"github.com/gopasspw/gopass/internal/tree"
"github.com/gopasspw/gopass/internal/config"
"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/internal/store/leaf"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/fsutil"
"github.com/gopasspw/gopass/pkg/termio"
"github.com/urfave/cli/v2"
)
// Fsck checks the store integrity
func (s *Action) Fsck(c *cli.Context) error {
s.rem.Reset("fsck")
ctx := ctxutil.WithGlobalFlags(c)
if c.IsSet("decrypt") {
ctx = leaf.WithFsckDecrypt(ctx, c.Bool("decrypt"))
}
out.Printf(ctx, "Checking store integrity ...")
// make sure config is in the right place
// we may have loaded it from one of the fallback locations
if err := s.cfg.Save(); err != nil {
return ExitError(ExitConfig, err, "failed to save config: %s", err)
}
// clean up any previous config locations
oldCfg := filepath.Join(config.Homedir(), ".gopass.yml")
if fsutil.IsFile(oldCfg) {
if err := os.Remove(oldCfg); err != nil {
out.Errorf(ctx, "Failed to remove old gopass config %s: %s", oldCfg, err)
}
}
// display progress bar
t, err := s.Store.Tree(ctx)
if err != nil {
return ExitError(ExitUnknown, err, "failed to list stores: %s", err)
}
pwList := t.List(tree.INF)
bar := termio.NewProgressBar(int64(len(pwList)*2), ctxutil.IsHidden(ctx))
ctx = ctxutil.<API key>(ctx, func() {
bar.Inc()
})
ctx = out.AddPrefix(ctx, "\n")
// the main work in done by the sub stores
if err := s.Store.Fsck(ctx, c.Args().Get(0)); err != nil {
return ExitError(ExitFsck, err, "fsck found errors: %s", err)
}
bar.Done()
return nil
}
|
require "<API key>"
CodeClimate::TestReporter.start
# This file was generated by the `rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# Require this file using `require "spec_helper"` to ensure that it is only
# loaded once.
RSpec.configure do |config|
config.<API key> = true
config.filter_run :focus
# Run specs in random order to surface order dependencies. If you find an
# order dependency and want to debug it, you can fix the order by providing
# the seed, which is printed after each run.
# --seed 1234
config.order = "random"
config.expect_with :rspec do |c|
# Disable old "should" syntax for expressions
c.syntax = :expect
end
end
|
namespace SimpleInjector.Diagnostics
{
using System;
using System.Diagnostics;
using SimpleInjector.Advanced;
<summary>
Diagnostic result for a warning about a
component that depends on a service with a lifestyle that is shorter than that of the component.
For more information, see: https://simpleinjector.org/dialm.
</summary>
[DebuggerDisplay("{" + nameof(DebuggerDisplay) + ", nq}")]
public class <API key> : DiagnosticResult
{
internal <API key>(
Type serviceType, string description, KnownRelationship relationship)
: base(
serviceType,
description,
DiagnosticType.LifestyleMismatch,
DiagnosticSeverity.Warning,
relationship)
{
this.Relationship = relationship;
}
<summary>Gets the object that describes the relationship between the component and its dependency.</summary>
<value>A <see cref="KnownRelationship"/> instance.</value>
public KnownRelationship Relationship { get; }
}
}
|
import Helper, { helper as buildHelper } from '@ember/component/helper';
import { inlineSvg } from 'ember-inline-svg/helpers/inline-svg';
import SVGs from '../svgs';
import Ember from 'ember';
let helper;
if (Helper && buildHelper) {
helper = buildHelper(function ([path], options) {
return inlineSvg(SVGs, path, options);
});
} else {
helper = Ember.Handlebars.makeBoundHelper(function (path, options) {
return inlineSvg(SVGs, path, options.hash || {});
});
}
export default helper;
|
'use strict';
var path = require('path');
var Stream = require('readable-stream');
var BufferStreams = require('bufferstreams');
var ttf2woff2 = require('ttf2woff2');
var PluginError = require('plugin-error');
var replaceExtension = require('replace-ext');
var PLUGIN_NAME = 'gulp-ttf2woff2';
// File level transform function
function ttf2woff2Transform() {
// Return a callback function handling the buffered content
return function <API key>(err, buf, cb) {
// Handle any error
if(err) {
return cb(new PluginError(PLUGIN_NAME, err, { showStack: true }));
}
// Use the buffered content
try {
buf = ttf2woff2(buf);
return cb(null, buf);
} catch(err2) {
return cb(new PluginError(PLUGIN_NAME, err2, { showStack: true }));
}
};
}
// Plugin function
function ttf2woff2Gulp(options) {
var stream = new Stream.Transform({ objectMode: true });
options = options || {};
options.ignoreExt = options.ignoreExt || false;
options.clone = options.clone || false;
stream._transform = function <API key>(file, unused, done) {
var cntStream;
var newFile;
// When null just pass through
if(file.isNull()) {
stream.push(file); done();
return;
}
// If the ext doesn't match, pass it through
if((!options.ignoreExt) && '.ttf' !== path.extname(file.path)) {
stream.push(file); done();
return;
}
// Fix for the vinyl clone method...
if(options.clone) {
if(file.isBuffer()) {
stream.push(file.clone());
} else {
cntStream = file.contents;
file.contents = null;
newFile = file.clone();
file.contents = cntStream.pipe(new Stream.PassThrough());
newFile.contents = cntStream.pipe(new Stream.PassThrough());
stream.push(newFile);
}
}
file.path = replaceExtension(file.path, '.woff2');
// Buffers
if(file.isBuffer()) {
try {
file.contents = ttf2woff2(file.contents);
} catch(err) {
stream.emit('error', new PluginError(PLUGIN_NAME, err, {
showStack: true,
}));
}
// Streams
} else {
file.contents = file.contents.pipe(new BufferStreams(ttf2woff2Transform()));
}
stream.push(file);
done();
};
return stream;
}
// Export the file level transform function for other plugins usage
ttf2woff2Gulp.fileTransform = ttf2woff2Transform;
// Export the plugin main function
module.exports = ttf2woff2Gulp;
|
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>V8 API Reference Guide for node.js v0.8.8: v8::RetainedObjectInfo Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">V8 API Reference Guide for node.js v0.8.8
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="<API key>">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacev8.html">v8</a></li><li class="navelem"><a class="el" href="<API key>.html">RetainedObjectInfo</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="<API key>.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">v8::RetainedObjectInfo Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
</div><!--header
<div class="contents">
<p><code>#include <<a class="el" href="<API key>.html">v8-profiler.h</a>></code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">Dispose</a> ()=0</td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">IsEquivalent</a> (<a class="el" href="<API key>.html">RetainedObjectInfo</a> *other)=0</td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top">virtual intptr_t </td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">GetHash</a> ()=0</td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">GetLabel</a> ()=0</td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">GetGroupLabel</a> ()</td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top">virtual intptr_t </td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">GetElementCount</a> ()</td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top">virtual intptr_t </td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">GetSizeInBytes</a> ()</td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Interface for providing information about embedder's objects held by global handles. This information is reported in two ways:</p>
<ol type="1">
<li>When calling AddObjectGroup, an embedder may pass <a class="el" href="<API key>.html">RetainedObjectInfo</a> instance describing the group. To collect this information while taking a heap snapshot, <a class="el" href="classv8_1_1_v8.html">V8</a> calls GC prologue and epilogue callbacks.</li>
<li>When a heap snapshot is collected, <a class="el" href="classv8_1_1_v8.html">V8</a> additionally requests RetainedObjectInfos for persistent handles that were not previously reported via AddObjectGroup.</li>
</ol>
<p>Thus, if an embedder wants to provide information about native objects for heap snapshots, he can do it in a GC prologue handler, and / or by assigning wrapper class ids in the following way:</p>
<ol type="1">
<li>Bind a callback to class id by calling DefineWrapperClass.</li>
<li>Call SetWrapperClassId on certain persistent handles.</li>
</ol>
<p><a class="el" href="classv8_1_1_v8.html">V8</a> takes ownership of <a class="el" href="<API key>.html">RetainedObjectInfo</a> instances passed to it and keeps them alive only during snapshot collection. Afterwards, they are freed by calling the Dispose class function. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="<API key>"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void v8::RetainedObjectInfo::Dispose </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Called by <a class="el" href="classv8_1_1_v8.html">V8</a> when it no longer needs an instance. </p>
</div>
</div>
<a class="anchor" id="<API key>"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual intptr_t v8::RetainedObjectInfo::GetElementCount </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns element count in case if a global handle retains a subgraph by holding one of its nodes. </p>
</div>
</div>
<a class="anchor" id="<API key>"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual const char* v8::RetainedObjectInfo::GetGroupLabel </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns human-readable group label. It must be a null-terminated UTF-8 encoded string. <a class="el" href="classv8_1_1_v8.html">V8</a> copies its contents during a call to GetGroupLabel. Heap snapshot generator will collect all the group names, create top level entries with these names and attach the objects to the corresponding top level group objects. There is a default implementation which is required because embedders don't have their own implementation yet. </p>
</div>
</div>
<a class="anchor" id="<API key>"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual intptr_t v8::RetainedObjectInfo::GetHash </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns hash value for the instance. Equivalent instances must have the same hash value. </p>
</div>
</div>
<a class="anchor" id="<API key>"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual const char* v8::RetainedObjectInfo::GetLabel </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns human-readable label. It must be a null-terminated UTF-8 encoded string. <a class="el" href="classv8_1_1_v8.html">V8</a> copies its contents during a call to GetLabel. </p>
</div>
</div>
<a class="anchor" id="<API key>"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual intptr_t v8::RetainedObjectInfo::GetSizeInBytes </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns embedder's object size in bytes. </p>
</div>
</div>
<a class="anchor" id="<API key>"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool v8::RetainedObjectInfo::IsEquivalent </td>
<td>(</td>
<td class="paramtype"><a class="el" href="<API key>.html">RetainedObjectInfo</a> * </td>
<td class="paramname"><em>other</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns whether two instances are equivalent. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>deps/v8/include/<a class="el" href="<API key>.html">v8-profiler.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Aug 11 2015 23:48:41 for V8 API Reference Guide for node.js v0.8.8 by &
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
|
public class Solution {
public int <API key>(String s) {
int[] map = new int[128];
int count = 0, start = 0, end = 0, d = 0;
while (end < s.length()) {
if (map[s.charAt(end++)]++ == 0) count++;
while (count > 2) if(map[s.charAt(start++)]-- == 1) count--;
d = Math.max(d, end - start);
}
return d;
}
}
|
<?php
/**
* This class defines the structure of the 'category' table.
*
*
*
* This map class is used by Propel to do runtime db structure discovery.
* For example, the createSelectSql() method checks the type of a given column used in an
* ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive
* (i.e. if it's a text column type).
*
* @package propel.generator.kreader.map
*/
class CategoryTableMap extends TableMap
{
/**
* The (dot-path) name of this class
*/
const CLASS_NAME = 'kreader.map.CategoryTableMap';
/**
* Initialize the table attributes, columns and validators
* Relations are not initialized by this method since they are lazy loaded
*
* @return void
* @throws PropelException
*/
public function initialize()
{
// attributes
$this->setName('category');
$this->setPhpName('Category');
$this->setClassname('Category');
$this->setPackage('kreader');
$this->setUseIdGenerator(true);
// columns
$this->addPrimaryKey('id', 'Id', 'INTEGER', true, null, null);
$this->addColumn('name', 'Name', 'VARCHAR', true, 255, null);
// validators
} // initialize()
/**
* Build the RelationMap objects for this table relationships
*/
public function buildRelations()
{
$this->addRelation('Site', 'Site', RelationMap::ONE_TO_MANY, array('id' => 'category_id', ), null, null, 'Sites');
} // buildRelations()
} // CategoryTableMap
|
#BEGIN_HEADER
# See licence file 'LICENCE' for use and distribution rights.
#END_HEADER
use strict;
use warnings;
# BNDCL-Check Lower Bound.
T['BNDCL REG:r=$BNDr AGEN:r=$agen ', 'MODE=64 ', 'BNDCL_ro ', ''];
T['BNDCL REG:r=$BNDr AGEN:r=$agen ', 'ASZ=32 MODE=NO64', 'BNDCL_ro ', ''];
T['BNDCL REG:r=$BNDr REG:r=$GPR64m', 'MODE=64 ', 'BNDCL_romx', ''];
T['BNDCL REG:r=$BNDr REG:r=$GPR32m', 'MODE=NO64 ', 'BNDCL_romx', ''];
# BNDCU/BNDCN-Check Upper Bound.
T['BNDCN REG:r=$BNDr AGEN:r=$agen ', 'MODE=64 ', 'BNDCN_ro ', ''];
T['BNDCN REG:r=$BNDr AGEN:r=$agen ', 'ASZ=32 MODE=NO64', 'BNDCN_ro ', ''];
T['BNDCN REG:r=$BNDr REG:r=$GPR64m', 'MODE=64 ', 'BNDCN_romx', ''];
T['BNDCN REG:r=$BNDr REG:r=$GPR32m', 'MODE=NO64 ', 'BNDCN_romx', ''];
T['BNDCU REG:r=$BNDr AGEN:r=$agen ', 'MODE=64 ', 'BNDCU_ro ', ''];
T['BNDCU REG:r=$BNDr AGEN:r=$agen ', 'ASZ=32 MODE=NO64', 'BNDCU_ro ', ''];
T['BNDCU REG:r=$BNDr REG:r=$GPR64m', 'MODE=64 ', 'BNDCU_romx', ''];
T['BNDCU REG:r=$BNDr REG:r=$GPR32m', 'MODE=NO64 ', 'BNDCU_romx', ''];
# BNDLDX-Load Extended Bounds Using Address Translation.
T['BNDLDX REG:w=$BNDr MIB:r:u64=$mib192', 'MODE=64 ', 'BNDLDX', ''];
T['BNDLDX REG:w=$BNDr MIB:r:u32=$mib96 ', 'ASZ=32 MODE=NO64', 'BNDLDX', ''];
# BNDMK-Make Bounds.
T['BNDMK REG:w=$BNDr AGEN:r=$agen', 'MODE=64 ', 'BNDMK', ''];
T['BNDMK REG:w=$BNDr AGEN:r=$agen', 'ASZ=32 MODE=NO64', 'BNDMK', ''];
# BNDMOV-Move Bounds.
T['BNDMOV REG:w=$BNDm REG:r=$BNDr ', 'MOD=REG ', 'BNDMOV_mxro', ''];
T['BNDMOV MEM:w:u64=$mem128 REG:r=$BNDr ', 'MOD=MEM MODE=64 ', 'BNDMOV_mxro', ''];
T['BNDMOV MEM:w:u32=$mem64 REG:r=$BNDr ', 'ASZ=32 MOD=MEM MODE=NO64', 'BNDMOV_mxro', ''];
T['BNDMOV REG:w=$BNDr REG:r=$BNDm ', 'MOD=REG ', 'BNDMOV_romx', ''];
T['BNDMOV REG:w=$BNDr MEM:r:u64=$mem128', 'MOD=MEM MODE=64 ', 'BNDMOV_romx', ''];
T['BNDMOV REG:w=$BNDr MEM:r:u32=$mem64 ', 'ASZ=32 MOD=MEM MODE=NO64', 'BNDMOV_romx', ''];
# BNDSTX-Store Extended Bounds Using Address Translation.
T['BNDSTX MIB:w:u64=$mib192 REG:r=$BNDr', 'MODE=64 ', 'BNDSTX', ''];
T['BNDSTX MIB:w:u32=$mib96 REG:r=$BNDr', 'ASZ=32 MODE=NO64', 'BNDSTX', ''];
# CLAC-Clear AC Flag in EFLAGS Register.
T['CLAC', 'NONE', 'CLAC', ''];
# CLDEMOTE-Cache Line Demote.
T['CLDEMOTE MEM:r:u8=$mem8', 'NONE', 'CLDEMOTE', ''];
# CLFLUSH-Flush Cache Line.
T['CLFLUSH MEM:r:s64=$mem512', 'NONE', 'CLFLUSH', ''];
# CLFLUSHOPT-Flush Cache Line Optimized.
T['CLFLUSHOPT MEM:r:s64=$mem512', 'NONE', 'CLFLUSHOPT', ''];
# CLRSSBSY-Clear Busy Flag in a Supervisor Shadow Stack Token.
T['CLRSSBSY MEM:rw:u64=$mem64', 'NONE', 'CLRSSBSY', ''];
# CLWB-Cache Line Write Back.
T['CLWB MEM:r:s64=$mem512', 'NONE', 'CLWB', ''];
# ENCLS.
T['ENCLS REG:SUPP:r=EAX REG:SUPP:crw=RBX REG:SUPP:crw=RCX REG:SUPP:crw=RDX', 'MODE=64 ', 'ENCLS', ''];
T['ENCLS REG:SUPP:r=EAX REG:SUPP:crw=EBX REG:SUPP:crw=ECX REG:SUPP:crw=EDX', 'MODE=NO64', 'ENCLS', ''];
# ENCLU.
T['ENCLU REG:SUPP:r=EAX REG:SUPP:crw=RBX REG:SUPP:crw=RCX REG:SUPP:crw=RDX', 'MODE=64 ', 'ENCLU', ''];
T['ENCLU REG:SUPP:r=EAX REG:SUPP:crw=EBX REG:SUPP:crw=ECX REG:SUPP:crw=EDX', 'MODE=NO64', 'ENCLU', ''];
# ENCLV.
T['ENCLV REG:SUPP:r:u32=EAX REG:SUPP:crw:u64=RBX REG:SUPP:crw:u64=RCX REG:SUPP:crw:u64=RDX', 'MODE=64 ', 'ENCLV', ''];
T['ENCLV REG:SUPP:r:u32=EAX REG:SUPP:crw:u64=EBX REG:SUPP:crw:u64=ECX REG:SUPP:crw:u64=EDX', 'MODE=NO64', 'ENCLV', ''];
# ENDBR32-Terminate an Indirect Branch in 32-bit and Compatibility Mode.
T['ENDBR32', 'NONE', 'ENDBR32', ''];
# ENDBR64-Terminate an Indirect Branch in 64-bit Mode.
T['ENDBR64', 'NONE', 'ENDBR64', ''];
# ENQCMD.
T['ENQCMD REG:r=$GPRar MEM:r:u32=$mem512', 'NONE', 'ENQCMD', ''];
# ENQCMDS.
T['ENQCMDS REG:r=$GPRar MEM:r:u32=$mem512', 'NONE', 'ENQCMDS', ''];
# GETSEC.
T['GETSEC REG:SUPP:rcw=EAX REG:SUPP:r=EBX', 'NONE', 'GETSEC', ''];
# INCSSPD/INCSSPQ-Increment Shadow Stack Pointer.
T['INCSSPD REG:r:u8=$GPR32m', 'W=0', 'INCSSPx', ''];
T['INCSSPQ REG:r:u8=$GPR64m', 'W=1', 'INCSSPx', ''];
# INVEPT-Invalidate Translations Derived from EPT.
T['INVEPT REG:r=$GPR64r MEM:r:s32=$mem128', 'MODE=64 ', 'INVEPT', ''];
T['INVEPT REG:r=$GPR32r MEM:r:s32=$mem128', 'MODE=NO64', 'INVEPT', ''];
# INVPCID-Invalidate Process-Context Identifier.
T['INVPCID REG:r=$GPR64r MEM:r:s32=$mem128', 'MODE=64 ', 'INVPCID', ''];
T['INVPCID REG:r=$GPR32r MEM:r:s32=$mem128', 'MODE=NO64', 'INVPCID', ''];
# INVVPID-Invalidate Translations Based on VPID.
T['INVVPID REG:r=$GPR64r MEM:r:s32=$mem128', 'MODE=64 ', 'INVVPID', ''];
T['INVVPID REG:r=$GPR32r MEM:r:s32=$mem128', 'MODE=NO64', 'INVVPID', ''];
# MONITOR-Set Up Monitor Address.
T['MONITOR REG:SUPP:r=$AXa REG:SUPP:r=RCX REG:SUPP:r=RDX', 'MODE=64 ', 'MONITOR', ''];
T['MONITOR REG:SUPP:r=$AXa REG:SUPP:r=ECX REG:SUPP:r=EDX', 'MODE=NO64', 'MONITOR', ''];
# MWAIT-Monitor Wait.
T['MWAIT REG:SUPP:r=RAX REG:SUPP:r=RCX', 'MODE=64 ', 'MWAIT', ''];
T['MWAIT REG:SUPP:r=EAX REG:SUPP:r=ECX', 'MODE=NO64', 'MWAIT', ''];
# PTWRITE-Write Data to a Processor Trace Packet.
T['PTWRITE REG:r=$GPRym ', 'MOD=REG', 'PTWRITE', ''];
T['PTWRITE MEM:r:sx=$memy', 'MOD=MEM', 'PTWRITE', ''];
# RDPID-Read Processor ID.
T['RDPID REG:w:u64=$GPR64m', 'MODE=64 ', 'RDPID', ''];
T['RDPID REG:w:u32=$GPR32m', 'MODE=NO64', 'RDPID', ''];
# RDPKRU-Read Protection Key Rights for User Pages.
T['RDPKRU REG:SUPP:r=PKRU REG:SUPP:w=EDX REG:SUPP:w=EAX REG:SUPP:r=ECX', 'NONE', 'RDPKRU', ''];
# RDRAND-Read Random Number.
T['RDRAND REG:w=$GPRvm', 'NONE', 'RDRAND', ''];
# RDSEED-Read Random SEED.
T['RDSEED REG:w=$GPRvm', 'NONE', 'RDSEED', ''];
# RDSSPD/RDSSPQ-Read Shadow Stack Pointer.
T['RDSSPD REG:w:u32=$GPR32m', 'MODE=NO64 W=0', 'RDSSPx', ''];
T['RDSSPQ REG:w:u64=$GPR64m', 'MODE=64 W=1 ', 'RDSSPx', ''];
# RDTSCP-Read Time-Stamp Counter and Processor ID.
T['RDTSCP REG:SUPP:w=EAX REG:SUPP:w=EDX REG:SUPP:w=ECX', 'NONE', 'RDTSCP', ''];
# RDFSBASE/RDGSBASE-Read FS/GS Segment Base.
T['RDFSBASE REG:w=$GPRym', 'NONE', 'RDFSBASE', ''];
T['RDGSBASE REG:w=$GPRym', 'NONE', 'RDGSBASE', ''];
# RSTORSSP-Restore Saved Shadow Stack Pointer.
T['RSTORSSP MEM:rw:u64=$mem64', 'NONE', 'RSTORSSP', ''];
# SAVEPREVSSP-Save Previous Shadow Stack Pointer.
T['SAVEPREVSSP', 'NONE', 'SAVEPREVSSP', ''];
# SETSSBSY-Mark Shadow Stack Busy.
T['SETSSBSY', 'NONE', 'SETSSBSY', ''];
# STAC-Set AC Flag in EFLAGS Register.
T['STAC', 'NONE', 'STAC', ''];
# TPAUSE-Timed PAUSE.
T['TPAUSE REG:r:u32=$GPR32m REG:SUPP:r:u32=EDX REG:SUPP:r:u32=EAX', 'W=0', 'TPAUSE', ''];
T['TPAUSE REG:r:u64=$GPR64m REG:SUPP:r:u32=EDX REG:SUPP:r:u32=EAX', 'W=1', 'TPAUSE', ''];
# UMONITOR-User Level Set Up Monitor Address.
T['UMONITOR REG:r=$GPRam', 'NONE', 'UMONITOR', ''];
# UMWAIT-User Level Monitor Wait.
T['UMWAIT REG:r:u32=$GPR32m REG:SUPP:r:u32=EDX REG:SUPP:r:u32=EAX', 'W=0', 'UMWAIT', ''];
T['UMWAIT REG:r:u64=$GPR64m REG:SUPP:r:u32=EDX REG:SUPP:r:u32=EAX', 'W=1', 'UMWAIT', ''];
# VMCALL-Call to VM Monitor.
T['VMCALL', 'NONE', 'VMCALL', ''];
# VMCLEAR-Clear Virtual-Machine Control Structure.
T['VMCLEAR MEM:r:s64=$mem64', 'NONE', 'VMCLEAR', ''];
# VMFUNC-Invoke VM function.
T['VMFUNC REG:SUPP:r=EAX', 'NONE', 'VMFUNC', ''];
# VMLAUNCH/VMRESUME-Launch/Resume Virtual Machine.
T['VMLAUNCH', 'NONE', 'VMLAUNCH', ''];
T['VMRESUME', 'NONE', 'VMRESUME', ''];
# VMPTRLD-Load Pointer to Virtual-Machine Control Structure.
T['VMPTRLD MEM:r:s64=$mem64', 'NONE', 'VMPTRLD', ''];
# VMPTRST-Store Pointer to Virtual-Machine Control Structure.
T['VMPTRST MEM:w:s64=$mem64', 'NONE', 'VMPTRST', ''];
# VMREAD-Read Field from Virtual-Machine Control Structure.
T['VMREAD REG:w=$GPR64m REG:r=$GPR64r', 'MOD=REG MODE=64 ', 'VMREAD', ''];
T['VMREAD MEM:w:s64=$mem64 REG:r=$GPR64r', 'MOD=MEM MODE=64 ', 'VMREAD', ''];
T['VMREAD REG:w=$GPR32m REG:r=$GPR32r', 'MOD=REG MODE=NO64', 'VMREAD', ''];
T['VMREAD MEM:w:s32=$mem32 REG:r=$GPR32r', 'MOD=MEM MODE=NO64', 'VMREAD', ''];
# VMWRITE-Write Field to Virtual-Machine Control Structure.
T['VMWRITE REG:r=$GPR64r REG:r=$GPR64m ', 'MOD=REG MODE=64 ', 'VMWRITE', ''];
T['VMWRITE REG:r=$GPR64r MEM:r:s64=$mem64', 'MOD=MEM MODE=64 ', 'VMWRITE', ''];
T['VMWRITE REG:r=$GPR32r REG:r=$GPR32m ', 'MOD=REG MODE=NO64', 'VMWRITE', ''];
T['VMWRITE REG:r=$GPR32r MEM:r:s32=$mem32', 'MOD=MEM MODE=NO64', 'VMWRITE', ''];
# VMXOFF-Leave VMX Operation.
T['VMXOFF', 'NONE', 'VMXOFF', ''];
# VMXON-Enter VMX Operation.
T['VMXON MEM:r:s64=$mem64', 'NONE', 'VMXON', ''];
# WRPKRU-Write Data to User Page Key Register.
T['WRPKRU REG:SUPP:w=PKRU REG:SUPP:r=EDX REG:SUPP:r=EAX REG:SUPP:r=ECX', 'NONE', 'WRPKRU', ''];
# WRSSD/WRSSQ-Write to Shadow Stack.
T['WRSSD MEM:w:u32=$mem32 REG:r:u32=$GPR32r', 'W=0', 'WRSSx', ''];
T['WRSSQ MEM:w:u64=$mem64 REG:r:u64=$GPR64r', 'W=1', 'WRSSx', ''];
# WRUSSD/WRUSSQ-Write to User Shadow Stack.
T['WRUSSD MEM:w:u32=$mem32 REG:r:u32=$GPR32r', 'W=0', 'WRUSSx', ''];
T['WRUSSQ MEM:w:u64=$mem64 REG:r:u64=$GPR64r', 'W=1', 'WRUSSx', ''];
# WRFSBASE/WRGSBASE-Write FS/GS Segment Base.
T['WRFSBASE REG:r=$GPRym', 'NONE', 'WRFSBASE', ''];
T['WRGSBASE REG:r=$GPRym', 'NONE', 'WRGSBASE', ''];
# <API key> Abort.
T['XABORT IMM:u8=$uimm8 REG:SUPP:rcw=EAX', 'NONE', 'XABORT', ''];
# <API key> Begin.
T['XBEGIN REL:sx=$relz REG:SUPP:rw=$IPa REG:SUPP:cw=EAX', 'NONE', 'XBEGIN', ''];
# XEND-Transactional End.
T['XEND', 'NONE', 'XEND', ''];
# XGETBV-Get Value of Extended Control Register.
T['XGETBV REG:SUPP:r=ECX REG:SUPP:w=EDX REG:SUPP:w=EAX REG:SUPP:r=XCR0', 'NONE', 'XGETBV', ''];
# XRSTOR-Restore Processor Extended States.
T['XRSTOR MEM:r=$mem4608 REG:SUPP:r=EDX REG:SUPP:r=EAX REG:SUPP:r=XCR0', 'W=0', 'XRSTOR', ''];
T['XRSTOR64 MEM:r=$mem4608 REG:SUPP:r=EDX REG:SUPP:r=EAX REG:SUPP:r=XCR0', 'W=1', 'XRSTOR', ''];
# XRSTORS-Restore Processor Extended States Supervisor.
T['XRSTORS MEM:r=$mem4608 REG:SUPP:r=EDX REG:SUPP:r=EAX REG:SUPP:r=XCR0', 'W=0', 'XRSTORS', ''];
T['XRSTORS64 MEM:r=$mem4608 REG:SUPP:r=EDX REG:SUPP:r=EAX REG:SUPP:r=XCR0', 'W=1', 'XRSTORS', ''];
# XSAVE-Save Processor Extended States.
T['XSAVE MEM:rw=$mem4608 REG:SUPP:r=EDX REG:SUPP:r=EAX REG:SUPP:r=XCR0', 'W=0', 'XSAVE', ''];
T['XSAVE64 MEM:rw=$mem4608 REG:SUPP:r=EDX REG:SUPP:r=EAX REG:SUPP:r=XCR0', 'W=1', 'XSAVE', ''];
# XSAVEC-Save Processor Extended States with Compaction.
T['XSAVEC MEM:w=$mem4608 REG:SUPP:r=EDX REG:SUPP:r=EAX REG:SUPP:r=XCR0', 'W=0', 'XSAVEC', ''];
T['XSAVEC64 MEM:w=$mem4608 REG:SUPP:r=EDX REG:SUPP:r=EAX REG:SUPP:r=XCR0', 'W=1', 'XSAVEC', ''];
# XSAVEOPT-Save Processor Extended States Optimized.
T['XSAVEOPT MEM:rw=$mem4608 REG:SUPP:r=EDX REG:SUPP:r=EAX REG:SUPP:r=XCR0', 'W=0', 'XSAVEOPT', ''];
T['XSAVEOPT64 MEM:rw=$mem4608 REG:SUPP:r=EDX REG:SUPP:r=EAX REG:SUPP:r=XCR0', 'W=1', 'XSAVEOPT', ''];
# XSAVES-Save Processor Extended States Supervisor.
T['XSAVES MEM:w=$mem4608 REG:SUPP:r=EDX REG:SUPP:r=EAX REG:SUPP:r=XCR0', 'NONE', 'XSAVES ', ''];
T['XSAVES64 MEM:w=$mem4608 REG:SUPP:r=EDX REG:SUPP:r=EAX REG:SUPP:r=XCR0', 'NONE', 'XSAVES64', ''];
# XSETBV-Set Extended Control Register.
T['XSETBV REG:SUPP:r=ECX REG:SUPP:r=EDX REG:SUPP:r=EAX REG:SUPP:w=XCR0', 'NONE', 'XSETBV', ''];
# XTEST-Test If In Transactional Execution.
T['XTEST', 'NONE', 'XTEST', ''];
|
#!usr/bin/perl;
use strict;
my $blastFile = $ARGV[0];
open (BFILE,$blastFile);
open (ANIT,">blastANIT");
open (ANIS,">blastANIS");
open (ANIU,">blastANIU");
my $counter=0;
while (my $line=<BFILE>){
#print $line;
if ($line =~ m/(ANIS)/){
print ANIS $line;
}
elsif ($line =~ m/(ANIT)/){
print ANIT $line;
}
elsif ($line =~ m/(ANIU)/){
print ANIU $line;
}
else{
$counter++;
}
}
print "counter=$counter\n";
|
require "spec_helper"
describe ZMQP1 do
it "is awesome" do
ZMQP1::Awesome.new.describe.should be_awesome
end
end
|
namespace TheDmi.<API key>
{
public interface IShowsSection
{
}
}
|
layout: post
title: suruba amadora
titleinfo: pornvd
desc: Watch suruba amadora. Pornhub is the ultimate xxx porn and sex site.
<iframe src="http:
<h2>suruba amadora</h2>
<h3>Watch suruba amadora. Pornhub is the ultimate xxx porn and sex site.</h3>
|
<?php
/*
Safe sample
input : get the field userData from the variable $_GET via an object
sanitize : use of floatval
construction : interpretation with simple quote
*/
class Input{
private $input;
public function getInput(){
return $this->input;
}
public function __construct(){
$this->input = $_GET['UserData'] ;
}
}
$temp = new Input();
$tainted = $temp->getInput();
$tainted = floatval($tainted);
$query = "$temp = ' $tainted ';";
$res = eval($query);
?>
|
package game.saver.remote.gamemaps;
import game.saver.GameData;
import game.saver.Quarry;
import game.saver.gamemaps.GameDoubleMap;
import game.saver.gamemaps.GameFloatMap;
import game.saver.remote.RemoteClassMap;
import game.saver.remote.Remoteable;
import java.util.LinkedList;
import java.util.Map;
/**
*
* @author MrInformatic
*/
public class RemoteGameDoubleMap<T extends GameData> extends GameDoubleMap<T> implements Remoteable{
private int id;
private Quarry quarry;
private RemoteClassMap remoteClassMap;
public RemoteGameDoubleMap(Quarry quarry,RemoteClassMap remoteClassMap){
this.quarry = quarry;
this.remoteClassMap = remoteClassMap;
}
@Override
public T put(Double key, T value) {
LinkedList<GameData> gameDatas = getUnaddedGameData(value);
T type = super.put(key,value);
sendPut(key, value, gameDatas);
return type;
}
@Override
public T remove(Object key) {
quarry.writeByte((byte)1);
quarry.writeDouble((Double)key);
return super.remove(key);
}
@Override
public void putAll(Map<? extends Double, ? extends T> m) {
LinkedList<GameData>[] gameDatases = new LinkedList[m.size()];
int i=0;
for(T ms : m.values()){
gameDatases[i] = getUnaddedGameData(ms);
i++;
}
super.putAll(m);
i=0;
for(Map.Entry<? extends Double, ? extends T> ms : m.entrySet()){
sendPut(ms.getKey(),ms.getValue(),gameDatases[i]);
i++;
}
}
@Override
public void clear() {
quarry.writeByte((byte)2);
super.clear();
}
private void sendPut(Double key,T value,LinkedList<GameData> unaddedGameData){
for(GameData gameData : unaddedGameData){
remoteClassMap.addClass(gameData.getClass());
}
quarry.writeInt(id);
quarry.writeByte((byte)0);
quarry.writeDouble(key);
quarry.writeInt(unaddedGameData.size());
for(GameData gameData : unaddedGameData){
quarry.writeInt(gameData.getId());
quarry.writeInt(remoteClassMap.getClassId(gameData.getClass()));
quarry.write(gameData);
}
for(GameData gameData : unaddedGameData){
gameData.writeChilds(quarry);
}
quarry.writeInt(-1);
}
private LinkedList<GameData> getUnaddedGameData(GameData gameData){
LinkedList<GameData> result = new LinkedList<>();
getUnaddedGameData(result,gameData);
return result;
}
private LinkedList<GameData> getUnaddedGameData(LinkedList<GameData> list,GameData gameData){
if(gameData.getId()==-1){
list.add(gameData);
}
for(GameData gameData1 : gameData.getChilds()){
getUnaddedGameData(list,gameData1);
}
return list;
}
@Override
public void update() {
try {
switch(quarry.readByte()){
case 0:
double key = quarry.readDouble();
LinkedList<GameData> gameDatas = new LinkedList<>();
int length = quarry.readInt();
for(int i=0;i<length;i++){
int id = quarry.readInt();
T value = (T)quarry.read(remoteClassMap.getClassbyId(quarry.readInt()));
gameDatas.add(value);
graph.set(id,value);
}
for(GameData gameData : gameDatas){
gameData.readChilds(quarry,graph);
}
break;
case 1:
remove(quarry.readDouble());
break;
case 2:
clear();
break;
}
} catch (Exception ex) {
ex.printStackTrace();
}
}
public void setId(int id){
this.id = id;
}
}
|
function commentPage() {
// Open popup
$("#comment-popup").dialog({
width : 800,
height : 400,
modal : true,
appendTo: "#mainForm",
open : function(event, ui) {
$('input[id$="comment-comment"]').focus();
},
close : function(event, ui) {
cancelComment();
}
});
}
/**
* Clean comment form
*/
function cancelComment() {
$('textarea[id$="comment-comment"]').val('');
}
function saveComment(event) {
if (event.status == 'complete') {
cancelComment();
$('#comment-popup').dialog('close');
}
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using TwitterAPI;
using System.Net;
using Core;
using System.Security.Cryptography;
using System.IO;
namespace TwitterAPI
{
[DataContract]
public class <TwitterConsumerkey>
{
<summary>
ID
</summary>
[DataMember(Name = "id")]
public decimal Id { get; set; }
[DataMember(Name = "created_at")]
private string created_at { get; set; }
public DateTime CreateDate
{
get
{
return DateTime.ParseExact(created_at, "ddd MMM dd HH':'mm':'ss zz'00' yyyy",
System.Globalization.DateTimeFormatInfo.InvariantInfo,
System.Globalization.DateTimeStyles.None);
}
}
<summary>
ID()
</summary>
[DataMember(Name = "id_str")]
public string StringId { get; set; }
<summary>
</summary>
[DataMember(Name = "recipient")]
public TwitterUser Recipient { get; set; }
<summary>
</summary>
[DataMember(Name = "sender")]
public TwitterUser Sender { get; set; }
<summary>
</summary>
[DataMember(Name = "text")]
public string Text { get; set; }
[DataMember(Name = "sender_id")]
public decimal SenderId { get; set; }
[DataMember(Name = "sender_id_str")]
public string SenderStringId { get; set; }
[DataMember(Name = "sender_screen_name")]
public string SenderScreenName { get; set; }
[DataMember(Name = "recipient_id")]
public decimal RecipientId { get; set; }
[DataMember(Name = "recipient_id_str")]
public string RecipientStringId { get; set; }
[DataMember(Name = "<API key>")]
public string RecipientScreenName { get; set; }
[DataMember(Name = "entities")]
public TwitterStatus.TweetEntities Entities { get; set; }
public static TwitterResponse<<TwitterConsumerkey>> DirectMessage(OAuthTokens tokens, <API key> options)
{
return new TwitterResponse<<TwitterConsumerkey>>(Method.Get(UrlBank.DirectMessages, tokens, options));
}
public static TwitterResponse<<TwitterConsumerkey>> DirectMessageSent(OAuthTokens tokens, <API key> options)
{
return new TwitterResponse<<TwitterConsumerkey>>(Method.Get(UrlBank.DirectMessagesSent, tokens, options));
}
public static TwitterResponse<<TwitterConsumerkey>> Show(OAuthTokens tokens, decimal id)
{
return new TwitterResponse<<TwitterConsumerkey>>(Method.Get(string.Format(UrlBank.DirectMessageShow, id), tokens, null));
}
public static TwitterResponse<<TwitterConsumerkey>> Destroy(OAuthTokens tokens, decimal id, bool IncludeEntities = false)
{
return new TwitterResponse<<TwitterConsumerkey>>(Method.<API key>(Method.GenerateWebRequest(string.Format("{0}?id={1}", UrlBank.<API key>, id), WebMethod.POST, tokens, null, "application/<API key>", null, null)));
}
public static TwitterResponse<<TwitterConsumerkey>> New(OAuthTokens tokens, string ScreenName, string Text)
{
string data = string.Format("text={0}&screen_name={1}", Uri.EscapeDataString(Text), Uri.EscapeDataString(ScreenName));
return new TwitterResponse<<TwitterConsumerkey>>(Method.<API key>(Method.GenerateWebRequest("https://api.twitter.com/1.1/direct_messages/new.json?" + data, WebMethod.POST, tokens, null, "application/<API key>", null, null)));
}
public static TwitterResponse<<TwitterConsumerkey>> New(OAuthTokens tokens, decimal UserId, string Text)
{
string data = string.Format("text={0}&screen_name={1}", Uri.EscapeDataString(Text), UserId);
return new TwitterResponse<<TwitterConsumerkey>>(Method.<API key>(Method.GenerateWebRequest("https://api.twitter.com/1.1/direct_messages/new.json?" + data, WebMethod.POST, tokens, null, "application/<API key>", null, null)));
}
private class DMDestroyOption : ParameterClass
{
[Parameters("id", ParameterMethodType.POSTData)]
public decimal Id { get; set; }
[Parameters("include_entities")]
public bool? IncludeEntities { get; set; }
}
}
public class <TwitterConsumerkey> : List<<TwitterConsumerkey>> { }
}
|
<API key>
============================
Another website I ran at one time, hand-coded. Some scraps from it's predecessor are also buried in the directory. Looking at the predecessor site, one can easily see it was my learning experience using GIMP to slice and dice a website :)
|
document.addEventListener("DOMContentLoaded", function() {
"use_strict";
// Store game in global variable
const CASUDOKU = {};
CASUDOKU.game = (function() {
// Controls the state of the game
// Game UI
let uiStats = document.getElementById("gameStats"),
uiComplete = document.getElementById("gameComplete"),
uiNewGame = document.getElementById("gameNew"),
gamePadKeys = document.querySelectorAll("#gameKeypad li a");
// GameKeypad Events
for (let i = gamePadKeys.length - 1; i >= 0; i
let key = gamePadKeys[i];
key.onclick = function(e) {
e.preventDefault();
// Parse keycode value
let number = parseInt(e.currentTarget.innerText, 10);
if (!number) {
CASUDOKU.board.update_cell(0);
} else {
CASUDOKU.board.update_cell(number);
}
}
}
uiNewGame.onclick = function(e) {
e.preventDefault();
CASUDOKU.game.start();
}
start = function() {
CASUDOKU.timer.start();
CASUDOKU.board.new_puzzle();
uiComplete.style.display = "none";
uiStats.style.display = "block";
};
over = function() {
CASUDOKU.timer.stop();
uiComplete.style.display = "block";
uiStats.style.display = "none";
};
// Public api
return {
start: start,
over: over
};
}());
CASUDOKU.timer = (function() {
let timeout,
seconds = 0,
minutes = 0,
secCounter = document.querySelectorAll(".secCounter"),
minCounter = document.querySelectorAll(".minCounter");
start = function() {
if (seconds === 0 && minutes === 0) {
timer();
} else {
stop();
seconds = 0;
minutes = 0;
setText(minCounter, 0);
timer();
}
};
stop = function() {
clearTimeout(timeout);
};
setText = function(element, time) {
element.forEach(function(val) {
val.innerText = time;
});
};
timer = function() {
timeout = setTimeout(timer, 1000);
if (seconds === 59) {
setText(minCounter, ++minutes);
seconds = 0;
}
setText(secCounter, seconds++);
};
// Public api
return {
start: start,
stop: stop
};
}());
CASUDOKU.board = (function() {
// Stores the cells that make up the Sudoku board
let grid = [],
// Canvas settings
canvas = document.getElementById("gameCanvas"),
context = canvas.getContext("2d"),
canvasWidth = canvas.offsetWidth,
canvasHeight = canvas.offsetHeight,
// Board Settings
numRows = 9, numCols = 9,
regionWidth = canvasWidth / 3,
regionHeight = canvasHeight / 3,
// Cell Settings
cellWidth = canvasWidth / numCols,
cellHeight = canvasHeight / numRows,
numCells = numRows * numCols,
selectedCellIndex = 0,
//Key Codes
keycode = {
arrowLeft: 37,
arrowUp: 38,
arrowRight: 39,
arrowDown: 40,
zero: 48,
nine: 57
};
// End let
// Keyboard & Mouse Events
canvas.addEventListener("click", function (e) {
// Calculate position of mouse click and update selected cell
let xAxis,
yAxis,
canvasOffset = getOffset(),
cellIndex,
resultsX = [],
resultsY = [];
function getOffset() {
return {
left: canvas.<API key>().left + window.scrollX,
top: canvas.<API key>().top + window.scrollY
};
}
if (e.pageX !== undefined && e.pageY !== undefined) {
xAxis = e.pageX;
yAxis = e.pageY;
} else {
xAxis = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
yAxis = e.clientY + document.body.scrollTop + document.documentElement.scrollTop;
}
xAxis -= canvasOffset.left;
yAxis -= canvasOffset.top;
xAxis = Math.min(xAxis, canvasWidth);
yAxis = Math.min(yAxis, canvasHeight);
xAxis = Math.floor(xAxis/cellWidth);
yAxis = Math.floor(yAxis/cellHeight);
// Matches clicked coordinates to a cell
for (let i = 0; i < numCells; i+= 1) {
if (grid[i].col === xAxis && grid[i].row === yAxis) {
selectedCellIndex = i;
refresh_board();
}
}
});
window.addEventListener("keypress", function (e) {
if (e.which >= keycode.zero && e.which <= keycode.nine) {
// Subtract 48 to get actual number
update_cell(e.which - 48);
}
});
window.addEventListener("keydown", function (e) {
// Arrow Key events for changing the selected cell
let pressed = e.which,
col = grid[selectedCellIndex].col,
row = grid[selectedCellIndex].row;
if (pressed >= keycode.arrowLeft && pressed <= keycode.arrowDown) {
if (col < (numCols - 1) && pressed == keycode.arrowRight) {
selectedCellIndex++;
refresh_board();
}
if (col > 0 && pressed == keycode.arrowLeft) {
selectedCellIndex
refresh_board();
}
if (row < (numRows - 1) && pressed == keycode.arrowDown) {
selectedCellIndex += numCols;
refresh_board();
}
if (row > 0 && pressed == keycode.arrowUp) {
selectedCellIndex -= numCols;
refresh_board();
}
}
});
new_puzzle = function() {
let workerSudokuSolver = new Worker("js/sudoku-solver.js"),
clues = 24,
puzzle;
workerSudokuSolver.postMessage(clues);
workerSudokuSolver.onmessage = function(e) {
puzzle = e.data;
make_grid(puzzle);
};
};
make_grid = function(puzzle) {
// Makes a grid array filled with cell instances. Each cell stores
// one puzzle value
let colCounter = 0,
rowCounter = 0;
class Cell {
constructor() {
// set fixed puzzle values
this.isDefault = true;
this.value = 0;
// Store position on the canvas
this.x = 0;
this.y = 0;
this.col = 0;
this.row = 0;
}
};
for (let i = 0; i < puzzle.length; i++) {
grid[i] = new Cell();
grid[i].value = puzzle[i];
if (puzzle[i] === 0) {
grid[i].isDefault = false;
}
// Set cell column and row
grid[i].col = colCounter;
grid[i].row = rowCounter;
colCounter++;
// change row
if ((i + 1) % 9 === 0) {
rowCounter++;
colCounter = 0;
}
}
refresh_board();
};
refresh_board = function () {
let <API key> = new Worker("js/sudoku-validator.js");
<API key>.postMessage(grid);
<API key>.onmessage = function(e) {
let correct = e.data;
if (correct) {
CASUDOKU.game.over();
}
draw();
};
};
draw = function () {
// renders the canvas
let regionPosX = 0, regionPosY = 0,
cellPosX = 0, cellPosY = 0,
textPosX = cellWidth * 0.4, textPosY = cellHeight * 0.65;
// board outline
context.clearRect(0, 0, canvasWidth, canvasHeight);
context.strokeRect(0 , 0, canvasWidth, canvasHeight);
context.<API key> = "destination-over";
context.lineWidth = 10;
// regions
for (let x = 0; x < numRows; x++) {
context.strokeRect(regionPosX, regionPosY, regionWidth, regionHeight);
regionPosX += regionWidth;
if (regionPosX == canvasWidth){
regionPosY += regionHeight;
regionPosX = 0;
}
}
// Start to draw the Grid
context.beginPath();
// vertical lines
for (let z = 0; z <= canvasWidth; z += cellWidth) {
context.moveTo(0.5 + z, 0);
context.lineTo(0.5 + z, canvasWidth);
}
// horizontal lines
for (let y = 0; y <= canvasHeight; y += cellHeight) {
context.moveTo(0, 0.5 + y);
context.lineTo(canvasHeight, 0.5 + y);
}
// cell outline
context.lineWidth = 2;
context.strokeStyle = "black";
context.stroke();
for (let i = 0; i < numCells; i++) {
grid[i].x = cellPosX;
grid[i].y = cellPosY;
// Cell values
if (grid[i].isDefault) {
context.font = "bold 1.6em Droid Sans, sans-serif";
context.fillStyle = "black";
context.fillText(grid[i].value, textPosX, textPosY);
}
if (grid[i].value !== 0 && !grid[i].isDefault) {
context.font = "1.4em Droid Sans, sans-serif";
context.fillStyle = "grey";
context.fillText(grid[i].value, textPosX, textPosY);
}
// Cell background colour
if (i == selectedCellIndex) {
context.fillStyle = "#00B4FF";
}
else {
context.fillStyle = "#EEEEEE";
}
// Cell background
context.fillRect(cellPosX, cellPosY, cellWidth, cellHeight);
cellPosX += cellWidth;
textPosX += cellWidth;
// Change row
if ((i + 1) % numRows === 0) {
cellPosX = 0;
cellPosY += cellHeight;
textPosY += cellHeight;
textPosX = cellWidth * 0.4;
}
}
};
update_cell = function (value) {
if (!grid[selectedCellIndex].isDefault) {
grid[selectedCellIndex].value = value;
refresh_board();
}
};
// Public api
return {
new_puzzle: new_puzzle,
update_cell: update_cell
};
}());
CASUDOKU.game.start();
});
|
# Asynchronous Example
An example showing how to delay rendering for asynchronous events.
## Commands
sh
$ npm install
$ npm run dev
$ npm run build
## Code
js
// webpack.config.babel.js
new HtmlPlugin((assets, defaultTemplate, compiler) => {
return new Promise((resolve, reject) => {
var templateData = {
assets,
title: 'Asynchronous Example'
}
setTimeout(resolve, 5 * 1000, {
'index.html': defaultTemplate(templateData)
})
})
})
This software is released into the public domain.
|
package rest
import (
restful "github.com/emicklei/go-restful"
swagger "github.com/emicklei/<API key>"
)
// ConfigureSwagger configures the swagger documentation for all endpoints in the container
func ConfigureSwagger(apiDocPath string, container *restful.Container) {
if apiDocPath == "" {
return
}
config := swagger.Config{
WebServices: container.<API key>(),
WebServicesUrl: ``,
ApiPath: apiDocPath,
}
swagger.<API key>(config, container)
}
|
webpackJsonp([2],{
16:
function(module, exports, __webpack_require__) {
<reference path="../../typings/tsd.d.ts" />
var ListController = __webpack_require__(17);
// webpack will load the html. Nifty, eh?
__webpack_require__(9);
// webpack will load this scss too!
__webpack_require__(18);
module.exports = angular.module('List', [])
.controller('ListController', ['$scope', ListController]);
//# sourceMappingURL=index.js.map
},
17:
function(module, exports) {
var ListController = (function () {
function ListController() {
this.apps = [
{ name: 'Gmail' },
{ name: 'Facebook' },
{ name: 'Twitter' },
{ name: 'LinkedIn' }
];
this.title = 'Applications';
}
return ListController;
})();
module.exports = ListController;
//# sourceMappingURL=list.controller.js.map
},
18:
function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__(19);
if(typeof content === 'string') content = [[module.id, content, '']];
// add the styles to the DOM
var update = __webpack_require__(15)(content, {});
if(content.locals) module.exports = content.locals;
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!./../../../../node_modules/css-loader/index.js!./../../../../node_modules/autoprefixer-loader/index.js!./../../../../node_modules/sass-loader/index.js!./list.scss", function() {
var newContent = require("!!./../../../../node_modules/css-loader/index.js!./../../../../node_modules/autoprefixer-loader/index.js!./../../../../node_modules/sass-loader/index.js!./list.scss");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
},
19:
function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(14)();
// imports
// module
exports.push([module.id, ".list-item {\n color: blue; }\n", ""]);
// exports
}
});
|
<?php
namespace App\Models;
use Fwartner\Katching\Cacheable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Comment extends Model
{
use Cacheable, SoftDeletes;
protected $table = 'comments';
protected $fillable = [
'content',
'is_spam',
'user_id',
'thread_id'
];
protected $casts = [
'is_spam' => 'boolean'
];
public function owner()
{
return $this->belongsTo(User::class, 'user_id');
}
public function forum()
{
return $this->belongsTo(Forum::class, 'forum_id');
}
public function thread()
{
return $this->belongsTo(Thread::class, 'thread_id');
}
}
|
#**Django-AdminLTE-X**
**Django AdminLTE Template**
AdminLTE Bootstrap Theme packaged for Django
**Quick Start**
Install the pip package:
pip install django_adminlte_x
Add `adminlte` to your `INSTALLED_APPS` setting like this:
INSTALLED_APPS = (
'adminlte'
)
It is almost done. You can check if this is working by adding a template
**Adding navigation**
python
from adminlte.templatetags.menu import Menu
Menu.add(label, link, icon, id, parent)
**Set Model Icon**
python
from adminlte.templatetags.menu import Menu
Menu.Menu.set_model_icon('AppName', 'fa fa-plus')
**Assets**
Assets.js([
'jquery.min.js'
])
Assets.css([
'stylesheet':[
'bootstrap.min.css'
]
])
|
require File.expand_path('../core_response', __FILE__)
module Korwe
module TheCore
class <API key> < CoreResponse
def initialize(session_id, guid, successful)
super(session_id, :<API key>, guid, successful)
end
end
end
end
|
djsex.css = {
create: function(stylesheet) {
var head = document.<API key>('head')[0],
style = document.createElement('style'),
rules = document.createTextNode(stylesheet);
style.type = 'text/css';
if(style.styleSheet)
style.styleSheet.cssText = rules.nodeValue;
else style.appendChild(rules);
head.appendChild(style);
},
appendClass: function (el, classname) {
if(el.className) {
var classes = el.className.split(" ");
var alreadyclassed = false;
classes.forEach(function(thisclassname) {
if(classname == thisclassname)
alreadyclassed=true;
});
if(!alreadyclassed)
classes.push(classname);
el.className = classes.join(" ")
} else {
el.className=classname;
}
},
deleteClass: function (el, classname) {
if(el.className) {
var classes = el.className.split(" ");
for(i=0; i<=classes.length; i++) {
if((classes[i]) && (classes[i]==classname))
classes.splice(i,1);
}
el.className = classes.join(" ");
}
},
};
|
<?php
namespace Mapbender\<API key>\Element;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\<API key>;
use Symfony\Component\OptionsResolver\<API key>;
class <API key> extends AbstractType
{
/**
* @inheritdoc
*/
public function getName()
{
return 'activityindicator';
}
/**
* @inheritdoc
*/
public function setDefaultOptions(<API key> $resolver)
{
$resolver->setDefaults(array(
'application' => null
));
}
/**
* @inheritdoc
*/
public function buildForm(<API key> $builder, array $options)
{
$builder->add('tooltip', 'text', array('required' => false))
->add('activityClass', 'text', array('required' => false))
->add('ajaxActivityClass', 'text', array('required' => false))
->add('tileActivityClass', 'text', array('required' => false));
}
}
|
title: "New package uniftest with initial version 1.0 "
kind: article
created_at: 2014-12-25 01:13:00 UTC
author: CRANberries
categories:
tags:
layout: post
<strong>Package</strong>: uniftest<br>
<strong>Version</strong>: 1.0<br>
<strong>Date</strong>: 2014-12-24<br>
<strong>Title</strong>: Tests for Uniformity<br>
<strong>Author</strong>: Maxim Melnik, Ruslan Pusev<br>
<strong>Maintainer</strong>: Ruslan Pusev <r.pusev@spbu.ru><br>
<strong>Description</strong>: Tests for the hypothesis of uniformity<br>
<strong>License</strong>: GPL (>= 3)<br>
<strong>Packaged</strong>: 2014-12-24 21:27:38 UTC; Ruslan<br>
<strong>NeedsCompilation</strong>: no<br>
<strong>Repository</strong>: CRAN<br>
<strong>Date/Publication</strong>: 2014-12-25 01:28:18<br>
<p>
<a href="http://cran.r-project.org/web/packages/uniftest/index.html">More information about uniftest at CRAN</a><div class="author">
<img src="" style="width: 96px; height: 96;">
<span style="position: absolute; padding: 32px 15px;">
<i>Original post by <a href="http:
</span>
</div>
|
/**
* The Furnace namespace
*
* @module furnace
* @class Furnace
* @static
*/
import Validation from 'furnace/packages/furnace-validation';
import I18n from 'furnace/packages/furnace-i18n';
import Forms from 'furnace/packages/furnace-forms';
export default {
/**
*
* @property Forms
* @type Furnace.Forms
*/
Forms : Forms,
/**
* @property I18n
* @type Furnace.I18n
*/
I18n : I18n,
/**
* @property Validation
* @type Furnace.Validation
*/
Validation: Validation
};
|
for f in $@
do
echo $f
out=`basename $f | sed 's/.fa$
echo blastp -outfmt '6 qseqid sseqid evalue' -num_threads 16 -query $f -db uniprot/uniprot_all.fasta -out "blast/$out.blast"
done
|
import cx from 'clsx'
import PropTypes from 'prop-types'
import React from 'react'
import { customPropTypes, getElementType, getUnhandledProps, useKeyOnly } from '../../lib'
/**
* A placeholder can contain an image.
*/
function PlaceholderImage(props) {
const { className, square, rectangular } = props
const classes = cx(
useKeyOnly(square, 'square'),
useKeyOnly(rectangular, 'rectangular'),
'image',
className,
)
const rest = getUnhandledProps(PlaceholderImage, props)
const ElementType = getElementType(PlaceholderImage, props)
return <ElementType {...rest} className={classes} />
}
PlaceholderImage.propTypes = {
/** An element type to render as (string or function). */
as: PropTypes.elementType,
/** Additional classes. */
className: PropTypes.string,
/** An image can modify size correctly with responsive styles. */
square: customPropTypes.every([customPropTypes.disallow(['rectangular']), PropTypes.bool]),
/** An image can modify size correctly with responsive styles. */
rectangular: customPropTypes.every([customPropTypes.disallow(['square']), PropTypes.bool]),
}
export default PlaceholderImage
|
(function (angular) {
"use strict";
var appFooter = angular.module('myApp.footer', []);
appFooter.controller("footerCtrl", ['$scope', function ($scope) {
}]);
myApp.directive("siteFooter",function(){
return {
restrict: 'A',
templateUrl:'app/components/footer/footer.html'
};
});
} (angular));
|
# Makefile for Sphinx documentation
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " html to make standalone HTML files"
@echo " dirhtml to make HTML files named index.html in directories"
@echo " singlehtml to make a single large HTML file"
@echo " pickle to make pickle files"
@echo " json to make JSON files"
@echo " htmlhelp to make HTML files and a HTML help project"
@echo " qthelp to make HTML files and a qthelp project"
@echo " devhelp to make HTML files and a Devhelp project"
@echo " epub to make an epub"
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
@echo " latexpdf to make LaTeX files and run them through pdflatex"
@echo " text to make text files"
@echo " man to make manual pages"
@echo " texinfo to make Texinfo files"
@echo " info to make Texinfo files and run them through makeinfo"
@echo " gettext to make PO message catalogs"
@echo " changes to make an overview of all changed/added/deprecated items"
@echo " linkcheck to check all external links for integrity"
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
clean:
|
<?php
namespace App\Http\Controllers\API\V2;
use App\Beacon;
use App\Http\Requests\BeaconRequest;
use Illuminate\Http\Request;
class BeaconController extends Controller
{
/**
* Return a list of items.
*
* @param Request $request
*
* @return json
*/
public function index(Request $request)
{
return $this->filteredAndOrdered($request, new Beacon())->paginate($this->pageSize);
}
/**
* Save a new item.
*
* @param Request $request
*
* @return json
*/
public function store(BeaconRequest $request)
{
return response(Beacon::create($request->all()), 201);
}
/**
* Return a single item.
*
* @param Request $request
* @param Beacon $beacon
*
* @return json
*/
public function show(Request $request, Beacon $beacon)
{
return $this->attachResources($request, $beacon);
}
/**
* Update a single item.
*
* @param BeaconRequest $request
* @param Beacon $beacon
*
* @return json
*/
public function update(BeaconRequest $request, Beacon $beacon)
{
$beacon->update($request->all());
return $beacon;
}
/**
* Delete a single item.
*
* @param Beacon $beacon
*
* @return empty
*/
public function destroy(Beacon $beacon)
{
$beacon->delete();
return response('', 204);
}
/**
* Return a list of deleted items.
*
* @return json
*/
public function deleted()
{
return Beacon::onlyTrashed()->get();
}
}
|
#!/bin/sh
usage() {
cat <<EOF
USAGE: \${DOTFILES}/shell/csh/launcher.sh <function> [arg ...]
FUNCTION:
exit <return_code>
EOF
}
# Print usage if not specify the function that need to run.
if [ $# -eq 0 ]; then
usage
exit 1
fi
# The function name is the first argument.
func_name=${1}
# Remove the first argument "function name".
shift 1
# Dispatch to the corresponding function.
case ${func_name} in
exit)
exit ${@}
;;
*)
cat <<EOF
Error: Specify unknow function "${func_name}",
this shell script now only support run function "exit".
EOF
usage
exit 1
;;
esac
|
// $Id: ntsvc.h 80826 2008-03-04 14:51:23Z wotte $
// = LIBRARY
// examples/NT_Service
// = FILENAME
// ntsvc.h
// = DESCRIPTION
// This is the definition of the sample NT Service class. This example
// only runs on Win32 platforms.
// = AUTHOR
// Gonzalo Diethelm and Steve Huston
#ifndef NTSVC_H_
#define NTSVC_H_
#include "ace/config-lite.h"
#if defined (ACE_WIN32) && !defined (<API key>)
#include "ace/Event_Handler.h"
#include "ace/NT_Service.h"
#include "ace/Singleton.h"
#include "ace/Mutex.h"
class Service : public ACE_NT_Service
{
public:
Service (void);
~Service (void);
virtual void handle_control (DWORD control_code);
// We override <handle_control> because it handles stop requests
// privately.
virtual int handle_exception (ACE_HANDLE h);
// We override <handle_exception> so a 'stop' control code can pop
// the reactor off of its wait.
virtual int svc (void);
// This is a virtual method inherited from ACE_NT_Service.
virtual int handle_timeout (const ACE_Time_Value& tv,
const void *arg = 0);
// Where the real work is done:
private:
typedef ACE_NT_Service inherited;
private:
int stop_;
};
// Define a singleton class as a way to insure that there's only one
// Service instance in the program, and to protect against access from
// multiple threads. The first reference to it at runtime creates it,
// and the ACE_Object_Manager deletes it at run-down.
typedef ACE_Singleton<Service, ACE_Mutex> SERVICE;
#endif /* ACE_WIN32 && !<API key> */
#endif /* #ifndef NTSVC_H_ */
|
import {IDetailsService} from '../services/details.service';
class DetailsController implements ng.<API key> {
private detailsService: IDetailsService;
private detailsData: any;
private previousState: any;
constructor($stateParams: any, detailsService: IDetailsService) {
console.log('details controller');
console.log("$stateParams.id=", $stateParams.id);
console.log("this.previousState=", this.previousState);
let id = $stateParams.id;
detailsService.searchByIMDbID(id, 'full').then((result) => {
console.log("detailsData = ", result.data);
this.detailsData = result.data;
});
}
}
export default DetailsController;
DetailsController.$inject = ['$stateParams', 'detailsService'];
|
package main
import (
"bufio"
"fmt"
"os"
"os/exec"
"strings"
"sync"
)
func checkError(err error, prefix string) {
if err != nil {
panic(fmt.Sprintf("%s %s", prefix, err.Error()))
}
}
func cleanFeedbackLine(s string) (out string) {
out = s
out = strings.TrimSpace(out)
out = strings.Replace(out, "\r", "", -1)
out = strings.Replace(out, "\n", "\\n", -1)
return
}
func runCommand(wg *sync.WaitGroup, resultCollector *ResultCollector, commandIndex int, phase *nodeData, cmd *exec.Cmd) {
if wg != nil {
defer wg.Done()
}
defer func() {
if r := recover(); r != nil {
errMsg := fmt.Sprintf("%s", r)
if !phase.ContinueOnFailure {
logger.Fatallnf(errMsg)
} else {
logger.Errorlnf(errMsg)
}
resultCollector.AppendResult(&result{Cmd: cmd, Successful: false})
} else {
resultCollector.AppendResult(&result{Cmd: cmd, Successful: true})
}
}()
stdout, err := cmd.StdoutPipe()
checkError(err, "cmd.StdoutPipe")
stderr, err := cmd.StderrPipe()
checkError(err, "cmd.StderrPipe")
outLines := []string{}
stdoutScanner := bufio.NewScanner(stdout)
go func() {
for stdoutScanner.Scan() {
txt := cleanFeedbackLine(stdoutScanner.Text())
outLines = append(outLines, txt)
logger.Tracelnf("COMMAND %d STDOUT: %s", commandIndex, txt)
}
}()
errLines := []string{}
stderrScanner := bufio.NewScanner(stderr)
go func() {
for stderrScanner.Scan() {
txt := cleanFeedbackLine(stderrScanner.Text())
errLines = append(errLines, txt)
logger.Warninglnf("COMMAND %d STDERR: %s", commandIndex, txt)
}
}()
err = cmd.Start()
checkError(err, "cmd.Start")
err = cmd.Wait()
if err != nil {
newErr := fmt.Errorf("%s - lines: %s", err.Error(), strings.Join(errLines, "\\n"))
outCombined := cleanFeedbackLine(strings.Join(outLines, "\n"))
errMsg := fmt.Sprintf("FAILED COMMAND %d. Continue: %t. ERROR: %s. OUT: %s", commandIndex, phase.ContinueOnFailure, newErr.Error(), outCombined)
panic(errMsg)
}
}
func runPhase(setup *setup, phaseName string, phase *nodeData) {
var wg sync.WaitGroup
resultCollector := &ResultCollector{}
cmds, err := phase.<API key>(setup.StringVariablesOnly(), setup.Variables)
if err != nil {
logger.Fatallnf(err.Error())
}
if phase.RunParallel {
wg.Add(len(cmds))
}
logger.Infolnf("Running step %s", phaseName)
for ind, c := range cmds {
logger.Tracelnf(strings.TrimSpace(fmt.Sprintf(`INDEX %d = %s`, ind, <API key>(c))))
var wgToUse *sync.WaitGroup = nil
if phase.RunParallel {
wgToUse = &wg
go runCommand(wgToUse, resultCollector, ind, phase, c)
} else {
runCommand(wgToUse, resultCollector, ind, phase, c)
}
}
if phase.RunParallel {
wg.Wait()
}
if resultCollector.FailedCount() == 0 {
logger.Infolnf("There were no failures - %d/%d successful", resultCollector.SuccessCount(), resultCollector.TotalCount())
} else {
logger.Errorlnf("There were %d/%d failures: ", resultCollector.FailedCount(), resultCollector.TotalCount())
for _, failure := range resultCollector.FailedDisplayList() {
logger.Errorlnf("- %s", failure)
}
}
}
func main() {
logger.Infolnf("Running version '%s'", Version)
if len(os.Args) < 2 {
logger.Fatallnf("The first command-line argument must be the YAML file path.")
}
yamlFilePath := os.Args[1]
setup, err := ParseYamlFile(yamlFilePath)
if err != nil {
logger.Fatallnf(err.Error())
}
for _, phase := range setup.Phases {
runPhase(setup, phase.Name, phase.Data)
}
}
|
<html>
<head>
<title>Progmia | Game | Level Selection</title>
<link href="<?php echo base_url(); ?>assets/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/levels.css">
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/stars.css">
<script type="text/javascript" src="<?php echo base_url();?>assets/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>assets/js/bootstrap.min.js""></script>
<script type="text/javascript" src="<?php echo base_url();?>assets/js/bootstrap.min.js"></script>
<link rel="icon" href="<?php echo base_url(); ?>assets/images/icon_jFd_icon.ico">
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/fonts/font-awesome-4.7.0/css/font-awesome.min.css">
<script type="text/javascript" src="<?php echo base_url();?>assets/js/drag-on.js"></script>
</head>
<body>
<nav id="primary-nav" class="primary-nav">
<div class="container-fluid">
<div class="row" style="display: flex;align-items: center;">
<div class="col-md-3 col-lg-3 col-xs-4 col-sm-4" style="text-align: center;">
<a class="back" href="<?php echo base_url(); ?>Game/MainMenu"><i class="fa fa-arrow-left"></i></a>
</div>
<div class="col-md-6 col-lg-6 col-xs-4 col-sm-4">
</div>
<div class="col-md-3 col-lg-3 col-xs-4 col-sm-4">
<ul class="nav-left">
<li class="music-control">
<button id="playpausebtn" class="playpausebtn"><i class="fa fa-music"></i></button>
<input id="volumeslider" class="volumeslider" type="range" min="0" max="100" value="100" step="1">
</li>
</ul>
</div>
</div>
</div>
</nav>
<script>
$(document).ready(function(){
$("button.playpausebtn").click(function() {
if(jQuery('#playpausebtn').hasClass('paused')){
$("button").removeClass("paused");
}
else
{
$(this).addClass("paused");
}
});
$("button#back").click(function() {
});
});
var audio, playbtn, mutebtn, seekslider, volumeslider, seeking=false, seekto;
function initAudioPlayer(){
audio = new Audio();
audio.src = "<?php echo base_url();?>/assets/sounds/bgm/03 Civil (Explore).mp3";
audio.loop = true;
audio.play();
// Set object references
playbtn = document.getElementById("playpausebtn");
volumeslider = document.getElementById("volumeslider");
// Add Event Handling
playbtn.addEventListener("click",playPause);
volumeslider.addEventListener("mousemove", setvolume);
// Functions
function playPause(){
if(audio.paused){
audio.play();
} else {
audio.pause();
}
}
function setvolume(){
audio.volume = volumeslider.value / 100;
}
}
window.addEventListener("load", initAudioPlayer);
</script>
|
--[[checkboxData = {
type = "checkbox",
name = "My Checkbox",
tooltip = "Checkbox's tooltip text.",
getFunc = function() return db.var end,
setFunc = function(value) db.var = value doStuff() end,
width = "full", --or "half" (optional)
disabled = function() return db.someBooleanSetting end, --or boolean (optional)
warning = "Will need to reload the UI.", --(optional)
default = defaults.var, --(optional)
reference = "MyAddonCheckbox" --(optional) unique global reference to control
} ]]
local widgetVersion = 7
local LAM = LibStub("LibAddonMenu-2.0")
if not LAM:RegisterWidget("checkbox", widgetVersion) then return end
local wm = WINDOW_MANAGER
local cm = CALLBACK_MANAGER
local tinsert = table.insert
--label
local enabledColor = <API key>
local enabledHLcolor = ZO_HIGHLIGHT_TEXT
local disabledColor = <API key>
local disabledHLcolor = <API key>
--checkbox
local checkboxColor = ZO_NORMAL_TEXT
local checkboxHLcolor = ZO_HIGHLIGHT_TEXT
local function UpdateDisabled(control)
local disable
if type(control.data.disabled) == "function" then
disable = control.data.disabled()
else
disable = control.data.disabled
end
control.label:SetColor((disable and <API key> or control.value and <API key> or <API key>):UnpackRGBA())
control.checkbox:SetColor((disable and <API key> or ZO_NORMAL_TEXT):UnpackRGBA())
--control:SetMouseEnabled(not disable)
--control:SetMouseEnabled(true)
control.isDisabled = disable
end
local function ToggleCheckbox(control)
if control.value then
control.label:SetColor(<API key>:UnpackRGBA())
control.checkbox:SetText(control.checkedText)
else
control.label:SetColor(<API key>:UnpackRGBA())
control.checkbox:SetText(control.uncheckedText)
end
end
local function UpdateValue(control, forceDefault, value)
if forceDefault then --if we are forcing defaults
value = control.data.default
control.data.setFunc(value)
elseif value ~= nil then --our value could be false
control.data.setFunc(value)
--after setting this value, let's refresh the others to see if any should be disabled or have their settings changed
if control.panel.data.registerForRefresh then
cm:FireCallbacks("LAM-RefreshPanel", control)
end
else
value = control.data.getFunc()
end
control.value = value
ToggleCheckbox(control)
end
local function OnMouseEnter(control)
<API key>(control)
if control.isDisabled then return end
local label = control.label
if control.value then
label:SetColor(ZO_HIGHLIGHT_TEXT:UnpackRGBA())
else
label:SetColor(<API key>:UnpackRGBA())
end
control.checkbox:SetColor(ZO_HIGHLIGHT_TEXT:UnpackRGBA())
end
local function OnMouseExit(control)
<API key>(control)
if control.isDisabled then return end
local label = control.label
if control.value then
label:SetColor(<API key>:UnpackRGBA())
else
label:SetColor(<API key>:UnpackRGBA())
end
control.checkbox:SetColor(ZO_NORMAL_TEXT:UnpackRGBA())
end
--controlName is optional
function LAMCreateControl.checkbox(parent, checkboxData, controlName)
local control = wm:<API key>(controlName or checkboxData.reference)
control:SetParent(parent.scroll or parent)
control:SetMouseEnabled(true)
--control.tooltipText = checkboxData.tooltip
control:SetHandler("OnMouseEnter", OnMouseEnter)
control:SetHandler("OnMouseExit", OnMouseExit)
control:SetHandler("OnMouseUp", function(control)
if control.isDisabled then return end
PlaySound(SOUNDS.DEFAULT_CLICK)
control.value = not control.value
control:UpdateValue(false, control.value)
end)
control.label = wm:CreateControl(nil, control, CT_LABEL)
local label = control.label
label:SetFont("ZoFontWinH4")
label:SetText(checkboxData.name)
label:SetWrapMode(<API key>)
label:SetHeight(26)
control.checkbox = wm:CreateControl(nil, control, CT_LABEL)
local checkbox = control.checkbox
checkbox:SetFont("ZoFontGameBold")
checkbox:SetColor(ZO_NORMAL_TEXT:UnpackRGBA())
control.checkedText = GetString(SI_CHECK_BUTTON_ON):upper()
control.uncheckedText = GetString(SI_CHECK_BUTTON_OFF):upper()
local isHalfWidth = checkboxData.width == "half"
if isHalfWidth then
control:SetDimensions(250, 55)
checkbox:SetDimensions(100, 26)
checkbox:SetAnchor(BOTTOMRIGHT)
label:SetAnchor(TOPLEFT)
label:SetAnchor(TOPRIGHT)
else
control:SetDimensions(510, 30)
checkbox:SetDimensions(200, 26)
checkbox:SetAnchor(RIGHT)
label:SetAnchor(LEFT)
label:SetAnchor(RIGHT, checkbox, LEFT, -5, 0)
end
if checkboxData.warning then
control.warning = wm:<API key>(nil, control, "<API key>")
control.warning:SetAnchor(RIGHT, checkbox, LEFT, -5, 0)
--control.warning.tooltipText = checkboxData.warning
control.warning.data = {tooltipText = checkboxData.warning}
end
control.panel = parent.panel or parent --if this is in a submenu, panel is its parent
control.data = checkboxData
control.data.tooltipText = checkboxData.tooltip
if checkboxData.disabled then
control.UpdateDisabled = UpdateDisabled
control:UpdateDisabled()
end
control.UpdateValue = UpdateValue
control:UpdateValue()
if control.panel.data.registerForRefresh or control.panel.data.registerForDefaults then --if our parent window wants to refresh controls, then add this to the list
tinsert(control.panel.controlsToRefresh, control)
end
return control
end
|
import base64
try:
from functools import wraps
except ImportError:
from django.utils.functional import wraps # Python 2.3, 2.4 fallback.
from django import http, template
from django.conf import settings
from django.contrib.auth.models import User
from django.contrib.auth import authenticate, login
from django.shortcuts import render_to_response
from django.utils.translation import ugettext_lazy, ugettext as _
ERROR_MESSAGE = ugettext_lazy("Please enter a correct username and password. Note that both fields are case-sensitive.")
LOGIN_FORM_KEY = '<API key>'
def _display_login_form(request, error_message=''):
request.session.set_test_cookie()
return render_to_response('admin/login.html', {
'title': _('Log in'),
'app_path': request.get_full_path(),
'error_message': error_message
}, context_instance=template.RequestContext(request))
def <API key>(view_func):
"""
Decorator for views that checks that the user is logged in and is a staff
member, displaying the login page if necessary.
"""
def _checklogin(request, *args, **kwargs):
if request.user.is_authenticated() and request.user.is_staff:
# The user is valid. Continue to the admin page.
return view_func(request, *args, **kwargs)
assert hasattr(request, 'session'), "The Django admin requires session middleware to be installed. Edit your MIDDLEWARE_CLASSES setting to insert 'django.contrib.sessions.middleware.SessionMiddleware'."
# If this isn't already the login page, display it.
if LOGIN_FORM_KEY not in request.POST:
if request.POST:
message = _("Please log in again, because your session has expired.")
else:
message = ""
return _display_login_form(request, message)
# Check that the user accepts cookies.
if not request.session.test_cookie_worked():
message = _("Looks like your browser isn't configured to accept cookies. Please enable cookies, reload this page, and try again.")
return _display_login_form(request, message)
else:
request.session.delete_test_cookie()
# Check the password.
username = request.POST.get('username', None)
password = request.POST.get('password', None)
user = authenticate(username=username, password=password)
if user is None:
message = ERROR_MESSAGE
if '@' in username:
# Mistakenly entered e-mail address instead of username? Look it up.
users = list(User.all().filter('email =', username))
if len(users) == 1 and users[0].check_password(password):
message = _("Your e-mail address is not your username. Try '%s' instead.") % users[0].username
else:
# Either we cannot find the user, or if more than 1
# we cannot guess which user is the correct one.
message = _("Usernames cannot contain the '@' character.")
return _display_login_form(request, message)
# The user data is correct; log in the user in and continue.
else:
if user.is_active and user.is_staff:
login(request, user)
return http.<API key>(request.get_full_path())
else:
return _display_login_form(request, ERROR_MESSAGE)
return wraps(view_func)(_checklogin)
|
// BEGIN CUT HERE
// END CUT HERE
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <vector>
#include <map>
#include <string>
#include <set>
#include <algorithm>
using namespace std;
const int V = 64;
const int E = V * V * 2;
const int INF = 1 << 29;
int d[V], how[V], eCapacity[E], eU[E], eV[E], eCost[E];
int eIndex = 0;
void addEdge(int u, int v, int capacity, int cost) {
eU[eIndex] = u, eV[eIndex] = v, eCapacity[eIndex] = capacity, eCost[eIndex++] = cost;
eU[eIndex] = v, eV[eIndex] = u, eCapacity[eIndex] = 0, eCost[eIndex++] = -cost;
}
pair <int, int> minCostMaxFlow(int n, int s, int t) {
int flow = 0, cost = 0;
for (;;) {
for (int i = 0; i < n; i++) {
d[i] = INF;
}
d[s] = 0;
for(;;) {
bool done = true;
for (int e = 0; e < eIndex; e++) {
if (eCapacity[e] > 0) {
int u = eU[e], v = eV[e], cost = eCost[e];
if (d[v] > d[u] + cost) {
d[v] = d[u] + cost;
how[v] = e;
done = false;
}
}
}
if (done) {
break;
}
}
if (d[t] >= INF / 2) {
break;
}
int augment = INF;
for (int v = t; v != s; v = eU[how[v]]) {
augment = min(augment, eCapacity[how[v]]);
}
for (int v = t; v != s; v = eU[how[v]]) {
int e = how[v];
eCapacity[e] -= augment;
eCapacity[e ^ 1] += augment;
}
flow += augment;
cost += d[t] * augment;
}
pair <int, int> ret = make_pair(cost, flow);
return ret;
}
class SpecialCells
{
public:
int guess(vector <int> x, vector <int> y) {
eIndex = 0;
map <int, int> xMap, yMap;
set <pair <int, int> > pairSet;
int n = x.size();
for (int i = 0; i < n; i++) {
xMap[x[i]]++;
yMap[y[i]]++;
pairSet.insert(make_pair(x[i], y[i]));
}
int grpahVertexNumber = xMap.size() + yMap.size() + 2;
int s = grpahVertexNumber - 2, t = grpahVertexNumber - 1, xIndex = 0, yIndex = xMap.size();
for (map <int, int> :: iterator it = xMap.begin(); it != xMap.end(); it++, xIndex++) {
addEdge(s, xIndex, it->second, 0);
}
for (map <int, int> :: iterator it = yMap.begin(); it != yMap.end(); it++, yIndex++) {
addEdge(yIndex, t, it->second, 0);
}
xIndex = 0;
for (map <int, int> :: iterator it = xMap.begin(); it != xMap.end(); it++, xIndex++) {
yIndex = xMap.size();
for (map <int, int> :: iterator jt = yMap.begin(); jt != yMap.end(); jt++, yIndex++) {
int cost = pairSet.find(make_pair(it->first, jt->first)) == pairSet.end() ? 0 : 1;
addEdge(xIndex, yIndex, 1, cost);
}
}
pair <int, int> mcmf = minCostMaxFlow(grpahVertexNumber, s, t);
int ret = mcmf.first;
return ret;
}
// BEGIN CUT HERE
public:
void run_test(int Case) { if ((Case == -1) || (Case == 0)) test_case_0(); if ((Case == -1) || (Case == 1)) test_case_1(); if ((Case == -1) || (Case == 2)) test_case_2(); if ((Case == -1) || (Case == 3)) test_case_3(); if ((Case == -1) || (Case == 4)) test_case_4(); }
private:
template <typename T> string print_array(const vector<T> &V) { ostringstream os; os << "{ "; for (typename vector<T>::const_iterator iter = V.begin(); iter != V.end(); ++iter) os << '\"' << *iter << "\","; os << " }"; return os.str(); }
void verify_case(int Case, const int &Expected, const int &Received) { cerr << "Test Case #" << Case << "..."; if (Expected == Received) cerr << "PASSED" << endl; else { cerr << "FAILED" << endl; cerr << "\tExpected: \"" << Expected << '\"' << endl; cerr << "\tReceived: \"" << Received << '\"' << endl; } }
void test_case_0() { int Arr0[] = {1,2}; vector <int> Arg0(Arr0, Arr0 + (sizeof(Arr0) / sizeof(Arr0[0]))); int Arr1[] = {1,2}; vector <int> Arg1(Arr1, Arr1 + (sizeof(Arr1) / sizeof(Arr1[0]))); int Arg2 = 0; verify_case(0, Arg2, guess(Arg0, Arg1)); }
void test_case_1() { int Arr0[] = {1,1,2}; vector <int> Arg0(Arr0, Arr0 + (sizeof(Arr0) / sizeof(Arr0[0]))); int Arr1[] = {1,2,1}; vector <int> Arg1(Arr1, Arr1 + (sizeof(Arr1) / sizeof(Arr1[0]))); int Arg2 = 3; verify_case(1, Arg2, guess(Arg0, Arg1)); }
void test_case_2() { int Arr0[] = {1,2,1,2,1,2}; vector <int> Arg0(Arr0, Arr0 + (sizeof(Arr0) / sizeof(Arr0[0]))); int Arr1[] = {1,2,3,1,2,3}; vector <int> Arg1(Arr1, Arr1 + (sizeof(Arr1) / sizeof(Arr1[0]))); int Arg2 = 6; verify_case(2, Arg2, guess(Arg0, Arg1)); }
void test_case_3() { int Arr0[] = {1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9}; vector <int> Arg0(Arr0, Arr0 + (sizeof(Arr0) / sizeof(Arr0[0]))); int Arr1[] = {1,2,3,1,2,3,1,2,3,1,2,3,1,2,3,1,2,3}; vector <int> Arg1(Arr1, Arr1 + (sizeof(Arr1) / sizeof(Arr1[0]))); int Arg2 = 9; verify_case(3, Arg2, guess(Arg0, Arg1)); }
void test_case_4() { int Arr0[] = {1,100000}; vector <int> Arg0(Arr0, Arr0 + (sizeof(Arr0) / sizeof(Arr0[0]))); int Arr1[] = {1,100000}; vector <int> Arg1(Arr1, Arr1 + (sizeof(Arr1) / sizeof(Arr1[0]))); int Arg2 = 0; verify_case(4, Arg2, guess(Arg0, Arg1)); }
// END CUT HERE
};
// BEGIN CUT HERE
int main(){
SpecialCells ___test;
___test.run_test(-1);
return 0;
}
// END CUT HERE
|
<?php
namespace wcmf\lib\core;
/**
* A session that requires clients to send a token for authentication.
*
* @author ingo herwig <ingo@wemove.com>
*/
interface TokenBasedSession extends Session {
/**
* Get the name of the auth token header.
* @return String
*/
public function getHeaderName();
/**
* Get the name of the auth token cookie.
* @return String
*/
public function getCookieName();
}
|
export default function formatList(xs, { ifEmpty = 'нет', joint = ', ' } = {}) {
return (!xs || xs.length === 0) ? ifEmpty : xs.join(joint)
}
|
<?php
namespace Tests\Builders;
class SaveCardBuilder extends <API key>
{
public function __construct()
{
$this->attributeValues = array(
'<API key>' => '12345',
'cardNumber' => '4976000000003436',
'expiryDate' => '12/20',
'cv2' => 452,
);
}
}
|
// $Date$
// $Log$
// Contains the mismatch class for afin
#ifndef MISMATCH_H
#define MISMATCH_H
// Mismatch Class: ////////////////////////////>
// Mismatch object, contains all classes, methods, data, and data references necessary for processing mismatches for contig fusion
// There will be only one Process object needed per iteration of this program
class Mismatch{
private:
double score;
int length;
int index_i;
int index_j;
int end_i;
int end_j;
public:
Mismatch();
Mismatch( double score, int length, int index_i, int index_j, int end_i, int end_j );
// set mismatch score
void set_score( double score );
// set length
void set_length( int length );
// set index_i
void set_index_i( int index );
// set index_j
void set_index_j( int index );
// set index
void set_indices( int index_i, int index_j );
// set end_i
void set_end_i( int end_i );
// set end_j
void set_end_j( int end_j );
// return mismatch score
double get_score();
// return length
int get_length();
// return index i
int get_index_i();
// return index j
int get_index_j();
// return end_i
int get_end_i();
// return end_j
int get_end_j();
};
#endif
|
<?php
/*
* itpl_engine
* templates/default/shop/map.html
* models/shop/map.php
*
*
* debugdebugdebug
* service
*
*
*/
?><?php
/*
* debug
* debug
*/
/* debug */
if (!function_exists("tpl_engine")) {
require("foundation/ftpl_compile.php");
}
if(filemtime("templates/default/shop/map.html") > filemtime(__file__) || (file_exists("models/shop/map.php") && filemtime("models/shop/map.php") > filemtime(__file__)) ) {
tpl_engine("default", "shop/map.html", 1);
include(__file__);
} else {
/* debug */
?><?php
if (!$IWEB_SHOP_IN) {
trigger_error('Hacking attempt');
}
/* header, left, footer */
require("foundation/module_shop.php");
require("foundation/module_users.php");
require("foundation/<API key>.php");
$s_langpackage = new shoplp;
$i_langpackage = new indexlp;
dbtarget('r', $dbServs);
$dbo = new dbex();
$t_shop_info = $tablePreStr . "shop_info";
$t_users = $tablePreStr . "users";
$t_shop_category = $tablePreStr . "shop_category";
$t_shop_categories = $tablePreStr . "shop_categories";
$SHOP = get_shop_info($dbo, $t_shop_info, $shop_id);
$shop_rank = $SHOP['shop_categories'];
$shop_rank_arr = get_categories_rank($shop_rank, $dbo, $t_shop_categories);
if ($shop_rank_arr) {
$num = count($shop_rank_arr) - 1;
}
if (!$SHOP) {
trigger_error($s_langpackage->s_shop_error);
}
if ($SHOP['lock_flg']) {
trigger_error($s_langpackage->s_shop_locked);
}
if ($SHOP['open_flg']) {
trigger_error($s_langpackage->s_shop_close);
}
$sql = "select rank_id,user_name,last_login_time from $t_users where user_id='" . $SHOP['user_id'] . "'";
$ranks = $dbo->getRow($sql);
$SHOP['rank_id'] = $ranks[0];
$header = get_shop_header($s_langpackage->s_shop_index, $SHOP);
//$nav_selected=3;
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http:
<html xmlns="http:
<head>
<title><?php echo $header['title']; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
<meta name="keywords" content="<?php echo $header['keywords']; ?>"/>
<meta name="description" content="<?php echo $header['description']; ?>"/>
<base href="<?php echo $baseUrl; ?>"/>
<link href="skin/<?php echo $SYSINFO['templates']; ?>/css/shop.css" rel="stylesheet" type="text/css"/>
<link href="skin/<?php echo $SYSINFO['templates']; ?>/css/import.css" type="text/css" rel="stylesheet"/>
<link href="skin/<?php echo $SYSINFO['templates']; ?>/css/article.css" type="text/css" rel="stylesheet"/>
<link href="skin/<?php echo $SYSINFO['templates']; ?>/css/shop_<?php echo $SHOP['shop_template']; ?>.css"
rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="skin/<?php echo $SYSINFO['templates']; ?>/js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="skin/<?php echo $SYSINFO['templates']; ?>/js/changeStyle.js"></script>
<style>
<?php if($SHOP['shop_template_img']){?>
#shopHeader {
background: transparent url(<?php echo $SHOP['shop_template_img'];?>) no-repeat scroll 0 0 #4A9DA5;
}
<?php }?>
</style>
</head>
<body onload="initialize()" onunload="GUnload()">
<!-- wrapper -->
<div id="wrapper">
<?php require("shop/index_header.php"); ?>
<!-- contents -->
<div id="contents" class="clearfix">
<div id="pkz">
<?php echo $s_langpackage->s_this_location; ?><a href="index.php"><?php echo $SYSINFO['sys_name']; ?></a>
> <a href="shop_list.php"><?php echo $s_langpackage->s_shop_category; ?></a> >
<?php foreach ($shop_rank_arr as $k => $value) { ?>
<?php if ($num == $k) { ?>
<a href=""><?php echo $value['cat_name']; ?></a>
<?php } else { ?>
<a href=""><?php echo $value['cat_name']; ?></a> >
<?php } ?>
<?php } ?>
</div>
<div id="shopHeader" class=" mg12b clearfix">
<p class="shopName"><?php echo $SHOP['shop_name']; ?></p>
<div class="shop_nav">
<?php require("shop/menu.php"); ?>
</div>
</div>
<?php require("shop/left.php"); ?>
<div id="rightCloumn">
<div class="bigpart">
<div class="shop_notice top10">
<div class="c_t">
<div class="c_t_l left"></div>
<div class="c_t_r right"></div>
<h2><a href="javascript:;"><?php echo $s_langpackage->s_shop_seat; ?></a><span></span></h2>
</div>
<div class="c_m">
<div id="map_canvas" style="width: 688px; height: 500px"></div>
</div>
<div class="c_bt">
<div class="c_bt_l left"></div>
<div class="c_bt_r right"></div>
</div>
</div>
</div>
</div>
</div>
<?php require("shop/index_footer.php"); ?>
<script src="http://maps.google.com/maps?file=api&v=2.x&key=<?php echo $SYSINFO['map_key']; ?>"
type="text/javascript"></script>
<script type="text/javascript">
var now_x = <?php echo $SHOP['map_x'];?>;
var now_y = <?php echo $SHOP['map_y'];?>;
var now_zoom = <?php echo $SHOP['map_zoom'];?>;
function initialize() {
if (<API key>()) {
var map = new GMap2(document.getElementById("map_canvas"));
var center = new GLatLng(now_y, now_x);
map.setCenter(center, now_zoom);
var point = new GLatLng(now_y, now_x);
var marker = new GMarker(point);
map.addOverlay(marker);
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
}
}
</script>
</body>
</html><?php } ?>
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>fairisle: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.9.1 / fairisle - 8.7.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
fairisle
<small>
8.7.0
<span class="label label-info">Not compatible </span>
</small>
</h1>
<p> <em><script>document.write(moment("2022-02-16 00:21:27 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-16 00:21:27 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
camlp5 7.14 <API key> of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 2 Virtual package relying on perl
coq 8.9.1 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.07.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.07.1 Official release 4.07.1
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.3 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/coq-contribs/fairisle"
license: "LGPL 2.1"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/Fairisle"]
depends: [
"ocaml"
"coq" {>= "8.7" & < "8.8~"}
]
tags: [
"keyword: circuits"
"keyword: automata"
"keyword: co-induction"
"keyword: dependent types"
"category: Computer Science/Architecture"
"date: 2005-12-15"
]
authors: [ "Solange Coupet-Grimal <Solange.Coupet@lif.univ-mrs.fr> [http:
bug-reports: "https://github.com/coq-contribs/fairisle/issues"
dev-repo: "git+https://github.com/coq-contribs/fairisle.git"
synopsis: "Proof of the Fairisle 4x4 Switch Element"
description: """
http:
This library contains the development of general definitions dedicated
to the verification of sequential synchronous devices (based on Moore and Mealy automata)
and the formal verification of the Fairisle 4x4 Switch Element."""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/fairisle/archive/v8.7.0.tar.gz"
checksum: "md5=<API key>"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install </h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-fairisle.8.7.0 coq.8.9.1</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.9.1).
The following dependencies couldn't be met:
- coq-fairisle -> coq < 8.8~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-fairisle.8.7.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install </h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https:
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
|
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http:
<!
ZeepIt
<html xmlns="http:
<head>
<title>ZeepIt</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<frameset rows="20%, 80%">
<frameset cols="25%,35%,45%">
<frame src="fr_file_index.html" title="Files" name="Files" />
<frame src="fr_class_index.html" name="Classes" />
<frame src="fr_method_index.html" name="Methods" />
</frameset>
<frame src="files/README_rdoc.html" name="docwin" />
</frameset>
</html>
|
package com.example;
import java.util.Set;
import javax.servlet.<API key>;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletRegistration;
import org.springframework.web.context.support.<API key>;
import org.springframework.web.servlet.DispatcherServlet;
public class <API key> implements <API key> {
@Override
public void onStartup(final Set<Class<?>> c, final ServletContext ctx) throws ServletException {
final <API key> wac = new <API key>();
wac.register(MvcConfig.class);
wac.refresh();
final DispatcherServlet servlet = new DispatcherServlet(wac);
final ServletRegistration.Dynamic reg = ctx.addServlet("dispatcher", servlet);
|
import React from 'react';
const EditHero = props => {
if (props.selectedHero) {
return (
<div>
<div className="editfields">
<div>
<label>id: </label>
{props.addingHero
? <input
type="number"
name="id"
placeholder="id"
value={props.selectedHero.id}
onChange={props.onChange}
/>
: <label className="value">
{props.selectedHero.id}
</label>}
</div>
<div>
<label>name: </label>
<input
name="name"
value={props.selectedHero.name}
placeholder="name"
onChange={props.onChange}
/>
</div>
<div>
<label>saying: </label>
<input
name="saying"
value={props.selectedHero.saying}
placeholder="saying"
onChange={props.onChange}
/>
</div>
</div>
<button onClick={props.onCancel}>Cancel</button>
<button onClick={props.onSave}>Save</button>
</div>
);
} else {
return <div />;
}
};
export default EditHero;
|
#ifndef SE_SCANNNER_H
#define SE_SCANNNER_H
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include "read.h"
#include "fusion.h"
#include "match.h"
#include <cstdlib>
#include <condition_variable>
#include <mutex>
#include <thread>
#include "fusionmapper.h"
using namespace std;
struct ReadPack {
Read** data;
int count;
};
typedef struct ReadPack ReadPack;
struct ReadRepository {
ReadPack** packBuffer;
size_t readPos;
size_t writePos;
size_t readCounter;
std::mutex mtx;
std::mutex readCounterMtx;
std::condition_variable repoNotFull;
std::condition_variable repoNotEmpty;
};
typedef struct ReadRepository ReadRepository;
class SingleEndScanner{
public:
SingleEndScanner(string fusionFile, string refFile, string read1File, string html, string json, int threadnum);
~SingleEndScanner();
bool scan();
void textReport();
void htmlReport();
void jsonReport();
private:
bool scanSingleEnd(ReadPack* pack);
void initPackRepository();
void <API key>();
void producePack(ReadPack* pack);
void consumePack();
void producerTask();
void consumerTask();
void pushMatch(Match* m);
private:
string mFusionFile;
string mRefFile;
string mRead1File;
string mRead2File;
string mHtmlFile;
string mJsonFile;
ReadRepository mRepo;
bool mProduceFinished;
std::mutex mFusionMtx;
int mThreadNum;
FusionMapper* mFusionMapper;
};
#endif
|
/**
* Module dependencies.
*/
var express = require('express')
var MemoryStore = express.session.MemoryStore
var mongoStore = require('connect-mongo')(express)
var path = require('path')
var fs = require('fs')
var _ = require('underscore')
var mongoose = require('mongoose')
var passport = require('passport')
var http = require('http')
var socketio = require('socket.io')
var passportSocketIo = require('passport.socketio')
// Load configurations
var env = process.env.NODE_ENV || 'development'
var config = require('./config/config')[env]
// Bootstrap db connection
mongoose.connect(config.db)
// Bootstrap models
var modelsDir = path.join(__dirname, '/app/models')
fs.readdirSync(modelsDir).forEach(function (file) {
if (~file.indexOf('.js')) require(modelsDir + '/' + file)
})
// Bootstrap passport config
require('./config/passport')(passport, config)
var app = express()
var store = new mongoStore({ url : config.db, collection : 'sessions' });
//var store = new MemoryStore()
// express settings
require('./config/express')(app, config, passport, store)
// Bootstrap routes
require('./config/routes')(app, passport)
var server = http.createServer(app)
var sio = socketio.listen(server)
var clients = {}
var socketsOfClients = {}
sio.configure(function () {
sio.set('authorization', passportSocketIo.authorize({
cookieParser: express.cookieParser, //or connect.cookieParser
key: 'express.sid', //the cookie where express (or connect) stores the session id.
secret: 'dirty', //the session secret to parse the cookie
store: store, //the session store that express uses
fail: function (data, accept) { // *optional* callbacks on success or fail
accept(null, false) // second parameter takes boolean on whether or not to allow handshake
},
success: function (data, accept) {
accept(null, true)
}
}))
})
// upon connection, start a periodic task that emits (every 1s) the current timestamp
sio.sockets.on('connection', function (socket) {
var username = socket.handshake.user.username;
clients[username] = socket.id
socketsOfClients[socket.id] = username
userNameAvailable(socket.id, username)
userJoined(username)
socket.on('data', function (data) {
socket.broadcast.emit('data', { 'drawing' : data })
})
socket.on('message', function (data) {
var now = new Date();
sio.sockets.emit('message', {
'source': socketsOfClients[socket.id],
'time': now.getHours() + ':' + now.getMinutes() + ':' + now.getSeconds(),
'message': data.message
})
})
socket.on('disconnect', function() {
var username = socketsOfClients[socket.id]
delete socketsOfClients[socket.id]
delete clients[username];
// relay this message to all the clients
userLeft(username)
})
})
// Start the application by listening on port <>
var port = process.env.PORT || 3000
server.listen(port, function(){
console.log('Express server listening on port ' + port)
});
function userNameAvailable(socketId, username) {
setTimeout(function(){
sio.sockets.sockets[socketId].emit('user welcome', {
"currentUsers": JSON.stringify(Object.keys(clients))
});
}, 500);
}
function userJoined(username) {
Object.keys(socketsOfClients).forEach(function(socketId) {
sio.sockets.sockets[socketId].emit('user joined', {
"username": username
});
});
}
function userLeft(username) {
sio.sockets.emit('user left', {
"username": username
});
}
// expose app
exports = module.exports = app;
|
#guimporter.py
import sys
from PySide import QtGui, QtCore, QtWebKit
Signal = QtCore.Signal
|
'use strict';
var redis = require('redis')
, xtend = require('xtend')
, hyperquest = require('hyperquest')
;
module.exports = FetchAndCache;
function FetchAndCache(opts) {
if (!(this instanceof FetchAndCache)) return new FetchAndCache(opts);
opts = opts || {};
var redisOpts = xtend({ port: 6379, host: '127.0.0.1' }, opts.redis)
, serviceOpts = xtend({ url: 'http://127.0.0.1' }, opts.service)
this._defaultExpire = opts.expire || 15 * 60 // 15min
this._serviceOpts = serviceOpts;
this._markCached = opts.markCached !== false;
this._client = redis.createClient(redisOpts.port, redisOpts.host, redisOpts)
}
var proto = FetchAndCache.prototype;
/**
* Fetches the resource, probing the redis cache first and falling back to the service.
* If a transform function is provided (@see opts), that is applied to the result before returning or caching it.
* When fetched from the service it is added to the redis cached according to the provided options.
*
* @name fetcncache::fetch
* @function
* @param {string} uri path to the resource, i.e. `/reource1?q=1234`
* @param {Object=} opts configure caching and transformation behavior for this particular resource
* @param {number=} opts.expire overrides default expire for this particular resource
* @param {function=} opts.transform specify the transform function to be applied, default: `function (res} { return res }`
* @param {function} cb called back with an error or the transformed resource
*/
proto.fetch = function (uri, opts, cb) {
var self = this;
if (!self._client) return cb(new Error('fetchncache was stopped and can no longer be used to fetch data'));
if (typeof opts === 'function') {
cb = opts;
opts = null;
}
opts = xtend({ expire: self._defaultExpire, transform: function (x) { return x } }, opts);
self._client.get(uri, function (err, res) {
if (err) return cb(err);
if (res) return cb(null, res, true);
self._get(uri, function (err, res) {
if (err) return cb(err);
self._cache(uri, res, opts, cb);
})
});
}
/**
* Stops the redis client in order to allow exiting the application.
* At this point this fetchncache instance becomes unusable and throws errors on any attempts to use it.
*
* @name fetchncache::stop
* @function
* @param {boolean=} force will make it more aggressive about ending the underlying redis client (default: false)
*/
proto.stop = function (force) {
if (!this._client) throw new Error('fetchncache was stopped previously and cannot be stopped again');
if (force) this._client.end(); else this._client.unref();
this._client = null;
}
/**
* Clears the entire redis cache, so use with care.
* Mainly useful for testing or to ensure that all resources get refreshed.
*
* @name fetchncache::clearCache
* @function
* @return {Object} fetchncache instance
*/
proto.clearCache = function () {
if (!this._client) throw new Error('fetchncache was stopped previously and cannot be cleared');
this._client.flushdb();
return this;
}
proto._get = function (uri, cb) {
var body = '';
var url = this._serviceOpts.url + uri;
console.log('url', url);
hyperquest
.get(url)
.on('error', cb)
.on('data', function (d) { body += d.toString() })
.on('end', function () { cb(null, body) })
}
proto._cache = function (uri, res, opts, cb) {
var self = this;
var val;
try {
val = opts.transform(res);
} catch (e) {
return cb(e);
}
// assuming that value is now a string we use set to add it
self._client.set(uri, val, function (err) {
if (err) return cb(err);
self._client.expire(uri, opts.expire, function (err) {
if (err) return cb(err);
cb(null, val);
})
});
}
|
package org.blendee.jdbc;
/**
* SQL
* @author
*/
public interface ComposedSQL extends <API key> {
/**
* SQL
* @return SQL
*/
String sql();
/**
* {@link <API key>} {@link ComposedSQL}
* @param complementer {@link <API key>}
* @return SQL
*/
default ComposedSQL reproduce(<API key> complementer) {
var sql = sql();
return new ComposedSQL() {
@Override
public String sql() {
return sql;
}
@Override
public int complement(int done, BPreparedStatement statement) {
complementer.complement(statement);
return Integer.MIN_VALUE;
}
};
}
/**
* {@link <API key>} {@link ComposedSQL}
* @param complementer {@link <API key>}
* @return SQL
*/
default ComposedSQL reproduce(<API key> complementer) {
var sql = sql();
return new ComposedSQL() {
@Override
public String sql() {
return sql;
}
@Override
public int complement(int done, BPreparedStatement statement) {
return complementer.complement(done, statement);
}
};
}
}
|
# <API key>
basic data strcture in python from THU Data Structure 3rd Edition, including:
* Vector (Chapter 2)
* LinkedList (Chapter 3)
* Stack based on Vector and LinkedList (Chapter 4)
* Queue based on Vector and LinkedList (Chapter 4)
* Deque based on Vector and LinkedList (Chapter 4)
* BinTree based on BinNode (Chapter 5)
* GraphMatrix based on Vector and Edge (Chapter 6)
* GraphList based on Vector and Edge (Chapter 6)
* DisjointSet based on Vector and Edge (Chapter 6)
* BinSearchTree based on BinTree (Chapter 7)
* AVLTree based on BinSearchTree (Chapter 7)
* SkipList based on LinkedList (Chapter 9)
* HashTable (Chapter 9)
* Bucket for bucket sort (Chapter 9)
* Heap (Chapter 10)
|
<TS language="es_419" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Haga clic para editar la dirección o etiqueta</translation>
</message>
<message>
<source>Create a new address</source>
<translation>Crear una nueva dirección</translation>
</message>
<message>
<source>&New</source>
<translation>&New</translation>
</message>
<message>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Copia la dirección seleccionada al portapapeles del sistema</translation>
</message>
<message>
<source>Delete the currently selected address from the list</source>
<translation>Borrar la dirección que esta seleccionada en la lista</translation>
</message>
<message>
<source>Export the data in the current tab to a file</source>
<translation>Exportar los datos de la actual tabla hacia un archivo</translation>
</message>
<message>
<source>Choose the address to send coins to</source>
<translation>Seleccione la dirección a la que enviará las monedas</translation>
</message>
<message>
<source>Choose the address to receive coins with</source>
<translation>Seleccione la dirección con la que recibirá las monedas</translation>
</message>
<message>
<source>Sending addresses</source>
<translation>Enviando direcciones</translation>
</message>
<message>
<source>Receiving addresses</source>
<translation>Recibiendo direcciones</translation>
</message>
<message>
<source>These are your Pandacoin addresses for sending payments. Always check the amount and the receiving address before sending coins.</source>
<translation>Estas son sus direcciones de Pandacoin para enviar sus pagos. Siempre revise el monto y la dirección recibida antes de enviar monedas.</translation>
</message>
</context>
<context>
<name>AddressTableModel</name>
</context>
<context>
<name>AskPassphraseDialog</name>
</context>
<context>
<name>BanTableModel</name>
</context>
<context>
<name>BitcoinGUI</name>
</context>
<context>
<name>CoinControlDialog</name>
</context>
<context>
<name>EditAddressDialog</name>
</context>
<context>
<name>FreespaceChecker</name>
</context>
<context>
<name>HelpMessageDialog</name>
</context>
<context>
<name>Intro</name>
</context>
<context>
<name>ModalOverlay</name>
</context>
<context>
<name>OpenURIDialog</name>
</context>
<context>
<name>OptionsDialog</name>
</context>
<context>
<name>OverviewPage</name>
</context>
<context>
<name>PaymentServer</name>
</context>
<context>
<name>PeerTableModel</name>
</context>
<context>
<name>QObject</name>
</context>
<context>
<name>QObject::QObject</name>
</context>
<context>
<name>QRImageWidget</name>
</context>
<context>
<name>RPCConsole</name>
</context>
<context>
<name>ReceiveCoinsDialog</name>
</context>
<context>
<name><API key></name>
</context>
<context>
<name><API key></name>
</context>
<context>
<name>SendCoinsDialog</name>
</context>
<context>
<name>SendCoinsEntry</name>
</context>
<context>
<name><API key></name>
</context>
<context>
<name>ShutdownWindow</name>
</context>
<context>
<name><API key></name>
</context>
<context>
<name>SplashScreen</name>
</context>
<context>
<name>TrafficGraphWidget</name>
</context>
<context>
<name>TransactionDesc</name>
</context>
<context>
<name><API key></name>
</context>
<context>
<name><API key></name>
</context>
<context>
<name>TransactionView</name>
</context>
<context>
<name><API key></name>
</context>
<context>
<name>WalletFrame</name>
</context>
<context>
<name>WalletModel</name>
</context>
<context>
<name>WalletView</name>
<message>
<source>Export the data in the current tab to a file</source>
<translation>Exportar los datos de la actual tabla hacia un archivo</translation>
</message>
</context>
<context>
<name>bitcoin-core</name>
</context>
</TS>
|
package com.github.sixro.minihabits.core.infrastructure.domain;
import java.util.*;
import com.badlogic.gdx.Preferences;
import com.github.sixro.minihabits.core.domain.*;
public class <API key> implements Repository {
private final Preferences prefs;
public <API key>(Preferences prefs) {
super();
this.prefs = prefs;
}
@Override
public Set<MiniHabit> findAll() {
String text = prefs.getString("mini_habits");
if (text == null || text.trim().isEmpty())
return new LinkedHashSet<MiniHabit>();
return newMiniHabits(text);
}
@Override
public void add(MiniHabit miniHabit) {
Set<MiniHabit> list = findAll();
list.add(miniHabit);
prefs.putString("mini_habits", asString(list));
prefs.flush();
}
@Override
public void update(Collection<MiniHabit> list) {
Set<MiniHabit> currentList = findAll();
currentList.removeAll(list);
currentList.addAll(list);
prefs.putString("mini_habits", asString(currentList));
prefs.flush();
}
@Override
public void updateProgressDate(DateAtMidnight aDate) {
prefs.putLong("<API key>", aDate.getTime());
prefs.flush();
}
@Override
public DateAtMidnight lastFeedbackDate() {
long timestamp = prefs.getLong("<API key>");
if (timestamp == 0L)
return null;
return DateAtMidnight.from(timestamp);
}
private Set<MiniHabit> newMiniHabits(String text) {
String[] parts = text.split(",");
Set<MiniHabit> ret = new LinkedHashSet<MiniHabit>();
for (String part: parts)
ret.add(newMiniHabit(part));
return ret;
}
private MiniHabit newMiniHabit(String part) {
int indexOfColon = part.indexOf(':');
String label = part.substring(0, indexOfColon);
Integer daysInProgress = Integer.parseInt(part.substring(indexOfColon +1));
MiniHabit habit = new MiniHabit(label, daysInProgress);
return habit;
}
private String asString(Collection<MiniHabit> list) {
StringBuilder b = new StringBuilder();
int i = 0;
for (MiniHabit each: list) {
b.append(each.label() + ":" + each.daysInProgress());
if (i < list.size()-1)
b.append(',');
i++;
}
return b.toString();
}
}
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
let _ = require('lodash');
let async = require('async');
const <API key> = require("<API key>");
const <API key> = require("<API key>");
class RolesOperationsV1 extends <API key>.FacadeOperations {
constructor() {
super();
this._dependencyResolver.put('roles', new <API key>.Descriptor('pip-services-roles', 'client', '*', '*', '1.0'));
}
setReferences(references) {
super.setReferences(references);
this._rolesClient = this._dependencyResolver.getOneRequired('roles');
}
<API key>() {
return (req, res) => {
this.getUserRoles(req, res);
};
}
<API key>() {
return (req, res) => {
this.grantUserRoles(req, res);
};
}
<API key>() {
return (req, res) => {
this.revokeUserRoles(req, res);
};
}
getUserRoles(req, res) {
let userId = req.route.params.user_id;
this._rolesClient.getRolesById(null, userId, this.sendResult(req, res));
}
grantUserRoles(req, res) {
let userId = req.route.params.user_id;
let roles = req.body;
this._rolesClient.grantRoles(null, userId, roles, this.sendResult(req, res));
}
revokeUserRoles(req, res) {
let userId = req.route.params.user_id;
let roles = req.body;
this._rolesClient.revokeRoles(null, userId, roles, this.sendResult(req, res));
}
}
exports.RolesOperationsV1 = RolesOperationsV1;
//# sourceMappingURL=RolesOperationsV1.js.map
|
local core = require ("core")
local function echo (prefix, channel, suffix)
core:respond (channel, "My life meaning: Marry Ratbot!")
end
core:addCommand ("meaning", echo)
|
require_relative '<API key>'
FactoryBot.define do
factory :priority_bills, parent: :answers do
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
factory :<API key>, traits: [:country, :<API key>]
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', [], nil) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a1', 'a2', 'a3', 'a4', 'a5', 'a6', 'a7', 'a8', 'a9'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a1'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a1'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a2'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a1'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a3'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a1'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a4'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a1'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a1'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a2'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a2'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a2'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a3'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a2'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a4'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a2'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a1'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a3'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a2'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a3'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a3'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a3'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a4'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a3'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a1'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a4'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a2'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a4'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a3'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a4'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a4'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a4'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a1'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a5'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a2'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a5'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a3'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a5'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a4'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a5'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a1'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a6'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a2'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a6'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a3'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a6'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a4'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a6'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a1'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a7'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a2'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a7'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a3'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a7'], []) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a3'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a7'], []) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a3'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a7'], []) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a4'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a7'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a1'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a8'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a2'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a8'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a3'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a8'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a4'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a8'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a1'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a9'], []) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a2'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a9'], []) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a3'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a9'], nil) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a3'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a9'], []) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a3'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a9'], []) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
trait :<API key> do
q1 { <API key>('q1', [], nil) }
q2 { <API key>('q2', [], nil) }
q3 { <API key>('q3', [], nil) }
q4 { <API key>('q4', ['a4'], []) }
q5 { <API key>('q5', [], nil) }
q6 { <API key>('q6', [], nil) }
q7 { <API key>('q7', ['a9'],[] ) }
q8 { <API key>('q8', [], nil) }
q9 { <API key>('q9', [], nil) }
q11 { <API key>('q11', [], nil) }
q12 { <API key>('q12', [], nil) }
q13 { <API key>('q13', [], nil) }
q14 { <API key>('q14', [], nil) }
end
end
end
|
var config = require('../lib/config')();
var Changeset = require('./Changeset');
var queries = require('./queries');
var helpers = require('../helpers');
require('../validators');
var validate = require('validate.js');
var errors = require('../errors');
var pgPromise = helpers.pgPromise;
var promisifyQuery = helpers.promisifyQuery;
var changesets = {};
module.exports = changesets;
var pgURL = config.PostgresURL;
changesets.search = function(params) {
var parseError = validateParams(params);
if (parseError) {
return Promise.reject(new errors.ParseError(parseError));
}
var searchQuery = queries.getSearchQuery(params);
var countQuery = queries.getCountQuery(params);
console.log('searchQ', searchQuery);
console.log('countQ', countQuery);
return pgPromise(pgURL)
.then(function (pg) {
var query = promisifyQuery(pg.client);
var searchProm = query(searchQuery.text, searchQuery.values);
var countProm = query(countQuery.text, countQuery.values);
return Promise.all([searchProm, countProm])
.then(function (r) {
pg.done();
return r;
})
.catch(function (e) {
pg.done();
return Promise.reject(e);
});
})
.then(<API key>);
};
changesets.get = function(id) {
if (!validate.isNumber(parseInt(id, 10))) {
return Promise.reject(new errors.ParseError('Changeset id must be a number'));
}
var changesetQuery = queries.getChangesetQuery(id);
var <API key> = queries.<API key>(id);
return pgPromise(pgURL)
.then(function (pg) {
var query = promisifyQuery(pg.client);
var changesetProm = query(changesetQuery.text, changesetQuery.values);
var <API key> = query(<API key>.text, <API key>.values);
return Promise.all([changesetProm, <API key>])
.then(function (results) {
pg.done();
return results;
})
.catch(function (e) {
pg.done();
return Promise.reject(e);
});
})
.then(function (results) {
var changesetResult = results[0];
if (changesetResult.rows.length === 0) {
return Promise.reject(new errors.NotFoundError('Changeset not found'));
}
var changeset = new Changeset(results[0].rows[0], results[1].rows);
return changeset.getGeoJSON();
});
};
function <API key>(results) {
var searchResult = results[0];
var countResult = results[1];
var changesetsArray = searchResult.rows.map(function (row) {
var changeset = new Changeset(row);
return changeset.getGeoJSON();
});
var count;
if (countResult.rows.length > 0) {
count = countResult.rows[0].count;
} else {
count = 0;
}
var featureCollection = {
'type': 'FeatureCollection',
'features': changesetsArray,
'total': count
};
return featureCollection;
}
function validateParams(params) {
var constraints = {
'from': {
'presence': false,
'datetime': true
},
'to': {
'presence': false,
'datetime': true
},
'bbox': {
'presence': false,
'bbox': true
}
};
var errs = validate(params, constraints);
if (errs) {
var errMsg = Object.keys(errs).map(function(key) {
return errs[key][0];
}).join(', ');
return errMsg;
}
return null;
}
|
# Nancy.Rest.Client
Dynamic proxy client generation for [Nancy](http:
## Prerequisites
A server using [Nancy](http:
It is recommended you read the [Nancy.Rest.Module](https://github.com/maxpiva/Nancy.Rest.Module) documentation to understand how the server mount the services before continuing reading.
## Installation
* Add [Nancy.Rest.Client](https:
Or
* Add the Nuget package [Nancy.Rest.Client](https:
Add your server models and interface with the method signatures to use.
## Basic Usage
#Your Server signatures:
csharp
namespace Nancy.Rest.ExampleServer
{
[RestBasePath("/api")]
public interface IExample
{
[Rest("Person", Verbs.Get)]
List<Person> GetAllPersons();
[Rest("Person/{personid}", Verbs.Get)]
Person GetPerson(int personid);
[Rest("Person", Verbs.Post)]
bool SavePerson(Person person);
[Rest("Person/{personid}", Verbs.Delete)]
bool DeletePerson(int personid);
}
}
#Your Server Models
csharp
namespace Nancy.Rest.ExampleServer
{
public class Person
{
public string FirstName { get; set; }
public string LastName { get; set; }
[Level(1)]
public bool IsProgrammer { get; set; }
[Tags("Attr")]
public List<string> Attributes { get; set; }
}
}
# Your Client
csharp
namespace Nancy.Rest.ExampleClient
{
public class Example
{
public void Run()
{
IExample server=ClientFactory.Create<IExample>("http://yourserver/api"); `
List<Person> persons=server.GetPersons();
}
}
}
##Advanced Usage
Transversal Filtering
[Nancy.Rest.Client](https://github.com/maxpiva/Nancy.Rest.Client) includes this interface.
csharp
using System.Collections.Generic;
namespace Nancy.Rest.Client.Interfaces
{
public interface IFilter<T>
{
T FilterWithLevel(int level);
T FilterWithTags(IEnumerable<string> tags);
T <API key>(int level, IEnumerable<string> tags);
}
}
Create a new interface in your client that includes, both, [IFilter](https://github.com/maxpiva/Nancy.Rest.Client/blob/master/Interfaces/IFilter.cs) interface and your server interface.
csharp
namespace Nancy.Rest.ExampleClient
{
public interface <API key> : IExample, IFilter<IExample>
{
}
}
Then you can use the transversal filtering capabilities of the server like this:
csharp
namespace Nancy.Rest.ExampleClient
{
public class Example
{
public void Run()
{
<API key> server=ClientFactory.Create<<API key>>("http://yourserver/api"); `
//Per example, you can ask the server to not serialize any property with level bigger than the number provided.
//Here we can filter the IsProgrammer property using levels.
List<Person> persons=server.FilterWithLevel(0).GetPersons();
//Or remove the Attributes property using Tags.
List<Person> persons=server.FilterWithTags(new string[] { "Attr"}).GetPersons();
}
}
}
Controlable deserialization
Imagine you have your poco models from the server, but you need to add some properties, methods or <API key> to that objects, you create a child class from the model, and add all those things. The problem is, the deserialzer will deserialize your poco model, so you have to create a new child class, and copy all properties to your child. Nancy.Rest.Client have the capability of deserializing the objects to child objects.
#Client model
csharp
namespace Nancy.Rest.ExampleClient
{
public class ClientPerson : Person
{
public bool IsSuperman { get; set; }
public void DoSomeNastyThings()
{
//Kidding
}
}
}
#Example
csharp
namespace Nancy.Rest.ExampleClient
{
public class Example
{
public void Run()
{
Dictionary<Type,Type> mappings=new Dictionary<Type,Type>();
//Here we add the mapping, we want every person to be deserialized as ClientPerson
mappings.Add(typeof(Person), typeof(ClientPerson));
IExample server=ClientFactory.Create<IExample>("http://yourserver/api", mappings); `
//Here is your list of client persons
List<ClientPerson> persons=server.GetPersons().Cast<ClientPerson>.ToList();
}
}
}
##WARNING
THIS IS AN BETA VERSION, so far it works on my machine ;)
## TODO
* Fill the blanks :P
## History
**1.4.3-Beta**: Removed bugs, published nugets.
**1.4.3-Alpha**: First Release
## Built With
* [JSON.Net](newtonsoft.com/json/)
* [impromptu-interface](https://github.com/ekonbenefits/impromptu-interface)
## Credits
* **Maximo Piva** - [maxpiva](https://github.com/maxpiva)
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
|
Setlocal <API key>
@rem BUILD SOLUTIONS
C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild META\make.msbuild /t:All /m /nodeReuse:false || exit /b !ERRORLEVEL!
C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild tonka\make.msbuild /t:All /m /nodeReuse:false || exit /b !ERRORLEVEL!
@rem RUN TONKA TESTS
del tonka\test\*_result.xml
del tonka\test\*_results.xml
tonka\<API key>.py || exit /b !ERRORLEVEL!
@rem RUN META TESTS
del META\test\*_result.xml
del META\test\*_results.xml
c:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild META\test\run.msbuild || exit /b !ERRORLEVEL!
@rem BUILD INSTALLER
pushd META\deploy
..\bin\Python27\Scripts\python.exe build_msi.py || (popd & exit /b !ERRORLEVEL!)
popd
|
using System;
using System.Windows.Automation.Peers;
using System.Windows.Media;
using System.Windows.Threading;
using MS.Internal.KnownBoxes;
namespace System.Windows.Controls.Primitives
{
<summary>
StatusBar is a visual indicator of the operational status of an application and/or
its components running in a window. StatusBar control consists of a series of zones
on a band that can display text, graphics, or other rich content. The control can
group items within these zones to emphasize relational similarities or functional
connections. The StatusBar can accommodate multiple sets of UI or functionality that
can be chosen even within the same application.
</summary>
[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(StatusBarItem))]
public class StatusBar : ItemsControl
{
// Constructors
#region Constructors
static StatusBar()
{
<API key>.OverrideMetadata(typeof(StatusBar), new <API key>(typeof(StatusBar)));
_dType = <API key>.<API key>(typeof(StatusBar));
IsTabStopProperty.OverrideMetadata(typeof(StatusBar), new <API key>(BooleanBoxes.FalseBox));
ItemsPanelTemplate template = new ItemsPanelTemplate(new <API key>(typeof(DockPanel)));
template.Seal();
ItemsPanelProperty.OverrideMetadata(typeof(StatusBar), new <API key>(template));
}
#endregion
#region Public Properties
<summary>
DependencyProperty for <API key> property.
</summary>
public static readonly DependencyProperty <API key> =
MenuBase.<API key>.AddOwner(
typeof(StatusBar),
new <API key>(new <API key>()));
<summary>
<API key> property which provides the DataTemplate to be used to create an instance of the ItemContainer.
</summary>
public <API key> <API key>
{
get { return (<API key>)GetValue(<API key>); }
set { SetValue(<API key>, value); }
}
<summary>
DependencyProperty for <API key> property.
</summary>
public static readonly DependencyProperty <API key> =
MenuBase.<API key>.AddOwner(typeof(StatusBar));
<summary>
<API key> property which says whether the <API key> property is to be used.
</summary>
public bool <API key>
{
get { return (bool)GetValue(<API key>); }
set { SetValue(<API key>, value); }
}
#endregion
// Protected Methods
#region Protected Methods
private object _currentItem;
<summary>
Return true if the item is (or is eligible to be) its own ItemUI
</summary>
protected override bool <API key>(object item)
{
bool ret = (item is StatusBarItem) || (item is Separator);
if (!ret)
{
_currentItem = item;
}
return ret;
}
protected override DependencyObject <API key>()
{
object currentItem = _currentItem;
_currentItem = null;
if (<API key>)
{
DataTemplate <API key> = <API key>.SelectTemplate(currentItem, this);
if (<API key> != null)
{
object itemContainer = <API key>.LoadContent();
if (itemContainer is StatusBarItem || itemContainer is Separator)
{
return itemContainer as DependencyObject;
}
else
{
throw new <API key>(SR.Get(SRID.<API key>, this.GetType().Name, typeof(StatusBarItem).Name, typeof(Separator).Name, itemContainer));
}
}
}
return new StatusBarItem();
}
<summary>
Prepare the element to display the item. This may involve
applying styles, setting bindings, etc.
</summary>
protected override void <API key>(DependencyObject element, object item)
{
base.<API key>(element, item);
Separator separator = element as Separator;
if (separator != null)
{
bool hasModifiers;
<API key> vs = separator.GetValueSource(StyleProperty, null, out hasModifiers);
if (vs <= <API key>.ImplicitReference)
separator.<API key>(StyleProperty, SeparatorStyleKey);
separator.DefaultStyleKey = SeparatorStyleKey;
}
}
<summary>
Determine whether the ItemContainerStyle/StyleSelector should apply to the container
</summary>
<returns>false if item is a Separator, otherwise return true</returns>
protected override bool <API key>(DependencyObject container, object item)
{
if (item is Separator)
{
return false;
}
else
{
return base.<API key>(container, item);
}
}
#endregion
#region Accessibility
<summary>
Creates AutomationPeer (<see cref="UIElement.<API key>"/>)
</summary>
protected override AutomationPeer <API key>()
{
return new <API key>(this);
}
#endregion
#region DTypeThemeStyleKey
// Returns the <API key> for the registered ThemeStyleKey's default
// value. Controls will override this method to return approriate types.
internal override <API key> DTypeThemeStyleKey
{
get { return _dType; }
}
private static <API key> _dType;
#endregion DTypeThemeStyleKey
#region ItemsStyleKey
<summary>
Resource Key for the SeparatorStyle
</summary>
public static ResourceKey SeparatorStyleKey
{
get
{
return SystemResourceKey.<API key>;
}
}
#endregion
}
}
|
// John Meyer
// CSE 271 F
// Dr. Angel Bravo
import java.util.Scanner;
import java.io.*;
/**
* Copies a file with line numbers prefixed to every line
*/
public class Lab2InputOutput {
public static void main(String[] args) throws Exception {
// Define variables
Scanner keyboardReader = new Scanner(System.in);
String inputFileName;
String outputFileName;
// Check arguments
if (args.length == 0) {
System.out.println("Usage: java Lab2InputOutput /path/to/file");
return;
}
inputFileName = args[0];
// Find input file
File inputFile = new File(inputFileName);
Scanner fileInput = new Scanner(inputFile);
// Get output file name
System.out.print("Output File Name: ");
outputFileName = keyboardReader.next();
File outputFile = new File(outputFileName);
// Start copying
PrintWriter fileOutput = new PrintWriter(outputFile);
String lineContent;
for (int lineNumber = 1; fileInput.hasNext(); lineNumber++) {
lineContent = fileInput.nextLine();
fileOutput.printf(" %s%n", lineNumber, lineContent);
}
fileInput.close();
fileOutput.close();
} // end method main
} // end class Lab2InputOutput
|
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_91) on Mon Jun 20 22:26:50 PDT 2016 -->
<title>Rational</title>
<meta name="date" content="2016-06-20">
<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="Rational";
}
}
catch(err) {
}
var methods = {"i0":9,"i1":10,"i2":10,"i3":9,"i4":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="topNav"><a name="navbar.top">
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
</a>
<ul class="navList" title="Navigation">
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</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="Main.html" title="class in <Unnamed>"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="RationalTest.html" title="class in <Unnamed>"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="index.html?Rational.html" target="_top">Frames</a></li>
<li><a href="Rational.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><a href="#constructor.summary">Constr</a> | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor.detail">Constr</a> | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
</a></div>
<div class="header">
<h2 title="Class Rational" class="title">Class Rational</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>Rational</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="typeNameLabel">Rational</span>
extends java.lang.Object</pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="Rational.html#Rational--">Rational</a></span>()</code> </td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="Rational.html#Rational-int-int-">Rational</a></span>(int num,
int denom)</code> </td>
</tr>
</table>
</li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="method.summary">
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="Rational.html#gcd-int-int-">gcd</a></span>(int a,
int b)</code>
<div class="block">greatest common divisor of a and b</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="Rational.html#getDenominator--">getDenominator</a></span>()</code> </td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="Rational.html#getNumerator--">getNumerator</a></span>()</code> </td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="Rational.html#main-java.lang.String:A-">main</a></span>(java.lang.String[] args)</code>
<div class="block">For testing getters.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="Rational.html#toString--">toString</a></span>()</code> </td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
</a>
<h3>Constructor Detail</h3>
<a name="Rational
</a>
<ul class="blockList">
<li class="blockList">
<h4>Rational</h4>
<pre>public Rational()</pre>
</li>
</ul>
<a name="Rational-int-int-">
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Rational</h4>
<pre>public Rational(int num,
int denom)</pre>
</li>
</ul>
</li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="method.detail">
</a>
<h3>Method Detail</h3>
<a name="gcd-int-int-">
</a>
<ul class="blockList">
<li class="blockList">
<h4>gcd</h4>
<pre>public static int gcd(int a,
int b)</pre>
<div class="block">greatest common divisor of a and b</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>a</code> - first number</dd>
<dd><code>b</code> - second number</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>gcd of a and b</dd>
</dl>
</li>
</ul>
<a name="toString
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public java.lang.String toString()</pre>
<dl>
<dt><span class="<API key>">Overrides:</span></dt>
<dd><code>toString</code> in class <code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="getNumerator
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNumerator</h4>
<pre>public int getNumerator()</pre>
</li>
</ul>
<a name="getDenominator
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDenominator</h4>
<pre>public int getDenominator()</pre>
</li>
</ul>
<a name="main-java.lang.String:A-">
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>main</h4>
<pre>public static void main(java.lang.String[] args)</pre>
<div class="block">For testing getters.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>args</code> - unused</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="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</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="Main.html" title="class in <Unnamed>"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="RationalTest.html" title="class in <Unnamed>"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="index.html?Rational.html" target="_top">Frames</a></li>
<li><a href="Rational.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><a href="#constructor.summary">Constr</a> | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor.detail">Constr</a> | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
</a></div>
</body>
</html>
|
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/><!-- using block title in layout.dt--><!-- using block ddox.defs in ddox.layout.dt--><!-- using block ddox.title in ddox.layout.dt-->
<title>Method Adapter.renderContext</title>
<link rel="stylesheet" type="text/css" href="../../../styles/ddox.css"/>
<link rel="stylesheet" href="../../../prettify/prettify.css" type="text/css"/>
<script type="text/javascript" src="../../../scripts/jquery.js"></script>
<script type="text/javascript" src="../../../prettify/prettify.js"></script>
<script type="text/javascript" src="../../../scripts/ddox.js"></script>
</head>
<body onload="prettyPrint(); setupDdox();">
<nav id="main-nav"><!-- using block navigation in layout.dt-->
<ul class="tree-view">
<li class="collapsed tree-view">
<a href="#" class="package">components</a>
<ul class="tree-view">
<li>
<a href="../../../components/animation.html" class=" module">animation</a>
</li>
<li>
<a href="../../../components/assets.html" class=" module">assets</a>
</li>
<li>
<a href="../../../components/camera.html" class=" module">camera</a>
</li>
<li>
<a href="../../../components/component.html" class=" module">component</a>
</li>
<li>
<a href="../../../components/lights.html" class=" module">lights</a>
</li>
<li>
<a href="../../../components/material.html" class=" module">material</a>
</li>
<li>
<a href="../../../components/mesh.html" class=" module">mesh</a>
</li>
<li>
<a href="../../../components/userinterface.html" class=" module">userinterface</a>
</li>
</ul>
</li>
<li class="collapsed tree-view">
<a href="#" class="package">core</a>
<ul class="tree-view">
<li>
<a href="../../../core/dgame.html" class=" module">dgame</a>
</li>
<li>
<a href="../../../core/gameobject.html" class=" module">gameobject</a>
</li>
<li>
<a href="../../../core/prefabs.html" class=" module">prefabs</a>
</li>
<li>
<a href="../../../core/properties.html" class=" module">properties</a>
</li>
<li>
<a href="../../../core/reflection.html" class=" module">reflection</a>
</li>
<li>
<a href="../../../core/scene.html" class=" module">scene</a>
</li>
</ul>
</li>
<li class=" tree-view">
<a href="#" class="package">graphics</a>
<ul class="tree-view">
<li class=" tree-view">
<a href="#" class="package">adapters</a>
<ul class="tree-view">
<li>
<a href="../../../graphics/adapters/adapter.html" class="selected module">adapter</a>
</li>
<li>
<a href="../../../graphics/adapters/linux.html" class=" module">linux</a>
</li>
<li>
<a href="../../../graphics/adapters/mac.html" class=" module">mac</a>
</li>
<li>
<a href="../../../graphics/adapters/win32.html" class=" module">win32</a>
</li>
</ul>
</li>
<li class="collapsed tree-view">
<a href="#" class="package">shaders</a>
<ul class="tree-view">
<li class="collapsed tree-view">
<a href="#" class="package">glsl</a>
<ul class="tree-view">
<li>
<a href="../../../graphics/shaders/glsl/ambientlight.html" class=" module">ambientlight</a>
</li>
<li>
<a href="../../../graphics/shaders/glsl/animatedgeometry.html" class=" module">animatedgeometry</a>
</li>
<li>
<a href="../../../graphics/shaders/glsl/directionallight.html" class=" module">directionallight</a>
</li>
<li>
<a href="../../../graphics/shaders/glsl/geometry.html" class=" module">geometry</a>
</li>
<li>
<a href="../../../graphics/shaders/glsl/pointlight.html" class=" module">pointlight</a>
</li>
<li>
<a href="../../../graphics/shaders/glsl/shadowmap.html" class=" module">shadowmap</a>
</li>
<li>
<a href="../../../graphics/shaders/glsl/userinterface.html" class=" module">userinterface</a>
</li>
</ul>
</li>
<li>
<a href="../../../graphics/shaders/glsl.html" class=" module">glsl</a>
</li>
<li>
<a href="../../../graphics/shaders/shaders.html" class=" module">shaders</a>
</li>
</ul>
</li>
<li>
<a href="../../../graphics/adapters.html" class=" module">adapters</a>
</li>
<li>
<a href="../../../graphics/graphics.html" class=" module">graphics</a>
</li>
<li>
<a href="../../../graphics/shaders.html" class=" module">shaders</a>
</li>
</ul>
</li>
<li class="collapsed tree-view">
<a href="#" class="package">utility</a>
<ul class="tree-view">
<li>
<a href="../../../utility/awesomium.html" class=" module">awesomium</a>
</li>
<li>
<a href="../../../utility/concurrency.html" class=" module">concurrency</a>
</li>
<li>
<a href="../../../utility/config.html" class=" module">config</a>
</li>
<li>
<a href="../../../utility/filepath.html" class=" module">filepath</a>
</li>
<li>
<a href="../../../utility/input.html" class=" module">input</a>
</li>
<li>
<a href="../../../utility/output.html" class=" module">output</a>
</li>
<li>
<a href="../../../utility/resources.html" class=" module">resources</a>
</li>
<li>
<a href="../../../utility/string.html" class=" module">string</a>
</li>
<li>
<a href="../../../utility/tasks.html" class=" module">tasks</a>
</li>
<li>
<a href="../../../utility/time.html" class=" module">time</a>
</li>
</ul>
</li>
<li>
<a href="../../../components.html" class=" module">components</a>
</li>
<li>
<a href="../../../core.html" class=" module">core</a>
</li>
<li>
<a href="../../../graphics.html" class=" module">graphics</a>
</li>
<li>
<a href="../../../utility.html" class=" module">utility</a>
</li>
</ul>
<noscript>
<p style="color: red">The search functionality needs JavaScript enabled</p>
</noscript>
<div id="symbolSearchPane" style="display: none">
<p>
<input id="symbolSearch" type="text" placeholder="Search for symbols" onchange="performSymbolSearch(24);" onkeypress="this.onchange();" onpaste="this.onchange();" oninput="this.onchange();"/>
</p>
<ul id="symbolSearchResults" style="display: none"></ul>
<script type="application/javascript" src="../../../symbols.js"></script>
<script type="application/javascript">
//<![CDATA[
var symbolSearchRootDir = "../../../"; $('#symbolSearchPane').show();
</script>
</div>
</nav>
<div id="main-contents">
<h1>Method Adapter.renderContext</h1><!-- using block body in layout.dt--><!-- Default block ddox.description in ddox.layout.dt--><!-- Default block ddox.sections in ddox.layout.dt--><!-- using block ddox.members in ddox.layout.dt-->
<h2>Overload group</h2>
<p></p>
<section>
<h3>Prototype</h3>
<pre class="code prettyprint lang-d prototype">
void* renderContext() pure nothrow @property @safe auto final;</pre>
</section>
<h2>Overload group</h2>
<p></p>
<section>
<h3>Prototype</h3>
<pre class="code prettyprint lang-d prototype">
void renderContext(
void* newVal
) pure nothrow @property @safe final;</pre>
</section>
<section>
<h2>Authors</h2><!-- using block ddox.authors in ddox.layout.dt-->
</section>
<section>
<h2>Copyright</h2>
</section>
<section>
<h2>License</h2>
</section>
</div>
</body>
</html>
|
// Use of this source code is governed by a MIT-style
package dmt
const VersionNo = "20131207"
type PictureCategory struct {
Created string `json:"created"`
Modified string `json:"modified"`
ParentId int `json:"parent_id"`
PictureCategoryId int `json:"picture_category_id"`
PictureCategoryName string `json:"<API key>"`
Position int `json:"position"`
Type string `json:"type"`
}
type Picture struct {
ClientType string `json:"client_type"`
Created string `json:"created"`
Deleted string `json:"deleted"`
Md5 string `json:"md5"`
Modified string `json:"modified"`
PictureCategoryId int `json:"picture_category_id"`
PictureId int `json:"picture_id"`
PicturePath string `json:"picture_path"`
Pixel string `json:"pixel"`
Referenced bool `json:"referenced"`
Sizes int `json:"sizes"`
Status string `json:"status"`
Title string `json:"title"`
Uid int `json:"uid"`
}
type UserInfo struct {
AvailableSpace string `json:"available_space"`
FreeSpace string `json:"free_space"`
OrderExpiryDate string `json:"order_expiry_date"`
OrderSpace string `json:"order_space"`
RemainingSpace string `json:"remaining_space"`
UsedSpace string `json:"used_space"`
WaterMark string `json:"water_mark"`
}
type TOPSearchResult struct {
Paginator *TOPPaginator `json:"paginator"`
VideoItems struct {
VideoItem []*VideoItem `json:"video_item"`
} `json:"video_items"`
}
type TOPPaginator struct {
CurrentPage int `json:"current_page"`
IsLastPage bool `json:"is_last_page"`
PageSize int `json:"page_size"`
TotalResults int `json:"total_results"`
}
type VideoItem struct {
CoverUrl string `json:"cover_url"`
Description string `json:"description"`
Duration int `json:"duration"`
IsOpenToOther bool `json:"is_open_to_other"`
State int `json:"state"`
Tags []string `json:"tags"`
Title string `json:"title"`
UploadTime string `json:"upload_time"`
UploaderId int `json:"uploader_id"`
VideoId int `json:"video_id"`
VideoPlayInfo *VideoPlayInfo `json:"video_play_info"`
}
type VideoPlayInfo struct {
AndroidpadUrl string `json:"androidpad_url"`
AndroidpadV23Url *AndroidVlowUrl `json:"androidpad_v23_url"`
AndroidphoneUrl string `json:"androidphone_url"`
AndroidphoneV23Url *AndroidVlowUrl `json:"<API key>"`
FlashUrl string `json:"flash_url"`
IpadUrl string `json:"ipad_url"`
IphoneUrl string `json:"iphone_url"`
WebUrl string `json:"web_url"`
}
/* android phonepadmp42.3Android */
type AndroidVlowUrl struct {
Hd string `json:"hd"`
Ld string `json:"ld"`
Sd string `json:"sd"`
Ud string `json:"ud"`
}
|
'use strict';
const assert = require('assert');
const HttpResponse = require('./http-response');
describe('HttpResponse', () => {
const mockResponse = {
version: '1.0',
status: '200 OK'
};
it('should create an instance', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.ok(httpResponse instanceof HttpResponse);
});
describe('isProtocolVersion()', () => {
it('should determine if protocol version matches', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.ok(httpResponse.isProtocolVersion('1.0'));
});
it('should return false if versions do not match', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.equal(httpResponse.isProtocolVersion('2.0'), false);
});
it('should throw an error if no version specified', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.throws(httpResponse.isProtocolVersion, /Specify a protocol `version`/);
});
it('should throw an error if no version specified', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.throws(() =>
httpResponse.isProtocolVersion(false), /The protocol `version` must be a string/);
});
});
describe('getProtocolVersion()', () => {
it('should get the protocol version', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.equal(httpResponse.getProtocolVersion(), '1.0');
});
});
describe('setProtocolVersion()', () => {
it('should set the protocol version', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.equal(httpResponse.getProtocolVersion(), '1.0');
httpResponse.setProtocolVersion('2.0');
assert.equal(httpResponse.getProtocolVersion(), '2.0');
});
it('should throw an error if no version specified', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.throws(httpResponse.setProtocolVersion, /Specify a protocol `version`/);
});
it('should throw an error if no version specified', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.throws(() =>
httpResponse.setProtocolVersion(Boolean), /The protocol `version` must be a string/);
});
});
describe('isStatus()', () => {
it('should determine if status matches', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.ok(httpResponse.isStatus('200 OK'));
});
it('should return false if status do not match', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.equal(httpResponse.isStatus('400 Bad Request'), false);
});
it('should throw an error if no status specified', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.throws(httpResponse.isStatus, /Specify a `status`/);
});
it('should throw an error if specified status is not a string', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.throws(() => httpResponse.isStatus({}), /The `status` must be a string/);
});
});
describe('getStatus()', () => {
it('should return the status', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.equal(httpResponse.getStatus(), '200 OK');
});
});
describe('getStatusCode()', () => {
it('should return status code', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.equal(httpResponse.getStatusCode(), '200');
});
});
describe('getStatusText()', () => {
it('should return status text', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.equal(httpResponse.getStatusText(), 'OK');
});
});
describe('setStatus()', () => {
it('should set the status', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.equal(httpResponse.getStatus(), '200 OK');
httpResponse.setStatus(400, 'Bad Request');
assert.equal(httpResponse.getStatus(), '400 Bad Request');
});
it('should throw an error if no code specified', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.equal(httpResponse.getStatus(), '200 OK');
assert.throws(() => httpResponse.setStatus(void 0, 'Bad Request'), /Specify a status `code`/);
});
it('should throw an error if the code is not an integer', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.equal(httpResponse.getStatus(), '200 OK');
assert.throws(() =>
httpResponse.setStatus('200', 'Bad Request'), /The status `code` must be an integer/);
});
it('should throw an error if no text specified', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.equal(httpResponse.getStatus(), '200 OK');
assert.throws(() => httpResponse.setStatus(400, void 0), /Specify a status `text`/);
});
it('should throw an error if specified text is not a string', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.equal(httpResponse.getStatus(), '200 OK');
assert.throws(() => httpResponse.setStatus(400, true), /The status `text` must be a string/);
});
});
describe('hasHeader()', () => {
it('should determine if header has been set', () => {
const _mockResponse = Object.assign({headers: {'Content-Type': 'test'}}, mockResponse);
const httpResponse = new HttpResponse(_mockResponse);
assert.ok(httpResponse.hasHeader('Content-Type'));
});
it('should return false if header has not been set', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.equal(httpResponse.hasHeader('Content-Type'), false);
});
it('should throw an error if no header `name` specified', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.throws(httpResponse.hasHeader, /Specify a header `name`/);
});
it('should throw an error if specified header `name` is not a string', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.throws(() => httpResponse.hasHeader({}), /The header `name` must be a string/);
});
});
describe('getHeader()', () => {
it('should return the header with the specified `name`', () => {
const _mockResponse = Object.assign({headers: {'Content-Type': ['test']}}, mockResponse);
const httpResponse = new HttpResponse(_mockResponse);
assert.equal(httpResponse.getHeader('Content-Type'), 'test');
});
it('should return the default value if specified header does not exist', () => {
const _mockResponse = Object.assign({headers: {}}, mockResponse);
const httpResponse = new HttpResponse(_mockResponse);
const defaultValue = 'text/plain';
assert.equal(httpResponse.getHeader('Content-Type', defaultValue), defaultValue);
});
it('should throw an error if no header `name` specified', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.throws(httpResponse.getHeader, /Specify a header `name`/);
});
it('should throw an error if specified header `name` is not a string', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.throws(() => httpResponse.getHeader({}), /The header `name` must be a string/);
});
});
describe('getHeaders()', () => {
it('should return all headers', () => {
const headers = {'Content-Type': ['test']};
const _mockResponse = Object.assign({headers}, mockResponse);
const httpResponse = new HttpResponse(_mockResponse);
assert.deepEqual(httpResponse.getHeaders(), {'Content-Type': 'test'});
});
it('should return an empty set of headers when none are set', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.deepEqual(httpResponse.getHeaders(), {});
});
});
describe('setHeader()', () => {
it('should set a header in the httpResponse', () => {
const httpResponse = new HttpResponse(mockResponse);
httpResponse.setHeader('Content-Type', 'test');
assert.ok(httpResponse.hasHeader('Content-Type'));
assert.equal(httpResponse.getHeader('Content-Type'), 'test');
});
it('should throw an error if a header `name` is not defined', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.throws(() => httpResponse.setHeader(void 0, 'test'), /Specify a header `name`/);
});
it('should throw an error if a header `name` is not a string', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.throws(() =>
httpResponse.setHeader(false, 'test'), /The header `name` must be a string/);
});
it('should throw an error if a header `value` is not defined', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.throws(() =>
httpResponse.setHeader('Content-Type', void 0), /Specify a header `value`/);
});
it('should throw an error if a header `name` is not a string', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.throws(() => httpResponse.setHeader('Content-Type', []),
/The header `value` must be a string/);
});
it('should register a new header as an array with 1 value', () => {
const httpResponse = new HttpResponse(mockResponse);
httpResponse.setHeader('X-Test', 'test');
assert.ok(httpResponse.hasHeader('X-Test'));
assert.deepEqual(httpResponse.getHeaderArray('X-Test'), ['test']);
});
});
describe('hasBody()', () => {
it('should determine if the httpResponse has a `body`', () => {
const _mockResponse = Object.assign({body: ' '}, mockResponse);
const httpResponse = new HttpResponse(_mockResponse);
assert.ok(httpResponse.hasBody());
});
it('should return false if the esponse do not have a `body`', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.equal(httpResponse.hasBody(), false);
});
});
describe('getBody()', () => {
it('should return the content of the httpResponse `body`', () => {
const body = ' ';
const _mockResponse = Object.assign({body}, mockResponse);
const httpResponse = new HttpResponse(_mockResponse);
assert.equal(httpResponse.getBody(), body);
});
});
describe('setBody()', () => {
it('should set the content of the httpResponse `body`', () => {
const body = ' ';
const httpResponse = new HttpResponse(mockResponse);
httpResponse.setBody(body);
assert.equal(httpResponse.getBody(), body);
});
});
});
|
"use strict";
let datafire = require('datafire');
let openapi = require('./openapi.json');
module.exports = datafire.Integration.fromOpenAPI(openapi, "<API key>");
|
<!DOCTYPE html>
<head>
<title>Terrible Treats - Cookie Recipe</title>
<link rel="stylesheet" type="text/css" href="styling.css">
</head>
<body>
<div id="header">
<p id="title">Terrible Treats</p>
<p id="subTitle">Desserts For Your Worst Enemies</p>
</div>
<div id="navCon" class="flex-container">
<div id="navBar" class="flex-nav">
<p class="navButton"><a href="index.html">Home</a></p>
<p class="navButton"><a href="cookies.html">Cookies</a></p>
<p class="navButton"><a href="cakes.html">Cakes</a></p>
<p class="navButton"><a href="pies.html">Pies</a></p>
</div>
<div id="contentSection">
<p id="subTitle">Wasabi Cookies</p>
<img src="greenCookie.jpg" alt="Green Cookies">
<table id="ingredients">
<tr>
<th>Ingredients</th>
<th>Amount</th>
</tr>
<tr>
<td>Eggs</td>
<td>4</td>
</tr>
<tr>
<td>Flour</td>
<td>3 cups</td>
</tr>
<tr>
<td>Butter</td>
<td>1/4 pound</td>
</tr>
<tr>
<td>Salt</td>
<td>2 tbs</td>
</tr>
<tr>
<td>Wasabi</td>
<td>1 cup</td>
</tr>
</table>
<h4>Instructions</h4>
<ol>
<li>Preheat oven to 350 degrees fahrenheit</li>
<li>Add egg, flour, butter, wasabi, and salt into a bowl and mix untill fully blended</li>
<li>Drop tablespoon size amounts of batter on a baking sheet with some distance between them</li>
<li>Bake for 30 minutes</li>
<li>Let stand for 15 minutes</li>
</ol>
</div>
</div>
</body>
|
package generated.zcsclient.mail;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "messagePartHitInfo", propOrder = {
"e",
"su"
})
public class <API key> {
protected testEmailInfo e;
protected String su;
@XmlAttribute(name = "id")
protected String id;
@XmlAttribute(name = "sf")
protected String sf;
@XmlAttribute(name = "s")
protected Long s;
@XmlAttribute(name = "d")
protected Long d;
@XmlAttribute(name = "cid")
protected Integer cid;
@XmlAttribute(name = "mid")
protected Integer mid;
@XmlAttribute(name = "ct")
protected String ct;
@XmlAttribute(name = "name")
protected String name;
@XmlAttribute(name = "part")
protected String part;
/**
* Gets the value of the e property.
*
* @return
* possible object is
* {@link testEmailInfo }
*
*/
public testEmailInfo getE() {
return e;
}
/**
* Sets the value of the e property.
*
* @param value
* allowed object is
* {@link testEmailInfo }
*
*/
public void setE(testEmailInfo value) {
this.e = value;
}
/**
* Gets the value of the su property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSu() {
return su;
}
/**
* Sets the value of the su property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSu(String value) {
this.su = value;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
/**
* Gets the value of the sf property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSf() {
return sf;
}
/**
* Sets the value of the sf property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSf(String value) {
this.sf = value;
}
/**
* Gets the value of the s property.
*
* @return
* possible object is
* {@link Long }
*
*/
public Long getS() {
return s;
}
/**
* Sets the value of the s property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setS(Long value) {
this.s = value;
}
/**
* Gets the value of the d property.
*
* @return
* possible object is
* {@link Long }
*
*/
public Long getD() {
return d;
}
/**
* Sets the value of the d property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setD(Long value) {
this.d = value;
}
/**
* Gets the value of the cid property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getCid() {
return cid;
}
/**
* Sets the value of the cid property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setCid(Integer value) {
this.cid = value;
}
/**
* Gets the value of the mid property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getMid() {
return mid;
}
/**
* Sets the value of the mid property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setMid(Integer value) {
this.mid = value;
}
/**
* Gets the value of the ct property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCt() {
return ct;
}
/**
* Sets the value of the ct property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCt(String value) {
this.ct = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the part property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPart() {
return part;
}
/**
* Sets the value of the part property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPart(String value) {
this.part = value;
}
}
|
#!/bin/bash -ex
cd "$(dirname "$0")"
docker run --rm \
-v "$PWD/.:/work" \
-w "/work" \
ruby:2.5 bash -ec "
gem install -N parse_a_changelog
parse ./CHANGELOG.md
"
|
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta name="description" content="" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<script type="text/javascript" src="../../../core/uni.js"></script>
<script type="text/javascript">
uni
.require('kits/xhr.js')
.require('core/notify.js')
.within(function() {
this
.xhr
// No callback argument, just complete, also showing how to pass
// through data.
.get('get.html', {
async: true,
// This will pass through to `ob`, below.
here: 'there',
complete: function(data, ob) {
this
.notify(data)
.notify(ob)
}
})
})
</script>
</head>
<body>
<div id="test">
</div>
</body>
</html>
|
<template name="loading">
<div class="ui active inline loader"></div>
</template>
|
require File.expand_path('../boot', __FILE__)
# Pick the frameworks you want:
require "active_model/railtie"
require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
require "action_view/railtie"
require "sprockets/railtie"
# require "rails/test_unit/railtie"
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module ClassroomLibrary
class Application < Rails::Application
|
/*jslint vars: true, plusplus: true, devel: true, node: true, nomen: true,
indent: 4, maxerr: 50 */
/*global expect, describe, it, beforeEach, afterEach */
"use strict";
var ExtensionsDomain = require("../<API key>"),
fs = require("fs-extra"),
async = require("async"),
path = require("path");
var testFilesDirectory = path.join(path.dirname(module.filename),
"..", // node
"..", // extensibility
"..", // src
"..", // brackets
"test",
"spec",
"<API key>"),
installParent = path.join(path.dirname(module.filename), "extensions"),
installDirectory = path.join(installParent, "good"),
disabledDirectory = path.join(installParent, "disabled");
var basicValidExtension = path.join(testFilesDirectory, "<API key>.zip"),
<API key> = path.join(testFilesDirectory, "<API key>.0.zip"),
missingMain = path.join(testFilesDirectory, "missing-main.zip"),
oneLevelDown = path.join(testFilesDirectory, "<API key>.zip"),
incompatibleVersion = path.join(testFilesDirectory, "<API key>.zip"),
invalidZip = path.join(testFilesDirectory, "invalid-zip-file.zip"),
missingPackageJSON = path.join(testFilesDirectory, "<API key>.zip");
describe("Package Installation", function () {
var standardOptions = {
disabledDirectory: disabledDirectory,
apiVersion: "0.22.0"
};
beforeEach(function (done) {
fs.mkdirs(installDirectory, function (err) {
fs.mkdirs(disabledDirectory, function (err) {
done();
});
});
});
afterEach(function (done) {
fs.remove(installParent, function (err) {
done();
});
});
function checkPaths(pathsToCheck, callback) {
var existsCalls = [];
pathsToCheck.forEach(function (path) {
existsCalls.push(function (callback) {
fs.exists(path, async.apply(callback, null));
});
});
async.parallel(existsCalls, function (err, results) {
expect(err).toBeNull();
results.forEach(function (result, num) {
expect(result ? "" : pathsToCheck[num] + " does not exist").toEqual("");
});
callback();
});
}
it("should validate the package", function (done) {
ExtensionsDomain._cmdInstall(missingMain, installDirectory, standardOptions, function (err, result) {
expect(err).toBeNull();
var errors = result.errors;
expect(errors.length).toEqual(1);
done();
});
});
it("should work fine if all is well", function (done) {
ExtensionsDomain._cmdInstall(basicValidExtension, installDirectory, standardOptions, function (err, result) {
var extensionDirectory = path.join(installDirectory, "<API key>");
expect(err).toBeNull();
var errors = result.errors;
expect(errors.length).toEqual(0);
expect(result.metadata.name).toEqual("<API key>");
expect(result.name).toEqual("<API key>");
expect(result.installedTo).toEqual(extensionDirectory);
var pathsToCheck = [
path.join(extensionDirectory, "package.json"),
path.join(extensionDirectory, "main.js")
];
checkPaths(pathsToCheck, done);
});
});
// This is mildly redundant. the validation check should catch this.
// But, I wanted to be sure that the install function doesn't try to
// do anything with the file before validation.
it("should fail for missing package", function (done) {
ExtensionsDomain._cmdInstall(path.join(testFilesDirectory, "NOT A PACKAGE"),
installDirectory, standardOptions, function (err, result) {
expect(err).toBeNull();
var errors = result.errors;
expect(errors.length).toEqual(1);
expect(errors[0][0]).toEqual("NOT_FOUND_ERR");
done();
});
});
it("should install to the disabled directory if it's already installed", function (done) {
ExtensionsDomain._cmdInstall(basicValidExtension, installDirectory, standardOptions, function (err, result) {
expect(err).toBeNull();
expect(result.disabledReason).toBeNull();
ExtensionsDomain._cmdInstall(basicValidExtension, installDirectory, standardOptions, function (err, result) {
expect(err).toBeNull();
expect(result.disabledReason).toEqual("ALREADY_INSTALLED");
var extensionDirectory = path.join(disabledDirectory, "<API key>");
var pathsToCheck = [
path.join(extensionDirectory, "package.json"),
path.join(extensionDirectory, "main.js")
];
checkPaths(pathsToCheck, done);
});
});
});
it("should yield an error if there's no disabled directory set", function (done) {
ExtensionsDomain._cmdInstall(basicValidExtension, installDirectory, { apiVersion: "0.22.0" }, function (err, result) {
expect(err.message).toEqual("<API key>");
done();
});
});
it("should yield an error if there's no apiVersion set", function (done) {
ExtensionsDomain._cmdInstall(basicValidExtension, installDirectory, { disabledDirectory: disabledDirectory }, function (err, result) {
expect(err.message).toEqual("<API key>");
done();
});
});
it("should overwrite the disabled directory copy if there's already one", function (done) {
ExtensionsDomain._cmdInstall(basicValidExtension, installDirectory, standardOptions, function (err, result) {
expect(err).toBeNull();
expect(result.disabledReason).toBeNull();
ExtensionsDomain._cmdInstall(basicValidExtension, installDirectory, standardOptions, function (err, result) {
expect(err).toBeNull();
expect(result.disabledReason).toEqual("ALREADY_INSTALLED");
ExtensionsDomain._cmdInstall(<API key>, installDirectory, standardOptions, function (err, result) {
expect(err).toBeNull();
expect(result.disabledReason).toEqual("ALREADY_INSTALLED");
var extensionDirectory = path.join(disabledDirectory, "<API key>");
fs.readJson(path.join(extensionDirectory, "package.json"), function (err, packageObj) {
expect(err).toBeNull();
expect(packageObj.version).toEqual("2.0.0");
done();
});
});
});
});
});
it("should derive the name from the zip if there's no package.json", function (done) {
ExtensionsDomain._cmdInstall(missingPackageJSON, installDirectory, standardOptions, function (err, result) {
expect(err).toBeNull();
expect(result.disabledReason).toBeNull();
var extensionDirectory = path.join(installDirectory, "<API key>");
var pathsToCheck = [
path.join(extensionDirectory, "main.js")
];
checkPaths(pathsToCheck, done);
});
});
it("should install with the common prefix removed", function (done) {
ExtensionsDomain._cmdInstall(oneLevelDown, installDirectory, standardOptions, function (err, result) {
expect(err).toBeNull();
var extensionDirectory = path.join(installDirectory, "one-level-extension");
var pathsToCheck = [
path.join(extensionDirectory, "main.js"),
path.join(extensionDirectory, "package.json"),
path.join(extensionDirectory, "lib", "foo.js")
];
checkPaths(pathsToCheck, done);
});
});
it("should disable extensions that are not compatible with the current Brackets API", function (done) {
ExtensionsDomain._cmdInstall(incompatibleVersion, installDirectory, standardOptions, function (err, result) {
expect(err).toBeNull();
expect(result.disabledReason).toEqual("API_NOT_COMPATIBLE");
var extensionDirectory = path.join(disabledDirectory, "<API key>");
var pathsToCheck = [
path.join(extensionDirectory, "main.js"),
path.join(extensionDirectory, "package.json")
];
checkPaths(pathsToCheck, done);
});
});
it("should not have trouble with invalid zip files", function (done) {
ExtensionsDomain._cmdInstall(invalidZip, installDirectory, standardOptions, function (err, result) {
expect(err).toBeNull();
expect(result.errors.length).toEqual(1);
done();
});
});
});
|
'
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:2.0.50727.1433
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'
Option Strict On
Option Explicit On
Namespace My
<Global.System.Runtime.CompilerServices.<API key>(), _
Global.System.CodeDom.Compiler.<API key>("Microsoft.VisualStudio.Editors.SettingsDesigner.<API key>", "9.0.0.0"), _
Global.System.ComponentModel.<API key>(Global.System.ComponentModel.<API key>.Advanced)> _
Partial Friend NotInheritable Class MySettings
Inherits Global.System.Configuration.<API key>
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.<API key>.Synchronized(New MySettings),MySettings)
#Region "My.Settings Auto-Save Functionality"
#If _MyType = "WindowsForms" Then
Private Shared addedHandler As Boolean
Private Shared <API key> As New Object
<Global.System.Diagnostics.<API key>(), Global.System.ComponentModel.<API key>(Global.System.ComponentModel.<API key>.Advanced)> _
Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
If My.Application.<API key> Then
My.Settings.Save()
End If
End Sub
#End If
#End Region
Public Shared ReadOnly Property [Default]() As MySettings
Get
#If _MyType = "WindowsForms" Then
If Not addedHandler Then
SyncLock <API key>
If Not addedHandler Then
AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
addedHandler = True
End If
End SyncLock
End If
#End If
Return defaultInstance
End Get
End Property
End Class
End Namespace
Namespace My
<Global.Microsoft.VisualBasic.<API key>(), _
Global.System.Diagnostics.<API key>(), _
Global.System.Runtime.CompilerServices.<API key>()> _
Friend Module MySettingsProperty
<Global.System.ComponentModel.Design.<API key>("My.Settings")> _
Friend ReadOnly Property Settings() As Global.pmDebug.My.MySettings
Get
Return Global.pmDebug.My.MySettings.Default
End Get
End Property
End Module
End Namespace
|
#include "stdafx.h"
#include "Renderer.h"
#include "<API key>.h"
<API key>::<API key>(class Renderer *r) {
ASSERT(r, "Null pointer: r");
renderer = r;
useCG = true;
}
bool <API key>::isSupported() const {
return areShadersAvailable();
}
void <API key>::setupShader(CGcontext &cg,
CGprofile &_cgVertexProfile,
CGprofile &_cgFragmentProfile) {
RenderMethod::setupShader(cg, _cgVertexProfile, _cgFragmentProfile);
createVertexProgram(cg, FileName("data/shaders/cg/phong_point.vp.cg"));
<API key>(cg, FileName("data/shaders/cg/phong_point.fp.cg"));
// Vertex program parameters
cgMVP = <API key> (cg, "MVP");
cgView = <API key> (cg, "View");
cgLightPos = <API key> (cg, "LightPos");
cgCameraPos = <API key> (cg, "CameraPos");
cgTexture = <API key>(cg, "tex0");
cgKa = <API key>(cg, "Ka");
cgKd = <API key>(cg, "Kd");
cgKs = <API key>(cg, "Ks");
cgShininess = <API key>(cg, "shininess");
cgkC = <API key>(cg, "kC");
cgkL = <API key>(cg, "kL");
cgkQ = <API key>(cg, "kQ");
}
void <API key>::renderPass(RENDER_PASS pass) {
switch (pass) {
case OPAQUE_PASS:
pass_opaque();
break;
default:
return;
}
}
void <API key>::pass_opaque() {
CHECK_GL_ERROR();
// Setup state
glPushAttrib(GL_ALL_ATTRIB_BITS);
glColor4fv(white);
glEnable(GL_LIGHTING);
glEnable(GL_COLOR_MATERIAL);
glEnable(GL_TEXTURE_2D);
// Setup client state
glEnableClientState(GL_VERTEX_ARRAY);
glEnableClientState(GL_NORMAL_ARRAY);
glEnableClientState(<API key>);
// Render the geometry chunks
renderChunks();
// Restore client state
<API key>(GL_VERTEX_ARRAY);
<API key>(<API key>);
<API key>(GL_NORMAL_ARRAY);
// Restore settings
glPopAttrib();
CHECK_GL_ERROR();
}
void <API key>::setShaderData(const GeometryChunk &gc) {
const Renderer::Light &light0 = renderer->getLight();
ASSERT(light0.type == Renderer::Light::POINT, "point lights only pls");
mat4 MI = (gc.transformation).inverse(); // world -> object projection
// Set the position of the light (in object-space)
vec3 LightPosObj = MI.transformVector(light0.position);
cgGLSetParameter3fv(cgLightPos, LightPosObj);
// Set the position of the camera (in object-space)
vec3 CameraPosWld = renderer->getCamera().getPosition();
vec3 CameraPosObj = MI.transformVector(CameraPosWld);
cgGLSetParameter3fv(cgCameraPos, CameraPosObj);
// Set the light properties
cgGLSetParameter1fv(cgkC, &light0.kC);
cgGLSetParameter1fv(cgkL, &light0.kL);
cgGLSetParameter1fv(cgkQ, &light0.kQ);
// Set the material properties
cgGLSetParameter4fv(cgKa, gc.material.Ka);
cgGLSetParameter4fv(cgKd, gc.material.Kd);
cgGLSetParameter4fv(cgKs, gc.material.Ks);
cgGLSetParameter1fv(cgShininess, &gc.material.shininess);
// Everything else
<API key>(cgMVP, <API key>, <API key>);
<API key>(cgView, <API key>, <API key>);
}
|
#ifndef <API key>
#define <API key>
#include <vector>
#include <map>
#include <string>
#include "sqlite3.h"
std::vector<std::string> read_text_file(std::string path);
std::vector<std::string> split_str(std::string src, char c);
std::string join_str(std::vector<std::string> strings, std::string connector);
template<typename K, typename V>
std::vector<K> map_get_keys(std::map<K, V> map);
template<typename K, typename V>
std::vector<V> map_get_values(std::map<K, V> map);
int db_insert(sqlite3* con, std::string table, std::map<std::string, std::string> values);
template<typename C>
std::vector<C> db_select(sqlite3* con, std::string table, std::string coloumn, std::string where_stmt);
#endif
|
class <API key> < ActiveRecord::Migration
def change
add_column :videos, :<API key>, :string, :limit => 40
end
end
|
function SendMessage(a_Player, a_Message)
a_Player:SendMessageInfo(a_Message)
end
function SendMessageSuccess(a_Player, a_Message)
a_Player:SendMessageSuccess(a_Message)
end
function SendMessageFailure(a_Player, a_Message)
a_Player:SendMessageFailure(a_Message)
end
Kicks a player by name, with the specified reason; returns bool whether found and player's real name
function KickPlayer( PlayerName, Reason )
local RealName = ""
if (Reason == nil) then
Reason = "You have been kicked"
end
local FoundPlayerCallback = function( a_Player )
a_Player:GetClientHandle():Kick(Reason)
return true
end
if not cRoot:Get():FindAndDoWithPlayer( PlayerName, FoundPlayerCallback ) then
-- Could not find player
return false
end
return true -- Player has been kicked
end
function ReturnColorFromChar(char)
-- Check if the char represents a color. Else return nil.
if char == "0" then
return cChatColor.Black
elseif char == "1" then
return cChatColor.Navy
elseif char == "2" then
return cChatColor.Green
elseif char == "3" then
return cChatColor.Blue
elseif char == "4" then
return cChatColor.Red
elseif char == "5" then
return cChatColor.Purple
elseif char == "6" then
return cChatColor.Gold
elseif char == "7" then
return cChatColor.LightGray
elseif char == "8" then
return cChatColor.Gray
elseif char == "9" then
return cChatColor.DarkPurple
elseif char == "a" then
return cChatColor.LightGreen
elseif char == "b" then
return cChatColor.LightBlue
elseif char == "c" then
return cChatColor.Rose
elseif char == "d" then
return cChatColor.LightPurple
elseif char == "e" then
return cChatColor.Yellow
elseif char == "f" then
return cChatColor.White
elseif char == "k" then
return cChatColor.Random
elseif char == "l" then
return cChatColor.Bold
elseif char == "m" then
return cChatColor.Strikethrough
elseif char == "n" then
return cChatColor.Underlined
elseif char == "o" then
return cChatColor.Italic
elseif char == "r" then
return cChatColor.Plain
end
end
-- Teleports a_SrcPlayer to a player named a_DstPlayerName; if a_TellDst is true, will send a notice to the destination player
function TeleportToPlayer( a_SrcPlayer, a_DstPlayerName, a_TellDst )
local teleport = function(a_DstPlayerName)
if a_DstPlayerName == a_SrcPlayer then
-- Asked to teleport to self?
SendMessageFailure( a_SrcPlayer, "Y' can't teleport to yerself" )
else
-- If destination player is not in the same world, move to the correct world
if a_SrcPlayer:GetWorld():GetName() ~= a_DstPlayerName:GetWorld():GetName() then
a_SrcPlayer:MoveToWorld( a_DstPlayerName:GetWorld():GetName() )
end
a_SrcPlayer:TeleportToEntity( a_DstPlayerName )
SendMessageSuccess( a_SrcPlayer, "You teleported to " .. a_DstPlayerName:GetName() )
if (a_TellDst) then
SendMessage( a_DstPlayerName, a_SrcPlayer:GetName().." teleported to you" )
end
end
end
if not cRoot:Get():FindAndDoWithPlayer( a_DstPlayerName, teleport ) then
SendMessageFailure( a_SrcPlayer, "Player " .. a_DstPlayerName .. " not found" )
end
end
function <API key>(WorldName)
return WorldsSpawnProtect[WorldName]
end
function GetWorldDifficulty(a_World)
local Difficulty = <API key>[a_World:GetName()]
if (Difficulty == nil) then
Difficulty = 1
end
return Clamp(Difficulty, 0, 3)
end
function SetWorldDifficulty(a_World, a_Difficulty)
local Difficulty = Clamp(a_Difficulty, 0, 3)
<API key>[a_World:GetName()] = Difficulty
-- Update world.ini
local WorldIni = cIniFile()
WorldIni:ReadFile(a_World:GetIniFileName())
WorldIni:SetValue("Difficulty", "WorldDifficulty", Difficulty)
WorldIni:WriteFile(a_World:GetIniFileName())
end
function LoadWorldSettings(a_World)
local WorldIni = cIniFile()
WorldIni:ReadFile(a_World:GetIniFileName())
WorldsSpawnProtect[a_World:GetName()] = WorldIni:GetValueSetI("SpawnProtect", "ProtectRadius", 10)
WorldsWorldLimit[a_World:GetName()] = WorldIni:GetValueSetI("WorldLimit", "LimitRadius", 0)
<API key>[a_World:GetName()] = WorldIni:GetValueSetI("Difficulty", "WorldDifficulty", 1)
WorldIni:WriteFile(a_World:GetIniFileName())
end
Returns the cWorld object represented by the given WorldName,
-- if no world of the given name is found, returns nil and informs the Player, if given, otherwise logs to console.
-- If no WorldName was given, returns the default world if called without a Player,
-- or the current world that the player is in if called with a Player.
-- @param WorldName String containing the name of the world to find
-- @param Player cPlayer object representing the player calling the command
-- @return cWorld object representing the requested world, or nil if not found
-- Called from: time.lua, weather.lua,
function GetWorld( WorldName, Player )
if not WorldName then
return Player and Player:GetWorld() or cRoot:Get():GetDefaultWorld()
else
local World = cRoot:Get():GetWorld(WorldName)
if not World then
local Message = "There is no world \"" .. WorldName .. "\""
if Player then
SendMessage( Player, Message )
else
LOG( Message )
end
end
return World
end
end
|
import ReactIdSwiper from './ReactIdSwiper';
// Types
export {
ReactIdSwiperProps,
<API key>,
SelectableElement,
SwiperInstance,
WrappedElementType,
<API key>,
SwiperModuleName,
SwiperRefNode
} from './types';
// React-id-swiper
export default ReactIdSwiper;
|
# -*- coding: utf-8 -*-
# @Last Modified time: 2016-12-11 12:55:27
from models.portfolio import Portfolio
from models.company import Company
from models.position import Position
import tenjin
from tenjin.helpers import *
import wikipedia
import matplotlib.pyplot as plt
from data_helpers import *
from stock_data import *
import BeautifulSoup as bs
import urllib2
import re
from datetime import date as dt
engine = tenjin.Engine(path=['templates'])
# info fetch handler
def send_info_handler(bot, update, args):
args = list(parse_args(args))
if len(args) == 0 or "portfolio" in [arg.lower() for arg in args] :
send_portfolio_info(bot, update)
else:
info_companies = get_companies(args)
send_companies_info(bot, update, info_companies)
# get portfolio function
def send_portfolio_info(bot, update):
print "Userid: %d requested portfolio information" %(update.message.chat_id)
context = {
'positions': Portfolio.instance.positions,
'wallet_value': Portfolio.instance.wallet_value,
}
html_str = engine.render('portfolio_info.pyhtml', context)
bot.sendMessage(parse_mode="HTML", chat_id=update.message.chat_id, text=html_str)
# get companies information
def send_companies_info(bot, update, companies):
print "Userid: requested information for following companies %s" %','.join([c.name for c in companies])
for company in companies:
context = {
'company': company,
'current_price': get_current_price(company),
'description': wikipedia.summary(company.name.split()[0], sentences=2)
}
wiki_page = wikipedia.page(company.name.split()[0])
html_page = urllib2.urlopen(wiki_page.url)
soup = bs.BeautifulSoup(html_page)
img_url = 'http:' + soup.find('td', { "class" : "logo" }).find('img')['src']
bot.sendPhoto(chat_id=update.message.chat_id, photo=img_url)
html_str = engine.render('company_template.pyhtml', context)
bot.sendMessage(parse_mode="HTML", chat_id=update.message.chat_id, text=html_str)
symbols = [c.symbol for c in companies]
if len(symbols) >= 2:
symbol_string = ", ".join(symbols[:-1]) + " and " + symbols[-1]
else:
symbol_string = symbols[0]
last_n_days = 10
if len(companies) < 4:
create_graph(companies, last_n_days)
history_text = '''
Here's the price history for {} for the last {} days
'''.format(symbol_string, last_n_days)
bot.sendMessage(chat_id=update.message.chat_id, text=history_text)
bot.sendPhoto(chat_id=update.message.chat_id, photo=open("plots/temp.png",'rb'))
def create_graph(companies, timedel):
fig, ax = plt.subplots()
for company in companies:
dates, lookback_prices = get_lookback_prices(company, timedel)
# dates = [i.strftime('%d/%m') for i in dates]
h = ax.plot(dates, lookback_prices, label=company.symbol)
ax.legend()
plt.xticks(rotation=45)
plt.savefig('plots/temp.png')
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.