answer
stringlengths
15
1.25M
package com.raworkstudio.androidsvganimation; import org.junit.Test; import static org.junit.Assert.*; public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
package com.l1fan.ane.ht; import java.util.ArrayList; import org.json.JSONException; import org.json.JSONObject; import org.mobile.newhtloginsdk.activity.TopUpActivity; import org.mobile.newhtloginsdk.bean.LoginResultBean; import org.mobile.newhtloginsdk.bean.ProductListBean; import org.mobile.newhtloginsdk.billing.<API key>.<API key>; import org.mobile.newhtloginsdk.billing.GooglePay; import org.mobile.newhtloginsdk.billing.GooglePay.InitQueryHandler; import org.mobile.newhtloginsdk.billing.IabResult; import org.mobile.newhtloginsdk.interfaces.HeTuCallback; import org.mobile.newhtloginsdk.utils.FacebookUtils; import org.mobile.newhtloginsdk.utils.FacebookUtils.<API key>; import org.mobile.newhtloginsdk.utils.HtLoginManager; import org.mobile.newhtloginsdk.utils.HtLoginSdk; import org.mobile.newhtloginsdk.utils.LoginUtils; import org.mobile.newhtloginsdk.utils.NetWorkUtils; import org.mobile.newhtloginsdk.utils.NetWorkUtils.ProductListHandler; import org.xutils.common.Callback.CancelledException; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import com.alibaba.fastjson.JSON; import com.facebook.FacebookException; import com.facebook.share.Sharer; import com.facebook.share.widget.GameRequestDialog; import com.facebook.share.widget.GameRequestDialog.Result; import com.l1fan.ane.SDKContext; public class SDK extends SDKContext implements <API key> { static String mAppId; static String mCooServer = ""; static String mCooUid = ""; static String mChannel; static SDKContext context; public void init() throws JSONException { context = this; JSONObject json = getJsonData(); Bundle md = getMetaData(); mAppId = json.optString(APPID, String.valueOf(md.getInt(APPID,0))); mChannel = json.optString("channel",md.getString("channel","")); HtLoginSdk.getInstance().sdkInitialize(getActivity(), mAppId, mChannel); HtLoginManager.getInstance().registerCallback(new HeTuCallback<LoginResultBean>() { @Override public void onSuccess(LoginResultBean info) { System.out.println("login result:"+info); if (info.getCode() == 0) { if (info.getData() == null) { dispatchData(EVENT_LOGOUT, info.getMsg()); }else{ JSONObject obj = new JSONObject(); try { obj.put(UID, info.getData().getUid()); obj.put(UNAME, info.getData().getName()); obj.put(TOKEN, info.getData().getToken()); } catch (JSONException e) { e.printStackTrace(); } dispatchData(EVENT_LOGIN, obj); } }else if (info.getCode() == 2 || info.getCode() == 3) { dispatchData(EVENT_LOGOUT, info.getMsg()); }else { dispatchError(EVENT_LOGIN, info.getCode()+":"+info.getMsg()); } } @Override public void onFinished() { System.out.println("login finish"); } @Override public void onError(Throwable arg0, boolean arg1) { arg0.printStackTrace(); dispatchError(EVENT_LOGIN, "login failed"); } @Override public void onCancelled(CancelledException arg0) { dispatchError(EVENT_LOGIN, "login cancel"); } }); FacebookUtils.getInstance().onCreate(); GooglePay.init(getActivity(),this, new InitQueryHandler() { @Override public void onIabSetupFinished(IabResult result) { System.out.println("--> GooglePay.init finished "); System.out.println(result.toString()); } }); dispatchData(EVENT_INIT); } public void productList(){ NetWorkUtils.productList(mAppId, getActivity().getPackageName(), mChannel, mCooServer, new ProductListHandler() { @Override public void onError(Throwable paramThrowable, boolean paramBoolean) { dispatchError("HT_PLIST", paramThrowable.getMessage()); } @Override public void onFinished() { } @Override public void onCancelled(CancelledException arg0) { dispatchData("HT_PLIST", "cancel"); } @Override public void onSuccess(ArrayList<ProductListBean> list) { dispatchData("HT_PLIST", JSON.toJSON(list)); } }); } public void userLogin(){ LoginUtils.startLoginSdk(getActivity()); } public void invite() throws JSONException{ JSONObject json = getJsonData(); String title = json.optString("title"); String msg = json.optString("message"); FacebookUtils.getInstance().facebookInvite(getActivity(), title, msg, new <API key><GameRequestDialog.Result>() { @Override public void onSuccess(Result paramT) { dispatchData("FB_INVITE"); } @Override public void onError(FacebookException <API key>) { dispatchError("FB_INVITE", <API key>.getMessage()); } @Override public void onCancel() { dispatchError("FB_INVITE", "invite cancel"); } }); } public void share() throws JSONException{ JSONObject json = getJsonData(); String captionStr = json.optString("title"); String desStr = json.optString("message"); String linkString = json.optString("linkurl"); String pictureString = json.optString("pictureurl"); FacebookUtils.getInstance().facebookShare(getActivity(), captionStr, desStr, linkString, pictureString, new <API key><Sharer.Result>() { @Override public void onSuccess(com.facebook.share.Sharer.Result paramResult) { dispatchData("FB_SHARE",paramResult.getPostId()); } @Override public void onError(FacebookException <API key>) { dispatchError("FB_SHARE", <API key>.getMessage()); } @Override public void onCancel() { dispatchError("FB_SHARE", "share cancel"); } }); } public void pay() throws JSONException{ Activity entryActivity = getActivity(); Intent intent = new Intent(entryActivity,GPActivity.class); intent.putExtra("payData", getData()); intent.putExtra("appId", mAppId); intent.putExtra("cooServer", mCooServer); entryActivity.startActivity(intent); } public void pay3rd(){ getActivity().startActivity(new Intent(getActivity(),TopUpActivity.class)); } public void track() throws JSONException{ JSONObject json = getJsonData(); String type = json.optString("type"); String version = json.optString("version"); String coo_server = json.optString("coo_server"); String coo_uid = json.optString("coo_uid"); mCooServer = coo_server; mCooUid = coo_uid; NetWorkUtils.bindStatistics(getActivity(), type, version, coo_server, coo_uid); } @Override public void dispose() { super.dispose(); GooglePay.onDestroy(getActivity()); } @Override public void receivedBroadcast() { } }
const Ipc = require('../main/ipc') let MenuUtil = {} MenuUtil.createFileMenu = function() { return [{ label: '', click() { Ipc.sendToAll('ui:create_folder') } }, { type: 'separator' }, { label: 'Scene', click() { Ipc.sendToAll('ui:create_scene') } } ] } MenuUtil.createNodeMenu = function() { return [{ label: '', click() { Ipc.sendToAll('ui:create_render_node', 'UIWidget') } }, { type: 'separator' }, { label: 'Sprite()', click() { Ipc.sendToAll('ui:create_render_node', 'UIImage') } }, { label: 'LabelTTF()', click() { Ipc.sendToAll('ui:create_render_node', 'UIText') } }, { label: 'Scale9()', click() { Ipc.sendToAll('ui:create_render_node', 'ExtScale9') } }, { label: 'EditBox()', click() { Ipc.sendToAll('ui:create_render_node', 'UIInput') } }, { label: 'Slider()', click() { Ipc.sendToAll('ui:create_render_node', 'UISlider') } }, { label: 'Button()', click() { Ipc.sendToAll('ui:create_render_node', 'UIButton') } }, { label: 'CheckBox()', click() { Ipc.sendToAll('ui:create_render_node', 'UICheckBox') } }, { label: 'ScrollView()', click() { Ipc.sendToAll('ui:create_render_node', 'UIScrollView') } }, { label: 'ListView()', click() { Ipc.sendToAll('ui:create_render_node', 'UIListView') } } ] } MenuUtil.createPosition = function() { return [{ label: '', click() { Ipc.sendToAll('ui:move_position_top') } }, { label: '', click() { Ipc.sendToAll('ui:move_position_up') } }, { label: '', click() { Ipc.sendToAll('ui:move_position_down') } }, { label: '', click() { Ipc.sendToAll('ui:<API key>') } } ] } MenuUtil.<API key> = function() { return [{ label: '', params: [], submenu: MenuUtil.createNodeMenu() }, { type: 'separator' }, { label: '', params: [], click() { Ipc.sendToAll('node:copy_item') } }, { label: '', params: [], click() { Ipc.sendToAll('node:paste_item') } }, { label: '', params: [], click() { Ipc.sendToAll('node:copy_paste_item') } }, { label: '', params: [], click() { Ipc.sendToAll('node:delete_item') } }, { type: 'separator' }, { label: '', params: [], submenu: MenuUtil.createPosition() } ] } MenuUtil.<API key> = function() { return [{ label: '', params: [], submenu: MenuUtil.createFileMenu() }, { type: 'separator' }, { label: '', params: [], click() { Ipc.sendToAll('ui:<API key>') } }, { label: '', params: [], click() { Ipc.sendToAll('ui:<API key>') } }, { label: '', params: [], click() { Ipc.sendToAll('ui:show-in-explorer') } } ] } module.exports = MenuUtil
# CharDump Quick utility for dumping useful information from a Neverwinter Nights 2 .bic file. ## Usage CharDump.exe <path to .bic file> ## Features The current data is supported: * Character basics: * Name * Skill ranks, formatted `<skill id>`:`ranks` * Feat list. * Level up history: * Class leveled up in. * Ability bonus chosen. * Skill rank allocation. * Feats gained. * Spells learned. ## Output The application creates an output that looks like: Name: Bob Abilities: 13 STR, 18 DEX, 10 CON, 14 INT, 12 WIS, 12 CHA Saves: 11 FORT, 17 REFL, 7 WILL Feats: 3 10 27 32 40 42 45 46 50 199 206 258 275 285 289 382 1103 1116 1387 1721 1730 1731 1732 1773 1774 1857 2137 2141 3500 3501 3569 3618 3668 3740 Level Ups: Level 1: Class: 8 Skills: 0:2 2:4 5:4 6:2 8:4 9:4 13:2 17:2 20:4 21:4 23:4 32:1 36:1 37:4 59:4 Feats: 3 46 50 258 382 1721 1773 1774 1857 3501 3569 Level 2: Class: 7 Skills: 5:1 8:1 21:1 29:2 33:1 42:2 64:1 Feats: 32 45 275 1116 Level 3: Class: 7 Skills: 6:1 7:1 20:1 38:1 40:1 41:1 46:1 50:1 55:1 59:1 Feats: 27 1730 1731 3618 Level 4: Class: 59 Ability: 1 Skills: 5:2 19:2 23:1 48:1 52:1 Feats: 42 3618 Level 5: Class: 7 Skills: 5:1 8:2 16:1 19:2 29:2 58:1 Feats: 40 3618 Level 6: Class: 8 Skills: 2:1 5:1 8:2 9:1 13:1 34:1 36:1 43:1 52:1 56:1 Feats: 206 3618 Level 7: Class: 7 Skills: 5:1 8:1 21:5 23:1 47:1 Feats: 199 3618 3668 Level 8: Class: 59 Ability: 4 Skills: 17:3 42:3 44:1 Feats: 2137 3618 Level 9: Class: 59 Skills: 9:5 23:1 50:1 Feats: 10 2141 3618 Level 10: Class: 8 Skills: 11:4 29:5 46:4 48:1 52:1 Feats: 1387 3618 Level 11: Class: 7 Skills: 5:1 8:4 9:2 11:251 52:2 Feats: 285 3618 3740 Level 12: Class: 7 Ability: 4 Skills: 5:3 8:1 23:3 52:2 Feats: 289 1103 1732 3500 3618
import { Component, Input } from '@angular/core'; import { AppActions } from '../../app/app.actions'; import { AppDispatcher } from '../../app/app.dispatcher'; import { Product } from '../../interfaces/product'; /** * * * @export * @class <API key> */ @Component({ selector: '<API key>', templateUrl: '<API key>.component.html' }) export class <API key> { @Input() public key: number; @Input() public product: null | Product; /** * Creates an instance of <API key>. * * @param {AppActions} actions * @param {AppDispatcher} dispatcher * * @memberOf <API key> */ constructor(private actions: AppActions, private dispatcher: AppDispatcher) {} /** * Add to cartObserver * * * @memberOf <API key> */ public onAddToCartClicked() { this.dispatcher.emit(this.actions.addToCart(this.product)); } }
<!DOCTYPE html> <html > <head> <meta charset="UTF-8"> <title>Sign-Up/Login Form</title> <link href='http://fonts.googleapis.com/css?family=Titillium+Web:400,300,600' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/normalize.css"> <link rel="stylesheet" href="css/style.css"> </head> <body> <?php if(!empty($error_message)) { ?> <div class="alert alert-danger"> <strong>Problem!</strong> Username is already Taken. </div> <?php } ?> <div class="form"> <ul class="tab-group"> <li class="tab active"><a href="#signup">Sign Up</a></li> <li class="tab"><a href="#login">Log In</a></li> </ul> <?php if(!empty($error_message)) { ?> <div class="alert alert-danger"> <strong>Problem!</strong> Username is already Taken. </div> <?php } ?> <div class="tab-content"> <div id="signup"> <h1>Sign Up for Free</h1> <form action="registration.php" method="post"> <div class="top-row"> <div class="field-wrap"> <label> First Name<span class="req">*</span> </label> <input type="text" name="user_firstname" required autocomplete="off" /> </div> <div class="field-wrap"> <label> Last Name<span class="req">*</span> </label> <input type="text" name="user_lastname" required autocomplete="off"/> </div> </div> <div class="field-wrap"> <label> Email Address<span class="req">*</span> </label> <input type="email" name="user_email" required autocomplete="off"/> </div> <div class="field-wrap"> <label> Set A Password<span class="req">*</span> </label> <input type="password" name="user_password" required autocomplete="off"/> </div> <button type="submit" name="registration" class="button button-block"/>Get Started</button> </form> </div> <div id="login"> <h1>Welcome Back!</h1> <form action="login.php" method="post"> <div class="field-wrap"> <label> Email Address<span class="req">*</span> </label> <input type="email" name="login_email" required autocomplete="off"/> </div> <div class="field-wrap"> <label> Set A Password<span class="req">*</span> </label> <input type="password" name="login_password" required autocomplete="off"/> </div> <p class="forgot"><a href="#">Forgot Password?</a></p> <button type="submit" name="btnLogin" class="button button-block"/>Get Started</button> </form> </div> </div><!-- tab-content --> </div> <!-- /form --> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script> </body> </html>
"""Container for all targeting related logic used by the Ads API SDK.""" from twitter_ads.http import Request from twitter_ads.resource import resource_property, Resource, Persistence from twitter_ads import API_VERSION from twitter_ads.utils import FlattenParams import json class AudienceEstimate(Resource, Persistence): PROPERTIES = {} RESOURCE = '/' + API_VERSION + '/accounts/{account_id}/audience_estimate' @classmethod @FlattenParams def load(klass, account, params): resource = klass.RESOURCE.format(account_id=account.id) headers = {'Content-Type': 'application/json'} response = Request(account.client, 'post', resource, headers=headers, body=json.dumps(params)).perform() return klass(account).from_response(response.body['data']) resource_property(AudienceEstimate, 'audience_size')
<?php declare(strict_types = 1); namespace <API key>\Sniffs\TypeHints; use PHP_CodeSniffer\Files\File; use PHP_CodeSniffer\Sniffs\Sniff; use PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode; use <API key>\Helpers\Annotation\GenericAnnotation; use <API key>\Helpers\AnnotationHelper; use <API key>\Helpers\<API key>; use function sprintf; use function strtolower; use const <API key>; class LongTypeHintsSniff implements Sniff { public const <API key> = 'UsedLongTypeHint'; /** * @return array<int, (int|string)> */ public function register(): array { return [ <API key>, ]; } /** * @phpcsSuppress <API key>.TypeHints.ParameterTypeHint.<API key> * @param File $phpcsFile * @param int $<API key> */ public function process(File $phpcsFile, $<API key>): void { $annotations = AnnotationHelper::getAnnotations($phpcsFile, $<API key>); foreach ($annotations as $annotationName => $annotationByName) { foreach ($annotationByName as $annotation) { if ($annotation instanceof GenericAnnotation) { continue; } if ($annotation->isInvalid()) { continue; } foreach (AnnotationHelper::getAnnotationTypes($annotation) as $annotationType) { foreach (<API key>::<API key>($annotationType) as $typeHintNode) { $typeHint = <API key>::getTypeHintFromNode($typeHintNode); $lowercasedTypeHint = strtolower($typeHint); $shortTypeHint = null; if ($lowercasedTypeHint === 'integer') { $shortTypeHint = 'int'; } elseif ($lowercasedTypeHint === 'boolean') { $shortTypeHint = 'bool'; } if ($shortTypeHint === null) { continue; } $fix = $phpcsFile->addFixableError(sprintf( 'Expected "%s" but found "%s" in %s annotation.', $shortTypeHint, $typeHint, $annotationName ), $annotation->getStartPointer(), self::<API key>); if (!$fix) { continue; } $<API key> = AnnotationHelper::fixAnnotationType( $phpcsFile, $annotation, $typeHintNode, new IdentifierTypeNode($shortTypeHint) ); $phpcsFile->fixer->beginChangeset(); $phpcsFile->fixer->replaceToken($annotation->getStartPointer(), $<API key>); for ($i = $annotation->getStartPointer() + 1; $i <= $annotation->getEndPointer(); $i++) { $phpcsFile->fixer->replaceToken($i, ''); } $phpcsFile->fixer->endChangeset(); } } } } } }
#!/usr/bin/env node 'use strict'; var stdin = require('get-stdin'); var getCurrency = require('./get-currency'); var pkg = require('./package.json'); var argv = process.argv.slice(2); var input = argv[0]; function help() { console.log([ '', ' ' + pkg.description, '', ' Usage', ' get-currency <abbreviation>', ' echo <abbreviation> | get-currency', '', ' Example', ' get-currency USD', ' $' ].join('\n')); } function init(data) { console.log(getCurrency(String(data))); } if (argv.indexOf('--help') !== -1) { help(); return; } if (argv.indexOf('--version') !== -1) { console.log(pkg.version); return; } if (process.stdin.isTTY) { if (!input) { help(); return; } init(input); } else { stdin(init); }
using System.Collections.Generic; using System.Windows; using SharpGL.SceneGraph.Core; using VirtualScene.<API key>.WPF.Commands; using VirtualScene.<API key>.WPF.Commands.GeometryCommands; using VirtualScene.<API key>.WPF.Properties; using VirtualScene.<API key>.WPF.Views; using VirtualScene.<API key>.WPF.Presenters; namespace VirtualScene.<API key>.WPF.Presenters { <summary> Represents the geometry-primitive on UI </summary> public class <API key> : EntityPresenterBase<SceneElement> { <summary> Build the content view. </summary> <returns>The view displaying content of an entity.</returns> protected override FrameworkElement CreateContentView() { return new <API key>(); } <summary> Control elements to operate with the geometry-primitive </summary> public override IEnumerable<UIElement> TopElements { get { yield return CreateButton(Resources.Title_Add_Cube, new AddCubeCommand(SceneContent)); yield return CreateButton(Resources.Title_Add_Sphere, new AddSphereCommand(SceneContent)); yield return CreateButton(Resources.<API key>, new <API key>(SceneContent)); yield return CreateButton(Resources.Title_Spur_Gear, new AddSpurGearCommand(SceneContent)); yield return CreateButton(Resources.Title_Cylinder, new AddCylinderCommand(SceneContent)); yield return CreateButton(Resources.<API key>, new <API key>(SceneContent)); } } } }
var path = require('path'); var gulp = require('gulp'); var run = require('gulp-run'); var del = require('del'); var changed = require('gulp-changed'); var webpack = require('webpack-stream'); var config = require('./webpack.config.js'); var purescript = require('gulp-purescript'); var projectRoot = __dirname + '/'; var srcRoot = 'src/'; var destRoot = 'dest/'; var releaseRoot = 'demo/scripts/release'; var sources = [ "src*.purs", "test*.purs", "bower_components/purescript-*/src*.purs", ]; var foreigns = [ "src*.js", "bower_components/purescript-*/src*.js" ]; var demoSources = [ "demo/scripts*.purs", "src*.purs", "bower_components/purescript-*/src*.purs", ]; var demoForeigns = [ "src*.js", "demo/scripts/ui*.js", "bower_components/purescript-*/src*.js" ]; gulp.task('webpack', function() { return gulp.src('output/DemoApp.WithRedux/index.js') .pipe(webpack(config)) .pipe(gulp.dest('./demo/scripts/release/')); }); gulp.task("make", function () { return purescript.compile({ src: sources, ffi: foreigns }); }); gulp.task("make-demo", function () { return purescript.compile({ src: demoSources, ffi: demoForeigns }); }); gulp.task("bundle", ["make"], function () { return purescript.bundle({ src: "output*.js", output: "dist/bundle.js" }); }); gulp.task("bundle-demo", ["make-demo"], function () { return purescript.bundle({ src: "output/DemoApp.WithRedux*.js", output: "dist/demo/bundle.js" }); }); gulp.task("docs", function () { return purescript.docs({ src: sources, docgen: { "Name.Of.Module1": "docs/Name/Of/Module1.md", "Name.Of.Module2": "docs/Name/Of/Module2.md" } }); }); gulp.task("dotpsci-demo", function () { return purescript.psci({ src: demoSources, ffi: demoForeigns }) .pipe(gulp.dest(".")); }); gulp.task("dotpsci", function () { return purescript.psci({ src: sources, ffi: foreigns }) .pipe(gulp.dest(".")); }); gulp.task('clean', function (cb) { del([releaseRoot + '**/*'], function (err, deletedFiles) { if(err){ console.log('Error during deletion: ' + err); } }); cb(); }); gulp.task("test", ["make"], function() { return purescript.bundle({ src: "output*.js", main: "Test.Main" }) .pipe(run("node")); }); gulp.task("build-demo", ["bundle-demo", "dotpsci-demo","webpack"]); gulp.task("default", ["bundle", "dotpsci"]);
// Generated by the J2ObjC translator. DO NOT EDIT! // source: ./suggest/src/java/org/apache/lucene/search/suggest/document/NRTSuggesterBuilder.java #include "J2ObjC_header.h" #pragma push_macro("<API key>") #ifdef <API key> #define <API key> 0 #else #define <API key> 1 #endif #undef <API key> #if __has_feature(nullability) #pragma clang diagnostic push #pragma GCC diagnostic ignored "-Wnullability" #pragma GCC diagnostic ignored "-<API key>" #endif #if !defined (<API key>) && (<API key> || defined(<API key>)) #define <API key> @class <API key>; @class <API key>; /*! @brief Builder for <code>NRTSuggester</code> */ @interface <API key> : NSObject @property (readonly, class) jint PAYLOAD_SEP NS_SWIFT_NAME(PAYLOAD_SEP); @property (readonly, class) jint END_BYTE NS_SWIFT_NAME(END_BYTE); #pragma mark Public /*! @brief Create a builder for <code>NRTSuggester</code> */ - (instancetype __nonnull)initPackagePrivate; /*! @brief Adds an entry for the latest input term, should be called after <code>startTerm(org.apache.lucene.util.BytesRef)</code> on the desired input */ - (void)addEntryWithInt:(jint)docID <API key>:(<API key> *)surfaceForm withLong:(jlong)weight; /*! @brief Writes all the entries for the FST input term */ - (void)finishTerm; /*! @brief Initializes an FST input term to add entries against */ - (void)<API key>:(<API key> *)analyzed; /*! @brief Builds and stores a FST that can be loaded with <code>NRTSuggester.load(org.apache.lucene.store.IndexInput)</code> */ - (jboolean)<API key>:(<API key> *)output; // Disallowed inherited constructors, do not use. - (instancetype __nonnull)init NS_UNAVAILABLE; @end <API key>(<API key>) /*! @brief Label used to separate surface form and docID in the output */ inline jint <API key>(void); #define <API key> 31 <API key>(<API key>, PAYLOAD_SEP, jint) /*! @brief Marks end of the analyzed input and start of dedup byte. */ inline jint <API key>(void); #define <API key> 0 <API key>(<API key>, END_BYTE, jint) FOUNDATION_EXPORT void <API key>(<API key> *self); FOUNDATION_EXPORT <API key> *<API key>(void) NS_RETURNS_RETAINED; FOUNDATION_EXPORT <API key> *create_OrgApacheLuceneSearchSuggestDocumentNRTSuggesterBuilder_initPackagePrivate(void); <API key>(<API key>) #endif #if __has_feature(nullability) #pragma clang diagnostic pop #endif #pragma pop_macro("<API key>")
// FAArrayDescription.h // FAObjectMap #import <Foundation/Foundation.h> #import "FADescription.h" @interface FAArrayDescription : FADescription @property (nonatomic, strong, readonly) id<FADescription> descriptor; + (instancetype)<API key>:(id<FADescription>)descriptor; @end
<!DOCTYPE html> <html xmlns="http: {% include head.html %} <body class="theme-base-08 layout-reverse"> {% include sidebar.html %} <div class="content container"> {{ content }} </div> </body> </html>
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace _06.SentenceExtractor { class SentenceExtractor { static void Main() { var key = Console.ReadLine(); var text = Console.ReadLine(); var matches = Regex.Matches(text, $@"[^.!?]+?\b{key}\b[^.!?]+?[!?.]", RegexOptions.IgnoreCase); foreach (Match match in matches) { Console.WriteLine(match.Value); } } } }
import "./chunks/localization"; export { Survey as Model }; import "../../main.scss"; import "../../modern.scss"; export let Version: string; export var __assign: any; export function __extends(thisClass: any, baseClass: any): void; export var __decorate: (decorators: any, target: any, key: any, desc: any) => any; export var __spreadArrays: () => any[]; export declare var surveyCss: any; export declare var defaultStandardCss: { root: string; container: string; header: string; body: string; bodyEmpty: string; footer: string; title: string; description: string; logo: string; logoImage: string; headerText: string; navigationButton: string; completedPage: string; navigation: { complete: string; prev: string; next: string; start: string; preview: string; edit: string; }; progress: string; progressBar: string; progressTextInBar: string; page: { root: string; title: string; description: string; }; pageTitle: string; pageDescription: string; row: string; question: { mainRoot: string; flowRoot: string; header: string; headerLeft: string; content: string; contentLeft: string; titleLeftRoot: string; requiredText: string; title: string; number: string; description: string; comment: string; required: string; titleRequired: string; hasError: string; indent: number; footer: string; formGroup: string; }; panel: { title: string; titleExpandable: string; icon: string; iconExpanded: string; description: string; container: string; footer: string; }; error: { root: string; icon: string; item: string; locationTop: string; locationBottom: string; }; boolean: { root: string; item: string; control: string; itemChecked: string; itemIndeterminate: string; itemDisabled: string; switch: string; slider: string; label: string; disabledLabel: string; }; checkbox: { root: string; item: string; itemChecked: string; itemInline: string; label: string; labelChecked: string; itemControl: string; itemDecorator: string; controlLabel: string; materialDecorator: string; other: string; column: string; }; comment: string; dropdown: { root: string; control: string; selectWrapper: string; other: string; }; html: { root: string; }; image: { root: string; image: string; }; matrix: { root: string; label: string; itemChecked: string; itemDecorator: string; cellText: string; cellTextSelected: string; cellLabel: string; }; matrixdropdown: { root: string; }; matrixdynamic: { root: string; button: string; buttonAdd: string; buttonRemove: string; iconAdd: string; iconRemove: string; }; paneldynamic: { root: string; title: string; button: string; buttonAdd: string; buttonRemove: string; buttonPrev: string; buttonNext: string; progressContainer: string; progress: string; progressBar: string; progressText: string; }; multipletext: { root: string; itemTitle: string; row: string; itemValue: string; }; radiogroup: { root: string; item: string; itemChecked: string; itemInline: string; itemDecorator: string; label: string; labelChecked: string; itemControl: string; controlLabel: string; materialDecorator: string; other: string; clearButton: string; column: string; }; imagepicker: { root: string; item: string; itemChecked: string; label: string; itemControl: string; image: string; itemInline: string; itemText: string; clearButton: string; }; rating: { root: string; item: string; selected: string; minText: string; itemText: string; maxText: string; disabled: string; }; text: string; expression: string; file: { root: string; placeholderInput: string; preview: string; removeButton: string; fileInput: string; removeFile: string; removeFileSvg: string; fileDecorator: string; fileSignBottom: string; removeButtonBottom: string; chooseFile: string; noFileChosen: string; }; signaturepad: { root: string; controls: string; clearButton: string; }; saveData: { root: string; saving: string; error: string; success: string; saveAgainButton: string; }; window: { root: string; body: string; header: { root: string; title: string; button: string; buttonExpanded: string; buttonCollapsed: string; }; }; }; export declare var defaultBootstrapCss: { root: string; container: string; header: string; body: string; bodyEmpty: string; footer: string; title: string; description: string; logo: string; logoImage: string; headerText: string; navigationButton: string; completedPage: string; navigation: { complete: string; prev: string; next: string; start: string; preview: string; edit: string; }; progress: string; progressBar: string; <API key>: string; page: { root: string; title: string; description: string; }; pageTitle: string; pageDescription: string; row: string; question: { mainRoot: string; flowRoot: string; header: string; headerLeft: string; content: string; contentLeft: string; titleLeftRoot: string; title: string; number: string; description: string; <API key>: string; requiredText: string; comment: string; required: string; titleRequired: string; hasError: string; indent: number; formGroup: string; }; panel: { title: string; titleExpandable: string; icon: string; iconExpanded: string; description: string; container: string; footer: string; }; error: { root: string; icon: string; item: string; locationTop: string; locationBottom: string; }; boolean: { root: string; item: string; control: string; itemChecked: string; itemIndeterminate: string; itemDisabled: string; switch: string; slider: string; label: string; disabledLabel: string; }; checkbox: { root: string; item: string; itemChecked: string; itemInline: string; itemControl: string; itemDecorator: string; label: string; labelChecked: string; controlLabel: string; materialDecorator: string; other: string; column: string; }; comment: string; dropdown: { root: string; control: string; other: string; }; html: { root: string; }; image: { root: string; image: string; }; matrix: { root: string; label: string; itemChecked: string; itemDecorator: string; cellText: string; cellTextSelected: string; cellLabel: string; }; matrixdropdown: { root: string; }; matrixdynamic: { root: string; button: string; buttonAdd: string; buttonRemove: string; iconAdd: string; iconRemove: string; }; paneldynamic: { root: string; navigation: string; progressTop: string; progressBottom: string; title: string; button: string; buttonAdd: string; buttonRemove: string; buttonPrev: string; buttonNext: string; progressContainer: string; progress: string; progressBar: string; progressText: string; }; multipletext: { root: string; itemTitle: string; itemValue: string; }; radiogroup: { root: string; item: string; itemChecked: string; itemInline: string; label: string; labelChecked: string; itemControl: string; itemDecorator: string; controlLabel: string; materialDecorator: string; other: string; clearButton: string; column: string; }; imagepicker: { root: string; item: string; itemChecked: string; itemInline: string; label: string; itemControl: string; image: string; itemText: string; clearButton: string; }; rating: { root: string; item: string; selected: string; minText: string; itemText: string; maxText: string; disabled: string; }; text: string; expression: string; file: { root: string; placeholderInput: string; preview: string; removeButton: string; fileInput: string; removeFile: string; removeFileSvg: string; fileDecorator: string; fileSignBottom: string; removeButtonBottom: string; }; signaturepad: { root: string; controls: string; clearButton: string; }; saveData: { root: string; saving: string; error: string; success: string; saveAgainButton: string; }; window: { root: string; body: string; header: { root: string; title: string; button: string; buttonExpanded: string; buttonCollapsed: string; }; }; }; export declare var <API key>: { root: string; container: string; header: string; body: string; bodyEmpty: string; footer: string; title: string; description: string; logo: string; logoImage: string; headerText: string; navigationButton: string; completedPage: string; navigation: { complete: string; prev: string; next: string; start: string; preview: string; edit: string; }; progress: string; progressBar: string; <API key>: string; page: { root: string; title: string; description: string; }; pageTitle: string; pageDescription: string; row: string; question: { mainRoot: string; flowRoot: string; header: string; headerLeft: string; content: string; contentLeft: string; titleLeftRoot: string; requiredText: string; title: string; number: string; description: string; <API key>: string; comment: string; required: string; titleRequired: string; hasError: string; indent: number; formGroup: string; }; panel: { title: string; titleExpandable: string; icon: string; iconExpanded: string; description: string; container: string; footer: string; }; error: { root: string; icon: string; item: string; locationTop: string; locationBottom: string; }; boolean: { root: string; item: string; control: string; itemChecked: string; itemIndeterminate: string; itemDisabled: string; switch: string; slider: string; label: string; disabledLabel: string; }; checkbox: { root: string; item: string; itemChecked: string; itemInline: string; itemDecorator: string; itemControl: string; label: string; labelChecked: string; controlLabel: string; materialDecorator: string; other: string; column: string; }; comment: string; dropdown: { root: string; control: string; other: string; }; html: { root: string; }; image: { root: string; image: string; }; matrix: { root: string; row: string; label: string; cellText: string; cellTextSelected: string; cellLabel: string; itemValue: string; itemChecked: string; itemDecorator: string; }; matrixdropdown: { root: string; itemValue: string; }; matrixdynamic: { root: string; button: string; itemValue: string; buttonAdd: string; buttonRemove: string; iconAdd: string; iconRemove: string; }; paneldynamic: { root: string; navigation: string; progressTop: string; progressBottom: string; title: string; button: string; buttonAdd: string; buttonRemove: string; buttonPrev: string; buttonNext: string; progressContainer: string; progress: string; progressBar: string; progressText: string; }; multipletext: { root: string; itemTitle: string; row: string; itemValue: string; }; radiogroup: { root: string; item: string; itemChecked: string; itemInline: string; itemDecorator: string; label: string; labelChecked: string; itemControl: string; controlLabel: string; materialDecorator: string; other: string; clearButton: string; column: string; }; imagepicker: { root: string; item: string; itemChecked: string; itemInline: string; label: string; itemControl: string; image: string; itemText: string; clearButton: string; }; rating: { root: string; item: string; selected: string; minText: string; itemText: string; maxText: string; disabled: string; }; text: string; expression: string; file: { root: string; placeholderInput: string; preview: string; removeButton: string; fileInput: string; removeFile: string; removeFileSvg: string; fileDecorator: string; fileSignBottom: string; removeButtonBottom: string; }; signaturepad: { root: string; controls: string; clearButton: string; }; saveData: { root: string; saving: string; error: string; success: string; saveAgainButton: string; }; window: { root: string; body: string; header: { root: string; title: string; button: string; buttonExpanded: string; buttonCollapsed: string; }; }; }; export declare var modernCss: { root: string; container: string; header: string; body: string; bodyEmpty: string; footer: string; title: string; description: string; logo: string; logoImage: string; headerText: string; navigationButton: string; completedPage: string; navigation: { complete: string; prev: string; next: string; start: string; preview: string; edit: string; }; panel: { title: string; titleExpandable: string; description: string; container: string; content: string; icon: string; iconExpanded: string; footer: string; }; paneldynamic: { root: string; navigation: string; title: string; button: string; buttonRemove: string; buttonAdd: string; progressTop: string; progressBottom: string; buttonPrev: string; buttonNext: string; progressContainer: string; progress: string; progressBar: string; progressText: string; separator: string; }; progress: string; progressBar: string; progressText: string; progressTextInBar: string; page: { root: string; title: string; description: string; }; pageTitle: string; pageDescription: string; row: string; question: { mainRoot: string; flowRoot: string; asCell: string; header: string; headerLeft: string; headerTop: string; headerBottom: string; content: string; contentLeft: string; titleLeftRoot: string; titleOnAnswer: string; titleOnError: string; title: string; requiredText: string; number: string; description: string; <API key>: string; comment: string; required: string; titleRequired: string; indent: number; footer: string; formGroup: string; hasError: string; disabled: string; }; image: { root: string; image: string; }; error: { root: string; icon: string; item: string; locationTop: string; locationBottom: string; }; checkbox: { root: string; item: string; itemDisabled: string; itemChecked: string; itemHover: string; itemInline: string; label: string; labelChecked: string; itemControl: string; itemDecorator: string; controlLabel: string; materialDecorator: string; other: string; column: string; }; radiogroup: { root: string; item: string; itemInline: string; label: string; labelChecked: string; itemDisabled: string; itemChecked: string; itemHover: string; itemControl: string; itemDecorator: string; controlLabel: string; materialDecorator: string; other: string; clearButton: string; column: string; }; boolean: { root: string; small: string; item: string; control: string; itemChecked: string; itemIndeterminate: string; itemDisabled: string; switch: string; slider: string; label: string; disabledLabel: string; }; text: { root: string; small: string; onError: string; }; multipletext: { root: string; item: string; itemTitle: string; row: string; cell: string; }; dropdown: { root: string; small: string; control: string; selectWrapper: string; other: string; onError: string; }; imagepicker: { root: string; item: string; itemInline: string; itemChecked: string; itemDisabled: string; itemHover: string; label: string; itemControl: string; image: string; itemText: string; clearButton: string; other: string; }; matrix: { tableWrapper: string; root: string; cell: string; headerCell: string; label: string; itemValue: string; itemChecked: string; itemDisabled: string; itemHover: string; materialDecorator: string; itemDecorator: string; cellText: string; cellTextSelected: string; cellTextDisabled: string; }; matrixdropdown: { root: string; cell: string; headerCell: string; }; matrixdynamic: { root: string; cell: string; headerCell: string; button: string; buttonAdd: string; buttonRemove: string; iconAdd: string; iconRemove: string; }; rating: { root: string; item: string; selected: string; minText: string; itemText: string; maxText: string; disabled: string; }; comment: { root: string; small: string; }; expression: string; file: { root: string; other: string; placeholderInput: string; preview: string; fileSign: string; fileSignBottom: string; fileDecorator: string; fileInput: string; noFileChosen: string; chooseFile: string; disabled: string; removeButton: string; removeButtonBottom: string; removeFile: string; removeFileSvg: string; wrapper: string; }; signaturepad: { root: string; small: string; controls: string; clearButton: string; }; saveData: { root: string; saving: string; error: string; success: string; saveAgainButton: string; }; window: { root: string; body: string; header: { root: string; title: string; button: string; buttonExpanded: string; buttonCollapsed: string; }; }; }; import "./chunks/localization"; /** * Global survey settings */ export declare var settings: { /** * The prefix that uses to store the question comment, as {questionName} + {commentPrefix}. * The default */ commentPrefix: string; /** * Encode parameter on calling restfull web API */ <API key>: boolean; /** * SurveyJS web service API url */ surveyServiceUrl: string; /** * separator that can allow to set value and text of ItemValue object in one string as: "value|text" */ itemValueSeparator: string; /** * default locale name for localizable strings that uses during serialization, {"default": "My text", "de": "Mein Text"} */ defaultLocaleName: string; /** * Default row name for matrix (single choice) */ <API key>: string; /** * Default cell type for dropdown and dynamic matrices */ <API key>: string; /** * Total value postfix for dropdown and dynamic matrices. The total value stores as: {matrixName} + {postfix} */ <API key>: string; /** * Maximum row count in dynamic matrix */ <API key>: number; /** * Maximum panel count in dynamic panel */ <API key>: number; /** * Maximum rate value count in rating question */ <API key>: number; /** * Disable the question while choices are getting from the web service */ <API key>: boolean; /** * Set to true to always serialize the localization string as object even if there is only one value for default locale. Instead of string "MyStr" serialize as {default: "MyStr"} */ <API key>: boolean; /** * Set to false to hide empty page title in design mode */ <API key>: boolean; /** * Set this property to true to execute the complete trigger on value change instead of on next page. */ <API key>: boolean; /** * Set this property to change <API key>: "textarea" (default) or (div) */ <API key>: string; }; export interface HashTable<T> { [key: string]: T; } export declare class Helpers { /** * A static methods that returns true if a value underfined, null, empty string or empty array. * @param value */ static isValueEmpty(value: any): boolean; static <API key>(x: any, y: any): boolean; static isArraysEqual(x: any, y: any, ignoreOrder?: boolean): boolean; static isTwoValueEquals(x: any, y: any, ignoreOrder?: boolean): boolean; static randomizeArray<T>(array: Array<T>): Array<T>; static getUnbindValue(value: any): any; static createCopy(obj: any): any; static <API key>(value: any): boolean; static isNumber(value: any): boolean; static getMaxLength(maxLength: number, surveyLength: number): any; static getNumberByIndex(index: number, startIndexStr: string): string; static <API key>(ch: string): boolean; static isCharDigit(ch: string): boolean; } export declare class ValidatorResult { value: any; error: SurveyError; constructor(value: any, error?: SurveyError); } /** * Base SurveyJS validator class. */ export declare class SurveyValidator extends Base { errorOwner: ISurveyErrorOwner; onAsyncCompleted: (result: ValidatorResult) => void; constructor(); text: string; readonly isValidateAllValues: boolean; readonly locText: LocalizableString; protected getErrorText(name: string): string; protected getDefaultErrorText(name: string): string; validate(value: any, name?: string, values?: any, properties?: any): ValidatorResult; readonly isRunning: boolean; readonly isAsync: boolean; getLocale(): string; getMarkdownHtml(text: string): string; getProcessedText(text: string): string; protected createCustomError(name: string): SurveyError; toString(): string; } export interface IValidatorOwner { getValidators(): Array<SurveyValidator>; validatedValue: any; getValidatorTitle(): string; <API key>(): any; <API key>(): any; } export declare class ValidatorRunner { onAsyncCompleted: (errors: Array<SurveyError>) => void; run(owner: IValidatorOwner): Array<SurveyError>; } /** * Validate numeric values. */ export declare class NumericValidator extends SurveyValidator { constructor(minValue?: number, maxValue?: number); getType(): string; validate(value: any, name?: string, values?: any, properties?: any): ValidatorResult; protected getDefaultErrorText(name: string): any; /** * The minValue property. */ minValue: number; /** * The maxValue property. */ maxValue: number; } /** * Validate text values. */ export declare class TextValidator extends SurveyValidator { constructor(minLength?: number, maxLength?: number, allowDigits?: boolean); getType(): string; validate(value: any, name?: string, values?: any, properties?: any): ValidatorResult; protected getDefaultErrorText(name: string): any; /** * The minLength property. */ minLength: number; /** * The maxLength property. */ maxLength: number; /** * The allowDigits property. */ allowDigits: boolean; } export declare class <API key> extends SurveyValidator { constructor(minCount?: number, maxCount?: number); getType(): string; validate(value: any, name?: string, values?: any, properties?: any): ValidatorResult; protected getDefaultErrorText(name: string): string; /** * The minCount property. */ minCount: number; /** * The maxCount property. */ maxCount: number; } /** * Use it to validate the text by regular expressions. */ export declare class RegexValidator extends SurveyValidator { constructor(regex?: string); getType(): string; validate(value: any, name?: string, values?: any, properties?: any): ValidatorResult; /** * The regex property. */ regex: string; } /** * Validate e-mail address in the text input */ export declare class EmailValidator extends SurveyValidator { constructor(); getType(): string; validate(value: any, name?: string, values?: any, properties?: any): ValidatorResult; protected getDefaultErrorText(name: string): any; } /** * Show error if expression returns false */ export declare class ExpressionValidator extends SurveyValidator { constructor(expression?: string); getType(): string; readonly isValidateAllValues: boolean; readonly isAsync: boolean; readonly isRunning: boolean; validate(value: any, name?: string, values?: any, properties?: any): ValidatorResult; protected generateError(res: boolean, value: any): ValidatorResult; protected getDefaultErrorText(name: string): any; protected <API key>(): boolean; /** * The expression property. */ expression: string; } /** * Array of ItemValue is used in checkox, dropdown and radiogroup choices, matrix columns and rows. * It has two main properties: value and text. If text is empty, value is used for displaying. * The text property is localizable and support markdown. */ export declare class ItemValue extends Base { [index: string]: any; static Separator: string; static createArray(locOwner: ILocalizableOwner): Array<ItemValue>; static setupArray(items: Array<ItemValue>, locOwner: ILocalizableOwner): void; static setData(items: Array<ItemValue>, values: Array<any>): void; static getData(items: Array<ItemValue>): any; static getItemByValue(items: Array<ItemValue>, val: any): ItemValue; static <API key>(items: Array<ItemValue>, val: any): string; static locStrsChanged(items: Array<ItemValue>): void; static <API key>(items: Array<ItemValue>, filteredItems: Array<ItemValue>, runner: ConditionRunner, values: any, properties: any, useItemExpression?: boolean): boolean; static <API key>(items: Array<ItemValue>, runner: ConditionRunner, values: any, properties: any): boolean; ownerPropertyName: string; constructor(value: any, text?: string, typeName?: string); onCreating(): any; getType(): string; getLocale(): string; readonly locText: LocalizableString; setLocText(locText: LocalizableString): void; locOwner: ILocalizableOwner; value: any; readonly hasText: boolean; text: string; readonly calculatedText: string; getData(): any; toJSON(): any; setData(value: any): void; visibleIf: string; readonly isVisible: boolean; setIsVisible(val: boolean): void; readonly isEnabled: any; setIsEnabled(val: boolean): void; addUsedLocales(locales: Array<string>): void; protected <API key>(name: string, oldValue: any, newValue: any): void; protected getConditionRunner(isVisible: boolean): ConditionRunner; originalItem: any; } export interface ISurveyData { getValue(name: string): any; setValue(name: string, newValue: any, locNotification: any, <API key>?: boolean): any; getVariable(name: string): any; setVariable(name: string, newValue: any): void; getComment(name: string): string; setComment(name: string, newValue: string, locNotification: any): any; getAllValues(): any; getFilteredValues(): any; <API key>(): any; } export interface ITextProcessor { processText(text: string, returnDisplayValue: boolean): string; processTextEx(text: string, returnDisplayValue: boolean, doEncoding: boolean): any; } export interface ISurveyErrorOwner extends ILocalizableOwner { getErrorCustomText(text: string, error: SurveyError): string; } export interface ISurvey extends ITextProcessor, ISurveyErrorOwner { currentPage: IPage; pages: Array<IPage>; getCss(): any; isPageStarted(page: IPage): boolean; <API key>(page: IPage, newValue: boolean): any; <API key>(panel: IPanel, newValue: boolean): any; <API key>(question: IQuestion, newValue: boolean): any; questionsOrder: string; questionCreated(question: IQuestion): any; questionAdded(question: IQuestion, index: number, parentPanel: any, rootPanel: any): any; panelAdded(panel: IElement, index: number, parentPanel: any, rootPanel: any): any; questionRemoved(question: IQuestion): any; panelRemoved(panel: IElement): any; questionRenamed(question: IQuestion, oldName: string, oldValueName: string): any; validateQuestion(question: IQuestion): SurveyError; validatePanel(panel: IPanel): SurveyError; <API key>(valueName: string): boolean; <API key>(valueName: string): number; processHtml(html: string): string; <API key>(element: Base, text: string): string; isDisplayMode: boolean; isDesignMode: boolean; <API key>: boolean; <API key>: boolean; isLoadingFromJson: boolean; <API key>: boolean; state: string; cancelPreviewByPage(panel: IPanel): any; requiredText: string; <API key>(question: IQuestion, errors: Array<SurveyError>): void; <API key>: string; <API key>(question: IQuestion, title: string): string; questionStartIndex: string; <API key>: string; <API key>: string; <API key>: string; <API key>: boolean; maxTextLength: number; maxOthersLength: number; <API key>: boolean; uploadFiles(question: IQuestion, name: string, files: File[], uploadingCallback: (status: string, data: any) => any): any; downloadFile(name: string, content: string, callback: (status: string, data: any) => any): any; clearFiles(name: string, value: any, fileName: string, clearCallback: (status: string, data: any) => any): any; <API key>(question: IQuestion, choices: Array<any>, serverResult: any): Array<any>; <API key>(question: IQuestion, cssClasses: any): any; <API key>(panel: IPanel, cssClasses: any): any; <API key>(panel: IPanel, cssClasses: any): any; afterRenderQuestion(question: IQuestion, htmlElement: any): any; <API key>(question: IQuestion, htmlElement: any): any; afterRenderPanel(panel: IElement, htmlElement: any): any; afterRenderPage(htmlElement: any): any; <API key>(valueName: string, name: string, index: number): IQuestion; matrixRowAdded(question: IQuestion, row: any): any; <API key>(options: { question: IQuestion; canAddRow: boolean; }): any; matrixRowRemoved(question: IQuestion, rowIndex: number, row: any): any; <API key>(question: IQuestion, rowIndex: number, row: any): boolean; matrixCellCreated(question: IQuestion, options: any): any; <API key>(question: IQuestion, options: any): any; <API key>(question: IQuestion, options: any): any; <API key>(question: IQuestion, options: any): any; matrixCellValidate(question: IQuestion, options: any): SurveyError; dynamicPanelAdded(question: IQuestion): any; dynamicPanelRemoved(question: IQuestion, panelIndex: number, panel: IPanel): any; <API key>(question: IQuestion, options: any): any; dragAndDropAllow(options: any): boolean; scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string): any; } export interface ISurveyImpl { geSurveyData(): ISurveyData; getSurvey(): ISurvey; getTextProcessor(): ITextProcessor; } export interface IConditionRunner { runCondition(values: HashTable<any>, properties: HashTable<any>): any; } export interface ISurveyElement { name: string; isVisible: boolean; isReadOnly: boolean; isPage: boolean; isPanel: boolean; containsErrors: boolean; setSurveyImpl(value: ISurveyImpl): any; onSurveyLoad(): any; onFirstRendering(): any; getType(): string; setVisibleIndex(value: number): number; locStrsChanged(): any; delete(): any; } export interface IElement extends IConditionRunner, ISurveyElement { visible: boolean; parent: IPanel; renderWidth: string; width: string; minWidth?: string; maxWidth?: string; rightIndent: number; startWithNewLine: boolean; getPanel(): IPanel; getLayoutType(): string; <API key>(layoutType: string): boolean; removeElement(el: IElement): boolean; onAnyValueChanged(name: string): any; updateCustomWidgets(): any; <API key>(): any; clearErrors(): any; dispose(): void; } export interface IQuestion extends IElement, ISurveyErrorOwner { hasTitle: boolean; isEmpty(): boolean; <API key>(newValue: any): any; <API key>(newValue: any): any; <API key>(newValue: any): any; <API key>(): boolean; clearUnusedValues(): any; getDisplayValue(keysAsText: boolean, value: any): any; getValueName(): string; clearValue(): any; <API key>(): any; isAnswerCorrect(): boolean; <API key>(): any; <API key>(name: string, index: number): IQuestion; value: any; survey: any; } export interface IParentElement { addElement(element: IElement, index: number): any; removeElement(element: IElement): boolean; isReadOnly: boolean; } export interface IPanel extends ISurveyElement, IParentElement { <API key>(): string; <API key>(): string; <API key>(): string; parent: IPanel; elementWidthChanged(el: IElement): any; indexOf(el: IElement): number; elements: Array<IElement>; } export interface IPage extends IPanel, IConditionRunner { isStarted: boolean; } /** * The base class for SurveyJS objects. */ export declare class Base { static commentPrefix: string; static createItemValue: (item: any, type?: string) => any; static <API key>: (arr: Array<any>) => void; /** * A static methods that returns true if a value underfined, null, empty string or empty array. * @param value */ isValueEmpty(value: any): boolean; protected IsPropertyEmpty(value: any): boolean; protected <API key>: boolean; /** * Event that raise on property change of the sender object * sender - the object that owns the property * options.name - the property name that has been changed * options.oldValue - old value. Please note, it equals to options.newValue if property is an array * options.newValue - new value. */ onPropertyChanged: Event<(sender: Base, options: any) => any, any>; /** * Event that raised on changing property of the ItemValue object. * sender - the object that owns the property * options.propertyName - the property name to which ItemValue array is belong. It can be "choices" for dropdown question * options.obj - the instance of ItemValue object which property has been changed * options.name - the property of ItemObject that has been changed * options.oldValue - old value * options.newValue - new value */ <API key>: Event<(sender: Base, options: any) => any, any>; <API key>: (propertiesHash: any, name: string) => any; <API key>: (propertiesHash: any, name: string, val: any) => void; <API key>: (propertiesHash: any, name: string) => Array<any>; constructor(); protected onBaseCreating(): void; /** * Returns the type of the object as a string as it represents in the json. It should be in lowcase. */ getType(): string; /** * Returns the element template name without prefix. Typically it equals to getType(). * @see getType */ getTemplate(): string; /** * Returns true if the object is loading from Json at the current moment. */ readonly isLoadingFromJson: boolean; <API key>(): void; endLoadingFromJson(): void; /** * Deserialized the current object into JSON * @see fromJSON */ toJSON(): any; /** * Load object properties and elements. It doesn't reset properties that was changed before and they are not defined in the json parameter. * @param json the object JSON definition * @see toJSON */ fromJSON(json: any): void; /** * Make a clone of the existing object. Create a new object of the same type and load all properties into it. */ clone(): Base; locStrsChanged(): void; /** * Returns the property value by name * @param name property name */ getPropertyValue(name: string, defaultValue?: any): any; protected <API key>(propertiesHash: any, name: string): any; geValueFromHash(): any; protected <API key>(propertiesHash: any, name: string, val: any): void; <API key>(func: (hash: any, key: any) => void): void; /** * set property value * @param name property name * @param val new property value */ setPropertyValue(name: string, val: any): void; <API key>(name: string, oldValue: any, newValue: any, sender: Base, arrayChanges: ArrayChanges): void; <API key>(item: ItemValue, name: string, oldValue: any, newValue: any): void; protected <API key>(name: string, oldValue: any, newValue: any): void; protected <API key>(name: string, oldValue: any, newValue: any, arrayChanges?: ArrayChanges, target?: Base): void; /** * Register a function that will be called on a property value changed. * @param name the property name * @param func the function with no parameters that will be called on property changed. * @param key an optional parameter. If there is already a registered function for this property witht the same key, it will be overwritten. */ <API key>(name: string, func: any, key?: string): void; /** * Register a function that will be called on a property value changed from the names list. * @param names the list of properties names * @param func the function with no parameters that will be called on property changed. * @param key an optional parameter. If there is already a registered function for this property witht the same key, it will be overwritten. */ <API key>(names: Array<string>, func: any, key?: string): void; /** * Unregister notification on property value changed * @param name the property name * @param key the key with which you have registered the notification for this property. It can be null. */ <API key>(name: string, key?: string): void; /** * Unregister notification on property value changed for all properties in the names list. * @param names the list of properties names * @param key the key with which you have registered the notification for this property. It can be null. */ <API key>(names: Array<string>, key?: string): void; <API key>(name: string): void; protected <API key>(name: string, owner: ILocalizableOwner, useMarkDown?: boolean): LocalizableString; <API key>(name: string): LocalizableString; <API key>(name: string, defaultStr?: string): string; <API key>(name: string, value: string): void; addUsedLocales(locales: Array<string>): void; protected <API key>(locStr: LocalizableString, locales: Array<string>): void; protected createItemValues(name: string): Array<any>; protected createNewArrayCore(name: string): Array<any>; protected createNewArray(name: string, onPush?: any, onRemove?: any): Array<any>; protected getItemValueType(): string; protected setArray(name: string, src: any[], dest: any[], isItemValues: boolean, onPush: any): void; protected isTwoValueEquals(x: any, y: any, caseInSensitive?: boolean): boolean; protected copyCssClasses(dest: any, source: any): void; } export declare class ArrayChanges { index: number; deleteCount: number; itemsToAdd: any[]; deletedItems: any[]; constructor(index: number, deleteCount: number, itemsToAdd: any[], deletedItems: any[]); } export declare class SurveyError { text: string; protected errorOwner: ISurveyErrorOwner; visible: boolean; constructor(text?: string, errorOwner?: ISurveyErrorOwner); readonly locText: LocalizableString; getText(): string; getErrorType(): string; protected getDefaultText(): string; } export declare class SurveyElement extends Base implements ISurveyElement { <API key>: () => void; static ScrollElementToTop(elementId: string): boolean; static <API key>(elements: any, removeSpaces?: boolean): any; static FocusElement(elementId: string): boolean; static <API key>: boolean; <API key>: boolean; constructor(name: string); setSurveyImpl(value: ISurveyImpl): void; protected readonly surveyImpl: ISurveyImpl; readonly data: ISurveyData; /** * Returns the survey object. */ readonly survey: ISurvey; /** * Returns true if the question in design mode right now. */ readonly isDesignMode: boolean; isContentElement: boolean; readonly <API key>: boolean; readonly isVisible: boolean; readonly isReadOnly: boolean; /** * Set it to true to make an element question/panel/page readonly. * Please note, this property is hidden for question without input, for example html question. * @see enableIf * @see isReadOnly */ readOnly: boolean; protected onReadOnlyChanged(): void; updateElementCss(): void; readonly isLoadingFromJson: boolean; /** * This is the identifier of a survey element - question or panel. * @see valueName */ name: string; protected onNameChanged(oldValue: string): void; errors: Array<SurveyError>; /** * Returns true if a question or a container (panel/page) or their chidren have an error. * The value can be out of date. hasErrors function should be called to get the correct value. */ readonly containsErrors: boolean; <API key>(): void; protected getContainsErrors(): boolean; getElementsInDesign(includeHidden?: boolean): Array<IElement>; <API key>: SurveyElement; updateCustomWidgets(): void; onSurveyLoad(): void; onFirstRendering(): void; endLoadingFromJson(): void; setVisibleIndex(index: number): number; readonly isPage: boolean; /** * Return false if it is not panel. */ readonly isPanel: boolean; delete(): void; protected removeSelfFromList(list: Array<any>): void; protected readonly textProcessor: ITextProcessor; protected getProcessedHtml(html: string): string; protected onSetData(): void; protected getPage(parent: IPanel): IPage; protected moveToBase(parent: IPanel, container: IPanel, insertBefore?: any): boolean; protected setPage(parent: IPanel, val: IPage): void; } export declare class Event<T extends Function, Options> { protected callbacks: Array<T>; readonly isEmpty: boolean; fire(sender: any, options: Options): void; clear(): void; add(func: T): void; remove(func: T): void; hasFunc(func: T): boolean; } /** * The calculated value is a way to define the variable in Survey Creator. * It has two main properties: name and expression. Based on expression the value read-only property is automatically calculated. * The name property should be unique though all calcualted values. * It uses survey.getVariable/seruvey.setVariable functions to get/set its value. The class do not store its value internally. * You may set includeIntoResult property to true to store this calculated value into survey result. */ export declare class CalculatedValue extends Base { constructor(name?: string, expression?: string); setOwner(data: ISurveyData): void; getType(): string; /** * The calculated value name. It should be non empty and unique. */ name: string; /** * Set this property to true to include the non-empty calculated value into survey result, survey.data property. */ includeIntoResult: boolean; /** * The Expression that used to calculate the value. You may use standard operators like +, -, * and /, squares (). Here is the example of accessing the question value {questionname}. * <br/>Example: "({quantity} * {price}) * (100 - {discount}) / 100" */ expression: string; locCalculation(): void; unlocCalculation(): void; resetCalculation(): void; doCalculation(calculatedValues: Array<CalculatedValue>, values: HashTable<any>, properties: HashTable<any>): void; runExpression(values: HashTable<any>, properties: HashTable<any>): void; readonly value: any; protected setValue(val: any): void; } export declare class AnswerRequiredError extends SurveyError { text: string; constructor(text?: string, errorOwner?: ISurveyErrorOwner); getErrorType(): string; protected getDefaultText(): string; } export declare class <API key> extends SurveyError { text: string; constructor(text?: string, errorOwner?: ISurveyErrorOwner); getErrorType(): string; protected getDefaultText(): string; } export declare class RequreNumericError extends SurveyError { text: string; constructor(text?: string, errorOwner?: ISurveyErrorOwner); getErrorType(): string; protected getDefaultText(): string; } export declare class ExceedSizeError extends SurveyError { constructor(maxSize: number, errorOwner?: ISurveyErrorOwner); getErrorType(): string; getDefaultText(): string; } export declare class WebRequestError extends SurveyError { status: string; response: string; constructor(status: string, response: string, errorOwner?: ISurveyErrorOwner); getErrorType(): string; protected getDefaultText(): string; } export declare class <API key> extends SurveyError { text: string; constructor(text: string, errorOwner?: ISurveyErrorOwner); getErrorType(): string; protected getDefaultText(): string; } export declare class OtherEmptyError extends SurveyError { text: string; constructor(text: string, errorOwner?: ISurveyErrorOwner); getErrorType(): string; protected getDefaultText(): string; } export declare class UploadingFileError extends SurveyError { text: string; constructor(text: string, errorOwner?: ISurveyErrorOwner); getErrorType(): string; protected getDefaultText(): string; } export declare class <API key> extends SurveyError { text: string; constructor(text: string, errorOwner?: ISurveyErrorOwner); getErrorType(): string; protected getDefaultText(): string; } export declare class MinRowCountError extends SurveyError { minRowCount: number; constructor(minRowCount: number, errorOwner?: ISurveyErrorOwner); getErrorType(): string; protected getDefaultText(): string; } export declare class KeyDuplicationError extends SurveyError { text: string; constructor(text: string, errorOwner?: ISurveyErrorOwner); getErrorType(): string; protected getDefaultText(): string; } export declare class CustomError extends SurveyError { text: string; constructor(text: string, errorOwner?: ISurveyErrorOwner); getErrorType(): string; } export interface ILocalizableOwner { getLocale(): string; getMarkdownHtml(text: string): string; getProcessedText(text: string): string; } /** * The class represents the string that supports multi-languages and markdown. * It uses in all objects where support for multi-languages and markdown is required. */ export declare class LocalizableString { owner: ILocalizableOwner; useMarkdown: boolean; static SerializeAsObject: boolean; static defaultLocale: string; onGetTextCallback: (str: string) => string; onStrChanged: () => void; sharedData: LocalizableString; constructor(owner: ILocalizableOwner, useMarkdown?: boolean); readonly locale: string; strChanged(): void; text: string; readonly calculatedText: string; readonly pureText: string; readonly hasHtml: boolean; readonly html: string; readonly isEmpty: boolean; readonly textOrHtml: string; readonly renderedHtml: string; getLocaleText(loc: string): string; setLocaleText(loc: string, value: string): void; hasNonDefaultText(): boolean; getLocales(): Array<string>; getJson(): any; setJson(value: any): void; equals(obj: any): boolean; onChanged(): void; protected onCreating(): void; } export declare class ExpressionItem extends Base implements ILocalizableOwner { locOwner: ILocalizableOwner; constructor(expression?: string); getType(): string; runCondition(values: any, properties: any): boolean; /** * The expression property. If this expression returns true, then survey will use html property to show on complete page. */ expression: string; readonly locHtml: LocalizableString; getLocale(): string; getMarkdownHtml(text: string): string; getProcessedText(text: string): string; } /** * A class that contains expression and html propeties. It uses in survey.<API key> array. * If the expression returns true then html of this item uses instead of survey.completedHtml property * @see SurveyModel.<API key> * @see SurveyModel.completedHtml */ export declare class HtmlConditionItem extends ExpressionItem { constructor(expression?: string, html?: string); getType(): string; /** * The html that shows on completed ('Thank you') page. The expression should return true * @see expression */ html: string; readonly locHtml: LocalizableString; } /** * A class that contains expression and url propeties. It uses in survey.<API key> array. * If the expression returns true then url of this item uses instead of survey.navigateToUrl property * @see SurveyModel.navigateToUrl */ export declare class UrlConditionItem extends ExpressionItem { constructor(expression?: string, url?: string); getType(): string; /** * The url that survey navigates to on completing the survey. The expression should return true * @see expression */ url: string; readonly locUrl: LocalizableString; } /** * A definition for filling choices for checkbox, dropdown and radiogroup questions from resfull services. * The run method call a restfull service and results can be get on getResultCallback. */ export declare class ChoicesRestfull extends Base { static EncodeParameters: boolean; static clearCache(): void; static onBeforeSendRequest: (sender: ChoicesRestfull, options: { request: XMLHttpRequest; }) => void; protected processedUrl: string; protected processedPath: string; getResultCallback: (items: Array<ItemValue>) => void; <API key>: () => void; <API key>: (items: Array<ItemValue>, serverResult: any) => Array<ItemValue>; <API key>: (item: any) => any; error: SurveyError; owner: IQuestion; constructor(); run(textProcessor?: ITextProcessor): void; readonly isRunning: boolean; readonly <API key>: boolean; protected <API key>(): boolean; protected parseResponse(response: any): any; protected sendRequest(): void; getType(): string; readonly isEmpty: boolean; <API key>(): Array<string>; setData(json: any): void; getData(): any; url: string; path: string; valueName: string; titleName: string; allowEmptyResponse: boolean; attachOriginalItems: boolean; readonly itemValueType: string; clear(): void; protected beforeSendRequest(): void; protected onLoad(result: any, loadingObjHash?: string): void; protected callResultCallback(items: Array<ItemValue>, loadingObjHash: string): void; } export declare class FunctionFactory { static Instance: FunctionFactory; register(name: string, func: (params: any[]) => any, isAsync?: boolean): void; unregister(name: string): void; hasFunction(name: string): boolean; isAsyncFunction(name: string): boolean; clear(): void; getAll(): Array<string>; run(name: string, params: any[], properties?: HashTable<any>): any; } export declare var registerFunction: (name: string, func: (params: any[]) => any, isAsync?: boolean) => void; export declare class <API key> { constructor(expression: string); expression: string; getVariables(): Array<string>; hasFunction(): boolean; readonly isAsync: boolean; canRun(): boolean; protected runCore(values: HashTable<any>, properties?: HashTable<any>): any; protected doOnComplete(res: any): void; } export declare class ConditionRunner extends <API key> { onRunComplete: (result: boolean) => void; run(values: HashTable<any>, properties?: HashTable<any>): boolean; protected doOnComplete(res: any): void; } export declare class ExpressionRunner extends <API key> { onRunComplete: (result: any) => void; run(values: HashTable<any>, properties?: HashTable<any>): any; protected doOnComplete(res: any): void; } export declare abstract class Operand { toString(func?: (op: Operand) => string): string; abstract getType(): string; abstract evaluate(processValue?: ProcessValue): any; abstract setVariables(variables: Array<string>): any; hasFunction(): boolean; hasAsyncFunction(): boolean; addToAsyncList(list: Array<FunctionOperand>): void; } export declare class BinaryOperand extends Operand { constructor(operatorName: string, left?: any, right?: any, isArithmeticOp?: boolean); getType(): string; readonly isArithmetic: boolean; readonly isConjunction: boolean; readonly conjunction: string; readonly operator: string; readonly leftOperand: any; readonly rightOperand: any; evaluate(processValue?: ProcessValue): any; toString(func?: (op: Operand) => string): string; setVariables(variables: Array<string>): void; hasFunction(): boolean; hasAsyncFunction(): boolean; addToAsyncList(list: Array<FunctionOperand>): void; } export declare class UnaryOperand extends Operand { constructor(expressionValue: Operand, operatorName: string); readonly operator: string; readonly expression: Operand; getType(): string; toString(func?: (op: Operand) => string): string; evaluate(processValue?: ProcessValue): boolean; setVariables(variables: Array<string>): void; } export declare class ArrayOperand extends Operand { values: Array<Operand>; constructor(values: Array<Operand>); getType(): string; toString(func?: (op: Operand) => string): string; evaluate(processValue?: ProcessValue): Array<any>; setVariables(variables: Array<string>): void; hasFunction(): boolean; hasAsyncFunction(): boolean; addToAsyncList(list: Array<FunctionOperand>): void; } export declare class Const extends Operand { constructor(value: any); getType(): string; toString(func?: (op: Operand) => string): string; readonly correctValue: any; evaluate(): any; setVariables(variables: Array<string>): void; protected getCorrectValue(value: any): any; } export declare class Variable extends Const { constructor(variableName: string); getType(): string; toString(func?: (op: Operand) => string): string; readonly variable: string; evaluate(processValue?: ProcessValue): any; setVariables(variables: Array<string>): void; } export declare class FunctionOperand extends Operand { onAsyncReady: () => void; constructor(origionalValue: string, parameters: ArrayOperand); getType(): string; evaluateAsync(processValue: ProcessValue): void; evaluate(processValue?: ProcessValue): any; toString(func?: (op: Operand) => string): string; setVariables(variables: Array<string>): void; readonly isReady: boolean; hasFunction(): boolean; hasAsyncFunction(): boolean; addToAsyncList(list: Array<FunctionOperand>): void; } export declare class OperandMaker { static <API key>(op: string): void; static safeToString(operand: Operand, func: (op: Operand) => string): string; static toOperandString(value: string): string; static isSpaceString(str: string): boolean; static isNumeric(value: string): boolean; static isBooleanValue(value: string): boolean; static unaryFunctions: HashTable<Function>; static binaryFunctions: HashTable<Function>; static operatorToString(operatorName: string): string; static signs: HashTable<string>; } export declare class <API key> { at: number; code: string; constructor(at: number, code: string); } export declare class ConditionsParser { createCondition(text: string): Operand; parseExpression(text: string): Operand; readonly error: <API key>; } export interface ValueCore { hasValue: boolean; value: any; } export declare class ProcessValue { values: HashTable<any>; properties: HashTable<any>; constructor(); getFirstName(text: string, obj?: any): string; hasValue(text: string, values?: HashTable<any>): boolean; setValue(obj: any, text: string, value: any): void; getValue(text: string, values?: HashTable<any>): any; } export interface IObject { [key: string]: any; } export declare class JsonObjectProperty implements IObject { name: string; static <API key>: (val: any) => any; [key: string]: any; isSerializable: boolean; isLightSerializable: boolean; isCustom: boolean; isDynamicChoices: boolean; className: string; alternativeName: string; classNamePart: string; baseClassName: string; defaultValueValue: any; <API key>: string; displayName: string; category: string; categoryIndex: number; visibleIndex: number; showMode: string; maxLength: number; maxValue: any; minValue: any; layout: string; onGetValue: (obj: any) => any; onSetValue: (obj: any, value: any, jsonConv: JsonObject) => any; visibleIf: (obj: any) => boolean; <API key>: (obj: any, propEditor: any) => any; constructor(name: string, isRequired?: boolean); type: string; isArray: boolean; isRequired: boolean; readonly hasToUseGetValue: string | ((obj: any) => any); defaultValue: any; isDefaultValue(value: any): boolean; getValue(obj: any): any; getPropertyValue(obj: any): any; readonly hasToUseSetValue: string | ((obj: any, value: any, jsonConv: JsonObject) => any); setValue(obj: any, value: any, jsonConv: JsonObject): void; getObjType(objType: string): string; getClassName(className: string): string; /** * Depricated, please use getChoices */ readonly choices: Array<any>; readonly hasChoices: boolean; getChoices(obj: any, choicesCallback?: any): Array<any>; setChoices(value: Array<any>, valueFunc?: (obj: any) => Array<any>): void; getBaseValue(): string; setBaseValue(val: any): void; readOnly: boolean; isVisible(layout: string, obj?: any): boolean; visible: boolean; isLocalizable: boolean; mergeWith(prop: JsonObjectProperty): void; addDependedProperty(name: string): void; <API key>(): Array<string>; } export declare class <API key> { static addProperty(className: string, property: any): void; static removeProperty(className: string, propertyName: string): void; static addClass(className: string, parentClassName: string): void; static getProperties(className: string): Array<any>; static createProperties(obj: any): void; } export declare class JsonMetadataClass { name: string; creator: (json?: any) => any; parentName: string; static requiredSymbol: string; static typeSymbol: string; properties: Array<JsonObjectProperty>; constructor(name: string, properties: Array<any>, creator?: (json?: any) => any, parentName?: string); find(name: string): JsonObjectProperty; createProperty(propInfo: any): JsonObjectProperty; } export declare class JsonMetadata { addClass(name: string, properties: Array<any>, creator?: (json?: any) => any, parentName?: string): JsonMetadataClass; removeClass(name: string): void; <API key>(name: string, creator: () => any): void; <API key>(name: string, creator: () => any): void; getProperties(className: string): Array<JsonObjectProperty>; getPropertiesByObj(obj: any): Array<JsonObjectProperty>; findProperty(className: string, propertyName: string): JsonObjectProperty; findProperties(className: string, propertyNames: Array<string>): Array<JsonObjectProperty>; createClass(name: string, json?: any): any; getChildrenClasses(name: string, canBeCreated?: boolean): Array<JsonMetadataClass>; <API key>(name: string): Array<string>; addProperties(className: string, propertiesInfos: Array<any>): void; addProperty(className: string, propertyInfo: any): JsonObjectProperty; removeProperty(className: string, propertyName: string): boolean; findClass(name: string): JsonMetadataClass; isDescendantOf(className: string, ancestorClassName: string): boolean; <API key>(name: string, alternativeName: string): void; } export declare class JsonError { type: string; message: string; description: string; at: Number; constructor(type: string, message: string); getFullDescription(): string; } export declare class <API key> extends JsonError { propertyName: string; className: string; constructor(propertyName: string, className: string); } export declare class <API key> extends JsonError { baseClassName: string; type: string; message: string; constructor(baseClassName: string, type: string, message: string); } export declare class <API key> extends <API key> { propertyName: string; baseClassName: string; constructor(propertyName: string, baseClassName: string); } export declare class <API key> extends <API key> { propertyName: string; baseClassName: string; constructor(propertyName: string, baseClassName: string); } export declare class <API key> extends JsonError { propertyName: string; className: string; constructor(propertyName: string, className: string); } export declare class JsonObject { static readonly metaData: JsonMetadata; errors: JsonError[]; lightSerializing: boolean; toJsonObject(obj: any, storeDefaults?: boolean): any; toObject(jsonObj: any, obj: any): void; toObjectCore(jsonObj: any, obj: any): void; protected toJsonObjectCore(obj: any, property: JsonObjectProperty, storeDefaults?: boolean): any; valueToJson(obj: any, result: any, property: JsonObjectProperty, storeDefaults?: boolean): void; protected valueToObj(value: any, obj: any, property: JsonObjectProperty): void; } export declare var Serializer: JsonMetadata; export interface IMatrixDropdownData { value: any; onRowChanged(row: <API key>, columnName: string, newRowValue: any, isDeletingValue: boolean): void; onRowChanging(row: <API key>, columnName: string, rowValue: any): any; getRowIndex(row: <API key>): number; validateCell(row: <API key>, columnName: string, rowValue: any): SurveyError; columns: Array<<API key>>; createQuestion(row: <API key>, column: <API key>): Question; getLocale(): string; getMarkdownHtml(text: string): string; getProcessedText(text: string): string; <API key>(columnName: string, row: <API key>): Question; onTotalValueChanged(): any; getSurvey(): ISurvey; } export interface IMatrixColumnOwner extends ILocalizableOwner { getRequiredText(): string; <API key>(column: <API key>): void; <API key>(column: <API key>): void; getCellType(): string; <API key>(column: <API key>): void; } export declare var <API key>: { dropdown: { properties: string[]; <API key>: (cellQuestion: any, column: any, question: any, data: any) => void; }; checkbox: { properties: string[]; <API key>: (cellQuestion: any, column: any, question: any, data: any) => void; }; radiogroup: { properties: string[]; <API key>: (cellQuestion: any, column: any, question: any, data: any) => void; }; text: { properties: string[]; <API key>: (cellQuestion: any, column: any, question: any, data: any) => void; }; comment: { properties: string[]; <API key>: (cellQuestion: any, column: any, question: any, data: any) => void; }; boolean: { properties: string[]; <API key>: (cellQuestion: any, column: any, question: any, data: any) => void; }; expression: { properties: string[]; <API key>: (cellQuestion: any, column: any, question: any, data: any) => void; }; rating: { properties: string[]; }; }; export declare class <API key> extends Base implements ILocalizableOwner { static getColumnTypes(): Array<string>; constructor(name: string, title?: string); <API key>(): string; getDynamicType(): string; <API key>(): Array<string>; colOwner: IMatrixColumnOwner; locStrsChanged(): void; addUsedLocales(locales: Array<string>): void; readonly index: number; setIndex(val: number): void; getType(): string; cellType: string; readonly templateQuestion: Question; readonly value: string; readonly isVisible: boolean; setIsVisible(newVal: boolean): void; hasVisibleCell: boolean; name: string; title: string; readonly locTitle: LocalizableString; readonly fullTitle: string; isRequired: boolean; requiredErrorText: string; readonly <API key>: LocalizableString; readOnly: boolean; hasOther: boolean; visibleIf: string; enableIf: string; requiredIf: string; <API key>: boolean; readonly <API key>: boolean; readonly <API key>: boolean; validators: Array<SurveyValidator>; totalType: string; totalExpression: string; readonly hasTotal: boolean; totalFormat: string; readonly locTotalFormat: LocalizableString; <API key>: number; <API key>: number; totalDisplayStyle: string; totalCurrency: string; minWidth: string; width: string; colCount: number; getLocale(): string; getMarkdownHtml(text: string): string; getProcessedText(text: string): string; createCellQuestion(data: any): Question; updateCellQuestion(cellQuestion: Question, data: any, onUpdateJson?: (json: any) => any): void; <API key>(): void; protected <API key>(): string; protected <API key>(): void; protected createNewQuestion(cellType: string): Question; protected <API key>(question: Question, onUpdateJson?: (json: any) => any): void; protected <API key>(name: string, oldValue: any, newValue: any): void; } export declare class MatrixDropdownCell { column: <API key>; row: <API key>; data: IMatrixDropdownData; constructor(column: <API key>, row: <API key>, data: IMatrixDropdownData); locStrsChanged(): void; protected createQuestion(column: <API key>, row: <API key>, data: IMatrixDropdownData): Question; readonly question: Question; value: any; runCondition(values: HashTable<any>, properties: HashTable<any>): void; } export declare class <API key> extends MatrixDropdownCell { column: <API key>; row: <API key>; data: IMatrixDropdownData; constructor(column: <API key>, row: <API key>, data: IMatrixDropdownData); protected createQuestion(column: <API key>, row: <API key>, data: IMatrixDropdownData): Question; locStrsChanged(): void; updateCellQuestion(): void; getTotalExpression(): string; } export declare class <API key> implements ISurveyData, ISurveyImpl, ILocalizableOwner, ITextProcessor { static RowVariableName: string; static OwnerVariableName: string; static IndexVariableName: string; protected data: IMatrixDropdownData; protected isSettingValue: boolean; cells: Array<MatrixDropdownCell>; constructor(data: IMatrixDropdownData, value: any); readonly id: string; readonly rowName: any; value: any; readonly locText: LocalizableString; getAllValues(): any; getFilteredValues(): any; <API key>(): any; runCondition(values: HashTable<any>, properties: HashTable<any>): void; onAnyValueChanged(name: string): void; getDataValueCore(valuesHash: any, key: string): any; getValue(name: string): any; setValue(name: string, newColumnValue: any): void; getVariable(name: string): any; setVariable(name: string, newValue: any): void; getComment(name: string): string; setComment(name: string, newValue: string, locNotification: any): void; readonly isEmpty: boolean; getQuestionByColumn(column: <API key>): Question; <API key>(columnName: string): Question; protected <API key>(columnName: string): Question; <API key>(val: any): void; getLocale(): string; getMarkdownHtml(text: string): string; getProcessedText(text: string): string; locStrsChanged(): void; <API key>(column: <API key>): void; <API key>(parentIsReadOnly: boolean): void; protected <API key>(cell: MatrixDropdownCell): void; protected buildCells(value: any): void; protected createCell(column: <API key>): MatrixDropdownCell; geSurveyData(): ISurveyData; getSurvey(): ISurvey; protected readonly rowIndex: number; getTextProcessor(): ITextProcessor; processText(text: string, returnDisplayValue: boolean): string; processTextEx(text: string, returnDisplayValue: boolean): any; } export declare class <API key> extends <API key> { constructor(data: IMatrixDropdownData); protected createCell(column: <API key>): MatrixDropdownCell; setValue(name: string, newValue: any): void; runCondition(values: HashTable<any>, properties: HashTable<any>): void; protected <API key>(cell: MatrixDropdownCell): void; } export declare class <API key> { minWidth: string; width: string; locTitle: LocalizableString; cell: MatrixDropdownCell; row: <API key>; question: Question; isRemoveRow: boolean; choiceIndex: number; matrix: <API key>; constructor(); readonly hasQuestion: boolean; readonly hasTitle: boolean; readonly id: number; readonly showErrorOnTop: boolean; readonly showErrorOnBottom: boolean; item: ItemValue; readonly isChoice: boolean; readonly choiceValue: any; readonly isCheckbox: boolean; readonly isFirstChoice: boolean; } export declare class <API key> { cells: Array<<API key>>; constructor(); readonly id: number; } export declare class <API key> extends Base { matrix: <API key>; constructor(matrix: <API key>); readonly showHeader: boolean; readonly showFooter: boolean; readonly hasFooter: boolean; readonly hasRemoveRows: boolean; isRequireReset(): boolean; readonly headerRow: <API key>; readonly footerRow: <API key>; readonly rows: Array<<API key>>; protected build(): void; onAddedRow(): void; onRemovedRow(index: number): void; protected buildHeader(): void; protected buildFooter(): void; protected buildRows(): void; } /** * A base class for matrix dropdown and matrix dynamic questions. */ export declare class <API key> extends <API key><<API key>, <API key>> implements IMatrixDropdownData { name: string; static defaultCellType: string; static addDefaultColumns(matrix: <API key>): void; protected isRowChanging: boolean; <API key>: () => void; updateCellsCallback: () => void; <API key>: () => void; <API key>: () => void; <API key>: (table: <API key>) => void; <API key>: (options: any) => void; <API key>: (options: any) => void; protected createColumnValues(): any[]; constructor(name: string); getType(): string; readonly isRowsDynamic: boolean; /** * Set columnLayout to 'vertical' to place columns vertically and rows horizontally. It makes sense when we have many columns and few rows. * @see columns * @see rowCount */ columnLayout: string; columnsLocation: string; /** * Returns true if columns are located horizontally * @see columnLayout */ readonly <API key>: boolean; readonly hasRowText: boolean; getFooterText(): LocalizableString; readonly canRemoveRows: boolean; canRemoveRow(row: <API key>): boolean; protected onRowsChanged(): void; protected <API key>(): void; protected onEndRowAdding(): void; protected onEndRowRemoving(index: number): void; protected resetRenderedTable(): void; readonly renderedTable: <API key>; protected createRenderedTable(): <API key>; protected onMatrixRowCreated(row: <API key>): void; /** * Use this property to change the default cell type. */ cellType: string; /** * The default column count for radiogroup and checkbox cell types. */ columnColCount: number; /** * Use this property to set the mimimum column width. */ columnMinWidth: string; /** * Set this property to true to show the horizontal scroll. */ horizontalScroll: boolean; getRequiredText(): string; <API key>(column: <API key>): void; <API key>(column: <API key>): void; <API key>(column: <API key>): void; getRowTitleWidth(): string; readonly hasFooter: boolean; protected updateHasFooter(): void; readonly hasTotal: boolean; getCellType(): string; getConditionJson(operator?: string, path?: string): any; <API key>(): void; clearErrors(): void; runCondition(values: HashTable<any>, properties: HashTable<any>): void; protected <API key>(): boolean; protected runCellsCondition(values: HashTable<any>, properties: HashTable<any>): void; protected runTotalsCondition(values: HashTable<any>, properties: HashTable<any>): void; locStrsChanged(): void; /** * Returns the column by it's name. Retuns null if a column with this name doesn't exist. * @param column */ getColumnByName(columnName: string): <API key>; getColumnName(columnName: string): <API key>; /** * Returns the column width. * @param column */ getColumnWidth(column: <API key>): string; /** * The default choices for dropdown, checkbox and radiogroup cell types. */ choices: Array<any>; /** * The default options caption for dropdown cell type. */ optionsCaption: string; readonly locOptionsCaption: LocalizableString; addColumn(name: string, title?: string): <API key>; protected getVisibleRows(): Array<<API key>>; readonly totalValue: any; protected getVisibleTotalRow(): <API key>; readonly visibleTotalRow: <API key>; onSurveyLoad(): void; /** * Returns the row value. If the row value is empty, the object is empty: {}. * @param rowIndex row index from 0 to visible row count - 1. */ getRowValue(rowIndex: number): any; /** * Set the row value. * @param rowIndex row index from 0 to visible row count - 1. * @param rowValue an object {"column name": columnValue,... } */ setRowValue(rowIndex: number, rowValue: any): any; protected generateRows(): Array<<API key>>; protected generateTotalRow(): <API key>; protected createNewValue(nullOnEmpty?: boolean): any; protected getRowValueCore(row: <API key>, questionValue: any, create?: boolean): any; protected getRowDisplayValue(row: <API key>, rowValue: any): any; getPlainData(options?: { includeEmpty?: boolean; calculations?: Array<{ propertyName: string; }>; }): any; protected <API key>(val: any): void; protected setQuestionValue(newValue: any): void; <API key>(): boolean; protected getContainsErrors(): boolean; protected getIsAnswered(): boolean; hasErrors(fireCallback?: boolean, rec?: any): boolean; protected <API key>(): boolean; getAllErrors(): Array<SurveyError>; protected <API key>(): string; protected <API key>(): string; protected <API key>(onError: boolean): Question; protected onReadOnlyChanged(): void; createQuestion(row: <API key>, column: <API key>): Question; protected createQuestionCore(row: <API key>, column: <API key>): Question; protected deleteRowValue(newValue: any, row: <API key>): any; onAnyValueChanged(name: string): void; protected isObject(value: any): boolean; protected onCellValueChanged(row: <API key>, columnName: string, rowValue: any): void; validateCell(row: <API key>, columnName: string, rowValue: any): SurveyError; onRowChanging(row: <API key>, columnName: string, rowValue: any): any; onRowChanged(row: <API key>, columnName: string, newRowValue: any, isDeletingValue: boolean): void; getRowIndex(row: <API key>): number; <API key>(columnName: string, row: <API key>): Question; onTotalValueChanged(): any; <API key>(name: string, index: number): IQuestion; getSurvey(): ISurvey; } export declare class <API key> extends <API key> { name: string; constructor(name: string, item: ItemValue, data: IMatrixDropdownData, value: any); readonly rowName: string; readonly text: string; readonly locText: LocalizableString; } /** * A Model for a matrix dropdown question. You may use a dropdown, checkbox, radiogroup, text and comment questions as a cell editors. */ export declare class <API key> extends <API key> implements IMatrixDropdownData { name: string; constructor(name: string); getType(): string; /** * Set this property to show it on the first column for the total row. */ totalText: string; readonly locTotalText: LocalizableString; getFooterText(): LocalizableString; /** * The column width for the first column, row title column. */ rowTitleWidth: string; getRowTitleWidth(): string; protected getDisplayValueCore(keysAsText: boolean, value: any): any; <API key>(objects: Array<IConditionObject>, context: any): void; <API key>(): void; <API key>(): void; protected generateRows(): Array<<API key>>; protected createMatrixRow(item: ItemValue, value: any): <API key>; } export declare class <API key> extends <API key> { index: number; constructor(index: number, data: IMatrixDropdownData, value: any); readonly rowName: string; } /** * A Model for a matrix dymanic question. You may use a dropdown, checkbox, radiogroup, text and comment questions as a cell editors. * An end-user may dynamically add/remove rows, unlike in matrix dropdown question. */ export declare class <API key> extends <API key> implements IMatrixDropdownData { name: string; constructor(name: string); getType(): string; readonly isRowsDynamic: boolean; /** * Set it to true, to show a confirmation dialog on removing a row * @see ConfirmDeleteText */ confirmDelete: boolean; /** * Set it to a column name and the library shows duplication error, if there are same values in different rows in the column. * @see keyDuplicationError */ keyName: string; /** * If it is not empty, then this value is set to every new row, including rows created initially, unless the defaultValue is not empty * @see defaultValue * @see <API key> */ defaultRowValue: any; /** * Set it to true to copy the value into new added row from the last row. If defaultRowValue is set and this property equals to true, * then the value for new added row is merging. * @see defaultValue * @see defaultRowValue */ <API key>: boolean; protected isDefaultValueEmpty(): boolean; protected setDefaultValue(): void; /** * The number of rows in the matrix. * @see minRowCount * @see maxRowCount */ rowCount: number; /** * The minimum row count. A user could not delete a row if the rowCount equals to minRowCount * @see rowCount * @see maxRowCount * @see allowAddRows */ minRowCount: number; /** * The maximum row count. A user could not add a row if the rowCount equals to maxRowCount * @see rowCount * @see minRowCount * @see allowAddRows */ maxRowCount: number; /** * Set this property to false to disable ability to add new rows. "Add new Row" button becomes invsible in UI * @see canAddRow * @see allowRemoveRows */ allowAddRows: boolean; /** * Set this property to false to disable ability to remove rows. "Remove" row buttons become invsible in UI * @see canRemoveRows * @see allowAddRows */ allowRemoveRows: boolean; /** * Returns true, if a new row can be added. * @see allowAddRows * @see maxRowCount * @see canRemoveRows * @see rowCount */ readonly canAddRow: boolean; /** * Returns true, if row can be removed. * @see minRowCount * @see canAddRow * @see rowCount */ readonly canRemoveRows: boolean; canRemoveRow(row: <API key>): boolean; /** * Creates and add a new row. */ addRow(): void; protected hasRowsAsItems(): boolean; /** * Removes a row by it's index. If confirmDelete is true, show a confirmation dialog * @param index a row index, from 0 to rowCount - 1 * @see removeRow * @see confirmDelete */ removeRowUI(value: any): void; <API key>(index: number): boolean; /** * Removes a row by it's index. * @param index a row index, from 0 to rowCount - 1 */ removeRow(index: number): void; /** * Use this property to change the default text showing in the confirmation delete dialog on removing a row. */ confirmDeleteText: string; readonly <API key>: LocalizableString; /** * The duplication value error text. Set it to show the text different from the default. * @see keyName */ keyDuplicationError: string; readonly <API key>: LocalizableString; /** * Use this property to change the default value of add row button text. */ addRowText: string; readonly locAddRowText: LocalizableString; /** * By default the 'Add Row' button is shown on bottom if columnLayout is horizontal and on top if columnLayout is vertical. <br/> * You may set it to "top", "bottom" or "topBottom" (to show on top and bottom). * @see columnLayout */ addRowLocation: string; readonly isAddRowOnTop: boolean; readonly isAddRowOnBottom: boolean; /** * Use this property to change the default value of remove row button text. */ removeRowText: string; readonly locRemoveRowText: LocalizableString; protected getDisplayValueCore(keysAsText: boolean, value: any): any; <API key>(objects: Array<IConditionObject>, context: any): void; <API key>(): boolean; readonly hasRowText: boolean; protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void; hasErrors(fireCallback?: boolean, rec?: any): boolean; protected generateRows(): Array<<API key>>; protected createMatrixRow(value: any): <API key>; protected <API key>(val: any): void; protected createNewValue(): any; protected deleteRowValue(newValue: any, row: <API key>): any; protected getRowValueCore(row: <API key>, questionValue: any, create?: boolean): any; } export interface IMatrixData { onMatrixRowChanged(row: MatrixRowModel): void; } export declare class MatrixRowModel { fullName: string; protected rowValue: any; constructor(item: ItemValue, fullName: string, data: IMatrixData, value: any); readonly name: string; readonly text: string; readonly locText: LocalizableString; value: any; protected onValueChanged(): void; } export interface IMatrixCellsOwner extends ILocalizableOwner { getRows(): Array<any>; getColumns(): Array<any>; } export declare class MartrixCells { cellsOwner: IMatrixCellsOwner; constructor(cellsOwner: IMatrixCellsOwner); readonly isEmpty: boolean; setCellText(row: any, column: any, val: string): void; setDefaultCellText(column: any, val: string): void; getCellLocText(row: any, column: any): LocalizableString; <API key>(column: any, val: string): LocalizableString; <API key>(row: any, column: any): LocalizableString; getCellText(row: any, column: any): string; getDefaultCellText(column: any): string; getCellDisplayText(row: any, column: any): string; readonly rows: Array<any>; readonly columns: Array<any>; getJson(): any; setJson(value: any): void; protected createString(): LocalizableString; } /** * A Model for a simple matrix question. */ export declare class QuestionMatrixModel extends <API key><MatrixRowModel, ItemValue> implements IMatrixData, IMatrixCellsOwner { name: string; constructor(name: string); getType(): string; /** * Set this property to true, if you want a user to answer all rows. */ isAllRowRequired: boolean; /** * Returns true, if there is at least one row. */ readonly hasRows: boolean; /** * Use this property to render items in a specific order: "random" or "initial". Default is "initial". */ rowsOrder: string; /** * Set this property to true to hide the question if there is no visible rows in the matrix. */ hideIfRowsEmpty: boolean; getRows(): Array<any>; getColumns(): Array<any>; protected <API key>(): number; protected <API key>(): number; protected getVisibleRows(): Array<MatrixRowModel>; protected sortVisibleRows(array: Array<MatrixRowModel>): Array<MatrixRowModel>; endLoadingFromJson(): void; protected processRowsOnSet(newRows: Array<any>): MatrixRowModel[]; /** * Returns the list of visible rows as model objects. * @see rowsVisibleIf */ readonly visibleRows: Array<MatrixRowModel>; cells: MartrixCells; readonly hasCellText: boolean; setCellText(row: any, column: any, val: string): void; getCellText(row: any, column: any): string; setDefaultCellText(column: any, val: string): void; getDefaultCellText(column: any): string; getCellDisplayText(row: any, column: any): string; <API key>(row: any, column: any): LocalizableString; <API key>(): boolean; protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void; protected getIsAnswered(): boolean; protected createMatrixRow(item: ItemValue, fullName: string, value: any): MatrixRowModel; protected setQuestionValue(newValue: any): void; protected getDisplayValueCore(keysAsText: boolean, value: any): any; getPlainData(options?: { includeEmpty?: boolean; calculations?: Array<{ propertyName: string; }>; }): any; <API key>(objects: Array<IConditionObject>, context: any): void; getConditionJson(operator?: string, path?: string): any; <API key>(): void; protected <API key>(): string; protected onRowsChanged(): void; onMatrixRowChanged(row: MatrixRowModel): void; } export interface IMultipleTextData extends ILocalizableOwner, IPanel { getSurvey(): ISurvey; getTextProcessor(): ITextProcessor; getAllValues(): any; <API key>(name: string): any; <API key>(name: string, value: any): any; getItemDefaultValue(name: string): any; getIsRequiredText(): string; } export declare class <API key> extends Base implements IValidatorOwner, ISurveyData, ISurveyImpl { <API key>: (newValue: any) => void; constructor(name?: any, title?: string); getType(): string; readonly id: string; /** * The item name. */ name: string; readonly question: Question; readonly editor: QuestionTextModel; protected createEditor(name: string): QuestionTextModel; addUsedLocales(locales: Array<string>): void; locStrsChanged(): void; setData(data: IMultipleTextData): void; /** * Set this property to true, to make the item a required. If a user doesn't fill the item then a validation error will be generated. */ isRequired: boolean; /** * Use this property to change the default input type. */ inputType: string; /** * Item title. If it is empty, the item name is rendered as title. This property supports markdown. * @see name */ title: string; readonly locTitle: LocalizableString; /** * Returns the text or html for rendering the title. */ readonly fullTitle: string; /** * The maximim text length. If it is -1, defaul value, then the survey maxTextLength property will be used. * If it is 0, then the value is unlimited * @see SurveyModel.maxTextLength */ maxLength: number; getMaxLength(): any; /** * The input place holder. */ placeHolder: string; readonly locPlaceHolder: LocalizableString; /** * The custom text that will be shown on required error. Use this property, if you do not want to show the default text. */ requiredErrorText: string; readonly <API key>: LocalizableString; /** * The list of question validators. */ validators: Array<SurveyValidator>; getValidators(): Array<SurveyValidator>; /** * The item value. */ value: any; isEmpty(): boolean; onValueChanged(newValue: any): void; geSurveyData(): ISurveyData; getSurvey(): ISurvey; getTextProcessor(): ITextProcessor; getValue(name: string): any; setValue(name: string, value: any): void; getVariable(name: string): any; setVariable(name: string, newValue: any): void; getComment(name: string): string; setComment(name: string, newValue: string): void; getAllValues(): any; getFilteredValues(): any; <API key>(): any; getValidatorTitle(): string; validatedValue: any; <API key>(): any; <API key>(): any; } /** * A Model for a multiple text question. */ export declare class <API key> extends Question implements IMultipleTextData, IPanel { name: string; <API key>: () => void; constructor(name: string); getType(): string; setSurveyImpl(value: ISurveyImpl): void; readonly isAllowTitleLeft: boolean; onSurveyLoad(): void; setQuestionValue(newValue: any): void; <API key>(newValue: any): void; /** * The list of input items. */ items: Array<<API key>>; /** * Add a new text item. * @param name a item name * @param title a item title (optional) */ addItem(name: string, title?: string): <API key>; getItemByName(name: string): <API key>; <API key>(objects: Array<IConditionObject>, context: any): void; getConditionJson(operator?: string, path?: string): any; locStrsChanged(): void; <API key>(): boolean; /** * The number of columns. Items are rendred in one line if the value is 0. */ colCount: number; /** * The default text input size. */ itemSize: number; /** * Returns the list of rendered rows. */ getRows(): Array<any>; protected onValueChanged(): void; protected createTextItem(name: string, title: string): <API key>; protected onItemValueChanged(): void; protected <API key>(): boolean; hasErrors(fireCallback?: boolean, rec?: any): boolean; getAllErrors(): Array<SurveyError>; clearErrors(): void; protected getContainsErrors(): boolean; protected getIsAnswered(): boolean; <API key>(name: string): any; <API key>(name: string, value: any): void; getItemDefaultValue(name: string): any; getSurvey(): ISurvey; getTextProcessor(): ITextProcessor; getAllValues(): any; getIsRequiredText(): string; addElement(element: IElement, index: number): void; removeElement(element: IElement): boolean; <API key>(): string; <API key>(): string; <API key>(): string; elementWidthChanged(el: IElement): void; readonly elements: Array<IElement>; indexOf(el: IElement): number; } export declare class DragDropInfo { source: IElement; target: IElement; nestedPanelDepth: number; constructor(source: IElement, target: IElement, nestedPanelDepth?: number); destination: ISurveyElement; isBottom: boolean; isEdge: boolean; } export declare class QuestionRowModel extends Base { panel: PanelModelBase; constructor(panel: PanelModelBase); readonly elements: Array<IElement>; visible: boolean; readonly visibleElements: Array<IElement>; updateVisible(): void; addElement(q: IElement): void; readonly index: number; <API key>(el: IElement): void; } /** * A base class for a Panel and Page objects. */ export declare class PanelModelBase extends SurveyElement implements IPanel, IConditionRunner, ILocalizableOwner, ISurveyErrorOwner { name: string; addElementCallback: (element: IElement) => void; <API key>: (element: IElement) => void; <API key>: () => string; constructor(name?: string); getType(): string; setSurveyImpl(value: ISurveyImpl): void; endLoadingFromJson(): void; /** * PanelModel or PageModel title property. * @description */ title: string; readonly locTitle: LocalizableString; readonly _showTitle: boolean; readonly _showDescription: boolean; /** * PanelModel or PageModel description property. It renders under title by using smaller font. Unlike the title, description can be empty. * @see title */ description: string; readonly locDescription: LocalizableString; locStrsChanged(): void; /** * The custom text that will be shown on required error. Use this property, if you do not want to show the default text. */ requiredErrorText: string; readonly <API key>: LocalizableString; getLocale(): string; getMarkdownHtml(text: string): string; getProcessedText(text: string): string; /** * A parent element. It is always null for the Page object and always not null for the Panel object. Panel object may contain Questions and other Panels. */ parent: PanelModelBase; readonly depth: number; /** * An expression that returns true or false. If it returns true the Panel becomes visible and if it returns false the Panel becomes invisible. The library runs the expression on survey start and on changing a question value. If the property is empty then visible property is used. * @see visible */ visibleIf: string; readonly cssClasses: any; protected readonly css: any; /** * A unique element identificator. It is generated automatically. */ id: string; /** * Returns true if the current object is Panel. Returns false if the current object is Page (a root Panel). */ readonly isPanel: boolean; getPanel(): IPanel; getLayoutType(): string; <API key>(layoutType: string): boolean; /** * Returns the list of all questions located in the Panel/Page, including in the nested Panels. * @see Question * @see elements */ readonly questions: Array<Question>; /** * Returns the question by its name * @param name the question name */ getQuestionByName(name: string): Question; /** * Retuns the element by its name. It works recursively. * @param name the element name */ getElementByName(name: string): IElement; <API key>(valueName: string): Question; /** * Returns question values on the current page */ getValue(): any; /** * Returns question comments on the current page */ getComments(): any; /** * Call this function to remove all question values from the current page/panel, that end-user will not be able to enter. * For example the value that doesn't exists in a radigroup/dropdown/checkbox choices or matrix rows/columns. * Please note, this function doesn't clear values for invisible questions or values that doesn't associated with questions. * @see Question.<API key> */ <API key>(): void; /** * Call this function to clear all errors in the panel / page and all its child elements (panels and questions) */ clearErrors(): void; /** * Returns the list of the elements in the object, Panel/Page. Elements can be questions or panels. The function doesn't return elements in the nested Panels. */ readonly elements: Array<IElement>; getElementsInDesign(includeHidden?: boolean): Array<IElement>; /** * Returns true if the current element belongs to the Panel/Page. It looks in nested Panels as well. * @param element * @see PanelModel */ containsElement(element: IElement): boolean; /** * Set this property to true, to require the answer at least in one question in the panel. */ isRequired: boolean; /** * Returns true, if there is an error on this Page or inside the current Panel * @param fireCallback set it to true, to show errors in UI * @param focusOnFirstError set it to true to focus on the first question that doesn't pass the validation */ hasErrors(fireCallback?: boolean, focusOnFirstError?: boolean, rec?: any): boolean; getErrorCustomText(text: string, error: SurveyError): string; protected hasErrorsCore(rec: any): void; protected getContainsErrors(): boolean; <API key>(): void; <API key>(withError?: boolean): Question; /** * Call it to focus the input on the first question */ focusFirstQuestion(): void; /** * Call it to focus the input of the first question that has an error. */ <API key>(): void; /** * Fill list array with the questions. * @param list * @param visibleOnly set it to true to get visible questions only */ addQuestionsToList(list: Array<IQuestion>, visibleOnly?: boolean, includingDesignTime?: boolean): void; /** * Fill list array with the panels. * @param list */ addPanelsIntoList(list: Array<IPanel>, visibleOnly?: boolean, includingDesignTime?: boolean): void; /** * Returns true if the current object is Page and it is the current page. */ readonly isActive: boolean; updateCustomWidgets(): void; /** * Set this property different from "default" to set the specific question title location for this panel/page. * @see SurveyModel.<API key> */ <API key>: string; <API key>(): string; protected getStartIndex(): string; <API key>(): string; <API key>(): string; protected readonly root: PanelModelBase; protected <API key>(): void; protected createRow(): QuestionRowModel; onSurveyLoad(): void; onFirstRendering(): void; readonly rows: Array<QuestionRowModel>; protected onRowsChanged(): void; protected onAddElement(element: IElement, index: number): void; protected onRemoveElement(element: IElement): void; protected <API key>(element: IElement, row: QuestionRowModel): void; elementWidthChanged(el: IElement): void; /** * Returns rendered title text or html. */ readonly processedTitle: string; protected getRenderedTitle(str: string): string; /** * Use it to get/set the object visibility. * @see visibleIf */ visible: boolean; protected onVisibleChanged(): void; /** * Returns true if object is visible or survey is in design mode right now. */ readonly isVisible: boolean; getIsPageVisible(exceptionQuestion: IQuestion): boolean; setVisibleIndex(index: number): number; protected <API key>(index: number): number; protected getPanelStartIndex(index: number): number; protected isContinueNumbering(): boolean; /** * Retuns true if readOnly property is true or survey is in display mode or parent panel/page is readOnly. * @see SurveyModel.model * @see readOnly */ readonly isReadOnly: boolean; protected onReadOnlyChanged(): void; updateElementCss(): void; /** * An expression that returns true or false. If it returns false the Panel/Page becomes read only and an end-user will not able to answer on qustions inside it. * The library runs the expression on survey start and on changing a question value. If the property is empty then readOnly property is used. * @see readOnly * @see isReadOnly */ enableIf: string; /** * Add an element into Panel or Page. Returns true if the element added successfully. Otherwise returns false. * @param element * @param index element index in the elements array */ addElement(element: IElement, index?: number): boolean; protected canAddElement(element: IElement): boolean; /** * Add a question into Panel or Page. Returns true if the question added successfully. Otherwise returns false. * @param question * @param index element index in the elements array */ addQuestion(question: Question, index?: number): boolean; /** * Add a panel into Panel or Page. Returns true if the panel added successfully. Otherwise returns false. * @param panel * @param index element index in the elements array */ addPanel(panel: PanelModel, index?: number): boolean; /** * Creates a new question and adds it at location of index, by default the end of the elements list. Returns null, if the question could not be created or could not be added into page or panel. * @param questionType the possible values are: "text", "checkbox", "dropdown", "matrix", "html", "matrixdynamic", "matrixdropdown" and so on. * @param name a question name * @param index element index in the elements array */ addNewQuestion(questionType: string, name?: string, index?: number): Question; /** * Creates a new panel and adds it into the end of the elements list. Returns null, if the panel could not be created or could not be added into page or panel. * @param name a panel name */ addNewPanel(name?: string): PanelModel; /** * Returns the index of element parameter in the elements list. * @param element question or panel */ indexOf(element: IElement): number; protected createNewPanel(name: string): PanelModel; /** * Remove an element (Panel or Question) from the elements list. * @param element * @see elements */ removeElement(element: IElement): boolean; /** * Remove question from the elements list. * @param question * @see elements * @see removeElement */ removeQuestion(question: Question): void; runCondition(values: HashTable<any>, properties: HashTable<any>): void; onAnyValueChanged(name: string): void; protected dragDropAddTarget(dragDropInfo: DragDropInfo): void; protected dragDropFindRow(findElement: ISurveyElement): QuestionRowModel; dragDropMoveElement(src: IElement, target: IElement, targetIndex: number): void; dispose(): void; } /** * A container element, similar to the Page objects. However, unlike the Page, Panel can't be a root. * It may contain questions and other panels. */ export declare class PanelModel extends PanelModelBase implements IElement { name: string; <API key>: () => void; minWidth?: string; maxWidth?: string; constructor(name?: string); getType(): string; onSurveyLoad(): void; readonly isPanel: boolean; /** * Get/set the page where the panel is located. */ page: IPage; delete(): void; /** * Set this property to "collapsed" to render only Panel title and expanded button and to "expanded" to render the collapsed button in the Panel caption */ state: string; /** * Returns true if the Panel is in the collapsed state * @see state * @see collapse * @see isExpanded */ readonly isCollapsed: boolean; /** * Returns true if the Panel is in the expanded state * @see state * @see expand * @see isCollapsed */ readonly isExpanded: boolean; /** * Collapse the Panel * @see state */ collapse(): void; /** * Expand the Panel * @see state */ expand(): void; /** * Move panel to a new container Page/Panel. Add as a last element if insertBefore parameter is not used or inserted into the given index, * if insert parameter is number, or before the given element, if the insertBefore parameter is a question or panel * @param container Page or Panel to where a question is relocated. * @param insertBefore Use it if you want to set the panel to a specific position. You may use a number (use 0 to insert int the beginning) or element, if you want to insert before this element. */ moveTo(container: IPanel, insertBefore?: any): boolean; /** * Returns the visible index of the panel in the survey. Commonly it is -1 and it doesn't show. * You have to set showNumber to true to show index/numbering for the Panel * @see showNumber */ readonly visibleIndex: number; /** * Set showNumber to true to start showing the number for this panel. * @see visibleIndex */ showNumber: boolean; /** * Gets or sets a value that specifies how the elements numbers inside panel are displayed. * * The following options are available: * * - `default` - display questions numbers as defined in parent panel or survey * - `onpanel` - display questions numbers, start numbering from beginning of this page * - `off` - turn off the numbering for questions titles * @see showNumber */ showQuestionNumbers: string; /** * Gets or sets the first question index for elements inside the panel. The first question index is '1.' by default and it is taken from survey.questionStartIndex property. * You may start it from '100' or from 'A', by setting '100' or 'A' to this property. * You can set the start index to "(1)" or "# A)" or "a)" to render question number as (1), # A) and a) accordingly. * @see survey.questionStartIndex */ questionStartIndex: string; <API key>(): string; /** * The property returns the question number. If question is invisible then it returns empty string. * If visibleIndex is 1, then no is 2, or 'B' if survey.questionStartIndex is 'A'. * @see SurveyModel.questionStartIndex */ readonly no: string; protected setNo(visibleIndex: number): void; protected <API key>(index: number): number; protected getPanelStartIndex(index: number): number; protected isContinueNumbering(): boolean; protected hasErrorsCore(rec: any): void; protected getRenderedTitle(str: string): string; /** * The Panel width. */ width: string; /** * The left indent. Set this property to increase the panel left indent. */ indent: number; /** * The inner indent. Set this property to increase the panel content margin. */ innerIndent: number; renderWidth: string; /** * The Panel renders on the new line if the property is true. If the property is false, the panel tries to render on the same line/row with a previous question/panel. */ startWithNewLine: boolean; /** * The right indent of the Panel. */ rightIndent: number; paddingLeft: string; innerPaddingLeft: string; paddingRight: string; <API key>(): void; readonly hasEditButton: boolean; cancelPreview(): void; protected onVisibleChanged(): void; } /** * The flow panel object. It is a container with flow layout where you can mix questions with mardown text. * */ export declare class FlowPanelModel extends PanelModel { static <API key>: string; <API key>: () => void; <API key>: (question: Question) => string; <API key>: () => string; constructor(name?: string); getType(): string; <API key>(): string; onSurveyLoad(): any; content: string; readonly locContent: LocalizableString; html: string; protected onContentChanged(): any; produceHtml(): string; getQuestionFromText(str: string): Question; protected getHtmlForQuestion(question: Question): string; protected getQuestionHtmlId(question: Question): string; protected onAddElement(element: IElement, index: number): void; protected onRemoveElement(element: IElement): void; dragDropMoveElement(src: IElement, target: IElement, targetIndex: number): void; <API key>(element: IElement): string; } /** * The page object. It has elements collection, that contains questions and panels. */ export declare class PageModel extends PanelModelBase implements IPage { name: string; constructor(name?: string); getType(): string; toString(): string; readonly isPage: boolean; delete(): void; onFirstRendering(): void; /** * The visible index of the page. It has values from 0 to visible page count - 1. * @see SurveyModel.visiblePages * @see SurveyModel.pages */ visibleIndex: number; /** * Returns true, if the page is started page in the survey. It can be shown on the start only and the end-user could not comeback to it after it passed it. */ readonly isStarted: boolean; readonly cssClasses: any; getIsPageVisible(exceptionQuestion: IQuestion): boolean; num: number; /** * Set this property to "hide" to make "Prev", "Next" and "Complete" buttons are invisible for this page. Set this property to "show" to make these buttons visible, even if survey <API key> property is false. * @see SurveyMode.<API key> */ <API key>: string; /** * The property returns true, if the page has been shown to the end-user. */ readonly wasShown: boolean; readonly hasShown: boolean; setWasShown(val: boolean): void; /** * The property returns true, if the elements are randomized on the page * @see hasShown * @see questionsOrder * @see SurveyModel.questionsOrder */ readonly <API key>: boolean; /** * Use this property to randomize questions. Set it to 'random' to randomize questions, 'initial' to keep them in the same order or 'default' to use the Survey questionsOrder property * @see SurveyModel.questionsOrder * @see <API key> */ questionsOrder: string; /** * Call it to scroll to the page top. */ scrollToTop(): void; /** * Time in seconds end-user spent on this page */ timeSpent: number; /** * Returns the list of all panels in the page */ getPanels(visibleOnly?: boolean, includingDesignTime?: boolean): Array<IPanel>; /** * The maximum time in seconds that end-user has to complete the page. If the value is 0 or less, the end-user has unlimited number of time to finish the page. * @see startTimer * @see SurveyModel.maxTimeToFinishPage */ maxTimeToFinish: number; protected onNumChanged(value: number): void; protected onVisibleChanged(): void; dragDropStart(src: IElement, target: IElement, nestedPanelDepth?: number): void; dragDropMoveTo(destination: ISurveyElement, isBottom?: boolean, isEdge?: boolean): boolean; dragDropFinish(isCancel?: boolean): IElement; } export interface IConditionObject { name: string; text: string; question: Question; } /** * A base class for all questions. */ export declare class Question extends SurveyElement implements IQuestion, IConditionRunner, ILocalizableOwner, IValidatorOwner { name: string; [index: string]: any; customWidgetData: { isNeedRender: boolean; }; focusCallback: () => void; surveyLoadCallback: () => void; <API key>: () => void; <API key>: () => void; <API key>: () => SurveyError; <API key>: () => string; <API key>: (question: Question, element: any) => any; protected isReadyValue: boolean; /** * The event is fired when isReady property of question is changed. * <br/> options.question - the question * <br/> options.isReady - current value of isReady * <br/> options.oldIsReady - old value of isReady */ onReadyChanged: Event<(sender: Question, options: any) => any, any>; isReadOnlyRenderDiv(): boolean; constructor(name: string); getValueName(): string; /** * Use this property if you want to store the question result in the name different from the question name. * Question name should be unique in the survey and valueName could be not unique. It allows to share data between several questions with the same valueName. * The library set the value automatically if the question.name property is not valid. For example, if it contains the period '.' symbol. * In this case if you set the question.name property to 'x.y' then the valueName becomes 'x y'. * Please note, this property is hidden for questions without input, for example html question. * @see name */ valueName: string; protected onValueNameChanged(oldValue: string): void; protected onNameChanged(oldValue: string): void; readonly isReady: boolean; /** * Get is question ready to use */ choicesLoaded(): void; /** * Get/set the page where the question is located. */ page: IPage; getPanel(): IPanel; delete(): void; readonly isFlowLayout: boolean; getLayoutType(): string; <API key>(layoutType: string): boolean; /** * Use it to get/set the question visibility. * @see visibleIf */ visible: boolean; protected onVisibleChanged(): void; /** * Use it to choose how other question values will be rendered in title if referenced in {}. * Please note, this property is hidden for question without input, for example html question. */ <API key>: boolean; /** * An expression that returns true or false. If it returns true the Question becomes visible and if it returns false the Question becomes invisible. The library runs the expression on survey start and on changing a question value. If the property is empty then visible property is used. * @see visible */ visibleIf: string; /** * Returns true if the question is visible or survey is in design mode right now. */ readonly isVisible: boolean; /** * Returns the visible index of the question in the survey. It can be from 0 to all visible questions count - 1 * The visibleIndex is -1 if the title is 'hidden' or hideNumber is true * @see titleLocation * @see hideNumber */ readonly visibleIndex: number; /** * Set hideNumber to true to stop showing the number for this question. The question will not be counter * @see visibleIndex * @see titleLocation */ hideNumber: boolean; /** * Returns true if the question may have a title located on the left */ readonly isAllowTitleLeft: boolean; /** * Returns the type of the object as a string as it represents in the json. */ getType(): string; /** * Move question to a new container Page/Panel. Add as a last element if insertBefore parameter is not used or inserted into the given index, * if insert parameter is number, or before the given element, if the insertBefore parameter is a question or panel * @param container Page or Panel to where a question is relocated. * @param insertBefore Use it if you want to set the question to a specific position. You may use a number (use 0 to insert int the beginning) or element, if you want to insert before this element. */ moveTo(container: IPanel, insertBefore?: any): boolean; setSurveyImpl(value: ISurveyImpl): void; <API key>(): any; <API key>(): any; /** * A parent element. It can be panel or page. */ parent: IPanel; protected onParentChanged(): void; /** * Returns false if the question doesn't have a title property, for example: QuestionHtmlModel, or titleLocation property equals to "hidden" * @see titleLocation */ readonly hasTitle: boolean; /** * Set this property different from "default" to set the specific question title location for this panel/page. * Please note, this property is hidden for questions without input, for example html question. * @see SurveyModel.<API key> */ titleLocation: string; /** * Return the title location based on question titleLocation property and <API key> of it's parents * @see titleLocation * @see PanelModelBase.<API key> * @see SurveyModel.<API key> */ getTitleLocation(): string; protected <API key>(): string; readonly hasTitleOnLeft: boolean; readonly hasTitleOnTop: boolean; readonly hasTitleOnBottom: boolean; readonly hasTitleOnLeftTop: boolean; readonly errorLocation: string; /** * Returns false if the question doesn't have an input element, for example: QuestionHtmlModel */ readonly hasInput: boolean; readonly inputId: string; /** * Question title. Use survey <API key> property to change the title question is rendered. If it is empty, then question name property is used. * @see SurveyModel.<API key> */ title: string; readonly locTitle: LocalizableString; /** * Question description. It renders under question title by using smaller font. Unlike the title, description can be empty. * Please note, this property is hidden for questions without input, for example html question. * @see title */ description: string; readonly locDescription: LocalizableString; /** * Question description location. By default, value is "default" and it depends on survey <API key> property * You may change it to "underInput" to render it under question input or "underTitle" to rendered it under title. * @see description * @see Survey.<API key> */ descriptionLocation: string; readonly <API key>: boolean; readonly <API key>: boolean; /** * The custom text that will be shown on required error. Use this property, if you do not want to show the default text. * Please note, this property is hidden for question without input, for example html question. */ requiredErrorText: string; readonly <API key>: LocalizableString; /** * Use it to get or set the comment value. */ commentText: string; readonly locCommentText: LocalizableString; /** * Returns a copy of question errors survey. For some questions like matrix and panel dynamic it includes the errors of nested questions. */ getAllErrors(): Array<SurveyError>; /** * The link to the custom widget. */ readonly customWidget: <API key>; updateCustomWidget(): void; readonly isCompositeQuestion: boolean; <API key>(el: any): void; afterRender(el: any): void; <API key>(el: any): void; /** * Returns the rendred question title. */ readonly processedTitle: string; /** * Returns the title after processing the question template. * @see SurveyModel.<API key> */ readonly fullTitle: string; readonly <API key>: string; readonly <API key>: boolean; readonly <API key>: boolean; readonly <API key>: boolean; /** * The Question renders on the new line if the property is true. If the property is false, the question tries to render on the same line/row with a previous question/panel. */ startWithNewLine: boolean; /** * Returns all css classes that used for rendering the question. You may use survey.<API key> event to override css classes for a question. * @see SurveyModel.<API key> */ readonly cssClasses: any; readonly cssRoot: string; protected setCssRoot(val: string): void; protected getCssRoot(cssClasses: any): string; readonly cssHeader: string; protected setCssHeader(val: string): void; protected getCssHeader(cssClasses: any): string; readonly cssContent: string; protected setCssContent(val: string): void; protected getCssContent(cssClasses: any): string; readonly cssTitle: string; protected setCssTitle(val: string): void; protected getCssTitle(cssClasses: any): string; readonly cssError: string; protected setCssError(val: string): void; protected getCssError(cssClasses: any): string; updateElementCss(): void; protected <API key>(cssClasses: any): void; protected updateCssClasses(res: any, css: any): void; protected getCssType(): string; /** * Use it to set the specific width to the question like css style (%, px, em etc). */ width: string; /** * The rendered width of the question. */ renderWidth: string; /** * Set it different from 0 to increase the left padding. */ indent: number; /** * Set it different from 0 to increase the right padding. */ rightIndent: number; paddingLeft: string; paddingRight: string; /** * Move the focus to the input of this question. * @param onError set this parameter to true, to focus the input with the first error, other wise the first input will be focused. */ focus(onError?: boolean): void; protected fireCallback(callback: () => void): void; getOthersMaxLength(): any; protected onCreating(): void; protected <API key>(): string; protected <API key>(): string; protected <API key>(textValue: <API key>): void; supportComment(): boolean; supportOther(): boolean; /** * Set this property to true, to make the question a required. If a user doesn't answer the question then a validation error will be generated. * Please note, this property is hidden for question without input, for example html question. */ isRequired: boolean; /** * An expression that returns true or false. If it returns true the Question becomes required and an end-user has to answer it. * If it returns false the Question then an end-user may not answer it the Question maybe empty. * The library runs the expression on survey start and on changing a question value. If the property is empty then isRequired property is used. * Please note, this property is hidden for question without input, for example html question. * @see isRequired */ requiredIf: string; /** * Set it to true, to add a comment for the question. */ hasComment: boolean; /** * The unique identificator. It is generated automatically. */ id: string; readonly ariaTitleId: string; readonly ariaRole: string; hasOther: boolean; protected hasOtherChanged(): void; readonly <API key>: boolean; /** * Retuns true if readOnly property is true or survey is in display mode or parent panel/page is readOnly. * @see SurveyModel.model * @see readOnly */ readonly isReadOnly: boolean; /** * An expression that returns true or false. If it returns false the Question becomes read only and an end-user will not able to answer on the qustion. The library runs the expression on survey start and on changing a question value. If the property is empty then readOnly property is used. * Please note, this property is hidden for question without input, for example html question. * @see readOnly * @see isReadOnly */ enableIf: string; /** * Run visibleIf and enableIf expressions. If visibleIf or/and enabledIf are not empty, then the results of performing the expression (true or false) set to the visible/readOnly properties. * @param values Typically survey results * @see visible * @see visibleIf * @see readOnly * @see enableIf */ runCondition(values: HashTable<any>, properties: HashTable<any>): void; /** * The property returns the question number. If question is invisible then it returns empty string. * If visibleIndex is 1, then no is 2, or 'B' if survey.questionStartIndex is 'A'. * @see SurveyModel.questionStartIndex */ readonly no: string; protected getStartIndex(): string; onSurveyLoad(): void; protected onSetData(): void; protected initDataFromSurvey(): void; protected <API key>(): void; /** * Get/Set the question value. * @see SurveyMode.setValue * @see SurveyMode.getValue */ value: any; clearValue(): void; createValueCopy(): any; <API key>(): void; readonly displayValue: any; protected updateDisplayValue(): any; /** * Return the question value as a display text. For example, for dropdown, it would return the item text instead of item value. * @param keysAsText Set this value to true, to return key (in matrices questions) as display text as well. * @param value use this parameter, if you want to get display value for this value and not question.value. It is undefined by default. */ getDisplayValue(keysAsText: boolean, value?: any): any; protected getDisplayValueCore(keyAsText: boolean, value: any): any; /** * Set the default value to the question. It will be assign to the question on loading the survey from JSON or adding a question to the survey or on setting this property of the value is empty. * Please note, this property is hidden for question without input, for example html question. */ defaultValue: any; /** * Returns question answer data as a plain object: with question title, name, value and displayValue. * For complex questions (like matrix, etc.) isNode flag is set to true and data contains array of nested objects (rows) * set options.includeEmpty to false if you want to skip empty answers */ getPlainData(options?: { includeEmpty?: boolean; <API key>?: boolean; calculations?: Array<{ propertyName: string; }>; }): any; /** * The correct answer on the question. Set this value if you are doing a quiz. * Please note, this property is hidden for question without input, for example html question. * @see SurveyModel.correctAnswers * @see SurveyModel.inCorrectAnswers */ correctAnswer: any; /** * Returns questions count: 1 for the non-matrix questions and all inner visible questions that has input(s) widgets for question of matrix types. * @see getQuizQuestions */ readonly quizQuestionCount: number; readonly correctAnswerCount: number; protected <API key>(): number; protected <API key>(): number; isAnswerCorrect(): boolean; <API key>(): void; <API key>(name: string, index: number): IQuestion; getDefaultValue(): any; protected isDefaultValueEmpty(): boolean; protected setDefaultValue(): void; /** * The question comment value. */ comment: string; protected getQuestionComment(): string; protected setQuestionComment(newValue: string): void; /** * Returns true if the question value is empty */ isEmpty(): boolean; isAnswered: boolean; protected updateIsAnswered(): void; protected getIsAnswered(): boolean; /** * The list of question validators. * Please note, this property is hidden for question without input, for example html question. */ validators: Array<SurveyValidator>; getValidators(): Array<SurveyValidator>; <API key>(): Array<string>; protected <API key>(supportedValidators: Array<string>): void; <API key>(objects: Array<IConditionObject>, context: any): void; getConditionJson(operator?: string, path?: string): any; /** * Returns true if there is a validation error(s) in the question. * @param fireCallback set it to true to show an error in UI. */ hasErrors(fireCallback?: boolean, rec?: any): boolean; /** * Returns the validation errors count. */ readonly currentErrorCount: number; /** * Returns the char/string for a required question. * @see SurveyModel.requiredText */ readonly requiredText: string; /** * Add error into the question error list. * @param error */ addError(error: SurveyError | string): void; /** * Remove a particular error from the question error list. * @param error */ removeError(error: SurveyError): void; protected canRunValidators(isOnValueChanged: boolean): boolean; protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void; protected hasRequiredError(): boolean; <API key>: (hasErrors: boolean) => void; readonly isRunningValidators: boolean; protected <API key>(): boolean; protected runValidators(): Array<SurveyError>; protected <API key>(): void; protected <API key>: boolean; protected setNewValue(newValue: any): void; protected <API key>: boolean; protected isTextValue(): boolean; readonly <API key>: boolean; readonly isInputTextUpdate: boolean; protected setNewValueInData(newValue: any): void; protected getValueCore(): any; protected setValueCore(newValue: any): void; protected valueFromData(val: any): any; protected valueToData(val: any): any; protected onValueChanged(): void; protected setNewComment(newValue: string): void; <API key>(newValue: any): void; <API key>(newValue: any): any; protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void; <API key>(newValue: any): void; setVisibleIndex(val: number): number; removeElement(element: IElement): boolean; <API key>(): boolean; <API key>(): boolean; /** * Call this function to remove values from the current question, that end-user will not be able to enter. * For example the value that doesn't exists in a radigroup/dropdown/checkbox choices or matrix rows/columns. */ <API key>(): void; <API key>(): void; /** * Call this function to clear all errors in the question */ clearErrors(): void; clearUnusedValues(): void; onAnyValueChanged(name: string): void; locOwner: ILocalizableOwner; /** * Returns the current survey locale * @see SurveyModel.locale */ getLocale(): string; getMarkdownHtml(text: string): string; getProcessedText(text: string): string; getErrorCustomText(text: string, error: SurveyError): string; getValidatorTitle(): string; validatedValue: any; getAllValues(): any; dispose(): void; } /** * A Model for non value question. This question doesn't add any new functionality. It hides some properties, including the value. */ export declare class QuestionNonValue extends Question { name: string; constructor(name: string); getType(): string; readonly hasInput: boolean; readonly hasTitle: boolean; getTitleLocation(): string; readonly hasComment: boolean; getAllErrors(): Array<SurveyError>; <API key>(): boolean; <API key>(objects: Array<IConditionObject>, context: any): void; getConditionJson(operator?: string, path?: string): any; } /** * A Model for an question that renders empty "div" tag. It used as a base class for some custom widgets */ export declare class QuestionEmptyModel extends Question { name: string; constructor(name: string); getType(): string; } /** * It is a base class for checkbox, dropdown and radiogroup questions. */ export declare class QuestionSelectBase extends Question { <API key>: () => void; /** * Use this property to fill the choices from a restful service. * @see choices */ choicesByUrl: ChoicesRestfull; constructor(name: string); getType(): string; <API key>(): boolean; <API key>(layoutType: string): boolean; /** * Returns the other item. By using this property, you may change programmatically it's value and text. * @see hasOther */ readonly otherItem: ItemValue; /** * Returns true if a user select the 'other' item. */ readonly isOtherSelected: boolean; /** * An expression that returns true or false. It runs against each choices item and if for this item it returns true, then the item is visible otherwise the item becomes invisible. Please use {item} to get the current item value in the expression. * @see visibleIf * @see choicesEnableIf */ choicesVisibleIf: string; /** * An expression that returns true or false. It runs against each choices item and if for this item it returns true, then the item is enabled otherwise the item becomes disabled. Please use {item} to get the current item value in the expression. * @see choicesVisibleIf */ choicesEnableIf: string; runCondition(values: HashTable<any>, properties: HashTable<any>): void; <API key>: boolean; protected setDefaultValue(): void; protected filterItems(): boolean; protected runItemsCondition(values: HashTable<any>, properties: HashTable<any>): boolean; protected <API key>(values: HashTable<any>, properties: HashTable<any>): any; protected getHasOther(val: any): boolean; readonly validatedValue: any; protected createRestfull(): ChoicesRestfull; protected getQuestionComment(): string; protected setQuestionComment(newValue: string): void; renderedValue: any; protected setQuestionValue(newValue: any): void; protected setNewValue(newValue: any): void; protected valueFromData(val: any): any; protected <API key>(val: any): any; protected rendredValueToData(val: any): any; protected <API key>(val: any): any; protected <API key>(val: any): any; protected hasUnknownValue(val: any, includeOther?: boolean): boolean; protected isValueDisabled(val: any): boolean; /** * If the <API key> is set, it is used to clear incorrrect values instead of default behaviour. */ <API key>: () => void; /** * The list of items. Every item has value and text. If text is empty, the value is rendered. The item text supports markdown. * @see choicesByUrl */ choices: Array<any>; /** * Set this property to true to hide the question if there is no visible choices. */ hideIfChoicesEmpty: boolean; keepIncorrectValues: boolean; /** * Please use survey.<API key> to change the behavior on the survey level. This property is depricated and invisible in Survey Creator. * By default the entered text in the others input in the checkbox/radiogroup/dropdown are stored as "question name " + "-Comment". The value itself is "question name": "others". Set this property to false, to store the entered text directly in the "question name" key. * Possible values are: "default", true, false * @see SurveyModel.<API key> */ <API key>: any; protected hasOtherChanged(): void; /** * Use this property to render items in a specific order: "asc", "desc", "random". Default value is "none". */ choicesOrder: string; /** * Use this property to set the different text for other item. */ otherText: string; readonly locOtherText: LocalizableString; /** * Use this property to set the place holder text for other or comment field . */ otherPlaceHolder: string; readonly locOtherPlaceHolder: LocalizableString; /** * The text that shows when the other item is choosed by the other input is empty. */ otherErrorText: string; readonly locOtherErrorText: LocalizableString; /** * The list of items as they will be rendered. If needed items are sorted and the other item is added. * @see hasOther * @see choicesOrder * @see enabledChoices */ readonly visibleChoices: Array<ItemValue>; /** * The list of enabled items as they will be rendered. The disabled items are not included * @see hasOther * @see choicesOrder * @see visibleChoices */ readonly enabledChoices: Array<ItemValue>; protected <API key>(): void; protected <API key>(): boolean; protected addToVisibleChoices(items: Array<ItemValue>): void; getPlainData(options?: { includeEmpty?: boolean; <API key>?: boolean; calculations?: Array<{ propertyName: string; }>; }): any; /** * Returns the text for the current value. If the value is null then returns empty string. If 'other' is selected then returns the text for other value. */ protected getDisplayValueCore(keysAsText: boolean, value: any): any; protected <API key>(items: ItemValue[], val: any): any; protected readonly activeChoices: Array<ItemValue>; protected getChoices(): Array<ItemValue>; supportComment(): boolean; supportOther(): boolean; protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void; setSurveyImpl(value: ISurveyImpl): void; protected <API key>(): boolean; onSurveyLoad(): void; onAnyValueChanged(name: string): void; protected onBeforeSendRequest(): void; protected <API key>(array: Array<ItemValue>): void; protected <API key>(): void; <API key>(): void; <API key>(): void; protected <API key>(): void; protected <API key>(val: any): boolean; protected <API key>(): void; clearUnusedValues(): void; getColumnClass(): any; getLabelClass(isChecked: boolean): any; <API key>(isChecked: boolean): any; readonly columns: ItemValue[][]; readonly hasColumns: boolean; choicesLoaded(): void; } /** * A base class for checkbox and radiogroup questions. It introduced a colCount property. */ export declare class <API key> extends QuestionSelectBase { name: string; <API key>: () => void; constructor(name: string); /** * The number of columns for radiogroup and checkbox questions. Items are rendred in one line if the value is 0. */ colCount: number; protected onParentChanged(): void; } /** * A Model for a checkbox question */ export declare class <API key> extends <API key> { name: string; constructor(name: string); readonly ariaRole: string; getType(): string; protected onCreating(): void; protected <API key>(): string; /** * Returns the select all item. By using this property, you may change programmatically it's value and text. * @see hasSelectAll */ readonly selectAllItem: ItemValue; /** * Returns the none item. By using this property, you may change programmatically it's value and text. * @see hasNone */ readonly noneItem: ItemValue; /** * Use this property to set the different text for none item. */ noneText: string; readonly locNoneText: LocalizableString; /** * Use this property to set the different text for Select All item. */ selectAllText: string; readonly locSelectAllText: LocalizableString; /** * Set this property to true, to show the "Select All" item on the top. If end-user checks this item, then all items are checked. */ hasSelectAll: boolean; /** * Returns true if all items are selected * @see toggleSelectAll */ isAllSelected: boolean; /** * It will select all items, except other and none. If all items have been already selected then it will clear the value * @see isAllSelected * @see selectAll */ toggleSelectAll(): void; /** * Select all items, except other and none. */ selectAll(): void; /** * Set this property to true, to show the "None" item on the bottom. If end-user checks this item, all other items would be unchecked. */ hasNone: boolean; /** * Returns true if item is checked * @param item checkbox item value */ isItemSelected(item: ItemValue): boolean; protected setNewValue(newValue: any): void; protected <API key>(): boolean; protected addToVisibleChoices(items: Array<ItemValue>): void; protected getDisplayValueCore(keysAsText: boolean, value: any): any; protected <API key>(): void; protected <API key>(): void; getConditionJson(operator?: string, path?: string): any; isAnswerCorrect(): boolean; protected <API key>(): void; protected getHasOther(val: any): boolean; protected valueFromData(val: any): any; protected <API key>(val: any): any; protected <API key>(val: any): any; protected hasUnknownValue(val: any, includeOther?: boolean): boolean; protected <API key>(supportedValidators: Array<string>): void; } /** * A Model for a comment question */ export declare class <API key> extends Question { name: string; constructor(name: string); protected isTextValue(): boolean; /** * The maximim text length. If it is -1, defaul value, then the survey maxTextLength property will be used. * If it is 0, then the value is unlimited * @see SurveyModel.maxTextLength */ maxLength: number; getMaxLength(): any; /** * Use this property to set the input place holder. */ placeHolder: string; readonly locPlaceHolder: LocalizableString; /** * The html rows attribute. */ rows: number; /** * The html cols attribute. */ cols: number; getType(): string; isEmpty(): boolean; protected <API key>(supportedValidators: Array<string>): void; } /** * A Model for a dropdown question */ export declare class <API key> extends QuestionSelectBase { name: string; constructor(name: string); /** * This flag controls whether to show options caption item ('Choose...'). */ showOptionsCaption: boolean; /** * Use this property to set the options caption different from the default value. The default value is taken from localization strings. */ optionsCaption: string; readonly locOptionsCaption: LocalizableString; getType(): string; readonly selectedItem: ItemValue; <API key>(): boolean; protected getChoices(): Array<ItemValue>; /** * Use this and choicesMax property to automatically add choices. For example choicesMin = 1 and choicesMax = 10 will generate ten additional choices from 1 to 10. * @see choicesMax * @see choicesStep */ choicesMin: number; /** * Use this and choicesMax property to automatically add choices. For example choicesMin = 1 and choicesMax = 10 will generate ten additional choices from 1 to 10. * @see choicesMin * @see choicesStep */ choicesMax: number; /** * The default value is 1. It tells the value of the iterator between choicesMin and choicesMax properties. * If choicesMin = 10, choicesMax = 30 and choicesStep = 10 then you will have only three additional choices: [10, 20, 30]. * @see choicesMin * @see choicesMax */ choicesStep: number; } export declare class QuestionFactory { static Instance: QuestionFactory; static readonly DefaultChoices: string[]; static readonly DefaultColums: string[]; static readonly DefaultRows: string[]; registerQuestion(questionType: string, questionCreator: (name: string) => Question): void; unregisterElement(elementType: string): void; clear(): void; getAllTypes(): Array<string>; createQuestion(questionType: string, name: string): Question; } export declare class ElementFactory { static Instance: ElementFactory; registerElement(elementType: string, elementCreator: (name: string) => IElement): void; clear(): void; unregisterElement(elementType: string, <API key>?: boolean): void; getAllTypes(): Array<string>; createElement(elementType: string, name: string): IElement; } /** * A Model for a file question */ export declare class QuestionFileModel extends Question { name: string; /** * The event is fired after question state has been changed. * <br/> sender the question object that fires the event * <br/> options.state new question state value. */ onStateChanged: Event<(sender: QuestionFileModel, options: any) => any, any>; previewValue: any[]; currentState: string; constructor(name: string); getType(): string; <API key>(): void; /** * Set it to true, to show the preview for the image files. */ showPreview: boolean; /** * Set it to true, to allow select multiple files. */ allowMultiple: boolean; /** * The image height. */ imageHeight: string; /** * The image width. */ imageWidth: string; acceptedTypes: string; /** * Set it to false if you do not want to serialize file content as text in the survey.data. * In this case, you have to write the code onUploadFiles event to store the file content. * @see SurveyModel.onUploadFiles */ storeDataAsText: boolean; /** * Set it to true if you want to wait until files will be uploaded to your server. */ waitForUpload: boolean; /** * Set it to false if you want to disable images preview. */ allowImagesPreview: boolean; /** * Use this property to setup the maximum allowed file size. */ maxSize: number; /** * Use this property to setup confirmation to remove file. */ <API key>: boolean; /** * The remove file confirmation message. */ <API key>(fileName: string): string; /** * The remove all files confirmation message. */ readonly <API key>: string; /** * The no file chosen caption for modern theme. */ readonly noFileChosenCaption: string; /** * The choose files button caption for modern theme. */ readonly chooseButtonCaption: string; /** * The clean files button caption. */ readonly cleanButtonCaption: string; /** * The remove file button caption. */ readonly removeFileCaption: string; /** * The input title value. */ readonly inputTitle: string; /** * Clear value programmatically. */ clear(doneCallback?: () => void): void; /** * Remove file item programmatically. */ removeFile(content: { name: string; }): void; /** * Load multiple files programmatically. * @param files */ loadFiles(files: File[]): void; canPreviewImage(fileItem: any): boolean; protected setQuestionValue(newValue: any): void; protected onCheckForErrors(errors: Array<SurveyError>, isOnValueChanged: boolean): void; protected stateChanged(state: string): void; getPlainData(options?: { includeEmpty?: boolean; calculations?: Array<{ propertyName: string; }>; }): any; supportComment(): boolean; } /** * A Model for html question. Unlike other questions it doesn't have value and title. */ export declare class QuestionHtmlModel extends QuestionNonValue { name: string; constructor(name: string); getType(): string; readonly isCompositeQuestion: boolean; /** * Set html to display it */ html: string; readonly locHtml: LocalizableString; readonly processedHtml: string; } /** * A Model for a radiogroup question. */ export declare class <API key> extends <API key> { name: string; constructor(name: string); readonly ariaRole: string; getType(): string; protected <API key>(): string; readonly selectedItem: ItemValue; /** * Show "clear button" flag. */ showClearButton: boolean; readonly canShowClearButton: boolean; readonly clearButtonCaption: any; <API key>(): boolean; } /** * A Model for a rating question. */ export declare class QuestionRatingModel extends Question { name: string; <API key>: () => void; constructor(name: string); onSurveyLoad(): void; /** * The list of rate items. Every item has value and text. If text is empty, the value is rendered. The item text supports markdown. If it is empty the array is generated by using rateMin, rateMax and rateStep properties. * @see rateMin * @see rateMax * @see rateStep */ rateValues: Array<any>; /** * This property is used to generate rate values if rateValues array is empty. It is the first value in the rating. The default value is 1. * @see rateValues * @see rateMax * @see rateStep */ rateMin: number; /** * This property is used to generate rate values if rateValues array is empty. It is the last value in the rating. The default value is 5. * @see rateValues * @see rateMin * @see rateStep */ rateMax: number; /** * This property is used to generate rate values if rateValues array is empty. It is the step value. The number of rate values are (rateMax - rateMin) / rateStep. The default value is 1. * @see rateValues * @see rateMin * @see rateMax */ rateStep: number; protected getDisplayValueCore(keysAsText: boolean, value: any): any; readonly visibleRateValues: ItemValue[]; getType(): string; <API key>(): boolean; supportComment(): boolean; supportOther(): boolean; /** * The description of minimum (first) item. */ minRateDescription: string; readonly <API key>: LocalizableString; /** * The description of maximum (last) item. */ maxRateDescription: string; readonly <API key>: LocalizableString; } /** * A Model for expression question. It is a read-only question. It calculates value based on epxression property. */ export declare class <API key> extends Question { name: string; constructor(name: string); getType(): string; readonly hasInput: boolean; /** * Use this property to display the value in your own format. Make sure you have "{0}" substring in your string, to display the actual value. */ format: string; readonly locFormat: LocalizableString; /** * The Expression that used to calculate the question value. You may use standard operators like +, -, * and /, squares (). Here is the example of accessing the question value {questionname}. * <br/>Example: "({quantity} * {price}) * (100 - {discount}) / 100" */ expression: string; locCalculation(): void; unlocCalculation(): void; runCondition(values: HashTable<any>, properties: HashTable<any>): void; /** * The maximum number of fraction digits to use if displayStyle is not "none". Possible values are from 0 to 20. The default value is -1 and it means that this property is not used. */ <API key>: number; /** * The minimum number of fraction digits to use if displayStyle is not "none". Possible values are from 0 to 20. The default value is -1 and it means that this property is not used. */ <API key>: number; protected getDisplayValueCore(keysAsText: boolean, value: any): any; /** * You may set this property to "decimal", "currency", "percent" or "date". If you set it to "currency", you may use the currency property to display the value in currency different from USD. * @see currency */ displayStyle: string; /** * Use it to display the value in the currency differen from USD. The displayStype should be set to "currency". * @see displayStyle */ currency: string; useGrouping: boolean; protected getValueAsStr(val: any): string; } export declare function getCurrecyCodes(): Array<string>; /** * A Model for an input text question. */ export declare class QuestionTextModel extends Question { name: string; constructor(name: string); protected isTextValue(): boolean; getType(): string; /** * Use this property to change the default input type. */ inputType: string; getValidators(): Array<SurveyValidator>; <API key>(layoutType: string): boolean; /** * The maximim text length. If it is -1, defaul value, then the survey maxTextLength property will be used. * If it is 0, then the value is unlimited * @see SurveyModel.maxTextLength */ maxLength: number; getMaxLength(): any; /** * The text input size */ size: number; /** * The minimum value */ min: string; /** * The maximum value */ max: string; /** * The step value */ step: string; isEmpty(): boolean; <API key>(): boolean; <API key>(): boolean; /** * The input place holder. */ placeHolder: string; readonly locPlaceHolder: LocalizableString; protected canRunValidators(isOnValueChanged: boolean): boolean; protected setNewValue(newValue: any): void; protected correctValueType(newValue: any): any; protected <API key>(supportedValidators: Array<string>): void; } /** * A Model for a boolean question. */ export declare class <API key> extends Question { name: string; constructor(name: string); getType(): string; <API key>(layoutType: string): boolean; /** * Returns true if the question check will be rendered in indeterminate mode. value is empty. */ readonly isIndeterminate: boolean; readonly hasTitle: boolean; /** * Get/set question value in 3 modes: indeterminate (value is empty), true (check is set) and false (check is unset). * @see valueTrue * @see valueFalse */ checkedValue: any; /** * Set the default state of the check: "indeterminate" - default (value is empty/null), "true" - value equals valueTrue or true, "false" - value equals valueFalse or false. */ defaultValue: any; getDefaultValue(): any; readonly locTitle: LocalizableString; /** * The checkbox label. If it is empty and showTitle is false then title is rendered * @see showTitle * @see title */ label: string; readonly locLabel: LocalizableString; readonly locDisplayLabel: LocalizableString; /** * Set this property, if you want to have a different label for state when check is set. */ labelTrue: any; readonly locLabelTrue: LocalizableString; /** * Set this property, if you want to have a different label for state when check is unset. */ labelFalse: any; readonly locLabelFalse: LocalizableString; /** * Set this property to true to show the question title. It is hidden by default. */ showTitle: boolean; /** * Set this property, if you want to have a different value from true when check is set. */ valueTrue: any; /** * Set this property, if you want to have a different value from false when check is unset. */ valueFalse: any; protected setDefaultValue(): void; } /** * A Model for a select image question. */ export declare class <API key> extends <API key> { name: string; constructor(name: string); getType(): string; <API key>(): boolean; protected getItemValueType(): string; readonly isCompositeQuestion: boolean; /** * Multi select option. If set to true, then allows to select multiple images. */ multiSelect: boolean; /** * Returns true if item is checked * @param item image picker item value */ isItemSelected(item: ItemValue): boolean; <API key>(): void; /** * Show label under the image. */ showLabel: boolean; endLoadingFromJson(): void; protected getValueCore(): any; protected <API key>(val: any): any; protected <API key>(val: any): any; /** * The image height. */ imageHeight: string; /** * The image width. */ imageWidth: string; /** * The image fit mode. */ imageFit: string; /** * The content mode. */ contentMode: string; } /** * A Model for image question. This question hasn't any functionality and can be used to improve the appearance of the survey. */ export declare class QuestionImageModel extends QuestionNonValue { name: string; constructor(name: string); getType(): string; readonly isCompositeQuestion: boolean; /** * The image URL. */ imageLink: string; /** * The image height. */ imageHeight: string; /** * The image width. */ imageWidth: string; /** * The image fit mode. */ imageFit: string; /** * The content mode. */ contentMode: string; } /** * A Model for signature pad question. */ export declare class <API key> extends Question { name: string; protected getCssRoot(cssClasses: any): string; constructor(name: string); getType(): string; <API key>(el: any): void; <API key>(el: any): void; initSignaturePad(el: HTMLElement): void; destroySignaturePad(el: HTMLElement): void; /** * Use it to set the specific width for the signature pad. */ width: string; /** * Use it to set the specific height for the signature pad. */ height: string; /** * Use it to clear content of the signature pad. */ allowClear: boolean; /** * Use it to set pen color for the signature pad. */ penColor: string; /** * The clear signature button caption. */ readonly clearButtonCaption: string; } export interface <API key> { getItemIndex(item: ISurveyData): number; getPanelItemData(item: ISurveyData): any; setPanelItemData(item: ISurveyData, name: string, val: any): any; <API key>(name: string, panelIndex: number): Question; getSurvey(): ISurvey; getRootData(): ISurveyData; } export declare class <API key> implements ISurveyData, ISurveyImpl, ITextProcessor { static ItemVariableName: string; static IndexVariableName: string; constructor(data: <API key>, panel: PanelModel); readonly panel: PanelModel; setSurveyImpl(): void; getValue(name: string): any; setValue(name: string, newValue: any): void; getVariable(name: string): any; setVariable(name: string, newValue: any): void; getComment(name: string): string; setComment(name: string, newValue: string, locNotification: any): void; getAllValues(): any; getFilteredValues(): any; <API key>(): any; geSurveyData(): ISurveyData; getSurvey(): ISurvey; getTextProcessor(): ITextProcessor; processText(text: string, returnDisplayValue: boolean): string; processTextEx(text: string, returnDisplayValue: boolean): any; } export declare class <API key> implements ISurveyImpl { data: <API key>; constructor(data: <API key>); geSurveyData(): ISurveyData; getSurvey(): ISurvey; getTextProcessor(): ITextProcessor; } /** * A Model for a panel dymanic question. You setup the template panel, but adding elements (any question or a panel) and assign a text to it's title, and this panel will be used as a template on creating dynamic panels. The number of panels is defined by panelCount property. * An end-user may dynamically add/remove panels, unless you forbidden this. */ export declare class <API key> extends Question implements <API key> { name: string; <API key>: () => void; <API key>: () => void; <API key>: () => void; constructor(name: string); setSurveyImpl(value: ISurveyImpl): void; getType(): string; readonly isCompositeQuestion: boolean; <API key>(): void; readonly isAllowTitleLeft: boolean; removeElement(element: IElement): boolean; /** * The template Panel. This panel is used as a template on creatign dynamic panels * @see templateElements * @see templateTitle * @see panelCount */ readonly template: PanelModel; getPanel(): IPanel; /** * The template Panel elements, questions and panels. * @see templateElements * @see template * @see panelCount */ readonly templateElements: Array<IElement>; /** * The template Panel title property. * @see templateElements * @see template * @see panelCount */ templateTitle: string; readonly locTemplateTitle: LocalizableString; /** * The template Panel description property. * @see templateElements * @see template * @see panelCount * @see templateTitle */ templateDescription: string; readonly <API key>: LocalizableString; protected readonly items: Array<ISurveyData>; /** * The array of dynamic panels created based on panel template * @see template * @see panelCount */ readonly panels: Array<PanelModel>; /** * The index of current active dynamical panel when the renderMode is not "list". If there is no dymamic panel (panelCount = 0) or renderMode equals "list" it returns -1, otherwise it returns a value from 0 to panelCount - 1. * @see currentPanel * @see panels * @see panelCount * @see renderMode */ currentIndex: number; /** * The current active dynamical panel when the renderMode is not "list". If there is no dymamic panel (panelCount = 0) or renderMode equals "list" it returns null. * @see currenIndex * @see panels * @see panelCount * @see renderMode */ readonly currentPanel: PanelModel; /** * Set it to true, to show a confirmation dialog on removing a panel * @see ConfirmDeleteText */ confirmDelete: boolean; /** * Set it to a question name used in the template panel and the library shows duplication error, if there are same values in different panels of this question. * @see keyDuplicationError */ keyName: string; /** * Use this property to change the default text showing in the confirmation delete dialog on removing a panel. */ confirmDeleteText: string; readonly <API key>: LocalizableString; /** * The duplication value error text. Set it to show the text different from the default. * @see keyName */ keyDuplicationError: string; readonly <API key>: LocalizableString; /** * Use this property to change the default previous button text. Previous button shows the previous panel, change the currentPanel, when the renderMode doesn't equal to "list". * @see currentPanel * @see currentIndex * @see renderMode */ panelPrevText: string; readonly locPanelPrevText: LocalizableString; /** * Use this property to change the default next button text. Next button shows the next panel, change the currentPanel, when the renderMode doesn't equal to "list". * @see currentPanel * @see currentIndex * @see renderMode */ panelNextText: string; readonly locPanelNextText: LocalizableString; /** * Use this property to change the default value of add panel button text. */ panelAddText: string; readonly locPanelAddText: LocalizableString; /** * Use this property to change the default value of remove panel button text. */ panelRemoveText: string; readonly locPanelRemoveText: LocalizableString; /** * Returns true when the renderMode equals to "progressTop" or "progressTopBottom" */ readonly <API key>: boolean; /** * Returns true when the renderMode equals to "progressBottom" or "progressTopBottom" */ readonly <API key>: boolean; /** * Returns true when currentIndex is more than 0. * @see currenIndex * @see currenPanel */ readonly isPrevButtonShowing: boolean; /** * Returns true when currentIndex is more than or equal 0 and less then panelCount - 1. * @see currenIndex * @see currenPanel * @see panelCount */ readonly isNextButtonShowing: boolean; /** * Returns true when showRangeInProgress equals to true, renderMode doesn't equal to "list" and panelCount is >= 2. */ readonly isRangeShowing: boolean; getElementsInDesign(includeHidden?: boolean): Array<IElement>; protected getValueCore(): any; protected setValueCore(newValue: any): void; /** * Use this property to get/set the number of dynamic panels. * @see template * @see minPanelCount * @see maxPanelCount * @see addPanel * @see removePanel * @see removePanelUI */ panelCount: number; /** * Use this property to allow the end-user to collapse/expand the panels. It works only if the renderMode property equals to "list" and templateTitle property is not empty. The following values are available: * <br/> default - the default value. User can't collpase/expand panels * <br/> expanded - User can collpase/expand panels and all panels are expanded by default * <br/> collapsed - User can collpase/expand panels and all panels are collapsed by default * <br/> firstExpanded - User can collpase/expand panels. The first panel is expanded and others are collapsed * @see renderMode * @see templateTitle */ panelsState: string; /** * The minimum panel count. A user could not delete a panel if the panelCount equals to minPanelCount * @see panelCount * @see maxPanelCount */ minPanelCount: number; /** * The maximum panel count. A user could not add a panel if the panelCount equals to maxPanelCount * @see panelCount * @see minPanelCount */ maxPanelCount: number; /** * Set this property to false to hide the 'Add New' button * @see allowRemovePanel */ allowAddPanel: boolean; /** * Set this property to false to hide the 'Remove' button * @see allowAddPanel */ allowRemovePanel: boolean; /** * Set this property different from "default" to set the specific question title location for the template questions. * @see SurveyModel.<API key> * @see PanelModelBase.<API key> */ <API key>: string; /** * Use this property to show/hide the numbers in titles in questions inside a dynamic panel. * By default the value is "off". You may set it to "onPanel" and the first question inside a dynamic panel will start with 1 or "onSurvey" to include nested questions in dymamic panels into global survey question numbering. */ showQuestionNumbers: string; /** * Shows the range from 1 to panelCount when renderMode doesn't equal to "list". Set to false to hide this element. * @see panelCount * @see renderMode */ showRangeInProgress: boolean; /** * By default the property equals to "list" and all dynamic panels are rendered one by one on the page. You may change it to: "progressTop", "progressBottom" or "progressTopBottom" to render only one dynamic panel at once. The progress and navigation elements can be rendred on top, bottom or both. */ renderMode: string; /** * Returns true when renderMode equals to "list". * @see renderMode */ readonly isRenderModeList: boolean; setVisibleIndex(value: number): number; /** * Returns true when an end user may add a new panel. The question is not read only and panelCount less than maxPanelCount * @see isReadOnly * @see panelCount * @see maxPanelCount */ readonly canAddPanel: boolean; /** * Returns true when an end user may remove a panel. The question is not read only and panelCount is more than minPanelCount * @see isReadOnly * @see panelCount * @see minPanelCount */ readonly canRemovePanel: boolean; protected rebuildPanels(): void; /** * If it is not empty, then this value is set to every new panel, including panels created initially, unless the defaultValue is not empty * @see defaultValue * @see <API key> */ defaultPanelValue: any; /** * Set it to true to copy the value into new added panel from the last panel. If defaultPanelValue is set and this property equals to true, * then the value for new added panel is merging. * @see defaultValue * @see defaultPanelValue */ <API key>: boolean; protected isDefaultValueEmpty(): boolean; protected setDefaultValue(): void; isEmpty(): boolean; /** * Add a new dynamic panel based on the template Panel. It checks if canAddPanel returns true and then calls addPanel method. * @see template * @see panelCount * @see panels * @see canAddPanel */ addPanelUI(): PanelModel; /** * Add a new dynamic panel based on the template Panel. * @see template * @see panelCount * @see panels */ addPanel(): PanelModel; /** * Call removePanel function. Do nothing is canRemovePanel returns false. If confirmDelete set to true, it shows the confirmation dialog first. * @param value a panel or panel index * @see removePanel * @see confirmDelete * @see confirmDeleteText * @see canRemovePanel * */ removePanelUI(value: any): void; /** * Goes to the next panel in the PanelDynamic * */ goToNextPanel(): void; /** * Goes to the previous panel in the PanelDynamic * */ goToPrevPanel(): void; /** * Removes a dynamic panel from the panels array. * @param value a panel or panel index * @see panels * @see template */ removePanel(value: any): void; locStrsChanged(): void; <API key>(): void; clearErrors(): void; <API key>(name: string, index: number): IQuestion; <API key>(name: string, panelIndex: number): Question; <API key>(objects: Array<IConditionObject>, context: any): void; getConditionJson(operator?: string, path?: string): any; protected onReadOnlyChanged(): void; onSurveyLoad(): void; onFirstRendering(): void; runCondition(values: HashTable<any>, properties: HashTable<any>): void; protected runPanelsCondition(values: HashTable<any>, properties: HashTable<any>): void; onAnyValueChanged(name: string): void; hasErrors(fireCallback?: boolean, rec?: any): boolean; protected getContainsErrors(): boolean; protected getIsAnswered(): boolean; <API key>(): void; protected <API key>(): boolean; getAllErrors(): Array<SurveyError>; protected getDisplayValueCore(keysAsText: boolean, value: any): any; protected createNewPanel(): PanelModel; protected <API key>(): PanelModel; protected <API key>(): PanelModel; setQuestionValue(newValue: any): void; <API key>(newValue: any): void; protected onSetData(): void; getItemIndex(item: ISurveyData): number; getPanelItemData(item: ISurveyData): any; setPanelItemData(item: ISurveyData, name: string, val: any): void; getSurvey(): ISurvey; getRootData(): ISurveyData; getPlainData(options?: { includeEmpty?: boolean; calculations?: Array<{ propertyName: string; }>; }): any; updateElementCss(): void; readonly progressText: string; } export declare var <API key>: { setTimeout: (func: () => any) => number; clearTimeout: (timerId: number) => void; }; export declare class SurveyTimer { static readonly instance: SurveyTimer; onTimer: Event<() => any, any>; start(func?: () => any): void; stop(func?: () => any): void; doTimer(): void; } /** * The `Survey` object contains information about the survey, Pages, Questions, flow logic and etc. */ export declare class SurveyModel extends Base implements ISurvey, ISurveyData, ISurveyImpl, ISurveyTriggerOwner, ISurveyErrorOwner, ILocalizableOwner { [index: string]: any; static platform: string; readonly platformName: string; /** * You can display an additional field (comment field) for the most of questions; users can enter additional comments to their response. * The comment field input is saved as `'question name' + 'commentPrefix'`. * @see data * @see Question.hasComment */ commentPrefix: string; /** * The event is fired before the survey is completed and the `onComplete` event is fired. You can prevent the survey from completing by setting `options.allowComplete` to `false` * <br/> `sender` - the survey object that fires the event. * <br/> `options.allowComplete` - Specifies whether a user can complete a survey. Set this property to `false` to prevent the survey from completing. The default value is `true`. * @see onComplete */ onCompleting: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired after a user clicks the 'Complete' button and finishes a survey. Use this event to send the survey data to your web server. * <br/> `sender` - the survey object that fires the event. * <br/> `options.showDataSaving(text)` - call this method to show that the survey is saving survey data on your server. The `text` is an optional parameter to show a custom message instead of default. * <br/> `options.showDataSavingError(text)` - call this method to show that an error occurred while saving the data on your server. If you want to show a custom error, use an optional `text` parameter. * <br/> `options.<API key>(text)` - call this method to show that the data was successfully saved on the server. * <br/> `options.showDataSavingClear` - call this method to hide the text about the saving progress. * @see data * @see <API key> * @see completeLastPage * @see surveyPostId */ onComplete: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired after a user clicks the 'Complete' button. The event allows you to specify the URL opened after completing a survey. * Specify the `navigateToUrl` property to make survey navigate to another url. * <br/> `sender` - the survey object that fires the event. * <br/> `options.url` - Specifies a URL opened after completing a survey. Set this property to an empty string to cancel the navigation and show the completed survey page. * @see navigateToUrl * @see <API key> */ onNavigateToUrl: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired after the survey changed it's state from "starting" to "running". The "starting" state means that survey shows the started page. * The `firstPageIsStarted` property should be set to `true`, if you want to display a start page in your survey. In this case, an end user should click the "Start" button to start the survey. * @see firstPageIsStarted */ onStarted: Event<(sender: SurveyModel) => any, any>; /** * The event is fired on clicking the 'Next' button if the `<API key>` is set to `true`. You can use it to save the intermediate results, for example, if your survey is large enough. * <br/> `sender` - the survey object that fires the event. * @see <API key> */ onPartialSend: Event<(sender: SurveyModel) => any, any>; /** * The event is fired before the current page changes to another page. Typically it happens when a user click the 'Next' or 'Prev' buttons. * <br/> `sender` - the survey object that fires the event. * <br/> `option.oldCurrentPage` - the previous current/active page. * <br/> `option.newCurrentPage` - a new current/active page. * <br/> `option.allowChanging` - set it to `false` to disable the current page changing. It is `true` by default. * <br/> `option.isNextPage` - commonly means, that end-user press the next page button. In general, it means that options.newCurrentPage is the next page after options.oldCurrentPage * <br/> `option.isPrevPage` - commonly means, that end-user press the previous page button. In general, it means that options.newCurrentPage is the previous page before options.oldCurrentPage * @see currentPage * @see currentPageNo * @see nextPage * @see prevPage * @see completeLastPage * @see <API key> **/ <API key>: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired when the current page has been changed to another page. Typically it happens when a user click on 'Next' or 'Prev' buttons. * <br/> `sender` - the survey object that fires the event. * <br/> `option.oldCurrentPage` - a previous current/active page. * <br/> `option.newCurrentPage` - a new current/active page. * <br/> `option.isNextPage` - commonly means, that end-user press the next page button. In general, it means that options.newCurrentPage is the next page after options.oldCurrentPage * <br/> `option.isPrevPage` - commonly means, that end-user press the previous page button. In general, it means that options.newCurrentPage is the previous page before options.oldCurrentPage * @see currentPage * @see currentPageNo * @see nextPage * @see prevPage * @see completeLastPage * @see <API key> */ <API key>: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired before the question value (answer) is changed. It can be done via UI by a user or programmatically on calling the `setValue` method. * <br/> `sender` - the survey object that fires the event. * <br/> `options.name` - the value name that has being changed. * <br/> `options.question` - a question which `question.name` equals to the value name. If there are several questions with the same name, the first question is used. If there is no such questions, the `options.question` is null. * <br/> `options.oldValue` - an old, previous value. * <br/> `options.value` - a new value. You can change it. * @see setValue * @see onValueChanged */ onValueChanging: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired when the question value (i.e., answer) has been changed. The question value can be changed in UI (by a user) or programmatically (on calling `setValue` method). * Use the `<API key>` and `<API key>` events to handle changes in a question in the Panel Dynamic and a cell question in matrices. * <br/> `sender` - the survey object that fires the event. * <br/> `options.name` - the value name that has been changed. * <br/> `options.question` - a question which `question.name` equals to the value name. If there are several questions with the same name, the first question is used. If there is no such questions, the `options.question` is `null`. * <br/> `options.value` - a new value. * @see setValue * @see onValueChanging * @see <API key> * @see <API key> */ onValueChanged: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired when a question visibility has been changed. * <br/> `sender` - the survey object that fires the event. * <br/> `options.question` - a question which visibility has been changed. * <br/> `options.name` - a question name. * <br/> `options.visible` - a question `visible` boolean value. * @see Question.visibile * @see Question.visibileIf */ onVisibleChanged: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired on changing a page visibility. * <br/> `sender` - the survey object that fires the event. * <br/> `options.page` - a page which visibility has been changed. * <br/> `options.visible` - a page `visible` boolean value. * @see PageModel.visibile * @see PageModel.visibileIf */ <API key>: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired on changing a panel visibility. * <br/> `sender` - the survey object that fires the event. * <br/> `options.panel` - a panel which visibility has been changed. * <br/> `options.visible` - a panel `visible` boolean value. * @see PanelModel.visibile * @see PanelModel.visibileIf */ <API key>: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired on creating a new question. * Unlike the onQuestionAdded event, this event calls for all question created in survey including inside: a page, panel, matrix cell, dynamic panel and multiple text. * or inside a matrix cell or it can be a text question in multiple text items or inside a panel of a panel dynamic. * You can use this event to set up properties to a question based on it's type for all questions, regardless where they are located, on the page or inside a matrix cell. * Please note: If you want to use this event for questions loaded from JSON then you have to create survey with empty/null JSON parameter, assign the event and call survey.fromJSON(yourJSON) function. * <br/> `sender` - the survey object that fires the event. * <br/> `options.question` - a newly created question object. * @see Question * @see onQuestionAdded */ onQuestionCreated: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired on adding a new question into survey. * <br/> `sender` - the survey object that fires the event. * <br/> `options.question` - a newly added question object. * <br/> `options.name` - a question name. * <br/> `options.index` - an index of the question in the container (page or panel). * <br/> `options.parentPanel` - a container where a new question is located. It can be a page or panel. * <br/> `options.rootPanel` - typically, it is a page. * @see Question * @see onQuestionCreated */ onQuestionAdded: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired on removing a question from survey. * <br/> `sender` - the survey object that fires the event. * <br/> `options.question` - a removed question object. * <br/> `options.name` - a question name. * @see Question */ onQuestionRemoved: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired on adding a panel into survey. * <br/> `sender` - the survey object that fires the event. * <br/> `options.panel` - a newly added panel object. * <br/> `options.name` - a panel name. * <br/> `options.index` - an index of the panel in the container (a page or panel). * <br/> `options.parentPanel` - a container (a page or panel) where a new panel is located. * <br/> `options.rootPanel` - a root container, typically it is a page. * @see PanelModel */ onPanelAdded: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired on removing a panel from survey. * <br/> `sender` - the survey object that fires the event. * <br/> `options.panel` - a removed panel object. * <br/> `options.name` - a panel name. * @see PanelModel */ onPanelRemoved: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired on adding a page into survey. * <br/> `sender` - the survey object that fires the event. * <br/> `options.page` - a newly added `panel` object. * @see PanelModel */ onPageAdded: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired on validating value in a question. You can specify a custom error message using `options.error`. The survey blocks completing the survey or going to the next page when the error messages are displayed. * <br/> `sender` - the survey object that fires the event. * <br/> `options.question` - a validated question. * <br/> `options.name` - a question name. * <br/> `options.value` - the current question value (answer). * <br/> `options.error` - an error string. It is empty by default. * @see <API key> * @see <API key> */ onValidateQuestion: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired before errors are assigned to a question. You may add/remove/modify errors for a question. * <br/> `sender` - the survey object that fires the event. * <br/> `options.question` - a validated question. * <br/> `options.errors` - the list of errors. The list is empty by default and remains empty if a validated question has no errors. * @see onValidateQuestion */ <API key>: Event<(sender: SurveyModel, options: any) => any, any>; /** * Use this event to validate data on your server. * <br/> `sender` - the survey object that fires the event. * <br/> `options.data` - the values of all non-empty questions on the current page. You can get a question value as `options.data["myQuestionName"]`. * <br/> `options.errors` - set your errors to this object as: `options.errors["myQuestionName"] = "Error text";`. It will be shown as a question error. * <br/> `options.complete()` - call this function to tell survey that your server callback has been processed. * @see onValidateQuestion * @see onValidatePanel */ <API key>: any; /** * The event is fired on validating a panel. Set your error to `options.error` and survey will show the error for the panel and block completing the survey or going to the next page. * <br/> `sender` - the survey object that fires the event. * <br/> `options.name` - a panel name. * <br/> `options.error` - an error string. It is empty by default. * @see onValidateQuestion */ onValidatePanel: Event<(sender: SurveyModel, options: any) => any, any>; /** * Use the event to change the default error text. * <br/> `sender` - the survey object that fires the event. * <br/> `options.text` - an error text. * <br/> `options.error` - an instance of the `SurveyError` object. * <br/> `options.name` - the error name. The following error names are available: * required, requireoneanswer, requirenumeric, exceedsize, webrequest, webrequestempty, otherempty, * uploadingfile, <API key>, minrowcounterror, keyduplicationerror, custom */ onErrorCustomText: Event<(sender: SurveyModel, options: any) => any, any>; /** * Use the this event to be notified when the survey finished validate questions on the current page. It commonly happens when a user try to go to the next page or complete the survey * options.questions - the list of questions that have errors * options.errors - the list of errors * options.page - the page where question(s) are located */ <API key>: Event<(sender: SurveyModel, options: any) => any, any>; /** * Use this event to modify the HTML content before rendering, for example `completeHtml` or `loadingHtml`. * `options.html` - specifies the modified HTML content. * @see completedHtml * @see loadingHtml */ onProcessHtml: Event<(sender: SurveyModel, options: any) => any, any>; /** * Use this event to change the question title in code. * <br/> `sender` - the survey object that fires the event. * <br/> `options.title` - a calculated question title, based on question `title`, `name`, `isRequired`, and `visibleIndex` properties. * <br/> `options.question` - a question object. */ onGetQuestionTitle: Event<(sender: SurveyModel, options: any) => any, any>; /** * Use this event to process the markdown text. * <br/> `sender` - the survey object that fires the event. * <br/> `options.element` - SurveyJS element (a question, panel, page, or survey) where the string is going to be rendered. * <br/> `options.text` - a text that is going to be rendered. * <br/> `options.html` - an HTML content. It is `null` by default. Use this property to specify the HTML content rendered instead of `options.text`. */ onTextMarkdown: Event<(sender: SurveyModel, options: any) => any, any>; onSendResult: Event<(sender: SurveyModel, options: any) => any, any>; onGetResult: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired on uploading the file in QuestionFile when `storeDataAsText` is set to `false`. Use this event to change the uploaded file name or to prevent a particular file from being uploaded. * <br/> `sender` - the survey object that fires the event. * <br/> `options.name` - the file name. * <br/> `options.file` - the Javascript File object. * <br/> `options.accept` - a boolean value, `true` by default. Set it to `false` to deny this file uploading. * @see uploadFiles * @see QuestionFileModel.storeDataAsText */ onUploadFiles: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired on downloading a file in QuestionFile. Use this event to pass the file to a preview. * <br/> `sender` - the survey object that fires the event. * <br/> `options.name` - the question name. * <br/> `options.content` - the file content. * <br/> `options.fileValue` - single file question value. * <br/> `options.callback` - a call back function to get the status on downloading the file and the downloaded file content. * @see downloadFile */ onDownloadFile: Event<(sender: SurveyModel, options: any) => any, any>; /** * This event is fired on clearing the value in a QuestionFile. Use this event to remove files stored on your server. * <br/> `sender` - the survey object that fires the event. * <br/> `options.name` - the question name. * <br/> `options.value` - the question value. * <br/> `options.fileName` - a removed file's name, set it to `null` to clear all files. * <br/> `options.callback` - a call back function to get the status on clearing the files operation. * @see clearFiles */ onClearFiles: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired after choices for radiogroup, checkbox, and dropdown has been loaded from a RESTful service and before they are assigned to a question. * You may change the choices, before they are assigned or disable/enabled make visible/invisible question, based on loaded results. * <br/> `sender` - the survey object that fires the event. * <br/> `question` - the question where loaded choices are going to be assigned. * <br/> `choices` - the loaded choices. You can change the loaded choices to before they are assigned to question. * <br/> `serverResult` - a result that comes from the server as it is. */ <API key>: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired after survey is loaded from api.surveyjs.io service. * You can use this event to perform manipulation with the survey model after it was loaded from the web service. * <br/> `sender` - the survey object that fires the event. * @see surveyId * @see <API key> */ <API key>: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired on processing the text when it finds a text in brackets: `{somevalue}`. By default, it uses the value of survey question values and variables. * For example, you may use the text processing in loading choices from the web. If your `choicesByUrl.url` equals to "<API key>/{country}/{state}", * you may set on this event `options.value` to "all" or empty string when the "state" value/question is non selected by a user. * <br/> `sender` - the survey object that fires the event. * <br/> `options.name` - the name of the processing value, for example, "state" in our example. * <br/> `options.value` - the value of the processing text. * <br/> `options.isExists` - a boolean value. Set it to `true` if you want to use the value and set it to `false` if you don't. */ onProcessTextValue: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired before rendering a question. Use it to override the default question CSS classes. * <br/> `sender` - the survey object that fires the event. * <br/> `options.question` - a question for which you can change the CSS classes. * <br/> `options.cssClasses` - an object with CSS classes. For example `{root: "table", button: "button"}`. You can change them to your own CSS classes. */ <API key>: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired before rendering a panel. Use it to override the default panel CSS classes. * <br/> `sender` - the survey object that fires the event. * <br/> `options.panel` - a panel for which you can change the CSS classes. * <br/> `options.cssClasses` - an object with CSS classes. For example `{title: "sv_p_title", description: "small"}`. You can change them to your own CSS classes. */ <API key>: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired before rendering a page. Use it to override the default page CSS classes. * <br/> `sender` - the survey object that fires the event. * <br/> `options.page` - a page for which you can change the CSS classes. * <br/> `options.cssClasses` - an object with CSS classes. For example `{title: "sv_p_title", description: "small"}`. You can change them to your own CSS classes. */ <API key>: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired right after survey is rendered in DOM. * <br/> `sender` - the survey object that fires the event. * <br/> `options.htmlElement` - a root HTML element bound to the survey object. */ onAfterRenderSurvey: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired right after a page is rendered in DOM. Use it to modify HTML elements. * <br/> `sender` - the survey object that fires the event. * <br/> `options.htmlElement` - an HTML element bound to the survey header object. */ onAfterRenderHeader: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired right after a page is rendered in DOM. Use it to modify HTML elements. * <br/> `sender` - the survey object that fires the event. * <br/> `options.page` - a page object for which the event is fired. Typically the current/active page. * <br/> `options.htmlElement` - an HTML element bound to the page object. */ onAfterRenderPage: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired right after a question is rendered in DOM. Use it to modify HTML elements. * <br/> `sender` - the survey object that fires the event. * <br/> `options.question` - a question object for which the event is fired. * <br/> `options.htmlElement` - an HTML element bound to the question object. */ <API key>: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired right after a non-composite question (text, comment, dropdown, radiogroup, checkbox) is rendered in DOM. Use it to modify HTML elements. * This event is not fired for matrices, panels, multiple text and image picker. * <br/> `sender` - the survey object that fires the event. * <br/> `options.question` - a question object for which the event is fired. * <br/> `options.htmlElement` - an HTML element bound to the question object. */ <API key>: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired right after a panel is rendered in DOM. Use it to modify HTML elements. * <br/> `sender` - the survey object that fires the event * <br/> `options.panel` - a panel object for which the event is fired * <br/> `options.htmlElement` - an HTML element bound to the panel object */ onAfterRenderPanel: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired on adding a new row in Matrix Dynamic question. * <br/> `sender` - the survey object that fires the event * <br/> `options.question` - a matrix question. * <br/> `options.row` - a new added row. * @see <API key> * @see <API key>.visibleRows */ onMatrixRowAdded: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired before adding a new row in Matrix Dynamic question. * <br/> `sender` - the survey object that fires the event * <br/> `options.question` - a matrix question. * <br/> `options.canAddRow` - specifies whether a new row can be added * @see <API key> * @see <API key>.visibleRows */ <API key>: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired on removing a row from Matrix Dynamic question. * <br/> `sender` - the survey object that fires the event * <br/> `options.question` - a matrix question * <br/> `options.rowIndex` - a removed row index * <br/> `options.row` - a removed row object * @see <API key> * @see <API key>.visibleRows */ onMatrixRowRemoved: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired before rendering "Remove" button for removing a row from Matrix Dynamic question. * <br/> `sender` - the survey object that fires the event * <br/> `options.question` - a matrix question. * <br/> `options.rowIndex` - a row index. * <br/> `options.row` - a row object. * <br/> `options.allow` - a boolean property. Set it to `false` to disable the row removing. * @see <API key> */ <API key>: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired for every cell created in Matrix Dynamic and Matrix Dropdown questions. * <br/> `sender` - the survey object that fires the event. * <br/> `options.question` - the matrix question. * <br/> `options.cell` - the matrix cell. * <br/> `options.cellQuestion` - the question/editor in the cell. You may customize it, change it's properties, like choices or visible. * <br/> `options.rowValue` - the value of the current row. To access a particular column's value within the current row, use: `options.rowValue["columnValue"]`. * <br/> `options.column` - the matrix column object. * <br/> `options.columName` - the matrix column name. * <br/> `options.row` - the matrix row object. * @see <API key> * @see onMatrixRowAdded * @see <API key> * @see <API key> */ onMatrixCellCreated: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired for every cell after is has been rendered in DOM. * <br/> `sender` - the survey object that fires the event. * <br/> `options.question` - the matrix question. * <br/> `options.cell` - the matrix cell. * <br/> `options.cellQuestion` - the question/editor in the cell. * <br/> `options.htmlElement` - an HTML element bound to the `cellQuestion` object. * <br/> `options.column` - the matrix column object. * <br/> `options.row` - the matrix row object. * @see onMatrixCellCreated * @see <API key> * @see <API key> */ <API key>: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired when cell value is changed in Matrix Dynamic and Matrix Dropdown questions. * <br/> `sender` - the survey object that fires the event. * <br/> `options.question` - the matrix question. * <br/> `options.columName` - the matrix column name. * <br/> `options.value` - a new value. * <br/> `options.row` - the matrix row object. * <br/> `options.getCellQuestion(columnName)` - the function that returns the cell question by column name. * @see <API key> * @see <API key> * @see onMatrixRowAdded * @see <API key> * @see <API key> */ <API key>: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired on changing cell value in Matrix Dynamic and Matrix Dropdown questions. You may change the `options.value` property to change a cell value. * <br/> `sender` - the survey object that fires the event. * <br/> `options.question` - the matrix question. * <br/> `options.columName` - the matrix column name. * <br/> `options.value` - a new value. * <br/> `options.oldValue` - the old value. * <br/> `options.row` - the matrix row object. * <br/> `options.getCellQuestion(columnName)` - the function that returns a cell question by column name. * @see <API key> * @see <API key> * @see onMatrixRowAdded * @see <API key> * @see <API key> */ <API key>: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired when Matrix Dynamic and Matrix Dropdown questions validate the cell value. * <br/> `sender` - the survey object that fires the event. * <br/> `options.question` - the matrix question. * <br/> `options.columName` - the matrix column name. * <br/> `options.value` - a cell value. * <br/> `options.row` - the matrix row object. * <br/> `options.getCellQuestion(columnName)` - the function that returns the cell question by column name. * @see <API key> * @see onMatrixRowAdded * @see <API key> * @see <API key> */ <API key>: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired on adding a new panel in Panel Dynamic question. * <br/> `sender` - the survey object that fires the event. * <br/> `options.question` - a panel question. * @see <API key> * @see <API key>.panels */ onDynamicPanelAdded: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired on removing a panel from Panel Dynamic question. * <br/> `sender` - the survey object that fires the event. * <br/> `options.question` - a panel question. * <br/> `options.panelIndex` - a removed panel index. * <br/> `options.panel` - a removed panel. * @see <API key> * @see <API key>.panels */ <API key>: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired every second if the method `startTimer` has been called. * @see startTimer * @see timeSpent * @see Page.timeSpent */ onTimer: Event<(sender: SurveyModel) => any, any>; /** * The event is fired before displaying a new information in the Timer Panel. Use it to change the default text. * <br/> `sender` - the survey object that fires the event. * <br/> `options.text` - the timer panel info text. */ <API key>: Event<(sender: SurveyModel, options: any) => any, any>; /** * The event is fired when item value is changed in Panel Dynamic question. * <br/> `sender` - the survey object that fires the event. * <br/> `options.question` - the panel question. * <br/> `options.panel` - the dynamic panel item. * <br/> `options.name` - the item name. * <br/> `options.value` - a new value. * <br/> `options.itemIndex` - the panel item index. * <br/> `options.itemValue` - the panel item object. * @see onDynamicPanelAdded * @see <API key> */ <API key>: Event<(sender: SurveyModel, options: any) => any, any>; /** * Use this event to define, whether an answer to a question is correct or not. * <br/> `sender` - the survey object that fires the event. * <br/> `options.question` - a question on which you have to decide if the answer is correct or not. * <br/> `options.result` - returns `true`, if an answer is correct, or `false`, if the answer is not correct. Use questions' `value` and `correctAnswer` properties to return the correct value. * <br/> `options.correctAnswers` - you may change the default number of correct or incorrect answers in the question, for example for matrix, where each row is a quiz question. * @see Question.value * @see Question.correctAnswer */ onIsAnswerCorrect: Event<(sender: SurveyModel, options: any) => any, any>; /** * Use this event to control drag&drop operations during design mode. * <br/> `sender` - the survey object that fires the event. * <br/> `options.allow` - set it to `false` to disable dragging. * <br/> `options.target` - a target element that is dragged. * <br/> `options.source` - a source element. It can be `null`, if it is a new element, dragging from toolbox. * <br/> `options.parent` - a page or panel where target element is dragging. * <br/> `options.insertBefore` - an element before the target element is dragging. It can be `null` if parent container (page or panel) is empty or dragging an element after the last element in a container. * <br/> `options.insertAfter` - an element after the target element is dragging. It can be `null` if parent container (page or panel) is empty or dragging element to the first position within the parent container. * @see setDesignMode * @see isDesignMode */ onDragDropAllow: Event<(sender: SurveyModel, options: any) => any, any>; /** * Use this event to control scrolling element to top. You can cancel the default behavior by setting options.cancel property to true. * <br/> `sender` - the survey object that fires the event. * <br/> `options.element` - an element that is going to be scrolled on top. * <br/> `options.question` - a question that is going to be scrolled on top. It can be null if options.page is not null. * <br/> `options.page` - a page that is going to be scrolled on top. It can be null if options.question is not null. * <br/> `options.elementId` - the unique element DOM Id. * <br/> `options.cancel` - set this property to true to cancel the default scrolling. */ <API key>: Event<(sender: SurveyModel, options: any) => any, any>; <API key>: Event<(sender: SurveyModel, value: string) => any, any>; /** * The list of errors on loading survey JSON. If the list is empty after loading a JSON, then the JSON is correct and has no errors. * @see JsonError */ jsonErrors: Array<JsonError>; constructor(jsonObj?: any); getType(): string; protected <API key>(name: string, oldValue: any, newValue: any): void; /** * Returns a list of all pages in the survey, including invisible pages. * @see PageModel * @see visiblePages */ readonly pages: Array<PageModel>; getCss(): any; css: any; readonly <API key>: string; readonly <API key>: string; readonly cssNavigationEdit: string; readonly cssNavigationPrev: string; readonly cssNavigationStart: string; readonly cssNavigationNext: string; readonly completedCss: string; /** * Gets or sets a list of triggers in the survey. * @see SurveyTrigger */ triggers: Array<SurveyTrigger>; /** * Gets or sets a list of calculated values in the survey. * @see CalculatedValue */ calculatedValues: Array<CalculatedValue>; surveyId: string; surveyPostId: string; clientId: string; /** * Gets or sets a cookie name used to save information about completing the survey. * If the property is not empty, before starting the survey, the Survey library checks if the cookie with this name exists. * If it is `true`, the survey goes to complete mode and a user sees the survey complete page. On completing the survey the cookie with this name is created. */ cookieName: string; /** * Gets or sets whether to save survey results on completing every page. If the property value is set to `true`, the `onPartialSend` event is fired. * @see onPartialSend * @see clientId */ <API key>: boolean; <API key>: boolean; /** * Gets or sets whether the first input is focused on showing a next or a previous page. */ <API key>: boolean; /** * Gets or sets whether the first input is focused if the current page has errors. * Set this property to `false` (the default value is `true`) if you do not want to bring the focus to the first question that has error on the page. */ focusOnFirstError: boolean; /** * Gets or sets the navigation buttons position. * Possible values: 'bottom' (default), 'top', 'both' and 'none'. Set it to 'none' to hide 'Prev', 'Next' and 'Complete' buttons. * It makes sense if you are going to create a custom navigation, have only a single page, or the `goNextPageAutomatic` property is set to `true`. * @see goNextPageAutomatic * @see showPrevButton */ <API key>: string | any; /** * Gets or sets whether the Survey displays "Prev" button in its pages. Set it to `false` to prevent end-users from going back to their answers. * @see <API key> */ showPrevButton: boolean; /** * Gets or sets whether the Survey displays survey title in its pages. Set it to `false` to hide a survey title. * @see title */ showTitle: boolean; /** * Gets or sets whether the Survey displays page titles. Set it to `false` to hide page titles. * @see PageModel.title */ showPageTitles: boolean; /** * On finishing the survey the complete page is shown. Set the property to `false`, to hide the complete page. * @see data * @see onComplete * @see navigateToUrl */ showCompletedPage: boolean; /** * Set this property to a url you want to navigate after a user completing the survey. * By default it uses after calling onComplete event. In case calling options.showDataSaving callback in onComplete event, navigateToUrl will be used on calling options.<API key> callback. */ navigateToUrl: string; /** * Gets or sets a list of URL condition items. If the expression of this item returns `true`, then survey will navigate to the item URL. * @see UrlConditionItem * @see navigateToUrl */ <API key>: Array<UrlConditionItem>; getNavigateToUrl(): string; /** * Gets or sets the required question mark. The required question mark is a char or string that is rendered in the required questions' titles. * @see Question.title */ requiredText: string; /** * Gets or sets whether to hide all required errors. */ hideRequiredErrors: boolean; <API key>(question: IQuestion, errors: Array<SurveyError>): void; /** * Gets or sets the first question index. The first question index is '1' by default. You may start it from '100' or from 'A', by setting '100' or 'A' to this property. * You can set the start index to "(1)" or "# A)" or "a)" to render question number as (1), # A) and a) accordingly. * @see Question.title * @see requiredText */ questionStartIndex: string; /** * Gets or sets whether the "Others" option text is stored as question comment. * * By default the entered text in the "Others" input in the checkbox/radiogroup/dropdown is stored as `"question name " + "-Comment"`. The value itself is `"question name": "others"`. * Set this property to `false`, to store the entered text directly in the `"question name"` key. * @see commentPrefix */ <API key>: boolean; maxTextLength: number; maxOthersLength: number; /** * Gets or ses whether a user can navigate the next page automatically after answering all the questions on a page without pressing the "Next" button. * The available options: * * - `true` - navigate the next page and submit survey data automatically. * - `autogonext` - navigate the next page automatically but do not submit survey data. * - `false` - do not navigate the next page and do not submit survey data automatically. * @see <API key> */ goNextPageAutomatic: boolean | "autogonext"; /** * Gets or sets whether a survey is automatically completed when `goNextPageAutomatic = true`. Set it to `false` if you do not want to submit survey automatically on completing the last survey page. * @see goNextPageAutomatic */ <API key>: boolean; /** * Gets or sets a value that specifies how the survey validates the question answers. * * The following options are available: * * - `onNextPage` (default) - check errors on navigating to the next page or on completing the survey. * - `onValueChanged` - check errors on every question value (i.e., answer) changing. * - `onComplete` - to validate all visible questions on complete button click. If there are errors on previous pages, then the page with the first error becomes the current. */ checkErrorsMode: string; /** * Gets or sets a value that specifies how the survey updates its questions' text values. * * The following options are available: * * - `onBlur` (default) - the value is updated after an input loses the focus. * - `onTyping` - update the value of text questions, "text" and "comment", on every key press. * * Note, that setting to "onTyping" may lead to a performance degradation, in case you have many expressions in the survey. */ textUpdateMode: string; /** * Gets or sets a value that specifies how the invisible data is included in survey data. * * The following options are available: * * - `none` - include the invisible values into the survey data. * - `onHidden` - clear the question value when it becomes invisible. If a question has value and it was invisible initially then survey clears the value on completing. * - `onComplete` (default) - clear invisible question values on survey complete. In this case, the invisible questions will not be stored on the server. * @see Question.visible * @see onComplete */ <API key>: any; /** * Call this function to remove all question values from the survey, that end-user will not be able to enter. * For example the value that doesn't exists in a radiogroup/dropdown/checkbox choices or matrix rows/columns. * Please note, this function doesn't clear values for invisible questions or values that doesn't associated with questions. * In fact this function just call <API key> function of all questions in the survey * @see Question.<API key> * @see Page.<API key> * @see Panel.<API key> */ <API key>(): void; /** * Gets or sets the survey locale. The default value it is empty, this means the 'en' locale is used. * You can set it to 'de' - German, 'fr' - French and so on. The library has built-in localization for several languages. The library has a multi-language support as well. */ locale: string; /** * Returns an array of locales that are used in the current survey. */ getUsedLocales(): Array<string>; protected onLocaleChanged(): void; getLocale(): string; locStrsChanged(): void; getMarkdownHtml(text: string): string; getProcessedText(text: string): string; getLocString(str: string): any; getErrorCustomText(text: string, error: SurveyError): string; /** * Returns the text that is displayed when there are no any visible pages and questiona. */ readonly emptySurveyText: string; /** * Gets or sets a survey title. * @see description */ title: string; readonly locTitle: LocalizableString; /** * Gets or sets a survey description. The survey description is displayed under a survey title. * @see title */ description: string; readonly locDescription: LocalizableString; /** * Gets or sets a survey logo. * @see title */ logo: string; readonly locLogo: LocalizableString; /** * Gets or sets a survey logo width. * @see logo */ logoWidth: number; /** * Gets or sets a survey logo height. * @see logo */ logoHeight: number; /** * Gets or sets a survey logo position. * @see logo */ logoPosition: string; readonly hasLogo: boolean; readonly isLogoBefore: boolean; readonly isLogoAfter: boolean; readonly logoClassNames: string; /** * The logo fit mode. * @see logo */ logoFit: string; /** * Gets or sets the HTML content displayed on the complete page. Use this property to change the default complete page text. * @see showCompletedPage * @see <API key> * @see locale */ completedHtml: string; readonly locCompletedHtml: LocalizableString; /** * The list of HTML condition items. If the expression of this item returns `true`, then a survey will use this item HTML instead of `completedHtml`. * @see HtmlConditionItem * @see completeHtml */ <API key>: Array<HtmlConditionItem>; /** * Calculates a given expression and returns a result value. * @param expression */ runExpression(expression: string): any; /** * Calculates a given expression and returns `true` or `false`. * @param expression */ runCondition(expression: string): boolean; readonly <API key>: string; /** * The HTML content displayed to an end user that has already completed the survey. * @see clientId * @see locale */ completedBeforeHtml: string; readonly <API key>: LocalizableString; loadingHtml: string; readonly locLoadingHtml: LocalizableString; /** * Gets or sets the 'Start' button caption. * The 'Start' button is shown on the started page. Set the `firstPageIsStarted` property to `true`, to display the started page. * @see firstPageIsStarted * @see locale */ startSurveyText: string; readonly locStartSurveyText: LocalizableString; /** * Gets or sets the 'Prev' button caption. * @see locale */ pagePrevText: string; readonly locPagePrevText: LocalizableString; /** * Gets or sets the 'Next' button caption. * @see locale */ pageNextText: string; readonly locPageNextText: LocalizableString; /** * Gets or sets the 'Complete' button caption. * @see locale */ completeText: string; readonly locCompleteText: LocalizableString; /** * Gets or sets the 'Preview' button caption. * @see locale * @see <API key> * @see editText * @see showPreview */ previewText: string; readonly locPreviewText: LocalizableString; /** * Gets or sets the 'Edit' button caption. * @see locale * @see <API key> * @see previewText * @see cancelPreview */ editText: string; readonly locEditText: LocalizableString; /** * Set the pattern for question title. Default is "numTitleRequire", 1. What is your name? *, * You can set it to numRequireTitle: 1. * What is your name? * You can set it to requireNumTitle: * 1. What is your name? * You can set it to numTitle (remove require symbol completely): 1. What is your name? * @see QuestionModel.title */ <API key>: string; <API key>(): Array<any>; /** * Gets or sets a question title template. Obsolete, please use <API key> * @see QuestionModel.title * @see <API key> */ <API key>: string; readonly <API key>: LocalizableString; <API key>(question: IQuestion, title: string): string; /** * Gets or sets whether the survey displays page numbers on pages titles. */ showPageNumbers: boolean; /** * Gets or sets a value that specifies how the question numbers are displayed. * * The following options are available: * * - `on` - display question numbers * - `onpage` - display question numbers, start numbering on every page * - `off` - turn off the numbering for questions titles */ showQuestionNumbers: string; /** * Gets or sets the survey progress bar position. * * The following options are available: * * - `top` - show progress bar in the top * - `bottom` - show progress bar in the bottom * - `both` - show progress bar in both sides: top and bottom. */ showProgressBar: string; /** * Gets or sets the type of info in the progress bar. * * The following options are available: * * - `pages` (default), * - `questions`, * - `correctQuestions`. */ progressBarType: string; readonly <API key>: boolean; readonly <API key>: boolean; /** * Returns the text/HTML that is rendered as a survey title. */ readonly processedTitle: string; /** * Gets or sets the question title location. * * The following options are available: * * - `bottom` - show a question title to bottom * - `left` - show a question title to left * - `top` - show a question title to top. * * > Some questions, for example matrixes, do not support 'left' value. The title for them will be displayed to the top. */ <API key>: string; protected updateElementCss(): void; /** * Gets or sets the error message position. * * The following options are available: * * - `top` - to show question error(s) over the question, * - `bottom` - to show question error(s) under the question. */ <API key>: string; /** * Gets or sets the question description position. * * The following options are available: * * - `underTitle` - show question description under the question title, * - `underInput` - show question description under the question input instead of question title. */ <API key>: string; /** * Gets or sets the survey edit mode. * * The following options are available: * * - `edit` (default) - make a survey editable, * - `display` - make a survey read-only. */ mode: string; /** * Gets or sets an object that stores the survey results/data. You can set it directly as `{ 'question name': questionValue, ... }` * * > If you set the `data` property after creating the survey, you may need to set the `currentPageNo` to `0`, if you are using `visibleIf` properties for questions/pages/panels to ensure that you are starting from the first page. * @see setValue * @see getValue * @see mergeData * @see currentPageNo */ data: any; /** * Merge the values into survey.data. It works as survey.data, except it doesn't clean the existing data, but overrides them. * @param data data to merge. It should be an object {keyValue: Value, ...} * @see data * @see setValue */ mergeData(data: any): void; setDataCore(data: any): void; getAllValues(): any; /** * Returns survey result data as an array of plain objects: with question `title`, `name`, `value`, and `displayValue`. * * For complex questions (like matrix, etc.) `isNode` flag is set to `true` and data contains array of nested objects (rows). * * Set `options.includeEmpty` to `false` if you want to skip empty answers. */ getPlainData(options?: { includeEmpty?: boolean; <API key>?: boolean; calculations?: Array<{ propertyName: string; }>; }): any[]; getFilteredValues(): any; <API key>(): any; getDataValueCore(valuesHash: any, key: string): any; setDataValueCore(valuesHash: any, key: string, value: any): void; deleteDataValueCore(valuesHash: any, key: string): void; /** * Returns all comments from the data. * @see data */ readonly comments: any; /** * Returns a list of visible pages. If all pages are visible, then this property returns the same list as the `pages` property. * @see pages * @see PageModel.visible * @see PageModel.visibleIf */ readonly visiblePages: Array<PageModel>; /** * Returns `true` if the survey contains no pages. The survey is empty. */ readonly isEmpty: boolean; /** * Deprecated. Use the `pageCount` property instead. */ readonly PageCount: number; /** * Returns the survey page count. * @see visiblePageCount * @see pages */ readonly pageCount: number; /** * Returns a number of visible pages within the survey. * @see pageCount * @see visiblePages */ readonly visiblePageCount: number; /** * Returns the started page. This property works if the `firstPageIsStarted` property is set to `true`. * @see firstPageIsStarted */ readonly startedPage: PageModel; /** * Gets or sets the current survey page. If a survey is rendered, then this property returns a page that a user can see/edit. */ currentPage: any; /** * The zero-based index of the current page in the visible pages array. */ currentPageNo: number; /** * Gets or sets the question display order. Use this property to randomize questions. You can randomize questions on a specific page. * * The following options are available: * * - `random` - randomize questions * - `initial` - keep questions in the same order, as in a survey model. * @see SurveyPage.questionsOrder */ questionsOrder: string; /** * Sets the input focus to the first question with the input field. */ focusFirstQuestion(): void; <API key>(): void; /** * Returns the current survey state: * * - `loading` - loading from the JSON, * - `completed` - a user has completed the survey, * - `starting` - the started page is showing, * - `running` - a user answers questions right now, * - `empty` - there is nothing to show in the current survey. */ readonly state: string; readonly completedState: string; readonly completedStateText: string; protected setCompletedState(value: string, text: string): void; /** * Clears the survey data and state. If the survey has a `completed` state, it will get a `running` state. * @param clearData clear the data * @param gotoFirstPage make the first page as a current page. * @see data * @see state * @see currentPage */ clear(clearData?: boolean, gotoFirstPage?: boolean): void; mergeValues(src: any, dest: any): void; protected updateCustomWidgets(page: PageModel): void; protected currentPageChanging(newValue: PageModel, oldValue: PageModel): boolean; protected currentPageChanged(newValue: PageModel, oldValue: PageModel): void; /** * Returns the progress that a user made while going through the survey. */ getProgress(): number; /** * Returns the navigation buttons (i.e., 'Prev', 'Next', or 'Complete') position. */ readonly <API key>: string; /** * Returns `true` if the survey is in edit mode. * @see mode */ readonly isEditMode: boolean; readonly <API key>: boolean; readonly <API key>: boolean; readonly <API key>: boolean; /** * Returns `true` if the survey is in display mode or in preview mode. * @see mode * @see <API key> */ readonly isDisplayMode: boolean; readonly <API key>: boolean; /** * Returns `true` if the survey is in design mode. It is used by SurveyJS Editor. * @see setDesignMode */ readonly isDesignMode: boolean; /** * Sets the survey into design mode. * @param value use true to set the survey into the design mode. */ setDesignMode(value: boolean): void; /** * Gets or sets whether to show all elements in the survey, regardless their visibility. The default value is `false`. */ <API key>: boolean; readonly <API key>: boolean; readonly <API key>: boolean; /** * Returns `true`, if a user has already completed the survey in this browser and there is a cookie about it. Survey goes to `completed` state if the function returns `true`. * @see cookieName * @see setCookie * @see deleteCookie * @see state */ readonly hasCookie: boolean; /** * Set the cookie with `cookieName` in user's browser. It is done automatically on survey complete if the `cookieName` property value is not empty. * @see cookieName * @see hasCookie * @see deleteCookie */ setCookie(): void; /** * Deletes the cookie with `cookieName` from the browser. * @see cookieName * @see hasCookie * @see setCookie */ deleteCookie(): void; /** * Gets or sets whether the survey must ignore validation like required questions and others, on `nextPage` and `completeLastPage` function calls. The default is `false`. * @see nextPage * @see completeLastPage * @see mode */ ignoreValidation: boolean; /** * Navigates user to the next page. * * Returns `false` in the following cases: * * - if the current page is the last page. * - if the current page contains errors (for example, a required question is empty). * @see <API key> * @see prevPage * @see completeLastPage */ nextPage(): boolean; /** * Returns `true`, if the current page contains errors, for example, the required question is empty or a question validation is failed. * @see nextPage */ readonly <API key>: boolean; /** * Returns `true`, if any of the survey pages contains errors. * @param fireCallback set it to `true`, to show errors in UI. * @param focusOnFirstError set it to `true` to focus on the first question that doesn't pass the validation and make the page, where the question is located, the current. */ hasErrors(fireCallback?: boolean, focusOnFirstError?: boolean): boolean; /** * Checks whether survey elements (pages, panels, and questions) have unique question names. * You can check for unique names for individual page and panel (and all their elements) or a question. * If the parameter is not specified, then a survey checks that all its elements have unique names. * @param element page, panel or question, it is `null` by default, that means all survey elements will be checked */ ensureUniqueNames(element?: ISurveyElement): void; /** * Navigates user to a previous page. If the current page is the first page, `prevPage` returns `false`. `prevPage` does not perform any checks, required questions can be empty. * @see isFirstPage */ prevPage(): boolean; /** * Completes the survey, if the current page is the last one. It returns `false` if the last page has no errors. * If the last page has no errors, `completeLastPage` calls `doComplete` and returns `true`. * @see <API key> * @see nextPage * @see doComplete */ completeLastPage(): boolean; /** * Show preview for the survey. Go to the "preview" state * @see <API key> * @see cancelPreview * @see state */ showPreview(): boolean; /** * Canel preview and go back to the "running" state. * @param curPage - a new current page. If the parameter is underfined then the last page becomes current. * @see <API key> * @see showPreview * @see state */ cancelPreview(curPage?: any): void; cancelPreviewByPage(panel: IPanel): any; protected <API key>(doComplete: boolean): boolean; /** * Obsolete use the `questionsOnPageMode` property instead. * @see questionsOnPageMode */ isSinglePage: boolean; /** * Gets or sets a value that specifies how the survey combines questions, panels, and pages. * * The following options are available: * * - `singlePage` - combine all survey pages in a single page. Pages will be converted to panels. * - `questionPerPage` - show one question per page. Survey will create a separate page for every question. */ questionsOnPageMode: string; /** * Gets or sets whether the first survey page is a start page. Set this property to `true`, to make the first page a starting page. * An end user cannot navigate to the start page and the start page does not affect a survey progress. */ firstPageIsStarted: boolean; isPageStarted(page: IPage): boolean; /** * Set this property to "showAllQuestions" or "<API key>" to preview results to a user before he/she completes the survey. */ <API key>: string; readonly <API key>: boolean; protected <API key>(): void; runningPages: any; origionalPages: any; protected <API key>(oldValue: string): void; /** * Gets whether the current page is the first one. */ readonly isFirstPage: boolean; readonly isShowPrevButton: boolean; /** * Gets whether the current page is the last one. */ readonly isLastPage: boolean; /** * Completes the survey. * * Calling this function performs the following tasks: * * - writes cookie if the `cookieName` property is not empty * - sets the survey into `completed` state * - fires the `onComplete` event * - calls `sendResult` function. * * Calling the `doComplete` function does not perform any validation, unlike the `completeLastPage` function. * It calls `navigateToUrl` after calling `onComplete` event. * In case calling `options.showDataSaving` callback in the `onComplete` event, `navigateToUrl` is used on calling `options.<API key>` callback. * @see cookieName * @see state * @see onComplete * @see surveyPostId * @see completeLastPage * @see navigateToUrl * @see <API key> */ doComplete(): void; /** * Starts the survey. Changes the survey mode from "starting" to "running". Call this function if your survey has a start page, otherwise this function does nothing. * @see firstPageIsStarted */ start(): boolean; /** * Gets whether the question values on the current page are validating on the server at the current moment. * @see <API key> */ readonly <API key>: boolean; protected <API key>(): void; protected doServerValidation(): boolean; protected doNextPage(): void; setCompleted(): void; /** * Returns the HTML content for the complete page. * @see completedHtml */ readonly <API key>: string; /** * Returns the HTML content, that is shown to a user that had completed the survey before. * @see completedHtml * @see cookieName */ readonly <API key>: string; /** * Returns the HTML content, that is shows when a survey loads the survey JSON. */ readonly <API key>: string; /** * Returns the text for the current progress. */ readonly progressText: string; protected afterRenderSurvey(htmlElement: any): void; <API key>(question: IQuestion, cssClasses: any): void; <API key>(panel: IPanel, cssClasses: any): void; <API key>(page: IPage, cssClasses: any): void; afterRenderPage(htmlElement: any): void; afterRenderHeader(htmlElement: any): void; afterRenderQuestion(question: IQuestion, htmlElement: any): void; <API key>(question: IQuestion, htmlElement: any): void; afterRenderPanel(panel: IElement, htmlElement: any): void; <API key>(options: any): void; matrixRowAdded(question: IQuestion, row: any): void; <API key>(valueName: string, name: string, index: number): IQuestion; matrixRowRemoved(question: IQuestion, rowIndex: number, row: any): void; <API key>(question: IQuestion, rowIndex: number, row: any): boolean; matrixCellCreated(question: IQuestion, options: any): void; <API key>(question: IQuestion, options: any): void; <API key>(question: IQuestion, options: any): void; <API key>(question: IQuestion, options: any): void; matrixCellValidate(question: IQuestion, options: any): SurveyError; dynamicPanelAdded(question: IQuestion): void; dynamicPanelRemoved(question: IQuestion, panelIndex: number, panel: IPanel): void; <API key>(question: IQuestion, options: any): void; dragAndDropAllow(options: any): boolean; scrollElementToTop(element: ISurveyElement, question: IQuestion, page: IPage, id: string): any; /** * Uploads a file to server. * @param question a file question object * @param name a question name * @param file an uploaded file * @param storeDataAsText set it to `true` to encode file content into the survey results * @param uploadingCallback a call back function to get the status on uploading the file */ uploadFiles(question: IQuestion, name: string, files: File[], uploadingCallback: (status: string, data: any) => any): void; /** * Downloads a file from server * @param name a question name * @param fileValue a single file question value * @param callback a call back function to get the status on downloading the file and the downloaded file content */ downloadFile(questionName: string, fileValue: any, callback: (status: string, data: any) => any): void; /** * Clears files from server. * @param name a question name * @param value a file question value * @param callback a call back function to get the status of the clearing operation */ clearFiles(name: string, value: any, fileName: string, callback: (status: string, data: any) => any): void; <API key>(question: IQuestion, choices: Array<ItemValue>, serverResult: any): Array<ItemValue>; protected createSurveyService(): dxSurveyService; protected uploadFilesCore(name: string, files: File[], uploadingCallback: (status: string, data: any) => any): void; getPage(index: number): PageModel; /** * Adds an existing page to the survey. * @param page a newly added page * @see addNewPage */ addPage(page: PageModel): void; /** * Creates a new page and adds it to a survey. Generates a new name if the `name` parameter is not specified. * @param name a page name * @see addPage */ addNewPage(name?: string): PageModel; /** * Removes a page from a survey. * @param page */ removePage(page: PageModel): void; /** * Returns a question by its name. * @param name a question name * @param caseInsensitive * @see <API key> */ getQuestionByName(name: string, caseInsensitive?: boolean): Question; /** * Returns a question by its value name * @param valueName a question name * @param caseInsensitive * @see getQuestionByName * @see Question.valueName */ <API key>(valueName: string, caseInsensitive?: boolean): IQuestion; /** * Gets a list of questions by their names. * @param names an array of question names * @param caseInsensitive */ getQuestionsByNames(names: string[], caseInsensitive?: boolean): IQuestion[]; /** * Returns a page on which an element (question or panel) is placed. * @param element Question or Panel */ getPageByElement(element: IElement): PageModel; /** * Returns a page on which a question is located. * @param question */ getPageByQuestion(question: IQuestion): PageModel; /** * Returns a page by it's name. * @param name */ getPageByName(name: string): PageModel; /** * Returns a list of pages by their names. * @param names a list of page names */ getPagesByNames(names: string[]): PageModel[]; /** * Returns a list of all questions in a survey. * @param visibleOnly set it `true`, if you want to get only visible questions */ getAllQuestions(visibleOnly?: boolean, includingDesignTime?: boolean): Array<Question>; /** * Returns quiz questions. All visible questions that has input(s) widgets. * @see <API key> */ getQuizQuestions(): Array<IQuestion>; /** * Returns a panel by its name. * @param name a panel name * @param caseInsensitive * @see getQuestionByName */ getPanelByName(name: string, caseInsensitive?: boolean): IPanel; /** * Returns a list of all survey's panels. */ getAllPanels(visibleOnly?: boolean, includingDesignTime?: boolean): Array<IPanel>; protected createNewPage(name: string): PageModel; protected <API key>(valueName: string, newValue: any): any; protected updateQuestionValue(valueName: string, newValue: any): void; protected <API key>(valueName: string, newValue: any): void; sendResult(postId?: string, clientId?: string, isPartialCompleted?: boolean): void; getResult(resultId: string, name: string): void; <API key>(surveyId?: string, cliendId?: string): void; protected <API key>(): void; protected <API key>(): void; fromJSON(json: any): void; setJsonObject(jsonObj: any): void; endLoadingFromJson(): void; protected onBeforeCreating(): void; protected onCreating(): void; <API key>(valueName: string): boolean; <API key>(valueName: string): number; /** * Returns a variable value. Variable, unlike values, are not stored in the survey results. * @param name A variable name * @see SetVariable */ getVariable(name: string): any; /** * Sets a variable value. Variable, unlike values, are not stored in the survey results. * @param name A variable name * @param newValue A variable new value * @see GetVariable */ setVariable(name: string, newValue: any): void; protected getUnbindValue(value: any): any; /** * Returns a question value (answer) by a question's name. * @param name A question name * @see data * @see setValue */ getValue(name: string): any; /** * Sets a question value (answer). It runs all triggers and conditions (`visibleIf` properties). * * Goes to the next page if `goNextPageAutomatic` is `true` and all questions on the current page are answered correctly. * @param name A question name * @param newValue A new question value * @see data * @see getValue * @see PageModel.visibleIf * @see Question.visibleIf * @see goNextPageAutomatic */ setValue(name: string, newQuestionValue: any, locNotification?: any, <API key>?: boolean): void; protected doOnPageAdded(page: PageModel): void; protected <API key>(name: string): void; /** * Returns the comment value. * @param name A comment's name. * @see setComment */ getComment(name: string): string; /** * Sets a comment value. * @param name A comment name. * @param newValue A new comment value. * @see getComment */ setComment(name: string, newValue: string, locNotification?: any): void; /** * Removes a value from the survey results. * @param {string} name The name of the value. Typically it is a question name. */ clearValue(name: string): void; /** * Gets or sets whether to clear value on disable items in checkbox, dropdown and radiogroup questions. * By default, values are not cleared on disabled the corresponded items. This property is not persisted in survey JSON and you have to set it in code. */ <API key>: boolean; <API key>(question: IQuestion, newValue: boolean): void; <API key>(page: IPage, newValue: boolean): void; <API key>(panel: IPanel, newValue: boolean): void; questionCreated(question: IQuestion): any; questionAdded(question: IQuestion, index: number, parentPanel: any, rootPanel: any): void; questionRemoved(question: IQuestion): void; questionRenamed(question: IQuestion, oldName: string, oldValueName: string): any; panelAdded(panel: IElement, index: number, parentPanel: any, rootPanel: any): void; panelRemoved(panel: IElement): void; validateQuestion(question: IQuestion): SurveyError; validatePanel(panel: IPanel): SurveyError; processHtml(html: string): string; processText(text: string, returnDisplayValue: boolean): string; processTextEx(text: string, returnDisplayValue: boolean, doEncoding: boolean): any; <API key>(element: Base, text: string): string; /** * Returns an amount of corrected quiz answers. */ <API key>(): number; /** * Returns quiz question number. It may be different from `getQuizQuestions.length` because some widgets like matrix may have several questions. * @see getQuizQuestions */ <API key>(): number; /** * Returns an amount of incorrect quiz answers. */ <API key>(): number; getCorrectedAnswers(): number; <API key>(): number; /** * Gets or sets a timer panel position. The timer panel displays information about how much time an end user spends on a survey/page. * * The available options: * - `top` - display timer panel in the top. * - `bottom` - display timer panel in the bottom. * - `none` - do not display a timer panel. * * If the value is not equal to 'none', the survey calls the `startTimer()` method on survey rendering. * @see showTimerPanelMode * @see startTimer * @see stopTimer */ showTimerPanel: string; readonly <API key>: boolean; readonly <API key>: boolean; /** * Gets or set a value that specifies whether the timer displays information for the page or for the entire survey. * * The available options: * * - `page` - show timer information for page * - `survey` - show timer information for survey * * Use the `<API key>` event to change the default text. * @see showTimerPanel * @see <API key> */ showTimerPanelMode: string; readonly timerInfoText: string; /** * Starts a timer that will calculate how much time end-user spends on the survey or on pages. * @see stopTimer * @see timeSpent */ startTimer(): void; startTimerFromUI(): void; /** * Stops the timer. * @see startTimer * @see timeSpent */ stopTimer(): void; /** * Returns the time in seconds an end user spends on the survey * @see startTimer * @see PageModel.timeSpent */ timeSpent: number; /** * Gets or sets the maximum time in seconds that end user has to complete a survey. If the value is 0 or less, an end user has no time limit to finish a survey. * @see startTimer * @see maxTimeToFinishPage */ maxTimeToFinish: number; /** * Gets or sets the maximum time in seconds that end user has to complete a page in the survey. If the value is 0 or less, an end user has no time limit. * * You may override this value for every page. * @see startTimer * @see maxTimeToFinish * @see PageModel.maxTimeToFinish */ maxTimeToFinishPage: number; protected doTimer(): void; geSurveyData(): ISurveyData; getSurvey(): ISurvey; getTextProcessor(): ITextProcessor; getObjects(pages: string[], questions: string[]): any[]; setTriggerValue(name: string, value: any, isVariable: boolean): void; copyTriggerValue(name: string, fromName: string): void; focusQuestion(name: string): boolean; /** * Use this method to dispose survey model properly. */ dispose(): void; } /** * A base class for all triggers. * A trigger calls a method when the expression change the result: from false to true or from true to false. * Please note, it runs only one changing the expression result. */ export declare class Trigger extends Base { static operatorsValue: HashTable<Function>; static readonly operators: HashTable<Function>; constructor(); getType(): string; toString(): string; operator: string; value: any; name: string; expression: string; checkExpression(keys: any, values: HashTable<any>, properties?: HashTable<any>): void; check(value: any): void; protected onSuccess(values: HashTable<any>, properties: HashTable<any>): void; protected onFailure(): void; endLoadingFromJson(): void; buildExpression(): string; } export interface ISurveyTriggerOwner { getObjects(pages: string[], questions: string[]): any[]; setCompleted(): any; setTriggerValue(name: string, value: any, isVariable: boolean): any; copyTriggerValue(name: string, fromName: string): any; focusQuestion(name: string): boolean; } /** * It extends the Trigger base class and add properties required for SurveyJS classes. */ export declare class SurveyTrigger extends Trigger { protected ownerValue: ISurveyTriggerOwner; constructor(); readonly owner: ISurveyTriggerOwner; setOwner(owner: ISurveyTriggerOwner): void; readonly isOnNextPage: boolean; } /** * If expression returns true, it makes questions/pages visible. * Ohterwise it makes them invisible. */ export declare class <API key> extends SurveyTrigger { pages: string[]; questions: string[]; constructor(); getType(): string; protected onSuccess(values: HashTable<any>, properties: HashTable<any>): void; protected onFailure(): void; protected onItemSuccess(item: any): void; protected onItemFailure(item: any): void; } /** * If expression returns true, it completes the survey. */ export declare class <API key> extends SurveyTrigger { constructor(); getType(): string; readonly isOnNextPage: boolean; protected onSuccess(values: HashTable<any>, properties: HashTable<any>): void; } /** * If expression returns true, the value from property **setValue** will be set to **setToName** */ export declare class <API key> extends SurveyTrigger { constructor(); getType(): string; setToName: string; setValue: any; isVariable: boolean; protected onSuccess(values: HashTable<any>, properties: HashTable<any>): void; } /** * If expression returns true, the survey go to question **gotoName** and focus it. */ export declare class SurveyTriggerSkip extends SurveyTrigger { constructor(); getType(): string; gotoName: string; protected onSuccess(values: HashTable<any>, properties: HashTable<any>): void; } /** * If expression returns true, the **runExpression** will be run. If **setToName** property is not empty then the result of **runExpression** will be set to it. */ export declare class <API key> extends SurveyTrigger { constructor(); getType(): string; setToName: string; runExpression: string; protected onSuccess(values: HashTable<any>, properties: HashTable<any>): void; } /** * If expression returns true, the value from question **fromName** will be set into **setToName**. */ export declare class <API key> extends SurveyTrigger { constructor(); setToName: string; fromName: string; getType(): string; protected onSuccess(values: HashTable<any>, properties: HashTable<any>): void; } /** * A Model for a survey running in the Window. */ export declare class SurveyWindowModel extends Base { static surveyElementName: string; surveyValue: SurveyModel; windowElement: HTMLDivElement; templateValue: string; <API key>: () => void; <API key>: () => void; <API key>: () => void; constructor(jsonObj: any, initialModel?: SurveyModel); getType(): string; /** * A survey object. * @see SurveyModel */ readonly survey: SurveyModel; /** * Set this value to negative value, for example -1, to avoid closing the window on completing the survey. Leave it equals to 0 (default value) to close the window immediately, or set it to 3, 5, 10, ... to close the window in 3, 5, 10 seconds. */ <API key>: number; /** * Returns true if the window is currently showing. Set it to true to show the window and false to hide it. * @see show * @see hide */ isShowing: boolean; /** * Show the window * @see hide * @see isShowing */ show(): void; /** * Hide the window * @see show * @see isShowing */ hide(): void; /** * Returns true if the window is expanded. Set it to true to expand the window or false to collapse it. * @see expand * @see collapse */ isExpanded: boolean; /** * The window and survey title. */ title: string; readonly locTitle: LocalizableString; /** * Expand the window to show the survey. */ expand(): void; /** * Collapse the window and show survey title only. */ collapse(): void; protected createSurvey(jsonObj: any): SurveyModel; protected expandcollapse(value: boolean): void; protected onSurveyComplete(): void; protected <API key>(): void; } export declare class <API key> { start: number; end: number; } export declare class <API key> { name: string; returnDisplayValue: boolean; constructor(name: string, returnDisplayValue: boolean); value: any; isExists: boolean; canProcess: boolean; } export declare class TextPreProcessor { onProcess: (textValue: <API key>) => void; constructor(); process(text: string, returnDisplayValue?: boolean, doEncoding?: boolean): string; readonly <API key>: boolean; } /** * The class contains methods to work with api.surveyjs.io service. */ export declare class dxSurveyService { static serviceUrl: string; constructor(); loadSurvey(surveyId: string, onLoad: (success: boolean, result: string, response: any) => void): void; <API key>(surveyId: string, clientId: string, onLoad: (success: boolean, surveyJson: any, result: string, response: any) => void): void; sendResult(postId: string, result: JSON, onSendResult: (success: boolean, response: any, request?: any) => void, clientId?: string, isPartialCompleted?: boolean): void; sendFile(postId: string, file: File, onSendFile: (success: boolean, response: any) => void): void; getResult(resultId: string, name: string, onGetResult: (success: boolean, data: any, dataList: Array<any>, response: any) => void): void; isCompleted(resultId: string, clientId: string, onIsCompleted: (success: boolean, result: string, response: any) => void): void; } export declare var englishStrings: { pagePrevText: string; pageNextText: string; completeText: string; previewText: string; editText: string; startSurveyText: string; otherItemText: string; noneItemText: string; selectAllItemText: string; progressText: string; <API key>: string; <API key>: string; emptySurvey: string; completingSurvey: string; <API key>: string; loadingSurvey: string; optionsCaption: string; value: string; requiredError: string; <API key>: string; <API key>: string; numericError: string; textMinLength: string; textMaxLength: string; textMinMaxLength: string; minRowCountError: string; minSelectError: string; maxSelectError: string; numericMinMax: string; numericMin: string; numericMax: string; invalidEmail: string; invalidExpression: string; urlRequestError: string; urlGetChoicesError: string; exceedMaxSize: string; otherRequiredError: string; uploadingFile: string; loadingFile: string; chooseFile: string; noFileChosen: string; confirmDelete: string; keyDuplicationError: string; addColumn: string; addRow: string; removeRow: string; addPanel: string; removePanel: string; choices_Item: string; matrix_column: string; matrix_row: string; savingData: string; savingDataError: string; savingDataSuccess: string; saveAgainButton: string; timerMin: string; timerSec: string; timerSpentAll: string; timerSpentPage: string; timerSpentSurvey: string; timerLimitAll: string; timerLimitPage: string; timerLimitSurvey: string; cleanCaption: string; clearCaption: string; chooseFileCaption: string; removeFileCaption: string; booleanCheckedLabel: string; <API key>: string; confirmRemoveFile: string; <API key>: string; <API key>: string; }; export declare var surveyLocalization: { currentLocaleValue: string; defaultLocaleValue: string; locales: { [index: string]: any; }; localeNames: { [index: string]: any; }; supportedLocales: any[]; currentLocale: string; defaultLocale: string; getLocaleStrings(loc: string): any; getCurrentStrings(): any; getString: (strName: string) => any; getLocales: () => string[]; }; export declare var surveyStrings: { pagePrevText: string; pageNextText: string; completeText: string; previewText: string; editText: string; startSurveyText: string; otherItemText: string; noneItemText: string; selectAllItemText: string; progressText: string; <API key>: string; <API key>: string; emptySurvey: string; completingSurvey: string; <API key>: string; loadingSurvey: string; optionsCaption: string; value: string; requiredError: string; <API key>: string; <API key>: string; numericError: string; textMinLength: string; textMaxLength: string; textMinMaxLength: string; minRowCountError: string; minSelectError: string; maxSelectError: string; numericMinMax: string; numericMin: string; numericMax: string; invalidEmail: string; invalidExpression: string; urlRequestError: string; urlGetChoicesError: string; exceedMaxSize: string; otherRequiredError: string; uploadingFile: string; loadingFile: string; chooseFile: string; noFileChosen: string; confirmDelete: string; keyDuplicationError: string; addColumn: string; addRow: string; removeRow: string; addPanel: string; removePanel: string; choices_Item: string; matrix_column: string; matrix_row: string; savingData: string; savingDataError: string; savingDataSuccess: string; saveAgainButton: string; timerMin: string; timerSec: string; timerSpentAll: string; timerSpentPage: string; timerSpentSurvey: string; timerLimitAll: string; timerLimitPage: string; timerLimitSurvey: string; cleanCaption: string; clearCaption: string; chooseFileCaption: string; removeFileCaption: string; booleanCheckedLabel: string; <API key>: string; confirmRemoveFile: string; <API key>: string; <API key>: string; }; export declare class <API key> { name: string; widgetJson: any; htmlTemplate: string; isFirstRender: boolean; constructor(name: string, widgetJson: any); afterRender(question: IQuestion, el: any): void; willUnmount(question: IQuestion, el: any): void; getDisplayValue(question: IQuestion, value?: any): string; isFit(question: IQuestion): boolean; init(): void; activatedByChanged(activatedBy: string): void; readonly isDefaultRender: boolean; readonly pdfQuestionType: string; readonly pdfRender: any; } export declare class <API key> { static Instance: <API key>; onCustomWidgetAdded: Event<(customWidget: <API key>) => any, any>; readonly widgets: Array<<API key>>; add(widgetJson: any, activatedBy?: string): void; addCustomWidget(widgetJson: any, activatedBy?: string): void; /** * Returns the way the custom wiget is activated. It can be activated by a property ("property"), question type ("type") or by new/custom question type ("customtype"). * @param widgetName the custom widget name * @see setActivatedBy */ getActivatedBy(widgetName: string): string; /** * Sets the way the custom wiget is activated. The activation types are: property ("property"), question type ("type") or new/custom question type ("customtype"). A custom wiget may support all or only some of this activation types. * @param widgetName * @param activatedBy there are three possible variants: "property", "type" and "customtype" */ setActivatedBy(widgetName: string, activatedBy: string): void; clear(): void; <API key>(name: string): <API key>; getCustomWidget(question: IQuestion): <API key>; } export declare class <API key> { name: string; json: any; constructor(name: string, json: any); onInit(): void; onCreated(question: Question): void; onLoaded(question: Question): void; onAfterRender(question: Question, htmlElement: any): void; <API key>(question: Question, element: Question, htmlElement: any): void; onPropertyChanged(question: Question, propertyName: string, newValue: any): void; <API key>(question: Question, item: ItemValue, propertyName: string, name: string, newValue: any): void; readonly isComposite: boolean; } export declare class ComponentCollection { static Instance: ComponentCollection; onCreateComposite: (name: string, questionJSON: <API key>) => <API key>; onCreateCustom: (name: string, questionJSON: <API key>) => QuestionCustomModel; onAddingJson: (name: string, isComposite: boolean) => void; add(json: any): void; readonly items: Array<<API key>>; <API key>(name: string): <API key>; clear(): void; createQuestion(name: string, questionJSON: <API key>): Question; protected <API key>(name: string, questionJSON: <API key>): <API key>; protected createCustomModel(name: string, questionJSON: <API key>): QuestionCustomModel; } export declare abstract class <API key> extends Question implements ISurveyImpl, ISurveyData, IPanel { name: string; customQuestion: <API key>; constructor(name: string, customQuestion: <API key>); getType(): string; protected createWrapper(): void; protected <API key>(name: string, oldValue: any, newValue: any): void; <API key>(item: ItemValue, name: string, oldValue: any, newValue: any): void; onFirstRendering(): void; protected abstract getElement(): SurveyElement; protected initElement(el: SurveyElement): void; setSurveyImpl(value: ISurveyImpl): void; onSurveyLoad(): void; <API key>(el: any): void; afterRender(el: any): void; protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void; protected setNewValue(newValue: any): void; geSurveyData(): ISurveyData; getSurvey(): ISurvey; getTextProcessor(): ITextProcessor; getValue(name: string): any; setValue(name: string, newValue: any, locNotification: any, <API key>?: boolean): any; protected convertDataName(name: string): string; protected convertDataValue(name: string, newValue: any): any; getVariable(name: string): any; setVariable(name: string, newValue: any): void; getComment(name: string): string; setComment(name: string, newValue: string, locNotification: any): any; getAllValues(): any; getFilteredValues(): any; <API key>(): any; addElement(element: IElement, index: number): void; removeElement(element: IElement): boolean; <API key>(): string; <API key>(): string; <API key>(): string; elementWidthChanged(el: IElement): void; readonly elements: Array<IElement>; indexOf(el: IElement): number; } export declare class QuestionCustomModel extends <API key> { getTemplate(): string; protected createWrapper(): void; protected getElement(): SurveyElement; hasErrors(fireCallback?: boolean, rec?: any): boolean; focus(onError?: boolean): void; readonly contentQuestion: Question; protected createQuestion(): Question; onSurveyLoad(): void; runCondition(values: HashTable<any>, properties: HashTable<any>): void; protected convertDataName(name: string): string; protected convertDataValue(name: string, newValue: any): any; protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void; <API key>(newValue: any): void; protected initElement(el: SurveyElement): void; protected <API key>(cssClasses: any): void; } export declare class <API key> extends <API key> { protected createWrapper(): void; getTemplate(): string; protected getCssType(): string; protected getElement(): SurveyElement; readonly contentPanel: PanelModel; hasErrors(fireCallback?: boolean, rec?: any): boolean; updateElementCss(): void; protected createPanel(): PanelModel; protected onReadOnlyChanged(): void; onSurveyLoad(): void; setVisibleIndex(val: number): number; runCondition(values: HashTable<any>, properties: HashTable<any>): void; getValue(name: string): any; protected convertDataValue(name: string, newValue: any): any; protected setQuestionValue(newValue: any, updateIsAnswered?: boolean): void; } export declare class StylesManager { static Styles: { [key: string]: string; }; static Media: { [key: string]: { media: string; style: string; }; }; static ThemeColors: { [key: string]: { [key: string]: string; }; }; static ThemeCss: { [key: string]: string; }; static modernThemeCss: { [key: string]: string; }; static bootstrapThemeCss: { [key: string]: string; }; static <API key>: { [key: string]: string; }; static findSheet(styleSheetId: string): CSSStyleSheet; static createSheet(styleSheetId: string): CSSStyleSheet; static applyTheme(themeName?: string, themeSelector?: string): void; static Enabled: boolean; constructor(); initializeStyles(sheet: CSSStyleSheet): void; } export declare class Survey extends SurveyModel { static cssType: string; koCurrentPage: any; koIsFirstPage: any; koIsLastPage: any; dummyObservable: any; koState: any; koProgress: any; koProgressText: any; koAfterRenderPage: any; koAfterRenderHeader: any; koCompletedState: any; <API key>: any; koCompletedStateCss: any; koTimerInfoText: any; getDataValueCore(valuesHash: any, key: string): any; setDataValueCore(valuesHash: any, key: string, value: any): void; deleteDataValueCore(valuesHash: any, key: string): void; constructor(jsonObj?: any, renderedElement?: any, css?: any); protected onBaseCreating(): void; nextPageUIClick(): void; nextPageMouseDown(): void; render(element?: any): void; clear(clearData?: boolean, gotoFirstPage?: boolean): void; protected onLocaleChanged(): void; koEventAfterRender(element: any, survey: any): void; <API key>(surveyId?: string, clientId?: string, renderedElement?: any): void; setCompleted(): void; start(): boolean; protected createNewPage(name: string): Page; protected getHtmlTemplate(): string; protected onBeforeCreating(): void; protected currentPageChanged(newValue: PageModel, oldValue: PageModel): void; <API key>(page: IPage, newValue: boolean): void; protected <API key>(): void; protected <API key>(): void; protected setCompletedState(value: string, text: string): void; protected doTimer(): void; updateSurvey(newProps: any, oldProps?: any): void; dispose(): void; } export declare var <API key>: (ko: any, platform: string) => void; export declare class ImplementorBase { element: Base; constructor(element: Base); dispose(): void; } export declare class QuestionRow extends QuestionRowModel { panel: PanelModelBase; koGetType: any; <API key>: any; constructor(panel: PanelModelBase); getElementType(el: any): "survey-panel" | "survey-question"; koAfterRender(el: any, con: any): void; } export declare class <API key> extends ImplementorBase { panel: PanelModelBase; constructor(panel: PanelModelBase); } export declare class Panel extends PanelModel { koElementType: any; koCss: any; koIsExpanded: any; koIsCollapsed: any; koErrorClass: any; doExpand: any; constructor(name?: string); protected onBaseCreating(): void; protected createRow(): QuestionRowModel; protected onCreating(): void; protected onNumChanged(value: number): void; getTitleStyle(): any; endLoadingFromJson(): void; dispose(): void; } export declare class Page extends PageModel { constructor(name?: string); protected onBaseCreating(): void; protected createRow(): QuestionRowModel; protected createNewPanel(name: string): PanelModel; protected onCreating(): void; protected onNumChanged(value: number): void; dispose(): void; } export declare class FlowPanel extends FlowPanelModel { koElementType: any; <API key>: any; placeHolder: string; constructor(name?: string); protected onCreating(): void; protected getHtmlForQuestion(question: Question): string; } export declare class QuestionImplementor extends ImplementorBase { question: Question; koTemplateName: any; koElementType: any; constructor(question: Question); protected getKoValue(): any; protected updateQuestion(): void; protected <API key>(): void; protected onSurveyLoad(): void; protected getQuestionTemplate(): string; protected getNo(): string; protected updateKoDummy(): void; protected <API key>(elements: any, con: any): void; dispose(): void; } export declare class <API key> extends QuestionImplementor { protected onCreated(): void; constructor(question: Question); protected readonly isOtherSelected: boolean; } export declare class <API key> extends <API key> { constructor(question: Question); } export declare class QuestionCheckbox extends <API key> { name: string; koAllSelected: any; constructor(name: string); protected onBaseCreating(): void; protected onValueChanged(): void; protected <API key>(): void; protected updateAllSelected(): void; getItemClass(item: any): any; getLabelClass(item: any): any; getItemIndex(item: any): number; } export declare class QuestionComment extends <API key> { name: string; constructor(name: string); protected onBaseCreating(): void; } export declare class QuestionDropdown extends <API key> { name: string; constructor(name: string); protected onBaseCreating(): void; } export declare class QuestionFile extends QuestionFileModel { name: string; koState: any; koHasValue: any; koData: any; koInputTitle: any; koChooseFileClass: any; constructor(name: string); protected onBaseCreating(): void; } export declare class QuestionHtml extends QuestionHtmlModel { name: string; constructor(name: string); protected onBaseCreating(): void; } export declare class MatrixRow extends MatrixRowModel { fullName: string; koValue: any; koCellClick: any; constructor(item: ItemValue, fullName: string, data: IMatrixData, value: any); protected onValueChanged(): void; } export declare class QuestionMatrix extends QuestionMatrixModel { name: string; koVisibleRows: any; koVisibleColumns: any; constructor(name: string); protected onBaseCreating(): void; protected onColumnsChanged(): void; protected onRowsChanged(): void; onSurveyLoad(): void; protected createMatrixRow(item: ItemValue, fullName: string, value: any): MatrixRowModel; protected getVisibleRows(): Array<MatrixRowModel>; getItemCss(row: any, column: any): string; } export declare class <API key> extends QuestionImplementor { koCellAfterRender: any; koRecalc: any; koAddRowClick: any; koRemoveRowClick: any; koIsAddRowOnTop: any; koIsAddRowOnBottom: any; koTable: any; constructor(question: Question); protected getQuestionTemplate(): string; protected isAddRowTop(): boolean; protected isAddRowBottom(): boolean; protected canRemoveRows(): boolean; protected addRow(): void; protected removeRow(row: <API key>): void; dispose(): void; } export declare class <API key> extends <API key> { name: string; constructor(name: string); protected onBaseCreating(): void; dispose(): void; } export declare class <API key> extends <API key> { constructor(question: Question); protected isAddRowTop(): boolean; protected isAddRowBottom(): boolean; protected canRemoveRows(): boolean; protected addRow(): void; protected removeRow(row: <API key>): void; } export declare class <API key> extends <API key> { name: string; constructor(name: string); protected onBaseCreating(): void; } export declare class <API key> extends QuestionImplementor { koRecalc: any; koAddPanelClick: any; koRemovePanelClick: any; koButtonAddCss: any; koButtonPrevCss: any; koButtonNextCss: any; koPrevPanelClick: any; koNextPanelClick: any; koCanAddPanel: any; koCanRemovePanel: any; koProgressText: any; koProgress: any; koPanel: any; koIsList: any; koIsProgressTop: any; koIsProgressBottom: any; koIsNextButton: any; koIsPrevButton: any; koIsRange: any; koRangeValue: any; koRangeMax: any; constructor(question: Question); protected onPanelCountChanged(): void; protected onRenderModeChanged(): void; protected <API key>(): void; protected addPanel(): void; protected removePanel(val: any): void; protected readonly buttonAddCss: string; protected readonly buttonPrevCss: any; protected readonly buttonNextCss: any; protected readonly progress: string; } export declare class <API key> extends <API key> { name: string; constructor(name: string); protected onBaseCreating(): void; protected <API key>(): PanelModel; } export declare class MultipleTextItem extends <API key> { name: any; constructor(name?: any, title?: string); protected createEditor(name: string): QuestionTextModel; } export declare class <API key> extends <API key> { name: string; koRows: any; constructor(name: string); protected onBaseCreating(): void; protected onColCountChanged(): void; protected createTextItem(name: string, title: string): <API key>; } export declare class QuestionRadiogroup extends <API key> { name: string; constructor(name: string); protected onBaseCreating(): void; getItemClass(item: any): any; getLabelClass(item: any): any; getItemIndex(item: any): number; <API key>(item: any): any; } export declare class QuestionRating extends QuestionRatingModel { name: string; constructor(name: string); protected onBaseCreating(): void; } export declare class QuestionText extends QuestionTextModel { name: string; constructor(name: string); protected onBaseCreating(): void; } export declare class QuestionBoolean extends <API key> { name: string; constructor(name: string); protected onBaseCreating(): void; getItemCss(row: any, column: any): any; getCheckedLabelCss(): string; <API key>(): string; onSwitchClick(data: any, event: any): boolean; onTrueLabelClick(data: any, event: any): boolean; onFalseLabelClick(data: any, event: any): boolean; } export declare class QuestionEmpty extends QuestionEmptyModel { name: string; constructor(name: string); protected onBaseCreating(): void; } export declare class <API key> extends QuestionImplementor { question: Question; constructor(question: Question); } export declare class QuestionExpression extends <API key> { name: string; constructor(name: string); protected onBaseCreating(): void; } export declare class QuestionImagePicker extends <API key> { name: string; constructor(name: string); protected onBaseCreating(): void; getItemClass(item: any): string; } export declare class SurveyWindow extends SurveyWindowModel { koExpanded: any; koExpandedCss: any; doExpand: any; constructor(jsonObj?: any, initialModel?: SurveyModel); protected createSurvey(jsonObj: any): SurveyModel; protected <API key>(): void; protected template: string; protected doShowingChanged(): void; protected getDefaultTemplate(): string; readonly css: any; } export declare var koTemplate: any; export declare class SurveyTemplateText { constructor(); addText(newText: string, id: string, name: string): void; replaceText(replaceText: string, id: string, questionType?: string): void; protected getId(id: string, questionType: string): string; protected text: string; } export declare class QuestionImage extends QuestionImageModel { name: string; constructor(name: string); protected onBaseCreating(): void; } export declare class <API key> extends <API key> { name: string; constructor(name: string); protected onBaseCreating(): void; } export declare class QuestionCustom extends QuestionCustomModel { name: string; constructor(name: string, questionJSON: <API key>); protected onBaseCreating(): void; } export declare class QuestionComposite extends <API key> { name: string; constructor(name: string, questionJSON: <API key>); protected onBaseCreating(): void; } /** * A Model for a matrix base question. */ export declare class <API key><TRow, TColumn> extends Question { name: string; protected filteredColumns: Array<TColumn>; protected filteredRows: Array<ItemValue>; protected <API key>: Array<TRow>; protected generatedTotalRow: TRow; <API key>: () => void; protected createColumnValues(): any; constructor(name: string); getType(): string; readonly isCompositeQuestion: boolean; readonly isAllowTitleLeft: boolean; /** * Set this property to false, to hide table header. The default value is true. */ showHeader: boolean; /** * The list of columns. A column has a value and an optional text */ columns: Array<any>; readonly visibleColumns: Array<any>; /** * The list of rows. A row has a value and an optional text */ rows: Array<any>; protected processRowsOnSet(newRows: Array<any>): any[]; protected getVisibleRows(): Array<TRow>; /** * Returns the list of visible rows as model objects. * @see rowsVisibleIf */ readonly visibleRows: Array<TRow>; /** * An expression that returns true or false. It runs against each row item and if for this item it returns true, then the item is visible otherwise the item becomes invisible. Please use {item} to get the current item value in the expression. * @see visibleIf */ rowsVisibleIf: string; /** * An expression that returns true or false. It runs against each column item and if for this item it returns true, then the item is visible otherwise the item becomes invisible. Please use {item} to get the current item value in the expression. * @see rowsVisibleIf */ columnsVisibleIf: string; runCondition(values: HashTable<any>, properties: HashTable<any>): void; protected filterItems(): boolean; protected onColumnsChanged(): void; protected onRowsChanged(): void; protected <API key>(): boolean; protected hasRowsAsItems(): boolean; protected runItemsCondition(values: HashTable<any>, properties: HashTable<any>): boolean; <API key>(): void; protected <API key>(): void; }
/* TEMPLATE GENERATED TESTCASE FILE Filename: <API key>.cpp Label Definition File: <API key>.label.xml Template File: sources-sinks-09.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management Routines * BadSource: calloc Allocate data using calloc() * GoodSource: Allocate data using new * Sinks: * GoodSink: Deallocate data using free() * BadSink : Deallocate data using delete * Flow Variant: 09 Control flow: if(GLOBAL_CONST_TRUE) and if(GLOBAL_CONST_FALSE) * * */ #include "std_testcase.h" namespace <API key> { #ifndef OMITBAD void bad() { int64_t * data; /* Initialize data*/ data = NULL; if(GLOBAL_CONST_TRUE) { /* POTENTIAL FLAW: Allocate memory with a function that requires free() to free the memory */ data = (int64_t *)calloc(100, sizeof(int64_t)); } if(GLOBAL_CONST_TRUE) { /* POTENTIAL FLAW: Deallocate memory using delete - the source memory allocation function may * require a call to free() to deallocate the memory */ delete data; } } #endif /* OMITBAD */ #ifndef OMITGOOD /* goodB2G1() - use badsource and goodsink by changing the second GLOBAL_CONST_TRUE to GLOBAL_CONST_FALSE */ static void goodB2G1() { int64_t * data; /* Initialize data*/ data = NULL; if(GLOBAL_CONST_TRUE) { /* POTENTIAL FLAW: Allocate memory with a function that requires free() to free the memory */ data = (int64_t *)calloc(100, sizeof(int64_t)); } if(GLOBAL_CONST_FALSE) { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); } else { /* FIX: Deallocate the memory using free() */ free(data); } } /* goodB2G2() - use badsource and goodsink by reversing the blocks in the second if */ static void goodB2G2() { int64_t * data; /* Initialize data*/ data = NULL; if(GLOBAL_CONST_TRUE) { /* POTENTIAL FLAW: Allocate memory with a function that requires free() to free the memory */ data = (int64_t *)calloc(100, sizeof(int64_t)); } if(GLOBAL_CONST_TRUE) { /* FIX: Deallocate the memory using free() */ free(data); } } /* goodG2B1() - use goodsource and badsink by changing the first GLOBAL_CONST_TRUE to GLOBAL_CONST_FALSE */ static void goodG2B1() { int64_t * data; /* Initialize data*/ data = NULL; if(GLOBAL_CONST_FALSE) { /* INCIDENTAL: CWE 561 Dead Code, the code below will never run */ printLine("Benign, fixed string"); } else { /* FIX: Allocate memory from the heap using new */ data = new int64_t; } if(GLOBAL_CONST_TRUE) { /* POTENTIAL FLAW: Deallocate memory using delete - the source memory allocation function may * require a call to free() to deallocate the memory */ delete data; } } /* goodG2B2() - use goodsource and badsink by reversing the blocks in the first if */ static void goodG2B2() { int64_t * data; /* Initialize data*/ data = NULL; if(GLOBAL_CONST_TRUE) { /* FIX: Allocate memory from the heap using new */ data = new int64_t; } if(GLOBAL_CONST_TRUE) { /* POTENTIAL FLAW: Deallocate memory using delete - the source memory allocation function may * require a call to free() to deallocate the memory */ delete data; } } void good() { goodB2G1(); goodB2G2(); goodG2B1(); goodG2B2(); } #endif /* OMITGOOD */ } /* close namespace */ /* Below is the main(). It is only used when building this testcase on its own for testing or for building a binary to use in testing binary analysis tools. It is not used when compiling all the testcases as one application, which is how source code analysis tools are tested. */ #ifdef INCLUDEMAIN using namespace <API key>; /* so that we can use good and bad easily */ int main(int argc, char * argv[]) { /* seed randomness */ srand( (unsigned)time(NULL) ); #ifndef OMITGOOD printLine("Calling good()..."); good(); printLine("Finished good()"); #endif /* OMITGOOD */ #ifndef OMITBAD printLine("Calling bad()..."); bad(); printLine("Finished bad()"); #endif /* OMITBAD */ return 0; } #endif
# encoding: UTF-8 require File.expand_path("./helper", File.dirname(__FILE__)) require "redis/distributed" setup do log = StringIO.new init Redis::Distributed.new(NODES, :logger => ::Logger.new(log)) end test "MULTI/DISCARD" do |r| @foo = nil assert_raise Redis::Distributed::CannotDistribute do r.multi { @foo = 1 } end assert nil == @foo assert_raise Redis::Distributed::CannotDistribute do r.discard end end test "WATCH/UNWATCH" do |r| assert_raise Redis::Distributed::CannotDistribute do r.watch("foo") end assert_raise Redis::Distributed::CannotDistribute do r.unwatch end end
<?php namespace JGM\TableBundle\Table\Column; use JGM\TableBundle\Table\Row\Row; interface ColumnInterface { /** * @return string Label for this column. */ public function getLabel(); /** * @return string Name of this column. */ public function getName(); /** * @return array Attributes for the head (th). */ public function getHeadAttributes(); /** * @return array Attributes for every row (tr). */ public function getAttributes(); /** * @param Row $row Row, for that we want the content. * * @return string Content of this column on the given row. */ public function getContent(Row $row); /** * @return boolean True, if this column is sortable. */ public function isSortable(); /** * Here are your options. * Do whatever you want with these. * * @param array $options Options. */ public function setOptions(array $options); /** * This is your name in the table. * * @param string $name Name. */ public function setName($name); }
// MLScrollMenuView.h // <API key> #import <UIKit/UIKit.h> @class MLScrollMenuView; @class <API key>; @protocol <API key> <NSObject> - (NSString*)titleForIndex:(NSInteger)index; - (NSInteger)titleCount; - (void)<API key>:(NSInteger)oldIndex to:(NSInteger)toIndex animated:(BOOL)animated scrollMenuView:(MLScrollMenuView*)scrollMenuView; @optional - (BOOL)<API key>:(NSInteger)oldIndex to:(NSInteger)toIndex scrollMenuView:(MLScrollMenuView*)scrollMenuView; - (NSString*)extraSignForIndex:(NSInteger)index; - (void)afterLayoutWithCell:(<API key>*)cell index:(NSInteger)index; @end FOUNDATION_EXPORT CGFloat const <API key>; FOUNDATION_EXPORT CGFloat const <API key>; FOUNDATION_EXPORT CGFloat const <API key>; @interface <API key> : <API key> @property (nonatomic, strong) UILabel *titleLabel; @property (nonatomic, strong) UILabel *extraSignLabel; @end @interface MLScrollMenuView : UIView @property (nonatomic, assign, readonly) NSInteger currentIndex; @property (nonatomic, strong) UIFont *titleFont; @property (nonatomic, strong) UIFont *extraSignFont; @property (nonatomic, strong) UIColor *titleColor; @property (nonatomic, strong) UIColor *currentTitleColor; @property (nonatomic, strong) UIColor *<API key>; @property (nonatomic, strong) UIColor *<API key>; @property (nonatomic, strong, readonly) UIImageView *backgroundImageView; @property (nonatomic, assign) CGFloat indicatorViewHeight; //DefaultMLScrollMenuViewIndicatorViewHeight @property (nonatomic, assign) CGFloat <API key>; //DefaultMLScrollMenuViewCollectionViewCellXPaddingcell @property (nonatomic, assign) CGFloat <API key>; //DefaultMLScrollMenuViewIndicatorViewXPadding() @property (nonatomic, assign) UIOffset <API key>; //indicatorView @property (nonatomic, assign) BOOL animating; //setCurrentIndex:animated:YES YES,NO /** * delegateMLPageViewControllerMLPageViewController */ @property (nonatomic, weak) id<<API key>> delegate; /** * index * * @param currentIndex index * @param animated */ - (void)setCurrentIndex:(NSInteger)currentIndex animated:(BOOL)animated; /** * indexMLPageViewController */ - (void)displayFromIndex:(NSInteger)fromIndex toIndex:(NSInteger)toIndex ratio:(double)ratio; /** reload display */ - (void)reloadDisplay; @end
import React, { forwardRef } from 'react'; import PropTypes from 'prop-types'; const Cast = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => { return ( <svg ref={ref} xmlns="http: width={size} height={size} viewBox="0 0 24 24" fill="none" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...rest} > <path d="M2 16.1A5 5 0 0 1 5.9 20M2 12.05A9 9 0 0 1 9.95 20M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6" /> <line x1="2" y1="20" x2="2.01" y2="20" /> </svg> ); }); Cast.propTypes = { color: PropTypes.string, size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), }; Cast.displayName = 'Cast'; export default Cast;
import csv, sys, getopt, argparse, os import dbSettings COLUMN_LOCAL_ID = 'LocalId' <API key> = 'Uhl System Number' COLUMN_NHS_NUMBER = 'NHS Number' COLUMN_TITLE = 'Title' COLUMN_LAST_NAME = 'Last Name' COLUMN_FIRST_NAME = 'First Name' COLUMN_DOB = 'Date of Birth' COLUMN_GENDER = 'Gender' COLUMN_ADDRESS_1 = 'Address 1' COLUMN_ADDRESS_2 = 'Address 2' COLUMN_ADDRESS_3 = 'Address 3' COLUMN_ADDRESS_4 = 'Address 4' COLUMN_POST_CODE = 'Post Code' def main(): parser = argparse.ArgumentParser() parser.add_argument('infile', nargs='?') parser.add_argument("-o", "--outputfilename", nargs='?', help="Output filename", default="uhlSystemNumbers.csv") parser.add_argument("-c", "--idColumn", required=True, help="ID Column Name") args = parser.parse_args() with open(args.outputfilename, 'w') as outputFile: fieldnames = [ COLUMN_LOCAL_ID, <API key>, COLUMN_NHS_NUMBER, COLUMN_TITLE, COLUMN_LAST_NAME, COLUMN_FIRST_NAME, COLUMN_DOB, COLUMN_GENDER, COLUMN_ADDRESS_1, COLUMN_ADDRESS_2, COLUMN_ADDRESS_3, COLUMN_ADDRESS_4, COLUMN_POST_CODE] output = csv.DictWriter(outputFile, fieldnames=fieldnames) output.writeheader() with pymssql.connect(dbSettings.DB_SERVER_NAME, dbSettings.DB_USERNAME, dbSettings.DB_PASSWORD, dbSettings.DB_DATABASE) as conn: with open(args.infile, 'r') as infile: spamreader = csv.DictReader(infile, delimiter=',', quotechar='"') for row in spamreader: if row[args.idColumn]: details = getUhlSystemNumber(conn, row[args.idColumn]) output.writerow({ COLUMN_LOCAL_ID : row[args.idColumn], <API key> : '' if details['main_pat_id'] is None else details['main_pat_id'].upper(), COLUMN_NHS_NUMBER : '' if details['nhs_number'] is None else details['nhs_number'].replace(' ', ''), COLUMN_TITLE : '' if details['title'] is None else details['title'].title(), COLUMN_LAST_NAME : '' if details['last_name'] is None else details['last_name'].title(), COLUMN_FIRST_NAME : '' if details['first_name'] is None else details['first_name'].title(), COLUMN_DOB : '' if details['dob'] is None else details['dob'].strftime('%Y-%m-%d'), COLUMN_GENDER : '' if details['gender'] is None else details['gender'], COLUMN_ADDRESS_1 : '' if details['pat_addr1'] is None else details['pat_addr1'].title(), COLUMN_ADDRESS_2 : '' if details['pat_addr2'] is None else details['pat_addr2'].title(), COLUMN_ADDRESS_3 : '' if details['pat_addr3'] is None else details['pat_addr3'].title(), COLUMN_ADDRESS_4 : '' if details['pat_addr4'] is None else details['pat_addr4'].title(), COLUMN_POST_CODE : '' if details['postcode'] is None else details['postcode'].upper() }) def getUhlSystemNumber(pmiConnection, identifier): if (identifier.strip() == ""): return None with pmiConnection.cursor(as_dict=True) as cursor: cursor.execute('SELECT * FROM [PMIS_LIVE].[dbo].[UHL_PMI_QUERY_BY_ID] (%s)', identifier) return cursor.fetchone() if __name__ == "__main__": main()
html { box-sizing: border-box; } *, *::before, *::after { box-sizing: inherit; } .container, .container-fluid, .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container-xs { width: 100%; padding-right: var(--bs-gutter-x, 0.3125rem); padding-left: var(--bs-gutter-x, 0.3125rem); margin-right: auto; margin-left: auto; } @media (min-width: 768px) { .container, .container-fluid, .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container-xs { --bs-gutter-x: 0.625rem; } } .container { max-width: 312px; } @media (min-width: 480px) { .container-sm, .container { max-width: 468px; } } @media (min-width: 768px) { .container-md, .container-sm, .container { max-width: 744px; } } @media (min-width: 1024px) { .container-lg, .container-md, .container-sm, .container { max-width: 960px; } } @media (min-width: 1280px) { .container-xl, .container-lg, .container-md, .container-sm, .container { max-width: 1200px; } } @media (min-width: 1440px) { .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container { max-width: 1320px; } } .row { --bs-gutter-x: 0.625rem; --bs-gutter-y: 0; display: flex; flex-wrap: wrap; margin-top: calc(var(--bs-gutter-y) * -1); margin-right: calc(var(--bs-gutter-x) / -2); margin-left: calc(var(--bs-gutter-x) / -2); } @media (min-width: 768px) { .row { --bs-gutter-x: 1.25rem; } } .row > * { flex-shrink: 0; width: 100%; max-width: 100%; padding-right: calc(var(--bs-gutter-x) / 2); padding-left: calc(var(--bs-gutter-x) / 2); margin-top: var(--bs-gutter-y); } .col { flex: 1 0 0%; } .row-cols-auto > * { flex: 0 0 auto; width: auto; } .row-cols-1 > * { flex: 0 0 auto; width: 100%; } .row-cols-2 > * { flex: 0 0 auto; width: 50%; } .row-cols-3 > * { flex: 0 0 auto; width: 33.3333333333%; } .row-cols-4 > * { flex: 0 0 auto; width: 25%; } .row-cols-5 > * { flex: 0 0 auto; width: 20%; } .row-cols-6 > * { flex: 0 0 auto; width: 16.6666666667%; } .col-auto { flex: 0 0 auto; width: auto; } .col-1 { flex: 0 0 auto; width: 8.3333333333%; } .col-2 { flex: 0 0 auto; width: 16.6666666667%; } .col-3 { flex: 0 0 auto; width: 25%; } .col-4 { flex: 0 0 auto; width: 33.3333333333%; } .col-5 { flex: 0 0 auto; width: 41.6666666667%; } .col-6 { flex: 0 0 auto; width: 50%; } .col-7 { flex: 0 0 auto; width: 58.3333333333%; } .col-8 { flex: 0 0 auto; width: 66.6666666667%; } .col-9 { flex: 0 0 auto; width: 75%; } .col-10 { flex: 0 0 auto; width: 83.3333333333%; } .col-11 { flex: 0 0 auto; width: 91.6666666667%; } .col-12 { flex: 0 0 auto; width: 100%; } .offset-1 { margin-left: 8.3333333333%; } .offset-2 { margin-left: 16.6666666667%; } .offset-3 { margin-left: 25%; } .offset-4 { margin-left: 33.3333333333%; } .offset-5 { margin-left: 41.6666666667%; } .offset-6 { margin-left: 50%; } .offset-7 { margin-left: 58.3333333333%; } .offset-8 { margin-left: 66.6666666667%; } .offset-9 { margin-left: 75%; } .offset-10 { margin-left: 83.3333333333%; } .offset-11 { margin-left: 91.6666666667%; } .g-0, .gx-0 { --bs-gutter-x: 0; } .g-0, .gy-0 { --bs-gutter-y: 0; } .g-1, .gx-1 { --bs-gutter-x: 0.3125rem; } .g-1, .gy-1 { --bs-gutter-y: 0.3125rem; } .g-2, .gx-2 { --bs-gutter-x: 0.625rem; } .g-2, .gy-2 { --bs-gutter-y: 0.625rem; } .g-3, .gx-3 { --bs-gutter-x: 1.25rem; } .g-3, .gy-3 { --bs-gutter-y: 1.25rem; } .g-4, .gx-4 { --bs-gutter-x: 1.875rem; } .g-4, .gy-4 { --bs-gutter-y: 1.875rem; } .g-5, .gx-5 { --bs-gutter-x: 3.75rem; } .g-5, .gy-5 { --bs-gutter-y: 3.75rem; } @media (min-width: 480px) { .col-sm { flex: 1 0 0%; } .row-cols-sm-auto > * { flex: 0 0 auto; width: auto; } .row-cols-sm-1 > * { flex: 0 0 auto; width: 100%; } .row-cols-sm-2 > * { flex: 0 0 auto; width: 50%; } .row-cols-sm-3 > * { flex: 0 0 auto; width: 33.3333333333%; } .row-cols-sm-4 > * { flex: 0 0 auto; width: 25%; } .row-cols-sm-5 > * { flex: 0 0 auto; width: 20%; } .row-cols-sm-6 > * { flex: 0 0 auto; width: 16.6666666667%; } .col-sm-auto { flex: 0 0 auto; width: auto; } .col-sm-1 { flex: 0 0 auto; width: 8.3333333333%; } .col-sm-2 { flex: 0 0 auto; width: 16.6666666667%; } .col-sm-3 { flex: 0 0 auto; width: 25%; } .col-sm-4 { flex: 0 0 auto; width: 33.3333333333%; } .col-sm-5 { flex: 0 0 auto; width: 41.6666666667%; } .col-sm-6 { flex: 0 0 auto; width: 50%; } .col-sm-7 { flex: 0 0 auto; width: 58.3333333333%; } .col-sm-8 { flex: 0 0 auto; width: 66.6666666667%; } .col-sm-9 { flex: 0 0 auto; width: 75%; } .col-sm-10 { flex: 0 0 auto; width: 83.3333333333%; } .col-sm-11 { flex: 0 0 auto; width: 91.6666666667%; } .col-sm-12 { flex: 0 0 auto; width: 100%; } .offset-sm-0 { margin-left: 0; } .offset-sm-1 { margin-left: 8.3333333333%; } .offset-sm-2 { margin-left: 16.6666666667%; } .offset-sm-3 { margin-left: 25%; } .offset-sm-4 { margin-left: 33.3333333333%; } .offset-sm-5 { margin-left: 41.6666666667%; } .offset-sm-6 { margin-left: 50%; } .offset-sm-7 { margin-left: 58.3333333333%; } .offset-sm-8 { margin-left: 66.6666666667%; } .offset-sm-9 { margin-left: 75%; } .offset-sm-10 { margin-left: 83.3333333333%; } .offset-sm-11 { margin-left: 91.6666666667%; } .g-sm-0, .gx-sm-0 { --bs-gutter-x: 0; } .g-sm-0, .gy-sm-0 { --bs-gutter-y: 0; } .g-sm-1, .gx-sm-1 { --bs-gutter-x: 0.3125rem; } .g-sm-1, .gy-sm-1 { --bs-gutter-y: 0.3125rem; } .g-sm-2, .gx-sm-2 { --bs-gutter-x: 0.625rem; } .g-sm-2, .gy-sm-2 { --bs-gutter-y: 0.625rem; } .g-sm-3, .gx-sm-3 { --bs-gutter-x: 1.25rem; } .g-sm-3, .gy-sm-3 { --bs-gutter-y: 1.25rem; } .g-sm-4, .gx-sm-4 { --bs-gutter-x: 1.875rem; } .g-sm-4, .gy-sm-4 { --bs-gutter-y: 1.875rem; } .g-sm-5, .gx-sm-5 { --bs-gutter-x: 3.75rem; } .g-sm-5, .gy-sm-5 { --bs-gutter-y: 3.75rem; } } @media (min-width: 768px) { .col-md { flex: 1 0 0%; } .row-cols-md-auto > * { flex: 0 0 auto; width: auto; } .row-cols-md-1 > * { flex: 0 0 auto; width: 100%; } .row-cols-md-2 > * { flex: 0 0 auto; width: 50%; } .row-cols-md-3 > * { flex: 0 0 auto; width: 33.3333333333%; } .row-cols-md-4 > * { flex: 0 0 auto; width: 25%; } .row-cols-md-5 > * { flex: 0 0 auto; width: 20%; } .row-cols-md-6 > * { flex: 0 0 auto; width: 16.6666666667%; } .col-md-auto { flex: 0 0 auto; width: auto; } .col-md-1 { flex: 0 0 auto; width: 8.3333333333%; } .col-md-2 { flex: 0 0 auto; width: 16.6666666667%; } .col-md-3 { flex: 0 0 auto; width: 25%; } .col-md-4 { flex: 0 0 auto; width: 33.3333333333%; } .col-md-5 { flex: 0 0 auto; width: 41.6666666667%; } .col-md-6 { flex: 0 0 auto; width: 50%; } .col-md-7 { flex: 0 0 auto; width: 58.3333333333%; } .col-md-8 { flex: 0 0 auto; width: 66.6666666667%; } .col-md-9 { flex: 0 0 auto; width: 75%; } .col-md-10 { flex: 0 0 auto; width: 83.3333333333%; } .col-md-11 { flex: 0 0 auto; width: 91.6666666667%; } .col-md-12 { flex: 0 0 auto; width: 100%; } .offset-md-0 { margin-left: 0; } .offset-md-1 { margin-left: 8.3333333333%; } .offset-md-2 { margin-left: 16.6666666667%; } .offset-md-3 { margin-left: 25%; } .offset-md-4 { margin-left: 33.3333333333%; } .offset-md-5 { margin-left: 41.6666666667%; } .offset-md-6 { margin-left: 50%; } .offset-md-7 { margin-left: 58.3333333333%; } .offset-md-8 { margin-left: 66.6666666667%; } .offset-md-9 { margin-left: 75%; } .offset-md-10 { margin-left: 83.3333333333%; } .offset-md-11 { margin-left: 91.6666666667%; } .g-md-0, .gx-md-0 { --bs-gutter-x: 0; } .g-md-0, .gy-md-0 { --bs-gutter-y: 0; } .g-md-1, .gx-md-1 { --bs-gutter-x: 0.3125rem; } .g-md-1, .gy-md-1 { --bs-gutter-y: 0.3125rem; } .g-md-2, .gx-md-2 { --bs-gutter-x: 0.625rem; } .g-md-2, .gy-md-2 { --bs-gutter-y: 0.625rem; } .g-md-3, .gx-md-3 { --bs-gutter-x: 1.25rem; } .g-md-3, .gy-md-3 { --bs-gutter-y: 1.25rem; } .g-md-4, .gx-md-4 { --bs-gutter-x: 1.875rem; } .g-md-4, .gy-md-4 { --bs-gutter-y: 1.875rem; } .g-md-5, .gx-md-5 { --bs-gutter-x: 3.75rem; } .g-md-5, .gy-md-5 { --bs-gutter-y: 3.75rem; } } @media (min-width: 1024px) { .col-lg { flex: 1 0 0%; } .row-cols-lg-auto > * { flex: 0 0 auto; width: auto; } .row-cols-lg-1 > * { flex: 0 0 auto; width: 100%; } .row-cols-lg-2 > * { flex: 0 0 auto; width: 50%; } .row-cols-lg-3 > * { flex: 0 0 auto; width: 33.3333333333%; } .row-cols-lg-4 > * { flex: 0 0 auto; width: 25%; } .row-cols-lg-5 > * { flex: 0 0 auto; width: 20%; } .row-cols-lg-6 > * { flex: 0 0 auto; width: 16.6666666667%; } .col-lg-auto { flex: 0 0 auto; width: auto; } .col-lg-1 { flex: 0 0 auto; width: 8.3333333333%; } .col-lg-2 { flex: 0 0 auto; width: 16.6666666667%; } .col-lg-3 { flex: 0 0 auto; width: 25%; } .col-lg-4 { flex: 0 0 auto; width: 33.3333333333%; } .col-lg-5 { flex: 0 0 auto; width: 41.6666666667%; } .col-lg-6 { flex: 0 0 auto; width: 50%; } .col-lg-7 { flex: 0 0 auto; width: 58.3333333333%; } .col-lg-8 { flex: 0 0 auto; width: 66.6666666667%; } .col-lg-9 { flex: 0 0 auto; width: 75%; } .col-lg-10 { flex: 0 0 auto; width: 83.3333333333%; } .col-lg-11 { flex: 0 0 auto; width: 91.6666666667%; } .col-lg-12 { flex: 0 0 auto; width: 100%; } .offset-lg-0 { margin-left: 0; } .offset-lg-1 { margin-left: 8.3333333333%; } .offset-lg-2 { margin-left: 16.6666666667%; } .offset-lg-3 { margin-left: 25%; } .offset-lg-4 { margin-left: 33.3333333333%; } .offset-lg-5 { margin-left: 41.6666666667%; } .offset-lg-6 { margin-left: 50%; } .offset-lg-7 { margin-left: 58.3333333333%; } .offset-lg-8 { margin-left: 66.6666666667%; } .offset-lg-9 { margin-left: 75%; } .offset-lg-10 { margin-left: 83.3333333333%; } .offset-lg-11 { margin-left: 91.6666666667%; } .g-lg-0, .gx-lg-0 { --bs-gutter-x: 0; } .g-lg-0, .gy-lg-0 { --bs-gutter-y: 0; } .g-lg-1, .gx-lg-1 { --bs-gutter-x: 0.3125rem; } .g-lg-1, .gy-lg-1 { --bs-gutter-y: 0.3125rem; } .g-lg-2, .gx-lg-2 { --bs-gutter-x: 0.625rem; } .g-lg-2, .gy-lg-2 { --bs-gutter-y: 0.625rem; } .g-lg-3, .gx-lg-3 { --bs-gutter-x: 1.25rem; } .g-lg-3, .gy-lg-3 { --bs-gutter-y: 1.25rem; } .g-lg-4, .gx-lg-4 { --bs-gutter-x: 1.875rem; } .g-lg-4, .gy-lg-4 { --bs-gutter-y: 1.875rem; } .g-lg-5, .gx-lg-5 { --bs-gutter-x: 3.75rem; } .g-lg-5, .gy-lg-5 { --bs-gutter-y: 3.75rem; } } @media (min-width: 1280px) { .col-xl { flex: 1 0 0%; } .row-cols-xl-auto > * { flex: 0 0 auto; width: auto; } .row-cols-xl-1 > * { flex: 0 0 auto; width: 100%; } .row-cols-xl-2 > * { flex: 0 0 auto; width: 50%; } .row-cols-xl-3 > * { flex: 0 0 auto; width: 33.3333333333%; } .row-cols-xl-4 > * { flex: 0 0 auto; width: 25%; } .row-cols-xl-5 > * { flex: 0 0 auto; width: 20%; } .row-cols-xl-6 > * { flex: 0 0 auto; width: 16.6666666667%; } .col-xl-auto { flex: 0 0 auto; width: auto; } .col-xl-1 { flex: 0 0 auto; width: 8.3333333333%; } .col-xl-2 { flex: 0 0 auto; width: 16.6666666667%; } .col-xl-3 { flex: 0 0 auto; width: 25%; } .col-xl-4 { flex: 0 0 auto; width: 33.3333333333%; } .col-xl-5 { flex: 0 0 auto; width: 41.6666666667%; } .col-xl-6 { flex: 0 0 auto; width: 50%; } .col-xl-7 { flex: 0 0 auto; width: 58.3333333333%; } .col-xl-8 { flex: 0 0 auto; width: 66.6666666667%; } .col-xl-9 { flex: 0 0 auto; width: 75%; } .col-xl-10 { flex: 0 0 auto; width: 83.3333333333%; } .col-xl-11 { flex: 0 0 auto; width: 91.6666666667%; } .col-xl-12 { flex: 0 0 auto; width: 100%; } .offset-xl-0 { margin-left: 0; } .offset-xl-1 { margin-left: 8.3333333333%; } .offset-xl-2 { margin-left: 16.6666666667%; } .offset-xl-3 { margin-left: 25%; } .offset-xl-4 { margin-left: 33.3333333333%; } .offset-xl-5 { margin-left: 41.6666666667%; } .offset-xl-6 { margin-left: 50%; } .offset-xl-7 { margin-left: 58.3333333333%; } .offset-xl-8 { margin-left: 66.6666666667%; } .offset-xl-9 { margin-left: 75%; } .offset-xl-10 { margin-left: 83.3333333333%; } .offset-xl-11 { margin-left: 91.6666666667%; } .g-xl-0, .gx-xl-0 { --bs-gutter-x: 0; } .g-xl-0, .gy-xl-0 { --bs-gutter-y: 0; } .g-xl-1, .gx-xl-1 { --bs-gutter-x: 0.3125rem; } .g-xl-1, .gy-xl-1 { --bs-gutter-y: 0.3125rem; } .g-xl-2, .gx-xl-2 { --bs-gutter-x: 0.625rem; } .g-xl-2, .gy-xl-2 { --bs-gutter-y: 0.625rem; } .g-xl-3, .gx-xl-3 { --bs-gutter-x: 1.25rem; } .g-xl-3, .gy-xl-3 { --bs-gutter-y: 1.25rem; } .g-xl-4, .gx-xl-4 { --bs-gutter-x: 1.875rem; } .g-xl-4, .gy-xl-4 { --bs-gutter-y: 1.875rem; } .g-xl-5, .gx-xl-5 { --bs-gutter-x: 3.75rem; } .g-xl-5, .gy-xl-5 { --bs-gutter-y: 3.75rem; } } @media (min-width: 1440px) { .col-xxl { flex: 1 0 0%; } .row-cols-xxl-auto > * { flex: 0 0 auto; width: auto; } .row-cols-xxl-1 > * { flex: 0 0 auto; width: 100%; } .row-cols-xxl-2 > * { flex: 0 0 auto; width: 50%; } .row-cols-xxl-3 > * { flex: 0 0 auto; width: 33.3333333333%; } .row-cols-xxl-4 > * { flex: 0 0 auto; width: 25%; } .row-cols-xxl-5 > * { flex: 0 0 auto; width: 20%; } .row-cols-xxl-6 > * { flex: 0 0 auto; width: 16.6666666667%; } .col-xxl-auto { flex: 0 0 auto; width: auto; } .col-xxl-1 { flex: 0 0 auto; width: 8.3333333333%; } .col-xxl-2 { flex: 0 0 auto; width: 16.6666666667%; } .col-xxl-3 { flex: 0 0 auto; width: 25%; } .col-xxl-4 { flex: 0 0 auto; width: 33.3333333333%; } .col-xxl-5 { flex: 0 0 auto; width: 41.6666666667%; } .col-xxl-6 { flex: 0 0 auto; width: 50%; } .col-xxl-7 { flex: 0 0 auto; width: 58.3333333333%; } .col-xxl-8 { flex: 0 0 auto; width: 66.6666666667%; } .col-xxl-9 { flex: 0 0 auto; width: 75%; } .col-xxl-10 { flex: 0 0 auto; width: 83.3333333333%; } .col-xxl-11 { flex: 0 0 auto; width: 91.6666666667%; } .col-xxl-12 { flex: 0 0 auto; width: 100%; } .offset-xxl-0 { margin-left: 0; } .offset-xxl-1 { margin-left: 8.3333333333%; } .offset-xxl-2 { margin-left: 16.6666666667%; } .offset-xxl-3 { margin-left: 25%; } .offset-xxl-4 { margin-left: 33.3333333333%; } .offset-xxl-5 { margin-left: 41.6666666667%; } .offset-xxl-6 { margin-left: 50%; } .offset-xxl-7 { margin-left: 58.3333333333%; } .offset-xxl-8 { margin-left: 66.6666666667%; } .offset-xxl-9 { margin-left: 75%; } .offset-xxl-10 { margin-left: 83.3333333333%; } .offset-xxl-11 { margin-left: 91.6666666667%; } .g-xxl-0, .gx-xxl-0 { --bs-gutter-x: 0; } .g-xxl-0, .gy-xxl-0 { --bs-gutter-y: 0; } .g-xxl-1, .gx-xxl-1 { --bs-gutter-x: 0.3125rem; } .g-xxl-1, .gy-xxl-1 { --bs-gutter-y: 0.3125rem; } .g-xxl-2, .gx-xxl-2 { --bs-gutter-x: 0.625rem; } .g-xxl-2, .gy-xxl-2 { --bs-gutter-y: 0.625rem; } .g-xxl-3, .gx-xxl-3 { --bs-gutter-x: 1.25rem; } .g-xxl-3, .gy-xxl-3 { --bs-gutter-y: 1.25rem; } .g-xxl-4, .gx-xxl-4 { --bs-gutter-x: 1.875rem; } .g-xxl-4, .gy-xxl-4 { --bs-gutter-y: 1.875rem; } .g-xxl-5, .gx-xxl-5 { --bs-gutter-x: 3.75rem; } .g-xxl-5, .gy-xxl-5 { --bs-gutter-y: 3.75rem; } } .d-inline { display: inline !important; } .d-inline-block { display: inline-block !important; } .d-block { display: block !important; } .d-grid { display: grid !important; } .d-table { display: table !important; } .d-table-row { display: table-row !important; } .d-table-cell { display: table-cell !important; } .d-flex { display: flex !important; } .d-inline-flex { display: inline-flex !important; } .d-none { display: none !important; } .flex-fill { flex: 1 1 auto !important; } .flex-row { flex-direction: row !important; } .flex-column { flex-direction: column !important; } .flex-row-reverse { flex-direction: row-reverse !important; } .flex-column-reverse { flex-direction: column-reverse !important; } .flex-grow-0 { flex-grow: 0 !important; } .flex-grow-1 { flex-grow: 1 !important; } .<API key> { justify-content: flex-start !important; } .justify-content-end { justify-content: flex-end !important; } .<API key> { justify-content: center !important; } .<API key> { justify-content: space-between !important; } .<API key> { justify-content: space-around !important; } .<API key> { justify-content: space-evenly !important; } .align-items-start { align-items: flex-start !important; } .align-items-end { align-items: flex-end !important; } .align-items-center { align-items: center !important; } .<API key> { align-items: baseline !important; } .align-items-stretch { align-items: stretch !important; } .align-content-start { align-content: flex-start !important; } .align-content-end { align-content: flex-end !important; } .<API key> { align-content: center !important; } .<API key> { align-content: space-between !important; } .<API key> { align-content: space-around !important; } .<API key> { align-content: stretch !important; } .align-self-auto { align-self: auto !important; } .align-self-start { align-self: flex-start !important; } .align-self-end { align-self: flex-end !important; } .align-self-center { align-self: center !important; } .align-self-baseline { align-self: baseline !important; } .align-self-stretch { align-self: stretch !important; } .order-first { order: -1 !important; } .order-0 { order: 0 !important; } .order-1 { order: 1 !important; } .order-2 { order: 2 !important; } .order-3 { order: 3 !important; } .order-4 { order: 4 !important; } .order-5 { order: 5 !important; } .order-last { order: 6 !important; } .m-0 { margin: 0 !important; } .m-1 { margin: 0.3125rem !important; } .m-2 { margin: 0.625rem !important; } .m-3 { margin: 1.25rem !important; } .m-4 { margin: 1.875rem !important; } .m-5 { margin: 3.75rem !important; } .m-auto { margin: auto !important; } .mx-0 { margin-right: 0 !important; margin-left: 0 !important; } .mx-1 { margin-right: 0.3125rem !important; margin-left: 0.3125rem !important; } .mx-2 { margin-right: 0.625rem !important; margin-left: 0.625rem !important; } .mx-3 { margin-right: 1.25rem !important; margin-left: 1.25rem !important; } .mx-4 { margin-right: 1.875rem !important; margin-left: 1.875rem !important; } .mx-5 { margin-right: 3.75rem !important; margin-left: 3.75rem !important; } .mx-auto { margin-right: auto !important; margin-left: auto !important; } .my-0 { margin-top: 0 !important; margin-bottom: 0 !important; } .my-1 { margin-top: 0.3125rem !important; margin-bottom: 0.3125rem !important; } .my-2 { margin-top: 0.625rem !important; margin-bottom: 0.625rem !important; } .my-3 { margin-top: 1.25rem !important; margin-bottom: 1.25rem !important; } .my-4 { margin-top: 1.875rem !important; margin-bottom: 1.875rem !important; } .my-5 { margin-top: 3.75rem !important; margin-bottom: 3.75rem !important; } .my-auto { margin-top: auto !important; margin-bottom: auto !important; } .mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 0.3125rem !important; } .mt-2 { margin-top: 0.625rem !important; } .mt-3 { margin-top: 1.25rem !important; } .mt-4 { margin-top: 1.875rem !important; } .mt-5 { margin-top: 3.75rem !important; } .mt-auto { margin-top: auto !important; } .mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 0.3125rem !important; } .mb-2 { margin-bottom: 0.625rem !important; } .mb-3 { margin-bottom: 1.25rem !important; } .mb-4 { margin-bottom: 1.875rem !important; } .mb-5 { margin-bottom: 3.75rem !important; } .mb-auto { margin-bottom: auto !important; } .ms-0 { margin-left: 0 !important; } .ms-1 { margin-left: 0.3125rem !important; } .ms-2 { margin-left: 0.625rem !important; } .ms-3 { margin-left: 1.25rem !important; } .ms-4 { margin-left: 1.875rem !important; } .ms-5 { margin-left: 3.75rem !important; } .ms-auto { margin-left: auto !important; } .p-0 { padding: 0 !important; } .p-1 { padding: 0.3125rem !important; } .p-2 { padding: 0.625rem !important; } .p-3 { padding: 1.25rem !important; } .p-4 { padding: 1.875rem !important; } .p-5 { padding: 3.75rem !important; } .px-0 { padding-right: 0 !important; padding-left: 0 !important; } .px-1 { padding-right: 0.3125rem !important; padding-left: 0.3125rem !important; } .px-2 { padding-right: 0.625rem !important; padding-left: 0.625rem !important; } .px-3 { padding-right: 1.25rem !important; padding-left: 1.25rem !important; } .px-4 { padding-right: 1.875rem !important; padding-left: 1.875rem !important; } .px-5 { padding-right: 3.75rem !important; padding-left: 3.75rem !important; } .py-0 { padding-top: 0 !important; padding-bottom: 0 !important; } .py-1 { padding-top: 0.3125rem !important; padding-bottom: 0.3125rem !important; } .py-2 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; } .py-3 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; } .py-4 { padding-top: 1.875rem !important; padding-bottom: 1.875rem !important; } .py-5 { padding-top: 3.75rem !important; padding-bottom: 3.75rem !important; } .pt-0 { padding-top: 0 !important; } .pt-1 { padding-top: 0.3125rem !important; } .pt-2 { padding-top: 0.625rem !important; } .pt-3 { padding-top: 1.25rem !important; } .pt-4 { padding-top: 1.875rem !important; } .pt-5 { padding-top: 3.75rem !important; } .pe-0 { padding-right: 0 !important; } .pe-1 { padding-right: 0.3125rem !important; } .pe-2 { padding-right: 0.625rem !important; } .pe-3 { padding-right: 1.25rem !important; } .pe-4 { padding-right: 1.875rem !important; } .pe-5 { padding-right: 3.75rem !important; } .pb-0 { padding-bottom: 0 !important; } .pb-1 { padding-bottom: 0.3125rem !important; } .pb-2 { padding-bottom: 0.625rem !important; } .pb-3 { padding-bottom: 1.25rem !important; } .pb-4 { padding-bottom: 1.875rem !important; } .pb-5 { padding-bottom: 3.75rem !important; } .ps-0 { padding-left: 0 !important; } .ps-1 { padding-left: 0.3125rem !important; } .ps-2 { padding-left: 0.625rem !important; } .ps-3 { padding-left: 1.25rem !important; } .ps-4 { padding-left: 1.875rem !important; } .ps-5 { padding-left: 3.75rem !important; } @media (min-width: 480px) { .d-sm-inline { display: inline !important; } .d-sm-inline-block { display: inline-block !important; } .d-sm-block { display: block !important; } .d-sm-grid { display: grid !important; } .d-sm-table { display: table !important; } .d-sm-table-row { display: table-row !important; } .d-sm-table-cell { display: table-cell !important; } .d-sm-flex { display: flex !important; } .d-sm-inline-flex { display: inline-flex !important; } .d-sm-none { display: none !important; } .flex-sm-fill { flex: 1 1 auto !important; } .flex-sm-row { flex-direction: row !important; } .flex-sm-column { flex-direction: column !important; } .flex-sm-row-reverse { flex-direction: row-reverse !important; } .<API key> { flex-direction: column-reverse !important; } .flex-sm-grow-0 { flex-grow: 0 !important; } .flex-sm-grow-1 { flex-grow: 1 !important; } .<API key> { justify-content: flex-start !important; } .<API key> { justify-content: flex-end !important; } .<API key> { justify-content: center !important; } .<API key> { justify-content: space-between !important; } .<API key> { justify-content: space-around !important; } .<API key> { justify-content: space-evenly !important; } .<API key> { align-items: flex-start !important; } .align-items-sm-end { align-items: flex-end !important; } .<API key> { align-items: center !important; } .<API key> { align-items: baseline !important; } .<API key> { align-items: stretch !important; } .<API key> { align-content: flex-start !important; } .<API key> { align-content: flex-end !important; } .<API key> { align-content: center !important; } .<API key> { align-content: space-between !important; } .<API key> { align-content: space-around !important; } .<API key> { align-content: stretch !important; } .align-self-sm-auto { align-self: auto !important; } .align-self-sm-start { align-self: flex-start !important; } .align-self-sm-end { align-self: flex-end !important; } .<API key> { align-self: center !important; } .<API key> { align-self: baseline !important; } .<API key> { align-self: stretch !important; } .order-sm-first { order: -1 !important; } .order-sm-0 { order: 0 !important; } .order-sm-1 { order: 1 !important; } .order-sm-2 { order: 2 !important; } .order-sm-3 { order: 3 !important; } .order-sm-4 { order: 4 !important; } .order-sm-5 { order: 5 !important; } .order-sm-last { order: 6 !important; } .m-sm-0 { margin: 0 !important; } .m-sm-1 { margin: 0.3125rem !important; } .m-sm-2 { margin: 0.625rem !important; } .m-sm-3 { margin: 1.25rem !important; } .m-sm-4 { margin: 1.875rem !important; } .m-sm-5 { margin: 3.75rem !important; } .m-sm-auto { margin: auto !important; } .mx-sm-0 { margin-right: 0 !important; margin-left: 0 !important; } .mx-sm-1 { margin-right: 0.3125rem !important; margin-left: 0.3125rem !important; } .mx-sm-2 { margin-right: 0.625rem !important; margin-left: 0.625rem !important; } .mx-sm-3 { margin-right: 1.25rem !important; margin-left: 1.25rem !important; } .mx-sm-4 { margin-right: 1.875rem !important; margin-left: 1.875rem !important; } .mx-sm-5 { margin-right: 3.75rem !important; margin-left: 3.75rem !important; } .mx-sm-auto { margin-right: auto !important; margin-left: auto !important; } .my-sm-0 { margin-top: 0 !important; margin-bottom: 0 !important; } .my-sm-1 { margin-top: 0.3125rem !important; margin-bottom: 0.3125rem !important; } .my-sm-2 { margin-top: 0.625rem !important; margin-bottom: 0.625rem !important; } .my-sm-3 { margin-top: 1.25rem !important; margin-bottom: 1.25rem !important; } .my-sm-4 { margin-top: 1.875rem !important; margin-bottom: 1.875rem !important; } .my-sm-5 { margin-top: 3.75rem !important; margin-bottom: 3.75rem !important; } .my-sm-auto { margin-top: auto !important; margin-bottom: auto !important; } .mt-sm-0 { margin-top: 0 !important; } .mt-sm-1 { margin-top: 0.3125rem !important; } .mt-sm-2 { margin-top: 0.625rem !important; } .mt-sm-3 { margin-top: 1.25rem !important; } .mt-sm-4 { margin-top: 1.875rem !important; } .mt-sm-5 { margin-top: 3.75rem !important; } .mt-sm-auto { margin-top: auto !important; } .mb-sm-0 { margin-bottom: 0 !important; } .mb-sm-1 { margin-bottom: 0.3125rem !important; } .mb-sm-2 { margin-bottom: 0.625rem !important; } .mb-sm-3 { margin-bottom: 1.25rem !important; } .mb-sm-4 { margin-bottom: 1.875rem !important; } .mb-sm-5 { margin-bottom: 3.75rem !important; } .mb-sm-auto { margin-bottom: auto !important; } .ms-sm-0 { margin-left: 0 !important; } .ms-sm-1 { margin-left: 0.3125rem !important; } .ms-sm-2 { margin-left: 0.625rem !important; } .ms-sm-3 { margin-left: 1.25rem !important; } .ms-sm-4 { margin-left: 1.875rem !important; } .ms-sm-5 { margin-left: 3.75rem !important; } .ms-sm-auto { margin-left: auto !important; } .p-sm-0 { padding: 0 !important; } .p-sm-1 { padding: 0.3125rem !important; } .p-sm-2 { padding: 0.625rem !important; } .p-sm-3 { padding: 1.25rem !important; } .p-sm-4 { padding: 1.875rem !important; } .p-sm-5 { padding: 3.75rem !important; } .px-sm-0 { padding-right: 0 !important; padding-left: 0 !important; } .px-sm-1 { padding-right: 0.3125rem !important; padding-left: 0.3125rem !important; } .px-sm-2 { padding-right: 0.625rem !important; padding-left: 0.625rem !important; } .px-sm-3 { padding-right: 1.25rem !important; padding-left: 1.25rem !important; } .px-sm-4 { padding-right: 1.875rem !important; padding-left: 1.875rem !important; } .px-sm-5 { padding-right: 3.75rem !important; padding-left: 3.75rem !important; } .py-sm-0 { padding-top: 0 !important; padding-bottom: 0 !important; } .py-sm-1 { padding-top: 0.3125rem !important; padding-bottom: 0.3125rem !important; } .py-sm-2 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; } .py-sm-3 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; } .py-sm-4 { padding-top: 1.875rem !important; padding-bottom: 1.875rem !important; } .py-sm-5 { padding-top: 3.75rem !important; padding-bottom: 3.75rem !important; } .pt-sm-0 { padding-top: 0 !important; } .pt-sm-1 { padding-top: 0.3125rem !important; } .pt-sm-2 { padding-top: 0.625rem !important; } .pt-sm-3 { padding-top: 1.25rem !important; } .pt-sm-4 { padding-top: 1.875rem !important; } .pt-sm-5 { padding-top: 3.75rem !important; } .pe-sm-0 { padding-right: 0 !important; } .pe-sm-1 { padding-right: 0.3125rem !important; } .pe-sm-2 { padding-right: 0.625rem !important; } .pe-sm-3 { padding-right: 1.25rem !important; } .pe-sm-4 { padding-right: 1.875rem !important; } .pe-sm-5 { padding-right: 3.75rem !important; } .pb-sm-0 { padding-bottom: 0 !important; } .pb-sm-1 { padding-bottom: 0.3125rem !important; } .pb-sm-2 { padding-bottom: 0.625rem !important; } .pb-sm-3 { padding-bottom: 1.25rem !important; } .pb-sm-4 { padding-bottom: 1.875rem !important; } .pb-sm-5 { padding-bottom: 3.75rem !important; } .ps-sm-0 { padding-left: 0 !important; } .ps-sm-1 { padding-left: 0.3125rem !important; } .ps-sm-2 { padding-left: 0.625rem !important; } .ps-sm-3 { padding-left: 1.25rem !important; } .ps-sm-4 { padding-left: 1.875rem !important; } .ps-sm-5 { padding-left: 3.75rem !important; } } @media (min-width: 768px) { .d-md-inline { display: inline !important; } .d-md-inline-block { display: inline-block !important; } .d-md-block { display: block !important; } .d-md-grid { display: grid !important; } .d-md-table { display: table !important; } .d-md-table-row { display: table-row !important; } .d-md-table-cell { display: table-cell !important; } .d-md-flex { display: flex !important; } .d-md-inline-flex { display: inline-flex !important; } .d-md-none { display: none !important; } .flex-md-fill { flex: 1 1 auto !important; } .flex-md-row { flex-direction: row !important; } .flex-md-column { flex-direction: column !important; } .flex-md-row-reverse { flex-direction: row-reverse !important; } .<API key> { flex-direction: column-reverse !important; } .flex-md-grow-0 { flex-grow: 0 !important; } .flex-md-grow-1 { flex-grow: 1 !important; } .<API key> { justify-content: flex-start !important; } .<API key> { justify-content: flex-end !important; } .<API key> { justify-content: center !important; } .<API key> { justify-content: space-between !important; } .<API key> { justify-content: space-around !important; } .<API key> { justify-content: space-evenly !important; } .<API key> { align-items: flex-start !important; } .align-items-md-end { align-items: flex-end !important; } .<API key> { align-items: center !important; } .<API key> { align-items: baseline !important; } .<API key> { align-items: stretch !important; } .<API key> { align-content: flex-start !important; } .<API key> { align-content: flex-end !important; } .<API key> { align-content: center !important; } .<API key> { align-content: space-between !important; } .<API key> { align-content: space-around !important; } .<API key> { align-content: stretch !important; } .align-self-md-auto { align-self: auto !important; } .align-self-md-start { align-self: flex-start !important; } .align-self-md-end { align-self: flex-end !important; } .<API key> { align-self: center !important; } .<API key> { align-self: baseline !important; } .<API key> { align-self: stretch !important; } .order-md-first { order: -1 !important; } .order-md-0 { order: 0 !important; } .order-md-1 { order: 1 !important; } .order-md-2 { order: 2 !important; } .order-md-3 { order: 3 !important; } .order-md-4 { order: 4 !important; } .order-md-5 { order: 5 !important; } .order-md-last { order: 6 !important; } .m-md-0 { margin: 0 !important; } .m-md-1 { margin: 0.3125rem !important; } .m-md-2 { margin: 0.625rem !important; } .m-md-3 { margin: 1.25rem !important; } .m-md-4 { margin: 1.875rem !important; } .m-md-5 { margin: 3.75rem !important; } .m-md-auto { margin: auto !important; } .mx-md-0 { margin-right: 0 !important; margin-left: 0 !important; } .mx-md-1 { margin-right: 0.3125rem !important; margin-left: 0.3125rem !important; } .mx-md-2 { margin-right: 0.625rem !important; margin-left: 0.625rem !important; } .mx-md-3 { margin-right: 1.25rem !important; margin-left: 1.25rem !important; } .mx-md-4 { margin-right: 1.875rem !important; margin-left: 1.875rem !important; } .mx-md-5 { margin-right: 3.75rem !important; margin-left: 3.75rem !important; } .mx-md-auto { margin-right: auto !important; margin-left: auto !important; } .my-md-0 { margin-top: 0 !important; margin-bottom: 0 !important; } .my-md-1 { margin-top: 0.3125rem !important; margin-bottom: 0.3125rem !important; } .my-md-2 { margin-top: 0.625rem !important; margin-bottom: 0.625rem !important; } .my-md-3 { margin-top: 1.25rem !important; margin-bottom: 1.25rem !important; } .my-md-4 { margin-top: 1.875rem !important; margin-bottom: 1.875rem !important; } .my-md-5 { margin-top: 3.75rem !important; margin-bottom: 3.75rem !important; } .my-md-auto { margin-top: auto !important; margin-bottom: auto !important; } .mt-md-0 { margin-top: 0 !important; } .mt-md-1 { margin-top: 0.3125rem !important; } .mt-md-2 { margin-top: 0.625rem !important; } .mt-md-3 { margin-top: 1.25rem !important; } .mt-md-4 { margin-top: 1.875rem !important; } .mt-md-5 { margin-top: 3.75rem !important; } .mt-md-auto { margin-top: auto !important; } .mb-md-0 { margin-bottom: 0 !important; } .mb-md-1 { margin-bottom: 0.3125rem !important; } .mb-md-2 { margin-bottom: 0.625rem !important; } .mb-md-3 { margin-bottom: 1.25rem !important; } .mb-md-4 { margin-bottom: 1.875rem !important; } .mb-md-5 { margin-bottom: 3.75rem !important; } .mb-md-auto { margin-bottom: auto !important; } .ms-md-0 { margin-left: 0 !important; } .ms-md-1 { margin-left: 0.3125rem !important; } .ms-md-2 { margin-left: 0.625rem !important; } .ms-md-3 { margin-left: 1.25rem !important; } .ms-md-4 { margin-left: 1.875rem !important; } .ms-md-5 { margin-left: 3.75rem !important; } .ms-md-auto { margin-left: auto !important; } .p-md-0 { padding: 0 !important; } .p-md-1 { padding: 0.3125rem !important; } .p-md-2 { padding: 0.625rem !important; } .p-md-3 { padding: 1.25rem !important; } .p-md-4 { padding: 1.875rem !important; } .p-md-5 { padding: 3.75rem !important; } .px-md-0 { padding-right: 0 !important; padding-left: 0 !important; } .px-md-1 { padding-right: 0.3125rem !important; padding-left: 0.3125rem !important; } .px-md-2 { padding-right: 0.625rem !important; padding-left: 0.625rem !important; } .px-md-3 { padding-right: 1.25rem !important; padding-left: 1.25rem !important; } .px-md-4 { padding-right: 1.875rem !important; padding-left: 1.875rem !important; } .px-md-5 { padding-right: 3.75rem !important; padding-left: 3.75rem !important; } .py-md-0 { padding-top: 0 !important; padding-bottom: 0 !important; } .py-md-1 { padding-top: 0.3125rem !important; padding-bottom: 0.3125rem !important; } .py-md-2 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; } .py-md-3 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; } .py-md-4 { padding-top: 1.875rem !important; padding-bottom: 1.875rem !important; } .py-md-5 { padding-top: 3.75rem !important; padding-bottom: 3.75rem !important; } .pt-md-0 { padding-top: 0 !important; } .pt-md-1 { padding-top: 0.3125rem !important; } .pt-md-2 { padding-top: 0.625rem !important; } .pt-md-3 { padding-top: 1.25rem !important; } .pt-md-4 { padding-top: 1.875rem !important; } .pt-md-5 { padding-top: 3.75rem !important; } .pe-md-0 { padding-right: 0 !important; } .pe-md-1 { padding-right: 0.3125rem !important; } .pe-md-2 { padding-right: 0.625rem !important; } .pe-md-3 { padding-right: 1.25rem !important; } .pe-md-4 { padding-right: 1.875rem !important; } .pe-md-5 { padding-right: 3.75rem !important; } .pb-md-0 { padding-bottom: 0 !important; } .pb-md-1 { padding-bottom: 0.3125rem !important; } .pb-md-2 { padding-bottom: 0.625rem !important; } .pb-md-3 { padding-bottom: 1.25rem !important; } .pb-md-4 { padding-bottom: 1.875rem !important; } .pb-md-5 { padding-bottom: 3.75rem !important; } .ps-md-0 { padding-left: 0 !important; } .ps-md-1 { padding-left: 0.3125rem !important; } .ps-md-2 { padding-left: 0.625rem !important; } .ps-md-3 { padding-left: 1.25rem !important; } .ps-md-4 { padding-left: 1.875rem !important; } .ps-md-5 { padding-left: 3.75rem !important; } } @media (min-width: 1024px) { .d-lg-inline { display: inline !important; } .d-lg-inline-block { display: inline-block !important; } .d-lg-block { display: block !important; } .d-lg-grid { display: grid !important; } .d-lg-table { display: table !important; } .d-lg-table-row { display: table-row !important; } .d-lg-table-cell { display: table-cell !important; } .d-lg-flex { display: flex !important; } .d-lg-inline-flex { display: inline-flex !important; } .d-lg-none { display: none !important; } .flex-lg-fill { flex: 1 1 auto !important; } .flex-lg-row { flex-direction: row !important; } .flex-lg-column { flex-direction: column !important; } .flex-lg-row-reverse { flex-direction: row-reverse !important; } .<API key> { flex-direction: column-reverse !important; } .flex-lg-grow-0 { flex-grow: 0 !important; } .flex-lg-grow-1 { flex-grow: 1 !important; } .<API key> { justify-content: flex-start !important; } .<API key> { justify-content: flex-end !important; } .<API key> { justify-content: center !important; } .<API key> { justify-content: space-between !important; } .<API key> { justify-content: space-around !important; } .<API key> { justify-content: space-evenly !important; } .<API key> { align-items: flex-start !important; } .align-items-lg-end { align-items: flex-end !important; } .<API key> { align-items: center !important; } .<API key> { align-items: baseline !important; } .<API key> { align-items: stretch !important; } .<API key> { align-content: flex-start !important; } .<API key> { align-content: flex-end !important; } .<API key> { align-content: center !important; } .<API key> { align-content: space-between !important; } .<API key> { align-content: space-around !important; } .<API key> { align-content: stretch !important; } .align-self-lg-auto { align-self: auto !important; } .align-self-lg-start { align-self: flex-start !important; } .align-self-lg-end { align-self: flex-end !important; } .<API key> { align-self: center !important; } .<API key> { align-self: baseline !important; } .<API key> { align-self: stretch !important; } .order-lg-first { order: -1 !important; } .order-lg-0 { order: 0 !important; } .order-lg-1 { order: 1 !important; } .order-lg-2 { order: 2 !important; } .order-lg-3 { order: 3 !important; } .order-lg-4 { order: 4 !important; } .order-lg-5 { order: 5 !important; } .order-lg-last { order: 6 !important; } .m-lg-0 { margin: 0 !important; } .m-lg-1 { margin: 0.3125rem !important; } .m-lg-2 { margin: 0.625rem !important; } .m-lg-3 { margin: 1.25rem !important; } .m-lg-4 { margin: 1.875rem !important; } .m-lg-5 { margin: 3.75rem !important; } .m-lg-auto { margin: auto !important; } .mx-lg-0 { margin-right: 0 !important; margin-left: 0 !important; } .mx-lg-1 { margin-right: 0.3125rem !important; margin-left: 0.3125rem !important; } .mx-lg-2 { margin-right: 0.625rem !important; margin-left: 0.625rem !important; } .mx-lg-3 { margin-right: 1.25rem !important; margin-left: 1.25rem !important; } .mx-lg-4 { margin-right: 1.875rem !important; margin-left: 1.875rem !important; } .mx-lg-5 { margin-right: 3.75rem !important; margin-left: 3.75rem !important; } .mx-lg-auto { margin-right: auto !important; margin-left: auto !important; } .my-lg-0 { margin-top: 0 !important; margin-bottom: 0 !important; } .my-lg-1 { margin-top: 0.3125rem !important; margin-bottom: 0.3125rem !important; } .my-lg-2 { margin-top: 0.625rem !important; margin-bottom: 0.625rem !important; } .my-lg-3 { margin-top: 1.25rem !important; margin-bottom: 1.25rem !important; } .my-lg-4 { margin-top: 1.875rem !important; margin-bottom: 1.875rem !important; } .my-lg-5 { margin-top: 3.75rem !important; margin-bottom: 3.75rem !important; } .my-lg-auto { margin-top: auto !important; margin-bottom: auto !important; } .mt-lg-0 { margin-top: 0 !important; } .mt-lg-1 { margin-top: 0.3125rem !important; } .mt-lg-2 { margin-top: 0.625rem !important; } .mt-lg-3 { margin-top: 1.25rem !important; } .mt-lg-4 { margin-top: 1.875rem !important; } .mt-lg-5 { margin-top: 3.75rem !important; } .mt-lg-auto { margin-top: auto !important; } .mb-lg-0 { margin-bottom: 0 !important; } .mb-lg-1 { margin-bottom: 0.3125rem !important; } .mb-lg-2 { margin-bottom: 0.625rem !important; } .mb-lg-3 { margin-bottom: 1.25rem !important; } .mb-lg-4 { margin-bottom: 1.875rem !important; } .mb-lg-5 { margin-bottom: 3.75rem !important; } .mb-lg-auto { margin-bottom: auto !important; } .ms-lg-0 { margin-left: 0 !important; } .ms-lg-1 { margin-left: 0.3125rem !important; } .ms-lg-2 { margin-left: 0.625rem !important; } .ms-lg-3 { margin-left: 1.25rem !important; } .ms-lg-4 { margin-left: 1.875rem !important; } .ms-lg-5 { margin-left: 3.75rem !important; } .ms-lg-auto { margin-left: auto !important; } .p-lg-0 { padding: 0 !important; } .p-lg-1 { padding: 0.3125rem !important; } .p-lg-2 { padding: 0.625rem !important; } .p-lg-3 { padding: 1.25rem !important; } .p-lg-4 { padding: 1.875rem !important; } .p-lg-5 { padding: 3.75rem !important; } .px-lg-0 { padding-right: 0 !important; padding-left: 0 !important; } .px-lg-1 { padding-right: 0.3125rem !important; padding-left: 0.3125rem !important; } .px-lg-2 { padding-right: 0.625rem !important; padding-left: 0.625rem !important; } .px-lg-3 { padding-right: 1.25rem !important; padding-left: 1.25rem !important; } .px-lg-4 { padding-right: 1.875rem !important; padding-left: 1.875rem !important; } .px-lg-5 { padding-right: 3.75rem !important; padding-left: 3.75rem !important; } .py-lg-0 { padding-top: 0 !important; padding-bottom: 0 !important; } .py-lg-1 { padding-top: 0.3125rem !important; padding-bottom: 0.3125rem !important; } .py-lg-2 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; } .py-lg-3 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; } .py-lg-4 { padding-top: 1.875rem !important; padding-bottom: 1.875rem !important; } .py-lg-5 { padding-top: 3.75rem !important; padding-bottom: 3.75rem !important; } .pt-lg-0 { padding-top: 0 !important; } .pt-lg-1 { padding-top: 0.3125rem !important; } .pt-lg-2 { padding-top: 0.625rem !important; } .pt-lg-3 { padding-top: 1.25rem !important; } .pt-lg-4 { padding-top: 1.875rem !important; } .pt-lg-5 { padding-top: 3.75rem !important; } .pe-lg-0 { padding-right: 0 !important; } .pe-lg-1 { padding-right: 0.3125rem !important; } .pe-lg-2 { padding-right: 0.625rem !important; } .pe-lg-3 { padding-right: 1.25rem !important; } .pe-lg-4 { padding-right: 1.875rem !important; } .pe-lg-5 { padding-right: 3.75rem !important; } .pb-lg-0 { padding-bottom: 0 !important; } .pb-lg-1 { padding-bottom: 0.3125rem !important; } .pb-lg-2 { padding-bottom: 0.625rem !important; } .pb-lg-3 { padding-bottom: 1.25rem !important; } .pb-lg-4 { padding-bottom: 1.875rem !important; } .pb-lg-5 { padding-bottom: 3.75rem !important; } .ps-lg-0 { padding-left: 0 !important; } .ps-lg-1 { padding-left: 0.3125rem !important; } .ps-lg-2 { padding-left: 0.625rem !important; } .ps-lg-3 { padding-left: 1.25rem !important; } .ps-lg-4 { padding-left: 1.875rem !important; } .ps-lg-5 { padding-left: 3.75rem !important; } } @media (min-width: 1280px) { .d-xl-inline { display: inline !important; } .d-xl-inline-block { display: inline-block !important; } .d-xl-block { display: block !important; } .d-xl-grid { display: grid !important; } .d-xl-table { display: table !important; } .d-xl-table-row { display: table-row !important; } .d-xl-table-cell { display: table-cell !important; } .d-xl-flex { display: flex !important; } .d-xl-inline-flex { display: inline-flex !important; } .d-xl-none { display: none !important; } .flex-xl-fill { flex: 1 1 auto !important; } .flex-xl-row { flex-direction: row !important; } .flex-xl-column { flex-direction: column !important; } .flex-xl-row-reverse { flex-direction: row-reverse !important; } .<API key> { flex-direction: column-reverse !important; } .flex-xl-grow-0 { flex-grow: 0 !important; } .flex-xl-grow-1 { flex-grow: 1 !important; } .<API key> { justify-content: flex-start !important; } .<API key> { justify-content: flex-end !important; } .<API key> { justify-content: center !important; } .<API key> { justify-content: space-between !important; } .<API key> { justify-content: space-around !important; } .<API key> { justify-content: space-evenly !important; } .<API key> { align-items: flex-start !important; } .align-items-xl-end { align-items: flex-end !important; } .<API key> { align-items: center !important; } .<API key> { align-items: baseline !important; } .<API key> { align-items: stretch !important; } .<API key> { align-content: flex-start !important; } .<API key> { align-content: flex-end !important; } .<API key> { align-content: center !important; } .<API key> { align-content: space-between !important; } .<API key> { align-content: space-around !important; } .<API key> { align-content: stretch !important; } .align-self-xl-auto { align-self: auto !important; } .align-self-xl-start { align-self: flex-start !important; } .align-self-xl-end { align-self: flex-end !important; } .<API key> { align-self: center !important; } .<API key> { align-self: baseline !important; } .<API key> { align-self: stretch !important; } .order-xl-first { order: -1 !important; } .order-xl-0 { order: 0 !important; } .order-xl-1 { order: 1 !important; } .order-xl-2 { order: 2 !important; } .order-xl-3 { order: 3 !important; } .order-xl-4 { order: 4 !important; } .order-xl-5 { order: 5 !important; } .order-xl-last { order: 6 !important; } .m-xl-0 { margin: 0 !important; } .m-xl-1 { margin: 0.3125rem !important; } .m-xl-2 { margin: 0.625rem !important; } .m-xl-3 { margin: 1.25rem !important; } .m-xl-4 { margin: 1.875rem !important; } .m-xl-5 { margin: 3.75rem !important; } .m-xl-auto { margin: auto !important; } .mx-xl-0 { margin-right: 0 !important; margin-left: 0 !important; } .mx-xl-1 { margin-right: 0.3125rem !important; margin-left: 0.3125rem !important; } .mx-xl-2 { margin-right: 0.625rem !important; margin-left: 0.625rem !important; } .mx-xl-3 { margin-right: 1.25rem !important; margin-left: 1.25rem !important; } .mx-xl-4 { margin-right: 1.875rem !important; margin-left: 1.875rem !important; } .mx-xl-5 { margin-right: 3.75rem !important; margin-left: 3.75rem !important; } .mx-xl-auto { margin-right: auto !important; margin-left: auto !important; } .my-xl-0 { margin-top: 0 !important; margin-bottom: 0 !important; } .my-xl-1 { margin-top: 0.3125rem !important; margin-bottom: 0.3125rem !important; } .my-xl-2 { margin-top: 0.625rem !important; margin-bottom: 0.625rem !important; } .my-xl-3 { margin-top: 1.25rem !important; margin-bottom: 1.25rem !important; } .my-xl-4 { margin-top: 1.875rem !important; margin-bottom: 1.875rem !important; } .my-xl-5 { margin-top: 3.75rem !important; margin-bottom: 3.75rem !important; } .my-xl-auto { margin-top: auto !important; margin-bottom: auto !important; } .mt-xl-0 { margin-top: 0 !important; } .mt-xl-1 { margin-top: 0.3125rem !important; } .mt-xl-2 { margin-top: 0.625rem !important; } .mt-xl-3 { margin-top: 1.25rem !important; } .mt-xl-4 { margin-top: 1.875rem !important; } .mt-xl-5 { margin-top: 3.75rem !important; } .mt-xl-auto { margin-top: auto !important; } .mb-xl-0 { margin-bottom: 0 !important; } .mb-xl-1 { margin-bottom: 0.3125rem !important; } .mb-xl-2 { margin-bottom: 0.625rem !important; } .mb-xl-3 { margin-bottom: 1.25rem !important; } .mb-xl-4 { margin-bottom: 1.875rem !important; } .mb-xl-5 { margin-bottom: 3.75rem !important; } .mb-xl-auto { margin-bottom: auto !important; } .ms-xl-0 { margin-left: 0 !important; } .ms-xl-1 { margin-left: 0.3125rem !important; } .ms-xl-2 { margin-left: 0.625rem !important; } .ms-xl-3 { margin-left: 1.25rem !important; } .ms-xl-4 { margin-left: 1.875rem !important; } .ms-xl-5 { margin-left: 3.75rem !important; } .ms-xl-auto { margin-left: auto !important; } .p-xl-0 { padding: 0 !important; } .p-xl-1 { padding: 0.3125rem !important; } .p-xl-2 { padding: 0.625rem !important; } .p-xl-3 { padding: 1.25rem !important; } .p-xl-4 { padding: 1.875rem !important; } .p-xl-5 { padding: 3.75rem !important; } .px-xl-0 { padding-right: 0 !important; padding-left: 0 !important; } .px-xl-1 { padding-right: 0.3125rem !important; padding-left: 0.3125rem !important; } .px-xl-2 { padding-right: 0.625rem !important; padding-left: 0.625rem !important; } .px-xl-3 { padding-right: 1.25rem !important; padding-left: 1.25rem !important; } .px-xl-4 { padding-right: 1.875rem !important; padding-left: 1.875rem !important; } .px-xl-5 { padding-right: 3.75rem !important; padding-left: 3.75rem !important; } .py-xl-0 { padding-top: 0 !important; padding-bottom: 0 !important; } .py-xl-1 { padding-top: 0.3125rem !important; padding-bottom: 0.3125rem !important; } .py-xl-2 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; } .py-xl-3 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; } .py-xl-4 { padding-top: 1.875rem !important; padding-bottom: 1.875rem !important; } .py-xl-5 { padding-top: 3.75rem !important; padding-bottom: 3.75rem !important; } .pt-xl-0 { padding-top: 0 !important; } .pt-xl-1 { padding-top: 0.3125rem !important; } .pt-xl-2 { padding-top: 0.625rem !important; } .pt-xl-3 { padding-top: 1.25rem !important; } .pt-xl-4 { padding-top: 1.875rem !important; } .pt-xl-5 { padding-top: 3.75rem !important; } .pe-xl-0 { padding-right: 0 !important; } .pe-xl-1 { padding-right: 0.3125rem !important; } .pe-xl-2 { padding-right: 0.625rem !important; } .pe-xl-3 { padding-right: 1.25rem !important; } .pe-xl-4 { padding-right: 1.875rem !important; } .pe-xl-5 { padding-right: 3.75rem !important; } .pb-xl-0 { padding-bottom: 0 !important; } .pb-xl-1 { padding-bottom: 0.3125rem !important; } .pb-xl-2 { padding-bottom: 0.625rem !important; } .pb-xl-3 { padding-bottom: 1.25rem !important; } .pb-xl-4 { padding-bottom: 1.875rem !important; } .pb-xl-5 { padding-bottom: 3.75rem !important; } .ps-xl-0 { padding-left: 0 !important; } .ps-xl-1 { padding-left: 0.3125rem !important; } .ps-xl-2 { padding-left: 0.625rem !important; } .ps-xl-3 { padding-left: 1.25rem !important; } .ps-xl-4 { padding-left: 1.875rem !important; } .ps-xl-5 { padding-left: 3.75rem !important; } } @media (min-width: 1440px) { .d-xxl-inline { display: inline !important; } .d-xxl-inline-block { display: inline-block !important; } .d-xxl-block { display: block !important; } .d-xxl-grid { display: grid !important; } .d-xxl-table { display: table !important; } .d-xxl-table-row { display: table-row !important; } .d-xxl-table-cell { display: table-cell !important; } .d-xxl-flex { display: flex !important; } .d-xxl-inline-flex { display: inline-flex !important; } .d-xxl-none { display: none !important; } .flex-xxl-fill { flex: 1 1 auto !important; } .flex-xxl-row { flex-direction: row !important; } .flex-xxl-column { flex-direction: column !important; } .<API key> { flex-direction: row-reverse !important; } .<API key> { flex-direction: column-reverse !important; } .flex-xxl-grow-0 { flex-grow: 0 !important; } .flex-xxl-grow-1 { flex-grow: 1 !important; } .<API key> { justify-content: flex-start !important; } .<API key> { justify-content: flex-end !important; } .<API key> { justify-content: center !important; } .<API key> { justify-content: space-between !important; } .<API key> { justify-content: space-around !important; } .<API key> { justify-content: space-evenly !important; } .<API key> { align-items: flex-start !important; } .align-items-xxl-end { align-items: flex-end !important; } .<API key> { align-items: center !important; } .<API key> { align-items: baseline !important; } .<API key> { align-items: stretch !important; } .<API key> { align-content: flex-start !important; } .<API key> { align-content: flex-end !important; } .<API key> { align-content: center !important; } .<API key> { align-content: space-between !important; } .<API key> { align-content: space-around !important; } .<API key> { align-content: stretch !important; } .align-self-xxl-auto { align-self: auto !important; } .<API key> { align-self: flex-start !important; } .align-self-xxl-end { align-self: flex-end !important; } .<API key> { align-self: center !important; } .<API key> { align-self: baseline !important; } .<API key> { align-self: stretch !important; } .order-xxl-first { order: -1 !important; } .order-xxl-0 { order: 0 !important; } .order-xxl-1 { order: 1 !important; } .order-xxl-2 { order: 2 !important; } .order-xxl-3 { order: 3 !important; } .order-xxl-4 { order: 4 !important; } .order-xxl-5 { order: 5 !important; } .order-xxl-last { order: 6 !important; } .m-xxl-0 { margin: 0 !important; } .m-xxl-1 { margin: 0.3125rem !important; } .m-xxl-2 { margin: 0.625rem !important; } .m-xxl-3 { margin: 1.25rem !important; } .m-xxl-4 { margin: 1.875rem !important; } .m-xxl-5 { margin: 3.75rem !important; } .m-xxl-auto { margin: auto !important; } .mx-xxl-0 { margin-right: 0 !important; margin-left: 0 !important; } .mx-xxl-1 { margin-right: 0.3125rem !important; margin-left: 0.3125rem !important; } .mx-xxl-2 { margin-right: 0.625rem !important; margin-left: 0.625rem !important; } .mx-xxl-3 { margin-right: 1.25rem !important; margin-left: 1.25rem !important; } .mx-xxl-4 { margin-right: 1.875rem !important; margin-left: 1.875rem !important; } .mx-xxl-5 { margin-right: 3.75rem !important; margin-left: 3.75rem !important; } .mx-xxl-auto { margin-right: auto !important; margin-left: auto !important; } .my-xxl-0 { margin-top: 0 !important; margin-bottom: 0 !important; } .my-xxl-1 { margin-top: 0.3125rem !important; margin-bottom: 0.3125rem !important; } .my-xxl-2 { margin-top: 0.625rem !important; margin-bottom: 0.625rem !important; } .my-xxl-3 { margin-top: 1.25rem !important; margin-bottom: 1.25rem !important; } .my-xxl-4 { margin-top: 1.875rem !important; margin-bottom: 1.875rem !important; } .my-xxl-5 { margin-top: 3.75rem !important; margin-bottom: 3.75rem !important; } .my-xxl-auto { margin-top: auto !important; margin-bottom: auto !important; } .mt-xxl-0 { margin-top: 0 !important; } .mt-xxl-1 { margin-top: 0.3125rem !important; } .mt-xxl-2 { margin-top: 0.625rem !important; } .mt-xxl-3 { margin-top: 1.25rem !important; } .mt-xxl-4 { margin-top: 1.875rem !important; } .mt-xxl-5 { margin-top: 3.75rem !important; } .mt-xxl-auto { margin-top: auto !important; } .mb-xxl-0 { margin-bottom: 0 !important; } .mb-xxl-1 { margin-bottom: 0.3125rem !important; } .mb-xxl-2 { margin-bottom: 0.625rem !important; } .mb-xxl-3 { margin-bottom: 1.25rem !important; } .mb-xxl-4 { margin-bottom: 1.875rem !important; } .mb-xxl-5 { margin-bottom: 3.75rem !important; } .mb-xxl-auto { margin-bottom: auto !important; } .ms-xxl-0 { margin-left: 0 !important; } .ms-xxl-1 { margin-left: 0.3125rem !important; } .ms-xxl-2 { margin-left: 0.625rem !important; } .ms-xxl-3 { margin-left: 1.25rem !important; } .ms-xxl-4 { margin-left: 1.875rem !important; } .ms-xxl-5 { margin-left: 3.75rem !important; } .ms-xxl-auto { margin-left: auto !important; } .p-xxl-0 { padding: 0 !important; } .p-xxl-1 { padding: 0.3125rem !important; } .p-xxl-2 { padding: 0.625rem !important; } .p-xxl-3 { padding: 1.25rem !important; } .p-xxl-4 { padding: 1.875rem !important; } .p-xxl-5 { padding: 3.75rem !important; } .px-xxl-0 { padding-right: 0 !important; padding-left: 0 !important; } .px-xxl-1 { padding-right: 0.3125rem !important; padding-left: 0.3125rem !important; } .px-xxl-2 { padding-right: 0.625rem !important; padding-left: 0.625rem !important; } .px-xxl-3 { padding-right: 1.25rem !important; padding-left: 1.25rem !important; } .px-xxl-4 { padding-right: 1.875rem !important; padding-left: 1.875rem !important; } .px-xxl-5 { padding-right: 3.75rem !important; padding-left: 3.75rem !important; } .py-xxl-0 { padding-top: 0 !important; padding-bottom: 0 !important; } .py-xxl-1 { padding-top: 0.3125rem !important; padding-bottom: 0.3125rem !important; } .py-xxl-2 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; } .py-xxl-3 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; } .py-xxl-4 { padding-top: 1.875rem !important; padding-bottom: 1.875rem !important; } .py-xxl-5 { padding-top: 3.75rem !important; padding-bottom: 3.75rem !important; } .pt-xxl-0 { padding-top: 0 !important; } .pt-xxl-1 { padding-top: 0.3125rem !important; } .pt-xxl-2 { padding-top: 0.625rem !important; } .pt-xxl-3 { padding-top: 1.25rem !important; } .pt-xxl-4 { padding-top: 1.875rem !important; } .pt-xxl-5 { padding-top: 3.75rem !important; } .pe-xxl-0 { padding-right: 0 !important; } .pe-xxl-1 { padding-right: 0.3125rem !important; } .pe-xxl-2 { padding-right: 0.625rem !important; } .pe-xxl-3 { padding-right: 1.25rem !important; } .pe-xxl-4 { padding-right: 1.875rem !important; } .pe-xxl-5 { padding-right: 3.75rem !important; } .pb-xxl-0 { padding-bottom: 0 !important; } .pb-xxl-1 { padding-bottom: 0.3125rem !important; } .pb-xxl-2 { padding-bottom: 0.625rem !important; } .pb-xxl-3 { padding-bottom: 1.25rem !important; } .pb-xxl-4 { padding-bottom: 1.875rem !important; } .pb-xxl-5 { padding-bottom: 3.75rem !important; } .ps-xxl-0 { padding-left: 0 !important; } .ps-xxl-1 { padding-left: 0.3125rem !important; } .ps-xxl-2 { padding-left: 0.625rem !important; } .ps-xxl-3 { padding-left: 1.25rem !important; } .ps-xxl-4 { padding-left: 1.875rem !important; } .ps-xxl-5 { padding-left: 3.75rem !important; } } @media print { .d-print-inline { display: inline !important; } .<API key> { display: inline-block !important; } .d-print-block { display: block !important; } .d-print-grid { display: grid !important; } .d-print-table { display: table !important; } .d-print-table-row { display: table-row !important; } .d-print-table-cell { display: table-cell !important; } .d-print-flex { display: flex !important; } .d-print-inline-flex { display: inline-flex !important; } .d-print-none { display: none !important; } } /*# sourceMappingURL=boosted-grid.css.map */
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Td</title> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,300italic,400italic,700italic|Source+Code+Pro:300,400,700' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="../assets/css/bootstrap.css"> <link rel="stylesheet" href="../assets/css/jquery.bonsai.css"> <link rel="stylesheet" href="../assets/css/main.css"> <link rel="stylesheet" href="../assets/css/icons.css"> <script type="text/javascript" src="../assets/js/jquery-2.1.0.min.js"></script> <script type="text/javascript" src="../assets/js/bootstrap.js"></script> <script type="text/javascript" src="../assets/js/jquery.bonsai.js"></script> <!-- <script type="text/javascript" src="../assets/js/main.js"></script> --> </head> <body> <div> <!-- Name Title --> <h1>Td</h1> <!-- Type and Stereotype --> <section style="margin-top: .5em;"> <span class="alert alert-info"> <span class="node-icon _icon-UMLParameter"></span> UMLParameter </span> </section> <!-- Path --> <section style="margin-top: 10px"> <span class="label label-info"><a href='<API key>.html'><span class='node-icon _icon-Project'></span>Ciayn Docu</a></span> <span>::</span> <span class="label label-info"><a href='<API key>.html'><span class='node-icon _icon-UMLModel'></span>Ciyn Diagrams</a></span> <span>::</span> <span class="label label-info"><a href='<API key>.html'><span class='node-icon _icon-UMLPackage'></span>ciayn</a></span> <span>::</span> <span class="label label-info"><a href='<API key>.html'><span class='node-icon _icon-UMLPackage'></span>controller</a></span> <span>::</span> <span class="label label-info"><a href='<API key>.html'><span class='node-icon _icon-UMLClass'></span>PID</a></span> <span>::</span> <span class="label label-info"><a href='<API key>.html'><span class='node-icon _icon-UMLOperation'></span>«constructor»PID</a></span> <span>::</span> <span class="label label-info"><a href='<API key>.html'><span class='node-icon _icon-UMLParameter'></span>Td</a></span> </section> <!-- Diagram --> <!-- Description --> <section> <h3>Description</h3> <div> <span class="label label-info">none</span> </div> </section> <!-- Specification --> <!-- Directed Relationship --> <!-- Undirected Relationship --> <!-- Classifier --> <!-- Interface --> <!-- Component --> <!-- Node --> <!-- Actor --> <!-- Use Case --> <!-- Template Parameters --> <!-- Literals --> <!-- Attributes --> <!-- Operations --> <!-- Receptions --> <!-- Extension Points --> <!-- Parameters --> <!-- Diagrams --> <!-- Behavior --> <!-- Action --> <!-- Interaction --> <!-- CombinedFragment --> <!-- Activity --> <!-- State Machine --> <!-- State Machine --> <!-- State --> <!-- Vertex --> <!-- Transition --> <!-- Properties --> <section> <h3>Properties</h3> <table class="table table-striped table-bordered"> <tr> <th width="50%">Name</th> <th width="50%">Value</th> </tr> <tr> <td>name</td> <td>Td</td> </tr> <tr> <td>stereotype</td> <td><span class='label label-info'>null</span></td> </tr> <tr> <td>visibility</td> <td>public</td> </tr> <tr> <td>isStatic</td> <td><span class='label label-info'>false</span></td> </tr> <tr> <td>isLeaf</td> <td><span class='label label-info'>false</span></td> </tr> <tr> <td>type</td> <td><span class='label label-info'>void</span></td> </tr> <tr> <td>multiplicity</td> <td></td> </tr> <tr> <td>isReadOnly</td> <td><span class='label label-info'>false</span></td> </tr> <tr> <td>isOrdered</td> <td><span class='label label-info'>false</span></td> </tr> <tr> <td>isUnique</td> <td><span class='label label-info'>false</span></td> </tr> <tr> <td>defaultValue</td> <td></td> </tr> <tr> <td>direction</td> <td>in</td> </tr> </table> </section> <!-- Tags --> <!-- Constraints, Dependencies, Dependants --> <!-- Relationships --> <!-- Owned Elements --> </div> </body> </html>
using System; using System.Collections.Generic; using MarcelloDB; using MarcelloDB.Serialization; using MarcelloDB.<API key>; using MarcelloDB.Storage; using MarcelloDB.Records; using MarcelloDB.Transactions; using MarcelloDB.Index; namespace MarcelloDB.Collections { public class CollectionFile : SessionBoundObject { RecordManager RecordManager { get; set; } string Name { get; set; } Dictionary<string, Collection> Collections { get; set; } internal CollectionFile(Session session, string name) : base(session) { this.Name = name; Collections = new Dictionary<string, Collection>(); this.RecordManager = new RecordManager( this.Session, new StorageEngine(this.Session, this.Name)); } public Collection<T, TID> Collection<T, TID>(string collectionName, Func<T, TID> idFunc) { if (collectionName == null) { collectionName = typeof(T).Name.ToLower(); } this.Session.Transaction (() => { if (!Collections.ContainsKey (collectionName)) { this.Session.CurrentTransaction.AddTransactor (this.RecordManager); var collection = new Collection<T, TID> (this.Session, this, collectionName, this.Session.SerializerResolver.SerializerFor<T> (), this.RecordManager, idFunc); collection.Initialize (); Collections.Add (collectionName, collection); } }); var retVal = Collections[collectionName] as Collection<T, TID>; if (retVal == null) { <API key><T>(collectionName); } return (Collection<T, TID>)Collections[collectionName]; } public Collection<T, TID, TIndexDef> Collection<T, TID, TIndexDef>( string collectionName, Func<T, TID> idFunc) where TIndexDef: IndexDefinition<T>, new() { if (collectionName == null) { collectionName = typeof(T).Name.ToLower(); } if(!Collections.ContainsKey(collectionName)){ var collection = new Collection<T, TID, TIndexDef>(this.Session, this, collectionName, this.Session.SerializerResolver.SerializerFor<T> (), this.RecordManager, idFunc); collection.Initialize(); Collections.Add (collectionName, collection); } var retVal = Collections[collectionName] as Collection<T, TID, TIndexDef>; if (retVal == null) { <API key><T>(collectionName); } return (Collection<T, TID, TIndexDef>)Collections[collectionName]; } void <API key><T>(string collectionName) { throw new <API key>( string.Format("Collection with name \"{0}\" is allready defined as Collection<{1}, TID>" + " and cannot be used as a Collection<{2}, TID>.", collectionName, Collections[collectionName].GetType().<API key>[0].Name, typeof(T).Name ) ); } } }
using System; namespace Quilt4.Service.Controllers.WebAPI.Web.DataTransfer { public class ProjectInput { public Guid ProjectKey { get; set; } public string Name { get; set; } public string DashboardColor { get; set; } } }
<?php /** * A Url, with a convenient method for accessing its parameters. */ class Url { /** An absolute URL. */ protected $url; /** * Creates the URL object. * * @param string $url an absolute URL */ public function __construct($url) { $this->url = $url; } /** * Returns the underlying URL. * * @return string an absolute URL */ public function toString() { return $this->url; } /** * Returns the URL parameters. * * @return array 'name' and 'value' for each key */ public function getParameters() { $queryString = parse_url($this->url, PHP_URL_QUERY); if ($queryString === false || strlen($queryString) == 0) { return array(); } $parameters = array(); parse_str($queryString, $parameters); $result = array(); foreach ($parameters as $name => $value) { $result[] = array('name' => $name, 'value' => $value); } return $result; } }
<body> <center> <a href="../../../cdshop/index.htm"><img src="../../../cdshop/cdinfo.jpg" border="0"></a><br> <a href="../../../index.htm">Sacred Texts</a> <a href="../../index.htm">Legends and Sagas</a> <a href="../index.htm">Celtic</a> <a href="index.htm">Index</a> <a href="sfft15.htm">Previous</a> <a href="sfft17.htm">Next</a> <hr> <a href="http: </center> <hr> <p align="CENTER"><font size="-1" color="GREEN"><a href="index.htm"><img src="img/tease.jpg"></a><br><i>Scottish Fairy and Folk Tales</i>, by George Douglas, [1901], at sacred-texts.com</font></p> <hr> <h3 align="center">THE FOX'S STRATAGEM.</h3> <p>THE fox is very wise indeed. I don't know whether it is true or not, but an old fellow told me that he had seen him go to a loch where there were</p> <p><a name="page_92"><font size="1" color="green">p. 92</font></a></p> <p>wild ducks, and take a bunch of heather in his mouth then go into the water, and swim down with the wind till he got into the middle of the ducks, and then he let go the heather and killed two of them.</p> <p></p> <hr> <center> <a href="sfft17.htm">Next: The Fox and the Wrens</a> </center> </body>
<?php namespace Keios\Support\Classes; use Hashids\Hashids; use Validator; use October\Rain\Support\Facades\Config; /** * Class SupportHelpers * @package Keios\Support\Classes */ class SupportHelpers { /** * Validates ticket fields * * @param array $data * * @throws \ValidationException */ public function validateTicket($data) { $rules = [ 'topic' => 'required', 'content' => 'required', ]; $validator = Validator::make($data, $rules); if ($validator->fails()) { throw new \ValidationException($validator); } } /** * Generates ticket code * * @param integer $id * * @return Hashids */ public function generateCode($id) //todo depreciated { $code = new Hashids(Config::get('app.key'), 8, '<API key>'); return $code->encode($id); } /** * Generates ticket Hash ID * * @param integer $id * * @return string */ public function generateHashId($id) { $code = new Hashids(Config::get('app.key'), 8, 'ABCDEF1234567890'); return $code->encode($id); } /** * Todo - this method should notify people about new ticket or sth like that * * @param $hashId * * @return null */ public function newTicketHandler($hashId) { return null; } }
#pragma once #include "managedheap.h" namespace stackjit { //Represents a generation for the garbage collector class CollectorGeneration { private: ManagedHeap mHeap; std::size_t mNumAllocated = 0; const std::size_t <API key> = 0; const int <API key> = 0; const std::size_t mCardSize; const std::size_t mNumCards; BytePtr mCardTable; public: //Creates a new generation CollectorGeneration(std::size_t size, std::size_t <API key>, int <API key> = -1, std::size_t cardSize = 0); ~CollectorGeneration(); //Prevent the generation from being copied CollectorGeneration(const CollectorGeneration&) = delete; CollectorGeneration& operator=(const CollectorGeneration&) = delete; //Returns the heap ManagedHeap& heap(); const ManagedHeap& heap() const; //Returns the number of cards std::size_t numCards() const; //Returns the size of a card std::size_t cardSize() const; //Returns the card table BytePtr cardTable() const; //Returns the card number for the given memory. // Note: assumes that the pointer is inside the heap. std::size_t getCardNumber(BytePtr ptr) const; //Indicates if the generation requires a collection bool needsToCollect() const; //Indicates if the given object needs to be promoted to an older generation bool needsToPromote(int survivalCount) const; //Allocates an object of the given size BytePtr allocate(std::size_t size); //Marks that the generation has been collected void collected(); }; }
<?php error_reporting(-1); ini_set('display_errors', 1); // Classloader <API key>(function($class) { $file = __DIR__.DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR."src".DIRECTORY_SEPARATOR.str_replace("\\", DIRECTORY_SEPARATOR, $class).".php"; if(is_file($file)) { require_once($file); } }); class Stopwatch { private $start; private $stop; public function start() { $this->start = microtime(true); $this->stop=null; return $this; } public function stop() { $this->stop=microtime(true); return $this; } public function result() { return number_format(($this->stop-$this->start), 3)."s"; } } class L { public static $lastmem=0; public static function line() { $mem = memory_get_usage(); $diffmem = memory_get_usage()-self::$lastmem; self::$lastmem = $mem; $args = func_get_args(); echo implode(" ", $args)." [".number_format(($mem/1024), 2)."KB / ".number_format(($diffmem/1024), 2)."KB]\n"; } public static function vd($var) { ob_start(); var_dump($var); $c = ob_get_contents(); ob_end_clean(); echo str_replace(array("\n", "\r"), array("", ""), $c)."\n"; } public static function vdl($var) { echo "\n"; self::vd($var); echo "\n"; } public static function b($b) { if($b===true) { return "true"; } if($b===false) { return "false"; } return $b; } }
var VIDEOS = { 'video 1': { '': { comments: [ { id: 'page 1 comment 1' }, { id: 'page 1 comment 2', replies: [ { id: 'page 1 comment 2 reply 1' }, { id: 'page 1 comment 2 reply 2' } ] }, { id: 'page 1 comment 3', replies: [ { id: 'page 1 comment 3 reply 1' }, { id: 'page 1 comment 3 reply 2' }, { id: 'page 1 comment 3 reply 3' } ] }, { id: 'page 1 comment 4' }, { id: 'page 1 comment 5' } ], nextPageToken: 'page 2' }, 'page 2': { comments: [ { id: 'page 2 comment 1' }, { id: 'page 2 comment 2' }, { id: 'page 2 comment 3' } ] // no nextPageToken } } }; var ERROR_OBJECT = { type: 'video error', message: 'some error' }; function fetchCommentsPage(videoId, nextPageToken) { var video = VIDEOS[videoId]; var page; if (!video) { return Promise.reject(ERROR_OBJECT); } // NOTE: no token or an invalid token returns first comments page page = video[nextPageToken] || video['']; return Promise.resolve(page); } module.exports = fetchCommentsPage;
import { Component, Directive, Input, Output, EventEmitter, HostBinding, HostListener } from "@angular/core"; import { <API key>, <API key>, CustomValueAccessor } from "../../../misc/util/internal"; @Component({ selector: "sui-rating", template: ` <i class="icon" *ngFor="let icon of icons; let i = index" (mouseover)="onMouseover(i)" (click)="onClick(i)" [class.selected]="hoveredIndex >= i && !isReadonly" [class.active]="value > i"> </i> `, styles: [` :host.read-only .icon { cursor: auto } `] }) export class SuiRating implements <API key><number> { @HostBinding("class.ui") @HostBinding("class.rating") public readonly hasClasses:boolean; public value:number; @Output() public valueChange:EventEmitter<number>; private _maximum:number; @Input() public get maximum():number { return this._maximum; } public set maximum(value:number) { this._maximum = +value; } @HostBinding("class.read-only") @Input() public isReadonly:boolean; public get icons():undefined[] { // tslint:disable-next-line:prefer-literal return new Array(this.maximum); } public hoveredIndex:number = -1; constructor() { this.value = 0; this.valueChange = new EventEmitter<number>(); this.maximum = 5; this.isReadonly = false; this.hasClasses = true; } public onClick(i:number):void { if (!this.isReadonly) { this.value = i + 1; this.valueChange.emit(this.value); } } public onMouseover(i:number):void { this.hoveredIndex = i; } @HostListener("mouseout") public onMouseout():void { this.hoveredIndex = -1; } public writeValue(value:number):void { this.value = value; } } @Directive({ selector: "sui-rating", host: { "(valueChange)": "onChange($event)" }, providers: [<API key>(<API key>)] }) export class <API key> extends CustomValueAccessor<number, SuiRating> { constructor(host:SuiRating) { super(host); } }
package org.javesi.id; /** * Generates long ids for new entities. */ public interface EntityIdGenerator { long getNextEntityId(); }
{% extends "base.html" %} {% block content %} <section class="cover imagebg height-70 text-center" data-overlay="3"> <div class="<API key>"> <img alt="background" src="/static/img/drone-4.jpg" /> </div> <div class="container pos-vertical-center"> <div class="row"> <div class="col-sm-10 col-md-8"> <h2 style="font-weight: bold;">Qessera Wiki</h2> <p class="lead"> Die Support Datenbank für dich persönlich. </p> <div class="boxed boxed--lg bg--white text-left"> <form class="form--horizontal"> <div class="col-sm-8"> <input type="text" name="search" placeholder="Suche nach Schlagwörter oder Services" /> </div> <div class="col-sm-4"> <button type="submit" class="btn btn--primary type--uppercase">Durchsuchen</button> </div> </form> </div> </div> </div> <!--end of row <div class="row"> <div class="col-sm-10 col-md-8"> <p> Du bist ein Entwickler? Wirf einen blick auf unsere <a href="#">Developer APIs</a>. </p> > </div> </div> <!--end of row </div> <!--end of container </section> <section class="text-center space--xs"> <div class="container"> <div class="row"> <div class="col-sm-12"> <h3 style="font-weight: bold;" >Artikeln nach Themen sortieren</h3> </div> </div> <!--end of row </div> <!--end of container </section> <section class="height-70 text-center"> <div class="container space--md"> <div class="row"> <div class="col-sm-3"> <a href="#" class="block"> <div class="feature boxed boxed--border border--round text-center"> <i class="icon--lg icon-Credit-Card2"></i> <span class="h5 color--primary">Payments and Billing</span> </div> </a> </div> <div class="col-sm-3"> <a href="#" class="block"> <div class="feature boxed boxed--border border--round text-center"> <i class="icon--lg icon-Cloud"></i> <span class="h5 color--primary">Account Management</span> </div> </a> </div> <div class="col-sm-3"> <a href="#" class="block"> <div class="feature boxed boxed--border border--round text-center"> <i class="icon--lg icon-Checked-User"></i> <span class="h5 color--primary">Zugriffsrechte</span> </div> </a> </div> <div class="col-sm-3"> <a href="#" class="block"> <div class="feature boxed boxed--border border--round text-center"> <i class="icon--lg icon-Handshake"></i> <span class="h5 color--primary">Integration</span> </div> </a> </div> <div class="col-sm-3"> <a href="#" class="block"> <div class="feature boxed boxed--border border--round text-center"> <i class="icon--lg icon-Data-Storage"></i> <span class="h5 color--primary">Speicher verwalten</span> </div> </a> </div> <div class="col-sm-3"> <a href="#" class="block"> <div class="feature boxed boxed--border border--round text-center"> <i class="icon--lg icon-Email"></i> <span class="h5 color--primary">Mailing & Abonnements</span> </div> </a> </div> <div class="col-sm-3"> <a href="#" class="block"> <div class="feature boxed boxed--border border--round text-center"> <i class="icon--lg icon-Brush"></i> <span class="h5 color--primary">Darstellung</span> </div> </a> </div> <div class="col-sm-3"> <a href="#" class="block"> <div class="feature boxed boxed--border border--round text-center"> <i class="icon--lg icon-Cursor-Click2"></i> <span class="h5 color--primary">Analytics</span> </div> </a> </div> </div> <!--end of row </div> <!--end of container </section> <section class="height-70" style="padding-top: 5em; background: rgba(221, 221, 255, 0.5);"> <div class="container"> <div class="row"> <div class="col-md-4"> <div class="text-block"> <h4 style="font-weight: bold;">Häufig gestellte Fragen</h4> </div> </div> <div class="col-md-4"> <div class="text-block"> <h5>Wie arbeitet das Qessera Team?</h5> <p> Open a <a href="#">refund request</a> with us and we can work with you to resolve it ASAP. </p> </div> <div class="text-block"> <h5>Can I pay using AMEX?</h5> <p> Yes, we accept all major credit cards, including AMEX, so rack up those points! </p> </div> <div class="text-block"> <h5>Is there a bulk-buy discount?</h5> <p> We have corporate and enterprise arrangements that our pricing team can assist with on a case-by-case basis. <a href="#">Contact Us</a> for info. </p> </div> </div> <div class="col-md-4"> <div class="text-block"> <h5>Is there a minimum contract term?</h5> <p> No! The beauty of our service is that you can cancel anytime you need to &mdash; no questions asked. </p> </div> <div class="text-block"> <h5>Do I need an SSL certificate?</h5> <p> This depends on whether your plan to process the payment on your site or not. We recommend using a third-party provider to unburden yourself. </p> </div> </div> </div> <!--end of row </div> <!--end of container </section> {% endblock %}
<?xml version="1.0" ?><!DOCTYPE TS><TS language="bs" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Lion</source> <translation>O Lionu</translation> </message> <message> <location line="+39"/> <source>&lt;b&gt;Lion&lt;/b&gt; version</source> <translation>&lt;b&gt;Lion&lt;/b&gt; verzija</translation> </message> <message> <location line="+57"/> <source> This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file COPYING or http: This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http: <translation type="unfinished"/> </message> <message> <location filename="../aboutdialog.cpp" line="+14"/> <source>Copyright</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The Lion developers</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation>Adresar</translation> </message> <message> <location line="+19"/> <source>Double-click to edit address or label</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation type="unfinished"/> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation type="unfinished"/> </message> <message> <location filename="../addressbookpage.cpp" line="+63"/> <source>These are your Lion addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>&amp;Copy Address</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a Lion address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Delete the currently selected address from the list</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Export the data in the current tab to a file</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Export</source> <translation type="unfinished"/> </message> <message> <location line="-44"/> <source>Verify a message to ensure it was signed with a specified Lion address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation type="unfinished"/> </message> <message> <location filename="../addressbookpage.cpp" line="-5"/> <source>These are your Lion addresses for sending payments. Always check the amount and the receiving address before sending coins.</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Copy &amp;Label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>&amp;Edit</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Send &amp;Coins</source> <translation type="unfinished"/> </message> <message> <location line="+260"/> <source>Export Address Book Data</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+144"/> <source>Label</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Address</source> <translation type="unfinished"/> </message> <message> <location line="+36"/> <source>(no label)</source> <translation type="unfinished"/> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation type="unfinished"/> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+33"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR LITECOINXS&lt;/b&gt;!</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+100"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation type="unfinished"/> </message> <message> <location line="-130"/> <location line="+58"/> <source>Wallet encrypted</source> <translation type="unfinished"/> </message> <message> <location line="-56"/> <source>Lion will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your lions from being stolen by malware infecting your computer.</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+42"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation type="unfinished"/> </message> <message> <location line="-54"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <location line="+48"/> <source>The supplied passphrases do not match.</source> <translation type="unfinished"/> </message> <message> <location line="-37"/> <source>Wallet unlock failed</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <location line="+11"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation type="unfinished"/> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation type="unfinished"/> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="+233"/> <source>Sign &amp;message...</source> <translation type="unfinished"/> </message> <message> <location line="+280"/> <source>Synchronizing with network...</source> <translation type="unfinished"/> </message> <message> <location line="-349"/> <source>&amp;Overview</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation type="unfinished"/> </message> <message> <location line="+20"/> <source>&amp;Transactions</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Edit the list of stored addresses and labels</source> <translation type="unfinished"/> </message> <message> <location line="-14"/> <source>Show the list of addresses for receiving payments</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>E&amp;xit</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Quit application</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Show information about Lion</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>&amp;Encrypt Wallet...</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation type="unfinished"/> </message> <message> <location line="+285"/> <source>Importing blocks from disk...</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Reindexing blocks on disk...</source> <translation type="unfinished"/> </message> <message> <location line="-347"/> <source>Send coins to a Lion address</source> <translation type="unfinished"/> </message> <message> <location line="+49"/> <source>Modify configuration options for Lion</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Backup wallet to another location</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>&amp;Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation type="unfinished"/> </message> <message> <location line="-4"/> <source>&amp;Verify message...</source> <translation type="unfinished"/> </message> <message> <location line="-165"/> <location line="+530"/> <source>Lion</source> <translation type="unfinished"/> </message> <message> <location line="-530"/> <source>Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+101"/> <source>&amp;Send</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Receive</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>&amp;Addresses</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>&amp;About Lion</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show or hide the main Window</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Encrypt the private keys that belong to your wallet</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Sign messages with your Lion addresses to prove you own them</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Verify messages to ensure they were signed with specified Lion addresses</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>&amp;File</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Settings</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>&amp;Help</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Tabs toolbar</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <location line="+10"/> <source>[testnet]</source> <translation type="unfinished"/> </message> <message> <location line="+47"/> <source>Lion client</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+141"/> <source>%n active connection(s) to Lion network</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+22"/> <source>No block source available...</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Processed %1 of %2 (estimated) blocks of transaction history.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Processed %1 blocks of transaction history.</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+20"/> <source>%n hour(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n week(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>%1 behind</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Last received block was generated %1 ago.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Transactions after this will not yet be visible.</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>Error</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Information</source> <translation type="unfinished"/> </message> <message> <location line="+70"/> <source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source> <translation type="unfinished"/> </message> <message> <location line="-140"/> <source>Up to date</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Catching up...</source> <translation type="unfinished"/> </message> <message> <location line="+113"/> <source>Confirm transaction fee</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Sent transaction</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Incoming transaction</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation type="unfinished"/> </message> <message> <location line="+33"/> <location line="+23"/> <source>URI handling</source> <translation type="unfinished"/> </message> <message> <location line="-23"/> <location line="+23"/> <source>URI can not be parsed! This can be caused by an invalid Lion address or malformed URI parameters.</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoin.cpp" line="+111"/> <source>A fatal error occurred. Lion can no longer continue safely and will quit.</source> <translation type="unfinished"/> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+104"/> <source>Network Alert</source> <translation type="unfinished"/> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>The label associated with this address book entry</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Address</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>The address associated with this address book entry. This can only be modified for sending addresses.</source> <translation type="unfinished"/> </message> <message> <location filename="../editaddressdialog.cpp" line="+21"/> <source>New receiving address</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>New sending address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation type="unfinished"/> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation type="unfinished"/> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid Lion address.</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation type="unfinished"/> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+424"/> <location line="+12"/> <source>Lion-Qt</source> <translation type="unfinished"/> </message> <message> <location line="-12"/> <source>version</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Usage:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>UI options</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show splash screen on startup (default: 1)</source> <translation type="unfinished"/> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../forms/optionsdialog.ui" line="+14"/> <source>Options</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB.</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Pay transaction &amp;fee</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Automatically start Lion after logging in to the system.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Start Lion on system login</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Reset all client options to default.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Reset Options</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>&amp;Network</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Automatically open the Lion client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Map port using &amp;UPnP</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Connect to the Lion network through a SOCKS proxy (e.g. when connecting through Tor).</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy:</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Proxy &amp;IP:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Port:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation type="unfinished"/> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting Lion.</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Whether to show Lion addresses in the transaction list or not.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="+53"/> <source>default</source> <translation type="unfinished"/> </message> <message> <location line="+130"/> <source>Confirm options reset</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Some settings may require a client restart to take effect.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Do you want to proceed?</source> <translation type="unfinished"/> </message> <message> <location line="+42"/> <location line="+9"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="-9"/> <location line="+9"/> <source>This setting will take effect after restarting Lion.</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation type="unfinished"/> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation type="unfinished"/> </message> <message> <location line="+50"/> <location line="+166"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the Lion network after a connection is established, but this process has not completed yet.</source> <translation type="unfinished"/> </message> <message> <location line="-124"/> <source>Balance:</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>Unconfirmed:</source> <translation type="unfinished"/> </message> <message> <location line="-78"/> <source>Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+107"/> <source>Immature:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Mined balance that has not yet matured</source> <translation type="unfinished"/> </message> <message> <location line="+46"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation type="unfinished"/> </message> <message> <location line="-101"/> <source>Your current balance</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source> <translation type="unfinished"/> </message> <message> <location filename="../overviewpage.cpp" line="+116"/> <location line="+1"/> <source>out of sync</source> <translation type="unfinished"/> </message> </context> <context> <name>PaymentServer</name> <message> <location filename="../paymentserver.cpp" line="+107"/> <source>Cannot start lion: click-to-pay handler</source> <translation type="unfinished"/> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="+14"/> <source>QR Code Dialog</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>Request Payment</source> <translation type="unfinished"/> </message> <message> <location line="+56"/> <source>Amount:</source> <translation type="unfinished"/> </message> <message> <location line="-44"/> <source>Label:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Message:</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>&amp;Save As...</source> <translation type="unfinished"/> </message> <message> <location filename="../qrcodedialog.cpp" line="+62"/> <source>Error encoding URI into QR Code.</source> <translation type="unfinished"/> </message> <message> <location line="+40"/> <source>The entered amount is invalid, please check.</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Save QR Code</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>PNG Images (*.png)</source> <translation type="unfinished"/> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="+46"/> <source>Client name</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <location line="+23"/> <location line="+26"/> <location line="+23"/> <location line="+23"/> <location line="+36"/> <location line="+53"/> <location line="+23"/> <location line="+23"/> <location filename="../rpcconsole.cpp" line="+339"/> <source>N/A</source> <translation type="unfinished"/> </message> <message> <location line="-217"/> <source>Client version</source> <translation type="unfinished"/> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation type="unfinished"/> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation type="unfinished"/> </message> <message> <location line="+49"/> <source>Startup time</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>Network</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>On testnet</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Block chain</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Last block time</source> <translation type="unfinished"/> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Show the Lion-Qt help message to get a list with possible Lion command-line options.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation type="unfinished"/> </message> <message> <location line="-260"/> <source>Build date</source> <translation type="unfinished"/> </message> <message> <location line="-104"/> <source>Lion - Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Lion Core</source> <translation type="unfinished"/> </message> <message> <location line="+279"/> <source>Debug log file</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Open the Lion debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation type="unfinished"/> </message> <message> <location line="+102"/> <source>Clear console</source> <translation type="unfinished"/> </message> <message> <location filename="../rpcconsole.cpp" line="-30"/> <source>Welcome to the Lion RPC console.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="+14"/> <location filename="../sendcoinsdialog.cpp" line="+124"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+6"/> <location line="+5"/> <location line="+5"/> <source>Send Coins</source> <translation type="unfinished"/> </message> <message> <location line="+50"/> <source>Send to multiple recipients at once</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation type="unfinished"/> </message> <message> <location line="+20"/> <source>Remove all transaction fields</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>Balance:</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>123.456 BTC</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Confirm the send action</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-59"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source> and </source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>The recipient address is not valid, please recheck.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: Transaction creation failed!</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+14"/> <source>Form</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>A&amp;mount:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation type="unfinished"/> </message> <message> <location line="+34"/> <source>The address to send the payment to (e.g. <API key>)</source> <translation type="unfinished"/> </message> <message> <location line="+60"/> <location filename="../sendcoinsentry.cpp" line="+26"/> <source>Enter a label for this address to add it to your address book</source> <translation type="unfinished"/> </message> <message> <location line="-78"/> <source>&amp;Label:</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>Choose address from address book</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Alt+A</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Paste address from clipboard</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Remove this recipient</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a Lion address (e.g. <API key>)</source> <translation type="unfinished"/> </message> </context> <context> <name><API key></name> <message> <location filename="../forms/<API key>.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>&amp;Sign Message</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. <API key>)</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <location line="+213"/> <source>Choose an address from the address book</source> <translation type="unfinished"/> </message> <message> <location line="-203"/> <location line="+213"/> <source>Alt+A</source> <translation type="unfinished"/> </message> <message> <location line="-203"/> <source>Paste address from clipboard</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Enter the message you want to sign here</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Signature</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Copy the current signature to the system clipboard</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this Lion address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Reset all sign message fields</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation type="unfinished"/> </message> <message> <location line="-87"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. <API key>)</source> <translation type="unfinished"/> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified Lion address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Verify &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Reset all verify message fields</source> <translation type="unfinished"/> </message> <message> <location filename="../<API key>.cpp" line="+27"/> <location line="+3"/> <source>Enter a Lion address (e.g. <API key>)</source> <translation type="unfinished"/> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Enter Lion signature</source> <translation type="unfinished"/> </message> <message> <location line="+82"/> <location line="+81"/> <source>The entered address is invalid.</source> <translation type="unfinished"/> </message> <message> <location line="-81"/> <location line="+8"/> <location line="+73"/> <location line="+8"/> <source>Please check the address and try again.</source> <translation type="unfinished"/> </message> <message> <location line="-81"/> <location line="+81"/> <source>The entered address does not refer to a key.</source> <translation type="unfinished"/> </message> <message> <location line="-73"/> <source>Wallet unlock was cancelled.</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Private key for the entered address is not available.</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Message signing failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Message signed.</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>The signature could not be decoded.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <location line="+13"/> <source>Please check the signature and try again.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The signature did not match the message digest.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Message verification failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Message verified.</source> <translation type="unfinished"/> </message> </context> <context> <name>SplashScreen</name> <message> <location filename="../splashscreen.cpp" line="+22"/> <source>The Lion developers</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>[testnet]</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+20"/> <source>Open until %1</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>%1/offline</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>Status</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Source</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Generated</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <location line="+17"/> <source>From</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <location line="+22"/> <location line="+58"/> <source>To</source> <translation type="unfinished"/> </message> <message> <location line="-77"/> <location line="+2"/> <source>own address</source> <translation type="unfinished"/> </message> <message> <location line="-2"/> <source>label</source> <translation type="unfinished"/> </message> <message> <location line="+37"/> <location line="+12"/> <location line="+45"/> <location line="+17"/> <location line="+30"/> <source>Credit</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="-102"/> <source>matures in %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation type="unfinished"/> </message> <message> <location line="+44"/> <location line="+8"/> <location line="+15"/> <location line="+30"/> <source>Debit</source> <translation type="unfinished"/> </message> <message> <location line="-39"/> <source>Transaction fee</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Net amount</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Message</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Comment</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Generated coins must mature 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Debug information</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Transaction</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Inputs</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Amount</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>true</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>false</source> <translation type="unfinished"/> </message> <message> <location line="-209"/> <source>, has not been successfully broadcast yet</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="-35"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+70"/> <source>unknown</source> <translation type="unfinished"/> </message> </context> <context> <name><API key></name> <message> <location filename="../forms/<API key>.ui" line="+14"/> <source>Transaction details</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation type="unfinished"/> </message> </context> <context> <name><API key></name> <message> <location filename="../<API key>.cpp" line="+225"/> <source>Date</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Type</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Address</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Amount</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+57"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+3"/> <source>Open until %1</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Offline (%1 confirmations)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Unconfirmed (%1 of %2 confirmations)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Confirmed (%1 confirmations)</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+8"/> <source>Mined balance will be available when it matures in %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+5"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation type="unfinished"/> </message> <message> <location line="+43"/> <source>Received with</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Received from</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sent to</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Mined</source> <translation type="unfinished"/> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation type="unfinished"/> </message> <message> <location line="+199"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+52"/> <location line="+16"/> <source>All</source> <translation type="unfinished"/> </message> <message> <location line="-15"/> <source>Today</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This week</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This month</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Last month</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This year</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Range...</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Received with</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Sent to</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>To yourself</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Mined</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Other</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Min amount</source> <translation type="unfinished"/> </message> <message> <location line="+34"/> <source>Copy address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Edit label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation type="unfinished"/> </message> <message> <location line="+139"/> <source>Export Transaction Data</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Date</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Type</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Amount</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>ID</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error exporting</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation type="unfinished"/> </message> <message> <location line="+100"/> <source>Range:</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>to</source> <translation type="unfinished"/> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+193"/> <source>Send Coins</source> <translation type="unfinished"/> </message> </context> <context> <name>WalletView</name> <message> <location filename="../walletview.cpp" line="+42"/> <source>&amp;Export</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Export the data in the current tab to a file</source> <translation type="unfinished"/> </message> <message> <location line="+193"/> <source>Backup Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Wallet Data (*.dat)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Backup Failed</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Backup Successful</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The wallet data was successfully saved to the new location.</source> <translation type="unfinished"/> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="+94"/> <source>Lion version</source> <translation type="unfinished"/> </message> <message> <location line="+102"/> <source>Usage:</source> <translation type="unfinished"/> </message> <message> <location line="-29"/> <source>Send command to -server or liond</source> <translation type="unfinished"/> </message> <message> <location line="-23"/> <source>List commands</source> <translation type="unfinished"/> </message> <message> <location line="-12"/> <source>Get help for a command</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>Options:</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>Specify configuration file (default: lion.conf)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Specify pid file (default: liond.pid)</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation type="unfinished"/> </message> <message> <location line="-9"/> <source>Set database cache size in megabytes (default: 25)</source> <translation type="unfinished"/> </message> <message> <location line="-28"/> <source>Listen for connections on &lt;port&gt; (default: 9333 or testnet: 19333)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation type="unfinished"/> </message> <message> <location line="-48"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation type="unfinished"/> </message> <message> <location line="+82"/> <source>Specify your own public address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="-134"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation type="unfinished"/> </message> <message> <location line="-29"/> <source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 9332 or testnet: 19332)</source> <translation type="unfinished"/> </message> <message> <location line="+37"/> <source>Accept command line and JSON-RPC commands</source> <translation type="unfinished"/> </message> <message> <location line="+76"/> <source>Run in the background as a daemon and accept commands</source> <translation type="unfinished"/> </message> <message> <location line="+37"/> <source>Use the test network</source> <translation type="unfinished"/> </message> <message> <location line="-112"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation type="unfinished"/> </message> <message> <location line="-80"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=lionrpc rpcpassword=%s (you do not need to remember this password) The username and password MUST NOT be the same. If the file does not exist, create it with owner-readable-only file permissions. It is also recommended to set alertnotify so you are notified of problems; for example: alertnotify=echo %%s | mail -s &quot;Lion Alert&quot; admin@foo.com </source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Cannot obtain a lock on data directory %s. Lion is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong Lion will not work properly.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Block creation options:</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Connect only to the specified node(s)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Corrupted block database detected</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Do you want to rebuild the block database now?</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Error initializing block database</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error initializing wallet database environment %s!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error loading block database</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error opening block database</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Error: Disk space is low!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error: Wallet locked, unable to create transaction!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error: system error: </source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to read block info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to read block</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to sync block index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write file info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write to coin database</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write transaction index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write undo data</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Find peers using DNS lookup (default: 1 unless -connect)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Generate coins (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>How many blocks to check at startup (default: 288, 0 = all)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>How thorough the block verification is (0-4, default: 3)</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Not enough file descriptors available.</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Rebuild block chain index from current blk000??.dat files</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Set the number of threads to service RPC calls (default: 4)</source> <translation type="unfinished"/> </message> <message> <location line="+26"/> <source>Verifying blocks...</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Verifying wallet...</source> <translation type="unfinished"/> </message> <message> <location line="-69"/> <source>Imports blocks from external blk000??.dat file</source> <translation type="unfinished"/> </message> <message> <location line="-76"/> <source>Set the number of script verification threads (up to 16, 0 = auto, &lt;0 = leave that many cores free, default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+77"/> <source>Information</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Invalid -tor address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invalid amount for -minrelaytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invalid amount for -mintxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Maintain a full transaction index (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Only accept block chain matching built-in checkpoints (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Output extra debugging information. Implies all other -debug* options</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Output extra network debugging information</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Prepend debug output with timestamp</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>SSL options: (see the Lion Wiki for SSL setup instructions)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Select the version of socks proxy to use (4-5, default: 5)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Send trace/debug info to debugger</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Set maximum block size in bytes (default: 250000)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set minimum block size in bytes (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Signing transaction failed</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>System error: </source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Transaction amount too small</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction amounts must be positive</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction too large</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Use UPnP to map the listening port (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Username for JSON-RPC connections</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>You need to rebuild the databases using -reindex to change -txindex</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>wallet.dat corrupt, salvage failed</source> <translation type="unfinished"/> </message> <message> <location line="-50"/> <source>Password for JSON-RPC connections</source> <translation type="unfinished"/> </message> <message> <location line="-67"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation type="unfinished"/> </message> <message> <location line="+76"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation type="unfinished"/> </message> <message> <location line="-120"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation type="unfinished"/> </message> <message> <location line="+147"/> <source>Upgrade wallet to latest format</source> <translation type="unfinished"/> </message> <message> <location line="-21"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="-12"/> <source>Rescan the block chain for missing wallet transactions</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation type="unfinished"/> </message> <message> <location line="-26"/> <source>Server certificate file (default: server.cert)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation type="unfinished"/> </message> <message> <location line="-151"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation type="unfinished"/> </message> <message> <location line="+165"/> <source>This help message</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation type="unfinished"/> </message> <message> <location line="-91"/> <source>Connect through socks proxy</source> <translation type="unfinished"/> </message> <message> <location line="-10"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation type="unfinished"/> </message> <message> <location line="+55"/> <source>Loading addresses...</source> <translation type="unfinished"/> </message> <message> <location line="-35"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error loading wallet.dat: Wallet requires newer version of Lion</source> <translation type="unfinished"/> </message> <message> <location line="+93"/> <source>Wallet needed to be rewritten: restart Lion to complete</source> <translation type="unfinished"/> </message> <message> <location line="-95"/> <source>Error loading wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+56"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation type="unfinished"/> </message> <message> <location line="-96"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+44"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invalid amount</source> <translation type="unfinished"/> </message> <message> <location line="-6"/> <source>Insufficient funds</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Loading block index...</source> <translation type="unfinished"/> </message> <message> <location line="-57"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation type="unfinished"/> </message> <message> <location line="-25"/> <source>Unable to bind to %s on this computer. Lion is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="+64"/> <source>Fee per KB to add to transactions you send</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Loading wallet...</source> <translation type="unfinished"/> </message> <message> <location line="-52"/> <source>Cannot downgrade wallet</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Cannot write default address</source> <translation type="unfinished"/> </message> <message> <location line="+64"/> <source>Rescanning...</source> <translation type="unfinished"/> </message> <message> <location line="-57"/> <source>Done loading</source> <translation type="unfinished"/> </message> <message> <location line="+82"/> <source>To use the %s option</source> <translation type="unfinished"/> </message> <message> <location line="-74"/> <source>Error</source> <translation type="unfinished"/> </message> <message> <location line="-31"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation type="unfinished"/> </message> </context> </TS>
from antlr4 import * from autogen.CymbolParser import CymbolParser from autogen.CymbolVisitor import CymbolVisitor class Type: VOID = "void" INT = "int" class <API key>(CymbolVisitor): id_values = {} def visitIntExpr(self, ctx:CymbolParser.IntExprContext): print("visting "+Type.INT) return Type.INT def visitVarDecl(self, ctx:CymbolParser.VarDeclContext): var_name = ctx.ID().getText() tyype = ctx.tyype().getText() print("tyype = " + tyype) if (tyype == Type.VOID): result = Type.VOID print("Mensagem de erro 1...") exit(1) else: if ctx.expr() != None: init = ctx.expr().accept(self) print("init = " + init) if init != tyype: print("Mensagem de erro 2...") exit(2) result = tyype self.id_values[var_name] = tyype print("saved variable " + var_name + " of type " + tyype) return result def visitAddSubExpr(self, ctx:CymbolParser.AddSubExprContext): left = ctx.expr()[0].accept(self) right = ctx.expr()[1].accept(self) if left == Type.INT and right == Type.INT: result = Type.INT else: reult = Type.VOID print("Mensagem de erro 3...") exit() print("addition or subtraction of " + left + " " + right + " that results in a " + result) return result def aggregateResult(self, aggregate:Type, next_result:Type): return next_result if next_result != None else aggregate
<?php namespace PB\Bundle\SuluStorageBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\DependencyInjection\Loader; class <API key> extends Extension { const BUNDLE_CONFIG_PARAM = 'pb_sulu_storage.config'; /** * {@inheritdoc} */ public function load(array $configs, ContainerBuilder $container) { $configuration = new Configuration(); $config = $this-><API key>($configuration, $configs); $container->setParameter(self::BUNDLE_CONFIG_PARAM, $config); $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); $loader->load('services.yaml'); } }
CodeMirror.defineMode("liquid", function(config, parserConfig) { var liquidOverlay = { token: function(stream, state) { // Variables. if (stream.match("{{")) { while ((ch = stream.next()) != null) if (ch == "}" && stream.next() == "}") break; return "liquid-variable"; } // Tags. if(stream.match("{%")) { while ((ch = stream.next()) != null) if (ch == "%" && stream.next() == "}") break; return "liquid-tag"; } while (stream.next() != null && !stream.match("{{", false) && !stream.match("{%", false)) {} return null; } }; return CodeMirror.overlayParser(CodeMirror.getMode(config, parserConfig.backdrop || "text/html"), liquidOverlay); });
<?php namespace Ogilo\Admin\Models; use Illuminate\Database\Eloquent\Model; /** * Hit model */ class Comment extends Model { public function category() { return $this->belongsTo('Ogilo\Admin\Models\Article'); } }
// The LLVM Compiler Infrastructure // This file is distributed under the University of Illinois Open Source // This file defines the LoopInfo class that is used to identify natural loops // and determine the loop depth of various nodes of the CFG. A natural loop // has exactly one entry-point, which is called the header. Note that natural // loops may actually be several loops that share the same header node. // This analysis calculates the nesting structure of loops in a function. For // each natural loop identified, this analysis identifies natural loops // contained entirely within the loop and the basic blocks the make up the loop. // It can calculate on the fly various bits of information, for example: // * whether there is a preheader for the loop // * the number of back edges to the header // * whether or not a particular block branches out of the loop // * the successor blocks of the loop // * the loop depth // * etc... #ifndef <API key> #define <API key> #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/DenseSet.h" #include "llvm/ADT/GraphTraits.h" #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/SmallVector.h" #include "llvm/IR/CFG.h" #include "llvm/IR/Instruction.h" #include "llvm/Pass.h" #include <algorithm> namespace llvm { template<typename T> inline void RemoveFromVector(std::vector<T*> &V, T *N) { typename std::vector<T*>::iterator I = std::find(V.begin(), V.end(), N); assert(I != V.end() && "N is not in this list!"); V.erase(I); } class DominatorTree; class LoopInfo; class Loop; class MDNode; class PHINode; class raw_ostream; template<class N> class DominatorTreeBase; template<class N, class M> class LoopInfoBase; template<class N, class M> class LoopBase; LoopBase class - Instances of this class are used to represent loops that are detected in the flow graph template<class BlockT, class LoopT> class LoopBase { LoopT *ParentLoop; // SubLoops - Loops contained entirely within this one. std::vector<LoopT *> SubLoops; // Blocks - The list of blocks in this loop. First entry is the header node. std::vector<BlockT*> Blocks; SmallPtrSet<const BlockT*, 8> DenseBlockSet; LoopBase(const LoopBase<BlockT, LoopT> &) <API key>; const LoopBase<BlockT, LoopT>& operator=(const LoopBase<BlockT, LoopT> &) <API key>; public: Loop ctor - This creates an empty loop. LoopBase() : ParentLoop(0) {} ~LoopBase() { for (size_t i = 0, e = SubLoops.size(); i != e; ++i) delete SubLoops[i]; } getLoopDepth - Return the nesting level of this loop. An outer-most loop has depth 1, for consistency with loop depth values used for basic blocks, where depth 0 is used for blocks not inside any loops. unsigned getLoopDepth() const { unsigned D = 1; for (const LoopT *CurLoop = ParentLoop; CurLoop; CurLoop = CurLoop->ParentLoop) ++D; return D; } BlockT *getHeader() const { return Blocks.front(); } LoopT *getParentLoop() const { return ParentLoop; } setParentLoop is a raw interface for bypassing addChildLoop. void setParentLoop(LoopT *L) { ParentLoop = L; } contains - Return true if the specified loop is contained within in this loop. bool contains(const LoopT *L) const { if (L == this) return true; if (L == 0) return false; return contains(L->getParentLoop()); } contains - Return true if the specified basic block is in this loop. bool contains(const BlockT *BB) const { return DenseBlockSet.count(BB); } contains - Return true if the specified instruction is in this loop. template<class InstT> bool contains(const InstT *Inst) const { return contains(Inst->getParent()); } iterator/begin/end - Return the loops contained entirely within this loop. const std::vector<LoopT *> &getSubLoops() const { return SubLoops; } std::vector<LoopT *> &getSubLoopsVector() { return SubLoops; } typedef typename std::vector<LoopT *>::const_iterator iterator; typedef typename std::vector<LoopT *>::<API key> reverse_iterator; iterator begin() const { return SubLoops.begin(); } iterator end() const { return SubLoops.end(); } reverse_iterator rbegin() const { return SubLoops.rbegin(); } reverse_iterator rend() const { return SubLoops.rend(); } bool empty() const { return SubLoops.empty(); } getBlocks - Get a list of the basic blocks which make up this loop. const std::vector<BlockT*> &getBlocks() const { return Blocks; } typedef typename std::vector<BlockT*>::const_iterator block_iterator; block_iterator block_begin() const { return Blocks.begin(); } block_iterator block_end() const { return Blocks.end(); } getNumBlocks - Get the number of blocks in this loop in constant time. unsigned getNumBlocks() const { return Blocks.size(); } isLoopExiting - True if terminator in the block can branch to another block that is outside of the current loop. bool isLoopExiting(const BlockT *BB) const { typedef GraphTraits<const BlockT*> BlockTraits; for (typename BlockTraits::ChildIteratorType SI = BlockTraits::child_begin(BB), SE = BlockTraits::child_end(BB); SI != SE; ++SI) { if (!contains(*SI)) return true; } return false; } getNumBackEdges - Calculate the number of back edges to the loop header unsigned getNumBackEdges() const { unsigned NumBackEdges = 0; BlockT *H = getHeader(); typedef GraphTraits<Inverse<BlockT*> > InvBlockTraits; for (typename InvBlockTraits::ChildIteratorType I = InvBlockTraits::child_begin(H), E = InvBlockTraits::child_end(H); I != E; ++I) if (contains(*I)) ++NumBackEdges; return NumBackEdges; } // APIs for simple analysis of the loop. // Note that all of these methods can fail on general loops (ie, there may not // be a preheader, etc). For best success, the loop simplification and // induction variable canonicalization pass should be used to normalize loops // for easy analysis. These methods assume canonical loops. getExitingBlocks - Return all blocks inside the loop that have successors outside of the loop. These are the blocks _inside of the current loop_ which branch out. The returned list is always unique. void getExitingBlocks(SmallVectorImpl<BlockT *> &ExitingBlocks) const; getExitingBlock - If getExitingBlocks would return exactly one block, return that block. Otherwise return null. BlockT *getExitingBlock() const; getExitBlocks - Return all of the successor blocks of this loop. These are the blocks _outside of the current loop_ which are branched to. void getExitBlocks(SmallVectorImpl<BlockT*> &ExitBlocks) const; getExitBlock - If getExitBlocks would return exactly one block, return that block. Otherwise return null. BlockT *getExitBlock() const; Edge type. typedef std::pair<const BlockT*, const BlockT*> Edge; getExitEdges - Return all pairs of (_inside_block_,_outside_block_). void getExitEdges(SmallVectorImpl<Edge> &ExitEdges) const; getLoopPreheader - If there is a preheader for this loop, return it. A loop has a preheader if there is only one edge to the header of the loop from outside of the loop. If this is the case, the block branching to the header of the loop is the preheader node. This method returns null if there is no preheader for the loop. BlockT *getLoopPreheader() const; getLoopPredecessor - If the given loop's header has exactly one unique predecessor outside the loop, return it. Otherwise return null. This is less strict that the loop "preheader" concept, which requires the predecessor to have exactly one successor. BlockT *getLoopPredecessor() const; getLoopLatch - If there is a single latch block for this loop, return it. A latch block is a block that contains a branch back to the header. BlockT *getLoopLatch() const; getLoopLatches - Return all loop latch blocks of this loop. A latch block is a block that contains a branch back to the header. void getLoopLatches(SmallVectorImpl<BlockT *> &LoopLatches) const { BlockT *H = getHeader(); typedef GraphTraits<Inverse<BlockT*> > InvBlockTraits; for (typename InvBlockTraits::ChildIteratorType I = InvBlockTraits::child_begin(H), E = InvBlockTraits::child_end(H); I != E; ++I) if (contains(*I)) LoopLatches.push_back(*I); } // APIs for updating loop information after changing the CFG addBasicBlockToLoop - This method is used by other analyses to update loop information. NewBB is set to be a new member of the current loop. Because of this, it is added as a member of all parent loops, and is added to the specified LoopInfo object as being in the current basic block. It is not valid to replace the loop header with this method. void addBasicBlockToLoop(BlockT *NewBB, LoopInfoBase<BlockT, LoopT> &LI); <API key> - This is used when splitting loops up. It replaces the OldChild entry in our children list with NewChild, and updates the parent pointer of OldChild to be null and the NewChild to be this loop. This updates the loop depth of the new child. void <API key>(LoopT *OldChild, LoopT *NewChild); addChildLoop - Add the specified loop to be a child of this loop. This updates the loop depth of the new child. void addChildLoop(LoopT *NewChild) { assert(NewChild->ParentLoop == 0 && "NewChild already has a parent!"); NewChild->ParentLoop = static_cast<LoopT *>(this); SubLoops.push_back(NewChild); } removeChildLoop - This removes the specified child from being a subloop of this loop. The loop is not deleted, as it will presumably be inserted into another loop. LoopT *removeChildLoop(iterator I) { assert(I != SubLoops.end() && "Cannot remove end iterator!"); LoopT *Child = *I; assert(Child->ParentLoop == this && "Child is not a child of this loop!"); SubLoops.erase(SubLoops.begin()+(I-begin())); Child->ParentLoop = 0; return Child; } addBlockEntry - This adds a basic block directly to the basic block list. This should only be used by transformations that create new loops. Other transformations should use addBasicBlockToLoop. void addBlockEntry(BlockT *BB) { Blocks.push_back(BB); DenseBlockSet.insert(BB); } reverseBlocks - interface to reverse Blocks[from, end of loop] in this loop void reverseBlock(unsigned from) { std::reverse(Blocks.begin() + from, Blocks.end()); } reserveBlocks- interface to do reserve() for Blocks void reserveBlocks(unsigned size) { Blocks.reserve(size); } moveToHeader - This method is used to move BB (which must be part of this loop) to be the loop header of the loop (the block that dominates all others). void moveToHeader(BlockT *BB) { if (Blocks[0] == BB) return; for (unsigned i = 0; ; ++i) { assert(i != Blocks.size() && "Loop does not contain BB!"); if (Blocks[i] == BB) { Blocks[i] = Blocks[0]; Blocks[0] = BB; return; } } } removeBlockFromLoop - This removes the specified basic block from the current loop, updating the Blocks as appropriate. This does not update the mapping in the LoopInfo class. void removeBlockFromLoop(BlockT *BB) { RemoveFromVector(Blocks, BB); DenseBlockSet.erase(BB); } verifyLoop - Verify loop structure void verifyLoop() const; verifyLoop - Verify loop structure of this loop and all nested loops. void verifyLoopNest(DenseSet<const LoopT*> *Loops) const; void print(raw_ostream &OS, unsigned Depth = 0) const; protected: friend class LoopInfoBase<BlockT, LoopT>; explicit LoopBase(BlockT *BB) : ParentLoop(0) { Blocks.push_back(BB); DenseBlockSet.insert(BB); } }; template<class BlockT, class LoopT> raw_ostream& operator<<(raw_ostream &OS, const LoopBase<BlockT, LoopT> &Loop) { Loop.print(OS); return OS; } // Implementation in LoopInfoImpl.h #ifdef __GNUC__ __extension__ extern template class LoopBase<BasicBlock, Loop>; #endif class Loop : public LoopBase<BasicBlock, Loop> { public: Loop() {} isLoopInvariant - Return true if the specified value is loop invariant bool isLoopInvariant(Value *V) const; <API key> - Return true if all the operands of the specified instruction are loop invariant. bool <API key>(Instruction *I) const; makeLoopInvariant - If the given value is an instruction inside of the loop and it can be hoisted, do so to make it trivially loop-invariant. Return true if the value after any hoisting is loop invariant. This function can be used as a slightly more aggressive replacement for isLoopInvariant. If InsertPt is specified, it is the point to hoist instructions to. If null, the terminator of the loop preheader is used. bool makeLoopInvariant(Value *V, bool &Changed, Instruction *InsertPt = 0) const; makeLoopInvariant - If the given instruction is inside of the loop and it can be hoisted, do so to make it trivially loop-invariant. Return true if the instruction after any hoisting is loop invariant. This function can be used as a slightly more aggressive replacement for isLoopInvariant. If InsertPt is specified, it is the point to hoist instructions to. If null, the terminator of the loop preheader is used. bool makeLoopInvariant(Instruction *I, bool &Changed, Instruction *InsertPt = 0) const; <API key> - Check to see if the loop has a canonical induction variable: an integer recurrence that starts at 0 and increments by one each time through the loop. If so, return the phi node that corresponds to it. The IndVarSimplify pass transforms loops to have a canonical induction variable. PHINode *<API key>() const; isLCSSAForm - Return true if the Loop is in LCSSA form bool isLCSSAForm(DominatorTree &DT) const; isLoopSimplifyForm - Return true if the Loop is in the form that the LoopSimplify form transforms loops to, which is sometimes called normal form. bool isLoopSimplifyForm() const; isSafeToClone - Return true if the loop body is safe to clone in practice. bool isSafeToClone() const; Returns true if the loop is annotated parallel. A parallel loop can be assumed to not contain any dependencies between iterations by the compiler. That is, any loop-carried dependency checking can be skipped completely when parallelizing the loop on the target machine. Thus, if the parallel loop information originates from the programmer, e.g. via the OpenMP parallel for pragma, it is the programmer's responsibility to ensure there are no loop-carried dependencies. The final execution order of the instructions across iterations is not guaranteed, thus, the end result might or might not implement actual concurrent execution of instructions across multiple iterations. bool isAnnotatedParallel() const; Return the llvm.loop loop id metadata node for this loop if it is present. If this loop contains the same llvm.loop metadata on each branch to the header then the node is returned. If any latch instruction does not contain llvm.loop or or if multiple latches contain different nodes then 0 is returned. MDNode *getLoopID() const; Set the llvm.loop loop id metadata for this loop. The LoopID metadata node will be added to each terminator instruction in the loop that branches to the loop header. The LoopID metadata node should have one or more operands and the first operand should should be the node itself. void setLoopID(MDNode *LoopID) const; hasDedicatedExits - Return true if no exit block for the loop has a predecessor that is outside the loop. bool hasDedicatedExits() const; getUniqueExitBlocks - Return all unique successor blocks of this loop. These are the blocks _outside of the current loop_ which are branched to. This assumes that loop exits are in canonical form. void getUniqueExitBlocks(SmallVectorImpl<BasicBlock *> &ExitBlocks) const; getUniqueExitBlock - If getUniqueExitBlocks would return exactly one block, return that block. Otherwise return null. BasicBlock *getUniqueExitBlock() const; void dump() const; private: friend class LoopInfoBase<BasicBlock, Loop>; explicit Loop(BasicBlock *BB) : LoopBase<BasicBlock, Loop>(BB) {} }; LoopInfo - This class builds and contains all of the top level loop structures in the specified function. template<class BlockT, class LoopT> class LoopInfoBase { // BBMap - Mapping of basic blocks to the inner most loop they occur in DenseMap<BlockT *, LoopT *> BBMap; std::vector<LoopT *> TopLevelLoops; friend class LoopBase<BlockT, LoopT>; friend class LoopInfo; void operator=(const LoopInfoBase &) <API key>; LoopInfoBase(const LoopInfo &) <API key>; public: LoopInfoBase() { } ~LoopInfoBase() { releaseMemory(); } void releaseMemory() { for (typename std::vector<LoopT *>::iterator I = TopLevelLoops.begin(), E = TopLevelLoops.end(); I != E; ++I) delete *I; // Delete all of the loops... BBMap.clear(); // Reset internal state of analysis TopLevelLoops.clear(); } iterator/begin/end - The interface to the top-level loops in the current function. typedef typename std::vector<LoopT *>::const_iterator iterator; typedef typename std::vector<LoopT *>::<API key> reverse_iterator; iterator begin() const { return TopLevelLoops.begin(); } iterator end() const { return TopLevelLoops.end(); } reverse_iterator rbegin() const { return TopLevelLoops.rbegin(); } reverse_iterator rend() const { return TopLevelLoops.rend(); } bool empty() const { return TopLevelLoops.empty(); } getLoopFor - Return the inner most loop that BB lives in. If a basic block is in no loop (for example the entry node), null is returned. LoopT *getLoopFor(const BlockT *BB) const { return BBMap.lookup(const_cast<BlockT*>(BB)); } operator[] - same as getLoopFor... const LoopT *operator[](const BlockT *BB) const { return getLoopFor(BB); } getLoopDepth - Return the loop nesting level of the specified block. A depth of 0 means the block is not inside any loop. unsigned getLoopDepth(const BlockT *BB) const { const LoopT *L = getLoopFor(BB); return L ? L->getLoopDepth() : 0; } // isLoopHeader - True if the block is a loop header node bool isLoopHeader(BlockT *BB) const { const LoopT *L = getLoopFor(BB); return L && L->getHeader() == BB; } removeLoop - This removes the specified top-level loop from this loop info object. The loop is not deleted, as it will presumably be inserted into another loop. LoopT *removeLoop(iterator I) { assert(I != end() && "Cannot remove end iterator!"); LoopT *L = *I; assert(L->getParentLoop() == 0 && "Not a top-level loop!"); TopLevelLoops.erase(TopLevelLoops.begin() + (I-begin())); return L; } changeLoopFor - Change the top-level loop that contains BB to the specified loop. This should be used by transformations that restructure the loop hierarchy tree. void changeLoopFor(BlockT *BB, LoopT *L) { if (!L) { BBMap.erase(BB); return; } BBMap[BB] = L; } changeTopLevelLoop - Replace the specified loop in the top-level loops list with the indicated loop. void changeTopLevelLoop(LoopT *OldLoop, LoopT *NewLoop) { typename std::vector<LoopT *>::iterator I = std::find(TopLevelLoops.begin(), TopLevelLoops.end(), OldLoop); assert(I != TopLevelLoops.end() && "Old loop not at top level!"); *I = NewLoop; assert(NewLoop->ParentLoop == 0 && OldLoop->ParentLoop == 0 && "Loops already embedded into a subloop!"); } addTopLevelLoop - This adds the specified loop to the collection of top-level loops. void addTopLevelLoop(LoopT *New) { assert(New->getParentLoop() == 0 && "Loop already in subloop!"); TopLevelLoops.push_back(New); } removeBlock - This method completely removes BB from all data structures, including all of the Loop objects it is nested in and our mapping from BasicBlocks to loops. void removeBlock(BlockT *BB) { typename DenseMap<BlockT *, LoopT *>::iterator I = BBMap.find(BB); if (I != BBMap.end()) { for (LoopT *L = I->second; L; L = L->getParentLoop()) L->removeBlockFromLoop(BB); BBMap.erase(I); } } // Internals static bool <API key>(const LoopT *SubLoop, const LoopT *ParentLoop) { if (SubLoop == 0) return true; if (SubLoop == ParentLoop) return false; return <API key>(SubLoop->getParentLoop(), ParentLoop); } Create the loop forest using a stable algorithm. void Analyze(DominatorTreeBase<BlockT> &DomTree); // Debugging void print(raw_ostream &OS) const; }; // Implementation in LoopInfoImpl.h #ifdef __GNUC__ __extension__ extern template class LoopInfoBase<BasicBlock, Loop>; #endif class LoopInfo : public FunctionPass { LoopInfoBase<BasicBlock, Loop> LI; friend class LoopBase<BasicBlock, Loop>; void operator=(const LoopInfo &) <API key>; LoopInfo(const LoopInfo &) <API key>; public: static char ID; // Pass identification, replacement for typeid LoopInfo() : FunctionPass(ID) { <API key>(*PassRegistry::getPassRegistry()); } LoopInfoBase<BasicBlock, Loop>& getBase() { return LI; } iterator/begin/end - The interface to the top-level loops in the current function. typedef LoopInfoBase<BasicBlock, Loop>::iterator iterator; typedef LoopInfoBase<BasicBlock, Loop>::reverse_iterator reverse_iterator; inline iterator begin() const { return LI.begin(); } inline iterator end() const { return LI.end(); } inline reverse_iterator rbegin() const { return LI.rbegin(); } inline reverse_iterator rend() const { return LI.rend(); } bool empty() const { return LI.empty(); } getLoopFor - Return the inner most loop that BB lives in. If a basic block is in no loop (for example the entry node), null is returned. inline Loop *getLoopFor(const BasicBlock *BB) const { return LI.getLoopFor(BB); } operator[] - same as getLoopFor... inline const Loop *operator[](const BasicBlock *BB) const { return LI.getLoopFor(BB); } getLoopDepth - Return the loop nesting level of the specified block. A depth of 0 means the block is not inside any loop. inline unsigned getLoopDepth(const BasicBlock *BB) const { return LI.getLoopDepth(BB); } // isLoopHeader - True if the block is a loop header node inline bool isLoopHeader(BasicBlock *BB) const { return LI.isLoopHeader(BB); } runOnFunction - Calculate the natural loop information. bool runOnFunction(Function &F) override; void verifyAnalysis() const override; void releaseMemory() override { LI.releaseMemory(); } void print(raw_ostream &O, const Module* M = 0) const override; void getAnalysisUsage(AnalysisUsage &AU) const override; removeLoop - This removes the specified top-level loop from this loop info object. The loop is not deleted, as it will presumably be inserted into another loop. inline Loop *removeLoop(iterator I) { return LI.removeLoop(I); } changeLoopFor - Change the top-level loop that contains BB to the specified loop. This should be used by transformations that restructure the loop hierarchy tree. inline void changeLoopFor(BasicBlock *BB, Loop *L) { LI.changeLoopFor(BB, L); } changeTopLevelLoop - Replace the specified loop in the top-level loops list with the indicated loop. inline void changeTopLevelLoop(Loop *OldLoop, Loop *NewLoop) { LI.changeTopLevelLoop(OldLoop, NewLoop); } addTopLevelLoop - This adds the specified loop to the collection of top-level loops. inline void addTopLevelLoop(Loop *New) { LI.addTopLevelLoop(New); } removeBlock - This method completely removes BB from all data structures, including all of the Loop objects it is nested in and our mapping from BasicBlocks to loops. void removeBlock(BasicBlock *BB) { LI.removeBlock(BB); } updateUnloop - Update LoopInfo after removing the last backedge from a loop--now the "unloop". This updates the loop forest and parent loops for each block so that Unloop is no longer referenced, but the caller must actually delete the Unloop object. void updateUnloop(Loop *Unloop); <API key> - Returns true if replacing From with To everywhere is guaranteed to preserve LCSSA form. bool <API key>(Instruction *From, Value *To) { // Preserving LCSSA form is only problematic if the replacing value is an // instruction. Instruction *I = dyn_cast<Instruction>(To); if (!I) return true; // If both instructions are defined in the same basic block then replacement // cannot break LCSSA form. if (I->getParent() == From->getParent()) return true; // If the instruction is not defined in a loop then it can safely replace // anything. Loop *ToLoop = getLoopFor(I->getParent()); if (!ToLoop) return true; // If the replacing instruction is defined in the same loop as the original // instruction, or in a loop that contains it as an inner loop, then using // it as a replacement will not break LCSSA form. return ToLoop->contains(getLoopFor(From->getParent())); } }; // Allow clients to walk the list of nested loops... template <> struct GraphTraits<const Loop*> { typedef const Loop NodeType; typedef LoopInfo::iterator ChildIteratorType; static NodeType *getEntryNode(const Loop *L) { return L; } static inline ChildIteratorType child_begin(NodeType *N) { return N->begin(); } static inline ChildIteratorType child_end(NodeType *N) { return N->end(); } }; template <> struct GraphTraits<Loop*> { typedef Loop NodeType; typedef LoopInfo::iterator ChildIteratorType; static NodeType *getEntryNode(Loop *L) { return L; } static inline ChildIteratorType child_begin(NodeType *N) { return N->begin(); } static inline ChildIteratorType child_end(NodeType *N) { return N->end(); } }; } // End llvm namespace #endif
#include "MiscPch.h" #include "Allocator.h" namespace Demi { DiAllocatorBlock* <API key>(DiAllocatorBlock* allocator, unsigned nodeSize, unsigned capacity) { if (!capacity) { capacity = 1; } unsigned char* blockPtr = DI_NEW unsigned char[sizeof(DiAllocatorBlock) + capacity * (sizeof(DiAllocatorNode) + nodeSize)]; DiAllocatorBlock* newBlock = reinterpret_cast<DiAllocatorBlock*>(blockPtr); newBlock->mNodeSize = nodeSize; newBlock->mCapacity = capacity; newBlock->mFree = 0; newBlock->mNext = 0; if (!allocator) { allocator = newBlock; } else { newBlock->mNext = allocator->mNext; allocator->mNext = newBlock; } // Init the nodes. Free nodes are always chained to the first (parent) allocator unsigned char* nodePtr = blockPtr + sizeof(DiAllocatorBlock); DiAllocatorNode* firstNewNode = reinterpret_cast<DiAllocatorNode*>(nodePtr); for (unsigned i = 0; i < capacity; ++i) { DiAllocatorNode* newNode = reinterpret_cast<DiAllocatorNode*>(nodePtr); if (i < capacity - 1) { newNode->mNext = reinterpret_cast<DiAllocatorNode*>(nodePtr + sizeof(DiAllocatorNode) + nodeSize); } else { newNode->mNext = allocator->mFree; } nodePtr += sizeof(DiAllocatorNode) + nodeSize; } allocator->mFree = firstNewNode; return newBlock; } DiAllocatorBlock* AllocatorInitialize(unsigned nodeSize, unsigned initialCapacity) { DiAllocatorBlock* block = <API key>(0, nodeSize, initialCapacity); return block; } void <API key>(DiAllocatorBlock* allocator) { while (allocator) { DiAllocatorBlock* next = allocator->mNext; delete[] reinterpret_cast<unsigned char*>(allocator); allocator = next; } } void* AllocatorReserve(DiAllocatorBlock* allocator) { if (!allocator) { return 0; } if (allocator->mFree) { DiAllocatorNode* freeNode = allocator->mFree; void* ptr = (reinterpret_cast<unsigned char*>(freeNode)) + sizeof(DiAllocatorNode); allocator->mFree = freeNode->mNext; freeNode->mNext = 0; return ptr; } // Free nodes have been exhausted. Allocate a new larger block unsigned newCapacity = (allocator->mCapacity + 1) >> 1; <API key>(allocator, allocator->mNodeSize, newCapacity); allocator->mCapacity += newCapacity; // We should have new free node(s) chained DiAllocatorNode* freeNode = allocator->mFree; void* ptr = (reinterpret_cast<unsigned char*>(freeNode)) + sizeof(DiAllocatorNode); allocator->mFree = freeNode->mNext; freeNode->mNext = 0; return ptr; } void AllocatorFree(DiAllocatorBlock* allocator, void* ptr) { if (!allocator || !ptr) return; unsigned char* dataPtr = static_cast<unsigned char*>(ptr); DiAllocatorNode* node = reinterpret_cast<DiAllocatorNode*>(dataPtr - sizeof(DiAllocatorNode)); // Chain the node back to free nodes node->mNext = allocator->mFree; allocator->mFree = node; } }
// @formatter:off package com.microsoft.alm.visualstudio.services.extensionmanagement.webapi; import java.util.ArrayList; /** * A query that can be issued for data provider data * */ public class DataProviderQuery { /** * Contextual information to pass to the data providers */ private DataProviderContext context; /** * The contribution ids of the data providers to resolve */ private ArrayList<String> contributionIds; /** * Contextual information to pass to the data providers */ public DataProviderContext getContext() { return context; } /** * Contextual information to pass to the data providers */ public void setContext(final DataProviderContext context) { this.context = context; } /** * The contribution ids of the data providers to resolve */ public ArrayList<String> getContributionIds() { return contributionIds; } /** * The contribution ids of the data providers to resolve */ public void setContributionIds(final ArrayList<String> contributionIds) { this.contributionIds = contributionIds; } }
gc2i18n = { dict: { /* Start of viewer and widget */ "Meters": "Meters", "Buffer": "Buffer", "Search": "Search", "Result": "Result", "Info": "Info", "Layers": "Layers", "Legend": "Legend", "Help": "help", "Log": "Log", "Address": "Address", "With conflicts": "With conflicts", "Data from conflicts": "Data from conflicts", "Without conflicts": "Without conflicts", "Errors": "Errors", "Layer": "Layer", "Number of objects": "Number of objects", "Show": "Show", "Severity": "Severity", "Info text": "When you click on a layer, the result will show here. You can then search with the extent of the object.", "Baselayers": "Baselayers", "Print report": "Print report", "Search with this object": "Search with this object", "From drawing": "From drawing", "From object in layer": "From object in layer", "Clear map": "Clear map", // Drawing "Cancel drawing": "Cancel drawing", "Cancel": "Cancel", "Delete last point drawn": "Delete last point drawn", "Delete last point": "Delete last point", "Search with a line": "Search with a line", "Search with an area": "Search with an area", "Search with a rectangle": "Search with a rectangle", "Search with a circle": "Search with a circle", "Search with a point": "Search with a point", "Click and drag to draw circle.": "Click and drag to draw circle.", "Radius": "Radius", "Click map to place marker.": "Click map to place marker.", "Click to start drawing shape.": "Click to start drawing shape.", "Click to continue drawing shape.": "Click to continue drawing shape.", "Click first point to close this shape.": "Click first point to close this shape.", "<strong>Error:</strong> shape edges cannot cross!": "<strong>Error:</strong> shape edges cannot cross!", "Click to start drawing line.": "Click to start drawing line.", "Click to continue drawing line.": "Click to continue drawing line.", "Click last point to finish line.": "Click last point to finish line.", "Click and drag to draw rectangle.": "Click and drag to draw rectangle.", "Release mouse to finish drawing.": "Release mouse to finish drawing.", "Save changes.": "Save changes.", "Save": "Save", "Cancel editing, discards all changes.": "Cancel editing, discards all changes.", "Edit drawings.": "Edit drawings.", "No drawings to edit.": "No drawings to edit.", "Delete drawings.": "Delete drawings.", "No drawings to delete.": "No drawings to delete.", "Drag handles, or marker to edit drawing.": "Drag handles, or marker to edit drawing.", "Click cancel to undo changes.": "Click cancel to undo changes.", "Click on a drawing to remove": "Click on a drawing to remove", // Report "Get as PDF": "Get as PDF", "Conflicts": "Conflicts", "No Conflicts": "No Conflicts" } }; module.exports = gc2i18n;
using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Cofoundry.Web { <summary> Implement this interface to extend the MvcOptions configuration in a modular fashion. Implementations can make use of dependency injection, however this is built using a temporary service collection that will be disposed of after configuration is complete. </summary> public interface <API key> { <summary> Performs additional option configuration. </summary> <param name="options">The options to perform configuration on.</param> void Configure(MvcOptions options); } }
import os; link = "http://media.blizzard.com/heroes/images/battlegrounds/maps/dragon-shire/main/6/" column = 0; rc_column = 0; while (rc_column == 0): row = 0; rc_column = os.system('wget ' + link + str(column) + '/' + str(row) + '.jpg -O ' + str(1000 + column) + '-' + str(1000 + row) + '.jpg') rc_row = rc_column while (rc_row == 0): row += 1 rc_row = os.system('wget ' + link + str(column) + '/' + str(row) + '.jpg -O ' + str(1000 + column) + '-' + str(1000 + row) + '.jpg') column += 1 p = os.popen('ls -1 *.jpg | tail -n2'); second_last_file = p.readline(); last_file = p.readline(); column_end = last_file[0:4] row_end = second_last_file[5:9] print column_end print row_end os.system('rm ' + column_end + '*'); os.system('rm *-' + row_end + '.jpg'); column_end = int(column_end) - 1000; row_end = int(row_end) - 1000; os.system('mkdir temp') i = 0; for r in range(0, row_end): for c in range(0, column_end): file_to_move = str(1000 + c) + '-' + str(1000 + row_end - r - 1) + '.jpg' os.system('cp ' + file_to_move + ' ./temp/' + str(100000 + i) + '.jpg'); i += 1
import ReactReconciler from './<API key>'; import getNode from './<API key>'; import <API key> from './<API key>'; import ByoDOMProperty from './byo-dom-property'; import <API key> from './<API key>'; class <API key> { constructor(element) { this.tag = element.type; this.currentElement = element; this.hostNode = null; } mountComponent(container) { const el = document.createElement(this.tag); this.hostNode = el; const props = this.currentElement.props; this.updateDOMProperties(null, props); this.<API key>(props, el); container.appendChild(el); return el; } updateDOMProperties(lastProps, nextProps) { for (const propKey of Object.keys(nextProps)) { const nextProp = nextProps[propKey]; if (ByoDOMProperty.properties[propKey]) { const node = getNode(this); <API key>.setValueForProperty(node, propKey, nextProp); } } } <API key>(props, el) { const mountImages = []; if (props.children) { const children = <API key>.instantiateChildren(props.children); for (const child of children) { const mountImage = ReactReconciler.mountComponent(child, el); mountImages.push(mountImage); } } mountImages.forEach(mountImage => el.appendChild(mountImage)); } } export default <API key>;
<?php namespace MarcosSegovia\PetceteraTests\Petcetera; use MarcosSegovia\Petcetera\Petcetera; final class PetceteraTest extends \<API key> { private $all_words; private $result; public function tearDown() { $this->result = null; } /** * @test */ public function <API key>() { $this-><API key>(); $this-><API key>(); $this-><API key>(); } /** * @test */ public function givenAnArrayOfWordsReturnTheSameWordsInStringSeparatedByCommasAndTerminatorInEnglish() { $this-><API key>(); $this-><API key>(); $this-><API key>(); } /** * @test * @dataProvider localeProvider */ public function givenAnArrayOfWordsAndAnSpecificLocaleReturnTheSameWordsInStringSeparatedByCommasAndLocaleTerminator( $<API key>, $<API key> ) { $this-><API key>(); $this-><API key>($<API key>); $this-><API key>($<API key> ); } private function <API key>() { $this->all_words = [ 'Natsu', 'Erza', 'Happy', 'Lucy', 'Laxus' ]; } public function localeProvider() { return [ ['cat_ES', 'i'], ['de_DE', 'und'], ['en_GB', 'and'], ['en_US', 'and'], ['es_ES', 'y'], ['fr_FR', 'et'], ['it_IT', 'e'], ['ja_JA', ''], ['pt_PT', 'e'], ['ru_RU', 'а также'], ]; } private function <API key>() { $this->assertInternalType('string', $this->result); } private function <API key>() { $this->assertEquals('Natsu, Erza, Happy, Lucy and Laxus', $this->result); } private function <API key>() { $petcetera = new Petcetera(); $this->result = $petcetera->__invoke($this->all_words); } private function <API key>($<API key>) { $petcetera = new Petcetera(); $this->result = $petcetera->__invoke($this->all_words, $<API key>); } private function <API key>( $<API key> ) { $this->assertEquals("Natsu, Erza, Happy, Lucy $<API key> Laxus", $this->result); } }
<?php namespace raa; use RuntimeException; use stdClass; /** * @param object|array $structure * @param array|string $path * @return bool */ function has($structure, $path) { if(is_string($path)) { return has($structure, preg_split('/(?<!\\\\)(?:\\\\\\\\)*\\./', $path)); } $count = count($path); if($count) { $part = strtr(array_shift($path), ['\\.' => '.']); if(is_array($structure)) { if(array_key_exists($part, $structure)) { if(count($path)) { return has($structure[$part], $path); } return true; } } elseif(is_object($structure)) { if(property_exists($structure, $part)) { if(count($path)) { return has($structure->{$part}, $path); } return true; } } } return false; } /** * @param object|array $structure * @param array|string $path * @param mixed $default * @return mixed */ function get($structure, $path, $default = null) { if(is_string($path)) { return get($structure, preg_split('/(?<!\\\\)(?:\\\\\\\\)*\\./', $path), $default); } $count = count($path); if($count) { $part = strtr(array_shift($path), ['\\.' => '.']); if(is_array($structure)) { if(array_key_exists($part, $structure)) { if(count($path)) { return get($structure[$part], $path, $default); } return $structure[$part]; } } elseif(is_object($structure)) { if(property_exists($structure, $part)) { if(count($path)) { return get($structure->{$part}, $path, $default); } return $structure->{$part}; } } else { throw new RuntimeException("Invalid type: " . gettype($structure)); } } return $default; } /** * @param object|array $structure * @param array|string $path * @param mixed $value * @return mixed */ function set($structure, $path, $value) { if(is_string($path)) { return set($structure, preg_split('/(?<!\\\\)(?:\\\\\\\\)*\\./', $path), $value); } $count = count($path); if($count) { $part = strtr(array_shift($path), ['\\.' => '.']); if(is_object($structure)) { if(count($path)) { if(property_exists($structure, $part)) { $structure->{$part} = set($structure->{$part}, $path, $value); } else { $structure->{$part} = set(new stdClass(), $path, $value); } } else { $structure->{$part} = $value; } } else { if(!is_array($structure)) { $structure = []; } if(count($path)) { if(array_key_exists($part, $structure)) { $structure[$part] = set($structure[$part], $path, $value); } else { $structure[$part] = set([], $path, $value); } } else { $structure[$part] = $value; } } } return $structure; } /** * @param object|array $structure * @param array|string $path * @return mixed */ function rem($structure, $path) { if(is_string($path)) { return rem($structure, preg_split('/(?<!\\\\)(?:\\\\\\\\)*\\./', $path)); } $count = count($path); if($count) { $part = strtr(array_shift($path), ['\\.' => '.']); if(is_object($structure)) { if(count($path)) { if(property_exists($structure, $part)) { $structure->{$part} = rem($structure->{$part}, $path); } } else { unset($structure->{$part}); } } else { if(!is_array($structure)) { $structure = []; } if(count($path)) { if(array_key_exists($part, $structure)) { $structure[$part] = rem($structure[$part], $path); } } else { unset($structure[$part]); } } } return $structure; }
#ifndef _DEVICE_H #define _DEVICE_H #include <stdint.h> #include "command.h" struct device{ int pagesize; int memsize; int needs_prefix; int uses_half_page; uint8_t signature[3]; struct command commands[COMMAND_MAX]; }; struct device* device_from_string(char*); int ilog2(int); #endif
layout: page title: "JavaScript utf8_encode function" comments: true sharing: true footer: true alias: - /functions/view/utf8_encode:577 - /functions/view/utf8_encode - /functions/view/577 - /functions/utf8_encode:577 - /functions/577 <!-- Generated by Rakefile:build --> A JavaScript equivalent of PHP's utf8_encode {% codeblock xml/utf8_encode.js lang:js https://raw.github.com/kvz/phpjs/master/functions/xml/utf8_encode.js raw on github %} function utf8_encode (argString) { // + improved by: sowberry // + tweaked by: Jack // + bugfixed by: Onno Marsman // + improved by: Yves Sucaet // + bugfixed by: Onno Marsman // + bugfixed by: Ulrich // + bugfixed by: Rafal Kukawski // + improved by: kirilloid // + bugfixed by: kirilloid // * example 1: utf8_encode('Kevin van Zonneveld'); // * returns 1: 'Kevin van Zonneveld' if (argString === null || typeof argString === "undefined") { return ""; } var string = (argString + ''); // .replace(/\r\n/g, "\n").replace(/\r/g, "\n"); var utftext = '', start, end, stringl = 0; start = end = 0; stringl = string.length; for (var n = 0; n < stringl; n++) { var c1 = string.charCodeAt(n); var enc = null; if (c1 < 128) { end++; } else if (c1 > 127 && c1 < 2048) { enc = String.fromCharCode( (c1 >> 6) | 192, ( c1 & 63) | 128 ); } else if (c1 & 0xF800 != 0xD800) { enc = String.fromCharCode( (c1 >> 12) | 224, ((c1 >> 6) & 63) | 128, ( c1 & 63) | 128 ); } else { // surrogate pairs if (c1 & 0xFC00 != 0xD800) { throw new RangeError("Unmatched trail surrogate at " + n); } var c2 = string.charCodeAt(++n); if (c2 & 0xFC00 != 0xDC00) { throw new RangeError("Unmatched lead surrogate at " + (n-1)); } c1 = ((c1 & 0x3FF) << 10) + (c2 & 0x3FF) + 0x10000; enc = String.fromCharCode( (c1 >> 18) | 240, ((c1 >> 12) & 63) | 128, ((c1 >> 6) & 63) | 128, ( c1 & 63) | 128 ); } if (enc !== null) { if (end > start) { utftext += string.slice(start, end); } utftext += enc; start = end = n + 1; } } if (end > start) { utftext += string.slice(start, stringl); } return utftext; } {% endcodeblock %} - [Raw function on GitHub](https://github.com/kvz/phpjs/blob/master/functions/xml/utf8_encode.js) Please note that php.js uses JavaScript objects as substitutes for PHP arrays, they are the closest match to this hashtable-like data structure. Please also note that php.js offers community built functions and goes by the [McDonald's Theory](https://medium.com/<API key>/9216e1c9da7d). We'll put online functions that are far from perfect, in the hopes to spark better contributions. Do you have one? Then please just: - [Edit on GitHub](https://github.com/kvz/phpjs/edit/master/functions/xml/utf8_encode.js) Example 1 This code {% codeblock lang:js example %} utf8_encode('Kevin van Zonneveld'); {% endcodeblock %} Should return {% codeblock lang:js returns %} 'Kevin van Zonneveld' {% endcodeblock %} Other PHP functions in the xml extension {% render_partial _includes/custom/xml.html %}
<!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.7"/> <title>App Engine Python SDK: Member List</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> <link href="common.css" rel="stylesheet" type="text/css"/> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectlogo"><img alt="Logo" src="gae-python.logo.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">App Engine Python SDK &#160;<span id="projectnumber">v1.6.9 rev.445</span> </div> <div id="projectbrief">The Python runtime is available as an experimental Preview feature.</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.7 --> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><b>google</b></li><li class="navelem"><b>appengine</b></li><li class="navelem"><b>tools</b></li><li class="navelem"><b>devappserver2</b></li><li class="navelem"><b>module_test</b></li><li class="navelem"><a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module__test_1_1_basic_scaling_module_facade.html"><API key></a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">google.appengine.tools.devappserver2.module_test.<API key> Member List</div> </div> </div><!--header <div class="contents"> <p>This is the complete list of members for <a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module__test_1_1_basic_scaling_module_facade.html">google.appengine.tools.devappserver2.module_test.<API key></a>, including all inherited members.</p> <table class="directory"> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>__call__</b> (defined in <a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module_1_1_basic_scaling_module.html">google.appengine.tools.devappserver2.module.BasicScalingModule</a>)</td><td class="entry"><a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module_1_1_basic_scaling_module.html">google.appengine.tools.devappserver2.module.BasicScalingModule</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>__init__</b> (defined in <a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module__test_1_1_basic_scaling_module_facade.html">google.appengine.tools.devappserver2.module_test.<API key></a>)</td><td class="entry"><a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module__test_1_1_basic_scaling_module_facade.html">google.appengine.tools.devappserver2.module_test.<API key></a></td><td class="entry"></td></tr> <tr class="even"><td class="entry"><a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module_1_1_basic_scaling_module.html#<API key>">google::appengine::tools::devappserver2::module::BasicScalingModule.__init__</a></td><td class="entry"><a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module_1_1_basic_scaling_module.html">google.appengine.tools.devappserver2.module.BasicScalingModule</a></td><td class="entry"></td></tr> <tr><td class="entry"><a class="el" href="<API key>.html#<API key>">balanced_address</a></td><td class="entry"><a class="el" href="<API key>.html">google.appengine.tools.devappserver2.module.Module</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>balanced_port</b> (defined in <a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module__test_1_1_basic_scaling_module_facade.html">google.appengine.tools.devappserver2.module_test.<API key></a>)</td><td class="entry"><a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module__test_1_1_basic_scaling_module_facade.html">google.appengine.tools.devappserver2.module_test.<API key></a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b><API key></b> (defined in <a class="el" href="<API key>.html">google.appengine.tools.devappserver2.module.Module</a>)</td><td class="entry"><a class="el" href="<API key>.html">google.appengine.tools.devappserver2.module.Module</a></td><td class="entry"></td></tr> <tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a></td><td class="entry"><a class="el" href="<API key>.html">google.appengine.tools.devappserver2.module.Module</a></td><td class="entry"></td></tr> <tr><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a></td><td class="entry"><a class="el" href="<API key>.html">google.appengine.tools.devappserver2.module.Module</a></td><td class="entry"><span class="mlabel">static</span></td></tr> <tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a></td><td class="entry"><a class="el" href="<API key>.html">google.appengine.tools.devappserver2.module.Module</a></td><td class="entry"><span class="mlabel">static</span></td></tr> <tr><td class="entry"><a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module_1_1_basic_scaling_module.html#<API key>">get_instance</a></td><td class="entry"><a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module_1_1_basic_scaling_module.html">google.appengine.tools.devappserver2.module.BasicScalingModule</a></td><td class="entry"></td></tr> <tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a></td><td class="entry"><a class="el" href="<API key>.html">google.appengine.tools.devappserver2.module.Module</a></td><td class="entry"></td></tr> <tr><td class="entry"><a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module_1_1_basic_scaling_module.html#<API key>">get_instance_port</a></td><td class="entry"><a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module_1_1_basic_scaling_module.html">google.appengine.tools.devappserver2.module.BasicScalingModule</a></td><td class="entry"></td></tr> <tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">get_num_instances</a></td><td class="entry"><a class="el" href="<API key>.html">google.appengine.tools.devappserver2.module.Module</a></td><td class="entry"></td></tr> <tr><td class="entry"><a class="el" href="<API key>.html#<API key>">host</a></td><td class="entry"><a class="el" href="<API key>.html">google.appengine.tools.devappserver2.module.Module</a></td><td class="entry"></td></tr> <tr class="even"><td class="entry"><a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module_1_1_basic_scaling_module.html#<API key>">instances</a></td><td class="entry"><a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module_1_1_basic_scaling_module.html">google.appengine.tools.devappserver2.module.BasicScalingModule</a></td><td class="entry"></td></tr> <tr><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a></td><td class="entry"><a class="el" href="<API key>.html">google.appengine.tools.devappserver2.module.Module</a></td><td class="entry"></td></tr> <tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a></td><td class="entry"><a class="el" href="<API key>.html">google.appengine.tools.devappserver2.module.Module</a></td><td class="entry"></td></tr> <tr><td class="entry"><a class="el" href="<API key>.html#<API key>">name</a></td><td class="entry"><a class="el" href="<API key>.html">google.appengine.tools.devappserver2.module.Module</a></td><td class="entry"></td></tr> <tr class="even"><td class="entry"><a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module_1_1_basic_scaling_module.html#<API key>">quit</a></td><td class="entry"><a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module_1_1_basic_scaling_module.html">google.appengine.tools.devappserver2.module.BasicScalingModule</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>ready</b> (defined in <a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module__test_1_1_basic_scaling_module_facade.html">google.appengine.tools.devappserver2.module_test.<API key></a>)</td><td class="entry"><a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module__test_1_1_basic_scaling_module_facade.html">google.appengine.tools.devappserver2.module_test.<API key></a></td><td class="entry"></td></tr> <tr class="even"><td class="entry"><a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module_1_1_basic_scaling_module.html#<API key>">restart</a></td><td class="entry"><a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module_1_1_basic_scaling_module.html">google.appengine.tools.devappserver2.module.BasicScalingModule</a></td><td class="entry"></td></tr> <tr><td class="entry"><a class="el" href="<API key>.html#<API key>">resume</a></td><td class="entry"><a class="el" href="<API key>.html">google.appengine.tools.devappserver2.module.Module</a></td><td class="entry"></td></tr> <tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">set_num_instances</a></td><td class="entry"><a class="el" href="<API key>.html">google.appengine.tools.devappserver2.module.Module</a></td><td class="entry"></td></tr> <tr><td class="entry"><a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module_1_1_basic_scaling_module.html#<API key>">start</a></td><td class="entry"><a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module_1_1_basic_scaling_module.html">google.appengine.tools.devappserver2.module.BasicScalingModule</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b><API key></b> (defined in <a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module_1_1_basic_scaling_module.html">google.appengine.tools.devappserver2.module.BasicScalingModule</a>)</td><td class="entry"><a class="el" href="classgoogle_1_1appengine_1_1tools_1_1devappserver2_1_1module_1_1_basic_scaling_module.html">google.appengine.tools.devappserver2.module.BasicScalingModule</a></td><td class="entry"></td></tr> <tr><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a></td><td class="entry"><a class="el" href="<API key>.html">google.appengine.tools.devappserver2.module.Module</a></td><td class="entry"></td></tr> <tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">suspend</a></td><td class="entry"><a class="el" href="<API key>.html">google.appengine.tools.devappserver2.module.Module</a></td><td class="entry"></td></tr> </table></div><!-- contents --> <address class="footer"> <small>Maintained by <a href="http: </address>
var Bar = Backbone.Collection.extend({ model: Alcohol, localStorage: new Backbone.LocalStorage('Bar'), defaultAlcohol: function(){ var alcohol = { beer: [], wine: [], hl:[] }; alcohol.beer = [ { "name": "Blue Moon", "alcoholContent": 0.054, "ounces": 12, "timeConsumption": 0.15, "class": "beer" }, { "name": "Carona Extra", "alcoholContent": 0.046, "ounces": 12, "timeConsumption": 0.15, "class": "beer" }, { "name": "Guinness Draught Bottle", "alcoholContent": 0.042, "ounces": 12, "timeConsumption": 0.15, "class": "beer" }, { "name": "Big Eye IPA", "alcoholContent": 0.068, "ounces": 12, "timeConsumption": 0.15, "class": "beer" }, { "name": "Dogfish Head 90 IPA", "alcoholContent": 0.09, "ounces": 12, "timeConsumption": 0.15, "class": "beer" }, { "name": "Samual Adams Summer Ale", "alcoholContent": 0.053, "ounces": 12, "timeConsumption": 0.15, "class": "beer" }, { "name": "Stella", "alcoholContent": 0.052, "ounces": 12, "timeConsumption": 0.15, "class": "beer" }, ]; alcohol.wine = [ { "name": "Wine Coolers", "alcoholContent": 0.07, "ounces": 5, "timeConsumption": 0.15, "class":"wine" }, { "name": "Table General Wine", "alcoholContent": 0.14, "ounces": 5, "timeConsumption": 0.15, "class":"wine" }, { "name": "Wine Coolers", "alcoholContent": 0.07, "ounces": 5, "timeConsumption": 0.15, "class":"wine" }, { "name": "Claret", "alcoholContent": 0.1, "ounces": 5, "timeConsumption": 0.15, "class":"wine" }, { "name": "Shiraz", "alcoholContent": 0.14, "ounces": 5, "timeConsumption": 0.15, "class":"wine" }, { "name": "White, medium", "alcoholContent": 0.107, "ounces": 5, "timeConsumption": 0.15, "class":"wine" }, { "name": "Red, medium", "alcoholContent": 0.115, "ounces": 5, "timeConsumption": 0.15, "class":"wine" }, { "name": "Port Wine", "alcoholContent": 0.2, "ounces": 5, "timeConsumption": 0.15, "class":"wine" }, ]; alcohol.hl = [ { "name": "Johnny Walker Black", "alcoholContent": 0.4, "ounces": 3, "timeConsumption": 0.016, "class":"hl" }, { "name": "Jack Daniels", "alcoholContent": 0.4, "ounces": 3, "timeConsumption": 0.016, "class":"hl" }, ]; return alcohol; }, }) var bar = new Bar();
module.exports = require('./lib/bot')
using System.Web; using System.Web.Http; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace ImageGallery { public class MvcApplication : HttpApplication { protected void Application_Start() { AreaRegistration.RegisterAllAreas(); GlobalConfiguration.Configure(WebApiConfig.Register); FilterConfig.<API key>(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); } } }
// of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // all copies or substantial portions of the Software. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. #include <cxx/ast.h> #include <cxx/<API key>.h> namespace cxx { void RecursiveASTVisitor::accept(AST* ast) { if (!ast) return; if (preVisit(ast)) ast->accept(this); postVisit(ast); } void RecursiveASTVisitor::acceptSpecifier(SpecifierAST* ast) { accept(ast); } void RecursiveASTVisitor::acceptDeclarator(DeclaratorAST* ast) { accept(ast); } void RecursiveASTVisitor::acceptName(NameAST* ast) { accept(ast); } void RecursiveASTVisitor::<API key>( <API key>* ast) { accept(ast); } void RecursiveASTVisitor::<API key>( <API key>* ast) { accept(ast); } void RecursiveASTVisitor::<API key>(<API key>* ast) { accept(ast); } void RecursiveASTVisitor::acceptAttribute(AttributeAST* ast) { accept(ast); } void RecursiveASTVisitor::acceptExpression(ExpressionAST* ast) { accept(ast); } void RecursiveASTVisitor::acceptPtrOperator(PtrOperatorAST* ast) { accept(ast); } void RecursiveASTVisitor::<API key>(CoreDeclaratorAST* ast) { accept(ast); } void RecursiveASTVisitor::<API key>(<API key>* ast) { accept(ast); } void RecursiveASTVisitor::<API key>(RequiresClauseAST* ast) { accept(ast); } void RecursiveASTVisitor::acceptInitializer(InitializerAST* ast) { accept(ast); } void RecursiveASTVisitor::acceptBaseSpecifier(BaseSpecifierAST* ast) { accept(ast); } void RecursiveASTVisitor::<API key>( <API key>* ast) { accept(ast); } void RecursiveASTVisitor::<API key>( <API key>* ast) { accept(ast); } void RecursiveASTVisitor::acceptLambdaCapture(LambdaCaptureAST* ast) { accept(ast); } void RecursiveASTVisitor::<API key>(<API key>* ast) { accept(ast); } void RecursiveASTVisitor::acceptTypeId(TypeIdAST* ast) { accept(ast); } void RecursiveASTVisitor::<API key>(MemInitializerAST* ast) { accept(ast); } void RecursiveASTVisitor::acceptRequirement(RequirementAST* ast) { accept(ast); } void RecursiveASTVisitor::acceptDeclaration(DeclarationAST* ast) { accept(ast); } void RecursiveASTVisitor::acceptModuleName(ModuleNameAST* ast) { accept(ast); } void RecursiveASTVisitor::<API key>(ModulePartitionAST* ast) { accept(ast); } void RecursiveASTVisitor::<API key>(TypeConstraintAST* ast) { accept(ast); } void RecursiveASTVisitor::<API key>(BracedInitListAST* ast) { accept(ast); } void RecursiveASTVisitor::<API key>(CtorInitializerAST* ast) { accept(ast); } void RecursiveASTVisitor::acceptHandler(HandlerAST* ast) { accept(ast); } void RecursiveASTVisitor::<API key>( <API key>* ast) { accept(ast); } void RecursiveASTVisitor::<API key>(<API key>* ast) { accept(ast); } void RecursiveASTVisitor::<API key>( <API key>* ast) { accept(ast); } void RecursiveASTVisitor::<API key>(RequirementBodyAST* ast) { accept(ast); } void RecursiveASTVisitor::<API key>(LambdaIntroducerAST* ast) { accept(ast); } void RecursiveASTVisitor::<API key>(LambdaDeclaratorAST* ast) { accept(ast); } void RecursiveASTVisitor::acceptNewTypeId(NewTypeIdAST* ast) { accept(ast); } void RecursiveASTVisitor::<API key>(NewInitializerAST* ast) { accept(ast); } void RecursiveASTVisitor::acceptStatement(StatementAST* ast) { accept(ast); } void RecursiveASTVisitor::acceptFunctionBody(FunctionBodyAST* ast) { accept(ast); } void RecursiveASTVisitor::<API key>(InitDeclaratorAST* ast) { accept(ast); } void RecursiveASTVisitor::acceptEnumBase(EnumBaseAST* ast) { accept(ast); } void RecursiveASTVisitor::<API key>(UsingDeclaratorAST* ast) { accept(ast); } void RecursiveASTVisitor::acceptImportName(ImportNameAST* ast) { accept(ast); } void RecursiveASTVisitor::<API key>(TemplateArgumentAST* ast) { accept(ast); } void RecursiveASTVisitor::acceptEnumerator(EnumeratorAST* ast) { accept(ast); } void RecursiveASTVisitor::acceptBaseClause(BaseClauseAST* ast) { accept(ast); } void RecursiveASTVisitor::<API key>( <API key>* ast) { accept(ast); } void RecursiveASTVisitor::visit(TypeIdAST* ast) { for (auto it = ast->typeSpecifierList; it; it = it->next) acceptSpecifier(it->value); acceptDeclarator(ast->declarator); } void RecursiveASTVisitor::visit(<API key>* ast) { for (auto it = ast->nameList; it; it = it->next) acceptName(it->value); } void RecursiveASTVisitor::visit(UsingDeclaratorAST* ast) { <API key>(ast->nestedNameSpecifier); acceptName(ast->name); } void RecursiveASTVisitor::visit(HandlerAST* ast) { <API key>(ast-><API key>); <API key>(ast->statement); } void RecursiveASTVisitor::visit(EnumBaseAST* ast) { for (auto it = ast->typeSpecifierList; it; it = it->next) acceptSpecifier(it->value); } void RecursiveASTVisitor::visit(EnumeratorAST* ast) { acceptName(ast->name); for (auto it = ast->attributeList; it; it = it->next) acceptAttribute(it->value); acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(DeclaratorAST* ast) { for (auto it = ast->ptrOpList; it; it = it->next) acceptPtrOperator(it->value); <API key>(ast->coreDeclarator); for (auto it = ast->modifiers; it; it = it->next) <API key>(it->value); } void RecursiveASTVisitor::visit(InitDeclaratorAST* ast) { acceptDeclarator(ast->declarator); <API key>(ast->requiresClause); acceptInitializer(ast->initializer); } void RecursiveASTVisitor::visit(BaseSpecifierAST* ast) { for (auto it = ast->attributeList; it; it = it->next) acceptAttribute(it->value); acceptName(ast->name); } void RecursiveASTVisitor::visit(BaseClauseAST* ast) { for (auto it = ast->baseSpecifierList; it; it = it->next) acceptBaseSpecifier(it->value); } void RecursiveASTVisitor::visit(NewTypeIdAST* ast) { for (auto it = ast->typeSpecifierList; it; it = it->next) acceptSpecifier(it->value); } void RecursiveASTVisitor::visit(RequiresClauseAST* ast) { acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(<API key>* ast) { for (auto it = ast-><API key>; it; it = it->next) <API key>(it->value); } void RecursiveASTVisitor::visit(<API key>* ast) { <API key>(ast-><API key>); for (auto it = ast->cvQualifierList; it; it = it->next) acceptSpecifier(it->value); for (auto it = ast->attributeList; it; it = it->next) acceptAttribute(it->value); } void RecursiveASTVisitor::visit(LambdaIntroducerAST* ast) { for (auto it = ast->captureList; it; it = it->next) acceptLambdaCapture(it->value); } void RecursiveASTVisitor::visit(LambdaDeclaratorAST* ast) { <API key>(ast-><API key>); for (auto it = ast->declSpecifierList; it; it = it->next) acceptSpecifier(it->value); for (auto it = ast->attributeList; it; it = it->next) acceptAttribute(it->value); <API key>(ast->trailingReturnType); <API key>(ast->requiresClause); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptTypeId(ast->typeId); } void RecursiveASTVisitor::visit(CtorInitializerAST* ast) { for (auto it = ast->memInitializerList; it; it = it->next) <API key>(it->value); } void RecursiveASTVisitor::visit(RequirementBodyAST* ast) { for (auto it = ast->requirementList; it; it = it->next) acceptRequirement(it->value); } void RecursiveASTVisitor::visit(TypeConstraintAST* ast) { <API key>(ast->nestedNameSpecifier); acceptName(ast->name); } void RecursiveASTVisitor::visit(<API key>* ast) { for (auto it = ast->declarationList; it; it = it->next) acceptDeclaration(it->value); } void RecursiveASTVisitor::visit(<API key>* ast) { for (auto it = ast->declarationList; it; it = it->next) acceptDeclaration(it->value); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptModuleName(ast->moduleName); <API key>(ast->modulePartition); for (auto it = ast->attributeList; it; it = it->next) acceptAttribute(it->value); } void RecursiveASTVisitor::visit(ModuleNameAST* ast) {} void RecursiveASTVisitor::visit(ImportNameAST* ast) { <API key>(ast->modulePartition); acceptModuleName(ast->moduleName); } void RecursiveASTVisitor::visit(ModulePartitionAST* ast) { acceptModuleName(ast->moduleName); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptExpression(ast->expression); <API key>(ast->typeConstraint); } void RecursiveASTVisitor::visit(TypeRequirementAST* ast) { <API key>(ast->nestedNameSpecifier); acceptName(ast->name); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptTypeId(ast->typeId); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptName(ast->name); for (auto it = ast->expressionList; it; it = it->next) acceptExpression(it->value); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptName(ast->name); <API key>(ast->bracedInitList); } void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(RefLambdaCaptureAST* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) { acceptInitializer(ast->initializer); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptInitializer(ast->initializer); } void RecursiveASTVisitor::visit(EqualInitializerAST* ast) { acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(BracedInitListAST* ast) { for (auto it = ast->expressionList; it; it = it->next) acceptExpression(it->value); } void RecursiveASTVisitor::visit(ParenInitializerAST* ast) { for (auto it = ast->expressionList; it; it = it->next) acceptExpression(it->value); } void RecursiveASTVisitor::visit(<API key>* ast) { for (auto it = ast->expressionList; it; it = it->next) acceptExpression(it->value); } void RecursiveASTVisitor::visit(<API key>* ast) { <API key>(ast->bracedInit); } void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) { for (auto it = ast->attributeList; it; it = it->next) acceptAttribute(it->value); for (auto it = ast->typeSpecifierList; it; it = it->next) acceptSpecifier(it->value); acceptDeclarator(ast->declarator); } void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) { <API key>(ast->ctorInitializer); <API key>(ast->statement); } void RecursiveASTVisitor::visit(<API key>* ast) { <API key>(ast->ctorInitializer); <API key>(ast->statement); for (auto it = ast->handlerList; it; it = it->next) acceptHandler(it->value); } void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(TranslationUnitAST* ast) { for (auto it = ast->declarationList; it; it = it->next) acceptDeclaration(it->value); } void RecursiveASTVisitor::visit(ModuleUnitAST* ast) { <API key>(ast-><API key>); <API key>(ast->moduleDeclaration); for (auto it = ast->declarationList; it; it = it->next) acceptDeclaration(it->value); <API key>(ast-><API key>); } void RecursiveASTVisitor::visit(ThisExpressionAST* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(IdExpressionAST* ast) { acceptName(ast->name); } void RecursiveASTVisitor::visit(<API key>* ast) { <API key>(ast-><API key>); <API key>(ast->requirementBody); } void RecursiveASTVisitor::visit(NestedExpressionAST* ast) { acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(FoldExpressionAST* ast) { acceptExpression(ast->leftExpression); acceptExpression(ast->rightExpression); } void RecursiveASTVisitor::visit(LambdaExpressionAST* ast) { <API key>(ast->lambdaIntroducer); for (auto it = ast-><API key>; it; it = it->next) acceptDeclaration(it->value); <API key>(ast->requiresClause); <API key>(ast->lambdaDeclarator); <API key>(ast->statement); } void RecursiveASTVisitor::visit(SizeofExpressionAST* ast) { acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptTypeId(ast->typeId); } void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(TypeidExpressionAST* ast) { acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptTypeId(ast->typeId); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptTypeId(ast->typeId); } void RecursiveASTVisitor::visit(<API key>* ast) { for (auto it = ast->typeIdList; it; it = it->next) acceptTypeId(it->value); } void RecursiveASTVisitor::visit(UnaryExpressionAST* ast) { acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(BinaryExpressionAST* ast) { acceptExpression(ast->leftExpression); acceptExpression(ast->rightExpression); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptExpression(ast->leftExpression); acceptExpression(ast->rightExpression); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptSpecifier(ast->typeSpecifier); <API key>(ast->bracedInitList); } void RecursiveASTVisitor::visit(TypeConstructionAST* ast) { acceptSpecifier(ast->typeSpecifier); for (auto it = ast->expressionList; it; it = it->next) acceptExpression(it->value); } void RecursiveASTVisitor::visit(CallExpressionAST* ast) { acceptExpression(ast->baseExpression); for (auto it = ast->expressionList; it; it = it->next) acceptExpression(it->value); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptExpression(ast->baseExpression); acceptExpression(ast->indexExpression); } void RecursiveASTVisitor::visit(MemberExpressionAST* ast) { acceptExpression(ast->baseExpression); acceptName(ast->name); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptExpression(ast->baseExpression); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptExpression(ast->condition); acceptExpression(ast->iftrueExpression); acceptExpression(ast->iffalseExpression); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(CastExpressionAST* ast) { acceptTypeId(ast->typeId); acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptTypeId(ast->typeId); acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(NewExpressionAST* ast) { acceptNewTypeId(ast->typeId); <API key>(ast->newInitalizer); } void RecursiveASTVisitor::visit(DeleteExpressionAST* ast) { acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(ThrowExpressionAST* ast) { acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(LabeledStatementAST* ast) { acceptStatement(ast->statement); } void RecursiveASTVisitor::visit(CaseStatementAST* ast) { acceptExpression(ast->expression); acceptStatement(ast->statement); } void RecursiveASTVisitor::visit(DefaultStatementAST* ast) { acceptStatement(ast->statement); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(<API key>* ast) { for (auto it = ast->statementList; it; it = it->next) acceptStatement(it->value); } void RecursiveASTVisitor::visit(IfStatementAST* ast) { acceptStatement(ast->initializer); acceptExpression(ast->condition); acceptStatement(ast->statement); acceptStatement(ast->elseStatement); } void RecursiveASTVisitor::visit(SwitchStatementAST* ast) { acceptStatement(ast->initializer); acceptExpression(ast->condition); acceptStatement(ast->statement); } void RecursiveASTVisitor::visit(WhileStatementAST* ast) { acceptExpression(ast->condition); acceptStatement(ast->statement); } void RecursiveASTVisitor::visit(DoStatementAST* ast) { acceptStatement(ast->statement); acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptStatement(ast->initializer); acceptDeclaration(ast->rangeDeclaration); acceptExpression(ast->rangeInitializer); acceptStatement(ast->statement); } void RecursiveASTVisitor::visit(ForStatementAST* ast) { acceptStatement(ast->initializer); acceptExpression(ast->condition); acceptExpression(ast->expression); acceptStatement(ast->statement); } void RecursiveASTVisitor::visit(BreakStatementAST* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(ReturnStatementAST* ast) { acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(GotoStatementAST* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) { acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptDeclaration(ast->declaration); } void RecursiveASTVisitor::visit(<API key>* ast) { <API key>(ast->statement); for (auto it = ast->handlerList; it; it = it->next) acceptHandler(it->value); } void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) { for (auto it = ast->attributeList; it; it = it->next) acceptAttribute(it->value); for (auto it = ast->declSpecifierList; it; it = it->next) acceptSpecifier(it->value); acceptDeclarator(ast->declarator); <API key>(ast->requiresClause); acceptFunctionBody(ast->functionBody); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptName(ast->name); acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(AliasDeclarationAST* ast) { for (auto it = ast->attributeList; it; it = it->next) acceptAttribute(it->value); acceptTypeId(ast->typeId); } void RecursiveASTVisitor::visit(<API key>* ast) { for (auto it = ast->attributeList; it; it = it->next) acceptAttribute(it->value); for (auto it = ast->declSpecifierList; it; it = it->next) acceptSpecifier(it->value); for (auto it = ast->initDeclaratorList; it; it = it->next) <API key>(it->value); <API key>(ast->requiresClause); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(EmptyDeclarationAST* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) { for (auto it = ast->attributeList; it; it = it->next) acceptAttribute(it->value); } void RecursiveASTVisitor::visit(<API key>* ast) { for (auto it = ast->attributeList; it; it = it->next) acceptAttribute(it->value); <API key>(ast->nestedNameSpecifier); acceptName(ast->name); acceptEnumBase(ast->enumBase); } void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) { for (auto it = ast->attributeList; it; it = it->next) acceptAttribute(it->value); <API key>(ast->nestedNameSpecifier); acceptName(ast->name); for (auto it = ast->extraAttributeList; it; it = it->next) acceptAttribute(it->value); for (auto it = ast->declarationList; it; it = it->next) acceptDeclaration(it->value); } void RecursiveASTVisitor::visit(<API key>* ast) { <API key>(ast->nestedNameSpecifier); acceptName(ast->name); } void RecursiveASTVisitor::visit(UsingDirectiveAST* ast) { for (auto it = ast->attributeList; it; it = it->next) acceptAttribute(it->value); <API key>(ast->nestedNameSpecifier); acceptName(ast->name); } void RecursiveASTVisitor::visit(UsingDeclarationAST* ast) { for (auto it = ast->usingDeclaratorList; it; it = it->next) <API key>(it->value); } void RecursiveASTVisitor::visit(AsmDeclarationAST* ast) { for (auto it = ast->attributeList; it; it = it->next) acceptAttribute(it->value); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptDeclaration(ast->declaration); } void RecursiveASTVisitor::visit(<API key>* ast) { for (auto it = ast->declarationList; it; it = it->next) acceptDeclaration(it->value); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptImportName(ast->importName); for (auto it = ast->attributeList; it; it = it->next) acceptAttribute(it->value); } void RecursiveASTVisitor::visit(<API key>* ast) { for (auto it = ast-><API key>; it; it = it->next) acceptDeclaration(it->value); <API key>(ast->requiresClause); acceptDeclaration(ast->declaration); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptTypeId(ast->typeId); } void RecursiveASTVisitor::visit(<API key>* ast) { for (auto it = ast-><API key>; it; it = it->next) acceptDeclaration(it->value); <API key>(ast->requiresClause); acceptName(ast->name); } void RecursiveASTVisitor::visit(<API key>* ast) { for (auto it = ast-><API key>; it; it = it->next) acceptDeclaration(it->value); } void RecursiveASTVisitor::visit(DeductionGuideAST* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) { acceptDeclaration(ast->declaration); } void RecursiveASTVisitor::visit(<API key>* ast) { for (auto it = ast->attributeList; it; it = it->next) acceptAttribute(it->value); for (auto it = ast->typeSpecifierList; it; it = it->next) acceptSpecifier(it->value); acceptDeclarator(ast->declarator); acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(<API key>* ast) { for (auto it = ast->declarationList; it; it = it->next) acceptDeclaration(it->value); } void RecursiveASTVisitor::visit(SimpleNameAST* ast) {} void RecursiveASTVisitor::visit(DestructorNameAST* ast) { acceptName(ast->id); } void RecursiveASTVisitor::visit(DecltypeNameAST* ast) { acceptSpecifier(ast->decltypeSpecifier); } void RecursiveASTVisitor::visit(OperatorNameAST* ast) {} void RecursiveASTVisitor::visit(ConversionNameAST* ast) { acceptTypeId(ast->typeId); } void RecursiveASTVisitor::visit(TemplateNameAST* ast) { acceptName(ast->id); for (auto it = ast-><API key>; it; it = it->next) <API key>(it->value); } void RecursiveASTVisitor::visit(QualifiedNameAST* ast) { <API key>(ast->nestedNameSpecifier); acceptName(ast->id); } void RecursiveASTVisitor::visit(TypedefSpecifierAST* ast) {} void RecursiveASTVisitor::visit(FriendSpecifierAST* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(InlineSpecifierAST* ast) {} void RecursiveASTVisitor::visit(StaticSpecifierAST* ast) {} void RecursiveASTVisitor::visit(ExternSpecifierAST* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(ThreadSpecifierAST* ast) {} void RecursiveASTVisitor::visit(MutableSpecifierAST* ast) {} void RecursiveASTVisitor::visit(VirtualSpecifierAST* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) { acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) { acceptName(ast->name); } void RecursiveASTVisitor::visit(<API key>* ast) { acceptTypeId(ast->typeId); } void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) { for (auto it = ast->attributeList; it; it = it->next) acceptAttribute(it->value); <API key>(ast->nestedNameSpecifier); acceptName(ast->name); } void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) { acceptExpression(ast->expression); } void RecursiveASTVisitor::visit(<API key>* ast) { <API key>(ast->typeConstraint); acceptSpecifier(ast->specifier); } void RecursiveASTVisitor::visit(ConstQualifierAST* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(<API key>* ast) {} void RecursiveASTVisitor::visit(EnumSpecifierAST* ast) { for (auto it = ast->attributeList; it; it = it->next) acceptAttribute(it->value); <API key>(ast->nestedNameSpecifier); acceptName(ast->name); acceptEnumBase(ast->enumBase); for (auto it = ast->enumeratorList; it; it = it->next) acceptEnumerator(it->value); } void RecursiveASTVisitor::visit(ClassSpecifierAST* ast) { for (auto it = ast->attributeList; it; it = it->next) acceptAttribute(it->value); acceptName(ast->name); acceptBaseClause(ast->baseClause); for (auto it = ast->declarationList; it; it = it->next) acceptDeclaration(it->value); } void RecursiveASTVisitor::visit(<API key>* ast) { <API key>(ast->nestedNameSpecifier); acceptName(ast->name); } void RecursiveASTVisitor::visit(IdDeclaratorAST* ast) { acceptName(ast->name); for (auto it = ast->attributeList; it; it = it->next) acceptAttribute(it->value); } void RecursiveASTVisitor::visit(NestedDeclaratorAST* ast) { acceptDeclarator(ast->declarator); } void RecursiveASTVisitor::visit(PointerOperatorAST* ast) { for (auto it = ast->attributeList; it; it = it->next) acceptAttribute(it->value); for (auto it = ast->cvQualifierList; it; it = it->next) acceptSpecifier(it->value); } void RecursiveASTVisitor::visit(<API key>* ast) { for (auto it = ast->attributeList; it; it = it->next) acceptAttribute(it->value); } void RecursiveASTVisitor::visit(<API key>* ast) { <API key>(ast->nestedNameSpecifier); for (auto it = ast->attributeList; it; it = it->next) acceptAttribute(it->value); for (auto it = ast->cvQualifierList; it; it = it->next) acceptSpecifier(it->value); } void RecursiveASTVisitor::visit(<API key>* ast) { <API key>(ast-><API key>); <API key>(ast->trailingReturnType); } void RecursiveASTVisitor::visit(ArrayDeclaratorAST* ast) { acceptExpression(ast->expression); for (auto it = ast->attributeList; it; it = it->next) acceptAttribute(it->value); } } // namespace cxx
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const utils = require("../util/utils"); const Emitter = require("component-emitter2"); class AnonymousRecord extends Emitter { constructor(getRecordCore) { super(); this.record = null; this.subscriptions = []; this.getRecordCore = getRecordCore; } get name() { if (!this.record) { return ''; } return this.record.name; } get isReady() { if (!this.record) { return false; } return this.record.isReady; } get version() { if (!this.record) { return -1; } return this.record.version; } whenReady(callback) { if (this.record) { if (callback) { this.record.whenReady(this, callback); } else { return this.record.whenReady(this); } } } setName(recordName, callback) { if (this.name === recordName) { return; } this.discard(); this.record = this.getRecordCore(recordName); for (let i = 0; i < this.subscriptions.length; i++) { this.record.subscribe(this.subscriptions[i]); } this.emit('nameChanged', recordName); if (callback) { this.record.whenReady(this, callback); } else { return this.record.whenReady(this); } } get(path) { if (this.record) { return this.record.get(path); } } set(path, data, callback) { if (this.record) { return this.record.set(utils.<API key>(arguments)); } } setWithAck(path, data, callback) { if (this.record) { return this.record.setWithAck(utils.<API key>(arguments)); } } erase(path) { if (this.record) { return this.record.set(utils.<API key>(arguments)); } } eraseWithAck(path, callback) { if (this.record) { return this.record.setWithAck(utils.<API key>(arguments)); } } subscribe(path, callback, triggerNow) { const parameters = utils.normalizeArguments(arguments); this.subscriptions.push(parameters); if (this.record) { this.record.subscribe(parameters); } } unsubscribe(path, callback) { const parameters = utils.normalizeArguments(arguments); this.subscriptions = this.subscriptions.filter(subscription => { return (subscription.path !== parameters.path || subscription.callback !== parameters.callback); }); if (this.record) { this.record.unsubscribe(parameters); } } discard() { if (this.record) { for (let i = 0; i < this.subscriptions.length; i++) { this.record.unsubscribe(this.subscriptions[i]); } return this.record.discard(); } } delete(callback) { if (this.record) { return this.record.delete(callback); } } setMergeStrategy(mergeStrategy) { if (this.record) { this.record.setMergeStrategy(mergeStrategy); } } } exports.AnonymousRecord = AnonymousRecord; //# sourceMappingURL=anonymous-record.js.map
using System; using System.Collections.Generic; namespace EZOper.NetSiteUtilities.AopApi { <summary> AOP API: alipay.eco.cplife.useridentity.status.update </summary> public class <API key> : IAopRequest<<API key>> { <summary> </summary> public string BizContent { get; set; } #region IAopRequest Members private bool needEncrypt=false; private string apiVersion = "1.0"; private string terminalType; private string terminalInfo; private string prodCode; private string notifyUrl; private string returnUrl; private AopObject bizModel; public void SetNeedEncrypt(bool needEncrypt){ this.needEncrypt=needEncrypt; } public bool GetNeedEncrypt(){ return this.needEncrypt; } public void SetNotifyUrl(string notifyUrl){ this.notifyUrl = notifyUrl; } public string GetNotifyUrl(){ return this.notifyUrl; } public void SetReturnUrl(string returnUrl){ this.returnUrl = returnUrl; } public string GetReturnUrl(){ return this.returnUrl; } public void SetTerminalType(String terminalType){ this.terminalType=terminalType; } public string GetTerminalType(){ return this.terminalType; } public void SetTerminalInfo(String terminalInfo){ this.terminalInfo=terminalInfo; } public string GetTerminalInfo(){ return this.terminalInfo; } public void SetProdCode(String prodCode){ this.prodCode=prodCode; } public string GetProdCode(){ return this.prodCode; } public string GetApiName() { return "alipay.eco.cplife.useridentity.status.update"; } public void SetApiVersion(string apiVersion){ this.apiVersion=apiVersion; } public string GetApiVersion(){ return this.apiVersion; } public IDictionary<string, string> GetParameters() { AopDictionary parameters = new AopDictionary(); parameters.Add("biz_content", this.BizContent); return parameters; } public AopObject GetBizModel() { return this.bizModel; } public void SetBizModel(AopObject bizModel) { this.bizModel = bizModel; } #endregion } }
using System; namespace BankAccount { <summary> Bank Account demo class. </summary> public class BankAccount { private string m_customerName; private double m_balance; private bool m_frozen = false; private ILogger m_logger = null; private BankAccount(ILogger logger) { m_logger = logger; } public BankAccount(string customerName, double balance, ILogger logger) { m_customerName = customerName; m_balance = balance; m_logger = logger; } public string CustomerName { get { return m_customerName; } } public double Balance { get { return m_balance; } } public void Debit(double amount) { if (m_frozen) { throw new Exception("Account frozen"); } if (amount > m_balance) { throw new <API key>("amount"); } if (amount < 0) { throw new <API key>("amount"); } m_balance += amount; // intentionally incorrect code if (m_logger != null) m_logger.Info($"${amount.ToString()} debited."); } public void Credit(double amount) { if (m_frozen) { throw new Exception("Account frozen"); } if (amount < 0) { throw new <API key>("amount"); } m_balance += amount; if (m_logger != null) m_logger.Info($"${amount.ToString()} credited."); } private void FreezeAccount() { m_frozen = true; } private void UnfreezeAccount() { m_frozen = false; } } }
namespace WmcSoft.Windows.Forms { partial class ToolStripForm { <summary> Required designer variable. </summary> private System.ComponentModel.IContainer components = null; <summary> Clean up any resources being used. </summary> <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code <summary> Required method for Designer support - do not modify the contents of this method with the code editor. </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); WmcSoft.ComponentModel.ComponentFactory componentFactory1; System.ComponentModel.<API key> resources = new System.ComponentModel.<API key>(typeof(ToolStripForm)); this.menuStrip1 = new WmcSoft.Windows.Forms.MenuStrip(); this.toolStripContainer1 = new System.Windows.Forms.ToolStripContainer(); this.toolStrip1 = new WmcSoft.Windows.Forms.ToolStrip(); this.<API key> = new System.Windows.Forms.ToolStripButton(); this.<API key> = new System.Windows.Forms.ToolStripButton(); this.<API key> = new System.Windows.Forms.ToolStripButton(); this.<API key> = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator = new System.Windows.Forms.ToolStripSeparator(); this.<API key> = new System.Windows.Forms.ToolStripButton(); this.<API key> = new System.Windows.Forms.ToolStripButton(); this.<API key> = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.ToolStripButton = new System.Windows.Forms.ToolStripButton(); this.<API key> = new System.Windows.Forms.ToolStripMenuItem(); this.<API key> = new System.Windows.Forms.ToolStripMenuItem(); this.<API key> = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.<API key> = new System.Windows.Forms.ToolStripMenuItem(); this.<API key> = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); this.<API key> = new System.Windows.Forms.ToolStripMenuItem(); this.aperçuavantimpressionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); this.<API key> = new System.Windows.Forms.ToolStripMenuItem(); this.<API key> = new System.Windows.Forms.ToolStripMenuItem(); this.<API key> = new System.Windows.Forms.ToolStripMenuItem(); this.rétablirToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator(); this.<API key> = new System.Windows.Forms.ToolStripMenuItem(); this.<API key> = new System.Windows.Forms.ToolStripMenuItem(); this.<API key> = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator(); this.sélectionnertoutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.<API key> = new System.Windows.Forms.ToolStripMenuItem(); this.<API key> = new System.Windows.Forms.ToolStripMenuItem(); this.<API key> = new System.Windows.Forms.ToolStripMenuItem(); this.<API key> = new System.Windows.Forms.ToolStripMenuItem(); this.<API key> = new System.Windows.Forms.ToolStripMenuItem(); this.<API key> = new System.Windows.Forms.ToolStripMenuItem(); this.<API key> = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator(); this.àproposdeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.<API key> = new WmcSoft.Windows.Forms.<API key>(); this.<API key> = new WmcSoft.Windows.Forms.<API key>(); componentFactory1 = new WmcSoft.ComponentModel.ComponentFactory(this.components); this.menuStrip1.SuspendLayout(); this.toolStripContainer1.TopToolStripPanel.SuspendLayout(); this.toolStripContainer1.SuspendLayout(); this.toolStrip1.SuspendLayout(); this.statusStrip1.SuspendLayout(); this.SuspendLayout(); // menuStrip1 this.menuStrip1.ClickThrough = false; this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.<API key>, this.<API key>, this.<API key>, this.<API key>}); this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Size = new System.Drawing.Size(618, 33); this.menuStrip1.<API key> = false; this.menuStrip1.TabIndex = 0; this.menuStrip1.Text = "menuStrip1"; // toolStripContainer1 // toolStripContainer1.ContentPanel this.toolStripContainer1.ContentPanel.Size = new System.Drawing.Size(618, 366); this.toolStripContainer1.Dock = System.Windows.Forms.DockStyle.Fill; this.toolStripContainer1.Location = new System.Drawing.Point(0, 33); this.toolStripContainer1.Name = "toolStripContainer1"; this.toolStripContainer1.Size = new System.Drawing.Size(618, 391); this.toolStripContainer1.TabIndex = 1; this.toolStripContainer1.Text = "toolStripContainer1"; // toolStripContainer1.TopToolStripPanel this.toolStripContainer1.TopToolStripPanel.Controls.Add(this.toolStrip1); // toolStrip1 this.toolStrip1.ClickThrough = false; this.toolStrip1.Dock = System.Windows.Forms.DockStyle.None; this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.<API key>, this.<API key>, this.<API key>, this.<API key>, this.toolStripSeparator, this.<API key>, this.<API key>, this.<API key>, this.toolStripSeparator1, this.ToolStripButton}); this.toolStrip1.Location = new System.Drawing.Point(3, 0); this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Size = new System.Drawing.Size(208, 25); this.toolStrip1.<API key> = false; this.toolStrip1.TabIndex = 0; // <API key> this.<API key>.DisplayStyle = System.Windows.Forms.<API key>.Image; this.<API key>.Image = ((System.Drawing.Image)(resources.GetObject("<API key>.Image"))); this.<API key>.<API key> = System.Drawing.Color.Magenta; this.<API key>.Name = "<API key>"; this.<API key>.Size = new System.Drawing.Size(23, 22); this.<API key>.Text = "&Nouveau"; // <API key> this.<API key>.DisplayStyle = System.Windows.Forms.<API key>.Image; this.<API key>.Image = ((System.Drawing.Image)(resources.GetObject("<API key>.Image"))); this.<API key>.<API key> = System.Drawing.Color.Magenta; this.<API key>.Name = "<API key>"; this.<API key>.Size = new System.Drawing.Size(23, 22); this.<API key>.Text = "&Ouvrir"; // <API key> this.<API key>.DisplayStyle = System.Windows.Forms.<API key>.Image; this.<API key>.Image = ((System.Drawing.Image)(resources.GetObject("<API key>.Image"))); this.<API key>.<API key> = System.Drawing.Color.Magenta; this.<API key>.Name = "<API key>"; this.<API key>.Size = new System.Drawing.Size(23, 22); this.<API key>.Text = "&Enregistrer"; // <API key> this.<API key>.DisplayStyle = System.Windows.Forms.<API key>.Image; this.<API key>.Image = ((System.Drawing.Image)(resources.GetObject("<API key>.Image"))); this.<API key>.<API key> = System.Drawing.Color.Magenta; this.<API key>.Name = "<API key>"; this.<API key>.Size = new System.Drawing.Size(23, 22); this.<API key>.Text = "&Imprimer"; // toolStripSeparator this.toolStripSeparator.Name = "toolStripSeparator"; this.toolStripSeparator.Size = new System.Drawing.Size(6, 25); // <API key> this.<API key>.DisplayStyle = System.Windows.Forms.<API key>.Image; this.<API key>.Image = ((System.Drawing.Image)(resources.GetObject("<API key>.Image"))); this.<API key>.<API key> = System.Drawing.Color.Magenta; this.<API key>.Name = "<API key>"; this.<API key>.Size = new System.Drawing.Size(23, 22); this.<API key>.Text = "C&ouper"; // <API key> this.<API key>.DisplayStyle = System.Windows.Forms.<API key>.Image; this.<API key>.Image = ((System.Drawing.Image)(resources.GetObject("<API key>.Image"))); this.<API key>.<API key> = System.Drawing.Color.Magenta; this.<API key>.Name = "<API key>"; this.<API key>.Size = new System.Drawing.Size(23, 22); this.<API key>.Text = "Co&pier"; // <API key> this.<API key>.DisplayStyle = System.Windows.Forms.<API key>.Image; this.<API key>.Image = ((System.Drawing.Image)(resources.GetObject("<API key>.Image"))); this.<API key>.<API key> = System.Drawing.Color.Magenta; this.<API key>.Name = "<API key>"; this.<API key>.Size = new System.Drawing.Size(23, 22); this.<API key>.Text = "Co&ller"; // toolStripSeparator1 this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25); // ToolStripButton this.ToolStripButton.DisplayStyle = System.Windows.Forms.<API key>.Image; this.ToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripButton.Image"))); this.ToolStripButton.<API key> = System.Drawing.Color.Magenta; this.ToolStripButton.Name = "ToolStripButton"; this.ToolStripButton.Size = new System.Drawing.Size(23, 22); this.ToolStripButton.Text = "&?"; // <API key> this.<API key>.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.<API key>, this.<API key>, this.toolStripSeparator2, this.<API key>, this.<API key>, this.toolStripSeparator3, this.<API key>, this.aperçuavantimpressionToolStripMenuItem, this.toolStripSeparator4, this.<API key>}); this.<API key>.Name = "<API key>"; this.<API key>.Size = new System.Drawing.Size(74, 29); this.<API key>.Text = "&Fichier"; // <API key> this.<API key>.Image = ((System.Drawing.Image)(resources.GetObject("<API key>.Image"))); this.<API key>.<API key> = System.Drawing.Color.Magenta; this.<API key>.Name = "<API key>"; this.<API key>.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N))); this.<API key>.Size = new System.Drawing.Size(32, 19); this.<API key>.Text = "&Nouveau"; // <API key> this.<API key>.Image = ((System.Drawing.Image)(resources.GetObject("<API key>.Image"))); this.<API key>.<API key> = System.Drawing.Color.Magenta; this.<API key>.Name = "<API key>"; this.<API key>.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O))); this.<API key>.Size = new System.Drawing.Size(32, 19); this.<API key>.Text = "&Ouvrir"; // toolStripSeparator2 this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new System.Drawing.Size(6, 6); // <API key> this.<API key>.Image = ((System.Drawing.Image)(resources.GetObject("<API key>.Image"))); this.<API key>.<API key> = System.Drawing.Color.Magenta; this.<API key>.Name = "<API key>"; this.<API key>.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S))); this.<API key>.Size = new System.Drawing.Size(32, 19); this.<API key>.Text = "&Enregistrer"; // <API key> this.<API key>.Name = "<API key>"; this.<API key>.Size = new System.Drawing.Size(32, 19); this.<API key>.Text = "Enregistrer &sous"; // toolStripSeparator3 this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Size = new System.Drawing.Size(6, 6); // <API key> this.<API key>.Image = ((System.Drawing.Image)(resources.GetObject("<API key>.Image"))); this.<API key>.<API key> = System.Drawing.Color.Magenta; this.<API key>.Name = "<API key>"; this.<API key>.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.P))); this.<API key>.Size = new System.Drawing.Size(32, 19); this.<API key>.Text = "&Imprimer"; this.aperçuavantimpressionToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("aperçuavantimpressionToolStripMenuItem.Image"))); this.aperçuavantimpressionToolStripMenuItem.<API key> = System.Drawing.Color.Magenta; this.aperçuavantimpressionToolStripMenuItem.Name = "aperçuavantimpressionToolStripMenuItem"; this.aperçuavantimpressionToolStripMenuItem.Size = new System.Drawing.Size(32, 19); this.aperçuavantimpressionToolStripMenuItem.Text = "Aperçu a&vant impression"; // toolStripSeparator4 this.toolStripSeparator4.Name = "toolStripSeparator4"; this.toolStripSeparator4.Size = new System.Drawing.Size(6, 6); // <API key> this.<API key>.Name = "<API key>"; this.<API key>.Size = new System.Drawing.Size(32, 19); this.<API key>.Text = "&Quitter"; // <API key> this.<API key>.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.<API key>, this.rétablirToolStripMenuItem, this.toolStripSeparator5, this.<API key>, this.<API key>, this.<API key>, this.toolStripSeparator6, this.sélectionnertoutToolStripMenuItem}); this.<API key>.Name = "<API key>"; this.<API key>.Size = new System.Drawing.Size(79, 29); this.<API key>.Text = "&Edition"; // <API key> this.<API key>.Name = "<API key>"; this.<API key>.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z))); this.<API key>.Size = new System.Drawing.Size(32, 19); this.<API key>.Text = "&Annuler"; this.rétablirToolStripMenuItem.Name = "rétablirToolStripMenuItem"; this.rétablirToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y))); this.rétablirToolStripMenuItem.Size = new System.Drawing.Size(32, 19); this.rétablirToolStripMenuItem.Text = "&Rétablir"; // toolStripSeparator5 this.toolStripSeparator5.Name = "toolStripSeparator5"; this.toolStripSeparator5.Size = new System.Drawing.Size(6, 6); // <API key> this.<API key>.Image = ((System.Drawing.Image)(resources.GetObject("<API key>.Image"))); this.<API key>.<API key> = System.Drawing.Color.Magenta; this.<API key>.Name = "<API key>"; this.<API key>.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X))); this.<API key>.Size = new System.Drawing.Size(32, 19); this.<API key>.Text = "&Couper"; // <API key> this.<API key>.Image = ((System.Drawing.Image)(resources.GetObject("<API key>.Image"))); this.<API key>.<API key> = System.Drawing.Color.Magenta; this.<API key>.Name = "<API key>"; this.<API key>.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C))); this.<API key>.Size = new System.Drawing.Size(32, 19); this.<API key>.Text = "Co&pier"; // <API key> this.<API key>.Image = ((System.Drawing.Image)(resources.GetObject("<API key>.Image"))); this.<API key>.<API key> = System.Drawing.Color.Magenta; this.<API key>.Name = "<API key>"; this.<API key>.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V))); this.<API key>.Size = new System.Drawing.Size(32, 19); this.<API key>.Text = "Co&ller"; // toolStripSeparator6 this.toolStripSeparator6.Name = "toolStripSeparator6"; this.toolStripSeparator6.Size = new System.Drawing.Size(6, 6); this.sélectionnertoutToolStripMenuItem.Name = "sélectionnertoutToolStripMenuItem"; this.sélectionnertoutToolStripMenuItem.Size = new System.Drawing.Size(32, 19); this.sélectionnertoutToolStripMenuItem.Text = "Sélectio&nner tout"; // <API key> this.<API key>.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.<API key>, this.<API key>}); this.<API key>.Name = "<API key>"; this.<API key>.Size = new System.Drawing.Size(70, 29); this.<API key>.Text = "&Outils"; // <API key> this.<API key>.Name = "<API key>"; this.<API key>.Size = new System.Drawing.Size(32, 19); this.<API key>.Text = "&Personnaliser"; // <API key> this.<API key>.Name = "<API key>"; this.<API key>.Size = new System.Drawing.Size(32, 19); this.<API key>.Text = "&Options"; // <API key> this.<API key>.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.<API key>, this.<API key>, this.<API key>, this.toolStripSeparator7, this.àproposdeToolStripMenuItem}); this.<API key>.Name = "<API key>"; this.<API key>.Size = new System.Drawing.Size(60, 29); this.<API key>.Text = "&Aide"; // <API key> this.<API key>.Name = "<API key>"; this.<API key>.Size = new System.Drawing.Size(32, 19); this.<API key>.Text = "&Sommaire"; // <API key> this.<API key>.Name = "<API key>"; this.<API key>.Size = new System.Drawing.Size(32, 19); this.<API key>.Text = "&Index"; // <API key> this.<API key>.Name = "<API key>"; this.<API key>.Size = new System.Drawing.Size(32, 19); this.<API key>.Text = "&Rechercher"; // toolStripSeparator7 this.toolStripSeparator7.Name = "toolStripSeparator7"; this.toolStripSeparator7.Size = new System.Drawing.Size(6, 6); this.àproposdeToolStripMenuItem.Name = "àproposdeToolStripMenuItem"; this.àproposdeToolStripMenuItem.Size = new System.Drawing.Size(32, 19); this.àproposdeToolStripMenuItem.Text = "À &propos de..."; // statusStrip1 this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.<API key>, this.<API key>}); this.statusStrip1.Location = new System.Drawing.Point(0, 394); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new System.Drawing.Size(618, 30); this.statusStrip1.TabIndex = 0; this.statusStrip1.Text = "statusStrip1"; // <API key> this.<API key>.Name = "<API key>"; this.<API key>.Size = new System.Drawing.Size(40, 25); this.<API key>.Text = "<API key>"; // <API key> this.<API key>.Name = "<API key>"; this.<API key>.Size = new System.Drawing.Size(0, 25); // ToolStripForm this.ClientSize = new System.Drawing.Size(618, 424); this.Controls.Add(this.statusStrip1); this.Controls.Add(this.toolStripContainer1); this.Controls.Add(this.menuStrip1); this.MainMenuStrip = this.menuStrip1; this.Name = "ToolStripForm"; this.menuStrip1.ResumeLayout(false); this.menuStrip1.PerformLayout(); this.toolStripContainer1.TopToolStripPanel.ResumeLayout(false); this.toolStripContainer1.TopToolStripPanel.PerformLayout(); this.toolStripContainer1.ResumeLayout(false); this.toolStripContainer1.PerformLayout(); this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); } #endregion private WmcSoft.Windows.Forms.MenuStrip menuStrip1; private System.Windows.Forms.ToolStripMenuItem <API key>; private System.Windows.Forms.ToolStripMenuItem <API key>; private System.Windows.Forms.ToolStripMenuItem <API key>; private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; private System.Windows.Forms.ToolStripMenuItem <API key>; private System.Windows.Forms.ToolStripMenuItem <API key>; private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; private System.Windows.Forms.ToolStripMenuItem <API key>; private System.Windows.Forms.ToolStripMenuItem aperçuavantimpressionToolStripMenuItem; private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; private System.Windows.Forms.ToolStripMenuItem <API key>; private System.Windows.Forms.ToolStripMenuItem <API key>; private System.Windows.Forms.ToolStripMenuItem <API key>; private System.Windows.Forms.ToolStripMenuItem rétablirToolStripMenuItem; private System.Windows.Forms.ToolStripSeparator toolStripSeparator5; private System.Windows.Forms.ToolStripMenuItem <API key>; private System.Windows.Forms.ToolStripMenuItem <API key>; private System.Windows.Forms.ToolStripMenuItem <API key>; private System.Windows.Forms.ToolStripSeparator toolStripSeparator6; private System.Windows.Forms.ToolStripMenuItem sélectionnertoutToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem <API key>; private System.Windows.Forms.ToolStripMenuItem <API key>; private System.Windows.Forms.ToolStripMenuItem <API key>; private System.Windows.Forms.ToolStripMenuItem <API key>; private System.Windows.Forms.ToolStripMenuItem <API key>; private System.Windows.Forms.ToolStripMenuItem <API key>; private System.Windows.Forms.ToolStripMenuItem <API key>; private System.Windows.Forms.ToolStripSeparator toolStripSeparator7; private System.Windows.Forms.ToolStripMenuItem àproposdeToolStripMenuItem; private System.Windows.Forms.ToolStripContainer toolStripContainer1; private WmcSoft.Windows.Forms.ToolStrip toolStrip1; private System.Windows.Forms.ToolStripButton <API key>; private System.Windows.Forms.ToolStripButton <API key>; private System.Windows.Forms.ToolStripButton <API key>; private System.Windows.Forms.ToolStripButton <API key>; private System.Windows.Forms.ToolStripSeparator toolStripSeparator; private System.Windows.Forms.ToolStripButton <API key>; private System.Windows.Forms.ToolStripButton <API key>; private System.Windows.Forms.ToolStripButton <API key>; private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; private System.Windows.Forms.ToolStripButton ToolStripButton; private System.Windows.Forms.StatusStrip statusStrip1; private WmcSoft.Windows.Forms.<API key> <API key>; private WmcSoft.Windows.Forms.<API key> <API key>; } }
// 3-odd-even-sort-2.h #ifndef <API key> #define <API key> #include <iostream> void oddEvenSort2(); #endif /* defined(<API key>) */
/* TEMPLATE GENERATED TESTCASE FILE Filename: <API key>.c Label Definition File: <API key>.strings.label.xml Template File: sources-sink-41.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: environment Read input from an environment variable * GoodSource: Fixed string * Sink: w32_execv * BadSink : execute command with wexecv * Flow Variant: 41 Data flow: data passed as an argument from one function to another in the same source file * * */ #include "std_testcase.h" #include <wchar.h> #ifdef _WIN32 #define COMMAND_INT_PATH L"%WINDIR%\\system32\\cmd.exe" #define COMMAND_INT L"cmd.exe" #define COMMAND_ARG1 L"/c" #define COMMAND_ARG2 L"dir" #define COMMAND_ARG3 data #else /* NOT _WIN32 */ #include <unistd.h> #define COMMAND_INT_PATH L"/bin/sh" #define COMMAND_INT L"sh" #define COMMAND_ARG1 L"ls" #define COMMAND_ARG2 L"-la" #define COMMAND_ARG3 data #endif #define ENV_VARIABLE L"ADD" #ifdef _WIN32 #define GETENV _wgetenv #else #define GETENV getenv #endif #include <process.h> #define EXECV _wexecv #ifndef OMITBAD void <API key>(wchar_t * data) { { wchar_t *args[] = {COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL}; /* wexecv - specify the path where the command is located */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECV(COMMAND_INT_PATH, args); } } void <API key>() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; { /* Append input from an environment variable to data */ size_t dataLen = wcslen(data); wchar_t * environment = GETENV(ENV_VARIABLE); /* If there is data in the environment variable */ if (environment != NULL) { /* POTENTIAL FLAW: Read data from an environment variable */ wcsncat(data+dataLen, environment, 100-dataLen-1); } } <API key>(data); } #endif /* OMITBAD */ #ifndef OMITGOOD void <API key>(wchar_t * data) { { wchar_t *args[] = {COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL}; /* wexecv - specify the path where the command is located */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ EXECV(COMMAND_INT_PATH, args); } } /* goodG2B uses the GoodSource with the BadSink */ static void goodG2B() { wchar_t * data; wchar_t dataBuffer[100] = L""; data = dataBuffer; /* FIX: Append a fixed string to data (not user / external input) */ wcscat(data, L"*.*"); <API key>(data); } void <API key>() { goodG2B(); } #endif /* OMITGOOD */ /* Below is the main(). It is only used when building this testcase on * its own for testing or for building a binary to use in testing binary * analysis tools. It is not used when compiling all the testcases as one * application, which is how source code analysis tools are tested. */ #ifdef INCLUDEMAIN int main(int argc, char * argv[]) { /* seed randomness */ srand( (unsigned)time(NULL) ); #ifndef OMITGOOD printLine("Calling good()..."); <API key>(); printLine("Finished good()"); #endif /* OMITGOOD */ #ifndef OMITBAD printLine("Calling bad()..."); <API key>(); printLine("Finished bad()"); #endif /* OMITBAD */ return 0; } #endif
// ReSharper disable InconsistentNaming namespace deleteonerror.GeoIP.Model { <summary> </summary> public enum NetworkType { IPv4, IPv6 } }
#!/usr/bin/env ruby # encoding: UTF-8 require 'spec_helper' require 'tag/country_code' describe ExifTagger::Tag::CountryCode do let(:val_ok) { 'RU' } let(:val_orig) { { '<API key>' => 'UA' } } let(:val_orig_empty) { { '<API key>' => '' } } let(:tag) { described_class.new(val_ok) } it_behaves_like 'any tag' it 'knows it\'s ID' do expect(tag.tag_id).to be :country_code expect(tag.tag_name).to eq 'CountryCode' end it 'generates write_script for exiftool' do expect(tag.to_write_script).to include('-XMP-iptcExt:<API key>=RU') end it_behaves_like 'any paranoid tag' context 'when the original value exists' do it 'considers empty strings as a no-value' do tag.check_for_warnings(original_values: val_orig_empty) expect(tag.warnings).to be_empty expect(tag.warnings.inspect).not_to include('has original value:') end end context 'when gets invalid values' do val_nok = '<API key>' # bytesize=33 subject { described_class.new(val_nok) } its(:value) { should be_empty } it { should_not be_valid } its(:value_invalid) { should_not be_empty } its(:value_invalid) { should match_array([val_nok]) } its('errors.inspect') { should include("'#{val_nok}'") } its(:to_write_script) { should be_empty } end end
using System; using System.Linq; namespace Geb.Image.Formats.MetaData.Profiles.Icc { <summary> The type contains a one-dimensional table of double values. </summary> internal sealed class <API key> : IccTagDataEntry, IEquatable<<API key>> { <summary> Initializes a new instance of the <see cref="<API key>"/> class. </summary> public <API key>() : this(new float[0], IccProfileTag.Unknown) { } <summary> Initializes a new instance of the <see cref="<API key>"/> class. </summary> <param name="gamma">Gamma value</param> public <API key>(float gamma) : this(new[] { gamma }, IccProfileTag.Unknown) { } <summary> Initializes a new instance of the <see cref="<API key>"/> class. </summary> <param name="curveData">Curve Data</param> public <API key>(float[] curveData) : this(curveData, IccProfileTag.Unknown) { } <summary> Initializes a new instance of the <see cref="<API key>"/> class. </summary> <param name="tagSignature">Tag Signature</param> public <API key>(IccProfileTag tagSignature) : this(new float[0], tagSignature) { } <summary> Initializes a new instance of the <see cref="<API key>"/> class. </summary> <param name="gamma">Gamma value</param> <param name="tagSignature">Tag Signature</param> public <API key>(float gamma, IccProfileTag tagSignature) : this(new[] { gamma }, tagSignature) { } <summary> Initializes a new instance of the <see cref="<API key>"/> class. </summary> <param name="curveData">Curve Data</param> <param name="tagSignature">Tag Signature</param> public <API key>(float[] curveData, IccProfileTag tagSignature) : base(IccTypeSignature.Curve, tagSignature) { this.CurveData = curveData ?? new float[0]; } <summary> Gets the curve data </summary> public float[] CurveData { get; } <summary> Gets the gamma value. Only valid if <see cref="IsGamma"/> is true </summary> public float Gamma => this.IsGamma ? this.CurveData[0] : 0; <summary> Gets a value indicating whether the curve maps input directly to output. </summary> public bool IsIdentityResponse => this.CurveData.Length == 0; <summary> Gets a value indicating whether the curve is a gamma curve. </summary> public bool IsGamma => this.CurveData.Length == 1; <inheritdoc/> public override bool Equals(IccTagDataEntry other) { return other is <API key> entry && this.Equals(entry); } <inheritdoc/> public bool Equals(<API key> other) { if (other == null) { return false; } if (ReferenceEquals(this, other)) { return true; } return base.Equals(other) && this.CurveData.SequenceEqual(other.CurveData); } <inheritdoc/> public override bool Equals(object obj) { if (obj == null) { return false; } if (ReferenceEquals(this, obj)) { return true; } return obj is <API key> other && this.Equals(other); } <inheritdoc/> public override int GetHashCode() { unchecked { return (base.GetHashCode() * 397) ^ (this.CurveData?.GetHashCode() ?? 0); } } } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _03.<API key> { class <API key> { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); decimal sum = 0m; for (int i = 0; i < n; i++) { decimal number = decimal.Parse(Console.ReadLine()); sum += number; } Console.WriteLine(sum); } } }
const MockServer = require('./mockserver.js'); let server; module.exports = { start(done) { server = MockServer.init(); server.on('listening', function () { done(); }); }, stop(done) { if (!server) { done(); return; } server.close(function () { done(); }); }, createServer(opts = {}) { return MockServer.initAsync(opts); }, cookiesFound() { MockServer.addMock({ url: '/wd/hub/session/1352110219202/cookie', method: 'GET', response: { sessionId: '1352110219202', status: 0, value: [{ name: 'test_cookie', value: '123456', path: '/', domain: 'example.org', secure: false }] } }, null, true); }, cookiesNotFound() { MockServer.addMock({ url: '/wd/hub/session/1352110219202/cookie', method: 'GET', response: JSON.stringify({ sessionId: '1352110219202', status: 0, value: [] }) }); }, cookiesSocketDelay() { MockServer.addMock({ url: '/wd/hub/session/1352110219202/cookie', method: 'GET', socketDelay: 200, response: '' }, true); }, deleteCookie() { MockServer.addMock({ url: '/wd/hub/session/1352110219202/cookie/other_cookie', method: 'DELETE', response: JSON.stringify({ sessionId: '1352110219202', status: 0 }) }); }, addCookie() { MockServer.addMock({ url: '/wd/hub/session/1352110219202/cookie', method: 'POST', postdata: JSON.stringify( { cookie: { name: 'other_cookie', value: '123456', secure: false, httpOnly: false } } ), response: JSON.stringify({ value: null }) }); }, elementSelected(elementId = '0') { MockServer.addMock({ url: `/wd/hub/session/1352110219202/element/${elementId}/selected`, method: 'GET', response: JSON.stringify({ sessionId: '1352110219202', value: true, status: 0 }) }, true); }, element({using = 'css selector', value = '#container'}) { MockServer.addMock({ url: '/wd/hub/session/13521-10219-202/elements', method: 'POST', postdata: JSON.stringify({using, value}), response: JSON.stringify({ value: [{ '<API key>': '<API key>' }] }) }, true); }, elementNotSelected(elementId = '0') { MockServer.addMock({ url: `/wd/hub/session/1352110219202/element/${elementId}/selected`, method: 'GET', response: JSON.stringify({ sessionId: '1352110219202', value: false, status: 0 }) }, true); }, maximizeWindow() { MockServer.addMock({ url: '/wd/hub/session/1352110219202/window/current/maximize', response: JSON.stringify({ sessionId: '1352110219202', status: 0 }) }, true); }, /** * @deprecated * @param elementId * @param text */ elementText(elementId = '0', text = 'sample text') { MockServer.addMock({ url: `/wd/hub/session/1352110219202/element/${elementId}/text`, method: 'GET', response: JSON.stringify({ sessiondId: '1352110219202', status: 0, value: text }) }); }, tagName(elementId = '0', tagName = 'div') { MockServer.addMock({ url: `/wd/hub/session/1352110219202/element/${elementId}/name`, method: 'GET', response: JSON.stringify({ value: tagName }) }); }, visible(elementId = '0', value = true, {times = 0} = {}) { MockServer.addMock({ url: `/wd/hub/session/1352110219202/element/${elementId}/displayed`, method: 'GET', response: JSON.stringify({ value }), times }); return this; }, findElements({using = 'css selector', value = '#container', response = null, times = 0}) { const mockOpts = { url: '/session/13521-10219-202/elements', method: 'POST', postdata: JSON.stringify({using, value}), response: JSON.stringify(response) }; if (times > 0) { mockOpts.times = times; } MockServer.addMock(mockOpts, times === 0); return this; }, getElementText({elementId, responseText, sessionId = '13521-10219-202'}) { MockServer.addMock({ url: `/session/${sessionId}/element/${elementId}/text`, method: 'GET', response: JSON.stringify({ value: responseText }) }); return this; }, <API key>({elementId, sessionId = '13521-10219-202', response}) { MockServer.addMock({ url: `/session/${sessionId}/element/${elementId}/element`, method: 'POST', response: JSON.stringify(response) }); return this; }, clickElement({elementId, sessionId = '13521-10219-202'}) { MockServer.addMock({ url: `/session/${sessionId}/element/${elementId}/click`, method: 'POST', response: JSON.stringify({ value: null }) }); return this; }, elementProperty(elementId, property, response) { MockServer.addMock({ url: `/wd/hub/session/1352110219202/element/${elementId}/property/${property}`, method: 'GET', response: JSON.stringify(response) }); return this; }, setElementValue({ sessionId = '13521-10219-202', elementId, text, times = 0, response = null, statusCode = 200 }) { MockServer.addMock({ url: `/session/${sessionId}/element/${elementId}/value`, method: 'POST', postdata: JSON.stringify({ text, value: text.split('') }), response: response || { value: null }, statusCode }, times === 0); return this; }, <API key>({ persist = false, sessionId = '13521-10219-202', headless = true, deleteSession = true, url = '/wd/hub/session' }) { const browserName = 'firefox'; const headlessOpt = headless ? '-headless' : ''; const options = { ['moz:firefoxOptions']: { args: [headlessOpt] } }; MockServer.addMock({ url, statusCode: 201, method: 'POST', postdata: JSON.stringify({ desiredCapabilities: {browserName, ...options}, capabilities: {alwaysMatch: {browserName, ...options}} }), response: JSON.stringify({ value: { sessionId, capabilities: { acceptInsecureCerts: false, browserName: 'firefox', browserVersion: '65.0.1' } } }) }, !persist); if (!deleteSession) { return; } MockServer.addMock({ url: `/session/${sessionId}`, method: 'DELETE', response: { value: null } }, !persist); }, createChromeSession({ persist = false, sessionId = '13521-10219-202', headless = true, deleteSession = true, url = '/wd/hub/session' }) { const browserName = 'chrome'; const headlessOpt = headless ? 'headless' : ''; const options = { ['goog:chromeOptions']: {} }; if (headlessOpt) { options['goog:chromeOptions'].args = [headlessOpt]; } MockServer.addMock({ url, statusCode: 201, method: 'POST', postdata: JSON.stringify({ desiredCapabilities: {browserName, ...options}, capabilities: {alwaysMatch: {browserName, ...options}} }), response: JSON.stringify({ value: { sessionId, capabilities: { acceptInsecureCerts: false, browserName: 'chrome', browserVersion: '90' } } }) }, !persist); if (!deleteSession) { return; } MockServer.addMock({ url: `/session/${sessionId}`, method: 'DELETE', response: { value: null } }, !persist); }, createNewW3CSession({ testName = '', browserName = 'firefox', sessionId = '13521-10219-202', persist = false, deleteSession = true, postdata = null } = {}) { MockServer.addMock({ url: '/session', statusCode: 201, method: 'POST', postdata: JSON.stringify(postdata || { desiredCapabilities: {browserName, name: testName}, capabilities: {alwaysMatch: {browserName}} }), response: JSON.stringify({ value: { sessionId, capabilities: { acceptInsecureCerts: false, browserName: 'firefox', browserVersion: '65.0.1' } } }) }, !persist); if (!deleteSession) { return; } MockServer.addMock({ url: `/session/${sessionId}`, method: 'DELETE', response: { value: null } }, !persist); return this; }, navigateTo({url, persist = false, sessionId = '13521-10219-202'}) { MockServer.addMock({ url: `/session/${sessionId}/url`, method: 'POST', postdata: JSON.stringify({ url }), response: { value: null } }, !persist); return this; } };
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>SARMATINe</title> <!-- Bootstrap Core CSS --> <link href="vendor/bootstrap/css/bootstrap.css" rel="stylesheet"> <!-- MetisMenu CSS --> <link href="vendor/metisMenu/metisMenu.min.css" rel="stylesheet"> <!-- Custom CSS --> <link href="dist/css/sb-admin-2.css" rel="stylesheet"> <!-- Custom Fonts --> <link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <!-- 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/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif] </head> <body> <div id="wrapper"> <!-- Navigation --> <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="">SAMARTINe - Sistema de Avaliação e Recomendação de Melhorias para o Alinhamento Estratégico entre TI e Negócios </a> </div> <!-- /.navbar-header --> <ul class="nav navbar-top-links navbar-right"> <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href=" <i class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i> </a> <ul class="dropdown-menu dropdown-user"> <li><a href="logout.php"><i class="fa fa-sign-out fa-fw"></i> Logout</a> </li> </ul> <!-- /.dropdown-user --> </li> <!-- /.dropdown --> </ul> <!-- /.navbar-top-links --> <div class="navbar-default sidebar" role="navigation"> <div class="sidebar-nav navbar-collapse"> <ul class="nav" id="side-menu"> <li> <a href="home.php"><i class="fa fa-edit fa-fw"></i> Home</a> </li> </ul> <!-- /.nav-second-level --> </li> </ul> </div> <!-- /.sidebar-collapse --> </div> <!-- /.navbar-static-side --> </nav> <!-- Page Content --> <div id="page-wrapper"> <div class="container-fluid"> <div class="row"> <div class="col-lg-12"> <h3 class="page-header">Menu</h3> </div> <!-- /.col-lg-12 --> </div> <!-- /.row --> <div class="row"> <div class="col-lg-4 col-md-6"> <div class="panel panel-primary"> <div class="panel-heading"> <div class="row"> <div class="col-xs-3"> <i class="fa fa-edit fa-5x"></i> </div> <div class="col-xs-9 text-right"> <div class="huge"><h3>Preencher Formulário</h3></div> </div> </div> </div> <a href="formulario.php"> <div class="panel-footer"> <span class="pull-left">Clique aqui</span> <span class="pull-right"><i class="fa <API key>"></i></span> <div class="clearfix"></div> </div> </a> </div> </div> <!-- <div class="col-lg-4 col-md-6"> <div class="panel panel-green"> <div class="panel-heading"> <div class="row"> <div class="col-xs-3"> <i class="fa fa-eye fa-5x"></i> </div> <div class="col-xs-9 text-right"> <div class="huge"><h3>Visualizar Relatórios</h3></div> </div> </div> </div> <a href="relatorio-menu.php"> <div class="panel-footer"> <span class="pull-left">Clique aqui</span> <span class="pull-right"><i class="fa <API key>"></i></span> <div class="clearfix"></div> </div> </a> </div> </div> <!-- <div class="col-lg-4 col-md-6"> <div class="panel panel-red"> <div class="panel-heading"> <div class="row"> <div class="col-xs-3"> <i class="fa fa-edit fa-5x"></i> </div> <div class="col-xs-9 text-right"> <div class="huge"><h3>Cadastrar Empresa</h3></div> </div> </div> </div> <a href="empresa.php"> <div class="panel-footer"> <span class="pull-left">Clique aqui</span> <span class="pull-right"><i class="fa <API key>"></i></span> <div class="clearfix"></div> </div> </a> </div> </div> </div> <!-- /.row --> </div> <!-- /.container-fluid --> </div> <!-- /#page-wrapper --> </div> <!-- /#wrapper --> <!-- jQuery --> <script src="vendor/jquery/jquery.min.js"></script> <!-- Bootstrap Core JavaScript --> <script src="vendor/bootstrap/js/bootstrap.min.js"></script> <!-- Metis Menu Plugin JavaScript --> <script src="vendor/metisMenu/metisMenu.min.js"></script> <!-- Custom Theme JavaScript --> <script src="dist/js/sb-admin-2.js"></script> </body> </html>
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","<API key>.html"],['3285',"Tlece.Recruitment.UploaderAMS Namespace","<API key>.html"]];
package website.automate.jwebrobot.executor.action; import org.openqa.selenium.TimeoutException; import website.automate.jwebrobot.context.<API key>; import website.automate.jwebrobot.executor.ActionExecutorUtils; import website.automate.jwebrobot.executor.ActionResult; import website.automate.waml.io.model.main.action.Action; import website.automate.waml.io.model.main.action.ConditionalAction; import static org.apache.commons.lang3.StringUtils.isNotBlank; public abstract class BaseActionExecutor<T extends Action> implements ActionExecutor<T> { private static final String <API key> = "Timeout waiting for an element matching given criteria."; abstract void execute(T action, <API key> context, ActionResult result, ActionExecutorUtils utils); public ActionResult perform(T action, <API key> context, ActionExecutorUtils utils) { ActionResult result = new ActionResult(); result.setRawAction(action); T evaluatedAction = null; try { if(isExecute(action, context, utils)) { evaluatedAction = utils.getActionEvaluator().evaluate(action, context); execute(evaluatedAction, context, result, utils); } else { result.setSkipped(true); } } catch (Exception e){ translateException(result, e); } finally { result.setEvaluatedAction(evaluatedAction); register(context, result); } return result; } boolean isExecute(Action action, <API key> context, ActionExecutorUtils utils){ ConditionalAction conditionalAction = ConditionalAction.class.cast(action); return utils.<API key>().isExecutable(conditionalAction, context); } void register(<API key> context, ActionResult result) { Action action = result.<API key>(); String register = action.getRegister(); if (isNotBlank(register)) { context.getMemory().put(register, result); } } void translateException(ActionResult result, Exception e){ result.setCode(ActionResult.ERROR); result.setMessage(e.getMessage()); result.setError(e); if(e instanceof TimeoutException){ result.setCode(ActionResult.FAILURE); result.setMessage(<API key>); } } }
function <API key>() { var url = "/Home/<API key>"; $.get(url) .done(function (result) { var values = []; $.each(result.ChartDatasets[0].Values, function(index, val) { values.push(val.Value); }); var data = { labels: result.Labels, datasets: [ { label: "My First dataset", fillColor: "rgba(38, 94, 217,0.5)", strokeColor: "rgba(38, 94, 217,0.8)", highlightFill: "rgba(38, 94, 217,0.75)", highlightStroke: "rgba(38, 94, 217,1)", data: values } ] }; var ctx = document.getElementById("<API key>").getContext("2d"); new Chart(ctx).Line(data); }); }
#pragma once #include <memory> #include <stdint.h> class VideoEncoder { public: virtual ~VideoEncoder() { } static std::unique_ptr<VideoEncoder> Create(const std::wstring& filename); virtual void Init(int width, int height, int fps) = 0; virtual void Finish() = 0; virtual void WriteFrame(uint8_t* data, int stride) = 0; };
class ApiKey < ActiveRecord::Base before_create :<API key> private def <API key> begin self.access_token = SecureRandom.hex end while self.class.exists?(access_token: access_token) end end
'use strict'; angular.module('wsapp') .controller('<API key>', function ($scope, $location, applicationService, $state, $cookies, $stateParams) { console.log($stateParams.programmeId) $scope.degreeId = $stateParams.programmeId $scope.availableOptions = [ {name : "- Select -", id : "1"}, {name : "Male", id : "2"},{ name : "Female", id : "3"}]; $scope.<API key> =[ "Afghan", "Albanian", "Algerian", "American", "Andorran", "Angolan", "Antiguans", "Argentinean", "Armenian", "Australian", "Austrian", "Azerbaijani", "Bahamian", "Bahraini", "Bangladeshi", "Barbadian", "Barbudans", "Batswana", "Belarusian", "Belgian", "Belizean", "Beninese", "Bhutanese", "Bolivian", "Bosnian", "Brazilian", "British", "Bruneian", "Bulgarian", "Burkinabe", "Burmese", "Burundian", "Cambodian", "Cameroonian", "Canadian", "Cape Verdean", "Central African", "Chadian", "Chilean", "Chinese", "Colombian", "Comoran", "Congolese", "Costa Rican", "Croatian", "Cuban", "Cypriot", "Czech", "Danish", "Djibouti", "Dominican", "Dutch", "East Timorese", "Ecuadorean", "Egyptian", "Emirian", "Equatorial Guinean", "Eritrean", "Estonian", "Ethiopian", "Fijian", "Filipino", "Finnish", "French", "Gabonese", "Gambian", "Georgian", "German", "Ghanaian", "Greek", "Grenadian", "Guatemalan", "Guinea-Bissauan", "Guinean", "Guyanese", "Haitian", "Herzegovinian", "Honduran", "Hungarian", "I-Kiribati", "Icelander", "Indian", "Indonesian", "Iranian", "Iraqi", "Irish", "Israeli", "Italian", "Ivorian", "Jamaican", "Japanese", "Jordanian", "Kazakhstani", "Kenyan", "Kittian and Nevisian", "Kuwaiti", "Kyrgyz", "Laotian", "Latvian", "Lebanese", "Liberian", "Libyan", "Liechtensteiner", "Lithuanian", "Luxembourger", "Macedonian", "Malagasy", "Malawian", "Malaysian", "Maldivan", "Malian", "Maltese", "Marshallese", "Mauritanian", "Mauritian", "Mexican", "Micronesian", "Moldovan", "Monacan", "Mongolian", "Moroccan", "Mosotho", "Motswana", "Mozambican", "Namibian", "Nauruan", "Nepalese", "New Zealander", "Nicaraguan", "Nigerian", "Nigerien", "North Korean", "Northern Irish", "Norwegian", "Omani", "Pakistani", "Palauan", "Panamanian", "Papua New Guinean", "Paraguayan", "Peruvian", "Polish", "Portuguese", "Qatari", "Romanian", "Russian", "Rwandan", "Saint Lucian", "Salvadoran", "Samoan", "San Marinese", "Sao Tomean", "Saudi", "Scottish", "Senegalese", "Serbian", "Seychellois", "Sierra Leonean", "Singaporean", "Slovakian", "Slovenian", "Solomon Islander", "Somali", "South African", "South Korean", "Spanish", "Sri Lankan", "Sudanese", "Surinamer", "Swazi", "Swedish", "Swiss", "Syrian", "Taiwanese", "Tajik", "Tanzanian", "Thai", "Togolese", "Tongan", "Trinidadian or Tobagonian", "Tunisian", "Turkish", "Tuvaluan", "Ugandan", "Ukrainian", "Uruguayan", "Uzbekistani", "Venezuelan", "Vietnamese", "Welsh", "Yemenite", "Zambian", "Zimbabwean" ] $scope.student = JSON.parse($cookies.get('student')); var dob = $scope.student.dateOfBirth $scope.date = new Date(Date.parse(dob)); console.log($scope.student) console.log($scope.student.id) $scope.uploadFile = function(files){ applicationService.uploadFile($scope.student.id, files[0], function(response){ alertify.success("SUCCESS"); } ,function(response){ alertify.error("ERROR"); }); } }) .controller('<API key>', function($scope){ var application1 = {"identifier":'123', "degreeProgrammeId": 'E2', "status": "In progress"}; var application2 = {"identifier":'234', "degreeProgrammeId": 'E1', "status": "Accepted"}; $scope.applications = [application1, application2]; });
using System; using System.Reactive; namespace Pirac { public interface IObserveClose { IObservable<Unit> WhenClosed(); Func<bool> CanCloseCheck { get; set; } } }
export type DictionaryEntry = { /** * Unique identifier for the rule (format: [A-Za-z0-9_-]+). */ readonly objectID: string; readonly language: string; readonly word?: string; readonly words?: readonly string[]; readonly decomposition?: readonly string[]; readonly state?: 'enabled' | 'disabled'; };
module.exports = function(app) { var homeController = {}; var File = app.models.file; homeController.read = function(req, res) { var _id = req.params.id; File.findById(_id).exec() .then( function(file) { if(!file) throw new Error('File not found!'); res.download(file.path, file.originalName); //res.json(file); }, function(err) { console.log(err); res.status(404).json(err); } ); }; homeController.readAll = function(req, res) { File.find({}, null).exec() .then( function(files) { res.json(files); }, function(err) { console.log(err); res.status(500).json(err); } ); }; homeController.create = function(req, res) { var file = req.files.file; var objectFile = { originalName: file.originalFilename, path: file.path, size: file.size }; File.create(objectFile) .then( function(file) { res.status(201).json(file); }, function(err) { console.log(err); res.status(500).json(err); } ); }; homeController.delete = function(req, res) { var _id = req.params.id; // get file to remove in directory File.findById(_id).exec() .then( function(removedFile) { if(!removedFile) throw new Error('File not found!'); // remove in database File.remove({'_id': _id}).exec() .then( function() { var fs = require('fs'); fs.unlinkSync(removedFile.path); res.json(removedFile); }, function(err) { return console.error(err); } ); }, function(err) { console.log(err); res.status(404).json(err); } ); }; return homeController; }
'use strict'; (function (factory) { if (typeof module === 'object' && module.exports) { factory['default'] = factory; module.exports = factory; } else if (typeof define === 'function' && define.amd) { define('highcharts/indicators/dema', ['highcharts', 'highcharts/modules/stock'], function (Highcharts) { factory(Highcharts); factory.Highcharts = Highcharts; return factory; }); } else { factory(typeof Highcharts !== 'undefined' ? Highcharts : undefined); } }(function (Highcharts) { var _modules = Highcharts ? Highcharts._modules : {}; function _registerModule(obj, path, args, fn) { if (!obj.hasOwnProperty(path)) { obj[path] = fn.apply(null, args); } } _registerModule(_modules, 'mixins/indicator-required.js', [_modules['parts/Utilities.js']], function (U) { var error = U.error; /* eslint-disable no-invalid-this, valid-jsdoc */ var <API key> = { /** * Check whether given indicator is loaded, else throw error. * @private * @param {Highcharts.Indicator} indicator * Indicator constructor function. * @param {string} requiredIndicator * Required indicator type. * @param {string} type * Type of indicator where function was called (parent). * @param {Highcharts.<API key>} callback * Callback which is triggered if the given indicator is loaded. * Takes indicator as an argument. * @param {string} errMessage * Error message that will be logged in console. * @return {boolean} * Returns false when there is no required indicator loaded. */ isParentLoaded: function (indicator, requiredIndicator, type, callback, errMessage) { if (indicator) { return callback ? callback(indicator) : true; } error(errMessage || this.generateMessage(type, requiredIndicator)); return false; }, /** * @private * @param {string} indicatorType * Indicator type * @param {string} required * Required indicator * @return {string} * Error message */ generateMessage: function (indicatorType, required) { return 'Error: "' + indicatorType + '" indicator type requires "' + required + '" indicator loaded before. Please read docs: ' + 'https://api.highcharts.com/highstock/plotOptions.' + indicatorType; } }; return <API key>; }); _registerModule(_modules, 'indicators/dema.src.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js'], _modules['mixins/indicator-required.js']], function (H, U, <API key>) { var correctFloat = U.correctFloat, isArray = U.isArray, seriesType = U.seriesType; var EMAindicator = H.seriesTypes.ema, requiredIndicator = <API key>; /** * The DEMA series Type * * @private * @class * @name Highcharts.seriesTypes.dema * * @augments Highcharts.Series */ seriesType('dema', 'ema', /** * Double exponential moving average (DEMA) indicator. This series requires * `linkedTo` option to be set and should be loaded after the * `stock/indicators/indicators.js` and `stock/indicators/ema.js`. * * @sample {highstock} stock/indicators/dema * DEMA indicator * * @extends plotOptions.ema * @since 7.0.0 * @product highstock * @excluding allAreas, colorAxis, compare, compareBase, joinBy, keys, * navigatorOptions, pointInterval, pointIntervalUnit, * pointPlacement, pointRange, pointStart, showInNavigator, * stacking * @requires stock/indicators/indicators * @requires stock/indicators/ema * @requires stock/indicators/dema * @optionparent plotOptions.dema */ {}, /** * @lends Highcharts.Series# */ { init: function () { var args = arguments, ctx = this; requiredIndicator.isParentLoaded(EMAindicator, 'ema', ctx.type, function (indicator) { indicator.prototype.init.apply(ctx, args); return; }); }, getEMA: function (yVal, prevEMA, SMA, index, i, xVal) { return EMAindicator.prototype.calculateEma(xVal || [], yVal, typeof i === 'undefined' ? 1 : i, this.chart.series[0].EMApercent, prevEMA, typeof index === 'undefined' ? -1 : index, SMA); }, getValues: function (series, params) { var period = params.period, doubledPeriod = 2 * period, xVal = series.xData, yVal = series.yData, yValLen = yVal ? yVal.length : 0, index = -1, <API key> = 0, SMA = 0, DEMA = [], xDataDema = [], yDataDema = [], EMA = 0, // EMA(EMA) EMAlevel2, // EMA of previous point prevEMA, prevEMAlevel2, // EMA values array EMAvalues = [], i, DEMAPoint; series.EMApercent = (2 / (period + 1)); // Check period, if bigger than EMA points length, skip if (yValLen < 2 * period - 1) { return; } // Switch index for OHLC / Candlestick / Arearange if (isArray(yVal[0])) { index = params.index ? params.index : 0; } // Accumulate first N-points <API key> = EMAindicator.prototype.<API key>(period, index, yVal); // first point SMA = <API key> / period; <API key> = 0; // Calculate value one-by-one for each period in visible data for (i = period; i < yValLen + 2; i++) { if (i < yValLen + 1) { EMA = this.getEMA(yVal, prevEMA, SMA, index, i)[1]; EMAvalues.push(EMA); } prevEMA = EMA; // Summing first period points for EMA(EMA) if (i < doubledPeriod) { <API key> += EMA; } else { // Calculate DEMA // First DEMA point if (i === doubledPeriod) { SMA = <API key> / period; } EMA = EMAvalues[i - period - 1]; EMAlevel2 = this.getEMA([EMA], prevEMAlevel2, SMA)[1]; DEMAPoint = [ xVal[i - 2], correctFloat(2 * EMA - EMAlevel2) ]; DEMA.push(DEMAPoint); xDataDema.push(DEMAPoint[0]); yDataDema.push(DEMAPoint[1]); prevEMAlevel2 = EMAlevel2; } } return { values: DEMA, xData: xDataDema, yData: yDataDema }; } }); /** * A `DEMA` series. If the [type](#series.ema.type) option is not * specified, it is inherited from [chart.type](#chart.type). * * @extends series,plotOptions.ema * @since 7.0.0 * @product highstock * @excluding allAreas, colorAxis, compare, compareBase, dataParser, dataURL, * joinBy, keys, navigatorOptions, pointInterval, pointIntervalUnit, * pointPlacement, pointRange, pointStart, showInNavigator, stacking * @requires stock/indicators/indicators * @requires stock/indicators/ema * @requires stock/indicators/dema * @apioption series.dema */ ''; // adds doclet above to the transpiled file }); _registerModule(_modules, 'masters/indicators/dema.src.js', [], function () { }); }));
pageid: cmd.state-enter title: state-enter layout: docs section: Commands permalink: docs/cmd/state-enter.html redirect_from: docs/cmd/state-enter/ *Since 4.4* The `state-enter` command works in conjunction with [state-leave](/watchman/docs/cmd/state-leave.html) to facilitate [advanced settling in subscriptions](/watchman/docs/cmd/subscribe.html#advanced-settling). `state-enter` causes a watch to be marked as being in a particular named state. The state is asserted until a corresponding `state-leave` command is issued or *until the watchman client session that entered the state disconnects*. This automatic cleanup helps to avoid breaking subscribers if the tooling that initiated a state terminates unexpectedly. Subscriptions can use the [defer](/watchman/docs/cmd/subscribe.html#defer) and [drop](/watchman/docs/cmd/subscribe.html#drop) fields to defer or drop notifications generated while the watch is in a particular named state. Examples This is the simplest example; entering a state named `mystate`: json ["state-enter", "/path/to/root", "mystate"] It will cause any subscribers to receive a unilateral subscription PDU from the watchman server: json { "subscription": "mysubscriptionname", "root": "/path/to/root", "state-enter": "mystate", "clock": "c:1446410081:18462:7:127" } The `clock` field in the response is the (synchronized; see below) clock at the time that the state was entered and can be used in subsequent queries, in combination with the corresponding `state-leave` subscription PDU clock, to locate things that changed while the state was asserted. A more complex example demonstrates passing metadata to any subscribers. The `metadata` field is propagated through to the subscribers and is not interpreted by the watchman server. It can be any JSON value. json ["state-enter", "/path/to/root", { "name": "mystate", "metadata": { "foo": "bar" } }] This will emit the following unilateral subscription PDU to all subscribers: json { "subscription": "mysubscriptionname", "root": "/path/to/root", "state-enter": "mystate", "clock": "c:1446410081:18462:7:137", "metadata": { "foo": "bar" } } Synchronization States are synchronized with the state of the filesystem so that it is possible for subscribers to reason about when files changed with respect to the state. This means that issuing a `state-enter` command will [perform query synchronization](/watchman/docs/cookies.html#how-cookies-work) to ensure that things are in sync. The `state-enter` command will use a default `sync_timeout` of 60 seconds. If the synchronization cookie is not observed within the configured `sync_timeout`, an error will be returned and *the state will not be entered*. In some cases, perhaps during the initial crawl of a very large tree, You may specify an alternative value for the timeout; the value is expressed in *milliseconds*: json ["state-enter", "/path/to/root", { "name": "mystate", "sync_timeout": 10000, "metadata": { "foo": "bar" } }] You may also specify `0` for the timeout to disable synchronization for this particular command. This may cause the state to appear to clients to have been entered logically before it actually did in the case that there are buffered notifications that have not yet been processed by watchman at the time that the state was entered.
<?php namespace BackSyst\SystemBundle\Services; class Bcrypt { private $rounds; public function __construct($rounds = 12) { if(CRYPT_BLOWFISH != 1) { throw new Exception("bcrypt not supported in this installation. See http://php.net/crypt"); } $this->rounds = $rounds; } public function hash($input) { $hash = crypt($input, $this->getSalt()); if(strlen($hash) > 13) return $hash; return false; } public function verify($input, $existingHash) { $hash = crypt($input, $existingHash); return $hash === $existingHash; } private function getSalt() { $salt = sprintf('$2a$%02d$', $this->rounds); $bytes = $this->getRandomBytes(16); $salt .= $this->encodeBytes($bytes); return $salt; } private $randomState; private function getRandomBytes($count) { $bytes = ''; if(function_exists('<API key>') && (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN')) { // OpenSSL slow on Win $bytes = <API key>($count); } if($bytes === '' && is_readable('/dev/urandom') && ($hRand = @fopen('/dev/urandom', 'rb')) !== FALSE) { $bytes = fread($hRand, $count); fclose($hRand); } if(strlen($bytes) < $count) { $bytes = ''; if($this->randomState === null) { $this->randomState = microtime(); if(function_exists('getmypid')) { $this->randomState .= getmypid(); } } for($i = 0; $i < $count; $i += 16) { $this->randomState = md5(microtime() . $this->randomState); if (PHP_VERSION >= '5') { $bytes .= md5($this->randomState, true); } else { $bytes .= pack('H*', md5($this->randomState)); } } $bytes = substr($bytes, 0, $count); } return $bytes; } private function encodeBytes($input) { // The following is code from the PHP Password Hashing Framework $itoa64 = './<API key>'; $output = ''; $i = 0; do { $c1 = ord($input[$i++]); $output .= $itoa64[$c1 >> 2]; $c1 = ($c1 & 0x03) << 4; if ($i >= 16) { $output .= $itoa64[$c1]; break; } $c2 = ord($input[$i++]); $c1 |= $c2 >> 4; $output .= $itoa64[$c1]; $c1 = ($c2 & 0x0f) << 2; $c2 = ord($input[$i++]); $c1 |= $c2 >> 6; $output .= $itoa64[$c1]; $output .= $itoa64[$c2 & 0x3f]; } while (1); return $output; } } ?>
<!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.7"/> <title>App Engine Python SDK: google.appengine.ext.db.polymodel._ClassKeyProperty 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="doxygen.css" rel="stylesheet" type="text/css" /> <link href="common.css" rel="stylesheet" type="text/css"/> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectlogo"><img alt="Logo" src="gae-python.logo.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">App Engine Python SDK &#160;<span id="projectnumber">v1.6.9 rev.445</span> </div> <div id="projectbrief">The Python runtime is available as an experimental Preview feature.</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.7 --> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><b>google</b></li><li class="navelem"><b>appengine</b></li><li class="navelem"><b>ext</b></li><li class="navelem"><b>db</b></li><li class="navelem"><b>polymodel</b></li><li class="navelem"><a class="el" href="<API key>.html">_ClassKeyProperty</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> &#124; <a href="<API key>members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">google.appengine.ext.db.polymodel._ClassKeyProperty Class Reference</div> </div> </div><!--header <div class="contents"> <div class="dynheader"> Inheritance diagram for google.appengine.ext.db.polymodel._ClassKeyProperty:</div> <div class="dyncontent"> <div class="center"> <img src="<API key>.png" usemap="#google.appengine.ext.db.polymodel.<API key>" alt=""/> <map id="google.appengine.ext.db.polymodel.<API key>" name="google.appengine.ext.db.polymodel.<API key>"> <area href="<API key>.html" alt="google.appengine.ext.db.ListProperty" shape="rect" coords="0,112,325,136"/> <area href="<API key>.html" alt="google.appengine.ext.db.Property" shape="rect" coords="0,56,325,80"/> </map> </div></div> <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"><a class="anchor" id="<API key>"></a> def&#160;</td><td class="memItemRight" valign="bottom"><b>__init__</b></td></tr> <tr class="separator:<API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a> def&#160;</td><td class="memItemRight" valign="bottom"><b>__set__</b></td></tr> <tr class="separator:<API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a> def&#160;</td><td class="memItemRight" valign="bottom"><b>__get__</b></td></tr> <tr class="separator:<API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="inherit_header <API key>"><td colspan="2" onclick="javascript:toggleInherit('<API key>')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="<API key>.html">google.appengine.ext.db.ListProperty</a></td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">__init__</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">validate</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">empty</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">default_value</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a> def&#160;</td><td class="memItemRight" valign="bottom"><b><API key></b></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="inherit_header <API key>"><td colspan="2" onclick="javascript:toggleInherit('<API key>')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="<API key>.html">google.appengine.ext.db.Property</a></td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">__init__</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">__property_config__</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">__get__</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">__set__</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">default_value</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">validate</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">empty</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a> def&#160;</td><td class="memItemRight" valign="bottom"><b><API key></b></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>"><API key></a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="<API key>.html#<API key>">datastore_type</a></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a> Additional Inherited Members</h2></td></tr> <tr class="inherit_header <API key>"><td colspan="2" onclick="javascript:toggleInherit('<API key>')"><img src="closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="<API key>.html">google.appengine.ext.db.ListProperty</a></td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a> &#160;</td><td class="memItemRight" valign="bottom"><b>item_type</b></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="inherit_header <API key>"><td colspan="2" onclick="javascript:toggleInherit('<API key>')"><img src="closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="<API key>.html">google.appengine.ext.db.Property</a></td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a> &#160;</td><td class="memItemRight" valign="bottom"><b>verbose_name</b></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a> &#160;</td><td class="memItemRight" valign="bottom"><b>name</b></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a> &#160;</td><td class="memItemRight" valign="bottom"><b>default</b></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a> &#160;</td><td class="memItemRight" valign="bottom"><b>required</b></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a> &#160;</td><td class="memItemRight" valign="bottom"><b>validator</b></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a> &#160;</td><td class="memItemRight" valign="bottom"><b>choices</b></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a> &#160;</td><td class="memItemRight" valign="bottom"><b>indexed</b></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a> &#160;</td><td class="memItemRight" valign="bottom"><b>creation_counter</b></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a> &#160;</td><td class="memItemRight" valign="bottom"><b>model_class</b></td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="inherit_header <API key>"><td colspan="2" onclick="javascript:toggleInherit('<API key>')"><img src="closed.png" alt="-"/>&#160;Static Public Attributes inherited from <a class="el" href="<API key>.html">google.appengine.ext.db.ListProperty</a></td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a> &#160;</td><td class="memItemRight" valign="bottom"><b>data_type</b> = list</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="inherit_header <API key>"><td colspan="2" onclick="javascript:toggleInherit('<API key>')"><img src="closed.png" alt="-"/>&#160;Static Public Attributes inherited from <a class="el" href="<API key>.html">google.appengine.ext.db.Property</a></td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a> int&#160;</td><td class="memItemRight" valign="bottom"><b>creation_counter</b> = 0</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:<API key> inherit <API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a> &#160;</td><td class="memItemRight" valign="bottom"><b>data_type</b> = str</td></tr> <tr class="separator:<API key> inherit <API key>"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><pre class="fragment">Property representing class-key property of a polymorphic class. The class key is a list of strings describing an polymorphic instances place within its class hierarchy. This property is automatically calculated. For example: class Foo(PolyModel): ... class Bar(Foo): ... class Baz(Bar): ... Foo.class_key() == ['Foo'] Bar.class_key() == ['Foo', 'Bar'] Baz.class_key() == ['Foo', 'Bar', 'Baz'] </pre> </div><hr/>The documentation for this class was generated from the following file:<ul> <li>code/<API key>/python/google/appengine/ext/db/polymodel.py</li> </ul> </div><!-- contents --> <address class="footer"> <small>Maintained by <a href="http: </address>
#!/usr/bin/env node import yargs from 'yargs'; import { concat, memoize } from 'ramda'; /** * Lazy loading and cache of an internal ES6 module * * @param {String} module - Module to evaluate * @return {*} */ const getModule = memoize(concat('./') & require); /** * Entry point of Rung CLI * * @param {Object} args */ function cli(args) { const { _: [command] } = args; return getModule(command).default(args) .catch(err => { getModule('input').emitError(err.message); process.exit(1); }); } cli(yargs .usage('Usage: $0 [build|run|publish|readme|db]') .command('build', 'Generate a .rung package') .command('publish [file]', 'Publishes the app to the Rung store') .command('run', 'Execute the current app') .command('boilerplate', 'Generates the boilerplate files for your app') .command('readme', 'Generates the README.md file to publish') .command('db [option]', '[read|clear] Read or clear db for app') .command('test', 'Executes the tests written for your app') .option('o', { alias: 'output', describe: 'Where to save the built package', type: 'string' }) .option('raw', { describe: 'Display returned data as it is', type: 'boolean' }) .option('live', { describe: 'Live mode', type: 'boolean' }) .option('file', { describe: 'File to publish to Rung Store', type: 'string' }) .strict() .demandCommand(1) .recommendCommands() .help() .version() .argv);
import { GridPanel } from "../gridPanel/gridPanel"; import { RowNode } from "../entities/rowNode"; import { BeanStub } from "../context/beanStub"; export declare class <API key> extends BeanStub { private beans; private $scope; private columnController; private gridPanel; private eDummyContainer; registerGridComp(gridPanel: GridPanel): void; <API key>(rowNode: RowNode): number; }
/** * Follow up for H-Index: What if the citations array is * sorted in ascending order? Could you optimize your algorithm? */ public class Solution { public int hIndex(int[] citations) { int length = citations.length; for (int i = 0 ; i < length ; i++) { if (citations[i] >= (length - i) && (i == 0 || citations[i-1] <= (length - i))) { return (length - i); } } return 0; } }
export { EventEmitterEx } from './EventEmitterEx'; export { EventProxify } from './EventProxify';
angular.module('angular-timeline', ['ngSanitize']); // Source: src/<API key>.js /*global angular*/ /** * @ngdoc directive * @name angular-timeline.directive:timeline-badge * @restrict AE * * @description * Shown in the centre pane (or left on narrow devices) to indicate the activity. */ angular.module('angular-timeline').directive('timelineBadge', function() { return { require: '^timelineEvent', restrict: 'AE', transclude: true, template: '<div ng-transclude class="timeline-badge"></div>' }; }); // Source: src/timeline-directive.js /*global angular*/ /** * @ngdoc directive * @name angular-timeline.directive:timeline * @restrict AE * * @description * Primary container for displaying a vertical set of timeline events. */ angular.module('angular-timeline').directive('timeline', function() { return { restrict: 'AE', transclude: true, template: '<ul class="timeline" ng-transclude></ul>', controller: function() {} }; }); // Source: src/<API key>.js /*global angular*/ /** * @ngdoc directive * @name angular-timeline.directive:timeline-event * @restrict AE * * @description * Represents an event occuring at a point in time, displayed on the left or the right * of the timeline line. * * @param {string=} side Define if the side of each elements (ie side="'right'") * @param {string=} distribute Define the alternate distribution (ie distribution="'left'") * * You typically embed a `timeline-badge` and `timeline-panel` element within a `timeline-event`. */ angular.module('angular-timeline').directive('timelineEvent', function() { return { require: '^timeline', restrict: 'AE', transclude: true, template: '<li ng-transclude></li>', link: function(scope, element, attrs) { var distribution = {}; var applyInvertion = function(elt, options) { var liElt = elt.find('li'); if ('undefined' !== typeof options.side) { // Invertion has to be forced switch (options.side) { case 'right': liElt.addClass('timeline-inverted'); break; default: liElt.removeClass('timeline-inverted'); } } else { // Check if toggle side switch (options.distribute) { case 'right': liElt.removeClass('timeline-inverted'); liElt.addClass(options.index % 2 ? 'timeline-inverted' : ''); break; case 'left': liElt.removeClass('timeline-inverted'); liElt.addClass(options.index % 2 ? '' : 'timeline-inverted'); break; default: } } }; scope.$watch(attrs.side, function(newVal) { distribution.side = newVal; applyInvertion(element, distribution); }); scope.$watch('$index', function(ind) { distribution.index = ind; applyInvertion(element, distribution); }); scope.$watch(attrs.distribute, function(newVal) { distribution.distribute = newVal; applyInvertion(element, distribution); }); } }; }); // Source: src/<API key>.js /*global angular*/ /** * @ngdoc directive * @name angular-timeline.directive:timeline-footer * @restrict AE * * @description * Optional element to add a footer section to the `timeline-panel` for links or other actions. */ angular.module('angular-timeline').directive('timelineFooter', function() { return { require: '^timelinePanel', restrict: 'AE', transclude: true, template: '<div class="timeline-footer" ng-transclude></div>' }; }); // Source: src/<API key>.js /*global angular*/ /** * @ngdoc directive * @name angular-timeline.directive:timeline-heading * @restrict AE * * @description * Optional element to show the heading for a `timeline-panel`. */ angular.module('angular-timeline').directive('timelineHeading', function() { return { require: '^timelinePanel', restrict: 'AE', transclude: true, template: '<div class="timeline-heading" ng-transclude></div>' }; }); // Source: src/<API key>.js /*global angular*/ /** * @ngdoc directive * @name angular-timeline.directive:timeline-panel * @restrict AE * * @description * An panel inside the `timeline-event` which shows detailed information about the event. */ angular.module('angular-timeline').directive('timelinePanel', function() { return { require: '^timeline', restrict: 'AE', transclude: true, template: '<div class="timeline-panel" ng-transclude></div>' }; });
#!/usr/bin/env bash -c make SRC=./lib/browser.js
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Vocalib { public partial class Select : Form { private List<Word> words; private bool init; #endregion #region Constructeur public Select(List<Word> Words, bool Init) { InitializeComponent(); words = Words; init = Init; List<string> languages = new List<string>(); languages = <API key>(Words); <API key>(<API key>(Words).ToArray(), comboBoxLanguage); } #endregion <summary> Extrait les langues d'une liste de mot. </summary> <param name="words">Spécifie une liste de mots dans laquelle chercher les langues.</param> <returns>Retourne les langues sous la forme d'une liste de chaînes de caractères.</returns> private List<string> <API key>(List<Word> words) { List<string> languages = new List<string>(); foreach (Word word in words) { bool dontExist = true; foreach (string language in languages) { if (word.Language.Equals(language)) dontExist = false; } if (dontExist) languages.Add(word.Language); } return languages; } <summary> Extrait les thèmes, appartenant à une langue spécifiée, d'une liste de mots. </summary> <param name="words">Spécifie une liste de mots dans laquelle chercher les thèmes.</param> <param name="inLanguage">Spécifie la langue à laquelle appartiennent les thèmes.</param> <returns>Retourne les thèmes sous la forme d'une liste de chaînes de caractères.</returns> private List<string> <API key>(List<Word> words, string inLanguage) { List<string> categories = new List<string>(); foreach (Word word in words) { bool dontExist = true; foreach (string category in categories) { if (word.Category == category) dontExist = false; } if (dontExist && word.Language == inLanguage) categories.Add(word.Category); } return categories as List<string>; } private void <API key>(string[] languages, ComboBox comboBox) { comboBox.Items.Clear(); comboBox.Items.AddRange(languages); comboBox.Enabled = true; } private void <API key>(string[] categories, ComboBox comboBox) { comboBox.Items.Clear(); comboBox.Items.AddRange(categories); comboBox.Enabled = true; } #endregion private void <API key>(object sender, EventArgs e) { <API key>(<API key>(words, comboBoxLanguage.Text).ToArray(), comboBoxCategory); } private void <API key>(object sender, EventArgs e) { buttonValidate.Enabled = true; } private void <API key>(object sender, EventArgs e) { if (init) { foreach (Word word in words) { if (word.Language == comboBoxLanguage.Text && word.Category == comboBoxCategory.Text) word.Count = 5; } this.Close(); } else { Word.Select(comboBoxLanguage.Text, comboBoxCategory.Text); this.Close(); } } #endregion } }
.oo-ui-window { background-color: transparent; background-image: none; } .oo-ui-window-frame { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .<API key> { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; } .<API key>:focus { outline: 0; } .oo-ui-window-head, .oo-ui-window-foot { -<API key>: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .oo-ui-window-body { margin: 0; padding: 0; background: none; } .<API key> { position: absolute; top: 0; /* @noflip */ left: 0; } .<API key> > .oo-ui-window-head, .<API key> > .oo-ui-window-body, .<API key> > .oo-ui-window-foot { position: absolute; left: 0; right: 0; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .<API key> > .oo-ui-window-head { overflow: hidden; z-index: 3; top: 0; } .<API key> > .oo-ui-window-body { overflow: auto; -<API key>: touch; z-index: 2; top: 0; bottom: 0; } .<API key> > .oo-ui-window-foot { z-index: 3; bottom: 0; } .<API key> > .oo-ui-window-body { box-shadow: 0 0 0.66em rgba(0, 0, 0, 0.25); } .<API key> .oo-ui-actionWidget { position: relative; text-align: center; } .<API key> .oo-ui-actionWidget .<API key> { display: block; } .<API key> .oo-ui-actionWidget .<API key> { position: relative; top: auto; bottom: auto; } .<API key> { display: table; table-layout: fixed; width: 100%; } .<API key> .oo-ui-actionWidget { display: table-cell; width: 1%; } .<API key> { display: block; } .<API key> .oo-ui-actionWidget { display: block; overflow: hidden; text-overflow: ellipsis; } .<API key> .oo-ui-window-body { box-shadow: none; } .<API key>, .<API key> { display: block; line-height: 1.5em; text-align: center; } .<API key> { font-size: 1.5em; color: #000; } .<API key> { font-size: 1.1em; color: #666; text-align: left; } .<API key> .oo-ui-actionWidget { min-height: 2.5em; margin-right: 0; } .<API key> .oo-ui-actionWidget:last-child { margin-right: 0; } .<API key> .oo-ui-actionWidget.oo-ui-labelElement .<API key> { line-height: 2.5em; text-align: center; } .<API key> .oo-ui-actionWidget.<API key> .<API key> { font-weight: bold; } .<API key> .oo-ui-actionWidget { margin: 0; } .<API key> .oo-ui-actionWidget:first-child > .<API key> { border-left-width: 2px; border-left-color: transparent; border-radius: 0 0 0 3px; } .<API key> .oo-ui-actionWidget:first-child > .<API key>:hover { border-left-color: #aaa; } .<API key> .oo-ui-actionWidget:first-child > .<API key>:focus { border-left-color: #ace; } .<API key> .oo-ui-actionWidget:last-child > .<API key> { border-right-width: 2px; border-right-color: transparent; border-radius: 0 0 3px 0; } .<API key> .oo-ui-actionWidget:last-child > .<API key>:hover { border-right-color: #aaa; } .<API key> .oo-ui-actionWidget:last-child > .<API key>:focus { border-right-color: #ace; } .<API key> .oo-ui-actionWidget:only-child > .<API key> { border-radius: 0 0 3px 3px; } @supports ( width: calc( 100% + 2px ) ) { .<API key> { width: calc(100% + 2px); margin-left: -1px; margin-right: -1px; } } .<API key> .oo-ui-actionWidget { margin: -1px 0 0; border-bottom: 1px solid #e5e5e5; } .<API key> .oo-ui-actionWidget:first-child { margin-top: 0; } .<API key> .oo-ui-actionWidget:last-child { border-bottom-width: 0; } .<API key> .oo-ui-actionWidget > .<API key> { border-radius: 0; } .<API key> .oo-ui-actionWidget:last-child > .<API key> { border-radius: 0 0 3px 3px; } .<API key> { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .<API key> { display: inline; padding: 0; } .<API key> .oo-ui-actionWidget, .<API key> .oo-ui-actionWidget, .<API key> .oo-ui-actionWidget { white-space: nowrap; } .<API key>, .<API key> { position: absolute; top: 0; bottom: 0; } .<API key> { left: 0; } .<API key> { right: 0; } .<API key> { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 4; overflow-x: hidden; overflow-y: auto; -<API key>: touch; } .<API key> .oo-ui-window-head { height: 3.4em; } .<API key> .oo-ui-window-body { top: 3.4em; box-shadow: 0 0 0.33em rgba(0, 0, 0, 0.33); } .<API key> { position: relative; height: 3.4em; } .<API key> { padding: 0.75em 0; height: 1.875em; cursor: default; text-align: center; } .<API key> { font-weight: bold; line-height: 1.875em; } .<API key> .oo-ui-actionWidget .<API key>, .<API key> .oo-ui-actionWidget .<API key>, .<API key> .oo-ui-actionWidget .<API key> { min-width: 1.875em; min-height: 1.875em; } .<API key> .oo-ui-actionWidget .<API key>, .<API key> .oo-ui-actionWidget .<API key>, .<API key> .oo-ui-actionWidget .<API key> { line-height: 1.875em; } .<API key> .oo-ui-actionWidget.<API key>, .<API key> .oo-ui-actionWidget.<API key>, .<API key> .oo-ui-actionWidget.<API key> { margin: 0.75em; } .<API key> .oo-ui-actionWidget.<API key> .<API key>, .<API key> .oo-ui-actionWidget.<API key> .<API key>, .<API key> .oo-ui-actionWidget.<API key> .<API key> { padding: 0 1em; vertical-align: middle; margin: -1px; } .<API key> .oo-ui-actionWidget.<API key>, .<API key> .oo-ui-actionWidget.<API key>, .<API key> .oo-ui-actionWidget.<API key> { margin: 0; } .<API key> .oo-ui-actionWidget.<API key> .<API key>, .<API key> .oo-ui-actionWidget.<API key> .<API key>, .<API key> .oo-ui-actionWidget.<API key> .<API key> { padding: 0.75em 1em; vertical-align: middle; } .<API key> .oo-ui-actionWidget:hover, .<API key> .oo-ui-actionWidget:hover { background-color: rgba(0, 0, 0, 0.05); } .<API key> .oo-ui-actionWidget:active, .<API key> .oo-ui-actionWidget:active { background-color: rgba(0, 0, 0, 0.1); } .<API key> .oo-ui-actionWidget.<API key>:hover, .<API key> .oo-ui-actionWidget.<API key>:hover { background-color: rgba(8, 126, 204, 0.05); } .<API key> .oo-ui-actionWidget.<API key>:active, .<API key> .oo-ui-actionWidget.<API key>:active { background-color: rgba(8, 126, 204, 0.1); } .<API key> .oo-ui-actionWidget.<API key> .<API key>, .<API key> .oo-ui-actionWidget.<API key> .<API key> { font-weight: bold; } .<API key> .oo-ui-actionWidget.<API key>:hover, .<API key> .oo-ui-actionWidget.<API key>:hover { background-color: rgba(212, 83, 83, 0.05); } .<API key> .oo-ui-actionWidget.<API key>:active, .<API key> .oo-ui-actionWidget.<API key>:active { background-color: rgba(212, 83, 83, 0.1); } .<API key> .oo-ui-actionWidget.oo-ui-buttonElement { margin-right: 0; } .oo-ui-processDialog > .oo-ui-window-frame { min-height: 5em; } .<API key> { background-color: rgba(255, 255, 255, 0.9); padding: 3em 3em 0 3em; } .<API key> { font-size: 1.5em; color: #000; margin-bottom: 2em; text-align: center; } .<API key> > .oo-ui-messageWidget { margin: 1em 0 0; } .<API key> { text-align: center; } .<API key> > .oo-ui-buttonWidget { margin: 2em 1em; } .oo-ui-processDialog.oo-ui-isMobile .<API key> { text-align: left; } .<API key> > .oo-ui-dialog { position: fixed; width: 0; height: 0; overflow: hidden; z-index: 4; } .<API key> > .oo-ui-dialog.oo-ui-window-active { width: auto; height: auto; top: 0; right: 0; bottom: 0; left: 0; padding: 1em; } .<API key> > .oo-ui-dialog.oo-ui-window-active > .oo-ui-window-frame { position: absolute; right: 0; left: 0; margin: auto; max-width: 100%; max-height: 100%; } .<API key> > .oo-ui-dialog > .oo-ui-window-frame { width: 100%; height: 100%; top: 0; bottom: 0; } .<API key> { overflow: hidden; position: relative; } .<API key> { height: 100%; overflow: hidden; } .<API key> > .oo-ui-dialog { background-color: rgba(255, 255, 255, 0.5); opacity: 0; -webkit-transition: opacity 250ms; -moz-transition: opacity 250ms; transition: opacity 250ms; } .<API key> > .oo-ui-dialog > .oo-ui-window-frame { background-color: #fff; opacity: 0; -webkit-transform: scale(0.5); -moz-transform: scale(0.5); -ms-transform: scale(0.5); transform: scale(0.5); -webkit-transition: all 250ms; -moz-transition: all 250ms; transition: all 250ms; } .<API key> > .oo-ui-dialog.oo-ui-window-setup { opacity: 1; } .<API key> > .oo-ui-dialog.oo-ui-window-setup > .oo-ui-window-frame { opacity: 1; -webkit-transform: scale(1); -moz-transform: scale(1); -ms-transform: scale(1); transform: scale(1); } .<API key>.<API key> > .oo-ui-dialog > .oo-ui-window-frame { top: 1em; bottom: 1em; max-height: 100%; max-height: calc( 100% - 2em ); border: 1px solid #ccc; border-radius: 3px; box-shadow: 0 0.2em 1em rgba(0, 0, 0, 0.3); }
package org.accela.midi.groove; import javax.sound.midi.*; public class Channel { private MidiChannel channel; private Synthesizer synthesizer; protected Channel(MidiChannel channel, Synthesizer synthesizer) { if (null == channel) { throw new <API key>("channel should not be null"); } if (null == synthesizer) { throw new <API key>("synthesizer should not be null"); } this.channel = channel; this.synthesizer = synthesizer; } public Instrument getInstrument() { int bank = (channel.getController(0) * 128) + channel.getController(32); int program = channel.getProgram(); javax.sound.midi.Instrument[] instruments = synthesizer .<API key>(); for (javax.sound.midi.Instrument i : instruments) { if (i.getPatch().getBank() == bank && i.getPatch().getProgram() == program) { return new Instrument(i); } } assert(false); return null; } public void setInstrument(Instrument instrument) { synthesizer.loadInstruments( instrument.getInstrument().getSoundbank(), new Patch[] { instrument.getInstrument().getPatch() }); channel.programChange( instrument.getInstrument().getPatch().getBank(), instrument.getInstrument().getPatch().getProgram()); } public boolean getMono() { return channel.getMono(); } public boolean getMute() { return channel.getMute(); } public boolean getSolo() { return channel.getSolo(); } public void setMono(boolean on) { channel.setMono(on); } public void setMute(boolean mute) { channel.setMute(mute); } public void setSolo(boolean soloState) { channel.setSolo(soloState); } public int getChannelPressure() { return channel.getChannelPressure(); } public void setChannelPressure(int pressure) { channel.setChannelPressure(pressure); } public int getPitchBend() { return channel.getPitchBend(); } public void setPitchBend(int bend) { channel.setPitchBend(bend); } public boolean getOmni() { return channel.getOmni(); } public void setOmni(boolean on) { channel.setOmni(on); } @Override public boolean equals(Object obj) { if (!(obj instanceof Channel)) { return false; } Channel other = (Channel) obj; return channel.equals(other.channel); } @Override public int hashCode() { return channel.hashCode(); } }
<?php if ( array_key_exists("cron", $_POST) ) { $post = $_POST; $cron = $post['cron']; } elseif ( array_key_exists("cron", $_GET) ) { $get = $_GET; $cron = $get['cron']; } else { return; } require 'classAutoLoad.php'; if( $cron == 'auto' ) { if( !file_exists( __DIR__ . '/config/.dbConfig' ) ) { require 'config/setup.php'; $database = new DbController(); createTables( $database ); } else { $crawl = new Crawl(); $crawl->run(); } } elseif( $cron == 'addSite' ) { $conn = new DbController(); $prefix = constant( 'PREFIX' ); $siteName = $post['siteName']; $siteUrl = urldecode($post['siteUrl']); $siteGa = $post['siteGa']; $siteIndexable = $post['siteIndexable']; if( $siteIndexable == 'on' ) { $indexStatus = 1; } else { $indexStatus = 0; } $conn->runQuery( "INSERT INTO `{$prefix}siteslist` ( `title`, `url`, `ga_code`, `indexNeeded` ) VALUES ('$siteName', '$siteUrl', '$siteGa', '$indexStatus');" ); $id = $conn->lastId(); $crawl = new Crawl(); $crawl->run( $siteUrl, $id ); }
"use strict"; var _utils = <API key>(require("./utils")); var _es = require("./es2015"); function <API key>(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.<API key> ? Object.<API key>(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } (0, _utils.default)("AwaitExpression", { builder: ["argument"], visitor: ["argument"], aliases: ["Expression", "Terminatorless"], fields: { argument: { validate: (0, _utils.assertNodeType)("Expression") } } }); (0, _utils.default)("BindExpression", { visitor: ["object", "callee"], aliases: ["Expression"], fields: {} }); (0, _utils.default)("ClassProperty", { visitor: ["key", "value", "typeAnnotation", "decorators"], builder: ["key", "value", "typeAnnotation", "decorators", "computed"], aliases: ["Property"], fields: Object.assign({}, _es.<API key>, { value: { validate: (0, _utils.assertNodeType)("Expression"), optional: true }, typeAnnotation: { validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), optional: true }, decorators: { validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))), optional: true }, readonly: { validate: (0, _utils.assertValueType)("boolean"), optional: true } }) }); (0, _utils.default)("Import", { aliases: ["Expression"] }); (0, _utils.default)("Decorator", { visitor: ["expression"], fields: { expression: { validate: (0, _utils.assertNodeType)("Expression") } } }); (0, _utils.default)("DoExpression", { visitor: ["body"], aliases: ["Expression"], fields: { body: { validate: (0, _utils.assertNodeType)("BlockStatement") } } }); (0, _utils.default)("<API key>", { visitor: ["exported"], aliases: ["ModuleSpecifier"], fields: { exported: { validate: (0, _utils.assertNodeType)("Identifier") } } }); (0, _utils.default)("<API key>", { visitor: ["exported"], aliases: ["ModuleSpecifier"], fields: { exported: { validate: (0, _utils.assertNodeType)("Identifier") } } });
module Projects class ParticipantsService < BaseService attr_reader :noteable def execute(noteable) @noteable = noteable project_members = sorted(project.team.members) participants = noteable_owner + <API key> + all_members + groups + project_members participants.uniq end def noteable_owner return [] unless noteable && noteable.author.present? [{ name: noteable.author.name, username: noteable.author.username, avatar_url: noteable.author.avatar_url }] end def <API key> return [] unless noteable users = noteable.participants(current_user) sorted(users) end def sorted(users) users.uniq.to_a.compact.sort_by(&:username).map do |user| { username: user.username, name: user.name, avatar_url: user.avatar_url } end end def groups current_user.authorized_groups.sort_by(&:path).map do |group| count = group.users.count { username: group.full_path, name: group.full_name, count: count, avatar_url: group.avatar_url } end end def all_members count = project.team.members.flatten.count [{ username: "", name: "", count: count }] end end end
<?php namespace Martin\Forms\Updates; use Schema; use October\Rain\Database\Updates\Migration; class AddGroupField extends Migration { public function up() { Schema::table('<API key>', function ($table) { $table->string('group')->default('(Empty)')->after('id'); }); } public function down() { if(Schema::hasColumn('<API key>', 'group')) { Schema::table('<API key>', function ($table) { $table->dropColumn('group'); }); } } } ?>
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2016.06.01 at 06:36:07 PM UYT package dgi.classes.recepcion; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TransformsType", propOrder = { "transforms" }) @XmlRootElement(name = "Transforms") public class Transforms { @XmlElement(name = "Transform", required = true) protected List<Transform> transforms; /** * Gets the value of the transforms property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the transforms property. * * <p> * For example, to add a new item, do as follows: * <pre> * getTransforms().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Transform } * * */ public List<Transform> getTransforms() { if (transforms == null) { transforms = new ArrayList<Transform>(); } return this.transforms; } }
<div class="container" ng-controller="HeaderController"> <div class="navbar-header"> <button class="navbar-toggle" type="button" ng-click="<API key>()"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a ui-sref="home" class="navbar-brand"><img src="modules/core/client/img/brand/logo.png"></a> </div> <nav class="collapse navbar-collapse" collapse="!isCollapsed" role="navigation"> <ul class="nav navbar-nav" ng-if="menu.shouldRender(authentication.user);"> <li ng-repeat="item in menu.items | orderBy: 'position'" ng-if="item.shouldRender(authentication.user);" ng-switch="item.type" ng-class="{ active: $state.includes(item.state), dropdown: item.type === 'dropdown' }" class="{{item.class}}" dropdown="item.type === 'dropdown'"> <a ng-switch-when="dropdown" class="dropdown-toggle" dropdown-toggle role="button">{{::item.title}}&nbsp;<span class="caret"></span></a> <ul ng-switch-when="dropdown" class="dropdown-menu"> <li ng-repeat="subitem in item.items | orderBy: 'position'" ng-if="subitem.shouldRender(authentication.user);" ui-sref-active="active"> <a ui-sref="{{subitem.state}}" ng-bind="subitem.title"></a> </li> </ul> <a ng-switch-default ui-sref="{{item.state}}" ng-bind="item.title"></a> </li> </ul> <ul class="nav navbar-nav navbar-right" ng-hide="authentication.user"> <li ui-sref-active="active"> <a ui-sref="authentication.signup">Sign Up</a> </li> <li class="divider-vertical"></li> <li ui-sref-active="active"> <a ui-sref="authentication.signin">Sign In</a> </li> </ul> <ul class="nav navbar-nav navbar-right" ng-show="authentication.user"> <li class="dropdown" dropdown> <a class="dropdown-toggle <API key>" dropdown-toggle role="button"> <img ng-src="{{authentication.user.profileImageURL}}" alt="{{authentication.user.displayName}}" class="<API key>" /> <span ng-bind="authentication.user.displayName"></span> <b class="caret"></b> </a> <ul class="dropdown-menu" role="menu"> <li ui-sref-active="active"> <a ui-sref="settings.profile">Edit Profile</a> </li> <li ui-sref-active="active"> <a ui-sref="settings.picture">Change Profile Picture</a> </li> <li ui-sref-active="active" ng-show="authentication.user.provider === 'local'"> <a ui-sref="settings.password">Change Password</a> </li> <li ui-sref-active="active"> <a ui-sref="settings.accounts">Manage Social Accounts</a> </li> <li class="divider"></li> <li> <a href="/api/auth/signout" target="_self">Signout</a> </li> </ul> </li> </ul> </nav> </div>
// PassLayer.h // Slot Machines #import <Foundation/Foundation.h> #import "cocos2d.h" typedef enum { gameSingleMode = 0 , gamePartyMode = 1, }gameMode; @interface PassLayer : CCLayer <<API key>> { gameMode nowMode; int needLevel, needCoin; } -(void)LoadImage; -(void)SetInfo:(NSString *)name Mode:(gameMode)mode Level:(int)level Coin:(int)coin; -(void)RemoveLayer; @end
#ifndef EGEN_TEST_SUT_H #define EGEN_TEST_SUT_H /* * Test suite Two implementation. * * This suite runs one instance of reference Driver code with one instance * of the current Driver code. * * It is intended to test runtime transaction parameter generation. */ #include "<API key>.h" namespace TPCETest { enum TXN_TYPES { INVALID_TRANSACTION = -1, BROKER_VOLUME = 0, CUSTOMER_POSITION, MARKET_FEED, MARKET_WATCH, SECURITY_DETAIL, TRADE_LOOKUP, TRADE_ORDER, TRADE_RESULT, TRADE_STATUS, TRADE_UPDATE, DATA_MAINTENANCE, TRADE_CLEANUP, NUM_OF_TXN_TYPES }; // String representation of TXN_TYPES. // Defined in EGenTestSUT.cpp. extern const char* g_szTxnTypes[]; typedef struct TTxnInputTPCE { TXN_TYPES eTxnType; union { TPCE::<API key> BVInput; TPCE::<API key> CPInput; TPCE::TMarketFeedTxnInput MFInput; TPCE::<API key> MWInput; TPCE::<API key> SDInput; TPCE::<API key> TLInput; TPCE::TTradeOrderTxnInput TOInput; TPCE::<API key> TRInput; TPCE::<API key> TSInput; TPCE::<API key> TUInput; TPCE::<API key> DMInput; TPCE::<API key> TCInput; }; } *PTxnInputTPCE; typedef struct TTxnInputRefTPCE { TXN_TYPES eTxnType; union { RefTPCE::<API key> BVInput; RefTPCE::<API key> CPInput; RefTPCE::TMarketFeedTxnInput MFInput; RefTPCE::<API key> MWInput; RefTPCE::<API key> SDInput; RefTPCE::<API key> TLInput; RefTPCE::TTradeOrderTxnInput TOInput; RefTPCE::<API key> TRInput; RefTPCE::<API key> TSInput; RefTPCE::<API key> TUInput; RefTPCE::<API key> DMInput; RefTPCE::<API key> TCInput; }; } *PTxnInputRefTPCE; class CEGenTestSUT: public RefTPCE::CCESUTInterface, public RefTPCE::CDMSUTInterface, public TPCE::CCESUTInterface, public TPCE::CDMSUTInterface { TTxnInputRefTPCE m_RefInput; TTxnInputTPCE m_CurrentInput; public: CEGenTestSUT(); // RefTPCE::CCESUTInterface virtual bool BrokerVolume( RefTPCE::<API key> pTxnInput ); // return whether it was successful virtual bool CustomerPosition( RefTPCE::<API key> pTxnInput ); // return whether it was successful virtual bool MarketWatch( RefTPCE::<API key> pTxnInput ); // return whether it was successful virtual bool SecurityDetail( RefTPCE::<API key> pTxnInput ); // return whether it was successful virtual bool TradeLookup( RefTPCE::<API key> pTxnInput ); // return whether it was successful virtual bool TradeOrder( RefTPCE::PTradeOrderTxnInput pTxnInput, INT32 iTradeType, bool <API key> ); // return whether it was successful virtual bool TradeStatus( RefTPCE::<API key> pTxnInput ); // return whether it was successful virtual bool TradeUpdate( RefTPCE::<API key> pTxnInput ); // return whether it was successful // RefTPCE::CDMSUTInterface virtual bool DataMaintenance( RefTPCE::<API key> pTxnInput ); // return whether it was successful virtual bool TradeCleanup( RefTPCE::<API key> pTxnInput ); // return whether it was successful // TPCE::CCESUTInterface virtual bool BrokerVolume( TPCE::<API key> pTxnInput ); // return whether it was successful virtual bool CustomerPosition( TPCE::<API key> pTxnInput ); // return whether it was successful virtual bool MarketWatch( TPCE::<API key> pTxnInput ); // return whether it was successful virtual bool SecurityDetail( TPCE::<API key> pTxnInput ); // return whether it was successful virtual bool TradeLookup( TPCE::<API key> pTxnInput ); // return whether it was successful virtual bool TradeOrder( TPCE::PTradeOrderTxnInput pTxnInput, INT32 iTradeType, bool <API key> ); // return whether it was successful virtual bool TradeStatus( TPCE::<API key> pTxnInput ); // return whether it was successful virtual bool TradeUpdate( TPCE::<API key> pTxnInput ); // return whether it was successful // TPCE::CDMSUTInterface virtual bool DataMaintenance( TPCE::<API key> pTxnInput ); // return whether it was successful virtual bool TradeCleanup( TPCE::<API key> pTxnInput ); // return whether it was successful /* * Routine to compare two versions of a transaction inputs. * Both transaction type and transaction input data are compared. * * PARAMETERS: * none. * * RETURNS: * true - if either the transaction type is different or input data is different. * false - if both the transaction type and input data are the same. */ bool InputDiffers(); /* * Helper routine to get reference transaction type. * * PARAMETERS: * none. * * RETURNS: * transaction type last generated by the reference code */ TXN_TYPES GetRefTxnType() { return m_RefInput.eTxnType; } /* * Helper routine to get current code transaction type. * * PARAMETERS: * none. * * RETURNS: * transaction type last generated by the current code */ TXN_TYPES GetCurTxnType() { return m_CurrentInput.eTxnType; } }; } // namespace TPCETest #endif // EGEN_TEST_SUT_H
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # sphinx-quickstart on Sun Oct 1 17:47:07 2017. # This file is execfile()d with the current directory set to its # containing dir. # Note that not all possible configuration values are present in this # autogenerated file. # All configuration values have a default; values that are commented out # serve to show the default. # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. import sys sys.path.insert(0, '../../') sys.path.insert(0, '../') sys.path.insert(0, './') sys.path.insert(0, '../../scrapenhl2/') sys.path.insert(0, '../../scrapenhl2/scrape/') sys.path.insert(0, '../../scrapenhl2/manipulate/') sys.path.insert(0, '../../scrapenhl2/plot/') # If your documentation needs a minimal Sphinx version, state it here. # needs_sphinx = '1.0' # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = ['sphinx.ext.autodoc', 'sphinx.ext.todo'] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] # The suffix(es) of source filenames. # You can specify multiple suffix as a list of string: # source_suffix = ['.rst', '.md'] source_suffix = '.rst' # The master toctree document. master_doc = 'index' # General information about the project. project = 'scrapenhl2' copyright = '2017, Muneeb Alam' author = 'Muneeb Alam' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # The short X.Y version. version = '0.4.1' # The full version, including alpha/beta/rc tags. release = version # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. # This is also used if you do content translation via gettext catalogs. # Usually you set "language" from the command line for these cases. language = None # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This patterns also effect to html_static_path and html_extra_path exclude_patterns = [] # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' # If true, `todo` and `todoList` produce output, else they produce nothing. todo_include_todos = True # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. html_theme = 'nature' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. # html_theme_options = {} # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] # Output file base name for HTML help builder. htmlhelp_basename = 'scrapenhl2doc' latex_elements = { # The paper size ('letterpaper' or 'a4paper'). # 'papersize': 'letterpaper', # The font size ('10pt', '11pt' or '12pt'). # 'pointsize': '10pt', # Additional stuff for the LaTeX preamble. # 'preamble': '', # Latex figure (float) alignment # 'figure_align': 'htbp', } # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ (master_doc, 'scrapenhl2.tex', 'scrapenhl2 Documentation', 'Muneeb Alam', 'manual'), ] # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ (master_doc, 'scrapenhl2', 'scrapenhl2 Documentation', [author], 1) ] # Grouping the document tree into Texinfo files. List of tuples # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ (master_doc, 'scrapenhl2', 'scrapenhl2 Documentation', author, 'scrapenhl2', 'One line description of project.', 'Miscellaneous'), ]
<?php namespace Application\Controller; use Silex\Application; /** * @author Borut Balazek <bobalazek124@gmail.com> */ class ApiController { /** * @param Application $app * * @return \Symfony\Component\HttpFoundation\JsonResponse */ public function indexAction(Application $app) { return $app->json([ 'status' => 'success', 'message' => 'Hello API!', ]); } }