text
stringlengths 31
1.04M
|
---|
use strict;
use warnings;
package MetaCPAN::Client::ResultSet;
# ABSTRACT: A Result Set
$MetaCPAN::Client::ResultSet::VERSION = '1.008001';
use Moo;
use Carp;
has type => (
is => 'ro',
isa => sub {
croak 'Invalid type' unless
grep { $_ eq $_[0] } qw<author distribution favorite
file module rating release>;
},
required => 1,
);
# in case we're returning from a scrolled search
has scroller => (
is => 'ro',
isa => sub {
use Safe::Isa;
$_[0]->$_isa('Search::Elasticsearch::Scroll')
or croak 'scroller must be an Search::Elasticsearch::Scroll object';
},
predicate => 'has_scroller',
);
# in case we're returning from a fetch
has items => (
is => 'ro',
isa => sub {
ref $_[0] eq 'ARRAY'
or croak 'items must be an array ref';
},
);
has total => (
is => 'ro',
default => sub {
my $self = shift;
return $self->has_scroller ? $self->scroller->total
: scalar @{ $self->items };
},
);
sub BUILDARGS {
my ( $class, %args ) = @_;
exists $args{scroller} or exists $args{items}
or croak 'ResultSet must get either scroller or items';
exists $args{scroller} and exists $args{items}
and croak 'ResultSet must get either scroller or items, not both';
return \%args;
}
sub next {
my $self = shift;
my $result = $self->has_scroller ? $self->scroller->next
: shift @{ $self->items };
defined $result or return;
my $class = 'MetaCPAN::Client::' . ucfirst $self->type;
return $class->new_from_request( $result->{'_source'} || $result->{'fields'} );
}
sub facets {
my $self = shift;
return $self->has_scroller ? $self->scroller->facets : {};
}
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
MetaCPAN::Client::ResultSet - A Result Set
=head1 VERSION
version 1.008001
=head1 DESCRIPTION
Object representing a result from Elastic Search. This is used for the complex
(as in L<non-simple/MetaCPAN::Client/"SEARCH SPEC">) queries to MetaCPAN. It
provides easy access to the scroller and facets.
=head1 ATTRIBUTES
=head2 scroller
An L<Search::Elasticsearch::Scroll> object.
=head2 items
An arrayref of items to manually scroll over, instead of a scroller object.
=head2 type
The entity of the result set. Available types:
=over 4
=item * author
=item * distribution
=item * module
=item * release
=item * favorite
=item * file
=back
=head2 facets
The facets available in the Elastic Search response.
=head1 METHODS
=head2 next
Iterator call to fetch the next result set object.
=head2 total
Iterator call to fetch the total amount of objects available in result set.
=head2 has_scroller
Predicate for ES scroller presence.
=head2 BUILDARGS
Double checks construction of objects. You should never run this yourself.
=head1 AUTHORS
=over 4
=item *
Sawyer X <xsawyerx@cpan.org>
=item *
Mickey Nasriachi <mickey@cpan.org>
=back
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2015 by Sawyer X.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
|
<?php
class Vsourz_Imagegallery_Model_Categoryval extends Mage_Core_Model_Abstract{
public function getCategoryVal(){
$catVal = Mage::getModel('imagegallery/imagecategory')->getCollection();
$data = $catVal->getData();
$dropVal = array();
$dropVal[''] = "Please Select";
foreach($data as $value){
$dropVal[$value['imagecategory_id']] = $value['category_title'];
};
return $dropVal;
}
} |
"""
wikipedia_data()
Returns a tuple `(articles, dictionary, titles)` with data for the
Wikipedia clustering example in section 4.4.2.
`articles` is an array of length 500 with the word histograms of the 500
documents. Each histogram is an array of length 4423.
`dictionary` is an array of length 4423 with the words in the dictionary.
`titles` is an array of length 500 with the article titles.
"""
function wikipedia_data()
pth = splitdir(pathof(VMLS))[1]
tdmatrix = readdlm(joinpath(pth, "wikipedia_td.txt"), comments = true)
articles = [ tdmatrix[:,j] for j = 1:500 ]
dictionary = [
"lead";
"receive";
"play";
"american";
"release";
"united";
"return";
"set";
"family";
"appear";
"move";
"live";
"base";
"announce";
"state";
"series";
"list";
"film";
"result";
"article";
"report";
"role";
"city";
"feature";
"title";
"former";
"york";
"record";
"win";
"million";
"follow";
"week";
"school";
"accord";
"award";
"create";
"history";
"event";
"support";
"john";
"star";
"national";
"tell";
"television";
"book";
"date";
"issue";
"force";
"claim";
"left";
"top";
"final";
"serve";
"public";
"act";
"allow";
"plan";
"eventually";
"special";
"note";
"break";
"cause";
"original";
"attempt";
"leave";
"attend";
"international";
"direct";
"story";
"friend";
"produce";
"major";
"official";
"mark";
"character";
"night";
"country";
"company";
"offer";
"love";
"believe";
"decide";
"house";
"previous";
"team";
"performance";
"close";
"reach";
"america";
"perform";
"medium";
"david";
"grow";
"complete";
"michael";
"director";
"reveal";
"total";
"interview";
"james";
"single";
"version";
"president";
"music";
"critic";
"addition";
"career";
"raise";
"university";
"project";
"power";
"action";
"video";
"office";
"service";
"attack";
"appearance";
"confirm";
"game";
"war";
"deal";
"publish";
"develop";
"relationship";
"marry";
"sell";
"prior";
"popular";
"successful";
"season";
"center";
"post";
"spend";
"originally";
"refer";
"fail";
"position";
"white";
"earlier";
"replace";
"fight";
"magazine";
"hour";
"subsequently";
"future";
"agree";
"local";
"talk";
"enter";
"movie";
"earn";
"draw";
"success";
"stage";
"production";
"period";
"press";
"cover";
"kill";
"english";
"drop";
"art";
"term";
"introduce";
"idea";
"money";
"pass";
"episode";
"speak";
"half";
"hit";
"writing";
"experience";
"gain";
"able";
"initially";
"black";
"business";
"control";
"share";
"host";
"score";
"seek";
"campaign";
"figure";
"stand";
"street";
"song";
"fan";
"real";
"robert";
"soon";
"contain";
"view";
"fire";
"establish";
"explain";
"actor";
"accept";
"finish";
"government";
"british";
"short";
"hope";
"social";
"association";
"review";
"promote";
"personal";
"suffer";
"influence";
"process";
"indicate";
"sister";
"los";
"producer";
"schedule";
"party";
"question";
"visit";
"suggest";
"refuse";
"praise";
"debut";
"express";
"king";
"feel";
"parent";
"george";
"leader";
"effort";
"reason";
"decision";
"angeles";
"build";
"watch";
"news";
"cast";
"carry";
"increase";
"rise";
"artist";
"london";
"study";
"rest";
"design";
"learn";
"executive";
"body";
"require";
"launch";
"effect";
"free";
"wear";
"expect";
"couple";
"rule";
"club";
"california";
"level";
"voice";
"comment";
"law";
"program";
"right";
"human";
"credit";
"challenge";
"represent";
"scene";
"occur";
"community";
"critical";
"cut";
"style";
"discover";
"worldwide";
"college";
"summer";
"paul";
"additional";
"light";
"system";
"defeat";
"especially";
"cite";
"site";
"fellow";
"development";
"meeting";
"drive";
"prove";
"organization";
"source";
"bill";
"officially";
"peter";
"court";
"miss";
"minute";
"pay";
"available";
"boy";
"charge";
"hall";
"achieve";
"red";
"approach";
"washington";
"front";
"average";
"portray";
"heart";
"declare";
"remove";
"modern";
"canada";
"response";
"annual";
"practice";
"century";
"shortly";
"positive";
"fifth";
"multiple";
"battle";
"example";
"participate";
"writer";
"numerous";
"subject";
"particularly";
"entertainment";
"information";
"shot";
"radio";
"determine";
"entire";
"focus";
"audience";
"account";
"decade";
"honor";
"job";
"political";
"network";
"conclude";
"picture";
"statement";
"sometimes";
"respond";
"concern";
"individual";
"private";
"happen";
"intend";
"contract";
"shoot";
"girl";
"ultimately";
"mention";
"kingdom";
"separate";
"choice";
"awards";
"commercial";
"rank";
"pick";
"consist";
"loss";
"avoid";
"central";
"board";
"course";
"walk";
"match";
"detail";
"attention";
"image";
"variety";
"hear";
"struggle";
"highly";
"widely";
"health";
"mixed";
"park";
"class";
"lack";
"demand";
"current";
"true";
"inspire";
"track";
"overall";
"beat";
"largest";
"australia";
"train";
"actually";
"manage";
"letter";
"material";
"guest";
"lot";
"san";
"richard";
"arrest";
"discuss";
"academy";
"criticize";
"associate";
"middle";
"field";
"player";
"student";
"premier";
"respectively";
"range";
"potential";
"department";
"compare";
"immediately";
"website";
"manager";
"reviews";
"broadcast";
"officer";
"grant";
"founder";
"traditional";
"location";
"ground";
"significant";
"nation";
"church";
"capture";
"civil";
"england";
"professional";
"maintain";
"strike";
"hospital";
"prevent";
"status";
"paid";
"request";
"decline";
"arrive";
"marriage";
"thomas";
"studio";
"legal";
"division";
"make";
"rating";
"engage";
"rate";
"ceremony";
"theme";
"reference";
"east";
"independent";
"culture";
"europe";
"martin";
"land";
"moment";
"victory";
"element";
"regular";
"nearly";
"select";
"dead";
"online";
"sense";
"argue";
"sale";
"travel";
"test";
"display";
"sound";
"ability";
"military";
"admit";
"reporter";
"initial";
"chief";
"authority";
"injury";
"search";
"town";
"activity";
"get";
"throw";
"german";
"common";
"deliver";
"cross";
"union";
"foot";
"william";
"conference";
"vote";
"matter";
"nomination";
"road";
"unable";
"care";
"graduate";
"key";
"daily";
"address";
"morning";
"recent";
"recognize";
"buy";
"mind";
"actress";
"survive";
"push";
"active";
"deny";
"golden";
"female";
"tour";
"tom";
"green";
"charles";
"criticism";
"majority";
"amount";
"conduct";
"show";
"partner";
"birth";
"french";
"crime";
"album";
"quickly";
"subsequent";
"society";
"expand";
"fear";
"science";
"contribute";
"twice";
"double";
"doctor";
"box";
"joe";
"secret";
"forward";
"defend";
"god";
"face";
"latter";
"station";
"hollywood";
"advance";
"biggest";
"research";
"screen";
"difficult";
"industry";
"evidence";
"limit";
"uk";
"movement";
"police";
"author";
"christian";
"piece";
"condition";
"living";
"value";
"arm";
"standard";
"celebrate";
"featured";
"hard";
"district";
"adopt";
"drama";
"festival";
"poor";
"financial";
"model";
"usually";
"chris";
"eye";
"market";
"building";
"extend";
"opportunity";
"step";
"regard";
"stone";
"rock";
"locate";
"justice";
"incident";
"link";
"bad";
"medical";
"western";
"protect";
"reduce";
"staff";
"judge";
"jones";
"catch";
"sixth";
"situation";
"pull";
"musical";
"famous";
"primary";
"winner";
"owner";
"invite";
"car";
"champion";
"nominate";
"water";
"documentary";
"guy";
"defense";
"degree";
"husband";
"wish";
"dark";
"conflict";
"simply";
"particular";
"youth";
"chicago";
"tie";
"germany";
"cost";
"league";
"competition";
"fund";
"security";
"sunday";
"language";
"message";
"foundation";
"low";
"dream";
"speech";
"accuse";
"briefly";
"brown";
"estimate";
"nature";
"commission";
"focuse";
"identify";
"european";
"jack";
"goal";
"chance";
"france";
"newspaper";
"band";
"exist";
"secure";
"army";
"agent";
"publicly";
"completely";
"wall";
"institute";
"journalist";
"wide";
"reportedly";
"physical";
"jim";
"spot";
"impact";
"primarily";
"edition";
"global";
"aid";
"sit";
"sport";
"motion";
"agency";
"contest";
"scott";
"entitle";
"weekend";
"compose";
"contact";
"file";
"powerful";
"copy";
"smith";
"purchase";
"super";
"singer";
"last";
"brief";
"affair";
"trade";
"obtain";
"destroy";
"accompany";
"exchange";
"respect";
"kevin";
"currently";
"occasion";
"prepare";
"hire";
"county";
"lower";
"federal";
"minister";
"store";
"channel";
"earth";
"daniel";
"food";
"commit";
"remember";
"improve";
"brian";
"approximately";
"religious";
"serious";
"texas";
"region";
"steve";
"own";
"mike";
"training";
"count";
"senior";
"master";
"encourage";
"compete";
"assist";
"gold";
"weekly";
"section";
"race";
"drug";
"travele";
"island";
"related";
"recently";
"committee";
"acting";
"relation";
"collection";
"threat";
"comedy";
"heavily";
"criminal";
"assign";
"don";
"fame";
"product";
"reject";
"education";
"acquire";
"blue";
"divorce";
"content";
"propose";
"publication";
"aim";
"duty";
"released";
"anniversary";
"script";
"consecutive";
"crowd";
"witness";
"bob";
"attract";
"wait";
"novel";
"theatre";
"escape";
"pursue";
"directly";
"frequently";
"failure";
"fill";
"operation";
"blood";
"enjoy";
"1980s";
"frank";
"bank";
"northern";
"settle";
"india";
"target";
"notable";
"concept";
"basis";
"royal";
"policy";
"peace";
"agreement";
"lee";
"tradition";
"soldier";
"mary";
"understand";
"citizen";
"freedom";
"origin";
"percent";
"ahead";
"affect";
"acclaim";
"fox";
"thousand";
"treatment";
"type";
"desire";
"suit";
"evening";
"hero";
"observe";
"victim";
"southern";
"memorial";
"realize";
"gun";
"natural";
"foreign";
"holiday";
"happy";
"appeal";
"council";
"johnson";
"purpose";
"murder";
"successfully";
"minor";
"male";
"relate";
"empire";
"camp";
"tony";
"hundred";
"representative";
"promise";
"space";
"thank";
"ireland";
"weapon";
"surround";
"investigation";
"retain";
"price";
"difference";
"classic";
"joseph";
"favorite";
"background";
"dedicate";
"creative";
"reflect";
"save";
"assistant";
"speaking";
"collect";
"ben";
"intention";
"limited";
"prime";
"championship";
"oppose";
"encounter";
"rich";
"election";
"direction";
"hill";
"appoint";
"childhood";
"andrew";
"roman";
"lie";
"apply";
"controversy";
"depict";
"heavy";
"access";
"rival";
"congress";
"celebration";
"prominent";
"mission";
"stephen";
"catholic";
"unit";
"prison";
"dispute";
"captain";
"presence";
"nearby";
"emerge";
"document";
"block";
"larger";
"republic";
"gross";
"answer";
"charity";
"probably";
"contribution";
"winning";
"abandon";
"bbc";
"acknowledge";
"split";
"saturday";
"cultural";
"inform";
"spread";
"quote";
"1990s";
"digital";
"remark";
"benefit";
"distribute";
"opposition";
"mexico";
"fly";
"alive";
"guard";
"paris";
"birthday";
"debate";
"era";
"threaten";
"guide";
"operate";
"football";
"candidate";
"trial";
"billion";
"contemporary";
"transfer";
"negative";
"elect";
"polouse";
"eastern";
"retire";
"lady";
"update";
"grand";
"else";
"people";
"layer";
"japan";
"popularity";
"jackson";
"opponent";
"investigate";
"fashion";
"convince";
"involvement";
"violence";
"henry";
"reaction";
"achievement";
"economic";
"additionally";
"spirit";
"damage";
"responsible";
"strength";
"territory";
"twitter";
"canadian";
"internet";
"pressure";
"matt";
"disease";
"explore";
"budget";
"principal";
"lord";
"register";
"spring";
"page";
"energy";
"indian";
"opinion";
"comic";
"dance";
"connect";
"eliminate";
"china";
"wrong";
"vision";
"technology";
"worker";
"nickname";
"village";
"unknown";
"fair";
"governor";
"protest";
"specific";
"consensus";
"succeed";
"controversial";
"seventh";
"christmas";
"christopher";
"steal";
"outstanding";
"treat";
"guardian";
"premiere";
"universal";
"spanish";
"cancer";
"deep";
"poll";
"method";
"memory";
"globe";
"fine";
"italy";
"adaptation";
"discussion";
"ring";
"specifically";
"unique";
"possibility";
"ball";
"columbia";
"rescue";
"personality";
"card";
"adult";
"coast";
"belief";
"capital";
"combine";
"paper";
"perfect";
"length";
"historical";
"teacher";
"square";
"root";
"creation";
"recall";
"resident";
"wilson";
"favor";
"touch";
"burn";
"teach";
"chairman";
"usa";
"straight";
"hotel";
"draft";
"involved";
"reality";
"aspect";
"brand";
"table";
"connection";
"identity";
"extra";
"queen";
"faith";
"hide";
"approval";
"shooting";
"pair";
"organize";
"veteran";
"assume";
"lawyer";
"supporter";
"hot";
"generate";
"property";
"sam";
"afterwards";
"editor";
"mass";
"ensure";
"management";
"possibly";
"pilot";
"contrast";
"complex";
"announcement";
"1970s";
"proceed";
"bit";
"joint";
"ban";
"tribute";
"howard";
"fit";
"leadership";
"theater";
"photo";
"ryan";
"africa";
"reform";
"museum";
"listen";
"visual";
"see";
"franchise";
"factor";
"behalf";
"population";
"putt";
"quality";
"employee";
"studios";
"injure";
"assistance";
"employ";
"plot";
"jump";
"journey";
"records";
"blow";
"presidential";
"metacritic";
"advantage";
"worst";
"peak";
"eric";
"shift";
"soundtrack";
"custom";
"viewer";
"undergo";
"portion";
"generation";
"feeling";
"secretary";
"recruit";
"actual";
"belong";
"label";
"corporation";
"advocate";
"conclusion";
"topic";
"photograph";
"color";
"dub";
"recording";
"diego";
"difficulty";
"mix";
"bear";
"mainly";
"moved";
"protection";
"seat";
"professor";
"conversation";
"spain";
"anthony";
"surprise";
"trip";
"drink";
"print";
"trust";
"tim";
"floor";
"williams";
"dismiss";
"edward";
"florida";
"notably";
"scale";
"reply";
"ticket";
"centre";
"adapt";
"safety";
"camera";
"meanwhile";
"elizabeth";
"crisis";
"confront";
"beautiful";
"sex";
"animal";
"footage";
"allege";
"exception";
"reputation";
"fighting";
"aware";
"native";
"enemy";
"simultaneously";
"notice";
"alternative";
"ride";
"intelligence";
"firm";
"withdraw";
"medal";
"strongly";
"cameo";
"musician";
"structure";
"relative";
"italian";
"kick";
"leg";
"trouble";
"extensive";
"formally";
"combination";
"wake";
"sexual";
"weight";
"solo";
"divide";
"ninth";
"concert";
"supply";
"fast";
"universe";
"demonstrate";
"facility";
"truth";
"coach";
"simon";
"submit";
"monday";
"domestic";
"measure";
"administration";
"women";
"category";
"progress";
"huge";
"taylor";
"dvd";
"chart";
"shape";
"talent";
"sequel";
"insist";
"miller";
"pop";
"entirely";
"size";
"gather";
"garner";
"adam";
"format";
"expressed";
"attribute";
"retirement";
"journal";
"jimmy";
"junior";
"highlight";
"vocal";
"switch";
"celebrity";
"phone";
"risk";
"ray";
"retrieve";
"baby";
"attorney";
"ancient";
"fiction";
"nevertheless";
"skill";
"prize";
"grade";
"session";
"jewish";
"standing";
"media";
"coverage";
"welcome";
"clothing";
"dollar";
"responsibility";
"emotional";
"mount";
"democratic";
"river";
"chase";
"religion";
"sequence";
"selection";
"door";
"1960s";
"patrick";
"legend";
"collaboration";
"silver";
"doubt";
"davis";
"commitment";
"construction";
"genre";
"rotten";
"prince";
"cancel";
"gift";
"cbs";
"typically";
"pose";
"prompt";
"supreme";
"kid";
"upcoming";
"dress";
"check";
"vice";
"funeral";
"approve";
"mistake";
"resign";
"upset";
"sentence";
"donate";
"assert";
"valley";
"bell";
"crew";
"politician";
"suspend";
"knowledge";
"newly";
"flag";
"alan";
"commonly";
"ship";
"entry";
"van";
"growth";
"delay";
"louis";
"ready";
"garden";
"inspiration";
"circle";
"francisco";
"australian";
"wild";
"branch";
"roll";
"rush";
"tone";
"zealand";
"dean";
"equal";
"reprise";
"route";
"irish";
"eat";
"assault";
"suicide";
"normal";
"jason";
"widespread";
"violent";
"increasingly";
"expert";
"task";
"occasionally";
"wind";
"tournament";
"winter";
"surgery";
"sing";
"theory";
"senator";
"vary";
"distance";
"text";
"extremely";
"environment";
"rose";
"nations";
"boston";
"massive";
"dominate";
"ongoing";
"dan";
"institution";
"symbol";
"crash";
"chair";
"headline";
"russia";
"regularly";
"sun";
"carolina";
"closely";
"soul";
"lifetime";
"fun";
"surpass";
"combat";
"redirect";
"bond";
"personally";
"recover";
"georgia";
"rolling";
"roger";
"fighter";
"vehicle";
"britain";
"resemble";
"repeat";
"arena";
"surface";
"platform";
"jon";
"effective";
"expose";
"code";
"bay";
"mayor";
"manner";
"designate";
"designer";
"larry";
"warn";
"dog";
"depend";
"simple";
"steven";
"married";
"proposal";
"urge";
"literature";
"legacy";
"computer";
"diagnose";
"handle";
"abc";
"recognition";
"dangerous";
"honour";
"sarah";
"wave";
"hair";
"alex";
"sue";
"adventure";
"rally";
"meaning";
"rare";
"revolution";
"bury";
"promotion";
"persuade";
"chinese";
"presentation";
"sort";
"qualify";
"introduction";
"hell";
"item";
"corner";
"abuse";
"flee";
"profit";
"mile";
"african";
"mountain";
"cold";
"chapter";
"quarter";
"sponsor";
"attendance";
"saint";
"eleven";
"renew";
"electronic";
"bruce";
"twelve";
"absence";
"convert";
"profile";
"santa";
"reception";
"zone";
"friday";
"airport";
"luke";
"arrival";
"allen";
"slow";
"re-cover";
"apparently";
"partnership";
"japanese";
"possess";
"arrange";
"behavior";
"politic";
"costume";
"cell";
"knock";
"plant";
"nick";
"historian";
"machine";
"collapse";
"conservative";
"headquarters";
"core";
"incorporate";
"speculation";
"internal";
"magic";
"alexander";
"advice";
"possession";
"isbn";
"influential";
"permanent";
"pitch";
"asia";
"analysis";
"neighborhood";
"suppose";
"stream";
"nbc";
"houston";
"false";
"lawsuit";
"lewis";
"sleep";
"tend";
"resume";
"allegedly";
"biography";
"composer";
"hurt";
"formal";
"obama";
"portrayal";
"significantly";
"technical";
"twenty";
"path";
"capacity";
"apart";
"easily";
"fictional";
"precede";
"harry";
"senate";
"residence";
"virginia";
"descent";
"lyric";
"americans";
"longtime";
"scientist";
"considerable";
"suspect";
"eighth";
"flight";
"command";
"alliance";
"negotiation";
"forbes";
"income";
"stadium";
"games";
"marketing";
"squad";
"border";
"colleague";
"commemorate";
"honorary";
"translate";
"like";
"importance";
"cash";
"federation";
"leading";
"survivor";
"republican";
"volume";
"twin";
"replacement";
"jersey";
"finance";
"girlfriend";
"francis";
"severe";
"invasion";
"signature";
"preparation";
"max";
"latin";
"strip";
"ultimate";
"gary";
"advise";
"rename";
"evil";
"object";
"bush";
"easy";
"spending";
"observer";
"exactly";
"las";
"children";
"resolve";
"tax";
"dave";
"intent";
"opposed";
"seriously";
"initiate";
"phil";
"rob";
"andy";
"mainstream";
"tear";
"overcome";
"originate";
"anger";
"speed";
"experiment";
"instance";
"net";
"recommend";
"alternate";
"effectively";
"matthew";
"restaurant";
"initiative";
"reverse";
"option";
"convention";
"prefer";
"ally";
"carter";
"bid";
"repeatedly";
"span";
"greg";
"pictures";
"cousin";
"basic";
"justin";
"passage";
"relief";
"regional";
"window";
"lawrence";
"trailer";
"elder";
"ford";
"calendar";
"del";
"greatly";
"performer";
"pro";
"argument";
"commander";
"advertising";
"distribution";
"volunteer";
"hearing";
"revenue";
"thereafter";
"friendship";
"creator";
"sky";
"vegas";
"clean";
"photography";
"beginning";
"departure";
"ignore";
"trap";
"advertisement";
"unveil";
"jay";
"joke";
"analyst";
"implement";
"jean";
"row";
"finale";
"apartment";
"filmmaker";
"transport";
"function";
"israel";
"deputy";
"jordan";
"wound";
"armed";
"strategy";
"arthur";
"fee";
"cable";
"elsewhere";
"eve";
"tenth";
"accident";
"blame";
"define";
"panel";
"perspective";
"teen";
"bowl";
"illegal";
"samuel";
"bonus";
"youtube";
"predict";
"favorable";
"shock";
"anderson";
"anne";
"dozen";
"crown";
"safe";
"horse";
"library";
"awareness";
"sean";
"planet";
"estate";
"bridge";
"execute";
"guilty";
"superior";
"successor";
"immediate";
"sea";
"scholar";
"pretty";
"barack";
"ensue";
"killing";
"signing";
"communication";
"unsuccessful";
"beauty";
"allegation";
"ceo";
"derive";
"pace";
"shop";
"relatively";
"pattern";
"casting";
"fought";
"complaint";
"narrative";
"slightly";
"philadelphia";
"earliest";
"giant";
"fix";
"web";
"impress";
"palace";
"ambassador";
"wonder";
"dramatic";
"expensive";
"traditionally";
"independence";
"participant";
"autobiography";
"apparent";
"predecessor";
"timeline";
"historic";
"rely";
"alter";
"villain";
"ranking";
"telegraph";
"extreme";
"liberal";
"jeff";
"lake";
"romantic";
"segment";
"urban";
"glass";
"impose";
"beach";
"netherlands";
"sports";
"donald";
"stick";
"chain";
"fifteen";
"economy";
"wealthy";
"maria";
"enable";
"cup";
"prisoner";
"wedding";
"commence";
"combined";
"harris";
"negotiate";
"silent";
"russian";
"fuel";
"sole";
"formerly";
"jail";
"commentator";
"voting";
"philosophy";
"tool";
"arise";
"permission";
"reunite";
"storyline";
"graham";
"aside";
"establishment";
"toronto";
"comparison";
"michigan";
"restore";
"moral";
"recur";
"deem";
"regain";
"screenplay";
"1950s";
"leak";
"rick";
"emergency";
"promotional";
"horror";
"clark";
"ronald";
"troop";
"frequent";
"ocean";
"moon";
"found";
"reside";
"household";
"petition";
"jerry";
"indeed";
"technique";
"austin";
"resolution";
"brothers";
"warning";
"resource";
"fresh";
"danger";
"hate";
"oil";
"complain";
"jonathan";
"consistent";
"wayne";
"exclusive";
"closer";
"illinois";
"civilian";
"participation";
"sustain";
"application";
"manhattan";
"collaborate";
"setting";
"storm";
"gang";
"folk";
"pennsylvania";
"survey";
"commentary";
"humanity";
"internationally";
"selling";
"quit";
"secondary";
"roughly";
"endorse";
"convict";
"engineer";
"speculate";
"plead";
"holy";
"expectation";
"iron";
"deeply";
"korea";
"dialogue";
"brazil";
"arizona";
"metal";
"aaron";
"destruction";
"culminate";
"discovery";
"trend";
"edit";
"consult";
"reign";
"heritage";
"secretly";
"revenge";
"existence";
"disney";
"ice";
"funding";
"settlement";
"penalty";
"theatrical";
"personnel";
"billy";
"philip";
"similarly";
"scientific";
"temple";
"regret";
"massachusetts";
"correct";
"permit";
"balance";
"scandal";
"warner";
"corporate";
"emotion";
"tape";
"stuff";
"render";
"fortune";
"phrase";
"farm";
"widow";
"immigrant";
"speaker";
"capable";
"rumor";
"statue";
"tower";
"wing";
"kelly";
"confuse";
"angel";
"substantial";
"temporary";
"activist";
"venture";
"pain";
"construct";
"emphasize";
"boss";
"instrument";
"diamond";
"prayer";
"induct";
"parliament";
"tension";
"elaborate";
"pregnant";
"angry";
"recipient";
"sibling";
"bound";
"consequence";
"clothe";
"escap";
"normally";
"ross";
"organisation";
"stress";
"shut";
"legislation";
"lowest";
"upper";
"google";
"postpone";
"venue";
"characterize";
"investment";
"depart";
"atlantic";
"lock";
"frame";
"nuclear";
"assembly";
"walter";
"coincide";
"extended";
"companion";
"epic";
"kennedy";
"exhibit";
"ron";
"alleged";
"contender";
"grace";
"impossible";
"user";
"arts";
"knight";
"ted";
"fbi";
"extension";
"remainder";
"labor";
"apologize";
"clinton";
"pledge";
"imply";
"punch";
"iraq";
"muslim";
"graphic";
"forever";
"foster";
"wars";
"height";
"transform";
"contrary";
"grammy";
"exercise";
"cool";
"midnight";
"nelson";
"atmosphere";
"increased";
"ill";
"sacrifice";
"improvement";
"devote";
"publisher";
"advanced";
"miami";
"telephone";
"regulation";
"academic";
"billboard";
"illness";
"books";
"willing";
"audio";
"nonetheless";
"josh";
"regardless";
"chronicle";
"tuesday";
"round";
"preserve";
"perceive";
"steel";
"atlanta";
"audition";
"entrance";
"businessman";
"string";
"paint";
"pacific";
"bigger";
"tree";
"physically";
"scheme";
"barbara";
"suggestion";
"forest";
"teenager";
"ali";
"trilogy";
"margaret";
"ann";
"publishing";
"lay";
"singing";
"ign";
"vow";
"ohio";
"hang";
"invitation";
"conviction";
"disappear";
"minimum";
"payment";
"proposed";
"hunt";
"guitar";
"polish";
"electric";
"russell";
"engagement";
"disaster";
"installment";
"stance";
"fate";
"partially";
"license";
"alcohol";
"morgan";
"ghost";
"oscar";
"minority";
"navy";
"assassination";
"neck";
"think";
"playing";
"nominee";
"tale";
"exit";
"arrangement";
"aftermath";
"cycle";
"swing";
"resistance";
"clash";
"pound";
"jane";
"proclaim";
"triple";
"mobile";
"interpretation";
"stock";
"quick";
"wood";
"intense";
"shadow";
"traffic";
"debt";
"climate";
"brain";
"spokesman";
"dinner";
"icon";
"madison";
"comprise";
"embrace";
"execution";
"written";
"expansion";
"referee";
"barry";
"chamber";
"opera";
"spiritual";
"appointment";
"annually";
"colorado";
"imprison";
"moore";
"animate";
"tall";
"outlet";
"publicity";
"condemn";
"scottish";
"knee";
"valuable";
"familiar";
"kiss";
"facebook";
"edge";
"mail";
"trace";
"industrial";
"percentage";
"charlie";
"driver";
"hip";
"respective";
"enforcement";
"comics";
"finished";
"overseas";
"scotland";
"ken";
"trigger";
"sweden";
"avenue";
"bomb";
"victor";
"rural";
"rebel";
"completion";
"investigator";
"monster";
"alfred";
"circumstance";
"bullet";
"filming";
"cooper";
"invest";
"uniform";
"exclusively";
"thereby";
"package";
"johnny";
"hometown";
"strange";
"shoulder";
"shake";
"revive";
"trail";
"toy";
"founding";
"reward";
"programme";
"plane";
"attitude";
"robin";
"appropriate";
"odd";
"phase";
"worry";
"todd";
"cemetery";
"impression";
"offensive";
"seattle";
"potentially";
"mental";
"lover";
"dallas";
"guarantee";
"princess";
"cinema";
"emmy";
"recovery";
"reserve";
"blind";
"dennis";
"classical";
"amateur";
"vietnam";
"detailed";
"solid";
"critically";
"funny";
"spy";
"ancestry";
"rape";
"killer";
"province";
"chuck";
"heat";
"thriller";
"nationwide";
"fake";
"mask";
"consistently";
"poverty";
"remaining";
"defeated";
"martial";
"poorly";
"procedure";
"suburb";
"recount";
"artistic";
"stronger";
"terrorist";
"compromise";
"mtv";
"stake";
"hint";
"screening";
"tough";
"endorsement";
"accomplish";
"wednesday";
"eventual";
"boost";
"nevada";
"terry";
"transition";
"pool";
"switzerland";
"interfere";
"desert";
"ceremoney";
"teenage";
"conceive";
"expense";
"islamic";
"sweet";
"showcase";
"error";
"lift";
"walker";
"jesus";
"superhero";
"satellite";
"raid";
"attach";
"bed";
"context";
"sir";
"tweet";
"flow";
"associated";
"shoe";
"carl";
"requirement";
"comeback";
"crucial";
"rarely";
"accusation";
"pioneer";
"lesson";
"decrease";
"violate";
"wrapped";
"jennifer";
"broadway";
"constitution";
"memoir";
"devil";
"athlete";
"travelled";
"observed";
"typical";
"truly";
"jesse";
"animated";
"gender";
"tactic";
"gate";
"factory";
"oxford";
"mouth";
"bottom";
"exact";
"composition";
"friendly";
"monitor";
"extraordinary";
"proud";
"susan";
"joy";
"data";
"thirteen";
"temporarily";
"priest";
"indiana";
"tomatoes";
"visitor";
"sanction";
"environmental";
"philippines";
"emphasis";
"benjamin";
"gradually";
"merit";
"warren";
"albert";
"closest";
"douglas";
"held";
"asian";
"calculate";
"principle";
"stretch";
"gay";
"patient";
"sony";
"faced";
"hole";
"truck";
"virtually";
"fulfill";
"rights";
"coordinate";
"parade";
"moderate";
"forget";
"pure";
"cnn";
"uncle";
"streak";
"inaugural";
"afraid";
"climb";
"equipment";
"ranked";
"smart";
"depth";
"yard";
"days";
"researcher";
"grandmother";
"evolution";
"cease";
"victoria";
"presidency";
"rematch";
"sight";
"greek";
"rain";
"accidentally";
"custody";
"campbell";
"strengthen";
"vincent";
"separation";
"orange";
"please";
"wolf";
"counter";
"equivalent";
"wonderful";
"underground";
"reader";
"surrender";
"ensemble";
"gas";
"mentor";
"cancele";
"thursday";
"affiliate";
"illustrated";
"torture";
"device";
"belgium";
"forces";
"trophy";
"disorder";
"unusual";
"pit";
"aggregator";
"fred";
"pakistan";
"suddenly";
"gordon";
"harvey";
"confidence";
"educational";
"passion";
"franklin";
"furthermore";
"verse";
"keith";
"testify";
"met";
"liberty";
"evolve";
"merely";
"robinson";
"clarify";
"donation";
"bout";
"tenure";
"feat";
"disagree";
"jeremy";
"yellow";
"educate";
"imagine";
"explosion";
"norway";
"interpret";
"dawn";
"marvel";
"compile";
"consequently";
"engineering";
"maternal";
"bernard";
"stroke";
"arnold";
"competitive";
"usual";
"slate";
"basketball";
"defensive";
"brilliant";
"bright";
"logo";
"stem";
"violation";
"jeffrey";
"gap";
"coin";
"proper";
"install";
"friends";
"mutual";
"hop";
"bobby";
"amazing";
"scholarship";
"quest";
"elite";
"voter";
"thompson";
"pan";
"manufacturer";
"distinct";
"danny";
"attain";
"portrait";
"songwriter";
"affairs";
"embark";
"enroll";
"anna";
"lane";
"tonight";
"heaven";
"lucas";
"guild";
"assemble";
"lost";
"landing";
"aggressive";
"membership";
"seal";
"lieutenant";
"herald";
"fantasy";
"roy";
"sum";
"castle";
"hunter";
"oversee";
"nice";
"egypt";
"exceed";
"annie";
"suffering";
"breakthrough";
"romance";
"datum";
"kansas";
"parker";
"skin";
"crazy";
"maybe";
"meal";
"broken";
"severely";
"whilst";
"essentially";
"2000s";
"unite";
"duo";
"criticise";
"opt";
"progressive";
"cry";
"stunt";
"raw";
"tune";
"cap";
"cameron";
"khan";
"vast";
"asset";
"discipline";
"delegate";
"ritual";
"accomplishment";
"spark";
"brooklyn";
"repair";
"continued";
"kim";
"drag";
"antonio";
"ministry";
"injured";
"interior";
"beating";
"prohibit";
"cinematic";
"wage";
"extent";
"spin";
"ontario";
"sang";
"maryland";
"ralph";
"grey";
"charlotte";
"berlin";
"unexpected";
"sample";
"rachel";
"examine";
"constant";
"minnesota";
"spokesperson";
"regime";
"duke";
"gulf";
"ian";
"racial";
"ordinary";
"exhibition";
"servant";
"neil";
"rent";
"reading";
"joan";
"weigh";
"bachelor";
"athletic";
"grandfather";
"dutch";
"bronze";
"planned";
"amendment";
"constitutional";
"modify";
"kate";
"miniseries";
"govern";
"seed";
"consumer";
"kenneth";
"map";
"dick";
"mate";
"forum";
"teammate";
"remind";
"offense";
"boat";
"neighbor";
"feud";
"rapidly";
"defender";
"nancy";
"revise";
"worse";
"photographer";
"montreal";
"craig";
"coalition";
"favour";
"sharp";
"demonstration";
"christ";
"tip";
"humor";
"radical";
"identical";
"belt";
"wright";
"maximum";
"corps";
"reviewer";
"kidnap";
"earl";
"afternoon";
"snow";
"port";
"deserve";
"slave";
"weather";
"restriction";
"sydney";
"reagan";
"olympics";
"productions";
"download";
"carlos";
"laura";
"transportation";
"nose";
"timing";
"confusion";
"ruling";
"constantly";
"invade";
"jury";
"understanding";
"taxe";
"collective";
"instrumental";
"gray";
"ward";
"piano";
"hbo";
"undertake";
"boxing";
"essential";
"interrupt";
"legendary";
"punishment";
"preview";
"outcome";
"broadcasting";
"significance";
"congressional";
"elimination";
"loan";
"sufficient";
"drum";
"revolutionary";
"finding";
"teaching";
"flower";
"lend";
"narrate";
"revival";
"tag";
"absolute";
"favourite";
"lifestyle";
"exposure";
"resignation";
"client";
"exploit";
"intervention";
"excess";
"psychological";
"lincoln";
"observation";
"adviser";
"tennessee";
"description";
"vanity";
"colin";
"farmer";
"sciences";
"quiet";
"disclose";
"inner";
"testimony";
"oklahoma";
"fairly";
"expression";
"politically";
"mexican";
"acceptance";
"summit";
"housing";
"hills";
"painting";
"developer";
"abroad";
"olympic";
"announced";
"distinctive";
"earning";
"variation";
"resist";
"removal";
"orthodox";
"planning";
"owe";
"fundamental";
"banner";
"christianity";
"programming";
"pete";
"warrior";
"parody";
"jessica";
"corrupt";
"legally";
"lecture";
"swear";
"holder";
"cage";
"poland";
"biological";
"pin";
"merchant";
"seemingly";
"react";
"know";
"striking";
"sixteen";
"plate";
"dirty";
"seize";
"vol";
"von";
"maker";
"grave";
"songs";
"advisor";
"amy";
"stars";
"soviet";
"obviously";
"gene";
"rivalry";
"distant";
"broad";
"absolutely";
"immigration";
"detroit";
"teaser";
"flat";
"priority";
"bloody";
"afford";
"prospect";
"espn";
"bros";
"unsuccessfully";
"nurse";
"justify";
"failed";
"occupy";
"puerto";
"merge";
"delivery";
"arab";
"intellectual";
"momentum";
"eddie";
"jamie";
"partly";
"signal";
"alert";
"blake";
"outline";
"dynamic";
"girls";
"norman";
"margin";
"disappointment";
"medicine";
"scout";
"baker";
"ancestor";
"innocent";
"louisiana";
"bombing";
"disagreement";
"rome";
"michelle";
"intervene";
"colonel";
"hostile";
"warm";
"bass";
"bible";
"democracy";
"weak";
"engine";
"fastest";
"specialist";
"ownership";
"stanley";
"explosive";
"chest";
"ideal";
"lit";
"dominant";
"disappoint";
"proof";
"phoenix";
"baseball";
"crystal";
"rapid";
"wales";
"alice";
"mirror";
"singapore";
"hugh";
"diverse";
"deadly";
"survival";
"boot";
"lengthy";
"utilize";
"experimental";
"empty";
"sketch";
"enhance";
"aids";
"testing";
"sudden";
"openly";
"easter";
"cure";
"explanation";
"excellent";
"parallel";
"portal";
"finger";
"turkey";
"demon";
"hence";
"unclear";
"incredible";
"similarity";
"taught";
"owen";
"depiction";
"forth";
"crush";
"salary";
"feed";
"proceedings";
"accurate";
"invent";
"reluctant";
"charitable";
"bus";
"random";
"substitute";
"arc";
"equality";
"strict";
"instruction";
"collaborator";
"premise";
"suspicion";
"dancing";
"welfare";
"muhammad";
"fifty";
"stamp";
"confess";
"bone";
"monica";
"compilation";
"smile";
"cook";
"necessarily";
"played";
"concentrate";
"courage";
"architecture";
"denmark";
"wider";
"rough";
"nicholas";
"bag";
"harper";
"extensively";
"lynch";
"soft";
"israeli";
"paternal";
"trio";
"denounce";
"supposedly";
"heroes";
"dancer";
"objective";
"admire";
"intelligent";
"jan";
"championships";
"appreciate";
"cooperation";
"relevant";
"conventional";
"silence";
"constitute";
"described";
"confrontation";
"declaration";
"unofficial";
"moreover";
"skilled";
"retailer";
"newcomer";
"cabinet";
"jazz";
"motivation";
"breach";
"wrestling";
"cuba";
"employment";
"kong";
"autumn";
"hook";
"customer";
"bishop";
"smoke";
"solely";
"satisfy";
"innovation";
"chemical";
"killed";
"characteristic";
"certify";
"remote";
"pride";
"rio";
"thirty";
"islam";
"argentina";
"inch";
"screenwriter";
"stable";
"obligation";
"favore";
"uncertain";
"iran";
"rope";
"kings";
"glenn";
"sector";
"morris";
"provoke";
"pray";
"feast";
"echo";
"walt";
"hindu";
"opine";
"stuart";
"occasional";
"weaken";
"enlist";
"terror";
"marked";
"formation";
"relocate";
"passenger";
"heavyweight";
"turner";
"talented";
"strategic";
"actively";
"import";
"phenomenon";
"historically";
"playoff";
"trading";
"strain";
"adams";
"recommendation";
"poetry";
"impressive";
"representation";
"poem";
"craft";
"tragedy";
"sweep";
"sentiment";
"solution";
"fatal";
"mourn";
"creature";
"refusal";
"flaw";
"bird";
"manchester";
"cd";
"recognise";
"pursuit";
"greet";
"notion";
"introduced";
"physician";
"manipulate";
"islands";
"gesture";
"conspiracy";
"alien";
"humanitarian";
"practical";
"mandate";
"laugh";
"publicize";
"millennium";
"amend";
"communicate";
"willingness";
"pen";
"tight";
"trick";
"carol";
"software";
"classmate";
"anticipate";
"grab";
"vince";
"orchestra";
"protagonist";
"wealth";
"moscow";
"afterward";
"champions";
"developed";
"cheer";
"dramatically";
"unity";
"fever";
"exciting";
"spare";
"forced";
"gerald";
"pierre";
"doug";
"statistic";
"apology";
"conjunction";
"remake";
"infant";
"organise";
"graduation";
"preliminary";
"clinic";
"peaceful";
"forbid";
"rice";
"unanimous";
"sunset";
"harrison";
"postal";
"separated";
"aunt";
"biographer";
"crack";
"bryan";
"vulnerable";
"appointed";
"gallery";
"loyalty";
"automatically";
"representatives";
"clinch";
"mystery";
"cloud";
"confine";
"fourteen";
"communist";
"alabama";
"tribune";
"boast";
"animation";
"feminist";
"discrimination";
"missouri";
"storytelling";
"tomatoe";
"eleventh";
"twist";
"distract";
"laboratory";
"dislike";
"pbs";
"editorial";
"mitchell";
"sympathetic";
"collins";
"agenda";
"cleveland";
"collector";
"tank";
"metropolitan";
"estimated";
"visible";
"beer";
"insurance";
"column";
"consultant";
"citizenship";
"golf";
"gonna";
"poster";
"cia";
"slip";
"economist";
"emotionally";
"mysterious";
"gathering";
"1930s";
"dry";
"makeup";
"shield";
"comedian";
"properly";
"bureau";
"emily";
"harm";
"luis";
"interaction";
"tiger";
"backward";
"disc";
"analyze";
"mock";
"eligible";
"brought";
"reconcile";
"muslims";
"aide";
"certificate";
"consideration";
"lucky";
"wire";
"provision";
"primetime";
"objection";
"complication";
"offering";
"marc";
"pat";
"aircraft";
"consume";
"compensation";
"expire";
"superman";
"depression";
"adjacent";
"symbolic";
"flash";
"ethnic";
"sick";
"throne";
"dna";
"abortion";
"finalize";
"rage";
"follower";
"rapper";
"shout";
"bore";
"josé";
"accolade";
"fraud";
"curtis";
"vancouver";
"julian";
"marie";
"faction";
"badly";
"specialize";
"sacred";
"perry";
"services";
"literary";
"hampshire";
"pearl";
"lisa";
"decorate";
"clip";
"trademark";
"scrutiny";
"mandatory";
"disguise";
"blockbuster";
"ballot";
"consent";
"purple";
"permanently";
"retired";
"cole";
"surname";
"abraham";
"deficit";
"sanders";
"required";
"deceased";
"totally";
"shelter";
"sitcom";
"comfortable";
"passing";
"worship";
"undefeated";
"scheduled";
"circuit";
"corruption";
"colony";
"memorable";
"genuine";
"calm";
"allegiance";
"differ";
"juan";
"idol";
"triumph";
"rocky";
"boxer";
"loyal";
"commissioner";
"elected";
"unconscious";
"counterpart";
"deploy";
"freeze";
"desperate";
"imperial";
"unnamed";
"boyfriend";
"protestant";
"connecticut";
"democrat";
"obvious";
"narrowly";
"virgin";
"hawaii";
"skull";
"resort";
"disappointing";
"busy";
"plea";
"trainer";
"catherine";
"holding";
"honest";
"accordance";
"assassin";
"clear";
"kenny";
"poet";
"insult";
"tokyo";
"hillary";
"voiced";
"observance";
"modele";
"nephew";
"janet";
"helped";
"judgment";
"seth";
"dedication";
"noise";
"detective";
"accumulate";
"albeit";
"woods";
"orleans";
"rico";
"hong";
"divine";
"occupation";
"considerably";
"awakens";
"insight";
"embassy";
"lifelong";
"timothy";
"capitol";
"naming";
"tomorrow";
"inspired";
"enforce";
"cent";
"fantastic";
"breast";
"baltimore";
"portugal";
"murphy";
"itune";
"commonwealth";
"derek";
"employer";
"taste";
"crowds";
"complicate";
"apple";
"weakness";
"contend";
"mccarthy";
"actors";
"anonymous";
"fort";
"surprising";
"pink";
"platinum";
"landmark";
"bench";
"auction";
"retreat";
"accommodate";
"explicitly";
"wisconsin";
"democrats";
"beast";
"myth";
"guitarist";
"substance";
"prosecutor";
"absent";
"diary";
"socialist";
"manufacture";
"slowly";
"corresponding";
"undisclosed";
"perception";
"ruin";
"ram";
"administrative";
"promoter";
"mid";
"saga";
"kentucky";
"phillips";
"blessing";
"unaware";
"archive";
"slogan";
"marine";
"consumption";
"darkness";
"alpha";
"roster";
"imprisonment";
"plain";
"jacket";
"species";
"karen";
"frustration";
"mad";
"noted";
"tech";
"brazilian";
"definition";
"nielsen";
"thanksgiving";
"edgar";
"indonesia";
"cruz";
"bless";
"interim";
"stan";
"artificial";
"infrastructure";
"defence";
"bail";
"hail";
"iowa";
"orlando";
"healthy";
"ambition";
"eagle";
"danish";
"endure";
"admission";
"promising";
"essay";
"recorded";
"hiatus";
"sword";
"bet";
"patricia";
"warrant";
"medieval";
"murray";
"decree";
"distinction";
"billionaire";
"robbery";
"chemistry";
"mob";
"rebound";
"indication";
"harvard";
"legends";
"riot";
"swedish";
"enact";
"cult";
"pregnancy";
"snap";
"jet";
"absorb";
"roberts";
"drawing";
"brad";
"cat";
"viral";
"loose";
"duncan";
"sin";
"congressman";
"hudson";
"means";
"editing";
"supernatural";
"competitor";
"incumbent";
"jake";
"explode";
"devastate";
"electoral";
"pope";
"compelling";
"restrict";
"malaysia";
"eden";
"homage";
"alicia";
"angle";
"televised";
"frustrated";
"melissa";
"formula";
"loosely";
"communications";
"likewise";
"waste";
"terrorism";
"definitely";
"angela";
"elementary";
"nationally";
"temperature";
"utah";
"landscape";
"downtown";
"shirt";
"authorize";
"cooperate";
"50th";
"harold";
"corpse";
"glory";
"descend";
"rogers";
"labele";
"welsh";
"yale";
"plastic";
"lab";
"tommy";
"altogether";
"professionally";
"breakfast";
"stab";
"easier";
"thailand";
"clock";
"isaac";
"collectively";
"candidacy";
"refugee";
"kitchen";
"boycott";
"challenger";
"pittsburgh";
"inquiry";
"pack";
"fare";
"biographical";
"controlled";
"deeper";
"somehow";
"knife";
"closing";
"reached";
"habit";
"boundary";
"envision";
"bafta";
"delhi";
"rifle";
"buffalo";
"excessive";
"charter";
"instruct";
"avenger";
"protester";
"attraction";
"operations";
"undermine";
"yearly";
"helicopter";
"tally";
"mature";
"supervisor";
"reynolds";
"agriculture";
"mars";
"email";
"colour";
"finishing";
"denver";
"naval";
"lineup";
"karl";
"civilization";
"hood";
"comply";
"sporting";
"hostage";
"remix";
"gospel";
"intercept";
"eugene";
"ovation";
"treaty";
"counsel";
"detect";
"lobby";
"melody";
"pc";
"unanimously";
"emperor";
"intentionally";
"cocaine";
"enormous";
"provincial";
"linda";
"rhythm";
"installation";
"authore";
"shine";
"distinguish";
"fierce";
"milan";
"suppress";
"consciousness";
"eyes";
"leonard";
"privately";
"thrill";
"republicans";
"totale";
"specify";
"colombia";
"awaken";
"patron";
"unprecedented";
"classify";
"alias";
"acquisition";
"prediction";
"surveillance";
"brutal";
"barely";
"shorten";
"monthly";
"partial";
"bedroom";
"campus";
"grandparent";
"michel";
"crossover";
"learning";
"eldest";
"raymond";
"terrible";
"reed";
"escort";
"shopping";
"bottle";
"strongest";
"facilitate";
"gear";
"rap";
"hamilton";
"vocalist";
"caribbean";
"milestone";
"greece";
"genius";
"opener";
"projection";
"scream";
"entity";
"secular";
"emma";
"coffee";
"marshall";
"ideology";
"backup";
"blog";
"encyclopedia";
"sheriff";
"christians";
"doctorate";
"sorry";
"transformation";
"elderly";
"dear";
"diana";
"socially";
"casino";
"restoration";
"demographic";
"detain";
"afghanistan";
"advocacy";
"spite";
"contradict";
"faster";
"entertain";
"diversity";
"commemorative";
"separately";
"examination";
"hidden";
"hungary";
"reclaim";
"revert";
"prominently";
"heel";
"nationalist";
"stephanie";
"bar";
"asylum";
"reid";
"influenced";
"quantity";
"operator";
"popularize";
"cinematography";
"submission";
"doesn";
"forge";
"activism";
"circulate";
"overwhelming";
"candy";
"loud";
"anchor";
"befriend";
"borrow";
"narrow";
"labour";
"jews";
"retail";
"commend";
"tackle";
"mumbai";
"paradise";
"sharing";
"signify";
"nfl";
"classification";
"netflix";
"whip";
"ballad";
"comprehensive";
"prosecution";
"addiction";
"outbreak";
"mansion";
"jacob";
"slavery";
"insider";
"inclusion";
"randy";
"minimal";
"worthy";
"victorious";
"anthology";
"austria";
"oral";
"component";
"fist";
"lion";
"jointly";
"betray";
"perfectly";
"arabic";
"jew";
"conquer";
"shell";
"swift";
"discography";
"wade";
"knockout";
"commerce";
"sad";
"slot";
"iconic";
"mick";
"adjust";
"load";
"disband";
"terminate";
"literally";
"rewrite";
"exile";
"soap";
"proclamation";
"oliver";
"external";
"eating";
"hiding";
"evacuate";
"spawn";
"bold";
"cathedral";
"commercially";
"solve";
"pronunciation";
"serial";
"tyler";
"syrian";
"convey";
"acceptable";
"sullivan";
"confident";
"spencer";
"remarkable";
"realistic";
"conversion";
"superstar";
"adoption";
"panic";
"ethic";
"tap";
"kane";
"administer";
"cincinnati";
"modest";
"preference";
"hugo";
"flashback";
"destiny";
"denial";
"swimming";
"handful";
"newton";
"peer";
"jacques";
"kurt";
"stark";
"powell";
"armor";
"northwest";
"nightclub";
"imax";
"joshua";
"nazi";
"treasury";
"electrical";
"compound";
"lament";
"ellen";
"sack";
"brandon";
"fury";
"lighting";
"soccer";
"reunion";
"carrier";
"nominated";
"vacation";
"disrupt";
"harbor";
"highway";
"appreciation";
"legislative";
"blast";
"offend";
"rear";
"exclude";
"fool";
"earthquake";
"evan";
"tennis";
"missile";
"montana";
"shy";
"stewart";
"horn";
"motivate";
"manuel";
"harsh";
"omit";
"iceland";
"prevail";
"instant";
"assure";
"enterprise";
"emigrate";
"realise";
"strictly";
"politics";
"tea";
"doodle";
"diplomat";
"tired";
"pretend";
"singh";
"palm";
"korean";
"assess";
"crop";
"curse";
"saints";
"alcoholic";
"sri";
"miguel";
"drife";
"syria";
"banks";
"experienced";
"dame";
"independently";
"plague";
"demo";
"equally";
"gym";
"conceal";
"excellence";
"mac";
"deadline";
"jackie";
"assumption";
"theft";
"unlikely";
"darker";
"southeast";
"nathan";
"fracture";
"persona";
"basically";
"donor";
"outfit";
"trump";
"assassinate";
"hindi";
"export";
"judicial";
"architect";
"rebellion";
"ease";
"ambitious";
"clause";
"meat";
"abolish";
"concerned";
"improved";
"falcon";
"casualty";
"northeast";
"grandchild";
"monument";
"eclipse";
"whenever";
"gore";
"punish";
"privacy";
"brooks";
"clerk";
"everyday";
"leslie";
"guidance";
"correspond";
"exceptional";
"guinness";
"festivity";
"naked";
"madrid";
"gregory";
"fish";
"reduction";
"prop";
"chicken";
"positively";
"andre";
"patch";
"indigenous";
"infamous";
"euro";
"butler";
"scatter";
"robot";
"catholicism";
"uncomfortable";
"jose";
"supplement";
"steady";
"commemoration";
"revelation";
"careful";
"batman";
"bow";
"lifein";
"outdoor";
"pronounce";
"jerusalem";
"coaching";
"comedic";
"candle";
"furious";
"galaxy";
"customary";
"intensity";
"selected";
"spike";
"rod";
"farewell";
"tribe";
"shore";
"bollywood";
"cement";
"rafael";
"confirmation";
"chaos";
"diminish";
"blade";
"organized";
"wine";
"shooter";
"dealer";
"studies";
"vacant";
"archived";
"index";
"residential";
"patent";
"detonate";
"helen";
"prequel";
"reflection";
"mississippi";
"infiltrate";
"integrate";
"eponymous";
"barrier";
"roosevelt";
"pleasure";
"exhaust";
"interactive";
"assignment";
"pet";
"bunch";
"wise";
"heal";
"weird";
"hughes";
"spectator";
"dual";
"pocket";
"judaism";
"outrage";
"verbal";
"accuracy";
"mechanical";
"smash";
"pistol";
"corey";
"noble";
"tremendous";
"withdrawal";
"vessel";
"arsenal";
"polling";
"gloria";
"blair";
"sugar";
"kit";
"nolan";
"deliberately";
"stories";
"spell";
"muscle";
"poison";
"assessment";
"exterior";
"decoration";
"encompass";
"wrestler";
"beyoncé";
"reinstate";
"unusually";
"attractive";
"diplomatic";
"unexpectedly";
"hammer";
"loving";
"intimate";
"strand";
"laud";
"rogue";
"continuously";
"jurisdiction";
"desk";
"protocol";
"breaking";
"tooth";
"namely";
"highlighted";
"indianapolis";
"descendant";
"luther";
"notorious";
"psychology";
"await";
"arkansas";
"qualification";
"lynn";
"yell";
"accent";
"artwork";
"encouraged";
"cambridge";
"hart";
"rocket";
"rip";
"pepper";
"xavier";
"leap";
"hat";
"suspension";
"doom";
"testament";
"melbourne";
"broader";
"progression";
"airing";
"grandson";
"replay";
"translation";
"surprised";
"ethical";
"vampire";
"slide";
"ankle";
"backstage";
"climax";
"titular";
"saturn";
"liberation";
"cartoon";
"passionate";
"subsidiary";
"broadcaster";
"definitive";
"continent";
"incredibly";
"succession";
"organizer";
"fugitive";
"pirate";
"hemisphere";
"clay";
"beverly";
"imagery";
"posthumously";
"ambush";
"established";
"reconstruction";
"mechanic";
"ratio";
"marcus";
"ash";
"blend";
"baron";
"claire";
"mode";
"drew";
"panthers";
"lucy";
"delete";
"saudi";
"penn";
"insert";
"limitation";
"freshman";
"caucus";
"bolster";
"investor";
"profound";
"expel";
"shane";
"re-serve";
"owens";
"slam";
"trek";
"sebastian";
"glove";
"torn";
"lawn";
"uncover";
"detention";
"televise";
"bitter";
"legislature";
"warfare";
"rookie";
"domain";
"carson";
"upgrade";
"flood";
"spectacular";
"renewal";
"comparable";
"neutral";
"simpson";
"akin";
"inhabitant";
"hunger";
"erect";
"savage";
"colonial";
"drake";
"unhappy";
"merchandise";
"prevention";
"bulk";
"julia";
"ernest";
"tourist";
"claude";
"ear";
"unfortunately";
"ranch";
"inflation";
"suspicious";
"patrol";
"dominic";
"stranger";
"mall";
"atop";
"racist";
"chapel";
"patriot";
"fixture";
"alike";
"legitimate";
"technician";
"devise";
"doctrine";
"excel";
"quebec";
"chester";
"holocaust";
"joel";
"gabriel";
"twelfth";
"kyle";
"xbox";
"entrepreneur";
"palmer";
"clue";
"uphold";
"ukraine";
"administrator";
"murderer";
"allan";
"ahmed";
"eighteen";
"czech";
"exploration";
"dimension";
"natalie";
"sand";
"chad";
"reporting";
"sergeant";
"birmingham";
"escalate";
"elvis";
"output";
"innocence";
"americas";
"bitch";
"maurice";
"fernando";
"mixture";
"drummer";
"tucker";
"jungle";
"queens";
"treasure";
"comfort";
"valentine";
"merger";
"delegation";
"rehabilitation";
"tense";
"burns";
"mood";
"burton";
"kind";
"plaza";
"eagles";
"glen";
"massacre";
"correspondent";
"electricity";
"reliable";
"financially";
"digitally";
"webster";
"implication";
"lebanon";
"olivia";
"1920s";
"attacking";
"stevens";
"operative";
"playstation";
"painful";
"mechanism";
"charactersmain";
"dust";
"bennett";
"watson";
"cop";
"unwilling";
"terminal";
"telecast";
"clarke";
"liken";
"shaw";
"quarters";
"auto";
"anyway";
"correctly";
"nate";
"brock";
"lone";
"marijuana";
"baptist";
"vladimir";
"pierce";
"harvest";
"rey";
"finest";
"kidnapping";
"dakota";
"fade";
"closure";
"racism";
"windows";
"emulate";
"logan";
"deteriorate";
"tabloid";
"overtake";
"inmate";
"cohen";
"discourage";
"prosecute";
"painter";
"substantially";
"creed";
"redemption";
"wallace";
"virtue";
"heard";
"successive";
"greeting";
"stanford";
"excuse";
"arabia";
"reminiscent";
"chelsea";
"oregon";
"suite";
"chant";
"precisely";
"persistent";
"suitable";
"smoking";
"prestigious";
"propaganda";
"unlock";
"isolate";
"workshop";
"grip";
"ellis";
"remembrance";
"beijing";
"frederick";
"accessible";
"fitness";
"predominantly";
"guess";
"civic";
"oath";
"admiration";
"motive";
"irving";
"instantly";
"inventor";
"locally";
"persist";
"shorter";
"motorcycle";
"trinity";
"insufficient";
"referendum";
"stint";
"cinemascore";
"fleet";
"database";
"biblical";
"extract";
"rib";
"fifa";
"kilometre";
"dig";
"lightning";
"decisive";
"robbie";
"anthem";
"darren";
"philosophical";
"persian";
"attendee";
"procession";
]
titles = [
"Unfinished_portrait_of_Franklin_D._Roosevelt";
"Negan";
"Cam_Newton";
"Beyonce";
"Coachella_Valley_Music_and_Arts_Festival";
"Charlie_Sheen";
"Keanu_Reeves";
"Crimson_Peak";
"Lisa_Brennan-Jobs";
"Rodrigo_Duterte";
"Conor_McGregor";
"The_Life_of_Pablo";
"Memorial_Day";
"Veterans_Day";
"Labor_Day";
"UEFA_Euro_2016";
"Ides_of_March";
"Pat_Bowlen";
"The_Martian_(film)";
"David_Bowie";
"Hanukkah";
"2016_ICC_World_Twenty20";
"Whitey_Bulger";
"Chris_Stapleton";
"House_of_Cards_(season_4)";
"Ted_Cruz";
"Clara_Rockmore";
"Flip_Saunders";
"Channing_Tatum";
"Meldonium";
"Fear_the_Walking_Dead";
"Terry_Wogan";
"Negasonic_Teenage_Warhead";
"Leap_year";
"Good_Friday";
"Mahatma_Gandhi";
"Michael_J._Fox";
"Lupe_Fuentes";
"Lucy_(Australopithecus)";
"Von_Miller";
"Blac_Chyna";
"Prince_(musician)";
"The_Walk_(2015_film)";
"Tami_Erin";
"Back_to_the_Future_II";
"Zika_virus";
"Doom_(2016_video_game)";
"Preacher_(comics)";
"Fan_(film)";
"Daniel_Craig";
"Democratic_Party_presidential_primaries,_2016";
"2015_Rugby_World_Cup";
"Vanity_(singer)";
"B._K._S._Iyengar";
"Claude_Shannon";
"Natalie_Cole";
"Cedric_Villani";
"Rai_stones";
"Hillsborough_disaster";
"Groundhog_Day";
"Novak_Djokovic";
"Spotlight_(film)";
"Purple_Rain_(film)";
"2016_NCAA_Men's_Division_I_Basketball_Tournament";
"Dr._Luke";
"Kobe_Bryant";
"Jurgen_Klopp";
"Sri_Srinivasan";
"Joy_Mangano";
"November_2015_Paris_attacks";
"1896_Summer_Olympics";
"Verghese_Kurien";
"Hamilton_(musical)";
"Blackstar_(David_Bowie_album)";
"Roger_Federer";
"Joe_Frazier";
"Glenn_Frey";
"Robert_Hanssen";
"House_of_Cards_(U.S._TV_series)";
"Doctor_Strange";
"Jessica_Jones_(TV_series)";
"Seventh-day_Adventist_Church";
"William_Shakespeare";
"Star_Wars_Episode_I:_The_Phantom_Menace";
"Eagles_(band)";
"Laila_Ali";
"2016_in_film";
"The_Walking_Dead_(season_6)";
"Drake_(rapper)";
"Emilia_Clarke";
"Singh_Is_Bliing";
"Syrian_Civil_War";
"Survivor_Series_(2015)";
"10_Cloverfield_Lane";
"Spectre_(2015_film)";
"Marco_Rubio";
"A_Moon_Shaped_Pool";
"Andrew_Jackson";
"Making_a_Murderer";
"Anonymous_(group)";
"Lemonade_(Beyonce_album)";
"Elizabeth_II";
"58th_Annual_Grammy_Awards";
"Coldplay";
"Samburu_people";
"Angie_Bowie";
"Martin_Luther_King,_Jr.";
"Johnny_Depp";
"Hate_Story_3";
"Annie_Besant";
"Salford_City_F.C.";
"Anne_Frank";
"Yom_Kippur";
"2015_San_Bernardino_shooting";
"Leicester_City_F._C.";
"Chinese_New_Year";
"Supersonic_Low_Altitude_Missile";
"Omayra_Sanchez";
"Canadian_federal_election,_2015";
"Floyd_Mayweather,_Jr.";
"Philippe_Petit";
"Matt_Hasselbeck";
"Henry_Cavill";
"Mohammad_Azharuddin";
"Syria";
"John_Boehner";
"Rosh_Hashanah";
"Super_Bowl";
"Sukhoi_Su-24";
"Black_Friday_(shopping)";
"Hillary_Clinton";
"Ronald_Reagan";
"Antonin_Scalia";
"Dmitri_Mendeleev";
"73rd Golden Globe Awards";
"Patty_Duke";
"Bajirao_I";
"Royal_Rumble_(2016)";
"Valentine's_Day";
"Claudio_Ranieri";
"X-Men_(film_series)";
"Harriet_Tubman";
"Jose_Mourinho";
"Billy_the_Kid";
"Danny_Willett";
"Black_hole";
"Rob_Ford";
"Brussels";
"Jacklyn_H._Lucas";
"Eazy-E";
"Purple_Man";
"Jackie_Robinson";
"American_Horror_Story";
"Ash_Wednesday";
"Virat_Kohli";
"Nancy_Reagan";
"M._F._Husain";
"Bernard_Madoff";
"Elektra_(comics)";
"Mario_Miranda";
"Blood_Moon_Prophecy";
"Halo_5:_Guardians";
"Adam_Driver";
"Suicide_Squad_(film)";
"Diwali";
"Punisher";
"Eid_al-Adha";
"Fort_McMurray";
"Phife_Dawg";
"Marvel_Cinematic_Universe";
"B._R._Ambedkar";
"John_Anglin_(criminal)";
"Return_of_the_Jedi";
"Jordan_Spieth";
"Ron_Reagan";
"Academy_Awards";
"Quantico_(TV_series)";
"Holi";
"TLC:_Tables,_Ladders_&_Chairs_(2015)";
"Rod_Serling";
"Patti_Davis";
"Neerja_Bhanot";
"Sylvester_Stallone";
"Krampus";
"Sigmund_Freud";
"Carolina_Panthers";
"Pablo_Escobar";
"The_Man_in_the_High_Castle_(TV_series)";
"Ben_Carson";
"Mali";
"Trans-Pacific_Partnership";
"Master_of_None";
"Miss_Universe";
"Martin_Luther_King,_Jr._Day";
"Attack_on_Pearl_Harbor";
"A._P._J._Abdul_Kalam";
"Star_Wars_sequel_trilogy";
"Bob_Ross";
"Gloria_Vanderbilt";
"Lemmy";
"Dolly_Parton";
"Jose_Aldo";
"O._J._Simpson";
"Cinco_de_Mayo";
"Super_Tuesday";
"Kanye_West";
"Mother's_Day";
"Daisy_Ridley";
"The_Ultimate_Fighter:_Team_McGregor_vs._Team_Faber";
"April_Ludgate";
"Belgium";
"Nusrat_Fateh_Ali_Khan";
"Serena_Williams";
"Rockbitch";
"Descendants_of_the_Sun";
"Black_Panther_(comics)";
"Jodie_Sweetin";
"Crypt_of_Civilization";
"Jim_Webb";
"Supergirl_(U.S._TV_series)";
"Payback_(2016)";
"Easy-E";
"Donald_Trump";
"Gennady_Golovkin";
"Duncan_Jones";
"Remembrance_Day";
"Powerball";
"Dilwale_(2015_film)";
"Mastani";
"Heroes_Reborn_(miniseries)";
"Adele";
"Karan_Singh_Grover";
"Grease:_Live";
"Tamasha_(film)";
"Johan_Cruyff";
"Michael_Jordan";
"Lunar_eclipse";
"Christina_Grimmie";
"Ronda_Rousey";
"Andre_the_Giant";
"Azhar_(film)";
"Space_Shuttle_Challenger_disaster";
"Krampus_(film)";
"Jeffrey_Dean_Morgan";
"Prem_Ratan_Dhan_Payo";
"April_Fools'_Day";
"Call_of_Duty:_Black_Ops_III";
"Ryan_Reynolds";
"Alicia_Vikander";
"Views_(album)";
"Wladimir_Klitschko";
"Shane_McMahon";
"Islamic_State_of_Iraq_and_the_Levant";
"Google";
"Fuller_House_(TV_series)";
"Saint_Patrick's_Day";
"Eagles_of_Death_Metal";
"Uncharted_4:_A_Thief's_End";
"Alexander_Hamilton";
"George_Boole";
"Philippine_presidential_election,_2016";
"O._J._Simpson_murder_case";
"Deadpool";
"Stephen_Harper";
"International_Women's_Day";
"Fastlane_(2016)";
"Jenna_Dewan";
"Anti_(album)";
"Elizabeth_Olsen";
"Robert_Kardashian";
"A._J._Styles";
"Victoria_Woodhull";
"Iowa_caucuses";
"Zootopia";
"Abu_Bakr_al-Baghdadi";
"Yogi_Berra";
"Fool's_Gold_Loaf";
"Saul_Alvarez";
"Creed_(film)";
"Deadpool_(film)";
"Celine_Dion";
"Hertha_Marks_Ayrton";
"2012_Benghazi_attack";
"Ethan_Couch";
"United_States";
"Thanksgiving";
"Victoria_Wood";
"Genie_(feral_child)";
"Holly_Holm";
"Denver_Broncos";
"Eurovision_Song_Contest_2016";
"Steve_Jobs";
"Bluetooth";
"Stacey_Dash";
"Goran_Kropp";
"Nate_Diaz";
"Rogue_One";
"Gotham_(TV_series)";
"American_Crime_Story";
"The_Jungle_Book_(2016_film)";
"Frederick_Douglass";
"Captain_America:_Civil_War";
"Christopher_Columbus";
"Tom_Brady";
"Krysten_Ritter";
"Fallout_4";
"George_Hotz";
"Republican_Party_presidential_primaries,_2016";
"Bernie_Sanders";
"Carly_Fiorina";
"Lady_Colin_Campbell";
"2016_Brussels_bombings";
"Sadiq_Khan";
"Garry_Shandling";
"Mayte_Garcia";
"Batman_v_Superman:_Dawn_of_Justice";
"2015_FIBA_Asia_Championship";
"Jonah_Lomu";
"Christopher_Lloyd";
"Affluenza";
"Star_Wars";
"Zaha_Hadid";
"UEFA_Euro_2016_qualifying";
"88th_Academy_Awards";
"Extreme_Rules_(2016)";
"Mary_Fields";
"Alan_Rickman";
"Caroline_Herschel";
"Luke_Cage";
"Jackie_Collins";
"2008_Noida_double_murder_case";
"Charles_Perrault";
"September_11_attacks";
"Hugh_Glass";
"Joy_(film)";
"Game_of_Thrones_(season_6)";
"Bajirao_Mastani_(film)";
"Day_of_the_Dead";
"Narcos";
"Mark_Hamill";
"Daredevil_(TV_series)";
"Gwen_Stefani";
"Iman_(model)";
"Halloween";
"Adolphe_Sax";
"Margaret_Trudeau";
"Abe_Vigoda";
"The_Revenant_(2015_film)";
"Malcolm_Turnbull";
"The_Conjuring_2";
"Airlift_(film)";
"Fidel_Castro";
"Easter";
"Black_Panther_Party";
"Pierre_Trudeau";
"Carol_Burnett";
"Kimbo_Slice";
"Fargo_(TV_series)";
"25_(Adele_album)";
"The_Walking_Dead_(TV_series)";
"Lamar_Odom";
"Lucy_Maud_Montgomery";
"Dimitri_Payet";
"Stephen_Curry";
"Room_(2015_film)";
"Hedy_Lamarr";
"Panama_Papers";
"Corrupted_Blood_incident";
"Daredevil_(season_2)";
"Christopher_Paul_Neil";
"Saint_Patrick";
"Great_white_shark";
"Ecole_Polytechnique_massacre";
"Warcraft_(film)";
"Ramadan";
"Gal_Gadot";
"Scott_Weiland";
"Purpose_(Justin_Bieber_album)";
"Earth_Day";
"Goliath";
"Dave_Mirra";
"Daylight_Saving_Time";
"Harrison_Ford";
"Hello_(Adele_song)";
"David_Bowie_discography";
"Joaquin_Guzman";
"Tyson_Fury";
"Doris_Roberts";
"Motorhead";
"Hell_in_a_Cell_(2015)";
"Star_Wars_(film)";
"Ronnie_Corbett";
"Will_Smith_(defensive_end)";
"Jane_Jacobs";
"Martin_Shkreli";
"Sian_Blake";
"Pia_Wurtzbach";
"Rachel_Roy";
"Game_of_Thrones";
"2016_UEFA_Champions_League_Final";
"Super_Bowl_50";
"ICC_World_Twenty20";
"Baaghi_(2016_film)";
"Sean_Astin";
"Theri_(film)";
"American_Horror_Story:_Hotel";
"Brie_Larson";
"Frank_Sinatra,_Jr.";
"Chernobyl_disaster";
"Kate_Winslet";
"How_to_Get_Away_with_Murder";
"Sherlock_(TV_series)";
"Sairat";
"Michael_Jackson";
"Steven_Avery";
"Fred_Thompson";
"Moses_Malone";
"Kate_Beckinsale";
"Starship_Troopers_(film)";
"Frankie_Manning";
"Overwatch_(video_game)";
"Amber_Heard";
"Maureen_O'Hara";
"Facebook";
"Justin_Trudeau";
"Ludwig_van_Beethoven";
"Rene_Angelil";
"Ben_Affleck";
"Scream_Queens_(2015_TV_series)";
"Call_of_Duty:_Modern_Warfare_2";
"Back_to_the_Future";
"Pope_Francis";
"Morley_Safer";
"Yuri_Kochiyama";
"Purple_Rain_(album)";
"One-Punch_Man";
"Monica_Lewinsky";
"Puli_(2015_film)";
"Everest_(2015_film)";
"Ariana_Grande";
"Sia_Furler";
"The_X-Files";
"Guy_Fawkes";
"University_of_Texas_at_Dallas";
"Merrick_Garland";
"H._H._Holmes";
"Merle_Haggard";
"The_Hateful_Eight";
"Wrestlemania_32";
"Jessica_Jones";
"Maria_Santos_Gorrostieta_Salazar";
"Peyton_Manning";
"The_Flash_(2014_TV_series)";
"Guy_Fawkes_Night";
"Boxing_Day";
"Rene_Laennec";
"Steven_Harvey";
"Muhammad_Ali";
"Zach_Braff";
"Phoebe_Snetsinger";
"Mark_Zuckerberg";
"Mad_Max:_Fury_Road";
"Aokigahara";
"Preacher_(TV_series)";
"Jeremy_Corbyn";
"Mars";
"Night_of_Champions_(2015)";
"Disappearance_of_Bobby_Dunbar";
"Tom_Hardy";
"Kylo_Ren";
"Kesha";
"UFC_199";
"Vincent_Margera";
"UFC_192";
"UFC_193";
"UFC_194";
"UFC_196";
"UFC_197";
"J._J._Abrams";
"Copa_America_Centenario";
"Wonder_Woman";
"Melania_Trump";
"Chris_Kyle";
"Leonardo_DiCaprio";
"Amrita_Sher-Gil";
"Villanova_University";
"Ravi_Shankar";
"Eli_Manning";
"X-Men:_Apocalypse";
"John_Logie_Baird";
"The_X-Files_(miniseries)";
"Sophie_Gregoire";
"The_Shannara_Chronicles";
"Cristiano_Ronaldo";
"Star_Wars:_The_Force_Awakens";
"Lyndon_B._Johnson";
"The_Hunger_Games:_Mockingjay_-_Part_2";
"Gordie_Howe";
"Republic_Day_(India)";
"Carrie_Fisher";
]
return articles, dictionary, titles
end
|
module Resource.Models exposing
( CheckStatus(..)
, Model
, PageError(..)
, PinnedVersion
, Version
, VersionEnabledState(..)
, VersionId
)
import Build.Output.Models exposing (OutputModel)
import Concourse
import Concourse.Pagination exposing (Page, Paginated)
import Login.Login as Login
import Pinned exposing (CommentState, ResourcePinState)
import Routes
import Time
type PageError
= Empty
| NotFound
type CheckStatus
= CheckPending
| CurrentlyChecking Int
| NotChecking
type alias Model =
Login.Model
{ pageStatus : Result PageError ()
, checkStatus : CheckStatus
, lastChecked : Maybe Time.Posix
, pinnedVersion : PinnedVersion
, now : Maybe Time.Posix
, resourceIdentifier : Concourse.ResourceIdentifier
, currentPage : Page
, versions : Paginated Version
, pinCommentLoading : Bool
, textAreaFocused : Bool
, icon : Maybe String
, isEditing : Bool
, build : Maybe Concourse.Build
, authorized : Bool
, output : Maybe OutputModel
, highlight : Routes.Highlight
}
type alias PinnedVersion =
ResourcePinState Concourse.Version VersionId CommentState
type VersionEnabledState
= Enabled
| Changing
| Disabled
type alias VersionId =
Concourse.VersionedResourceIdentifier
type alias Version =
{ id : VersionId
, version : Concourse.Version
, metadata : Concourse.Metadata
, enabled : VersionEnabledState
, expanded : Bool
, inputTo : List Concourse.Build
, outputOf : List Concourse.Build
, showTooltip : Bool
}
|
{
"id": "b7224a8e-52b7-4119-9e9c-4666b2116284",
"modelName": "GMSound",
"mvc": "1.0",
"name": "sfx_gameover",
"audioGroupGuid": "7b2c4976-1e09-44e5-8256-c527145e03bb",
"bitDepth": 1,
"bitRate": 128,
"kind": 0,
"preload": false,
"sampleRate": 44100,
"type": 0,
"volume": 1
} |
package ztiany.chapter10
println "in script1"
name = "ztiany"//name不能用def修饰
shell = new GroovyShell(binding)
def evaluate = shell.evaluate(new File('script2a.groovy'))//evaluate 求..的值
println evaluate
//如果不希望把影响当前的binding,则创建一个binding,在该实例上调用setProperty
binding1 = new Binding()
binding1.setProperty('name','jordan')
shell1 = new GroovyShell(binding1)
shell1.evaluate(new File('script2a.groovy'))
binding2 = new Binding()
binding2.setProperty('name','kobe')
|
/-
Copyright (c) 2020 Keeley Hoek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Keeley Hoek, Scott Morrison
-/
import meta.expr
/-!
# A lens for zooming into nested `expr` applications
A "lens" for looking into the subterms of an expression, tracking where we've been, so that
when we "zoom out" after making a change we know exactly which order of `congr_fun`s and
`congr_arg`s we need to make things work.
This file defines the `expr_lens` inductive type, defines basic operations this type, and defines a
useful map-like function `expr.app_map` on `expr`s which maps over applications.
This file is for non-tactics.
## Tags
expr, expr_lens, congr, environment, meta, metaprogramming, tactic
-/
/-! ### Declarations about `expr_lens` -/
/-- You're supposed to think of an `expr_lens` as a big set of nested applications with a single
hole which needs to be filled, either in a function spot or argument spot. `expr_lens.fill` can
fill this hole and turn your lens back into a real `expr`. -/
meta inductive expr_lens
| app_fun : expr_lens → expr → expr_lens
| app_arg : expr_lens → expr → expr_lens
| entire : expr_lens
namespace expr_lens
/-- Inductive type with two constructors `F` and `A`,
that represent the function-part `f` and arg-part `a` of an application `f a`. They specify the
directions in which an `expr_lens` should zoom into an `expr`.
This type is used in the development of rewriting tactics such as `nth_rewrite` and
`rewrite_search`. -/
@[derive [decidable_eq, inhabited]]
inductive dir
| F
| A
/-- String representation of `dir`. -/
def dir.to_string : dir → string
| dir.F := "F"
| dir.A := "A"
instance : has_to_string dir := ⟨dir.to_string⟩
open tactic
/-- Fill the function or argument hole in this lens with the given `expr`. -/
meta def fill : expr_lens → expr → expr
| entire e := e
| (app_fun l f) x := l.fill (expr.app f x)
| (app_arg l x) f := l.fill (expr.app f x)
/-- Zoom into `e : expr` given the context of an `expr_lens`, popping out an `expr` and a new
zoomed `expr_lens`, if this is possible (`e` has to be an application). -/
meta def zoom : expr_lens → list dir → expr → option (expr_lens × expr)
| l [] e := (l, e)
| l (dir.F :: rest) (expr.app f x) := (expr_lens.app_arg l x).zoom rest f
| l (dir.A :: rest) (expr.app f x) := (expr_lens.app_fun l f).zoom rest x
| _ _ _ := none
/-- Convert an `expr_lens` into a list of instructions needed to build it; repeatedly inspecting a
function or its argument a finite number of times. -/
meta def to_dirs : expr_lens → list dir
| expr_lens.entire := []
| (expr_lens.app_fun l _) := l.to_dirs.concat dir.A
| (expr_lens.app_arg l _) := l.to_dirs.concat dir.F
/-- Sometimes `mk_congr_arg` fails, when the function is 'superficially dependent'.
Try to `dsimp` the function first before building the `congr_arg` expression. -/
meta def mk_congr_arg_using_dsimp (G W : expr) (u : list name) : tactic expr :=
do s ← simp_lemmas.mk_default,
t ← infer_type G,
t' ← s.dsimplify u t { fail_if_unchanged := ff },
to_expr ```(congr_arg (show %%t', from %%G) %%W)
private meta def trace_congr_error (f : expr) (x_eq : expr) : tactic unit :=
do pp_f ← pp f,
pp_f_t ← (infer_type f >>= λ t, pp t),
pp_x_eq ← pp x_eq,
pp_x_eq_t ← (infer_type x_eq >>= λ t, pp t),
trace format!"expr_lens.congr failed on \n{pp_f} : {pp_f_t}\n{pp_x_eq} : {pp_x_eq_t}"
/-- Turn an `e : expr_lens` and a proof that `a = b` into a series of `congr_arg` or `congr_fun`
applications showing that the expressions obtained from `e.fill a` and `e.fill b` are equal. -/
meta def congr : expr_lens → expr → tactic expr
| entire e_eq := pure e_eq
| (app_fun l f) x_eq := do fx_eq ← try_core $ do {
mk_congr_arg f x_eq
<|> mk_congr_arg_using_dsimp f x_eq [`has_coe_to_fun.F]
},
match fx_eq with
| (some fx_eq) := l.congr fx_eq
| none := trace_congr_error f x_eq >> failed
end
| (app_arg l x) f_eq := mk_congr_fun f_eq x >>= l.congr
/-- Pretty print a lens. -/
meta def to_tactic_string : expr_lens → tactic string
| entire := return "(entire)"
| (app_fun l f) := do pp ← pp f,
rest ← l.to_tactic_string,
return sformat!"(fun \"{pp}\" {rest})"
| (app_arg l x) := do pp ← pp x,
rest ← l.to_tactic_string,
return sformat!"(arg \"{pp}\" {rest})"
end expr_lens
namespace expr
/-- The private internal function used by `app_map`, which "does the work". -/
private meta def app_map_aux {α} (F : expr_lens → expr → tactic (list α)) :
option (expr_lens × expr) → tactic (list α)
| (some (l, e)) := list.join <$> monad.sequence [
F l e,
app_map_aux $ l.zoom [expr_lens.dir.F] e,
app_map_aux $ l.zoom [expr_lens.dir.A] e
] <|> pure []
| none := pure []
/-- `app_map F e` maps a function `F` which understands `expr_lens`es over the given `e : expr` in the natural way;
that is, make holes in `e` everywhere where that is possible (generating `expr_lens`es in the
process), and at each stage call the function `F` passing both the `expr_lens` generated and the
`expr` which was removed to make the hole.
At each stage `F` returns a list of some type, and `app_map` collects these lists together and
returns a concatenation of them all. -/
meta def app_map {α} (F : expr_lens → expr → tactic (list α)) (e : expr) : tactic (list α) :=
app_map_aux F (expr_lens.entire, e)
end expr
|
'use strict'
init = require("fb-custom-init")
magma_outbound_message = require('magma-outbound-message')
should = require('should')
CT = require('magma-constant')
_ = require('lodash')
###
======== A Handy Little Mocha Reference ========
https://github.com/visionmedia/should.js
https://github.com/visionmedia/mocha
###
describe 'magma-outbound-message', ()->
describe '#awesome()', ()->
it 'does amaze', ()->
return |
* {
margin: 0;
padding: 0;
}
body {
background-color:rgb(208, 255, 239)
}
.main-game {
height: 100vh;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
}
.genius {
display: grid;
grid-template-areas: 'green red'
'yellow blue';
grid-gap: 10px;
border: 1px solid #ffffff;
background-color: #ffffff;
border-radius: 100%;
width: 600px;
height: 600px;
}
.blue {
grid-area: blue;
background-color: blue;
border-bottom-right-radius: 100%;
}
.red {
grid-area:red;
background-color:red;
border-top-right-radius: 100%;
}
.yellow {
grid-area:yellow;
background-color:yellow;
border-bottom-left-radius: 100%;
}
.green {
grid-area:green;
background-color:green;
border-top-left-radius: 100%;
}
.selected {
opacity: 0.8;
} |
Meteor.publish 'userData', ->
unless this.userId
return this.ready()
RocketChat.models.Users.find this.userId,
fields:
name: 1
username: 1
status: 1
statusDefault: 1
statusConnection: 1
avatarOrigin: 1
utcOffset: 1
language: 1
settings: 1
defaultRoom: 1
'services.github.id': 1
'services.gitlab.id': 1
requirePasswordChange: 1
requirePasswordChangeReason: 1
|
package com.nabijaczleweli.fancymagicks.staves
import com.nabijaczleweli.fancymagicks.reference.Reference
import net.minecraft.entity.player.EntityPlayer
import net.minecraft.util.StatCollector
class AbilityMissing(which: String) extends StaffAbility {
override def apply(player: EntityPlayer) {}
override val description = s"tooltip.${Reference.NAMESPACED_PREFIX}staffAbilityErrorMissing"
override def displayDescription =
StatCollector.translateToLocalFormatted(description, which)
}
|
#version 430 compatibility
out vec4 color;
out vec4 texpos;
out vec4 lmpos; // x 方块亮度, y 天空亮度
out vec4 normal;
void main()
{
vec4 viewpos = gl_ModelViewMatrix * gl_Vertex;
gl_Position = gl_ProjectionMatrix * viewpos;
gl_FogFragCoord = length(viewpos.xyz);
color = gl_Color;
texpos = gl_TextureMatrix[0] * gl_MultiTexCoord0;
normal = vec4(normalize(gl_NormalMatrix * gl_Normal), 1.0);
} |
PREFIX ex: <http://example.com/ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX sh: <http://www.w3.org/ns/shacl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
INSERT DATA {
ex:validPerson1 ex:type ex:Person .
}
|
stomatadetector package
=======================
Submodules
----------
stomatadetector.filebrowser module
----------------------------------
.. automodule:: stomatadetector.filebrowser
:members:
:undoc-members:
:show-inheritance:
stomatadetector.flexmetadata module
-----------------------------------
.. automodule:: stomatadetector.flexmetadata
:members:
:undoc-members:
:show-inheritance:
stomatadetector.stomataobjects module
-------------------------------------
.. automodule:: stomatadetector.stomataobjects
:members:
:undoc-members:
:show-inheritance:
Module contents
---------------
.. automodule:: stomatadetector
:members:
:undoc-members:
:show-inheritance:
|
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>校历校准管理</title>
<meta name="decorator" content="default"/>
<style>
body
{
font-family:'微软雅黑';
background-color:#EBEAEB;
}
#contest{
background-color:#FFF;
/*position:absolute;
top:7%;
left:13%;
margin-left:auto;
margin-right:auto;*/
position:relative;
top:20px;
margin:0 auto;
width:1000px;
height:800px;
box-shadow:0px 0px 50px #000;
border-radius:5px;
}
.psw
{
width:160px;
height:25px;
background-color:#6e6e6e;
border-radius:3px;
border:0px;
color:#f9f9f9;
font-family:'微软雅黑';
padding-left:5px;
}
.a
{
display:block;
border:1px solid;
border-radius:3px;
border-color:#09F;
color:#000;
padding:4px 10px;
margin-top:2px;
box-shadow:#6e6e6e 0 0 3px;
text-decoration:none;
}
.a:hover
{
background-color:#C6B19A;
color:#FFF;
box-shadow:#2d2d2d 0 0 3px;
}
.prime_a:hover
{
color:#0CF;
}
table
{
border-collapse:collapse;
font-size:15px;
/*border-color:#000;*/
}
td{
width:200px;
height:50px;
border:1px solid #000000;
}
#up{
position:absolute;
background-color:#ffffff;
left:50%;
top:300px;
margin-top:-205px;
margin-left:-200px;
z-index:6;
border-radius:6px;
-webkit-box-shadow:0 3px 7px rgba(0, 0, 0, 0.3);
box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
}
#teacherUp{
position:absolute;
background-color:#ffffff;
left:50%;
top:300px;
margin-top:-205px;
margin-left:-200px;
z-index:6;
border-radius:6px;
-webkit-box-shadow:0 3px 7px rgba(0, 0, 0, 0.3);
box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
}
#mask
{
background-color:#2d2d2d;
opacity:0;
filter:alpha(opacity=0);
position:fixed;
width:100%;
height:100%;
top:0px;
left:0px;
z-index:-5;
}
.course_text{
text-align:center;
}
.admin_tips
{
font-size:14px;
line-height:30px;
color:#999;
}
</style>
</head>
<body>
<body>
<br>
<br>
<div class="container">
<div class="row">
<div class="span12">
<fmt:formatDate value="<%=new java.util.Date()%>" pattern="MM"
var="mm" />
<fmt:formatDate value="<%=new java.util.Date()%>" pattern="dd"
var="dd" />
<div id="mask"></div>
<form name="form0">
<input type="text" id="year" name="year" style="display: none;"
value="${yearTerm}" /> <input type="text" id="servers_time"
name="servers_time" style="display: none;" value="${mm}@${dd}">
<input type="text" name="year_rili" id="year_rili"
style="display: none;" value="${courseCalendar.calendarYear}" />
<input type="text" name="month_rili" id="month_rili"
style="display: none;" value="${courseCalendar.calendarMonth}" />
<input type="text" name="day_rili" id="day_rili"
style="display: none;" value="${courseCalendar.calendarDay}" />
<div id="top">
第 <select id="week_select" onchange="change_week()"
style="width: 100px;">
<option value="01" selected>1</option>
<%
for (int $i = 2; $i <= 9; $i++)
out.println("<option value=\"" + '0' + $i + "\">" + $i + "</option>");
for (int $i = 10; $i <= 20; $i++)
out.println("<option value=\"" + $i + "\">" + $i + "</option>");
%>
</select> 周 学院: <select
name="h_school" id="h_school" class="h_school"
onchange="change()" style="width: 100px;">
</select> 机房: <select id="address"
class="address" onchange="change_address()"
style="width: 100px;">
</select> <input type="button"
; onclick="window_print()" ; name="win_print" ; id="win_print"
value="打印" class="button" />
</div>
<p>
<table id="s_week" style="font-size: 10px; height: 550px;">
<tr align="center">
<td></td>
<td>星期一</td>
<td>星期二</td>
<td>星期三</td>
<td>星期四</td>
<td>星期五</td>
<td>星期六</td>
<td>星期日</td>
</tr>
<%
//生成空表格
int i = 1;
int j = 2;
for (int $row = 1; $row <= 5; $row++) {
out.println("<tr height=\"100px;\">");
out.println("<td align=\"center\">" + i + "-" + j + "节</td>");
i += 2;
j += 2;
for (int $cell = 1; $cell <= 7; $cell++) {
out.println("<td></td>");
}
out.println("</tr>");
}
%>
</table>
</form>
</div>
</div>
</div>
<!-- div层[排一个课]-->
<div id="up"; style="display:none; width:400px; height:400px;">
<form action="" name="form" style="margin-left:30px; margin-top:50px;">
<input type="hidden" style="display:none" name="time" id="time" /> <!-- 存放时间地址字段-->
<p>
相关说明: <p>
<textarea name="tips" id="tips" style="height:100px; width:300px;"></textarea>
<p>
<input name="add" type="button" value="添加" onclick="resure()" class="button" />
<input name="over" type="button" value="返回" onclick="cancel()" class="button"/>
</form>
</div>
<div id="teacherUp"; style="display:none; width:400px; height:400px;">
<div id="putong">
<form action="" name="form" style="margin-left:30px; margin-top:50px;">
<p>
<a onclick="putongke()" class="prime_a">普通课</a> | <a onclick="renxuanke()" class="prime_a">任选课</a>
<input type="text" style="display:none" name="teacherTime" id="teacherTime" /> <!-- 存放时间地址字段-->
<p>
学院:
<select name="school" id="school" onChange="change_school(document.form.school.options[document.form.school.selectedIndex].value)">
<option value="" selected="selected">==请选择学院==</option>
</select>
<p>专业:
<select name="major" id="major" onChange="change_major(document.form.major.options[document.form.major.selectedIndex].value)">
<option value=""selected="selected">==请选择专业==</option>
</select>
<p>年级:
<select name="grade" id="grade" onchange="change_grade(document.form.grade.options[document.form.grade.selectedIndex].value)">
<option value="" selected="selected">==请选择年级==</option>
</select>
<p>班级:
<select name="w_class" id="w_class">
<option value="" selected="selected">==请选择班级==</option>
</select>
<p>课程:
<select name="course" id="course">
<option value="" selected="selected">==请选择课程==</option>
<option value=00000150>大型数据库管理与应用</option><option value=00000196>网络工程规划课程设计</option><option value=00000324>111</option> </select>
<p>
备注: <input type="text" id="teacherTips" name="tips"/>
<p>
<input name="add" id="teacherAdd" type="button" value="添加" onclick="teacherResure()" class="button" />
<input name="over" id="teacherOver" type="button" value="返回" onclick="teacherCancel()" class="button"/>
</form>
</div>
</div>
<script>
var time_array = new Array();//日历数组
//页面加载完成后执行change()填表格操作
$(document).ready(function()
{
$('#top').cxSelect({
url: '${ctx}/school/schoolRoot/treeLink',
selects: ['h_school', 'address'],
jsonName: 'name',
jsonValue: 'value',
jsonSub: 'sub'
});
change();
//document.form0.h_school.options[04].selected = true;
});
function rili(year,month,day)
{
flag = 0;
flag_year = 0;
if((year%4==0 && year%100!=0) || year%400==0)
{
flag = 1;
}
else
flag = 0;
for(i=1;i<=20;i++)
{
time_array[i] = new Array();
for(j = 1;j<=7;j++)
{
if(month==13)
{
month=1;
flag_year = 1;
}
time_array[i][j] = month+"月"+day+"日";
if((month==1 || month==3 ||month==5 ||month==7 ||month==8 ||month==10 ||month==12) && day==31)
{
day=1;
month++;
}
else if(day==28 && month==2 && flag == 0)
{
day=1;
month++;
}
else if(day==29 && month==2 && flag == 1)
{
day=1;
month++;
}
else if((month==4 ||month==6 ||month==9 ||month==11) &&day==30)
{
day=1;
month++;
}
else
day++;
}
}
return flag_year;
}
//打印页面
function window_print()
{
$("#win_print").fadeOut(0);
var table_temp = document.getElementById("s_week");
for(i=1;i<=5;i++)
{
for(j=1;j<=7;j++)
{ if(table_temp.rows[i].cells[j].innerHTML.indexOf("点此加锁")!=-1)
{
table_temp.rows[i].cells[j].innerHTML="";
}
if(table_temp.rows[i].cells[j].innerHTML.indexOf("删除")!=-1)
{
table_temp.rows[i].cells[j].innerHTML=table_temp.rows[i].cells[j].innerHTML.replace("删除","");
}
}
}
window.print();
change();
$("#win_print").fadeIn(0);
}
//机房下拉列表改变时调用函数
function change_address()
{
change();
}
//第几周下拉列表改变时调用函数
function change_week()
{
change();
}
//获取当前表单数据
function change()
{
var table_temp = document.getElementById("s_week");//表格
var year = $("#year").val();//获取年份
var h_school = $("#h_school").children('option:selected').val();
var address = $("#address").children('option:selected').val();
var temp = document.getElementById("week_select");//获取周次
week= temp.options[temp.selectedIndex].value;
time = year+''+h_school+''+address+''+week;
//日历相关
var week_rili = temp.options[temp.selectedIndex].text;
//alert(time);
var year_rili = $("#year_rili").val();
var month_rili = $("#month_rili").val();
var day_rili = $("#day_rili").val();
var flag_year = rili(year_rili,month_rili,day_rili);
table_temp.rows[0].cells[1].innerHTML = "星期一 ["+time_array[week_rili][1]+"]";
table_temp.rows[0].cells[2].innerHTML = "星期二 ["+time_array[week_rili][2]+"]";
table_temp.rows[0].cells[3].innerHTML = "星期三 ["+time_array[week_rili][3]+"]";
table_temp.rows[0].cells[4].innerHTML = "星期四 ["+time_array[week_rili][4]+"]";
table_temp.rows[0].cells[5].innerHTML = "星期五 ["+time_array[week_rili][5]+"]";
table_temp.rows[0].cells[6].innerHTML = "星期六 ["+time_array[week_rili][6]+"]";
table_temp.rows[0].cells[7].innerHTML = "星期日 ["+time_array[week_rili][7]+"]";
//调用动态填写表格函数
chuancan(time);
}
function chuancan(selected)
{
//selected为前12位,即没有节次和第几周
//JQ的ajax返回id为selected的数据
$.ajax({
type: "POST",
url: "ajaxChangeTable",
data: "time_add="+selected,
success: function(msg)
{
var temp = document.getElementById("s_week");
var change,cnt=0;
change=msg.split("@");//分割返回数据
//alert(msg);
if(msg == '')
{
for(i=1;i<=5;i++)
for(j=1;j<=7;j++)
temp.rows[i].cells[j].innerHTML="";
}
else
{
for(i=1;i<=5;i++)
{
for(j=1;j<=7;j++)
{
lock = change[cnt].substr(0,1);
change[cnt] = change[cnt].substr(1);
tips = change[cnt].split("备注:");
//alert(lock);
if(lock=='2')
{
temp.rows[i].cells[j].innerHTML=change[cnt]+"<div class=\"course_text\"><a style = \"color:red;\" class=\"prime_a\" onclick=\"deleted("+selected+","+i+","+j+")\">删除</a></div>";
}
else if(lock=='0')
{
temp.rows[i].cells[j].innerHTML="<div class=\"course_text\" >管理员已加锁<p style=\"margin:0px;\">备注:"+tips[1]+"<p></div><div class=\"course_text\" ><a class=\"btn btn-mini btn-danger\" onclick=\"deleted("+selected+","+i+","+j+")\">删除</a></div>"
}
else
{
var temp = document.getElementById("s_week");
temp.rows[i].cells[j].innerHTML="<div class=\"course_text\"><a onclick=\"paike("+selected+","+i+","+j+")\" class=\"btn btn-mini btn-info\">加锁</a> <a onclick=\"teacherPaike("+selected+","+i+","+j+")\" class=\"btn btn-mini btn-success\">排课</a> <div>";
}
cnt++;
}
}
}
}
});
}
function time_limit(xingqi)
{
var t = document.getElementById("week_select");//获取周次
var zhou = t.options[t.selectedIndex].text;
var servers_time = $("#servers_time").val().split("@");
var local_time=time_array[zhou][xingqi];
local_time=local_time.replace("月","日");
local_time=local_time.split("日");
var local_mon=parseInt(local_time[0]);
var servers_mon=parseInt(servers_time[0]);
var local_day=parseInt(local_time[1]);
var servers_day=parseInt(servers_time[1]);
if(servers_mon<local_mon)
{
//alert(servers_mon+"<"+local_mon);
return 1;
}
else if(servers_mon==local_mon && servers_day<=local_day)
{
return 1;
}
else if((servers_mon >= 8 && servers_mon <= 12) && local_mon == 1)
{
return 1;
}
else
{ return 0;}
}
function teacherPaike(time,row,cell)
{
if(time_limit(cell)==0)
{
alert("日期已过,不允许排课");
}
else
{
//document.form.add.value="添加"
var temp = document.getElementById("s_week");
time_add = time+''+row+''+cell;
$("#teacherTime").val(time_add)//给存储时间地址ID赋值
//alert(time_add);
$('#mask').css({'zIndex':'5'});
$('#mask').animate({'opacity':'0.5'},200);
$('#teacherUp').fadeIn(200);
}
}
//获取点击坐标 显示div隐藏排课层
function paike(time,row,cell)
{
time_add = time+''+row+''+cell;
$("#time").val(time_add);//给存储时间地址ID赋值
//alert(time_add);
$('#mask').css({'zIndex':'5'});
$('#mask').animate({'opacity':'0.8'},200);
$('#up').fadeIn(200);
}
//删除排课
function deleted(time,row,cell)
{
time_add = time+''+row+''+cell;
var conf = confirm("是否删除此排课");
if(conf)
{
$.ajax({
type: "POST",
url: "ajaxDeleteLock",
data: "time_add="+time_add,
success: function(msg)
{
//alert(msg);
if(msg=='1')
{
//$('#up').fadeOut(100)
chuancan(time_add.substr(0,12));
}
else
{
alert("删除失败");
//$('#up').fadeOut(100);
chuancan(time_add.substr(0,12));
}
}
});
}
}
//确定按钮 用来加一门课
function resure()
{
if($("#tips")=="")
{
alert("您需要输入说明!");
$("#tips").focus();
}
else
{
var student_id = "";
var course_id = "00000000";
time_add = $("#time").val();
tips = $("#tips").val();;
//alert(time_add);
//通过ajax给数据库添加一个课程安排
$.ajax({
type: "POST",
url: "ajaxAddLock",
data: "time_add="+time_add+"&course_id="+course_id+"&student_id="+student_id+"&tips="+tips,
success: function(msg)
{
//alert(msg);
if(msg=='1')
{
alert("加锁成功");
chuancan(time_add.substr(0,12));
$('#mask').animate({'opacity':'0'},function(){$('#mask').css({'zIndex':'-5'});});
$("#up").fadeOut(100);
}
else
{
alert("加锁失败");
$('#mask').animate({'opacity':'0'},function(){$('#mask').css({'zIndex':'-5'});});
$('#up').fadeOut(100);
chuancan(time_add.substr(0,12));
}
}
});
}
//alert(student_id+''+time_add+course_id);
}
//取消按钮,返回并更新页面
function cancel()
{
$('#mask').animate({'opacity':'0'},function(){$('#mask').css({'zIndex':'-5'});});
$('#up').fadeOut(500);
time_add = $("#time").val();
chuancan(time_add.substr(0,12));
}
//确定按钮 用来加一门课
function teacherResure()
{
if($("#teacherTips")=="")
{
alert("您需要输入说明!");
$("#teacherTips").focus();
}
else
{
var student_id = "";
var course_id = "00000000";
time_add = $("#time").val();
tips = $("#teacherTips").val();;
//alert(time_add);
//通过ajax给数据库添加一个课程安排
$.ajax({
type: "POST",
url: "add_lock.ajax.php",
data: "time_add="+time_add+"&course_id="+course_id+"&student_id="+student_id+"&tips="+tips,
success: function(msg)
{
//alert(msg);
if(msg=='1')
{
alert("加锁成功");
chuancan(time_add.substr(0,12));
$('#mask').animate({'opacity':'0'},function(){$('#mask').css({'zIndex':'-5'});});
$("#teacherUp").fadeOut(100);
}
else
{
alert("加锁失败");
$('#mask').animate({'opacity':'0'},function(){$('#mask').css({'zIndex':'-5'});});
$('#teacherUp').fadeOut(100);
chuancan(time_add.substr(0,12));
}
}
});
}
//alert(student_id+''+time_add+course_id);
}
function teacherCancel()
{
$('#mask').animate({'opacity':'0'},function(){$('#mask').css({'zIndex':'-5'});});
$('#teacherUp').fadeOut(500);
time_add = $("#teacherTime").val();
chuancan(time_add.substr(0,12));
}
//普通课
var renxuanke_or_putongke=1;
function putongke()
{
renxuanke_or_putongke=1;
//select_ini("school","01");//设置学院默认值为信息学院
$("#school").attr("disabled",false);
$("#major").attr("disabled",false);
$("#grade").attr("disabled",false);
$("#w_class").attr("disabled",false);
}
//任选课
function renxuanke()
{
renxuanke_or_putongke=0;
select_ini("school","");//设置学院默认值为空即{==请选择学院==}
select_ini("major","");
select_ini("grade","");
select_ini("w_class","");
//禁用部分下拉列表
$("#school").attr("disabled",true);
$("#major").attr("disabled",true);
$("#grade").attr("disabled",true);
$("#w_class").attr("disabled",true);
}
function select_ini(select_name,select_value)
{
var s = document.getElementById(select_name);
var ops = s.options;
for(var i=0;i<ops.length; i++)
{
var tempValue = ops[i].value;
if(tempValue == select_value)
{
ops[i].selected = true;
}
}
}
</script>
</body>
</html> |
.simpleHomePage {
min-width: 700px;
width: 100%;
margin: 0 auto;
padding: 50px;
}
.sweetLoading {
position: fixed;
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.1);
z-index: 2;
cursor: pointer;
}
.simpleHomePage .title,
.simpleHomePage .loginInfo,
.simpleHomePage .logout {
font-size: 18px;
color: #B2B2B2;
margin-top: 50px;
margin-bottom: 20px;
text-align: center;
}
.simpleHomePage .loginInfo {
font-size: 24px;
margin: 0;
}
.simpleHomePage .logout {
margin: 0;
color: #0098DB;
cursor: pointer;
}
.simpleHomePage .boxFile {
border: 1px solid #CCC;
width: 250px;
height: 200px;
padding: 10px;
background: #F2F2F2;
color: #B2B2B2;
text-align: center;
margin: 0 auto;
}
.simpleHomePage .containerUpload {
width: 600px;
margin: 0 auto;
}
.simpleHomePage .containerDownload {
background: #FFF;
width: 100%;
height: auto;
min-height: 350px;
padding: 20px;
box-shadow: 0 0 11px 4px #CCC;
margin-top: 30px;
margin-bottom: 20px;
}
.integrationProgress table {
background: #f2f2f2;
width: 100%;
margin-top: 50px;
margin-bottom: 20px;
text-align: left;
border: 1px solid #cccccc;
}
.integrationProgress th, .integrationProgress td {
border-bottom: 1px solid #cccccc;
padding: 6px 20px;
border-right: 1px solid #cccccc;
}
|
@ECHO OFF
REM Makes the Sphinx documentation files
FOR %%a IN (%~dp0\.) do set RACCOON=%%~dpa
set OLD_PYTHONPATH=%PYTHONPATH%
set PYTHONPATH=%PYTHONPATH%;%RACCOON%
sphinx-apidoc -f -o . ../raccoon
./make.bat html
set PYTHONPATH=%OLD_PYTHONPATH%
|
#ifndef _ALIGNMENT_H_
#define _ALIGNMENT_H_
enum class horizontal_align {
left = 0,
center = 1,
right = 2
};
enum class vertical_align {
bottom = 0,
center = 1,
top = 2
};
#endif
|
package exemples.spring.formation;
public class Chassis {
private int valeur1;
private int valeur2;
public Chassis(int valeur1, int valeur2) {
this.valeur1 = valeur1;
this.valeur2 = valeur2;
}
public String id() {
return "Lotus Exige 240 R : valeur1 = " + this.valeur1 + ", valeur2 = " + this.valeur2;
}
public void freiner() {
System.out.println("Freinage voiture");
}
}
|
------------------------------------------------------------------------------
-- Copyright [2014] [Ztachip Technologies Inc]
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
------------------------------------------------------------------------------
library std;
use std.standard.all;
LIBRARY ieee;
USE ieee.std_logic_1164.all;
use IEEE.numeric_std.all;
use work.hpc_pkg.all;
------
-- Implement write-back stage of MIPS pipeline
-- Refer to http://en.wikipedia.org/wiki/MIPS_instruction_set for more information
-- on MIPS pipeline
--
ENTITY mcore_wb IS
PORT(
SIGNAL clock_in : IN STD_LOGIC;
SIGNAL reset_in : IN STD_LOGIC;
-- Input from MEM stage
SIGNAL wb_addr_in : IN mcore_regno_t;
SIGNAL wb_data_in : IN mregister_t;
SIGNAL wb_ena_in : IN STD_LOGIC;
-- Interface to register file
SIGNAL reg_wren_out :OUT STD_LOGIC;
SIGNAL reg_write_addr_out :OUT mcore_regno_t;
SIGNAL reg_write_data_out :OUT mregister_t
);
END mcore_wb;
ARCHITECTURE behaviour OF mcore_wb IS
BEGIN
reg_write_addr_out <= wb_addr_in;
reg_write_data_out <= wb_data_in;
reg_wren_out <= wb_ena_in;
END behaviour;
|
module Backprop
import public Backprop.CanBack
import public Backprop.Math
import public Backprop.Node
import public Data.List.Quantifiers
|
-- megafunction wizard: %PLL Intel FPGA IP v18.0%
-- GENERATION: XML
-- clk_3_255_MHz.vhd
-- Generated using ACDS version 18.0 614
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.numeric_std.all;
entity clk_3_255_MHz is
port (
refclk : in std_logic := '0'; -- refclk.clk
rst : in std_logic := '0'; -- reset.reset
outclk_0 : out std_logic; -- outclk0.clk
locked : out std_logic -- locked.export
);
end entity clk_3_255_MHz;
architecture rtl of clk_3_255_MHz is
component clk_3_255_MHz_0002 is
port (
refclk : in std_logic := 'X'; -- clk
rst : in std_logic := 'X'; -- reset
outclk_0 : out std_logic; -- clk
locked : out std_logic -- export
);
end component clk_3_255_MHz_0002;
begin
clk_3_255_mhz_inst : component clk_3_255_MHz_0002
port map (
refclk => refclk, -- refclk.clk
rst => rst, -- reset.reset
outclk_0 => outclk_0, -- outclk0.clk
locked => locked -- locked.export
);
end architecture rtl; -- of clk_3_255_MHz
-- Retrieval info: <?xml version="1.0"?>
--<!--
-- Generated by Altera MegaWizard Launcher Utility version 1.0
-- ************************************************************
-- THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE!
-- ************************************************************
-- Copyright (C) 1991-2018 Altera Corporation
-- Any megafunction design, and related net list (encrypted or decrypted),
-- support information, device programming or simulation file, and any other
-- associated documentation or information provided by Altera or a partner
-- under Altera's Megafunction Partnership Program may be used only to
-- program PLD devices (but not masked PLD devices) from Altera. Any other
-- use of such megafunction design, net list, support information, device
-- programming or simulation file, or any other related documentation or
-- information is prohibited for any other purpose, including, but not
-- limited to modification, reverse engineering, de-compiling, or use with
-- any other silicon devices, unless such use is explicitly licensed under
-- a separate agreement with Altera or a megafunction partner. Title to
-- the intellectual property, including patents, copyrights, trademarks,
-- trade secrets, or maskworks, embodied in any such megafunction design,
-- net list, support information, device programming or simulation file, or
-- any other related documentation or information provided by Altera or a
-- megafunction partner, remains with Altera, the megafunction partner, or
-- their respective licensors. No other licenses, including any licenses
-- needed under any third party's intellectual property, are provided herein.
---->
-- Retrieval info: <instance entity-name="altera_pll" version="18.0" >
-- Retrieval info: <generic name="debug_print_output" value="false" />
-- Retrieval info: <generic name="debug_use_rbc_taf_method" value="false" />
-- Retrieval info: <generic name="device_family" value="Cyclone V" />
-- Retrieval info: <generic name="device" value="5CEBA2F17A7" />
-- Retrieval info: <generic name="gui_device_speed_grade" value="1" />
-- Retrieval info: <generic name="gui_pll_mode" value="Integer-N PLL" />
-- Retrieval info: <generic name="gui_reference_clock_frequency" value="50.0" />
-- Retrieval info: <generic name="gui_channel_spacing" value="0.0" />
-- Retrieval info: <generic name="gui_operation_mode" value="direct" />
-- Retrieval info: <generic name="gui_feedback_clock" value="Global Clock" />
-- Retrieval info: <generic name="gui_fractional_cout" value="32" />
-- Retrieval info: <generic name="gui_dsm_out_sel" value="1st_order" />
-- Retrieval info: <generic name="gui_use_locked" value="true" />
-- Retrieval info: <generic name="gui_en_adv_params" value="false" />
-- Retrieval info: <generic name="gui_number_of_clocks" value="1" />
-- Retrieval info: <generic name="gui_multiply_factor" value="1" />
-- Retrieval info: <generic name="gui_frac_multiply_factor" value="1" />
-- Retrieval info: <generic name="gui_divide_factor_n" value="1" />
-- Retrieval info: <generic name="gui_cascade_counter0" value="false" />
-- Retrieval info: <generic name="gui_output_clock_frequency0" value="3.255" />
-- Retrieval info: <generic name="gui_divide_factor_c0" value="1" />
-- Retrieval info: <generic name="gui_actual_output_clock_frequency0" value="0 MHz" />
-- Retrieval info: <generic name="gui_ps_units0" value="ps" />
-- Retrieval info: <generic name="gui_phase_shift0" value="0" />
-- Retrieval info: <generic name="gui_phase_shift_deg0" value="0.0" />
-- Retrieval info: <generic name="gui_actual_phase_shift0" value="0" />
-- Retrieval info: <generic name="gui_duty_cycle0" value="50" />
-- Retrieval info: <generic name="gui_cascade_counter1" value="false" />
-- Retrieval info: <generic name="gui_output_clock_frequency1" value="100.0" />
-- Retrieval info: <generic name="gui_divide_factor_c1" value="1" />
-- Retrieval info: <generic name="gui_actual_output_clock_frequency1" value="0 MHz" />
-- Retrieval info: <generic name="gui_ps_units1" value="ps" />
-- Retrieval info: <generic name="gui_phase_shift1" value="0" />
-- Retrieval info: <generic name="gui_phase_shift_deg1" value="0.0" />
-- Retrieval info: <generic name="gui_actual_phase_shift1" value="0" />
-- Retrieval info: <generic name="gui_duty_cycle1" value="50" />
-- Retrieval info: <generic name="gui_cascade_counter2" value="false" />
-- Retrieval info: <generic name="gui_output_clock_frequency2" value="100.0" />
-- Retrieval info: <generic name="gui_divide_factor_c2" value="1" />
-- Retrieval info: <generic name="gui_actual_output_clock_frequency2" value="0 MHz" />
-- Retrieval info: <generic name="gui_ps_units2" value="ps" />
-- Retrieval info: <generic name="gui_phase_shift2" value="0" />
-- Retrieval info: <generic name="gui_phase_shift_deg2" value="0.0" />
-- Retrieval info: <generic name="gui_actual_phase_shift2" value="0" />
-- Retrieval info: <generic name="gui_duty_cycle2" value="50" />
-- Retrieval info: <generic name="gui_cascade_counter3" value="false" />
-- Retrieval info: <generic name="gui_output_clock_frequency3" value="100.0" />
-- Retrieval info: <generic name="gui_divide_factor_c3" value="1" />
-- Retrieval info: <generic name="gui_actual_output_clock_frequency3" value="0 MHz" />
-- Retrieval info: <generic name="gui_ps_units3" value="ps" />
-- Retrieval info: <generic name="gui_phase_shift3" value="0" />
-- Retrieval info: <generic name="gui_phase_shift_deg3" value="0.0" />
-- Retrieval info: <generic name="gui_actual_phase_shift3" value="0" />
-- Retrieval info: <generic name="gui_duty_cycle3" value="50" />
-- Retrieval info: <generic name="gui_cascade_counter4" value="false" />
-- Retrieval info: <generic name="gui_output_clock_frequency4" value="100.0" />
-- Retrieval info: <generic name="gui_divide_factor_c4" value="1" />
-- Retrieval info: <generic name="gui_actual_output_clock_frequency4" value="0 MHz" />
-- Retrieval info: <generic name="gui_ps_units4" value="ps" />
-- Retrieval info: <generic name="gui_phase_shift4" value="0" />
-- Retrieval info: <generic name="gui_phase_shift_deg4" value="0.0" />
-- Retrieval info: <generic name="gui_actual_phase_shift4" value="0" />
-- Retrieval info: <generic name="gui_duty_cycle4" value="50" />
-- Retrieval info: <generic name="gui_cascade_counter5" value="false" />
-- Retrieval info: <generic name="gui_output_clock_frequency5" value="100.0" />
-- Retrieval info: <generic name="gui_divide_factor_c5" value="1" />
-- Retrieval info: <generic name="gui_actual_output_clock_frequency5" value="0 MHz" />
-- Retrieval info: <generic name="gui_ps_units5" value="ps" />
-- Retrieval info: <generic name="gui_phase_shift5" value="0" />
-- Retrieval info: <generic name="gui_phase_shift_deg5" value="0.0" />
-- Retrieval info: <generic name="gui_actual_phase_shift5" value="0" />
-- Retrieval info: <generic name="gui_duty_cycle5" value="50" />
-- Retrieval info: <generic name="gui_cascade_counter6" value="false" />
-- Retrieval info: <generic name="gui_output_clock_frequency6" value="100.0" />
-- Retrieval info: <generic name="gui_divide_factor_c6" value="1" />
-- Retrieval info: <generic name="gui_actual_output_clock_frequency6" value="0 MHz" />
-- Retrieval info: <generic name="gui_ps_units6" value="ps" />
-- Retrieval info: <generic name="gui_phase_shift6" value="0" />
-- Retrieval info: <generic name="gui_phase_shift_deg6" value="0.0" />
-- Retrieval info: <generic name="gui_actual_phase_shift6" value="0" />
-- Retrieval info: <generic name="gui_duty_cycle6" value="50" />
-- Retrieval info: <generic name="gui_cascade_counter7" value="false" />
-- Retrieval info: <generic name="gui_output_clock_frequency7" value="100.0" />
-- Retrieval info: <generic name="gui_divide_factor_c7" value="1" />
-- Retrieval info: <generic name="gui_actual_output_clock_frequency7" value="0 MHz" />
-- Retrieval info: <generic name="gui_ps_units7" value="ps" />
-- Retrieval info: <generic name="gui_phase_shift7" value="0" />
-- Retrieval info: <generic name="gui_phase_shift_deg7" value="0.0" />
-- Retrieval info: <generic name="gui_actual_phase_shift7" value="0" />
-- Retrieval info: <generic name="gui_duty_cycle7" value="50" />
-- Retrieval info: <generic name="gui_cascade_counter8" value="false" />
-- Retrieval info: <generic name="gui_output_clock_frequency8" value="100.0" />
-- Retrieval info: <generic name="gui_divide_factor_c8" value="1" />
-- Retrieval info: <generic name="gui_actual_output_clock_frequency8" value="0 MHz" />
-- Retrieval info: <generic name="gui_ps_units8" value="ps" />
-- Retrieval info: <generic name="gui_phase_shift8" value="0" />
-- Retrieval info: <generic name="gui_phase_shift_deg8" value="0.0" />
-- Retrieval info: <generic name="gui_actual_phase_shift8" value="0" />
-- Retrieval info: <generic name="gui_duty_cycle8" value="50" />
-- Retrieval info: <generic name="gui_cascade_counter9" value="false" />
-- Retrieval info: <generic name="gui_output_clock_frequency9" value="100.0" />
-- Retrieval info: <generic name="gui_divide_factor_c9" value="1" />
-- Retrieval info: <generic name="gui_actual_output_clock_frequency9" value="0 MHz" />
-- Retrieval info: <generic name="gui_ps_units9" value="ps" />
-- Retrieval info: <generic name="gui_phase_shift9" value="0" />
-- Retrieval info: <generic name="gui_phase_shift_deg9" value="0.0" />
-- Retrieval info: <generic name="gui_actual_phase_shift9" value="0" />
-- Retrieval info: <generic name="gui_duty_cycle9" value="50" />
-- Retrieval info: <generic name="gui_cascade_counter10" value="false" />
-- Retrieval info: <generic name="gui_output_clock_frequency10" value="100.0" />
-- Retrieval info: <generic name="gui_divide_factor_c10" value="1" />
-- Retrieval info: <generic name="gui_actual_output_clock_frequency10" value="0 MHz" />
-- Retrieval info: <generic name="gui_ps_units10" value="ps" />
-- Retrieval info: <generic name="gui_phase_shift10" value="0" />
-- Retrieval info: <generic name="gui_phase_shift_deg10" value="0.0" />
-- Retrieval info: <generic name="gui_actual_phase_shift10" value="0" />
-- Retrieval info: <generic name="gui_duty_cycle10" value="50" />
-- Retrieval info: <generic name="gui_cascade_counter11" value="false" />
-- Retrieval info: <generic name="gui_output_clock_frequency11" value="100.0" />
-- Retrieval info: <generic name="gui_divide_factor_c11" value="1" />
-- Retrieval info: <generic name="gui_actual_output_clock_frequency11" value="0 MHz" />
-- Retrieval info: <generic name="gui_ps_units11" value="ps" />
-- Retrieval info: <generic name="gui_phase_shift11" value="0" />
-- Retrieval info: <generic name="gui_phase_shift_deg11" value="0.0" />
-- Retrieval info: <generic name="gui_actual_phase_shift11" value="0" />
-- Retrieval info: <generic name="gui_duty_cycle11" value="50" />
-- Retrieval info: <generic name="gui_cascade_counter12" value="false" />
-- Retrieval info: <generic name="gui_output_clock_frequency12" value="100.0" />
-- Retrieval info: <generic name="gui_divide_factor_c12" value="1" />
-- Retrieval info: <generic name="gui_actual_output_clock_frequency12" value="0 MHz" />
-- Retrieval info: <generic name="gui_ps_units12" value="ps" />
-- Retrieval info: <generic name="gui_phase_shift12" value="0" />
-- Retrieval info: <generic name="gui_phase_shift_deg12" value="0.0" />
-- Retrieval info: <generic name="gui_actual_phase_shift12" value="0" />
-- Retrieval info: <generic name="gui_duty_cycle12" value="50" />
-- Retrieval info: <generic name="gui_cascade_counter13" value="false" />
-- Retrieval info: <generic name="gui_output_clock_frequency13" value="100.0" />
-- Retrieval info: <generic name="gui_divide_factor_c13" value="1" />
-- Retrieval info: <generic name="gui_actual_output_clock_frequency13" value="0 MHz" />
-- Retrieval info: <generic name="gui_ps_units13" value="ps" />
-- Retrieval info: <generic name="gui_phase_shift13" value="0" />
-- Retrieval info: <generic name="gui_phase_shift_deg13" value="0.0" />
-- Retrieval info: <generic name="gui_actual_phase_shift13" value="0" />
-- Retrieval info: <generic name="gui_duty_cycle13" value="50" />
-- Retrieval info: <generic name="gui_cascade_counter14" value="false" />
-- Retrieval info: <generic name="gui_output_clock_frequency14" value="100.0" />
-- Retrieval info: <generic name="gui_divide_factor_c14" value="1" />
-- Retrieval info: <generic name="gui_actual_output_clock_frequency14" value="0 MHz" />
-- Retrieval info: <generic name="gui_ps_units14" value="ps" />
-- Retrieval info: <generic name="gui_phase_shift14" value="0" />
-- Retrieval info: <generic name="gui_phase_shift_deg14" value="0.0" />
-- Retrieval info: <generic name="gui_actual_phase_shift14" value="0" />
-- Retrieval info: <generic name="gui_duty_cycle14" value="50" />
-- Retrieval info: <generic name="gui_cascade_counter15" value="false" />
-- Retrieval info: <generic name="gui_output_clock_frequency15" value="100.0" />
-- Retrieval info: <generic name="gui_divide_factor_c15" value="1" />
-- Retrieval info: <generic name="gui_actual_output_clock_frequency15" value="0 MHz" />
-- Retrieval info: <generic name="gui_ps_units15" value="ps" />
-- Retrieval info: <generic name="gui_phase_shift15" value="0" />
-- Retrieval info: <generic name="gui_phase_shift_deg15" value="0.0" />
-- Retrieval info: <generic name="gui_actual_phase_shift15" value="0" />
-- Retrieval info: <generic name="gui_duty_cycle15" value="50" />
-- Retrieval info: <generic name="gui_cascade_counter16" value="false" />
-- Retrieval info: <generic name="gui_output_clock_frequency16" value="100.0" />
-- Retrieval info: <generic name="gui_divide_factor_c16" value="1" />
-- Retrieval info: <generic name="gui_actual_output_clock_frequency16" value="0 MHz" />
-- Retrieval info: <generic name="gui_ps_units16" value="ps" />
-- Retrieval info: <generic name="gui_phase_shift16" value="0" />
-- Retrieval info: <generic name="gui_phase_shift_deg16" value="0.0" />
-- Retrieval info: <generic name="gui_actual_phase_shift16" value="0" />
-- Retrieval info: <generic name="gui_duty_cycle16" value="50" />
-- Retrieval info: <generic name="gui_cascade_counter17" value="false" />
-- Retrieval info: <generic name="gui_output_clock_frequency17" value="100.0" />
-- Retrieval info: <generic name="gui_divide_factor_c17" value="1" />
-- Retrieval info: <generic name="gui_actual_output_clock_frequency17" value="0 MHz" />
-- Retrieval info: <generic name="gui_ps_units17" value="ps" />
-- Retrieval info: <generic name="gui_phase_shift17" value="0" />
-- Retrieval info: <generic name="gui_phase_shift_deg17" value="0.0" />
-- Retrieval info: <generic name="gui_actual_phase_shift17" value="0" />
-- Retrieval info: <generic name="gui_duty_cycle17" value="50" />
-- Retrieval info: <generic name="gui_pll_auto_reset" value="Off" />
-- Retrieval info: <generic name="gui_pll_bandwidth_preset" value="Auto" />
-- Retrieval info: <generic name="gui_en_reconf" value="false" />
-- Retrieval info: <generic name="gui_en_dps_ports" value="false" />
-- Retrieval info: <generic name="gui_en_phout_ports" value="false" />
-- Retrieval info: <generic name="gui_phout_division" value="1" />
-- Retrieval info: <generic name="gui_mif_generate" value="false" />
-- Retrieval info: <generic name="gui_enable_mif_dps" value="false" />
-- Retrieval info: <generic name="gui_dps_cntr" value="C0" />
-- Retrieval info: <generic name="gui_dps_num" value="1" />
-- Retrieval info: <generic name="gui_dps_dir" value="Positive" />
-- Retrieval info: <generic name="gui_refclk_switch" value="false" />
-- Retrieval info: <generic name="gui_refclk1_frequency" value="100.0" />
-- Retrieval info: <generic name="gui_switchover_mode" value="Automatic Switchover" />
-- Retrieval info: <generic name="gui_switchover_delay" value="0" />
-- Retrieval info: <generic name="gui_active_clk" value="false" />
-- Retrieval info: <generic name="gui_clk_bad" value="false" />
-- Retrieval info: <generic name="gui_enable_cascade_out" value="false" />
-- Retrieval info: <generic name="gui_cascade_outclk_index" value="0" />
-- Retrieval info: <generic name="gui_enable_cascade_in" value="false" />
-- Retrieval info: <generic name="gui_pll_cascading_mode" value="Create an adjpllin signal to connect with an upstream PLL" />
-- Retrieval info: </instance>
-- IPFS_FILES : clk_3_255_MHz.vho
-- RELATED_FILES: clk_3_255_MHz.vhd, clk_3_255_MHz_0002.v
|
require "bundler/setup"
Bundler.require
require 'dotenv/load'
require 'rack-flash'
ActiveRecord::Base.establish_connection({
:adapter => "sqlite3",
:database => "db/development.sqlite3"
})
require_all 'app' |
--
-- AppleScripts for Avid Pro Tools.
--
-- Script description:
-- Opens Inserts A-E panel.
--
-- (C) 2017 Ilya Putilin
-- http://github.com/fantopop
--
tell application "Finder"
tell application "System Events"
set PT to the first application process whose creator type is "PTul"
tell PT
activate
set frontmost to true
click menu item "Samples" of menu "Main Counter" of menu item "Main Counter" of menu "View" of menu bar item "View" of menu bar 1
end tell
end tell
end tell |
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r15
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xefe8, %rsi
nop
xor $60566, %r11
movups (%rsi), %xmm6
vpextrq $1, %xmm6, %rdi
nop
nop
nop
nop
add %r11, %r11
lea addresses_WC_ht+0x72ec, %rsi
lea addresses_WT_ht+0x2a02, %rdi
nop
nop
nop
and %r15, %r15
mov $10, %rcx
rep movsb
nop
nop
sub $29997, %rdi
lea addresses_WT_ht+0x7b72, %rbp
clflush (%rbp)
add $38240, %r12
movl $0x61626364, (%rbp)
nop
nop
nop
nop
dec %r12
lea addresses_D_ht+0x12b72, %rcx
nop
add %rbp, %rbp
movb $0x61, (%rcx)
nop
nop
nop
nop
sub $22198, %rsi
lea addresses_normal_ht+0x12372, %rsi
lea addresses_WC_ht+0x1b972, %rdi
nop
nop
nop
nop
nop
add %r15, %r15
mov $93, %rcx
rep movsl
nop
nop
dec %r15
lea addresses_WT_ht+0x1a372, %r11
nop
nop
nop
lfence
mov (%r11), %rbp
nop
nop
nop
nop
nop
inc %rdi
lea addresses_D_ht+0x12d95, %rsi
nop
nop
nop
nop
cmp %rcx, %rcx
movl $0x61626364, (%rsi)
nop
nop
and $26186, %rcx
lea addresses_normal_ht+0x12772, %rsi
lea addresses_WT_ht+0xde82, %rdi
nop
nop
nop
add $14322, %rbp
mov $18, %rcx
rep movsb
nop
nop
nop
nop
xor %rbp, %rbp
lea addresses_WC_ht+0x1e27d, %rbp
nop
nop
nop
nop
sub $37825, %rsi
mov $0x6162636465666768, %r15
movq %r15, %xmm4
and $0xffffffffffffffc0, %rbp
vmovaps %ymm4, (%rbp)
nop
nop
nop
nop
nop
and $16400, %rdi
lea addresses_UC_ht+0x10772, %rsi
cmp %rcx, %rcx
mov $0x6162636465666768, %r15
movq %r15, %xmm2
vmovups %ymm2, (%rsi)
xor %rdi, %rdi
lea addresses_UC_ht+0x15704, %rbp
nop
nop
add $39655, %r11
movw $0x6162, (%rbp)
nop
nop
nop
nop
nop
and %r11, %r11
lea addresses_D_ht+0x176e6, %rsi
nop
nop
nop
nop
nop
cmp %r12, %r12
mov (%rsi), %rbp
nop
nop
dec %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r15
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r15
push %r8
push %r9
push %rbp
push %rcx
// Store
lea addresses_PSE+0x9159, %rbp
sub %r12, %r12
mov $0x5152535455565758, %r10
movq %r10, %xmm2
vmovups %ymm2, (%rbp)
nop
nop
nop
nop
nop
and $5565, %rbp
// Store
lea addresses_WT+0x19172, %rcx
nop
nop
nop
nop
nop
xor $64846, %r12
movb $0x51, (%rcx)
nop
nop
cmp $45781, %r10
// Store
lea addresses_normal+0x122f2, %r9
nop
and $25208, %r8
movw $0x5152, (%r9)
and $50156, %r12
// Load
lea addresses_RW+0x90f2, %rbp
nop
nop
add %r8, %r8
mov (%rbp), %r12d
nop
xor %r8, %r8
// Store
lea addresses_PSE+0xbb72, %r15
clflush (%r15)
nop
nop
cmp %rcx, %rcx
movl $0x51525354, (%r15)
nop
cmp %r9, %r9
// Load
lea addresses_normal+0x17b72, %r8
clflush (%r8)
nop
add %rcx, %rcx
mov (%r8), %r9d
nop
nop
nop
nop
nop
sub %r12, %r12
// Load
lea addresses_PSE+0xf272, %rbp
nop
nop
nop
nop
nop
and $51114, %r9
movups (%rbp), %xmm7
vpextrq $0, %xmm7, %r8
// Exception!!!
mov (0), %r8
nop
nop
dec %r15
// Store
lea addresses_D+0x1d3e2, %r9
xor %r8, %r8
movw $0x5152, (%r9)
nop
nop
inc %r9
// Store
lea addresses_A+0x102b2, %r15
nop
xor %r9, %r9
movw $0x5152, (%r15)
nop
nop
nop
nop
and $32948, %rcx
// Faulty Load
lea addresses_PSE+0xbb72, %rbp
nop
nop
nop
nop
and %rcx, %rcx
movb (%rbp), %r12b
lea oracles, %r15
and $0xff, %r12
shlq $12, %r12
mov (%r15,%r12,1), %r12
pop %rcx
pop %rbp
pop %r9
pop %r8
pop %r15
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'size': 2, 'NT': False, 'same': True, 'congruent': 4}}
{'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 7}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 4, 'NT': False, 'same': True, 'congruent': 0}}
{'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': True, 'size': 2, 'NT': False, 'same': False, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 6}}
[Faulty Load]
{'src': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 1, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 10}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}}
{'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': True, 'size': 4, 'NT': False, 'same': False, 'congruent': 0}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': True, 'size': 32, 'NT': False, 'same': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 1}}
{'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 2}, 'OP': 'LOAD'}
{'54': 21829}
54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54
*/
|
(defproject js-framework-banchmark-reagent "1.0.0"
:url "http://github.com/reagent-project/reagent"
:license {:name "Apache-2.0"}
:description "Reagent demo"
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.946"]
[reagent "0.8.0-alpha2"]
[cljsjs/react "16.2.0-1"]
[cljsjs/react-dom "16.2.0-1"]
[cljsjs/react-dom-server "16.2.0-1"]]
:plugins [[lein-cljsbuild "1.1.7"]]
:source-paths ["src"]
;; No profiles and merging - just manual configuration for each build type
:cljsbuild
{:builds
{:client
{:source-paths ["src"]
:compiler {:source-map true
:optimizations :none
:main "demo.main"
:output-dir "out/js"
:output-to "dist/main.js"
:asset-path "out/js"}}
:prod
{:source-paths ["src"]
:compiler {:main "demo.main"
:optimizations :advanced
:elide-asserts true
:pretty-print false
:fn-invoke-direct true
:output-to "dist/main.js"
:output-dir "out"}}}})
|
{
"id": "6047a338-4fcd-4bbd-a39b-89ace4201287",
"modelName": "GMObject",
"mvc": "1.0",
"name": "o_wall",
"eventList": [
],
"maskSpriteId": "00000000-0000-0000-0000-000000000000",
"parentObjectId": "00000000-0000-0000-0000-000000000000",
"persistent": false,
"physicsAngularDamping": 0.1,
"physicsDensity": 0.5,
"physicsFriction": 0.2,
"physicsGroup": 0,
"physicsKinematic": false,
"physicsLinearDamping": 0.1,
"physicsObject": false,
"physicsRestitution": 0.1,
"physicsSensor": false,
"physicsShape": 1,
"physicsShapePoints": null,
"physicsStartAwake": true,
"solid": false,
"spriteId": "ea65429d-182e-4f8c-8922-098a4bc14a68",
"visible": true
} |
const Builder = @import("std").build.Builder;
pub fn build(b: *Builder) void {
const mode = b.standardReleaseOptions();
const exe = b.addExecutable("ircbot", "src/main.zig");
// exe.force_pic = true;
exe.linkSystemLibrary("c");
exe.linkSystemLibrary("curl");
exe.setBuildMode(mode);
exe.install();
const run_cmd = exe.run();
run_cmd.step.dependOn(b.getInstallStep());
const run_step = b.step("run", "Run the app");
run_step.dependOn(&run_cmd.step);
const tst = b.addTest("src/test.zig");
tst.linkSystemLibrary("c");
tst.linkSystemLibrary("curl");
const tst_step = b.step("test", "Test the app");
tst_step.dependOn(&tst.step);
}
|
use Mojo::Base -strict;
use Test::More;
use Cwd qw(getcwd realpath);
use Fcntl 'O_RDONLY';
use File::Basename qw(basename dirname);
use File::Spec::Functions qw(abs2rel canonpath catfile rel2abs splitdir);
use File::Temp;
use Mojo::File qw(path tempdir tempfile);
use Mojo::Util 'encode';
# Constructor
is(Mojo::File->new, canonpath(getcwd), 'same path');
is path(), canonpath(getcwd), 'same path';
is path()->to_string, canonpath(getcwd), 'same path';
is path('/foo/bar'), '/foo/bar', 'same path';
is path('foo', 'bar', 'baz'), catfile('foo', 'bar', 'baz'), 'same path';
# Tap into method chain
is path('/home')->tap(sub { $$_ .= '/sri' })->to_string, '/home/sri',
'same path';
# Children
is path('foo', 'bar')->child('baz', 'yada'),
catfile(catfile('foo', 'bar'), 'baz', 'yada'), 'same path';
# Siblings
is path('foo', 'bar')->sibling('baz', 'yada'),
catfile(scalar dirname(catfile('foo', 'bar')), 'baz', 'yada'), 'same path';
# Array
is_deeply path('foo', 'bar')->to_array, [splitdir catfile('foo', 'bar')],
'same structure';
is_deeply [@{path('foo', 'bar')}], [splitdir catfile('foo', 'bar')],
'same structure';
# Absolute
is path('file.t')->to_abs, rel2abs('file.t'), 'same path';
# Relative
is path('test.txt')->to_abs->to_rel(getcwd),
abs2rel(rel2abs('test.txt'), getcwd), 'same path';
# Resolved
is path('.')->realpath, realpath('.'), 'same path';
# Basename
is path('file.t')->to_abs->basename, basename(rel2abs 'file.t'), 'same path';
is path('file.t')->to_abs->basename('.t'), basename(rel2abs('file.t'), '.t'),
'same path';
is path('file.t')->basename('.t'), basename('file.t', '.t'), 'same path';
# Dirname
is path('file.t')->to_abs->dirname, scalar dirname(rel2abs 'file.t'),
'same path';
# Checks
ok path(__FILE__)->to_abs->is_abs, 'path is absolute';
ok !path('file.t')->is_abs, 'path is not absolute';
# Temporary directory
my $dir = tempdir;
my $path = "$dir";
ok -d $path, 'directory exists';
undef $dir;
ok !-d $path, 'directory does not exist anymore';
$dir = tempdir 'mytestXXXXX';
ok -d $dir, 'directory exists';
like $dir->basename, qr/mytest.{5}$/, 'right format';
# Temporary diectory (separate object)
$dir = Mojo::File->new(File::Temp->newdir);
$path = "$dir";
ok -d $path, 'directory exists';
undef $dir;
ok !-d $path, 'directory does not exist anymore';
# Temporary file
$dir = tempdir;
my $file = tempfile(DIR => $dir);
$path = "$file";
ok -f $path, 'file exists';
is $file->dirname, $dir, 'same directory';
is $file->spurt('test')->slurp, 'test', 'right result';
undef $file;
ok !-f $path, 'file does not exist anymore';
# Open
$file = tempfile;
$file->spurt("test\n123\n");
my $handle = $file->open('<');
is_deeply [<$handle>], ["test\n", "123\n"], 'right structure';
$handle = $file->open('r');
is_deeply [<$handle>], ["test\n", "123\n"], 'right structure';
$handle = $file->open(O_RDONLY);
is_deeply [<$handle>], ["test\n", "123\n"], 'right structure';
$file->spurt(encode('UTF-8', '♥'));
$handle = $file->open('<:encoding(UTF-8)');
is_deeply [<$handle>], ['♥'], 'right structure';
$dir = tempdir;
eval { $dir->child('does_not_exist')->open('<') };
like $@, qr/^Can't open file/, 'right error';
eval { $dir->child('does_not_exist')->slurp };
like $@, qr/^Can't open file/, 'right error';
eval { $dir->child('foo')->make_path->spurt('fail') };
like $@, qr/^Can't open file/, 'right error';
# Make path
$dir = tempdir;
my $subdir = $dir->child('foo', 'bar');
ok !-d $subdir, 'directory does not exist anymore';
$subdir->make_path;
ok -d $subdir, 'directory exists';
my $nextdir = $dir->child('foo', 'foobar')->make_path({error => \my $error});
ok -d $nextdir, 'directory exists';
ok $error, 'directory already existed';
# Remove
$dir = tempdir;
$dir->child('test.txt')->spurt('test!');
ok -e $dir->child('test.txt'), 'file exists';
is $dir->child('test.txt')->slurp, 'test!', 'right content';
ok !-e $dir->child('test.txt')->remove->touch->remove->remove,
'file no longer exists';
eval { $dir->child('foo')->make_path->remove };
like $@, qr/^Can't remove file/, 'right error';
# Remove tree
$dir = tempdir;
$dir->child('foo', 'bar')->make_path->child('test.txt')->spurt('test!');
is $dir->child('foo', 'bar', 'test.txt')->slurp, 'test!', 'right content';
$subdir = $dir->child('foo', 'foobar')->make_path;
ok -e $subdir->child('bar')->make_path->child('test.txt')->spurt('test'),
'file created';
ok -d $subdir->remove_tree({keep_root => 1}), 'directory still exists';
ok !-e $subdir->child('bar'), 'children have been removed';
ok !-e $dir->child('foo')->remove_tree->to_string, 'directory has been removed';
# Move to
$dir = tempdir;
my $destination = $dir->child('dest.txt');
my $source = $dir->child('src.txt')->spurt('works!');
ok -f $source, 'file exists';
ok !-f $destination, 'file does not exists';
is $source->move_to($destination)->to_string, $destination, 'same path';
ok !-f $source, 'file no longer exists';
ok -f $destination, 'file exists';
is $destination->slurp, 'works!', 'right content';
$subdir = $dir->child('test')->make_path;
my $destination2 = $destination->move_to($subdir);
is $destination2, $subdir->child($destination->basename), 'same path';
ok !-f $destination, 'file no longer exists';
ok -f $destination2, 'file exists';
is $destination2->slurp, 'works!', 'right content';
# Copy to
$dir = tempdir;
$destination = $dir->child('dest.txt');
$source = $dir->child('src.txt')->spurt('works!');
ok -f $source, 'file exists';
ok !-f $destination, 'file does not exists';
is $source->copy_to($destination)->to_string, $destination, 'same path';
ok -f $source, 'file still exists';
ok -f $destination, 'file also exists now';
is $source->slurp, 'works!', 'right content';
is $destination->slurp, 'works!', 'right content';
$subdir = $dir->child('test')->make_path;
$destination2 = $destination->copy_to($subdir);
is $destination2, $subdir->child($destination->basename), 'same path';
ok -f $destination, 'file still exists';
ok -f $destination2, 'file also exists now';
is $destination->slurp, 'works!', 'right content';
is $destination2->slurp, 'works!', 'right content';
# Change permissions
$dir = tempdir;
eval { $dir->child('does_not_exist')->chmod(644) };
like $@, qr/^Can't chmod file/, 'right error';
# Stat
$dir = tempdir;
is $dir->child('test.txt')->spurt('1234')->stat->size, 4, 'right size';
# Lstat
$dir = tempdir;
my $orig = $dir->child('test.txt')->spurt('');
my $link = $orig->sibling('test.link');
SKIP: {
skip 'symlinks unimplemented', 2 unless eval { symlink $orig, $link };
is $link->stat->size, 0, 'target file is empty';
isnt $link->lstat->size, 0, 'link is not empty';
}
# List
is_deeply path('does_not_exist')->list->to_array, [], 'no files';
is_deeply path(__FILE__)->list->to_array, [], 'no files';
my $lib = path(__FILE__)->sibling('lib', 'Mojo');
my @files = map { path($lib)->child(split '/') } (
'DeprecationTest.pm', 'LoaderException.pm',
'LoaderException2.pm', 'TestConnectProxy.pm'
);
is_deeply path($lib)->list->map('to_string')->to_array, \@files, 'right files';
unshift @files, $lib->child('.hidden.txt')->to_string;
is_deeply path($lib)->list({hidden => 1})->map('to_string')->to_array, \@files,
'right files';
@files = map { path($lib)->child(split '/') } (
'BaseTest', 'DeprecationTest.pm',
'LoaderException.pm', 'LoaderException2.pm',
'LoaderTest', 'Server',
'TestConnectProxy.pm'
);
is_deeply path($lib)->list({dir => 1})->map('to_string')->to_array, \@files,
'right files';
my @hidden = map { path($lib)->child(split '/') } '.hidden.txt', '.test';
is_deeply path($lib)->list({dir => 1, hidden => 1})->map('to_string')->to_array,
[@hidden, @files], 'right files';
# List tree
is_deeply path('does_not_exist')->list_tree->to_array, [], 'no files';
is_deeply path(__FILE__)->list_tree->to_array, [], 'no files';
@files = map { path($lib)->child(split '/') } (
'BaseTest/Base1.pm', 'BaseTest/Base2.pm',
'BaseTest/Base3.pm', 'DeprecationTest.pm',
'LoaderException.pm', 'LoaderException2.pm',
'LoaderTest/A.pm', 'LoaderTest/B.pm',
'LoaderTest/C.pm', 'Server/Morbo/Backend/TestBackend.pm',
'TestConnectProxy.pm'
);
is_deeply path($lib)->list_tree->map('to_string')->to_array, \@files,
'right files';
@hidden = map { path($lib)->child(split '/') } '.hidden.txt',
'.test/hidden.txt';
is_deeply path($lib)->list_tree({hidden => 1})->map('to_string')->to_array,
[@hidden, @files], 'right files';
my @all = map { path($lib)->child(split '/') } (
'.hidden.txt', '.test',
'.test/hidden.txt', 'BaseTest',
'BaseTest/Base1.pm', 'BaseTest/Base2.pm',
'BaseTest/Base3.pm', 'DeprecationTest.pm',
'LoaderException.pm', 'LoaderException2.pm',
'LoaderTest', 'LoaderTest/A.pm',
'LoaderTest/B.pm', 'LoaderTest/C.pm',
'Server', 'Server/Morbo',
'Server/Morbo/Backend', 'Server/Morbo/Backend/TestBackend.pm',
'TestConnectProxy.pm'
);
is_deeply path($lib)->list_tree({dir => 1, hidden => 1})->map('to_string')
->to_array, [@all], 'right files';
my @one = map { path($lib)->child(split '/') } (
'DeprecationTest.pm', 'LoaderException.pm',
'LoaderException2.pm', 'TestConnectProxy.pm'
);
is_deeply path($lib)->list_tree({max_depth => 1})->map('to_string')->to_array,
[@one], 'right files';
my @one_dir = map { path($lib)->child(split '/') } (
'BaseTest', 'DeprecationTest.pm',
'LoaderException.pm', 'LoaderException2.pm',
'LoaderTest', 'Server',
'TestConnectProxy.pm'
);
is_deeply path($lib)->list_tree({dir => 1, max_depth => 1})->map('to_string')
->to_array, [@one_dir], 'right files';
my @two = map { path($lib)->child(split '/') } (
'BaseTest/Base1.pm', 'BaseTest/Base2.pm',
'BaseTest/Base3.pm', 'DeprecationTest.pm',
'LoaderException.pm', 'LoaderException2.pm',
'LoaderTest/A.pm', 'LoaderTest/B.pm',
'LoaderTest/C.pm',,
'TestConnectProxy.pm'
);
is_deeply path($lib)->list_tree({max_depth => 2})->map('to_string')->to_array,
[@two], 'right files';
my @three = map { path($lib)->child(split '/') } (
'.hidden.txt', '.test',
'.test/hidden.txt', 'BaseTest',
'BaseTest/Base1.pm', 'BaseTest/Base2.pm',
'BaseTest/Base3.pm', 'DeprecationTest.pm',
'LoaderException.pm', 'LoaderException2.pm',
'LoaderTest', 'LoaderTest/A.pm',
'LoaderTest/B.pm', 'LoaderTest/C.pm',
'Server', 'Server/Morbo',
'Server/Morbo/Backend', 'TestConnectProxy.pm'
);
is_deeply path($lib)->list_tree({dir => 1, hidden => 1, max_depth => 3})
->map('to_string')->to_array, [@three], 'right files';
# Touch
$dir = tempdir;
$file = $dir->child('test.txt');
ok !-e $file, 'file does not exist';
ok -e $file->touch, 'file exists';
is $file->spurt('test!')->slurp, 'test!', 'right content';
is $file->touch->slurp, 'test!', 'right content';
my $future = time + 1000;
utime $future, $future, $file->to_string;
is $file->stat->mtime, $future, 'right mtime';
isnt $file->touch->stat->mtime, $future, 'different mtime';
# I/O
$dir = tempdir;
$file = $dir->child('test.txt')->spurt('just works!');
is $file->slurp, 'just works!', 'right content';
is $file->spurt('w', 'orks', ' too!')->slurp, 'works too!', 'right content';
{
no warnings 'redefine';
local *IO::Handle::syswrite = sub { $! = 0; 5 };
eval { $file->spurt("just\nworks!") };
like $@, qr/Can't write to file ".*/, 'right error';
}
done_testing();
|
/**
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@author Canwei He
*/
lexer grammar HiveLexer;
//关键词
KW_TRUE : 'TRUE';
KW_FALSE : 'FALSE';
KW_ALL : 'ALL';
KW_NONE: 'NONE';
KW_AND : 'AND';
KW_OR : 'OR';
KW_NOT : 'NOT' | '!';
KW_LIKE : 'LIKE';
KW_ANY : 'ANY';
KW_IF : 'IF';
KW_EXISTS : 'EXISTS';
KW_ASC : 'ASC';
KW_DESC : 'DESC';
KW_NULLS : 'NULLS';
KW_LAST : 'LAST';
KW_ORDER : 'ORDER';
KW_GROUP : 'GROUP';
KW_BY : 'BY';
KW_HAVING : 'HAVING';
KW_WHERE : 'WHERE';
KW_FROM : 'FROM';
KW_AS : 'AS';
KW_SELECT : 'SELECT';
KW_DISTINCT : 'DISTINCT';
KW_INSERT : 'INSERT';
KW_OVERWRITE : 'OVERWRITE';
KW_OUTER : 'OUTER';
KW_UNIQUEJOIN : 'UNIQUEJOIN';
KW_PRESERVE : 'PRESERVE';
KW_JOIN : 'JOIN';
KW_LEFT : 'LEFT';
KW_RIGHT : 'RIGHT';
KW_FULL : 'FULL';
KW_ON : 'ON';
KW_PARTITION : 'PARTITION';
KW_PARTITIONS : 'PARTITIONS';
KW_TABLE: 'TABLE';
KW_TABLES: 'TABLES';
KW_COLUMNS: 'COLUMNS';
KW_INDEX: 'INDEX';
KW_INDEXES: 'INDEXES';
KW_REBUILD: 'REBUILD';
KW_FUNCTIONS: 'FUNCTIONS';
KW_SHOW: 'SHOW';
KW_MSCK: 'MSCK';
KW_REPAIR: 'REPAIR';
KW_DIRECTORY: 'DIRECTORY';
KW_LOCAL: 'LOCAL';
KW_TRANSFORM : 'TRANSFORM';
KW_USING: 'USING';
KW_CLUSTER: 'CLUSTER';
KW_DISTRIBUTE: 'DISTRIBUTE';
KW_SORT: 'SORT';
KW_UNION: 'UNION';
KW_EXCEPT: 'EXCEPT';
KW_LOAD: 'LOAD';
KW_EXPORT: 'EXPORT';
KW_IMPORT: 'IMPORT';
KW_REPLICATION: 'REPLICATION';
KW_METADATA: 'METADATA';
KW_DATA: 'DATA';
KW_INPATH: 'INPATH';
KW_IS: 'IS';
KW_NULL: 'NULL';
KW_CREATE: 'CREATE';
KW_EXTERNAL: 'EXTERNAL';
KW_ALTER: 'ALTER';
KW_CHANGE: 'CHANGE';
KW_COLUMN: 'COLUMN';
KW_FIRST: 'FIRST';
KW_AFTER: 'AFTER';
KW_DESCRIBE: 'DESCRIBE';
KW_DROP: 'DROP';
KW_RENAME: 'RENAME';
KW_TO: 'TO';
KW_COMMENT: 'COMMENT';
KW_BOOLEAN: 'BOOLEAN';
KW_TINYINT: 'TINYINT';
KW_SMALLINT: 'SMALLINT';
KW_INT: 'INT' | 'INTEGER';
KW_BIGINT: 'BIGINT';
KW_FLOAT: 'FLOAT';
KW_DOUBLE: 'DOUBLE';
KW_PRECISION: 'PRECISION';
KW_DATE: 'DATE';
KW_DATETIME: 'DATETIME';
KW_TIMESTAMP: 'TIMESTAMP';
KW_TIMESTAMPLOCALTZ: 'TIMESTAMPLOCALTZ';
KW_TIME: 'TIME';
KW_ZONE: 'ZONE';
KW_INTERVAL: 'INTERVAL';
KW_DECIMAL: 'DECIMAL' | 'NUMERIC';
KW_STRING: 'STRING';
KW_CHAR: 'CHAR';
KW_VARCHAR: 'VARCHAR';
KW_ARRAY: 'ARRAY';
KW_STRUCT: 'STRUCT';
KW_MAP: 'MAP';
KW_UNIONTYPE: 'UNIONTYPE';
KW_REDUCE: 'REDUCE';
KW_PARTITIONED: 'PARTITIONED';
KW_CLUSTERED: 'CLUSTERED';
KW_SORTED: 'SORTED';
KW_INTO: 'INTO';
KW_BUCKETS: 'BUCKETS';
KW_ROW: 'ROW';
KW_ROWS: 'ROWS';
KW_FORMAT: 'FORMAT';
KW_DELIMITED: 'DELIMITED';
KW_FIELDS: 'FIELDS';
KW_TERMINATED: 'TERMINATED';
KW_ESCAPED: 'ESCAPED';
KW_COLLECTION: 'COLLECTION';
KW_ITEMS: 'ITEMS';
KW_KEYS: 'KEYS';
KW_KEY_TYPE: '$KEY$';
KW_KILL: 'KILL';
KW_LINES: 'LINES';
KW_STORED: 'STORED';
KW_FILEFORMAT: 'FILEFORMAT';
KW_INPUTFORMAT: 'INPUTFORMAT';
KW_OUTPUTFORMAT: 'OUTPUTFORMAT';
KW_INPUTDRIVER: 'INPUTDRIVER';
KW_OUTPUTDRIVER: 'OUTPUTDRIVER';
KW_ENABLE: 'ENABLE';
KW_DISABLE: 'DISABLE';
KW_LOCATION: 'LOCATION';
KW_TABLESAMPLE: 'TABLESAMPLE';
KW_BUCKET: 'BUCKET';
KW_OUT: 'OUT';
KW_OF: 'OF';
KW_PERCENT: 'PERCENT';
KW_CAST: 'CAST';
KW_ADD: 'ADD';
KW_REPLACE: 'REPLACE';
KW_RLIKE: 'RLIKE';
KW_REGEXP: 'REGEXP';
KW_TEMPORARY: 'TEMPORARY';
KW_FUNCTION: 'FUNCTION';
KW_MACRO: 'MACRO';
KW_FILE: 'FILE';
KW_JAR: 'JAR';
KW_EXPLAIN: 'EXPLAIN';
KW_EXTENDED: 'EXTENDED';
KW_FORMATTED: 'FORMATTED';
KW_DEPENDENCY: 'DEPENDENCY';
KW_LOGICAL: 'LOGICAL';
KW_SERDE: 'SERDE';
KW_WITH: 'WITH';
KW_DEFERRED: 'DEFERRED';
KW_SERDEPROPERTIES: 'SERDEPROPERTIES';
KW_DBPROPERTIES: 'DBPROPERTIES';
KW_LIMIT: 'LIMIT';
KW_OFFSET: 'OFFSET';
KW_SET: 'SET';
KW_UNSET: 'UNSET';
KW_TBLPROPERTIES: 'TBLPROPERTIES';
KW_IDXPROPERTIES: 'IDXPROPERTIES';
KW_VALUE_TYPE: '$VALUE$';
KW_ELEM_TYPE: '$ELEM$';
KW_DEFINED: 'DEFINED';
KW_CASE: 'CASE';
KW_WHEN: 'WHEN';
KW_THEN: 'THEN';
KW_ELSE: 'ELSE';
KW_END: 'END';
KW_MAPJOIN: 'MAPJOIN';
KW_STREAMTABLE: 'STREAMTABLE';
KW_CLUSTERSTATUS: 'CLUSTERSTATUS';
KW_UTC: 'UTC';
KW_UTCTIMESTAMP: 'UTC_TMESTAMP';
KW_LONG: 'LONG';
KW_DELETE: 'DELETE';
KW_PLUS: 'PLUS';
KW_MINUS: 'MINUS';
KW_FETCH: 'FETCH';
KW_INTERSECT: 'INTERSECT';
KW_VIEW: 'VIEW';
KW_VIEWS: 'VIEWS';
KW_IN: 'IN';
KW_DATABASE: 'DATABASE';
KW_DATABASES: 'DATABASES';
KW_MATERIALIZED: 'MATERIALIZED';
KW_SCHEMA: 'SCHEMA';
KW_SCHEMAS: 'SCHEMAS';
KW_GRANT: 'GRANT';
KW_REVOKE: 'REVOKE';
KW_SSL: 'SSL';
KW_UNDO: 'UNDO';
KW_LOCK: 'LOCK';
KW_LOCKS: 'LOCKS';
KW_UNLOCK: 'UNLOCK';
KW_SHARED: 'SHARED';
KW_EXCLUSIVE: 'EXCLUSIVE';
KW_PROCEDURE: 'PROCEDURE';
KW_UNSIGNED: 'UNSIGNED';
KW_WHILE: 'WHILE';
KW_READ: 'READ';
KW_READS: 'READS';
KW_PURGE: 'PURGE';
KW_RANGE: 'RANGE';
KW_ANALYZE: 'ANALYZE';
KW_BEFORE: 'BEFORE';
KW_BETWEEN: 'BETWEEN';
KW_BOTH: 'BOTH';
KW_BINARY: 'BINARY';
KW_CROSS: 'CROSS';
KW_CONTINUE: 'CONTINUE';
KW_CURSOR: 'CURSOR';
KW_TRIGGER: 'TRIGGER';
KW_RECORDREADER: 'RECORDREADER';
KW_RECORDWRITER: 'RECORDWRITER';
KW_SEMI: 'SEMI';
KW_LATERAL: 'LATERAL';
KW_TOUCH: 'TOUCH';
KW_ARCHIVE: 'ARCHIVE';
KW_UNARCHIVE: 'UNARCHIVE';
KW_COMPUTE: 'COMPUTE';
KW_STATISTICS: 'STATISTICS';
KW_USE: 'USE';
KW_OPTION: 'OPTION';
KW_CONCATENATE: 'CONCATENATE';
KW_SHOW_DATABASE: 'SHOW_DATABASE';
KW_UPDATE: 'UPDATE';
KW_RESTRICT: 'RESTRICT';
KW_CASCADE: 'CASCADE';
KW_SKEWED: 'SKEWED';
KW_ROLLUP: 'ROLLUP';
KW_CUBE: 'CUBE';
KW_DIRECTORIES: 'DIRECTORIES';
KW_FOR: 'FOR';
KW_WINDOW: 'WINDOW';
KW_UNBOUNDED: 'UNBOUNDED';
KW_PRECEDING: 'PRECEDING';
KW_FOLLOWING: 'FOLLOWING';
KW_CURRENT: 'CURRENT';
KW_CURRENT_DATE: 'CURRENT_DATE';
KW_CURRENT_TIMESTAMP: 'CURRENT_TIMESTAMP';
KW_LESS: 'LESS';
KW_MORE: 'MORE';
KW_OVER: 'OVER';
KW_GROUPING: 'GROUPING';
KW_SETS: 'SETS';
KW_TRUNCATE: 'TRUNCATE';
KW_NOSCAN: 'NOSCAN';
KW_USER: 'USER';
KW_ROLE: 'ROLE';
KW_ROLES: 'ROLES';
KW_INNER: 'INNER';
KW_EXCHANGE: 'EXCHANGE';
KW_URI: 'URI';
KW_SERVER : 'SERVER';
KW_ADMIN: 'ADMIN';
KW_OWNER: 'OWNER';
KW_PRINCIPALS: 'PRINCIPALS';
KW_COMPACT: 'COMPACT';
KW_COMPACTIONS: 'COMPACTIONS';
KW_TRANSACTIONS: 'TRANSACTIONS';
KW_REWRITE : 'REWRITE';
KW_AUTHORIZATION: 'AUTHORIZATION';
KW_REOPTIMIZATION: 'REOPTIMIZATION';
KW_CONF: 'CONF';
KW_VALUES: 'VALUES';
KW_RELOAD: 'RELOAD';
KW_YEAR: 'YEAR' | 'YEARS';
KW_QUERY: 'QUERY';
KW_QUARTER: 'QUARTER';
KW_MONTH: 'MONTH' | 'MONTHS';
KW_WEEK: 'WEEK' | 'WEEKS';
KW_DAY: 'DAY' | 'DAYS';
KW_DOW: 'DAYOFWEEK';
KW_HOUR: 'HOUR' | 'HOURS';
KW_MINUTE: 'MINUTE' | 'MINUTES';
KW_SECOND: 'SECOND' | 'SECONDS';
KW_START: 'START';
KW_TRANSACTION: 'TRANSACTION';
KW_COMMIT: 'COMMIT';
KW_ROLLBACK: 'ROLLBACK';
KW_WORK: 'WORK';
KW_ONLY: 'ONLY';
KW_WRITE: 'WRITE';
KW_ISOLATION: 'ISOLATION';
KW_LEVEL: 'LEVEL';
KW_SNAPSHOT: 'SNAPSHOT';
KW_AUTOCOMMIT: 'AUTOCOMMIT';
KW_CACHE: 'CACHE';
KW_PRIMARY: 'PRIMARY';
KW_FOREIGN: 'FOREIGN';
KW_REFERENCES: 'REFERENCES';
KW_CONSTRAINT: 'CONSTRAINT';
KW_ENFORCED: 'ENFORCED';
KW_VALIDATE: 'VALIDATE';
KW_NOVALIDATE: 'NOVALIDATE';
KW_RELY: 'RELY';
KW_NORELY: 'NORELY';
KW_UNIQUE: 'UNIQUE';
KW_KEY: 'KEY';
KW_ABORT: 'ABORT';
KW_EXTRACT: 'EXTRACT';
KW_FLOOR: 'FLOOR';
KW_MERGE: 'MERGE';
KW_MATCHED: 'MATCHED';
KW_REPL: 'REPL';
KW_DUMP: 'DUMP';
KW_STATUS: 'STATUS';
KW_VECTORIZATION: 'VECTORIZATION';
KW_SUMMARY: 'SUMMARY';
KW_OPERATOR: 'OPERATOR';
KW_EXPRESSION: 'EXPRESSION';
KW_DETAIL: 'DETAIL';
KW_WAIT: 'WAIT';
KW_RESOURCE: 'RESOURCE';
KW_PLAN: 'PLAN';
KW_QUERY_PARALLELISM: 'QUERY_PARALLELISM';
KW_PLANS: 'PLANS';
KW_ACTIVATE: 'ACTIVATE';
KW_DEFAULT: 'DEFAULT';
KW_CHECK: 'CHECK';
KW_POOL: 'POOL';
KW_MOVE: 'MOVE';
KW_DO: 'DO';
KW_ALLOC_FRACTION: 'ALLOC_FRACTION';
KW_SCHEDULING_POLICY: 'SCHEDULING_POLICY';
KW_PATH: 'PATH';
KW_MAPPING: 'MAPPING';
KW_WORKLOAD: 'WORKLOAD';
KW_MANAGEMENT: 'MANAGEMENT';
KW_ACTIVE: 'ACTIVE';
KW_UNMANAGED: 'UNMANAGED';
KW_APPLICATION: 'APPLICATION';
KW_SYNC: 'SYNC';
// Operators
// NOTE: if you add a new function/operator, add it to sysFuncNames so that describe function _FUNC_ will work.
DOT : '.'; // generated as a part of Number rule
COLON : ':' ;
COMMA : ',' ;
SEMICOLON : ';' ;
LPAREN : '(' ;
RPAREN : ')' ;
LSQUARE : '[' ;
RSQUARE : ']' ;
LCURLY : '{';
RCURLY : '}';
EQUAL : '=' | '==';
EQUAL_NS : '<=>';
NOTEQUAL : '<>' | '!=';
LESSTHANOREQUALTO : '<=';
LESSTHAN : '<';
GREATERTHANOREQUALTO : '>=';
GREATERTHAN : '>';
DIVIDE : '/';
PLUS : '+';
MINUS : '-';
STAR : '*';
MOD : '%';
DIV : 'DIV';
AMPERSAND : '&';
TILDE : '~';
BITWISEOR : '|';
CONCATENATE : '||';
BITWISEXOR : '^';
QUESTION : '?';
DOLLAR : '$';
// LITERALS
fragment
Letter
: 'a'..'z' | 'A'..'Z'
;
fragment
HexDigit
: 'a'..'f' | 'A'..'F'
;
fragment
Digit
: '0'..'9'
;
fragment
Exponent
: ('e' | 'E') ( PLUS|MINUS )? (Digit)+
;
fragment
RegexComponent
: 'a'..'z' | 'A'..'Z' | '0'..'9' | '_'
| PLUS | STAR | QUESTION | MINUS | DOT
| LPAREN | RPAREN | LSQUARE | RSQUARE | LCURLY | RCURLY
| BITWISEXOR | BITWISEOR | DOLLAR | '!'
;
StringLiteral
: ( '\'' ( ~('\''|'\\') | ('\\' .) )* '\''
| '"' ( ~('"'|'\\') | ('\\' .) )* '"'
)+
;
CharSetLiteral
: StringLiteral
| '0' 'X' (HexDigit|Digit)+
;
IntegralLiteral
: (Digit)+ ('L' | 'S' | 'Y')
;
NumberLiteral
: Number ('D' | 'B' 'D')
;
ByteLengthLiteral
: (Digit)+ ('b' | 'B' | 'k' | 'K' | 'm' | 'M' | 'g' | 'G')
;
Number
: (Digit)+ ( DOT (Digit)* (Exponent)? | Exponent)?
;
/*
An Identifier can be:
- tableName
- columnName
- select expr alias
- lateral view aliases
- database name
- view name
- subquery alias
- function name
- ptf argument identifier
- index name
- property name for: db,tbl,partition...
- fileFormat
- role name
- privilege name
- principal name
- macro name
- hint name
- window name
*/
Identifier
: (Letter | Digit) (Letter | Digit | '_')*
| QuotedIdentifier /* though at the language level we allow all Identifiers to be QuotedIdentifiers;
at the API level only columns are allowed to be of this form */
| '`' RegexComponent+ '`'
;
QuotedIdentifier
:
'`' ( '``' | ~('`') )* '`'
;
CharSetName
: '_' (Letter | Digit | '_' | '-' | '.' | ':' )+
;
WS : (' '|'\r'|'\t'|'\n') -> channel(HIDDEN)
;
LINE_COMMENT
: '--' (~('\n'|'\r'))* -> channel(HIDDEN)
;
/*
QUERY_HINT有可能是一般注释,这时直接忽略。
也有可能是查询注释,这时用原来的逻辑提取出来
*/
QUERY_HINT
: SHOW_HINT
| HIDDEN_HINT
;
SHOW_HINT
: '/*+' (QUERY_HINT | .)*? '*/' ->channel(HIDDEN)
;
HIDDEN_HINT
: '/*' (QUERY_HINT | .)*? '*/' -> channel(HIDDEN)
;
|
--liquibase formatted sql
--changeset uk.gov.pay:add_state_to_payout
ALTER TABLE payout ADD COLUMN state TEXT;
--rollback ALTER TABLE payout DROP COLUMN state;
|
(ns portal.ui.viewer.exception
(:require [clojure.spec.alpha :as spec]
[clojure.string :as str]
[portal.colors :as c]
[portal.ui.icons :as icon]
[portal.ui.inspector :as ins]
[portal.ui.styled :as s]
[portal.ui.theme :as theme]
[reagent.core :as r]))
(spec/def ::cause string?)
(spec/def ::trace-line
(spec/cat :class symbol?
:method symbol?
:file (spec/or :str string? :nil nil?)
:line number?))
(spec/def ::trace (spec/coll-of ::trace-line))
(spec/def ::type symbol?)
(spec/def ::message string?)
(spec/def ::at ::trace-line)
(spec/def ::via
(spec/coll-of
(spec/keys :req-un [::type ::message ::at])))
(spec/def ::exception
(spec/keys :req-un [::cause ::trace ::via]))
(defn exception? [value]
(spec/valid? ::exception value))
(defn- inspect-sub-trace [trace]
(r/with-let [expanded? (r/atom (zero? (:index (first trace))))]
(let [theme (theme/use-theme)
{:keys [clj? sym class file]} (first trace)]
[:<>
[(if @expanded?
icon/chevron-down
icon/chevron-right)
{:size "sm"
:style
{:grid-column "1"
:width (* 3 (:padding theme))
:color (::c/border theme)}}]
[s/div
{:on-click #(swap! expanded? not)
:style
{:grid-column "2"
:cursor :pointer}}
[s/span
{:title file
:style {:color (if clj?
(::c/namespace theme)
(::c/package theme))}}
(if-not clj? class (namespace sym))]]
[s/span
{:style
{:grid-column "3"
:color (::c/border theme)}}
" [" (count trace) "]"]
(when @expanded?
(for [{:keys [clj? sym method line index]} trace]
[:<>
{:key index}
[s/div]
[s/div
(if clj?
(name sym)
[s/div method])]
[ins/inspector line]]))])))
(defn- analyze-trace-item [index trace]
(let [[class method file line] trace
clj-name (demunge class)
clj? (or (str/ends-with? file ".clj")
(not= clj-name class))]
(merge
{:class class
:method method
:file file
:line line
:index index}
(when clj?
{:clj? true
:sym clj-name}))))
(defn- inspect-stack-trace [trace]
(let [theme (theme/use-theme)]
[s/div
{:style
{:display :grid
:grid-template-columns "auto 1fr auto"
:align-items :center
:grid-gap [0 (:padding theme)]}}
(->> trace
(map-indexed
analyze-trace-item)
(partition-by :file)
(map
(fn [trace]
^{:key (hash trace)}
[inspect-sub-trace trace])))]))
(defn- inspect-via [via]
(let [theme (theme/use-theme)
{:keys [type message]} (first via)]
[:<>
[s/div
{:style {:text-align :center}}
[s/span
{:style
{:font-weight :bold
:margin-right (:padding theme)
:color (::c/exception theme)}}
type]
message]]))
(defn inspect-exception [value]
(let [theme (theme/use-theme)]
[s/div
{:style
{:background (::c/background2 theme)
:margin "0 auto"
:padding (:padding theme)
:box-sizing :border-box
:color (::c/text theme)
:font-size (:font-size theme)
:border-radius (:border-radius theme)
:border [1 :solid (::c/border theme)]}}
[s/div
{:style
{:margin [0 :auto]
:width :fit-content}}
[inspect-via (:via value)]
[inspect-stack-trace (:trace value)]]]))
(def viewer
{:predicate exception?
:component inspect-exception
:name :portal.viewer/ex})
|
/*** Spectra Vista SIG Data ***/
name= gr052418_0129.sig
instrument= HI: 2182093 (HR-1024i)
integration= 500.0, 40.0, 10.0, 500.0, 40.0, 10.0
scan method= Time-based, Time-based
scan coadds= 10, 116, 392, 10, 116, 392
scan time= 5, 5
scan settings= AI, AI
external data set1= 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
external data set2= 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
external data dark= 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
external data mask= 0
optic= LENS 4(1), LENS 4(1)
temp= 22.8, -5.0, -10.2, 38.1, -5.1, -10.4
battery= 8.18, 7.21
error= 0, 0
units= Radiance, Radiance
time= 2018-05-24 10:50:57, 2018-05-24 13:30:14
longitude= ,
latitude= ,
gpstime= ,
comm=
memory slot= 0, 0
factors= 0.916, 1.096, 1.000 [Overlap: Remove @ 990,1900, Matching Type: None]
data=
337.3 454.29 461.30 101.54
338.8 481.98 486.97 101.03
340.2 510.19 513.32 100.61
341.7 529.20 530.67 100.28
343.2 547.66 550.44 100.51
344.7 563.30 568.54 100.93
346.1 577.81 579.04 100.21
347.6 594.43 593.27 99.80
349.1 608.85 608.85 100.00
350.5 623.75 624.81 100.17
352.0 652.49 652.49 100.00
353.5 678.02 683.10 100.75
355.0 701.40 705.41 100.57
356.4 726.08 733.06 100.96
357.9 749.95 754.91 100.66
359.4 772.34 772.34 100.00
360.9 790.43 798.37 101.01
362.3 813.12 822.02 101.09
363.8 832.02 844.76 101.53
365.3 850.40 860.13 101.14
366.8 868.15 876.88 101.01
368.2 896.83 900.74 100.44
369.7 919.94 922.90 100.32
371.2 949.73 956.76 100.74
372.6 981.35 987.46 100.62
374.1 1014.71 1020.87 100.61
375.6 1046.51 1050.62 100.39
377.1 1077.32 1081.43 100.38
378.5 1107.72 1110.78 100.28
380.0 1135.65 1142.69 100.62
381.5 1170.48 1175.46 100.43
383.0 1201.70 1207.61 100.49
384.4 1235.85 1242.60 100.55
385.9 1266.59 1272.23 100.45
387.4 1300.02 1302.79 100.21
388.9 1328.88 1337.02 100.61
390.3 1358.50 1366.43 100.58
391.8 1395.02 1405.32 100.74
393.3 1432.03 1440.38 100.58
394.7 1467.28 1473.78 100.44
396.2 1504.48 1512.39 100.53
397.7 1541.68 1551.72 100.65
399.1 1574.85 1583.86 100.57
400.6 1609.65 1617.68 100.50
402.1 1649.33 1657.14 100.47
403.5 1688.74 1696.32 100.45
405.0 1724.11 1733.46 100.54
406.5 1763.21 1772.93 100.55
408.0 1798.98 1808.45 100.53
409.4 1832.87 1845.13 100.67
410.9 1871.69 1883.57 100.63
412.4 1911.88 1922.23 100.54
413.8 1954.12 1960.25 100.31
415.3 1991.43 1999.06 100.38
416.8 2030.20 2039.79 100.47
418.2 2069.60 2080.00 100.50
419.7 2110.02 2119.13 100.43
421.1 2151.27 2161.17 100.46
422.6 2192.19 2201.97 100.45
424.1 2234.63 2244.79 100.45
425.5 2275.76 2286.23 100.46
427.0 2313.84 2324.54 100.46
428.5 2357.06 2368.01 100.46
429.9 2395.80 2406.15 100.43
431.4 2440.26 2449.22 100.37
432.8 2484.16 2493.57 100.38
434.3 2528.06 2537.47 100.37
435.8 2567.18 2579.22 100.47
437.2 2608.38 2619.46 100.42
438.7 2653.33 2663.05 100.37
440.1 2693.99 2702.39 100.31
441.6 2734.60 2743.48 100.32
443.0 2780.29 2790.14 100.35
444.5 2817.45 2827.80 100.37
445.9 2855.25 2867.40 100.43
447.4 2898.90 2910.60 100.40
448.8 2939.17 2950.89 100.40
450.3 2980.74 2992.07 100.38
451.7 3024.65 3037.87 100.44
453.2 3064.28 3076.68 100.40
454.6 3109.51 3122.47 100.42
456.1 3154.12 3164.86 100.34
457.5 3197.41 3208.22 100.34
459.0 3241.70 3253.50 100.36
460.4 3281.20 3293.97 100.39
461.9 3328.33 3344.48 100.49
463.3 3377.55 3394.28 100.50
464.8 3423.76 3439.63 100.46
466.2 3466.78 3480.85 100.41
467.6 3512.49 3528.62 100.46
469.1 3556.91 3576.51 100.55
470.5 3595.03 3616.95 100.61
472.0 3641.62 3664.36 100.62
473.4 3683.44 3706.10 100.62
474.9 3730.68 3750.44 100.53
476.3 3773.20 3793.97 100.55
477.7 3822.88 3845.72 100.60
479.2 3862.88 3888.70 100.67
480.6 3897.46 3929.96 100.83
482.0 3946.62 3981.32 100.88
483.5 3997.51 4029.54 100.80
484.9 4039.43 4070.71 100.77
486.4 4081.69 4114.19 100.80
487.8 4126.73 4160.03 100.81
489.2 4170.78 4203.47 100.78
490.6 4212.90 4248.71 100.85
492.1 4256.87 4295.21 100.90
493.5 4295.34 4335.56 100.94
495.0 4343.72 4383.50 100.92
496.4 4381.06 4422.09 100.94
497.8 4424.55 4467.77 100.98
499.2 4472.26 4514.21 100.94
500.7 4512.73 4554.73 100.93
502.1 4560.15 4603.58 100.95
503.5 4602.63 4647.04 100.96
504.9 4651.20 4696.68 100.98
506.4 4692.76 4735.49 100.91
507.8 4740.14 4782.86 100.90
509.2 4780.32 4823.89 100.91
510.6 4823.46 4872.83 101.02
512.0 4866.77 4919.86 101.09
513.5 4916.40 4971.19 101.11
514.9 4962.47 5016.74 101.09
516.3 5006.65 5060.52 101.08
517.7 5062.72 5117.62 101.08
519.2 5100.99 5157.29 101.10
520.6 5155.42 5212.60 101.11
522.0 5196.64 5253.14 101.09
523.4 5233.31 5291.83 101.12
524.8 5272.76 5334.04 101.16
526.2 5314.68 5378.14 101.19
527.7 5356.41 5413.64 101.07
529.1 5411.42 5461.73 100.93
530.5 5447.38 5507.17 101.10
531.9 5477.81 5552.68 101.37
533.3 5520.90 5597.13 101.38
534.7 5567.51 5645.96 101.41
536.1 5602.09 5678.93 101.37
537.5 5648.28 5725.77 101.37
538.9 5693.27 5772.11 101.38
540.3 5737.34 5816.25 101.38
541.8 5777.75 5858.16 101.39
543.2 5821.60 5903.00 101.40
544.6 5855.02 5936.31 101.39
546.0 5906.85 5986.72 101.35
547.4 5948.76 6028.86 101.35
548.8 5991.17 6070.79 101.33
550.2 6040.44 6118.92 101.30
551.6 6086.81 6166.52 101.31
553.0 6121.93 6205.97 101.37
554.4 6157.87 6240.53 101.34
555.8 6197.52 6281.22 101.35
557.2 6248.02 6328.70 101.29
558.6 6275.70 6365.38 101.43
560.0 6304.13 6403.50 101.58
561.4 6345.06 6445.99 101.59
562.8 6385.68 6482.88 101.52
564.2 6431.49 6521.24 101.40
565.6 6483.42 6572.83 101.38
567.0 6517.81 6609.06 101.40
568.4 6554.45 6647.55 101.42
569.8 6598.98 6690.61 101.39
571.2 6625.60 6718.48 101.40
572.5 6669.49 6762.36 101.39
573.9 6709.44 6803.05 101.40
575.3 6748.79 6843.15 101.40
576.7 6786.40 6881.11 101.40
578.1 6826.08 6922.31 101.41
579.5 6858.92 6955.89 101.41
580.9 6894.73 6995.85 101.47
582.3 6947.20 7048.40 101.46
583.7 6981.12 7079.70 101.41
585.1 7013.52 7113.89 101.43
586.4 7062.30 7160.59 101.39
587.8 7095.26 7193.67 101.39
589.2 7129.21 7230.25 101.42
590.6 7159.98 7264.53 101.46
592.0 7197.76 7300.72 101.43
593.4 7236.30 7341.08 101.45
594.8 7274.74 7380.49 101.45
596.1 7299.60 7407.40 101.48
597.5 7345.98 7452.54 101.45
598.9 7380.42 7488.14 101.46
600.3 7418.70 7527.60 101.47
601.7 7444.44 7554.28 101.48
603.0 7487.03 7597.59 101.48
604.4 7525.86 7637.61 101.48
605.8 7563.17 7677.03 101.51
607.2 7596.14 7713.54 101.55
608.5 7626.58 7746.13 101.57
609.9 7653.01 7773.33 101.57
611.3 7685.91 7809.62 101.61
612.7 7716.83 7840.16 101.60
614.0 7752.63 7878.21 101.62
615.4 7775.44 7903.04 101.64
616.8 7807.06 7939.40 101.70
618.2 7835.70 7972.38 101.74
619.5 7881.00 8021.34 101.78
620.9 7910.07 8052.31 101.80
622.3 7939.70 8080.26 101.77
623.7 7963.21 8105.66 101.79
625.0 8000.43 8145.58 101.81
626.4 8026.52 8171.99 101.81
627.8 8055.92 8200.10 101.79
629.1 8090.93 8234.30 101.77
630.5 8114.85 8257.38 101.76
631.9 8135.63 8283.86 101.82
633.2 8154.33 8307.78 101.88
634.6 8189.91 8345.87 101.90
636.0 8206.87 8365.63 101.93
637.3 8243.45 8406.72 101.98
638.7 8275.57 8438.57 101.97
640.1 8304.94 8467.09 101.95
641.4 8324.16 8486.60 101.95
642.8 8355.77 8520.78 101.97
644.2 8390.10 8554.83 101.96
645.5 8411.14 8586.60 102.09
646.9 8436.07 8617.27 102.15
648.2 8477.82 8651.76 102.05
649.6 8505.20 8680.26 102.06
651.0 8531.75 8705.16 102.03
652.3 8548.47 8726.13 102.08
653.7 8562.98 8744.59 102.12
655.0 8593.17 8778.71 102.16
656.4 8603.79 8792.00 102.19
657.7 8637.51 8829.94 102.23
659.1 8653.66 8845.75 102.22
660.5 8677.14 8865.74 102.17
661.8 8704.58 8897.47 102.22
663.2 8724.57 8920.12 102.24
664.5 8745.96 8943.90 102.26
665.9 8775.14 8975.36 102.28
667.2 8804.33 9003.54 102.26
668.6 8822.16 9021.15 102.26
669.9 8854.90 9058.57 102.30
671.3 8877.78 9081.28 102.29
672.6 8889.13 9095.86 102.33
674.0 8913.95 9113.88 102.24
675.3 8943.37 9138.02 102.18
676.7 8963.18 9159.57 102.19
678.0 8981.75 9187.17 102.29
679.4 9005.80 9222.78 102.41
680.7 9025.76 9247.20 102.45
682.0 9045.04 9268.18 102.47
683.4 9072.66 9298.91 102.49
684.7 9083.15 9311.84 102.52
686.1 9108.79 9342.33 102.56
687.4 9124.71 9362.07 102.60
688.8 9155.85 9395.28 102.62
690.1 9178.55 9419.71 102.63
691.5 9198.39 9440.58 102.63
692.8 9228.75 9471.63 102.63
694.1 9248.45 9495.11 102.67
695.5 9266.67 9516.42 102.70
696.8 9290.99 9546.55 102.75
698.1 9319.31 9578.62 102.78
699.5 9351.62 9613.98 102.81
700.8 9377.59 9639.86 102.80
702.2 9403.93 9669.52 102.82
703.5 9430.63 9696.80 102.82
704.8 9443.47 9713.60 102.86
706.2 9478.68 9751.51 102.88
707.5 9499.83 9781.04 102.96
708.8 9524.16 9808.08 102.98
710.1 9561.27 9847.64 103.00
711.5 9584.29 9874.05 103.02
712.8 9607.31 9899.09 103.04
714.1 9622.88 9920.76 103.10
715.5 9649.97 9951.68 103.13
716.8 9685.92 9993.28 103.17
718.1 9711.74 10020.92 103.18
719.4 9748.46 10059.22 103.19
720.8 9771.62 10085.58 103.21
722.1 9797.45 10115.76 103.25
723.4 9826.70 10148.00 103.27
724.7 9848.37 10171.98 103.29
726.1 9878.02 10211.36 103.37
727.4 9909.65 10247.90 103.41
728.7 9938.38 10278.10 103.42
730.0 9976.98 10318.63 103.42
731.3 9995.55 10336.55 103.41
732.7 10031.59 10375.94 103.43
734.0 10054.55 10405.12 103.49
735.3 10086.13 10441.32 103.52
736.6 10112.83 10470.49 103.54
737.9 10148.46 10510.54 103.57
739.2 10178.88 10540.99 103.56
740.5 10221.07 10583.40 103.54
741.9 10246.75 10612.98 103.57
743.2 10268.17 10637.26 103.59
744.5 10295.93 10670.64 103.64
745.8 10322.48 10705.17 103.71
747.1 10341.42 10728.03 103.74
748.4 10371.08 10760.33 103.75
749.7 10400.46 10788.31 103.73
751.0 10426.08 10819.09 103.77
752.3 10454.20 10851.22 103.80
753.6 10470.45 10872.17 103.84
754.9 10483.43 10890.91 103.89
756.2 10502.68 10915.32 103.93
757.5 10531.97 10949.63 103.97
758.8 10581.47 11002.65 103.98
760.2 10618.46 11043.67 104.00
761.5 10666.27 11094.01 104.01
762.8 10686.86 11116.61 104.02
764.0 10702.57 11136.56 104.06
765.3 10707.40 11140.48 104.04
766.6 10716.12 11153.09 104.08
767.9 10738.88 11179.88 104.11
769.2 10751.41 11197.32 104.15
770.5 10770.90 11222.25 104.19
771.8 10796.68 11250.79 104.21
773.1 10813.57 11269.07 104.21
774.4 10835.34 11294.50 104.24
775.7 10856.39 11318.22 104.25
777.0 10877.71 11340.27 104.25
778.3 10889.87 11361.64 104.33
779.6 10908.73 11383.52 104.35
780.8 10925.64 11398.50 104.33
782.1 10935.69 11415.33 104.39
783.4 10955.65 11437.57 104.40
784.7 10962.00 11444.13 104.40
786.0 10974.93 11462.20 104.44
787.3 10982.68 11478.67 104.52
788.5 11002.31 11502.27 104.54
789.8 11013.09 11516.46 104.57
791.1 11029.42 11532.23 104.56
792.4 11044.24 11553.37 104.61
793.7 11053.67 11563.47 104.61
794.9 11057.63 11575.87 104.69
796.2 11061.85 11585.10 104.73
797.5 11071.33 11596.48 104.74
798.7 11088.05 11616.56 104.77
800.0 11097.68 11628.20 104.78
801.3 11107.98 11639.55 104.79
802.5 11115.90 11654.93 104.85
803.8 11119.50 11666.77 104.92
805.1 11124.48 11673.60 104.94
806.3 11136.33 11691.00 104.98
807.6 11148.96 11701.20 104.95
808.9 11150.58 11708.11 105.00
810.1 11158.61 11719.05 105.02
811.4 11170.22 11736.17 105.07
812.7 11174.98 11744.55 105.10
813.9 11188.63 11762.52 105.13
815.2 11199.14 11774.34 105.14
816.4 11205.12 11785.80 105.18
817.7 11206.56 11789.68 105.20
819.0 11212.47 11802.36 105.26
820.2 11215.62 11797.02 105.18
821.5 11218.70 11802.34 105.20
822.7 11232.26 11813.61 105.18
824.0 11234.94 11821.65 105.22
825.2 11236.16 11829.74 105.28
826.5 11234.41 11834.82 105.34
827.7 11241.65 11842.93 105.35
829.0 11250.75 11852.29 105.35
830.2 11252.06 11850.21 105.32
831.4 11258.86 11858.83 105.33
832.7 11257.60 11859.18 105.34
833.9 11261.57 11863.11 105.34
835.2 11261.58 11863.16 105.34
836.4 11266.32 11869.84 105.36
837.6 11266.33 11875.63 105.41
838.9 11272.46 11878.25 105.37
840.1 11271.15 11878.78 105.39
841.3 11279.80 11879.56 105.32
842.6 11286.36 11890.24 105.35
843.8 11281.28 11896.88 105.46
845.0 11284.70 11901.80 105.47
846.3 11286.50 11904.25 105.47
847.5 11299.53 11909.51 105.40
848.7 11302.78 11906.36 105.34
850.0 11305.16 11914.72 105.39
851.2 11300.63 11913.62 105.42
852.4 11295.10 11922.86 105.56
853.6 11296.90 11919.22 105.51
854.8 11297.27 11918.40 105.50
856.1 11298.40 11917.84 105.48
857.3 11308.31 11917.22 105.38
858.5 11307.39 11928.31 105.49
859.7 11305.44 11924.55 105.48
860.9 11312.08 11924.27 105.41
862.2 11310.84 11922.91 105.41
863.4 11310.00 11925.00 105.44
864.6 11304.63 11926.76 105.50
865.8 11304.50 11923.29 105.47
867.0 11305.99 11924.05 105.47
868.2 11296.80 11919.17 105.51
869.4 11308.39 11929.73 105.49
870.6 11311.02 11936.74 105.53
871.8 11316.24 11938.16 105.50
873.0 11314.53 11939.93 105.53
874.2 11307.72 11934.24 105.54
875.4 11299.76 11935.43 105.63
876.6 11297.79 11934.21 105.63
877.8 11291.81 11926.24 105.62
879.0 11295.88 11922.63 105.55
880.2 11303.36 11930.84 105.55
881.4 11302.49 11934.16 105.59
882.6 11310.60 11934.51 105.52
883.8 11296.55 11930.81 105.61
885.0 11285.15 11942.01 105.82
886.2 11288.92 11934.88 105.72
887.4 11296.56 11937.63 105.67
888.6 11283.30 11935.35 105.78
889.8 11285.87 11936.43 105.76
891.0 11298.81 11945.01 105.72
892.2 11295.48 11950.48 105.80
893.3 11294.47 11954.75 105.85
894.5 11309.77 11968.72 105.83
895.7 11321.38 11985.94 105.87
896.9 11332.05 11995.79 105.86
898.1 11341.91 12015.06 105.94
899.3 11340.08 12005.06 105.86
900.4 11331.89 12001.86 105.91
901.6 11326.50 12001.56 105.96
902.8 11323.91 12007.86 106.04
904.0 11340.73 12008.05 105.88
905.2 11335.92 12013.03 105.97
906.3 11325.24 12016.18 106.10
907.5 11314.35 12011.22 106.16
908.7 11312.26 12007.36 106.14
909.8 11296.96 12009.56 106.31
911.0 11294.89 12001.08 106.25
912.2 11289.78 11993.58 106.23
913.4 11278.85 11987.97 106.29
914.5 11263.55 11986.39 106.42
915.7 11261.11 11989.16 106.47
916.9 11244.24 11977.56 106.52
918.0 11228.68 11957.81 106.49
919.2 11214.35 11948.25 106.54
920.4 11207.22 11936.55 106.51
921.5 11189.84 11932.77 106.64
922.7 11180.17 11922.73 106.64
923.9 11167.20 11909.80 106.65
925.0 11147.92 11890.48 106.66
926.2 11153.29 11900.70 106.70
927.3 11156.70 11914.49 106.79
928.5 11171.71 11940.98 106.89
929.7 11203.73 11991.38 107.03
930.8 11240.41 12027.14 107.00
932.0 11285.09 12061.20 106.88
933.1 11309.10 12082.97 106.84
934.3 11311.54 12092.02 106.90
935.5 11288.12 12101.08 107.20
936.6 11243.23 12052.66 107.20
937.8 11180.41 11991.39 107.25
938.9 11120.91 11934.22 107.31
940.1 11106.50 11902.28 107.16
941.2 11121.83 11937.47 107.33
942.4 11149.99 11957.01 107.24
943.5 11154.53 11975.42 107.36
944.7 11105.99 11956.53 107.66
945.8 11077.61 11933.08 107.72
947.0 11097.32 11921.45 107.43
948.2 11097.69 11909.10 107.31
949.3 11094.12 11911.11 107.36
950.5 11057.89 11914.07 107.74
951.6 11008.55 11924.26 108.32
952.8 10999.49 11916.68 108.34
953.9 11022.49 11905.95 108.02
955.1 11031.56 11860.16 107.51
956.2 11019.53 11847.42 107.51
957.4 11003.13 11852.31 107.72
958.5 10982.93 11868.65 108.06
959.7 10987.13 11865.80 108.00
960.8 10980.57 11873.98 108.14
962.0 10952.16 11861.60 108.30
963.1 10941.66 11868.65 108.47
964.3 10929.53 11850.43 108.43
965.4 10900.20 11839.44 108.62
966.6 10881.89 11839.83 108.80
967.7 10929.98 11840.09 108.33
968.9 10944.92 11848.95 108.26
970.0 10911.92 11819.00 108.31
971.2 10902.00 11803.60 108.27
972.4 10873.50 11827.64 108.77
973.5 10849.42 11830.43 109.04
974.7 10839.48 11831.26 109.15
975.8 10843.51 11804.85 108.87
977.0 10871.67 11803.52 108.57
978.1 10857.60 11826.43 108.92
979.3 10814.93 11801.27 109.12
980.5 10836.02 11820.00 109.08
981.6 10807.65 11791.33 109.10
982.8 10816.70 11775.49 108.86
983.9 10807.08 11767.39 108.89
985.1 10772.15 11794.43 109.49
986.3 10796.56 11824.03 109.52
987.4 10795.36 11824.32 109.53
988.6 10829.76 11763.36 108.62
989.8 10772.46 11730.01 108.89
992.6 12014.03 11047.04 91.95
996.5 11891.45 11182.44 94.04
1000.3 11800.98 11252.35 95.35
1004.2 11767.23 11267.32 95.75
1008.0 11710.05 11293.10 96.44
1011.9 11725.89 11273.34 96.14
1015.7 11679.17 11279.51 96.58
1019.6 11695.27 11312.75 96.73
1023.4 11612.87 11250.56 96.88
1027.2 11600.82 11280.06 97.24
1031.1 11498.16 11244.24 97.79
1034.9 11384.79 11222.23 98.57
1038.8 11325.34 11216.69 99.04
1042.6 11281.53 11180.30 99.10
1046.4 11216.89 11172.00 99.60
1050.3 11212.41 11116.79 99.15
1054.1 11141.09 11101.53 99.64
1057.9 11123.92 11080.07 99.61
1061.8 11079.25 11015.55 99.43
1065.6 11068.55 11029.73 99.65
1069.4 10980.27 10966.57 99.88
1073.2 10962.38 11000.51 100.35
1077.0 10830.37 10885.30 100.51
1080.9 10896.86 10945.49 100.45
1084.7 10885.88 10876.31 99.91
1088.5 10866.13 10851.86 99.87
1092.3 10857.73 10782.59 99.31
1096.1 10819.73 10758.97 99.44
1099.9 10793.20 10721.84 99.34
1103.8 10742.98 10689.77 99.50
1107.6 10668.40 10654.98 99.87
1111.4 10681.04 10663.63 99.84
1115.2 10632.13 10636.57 100.04
1119.0 10542.26 10563.92 100.21
1122.8 10577.59 10573.15 99.96
1126.6 10505.62 10501.47 99.96
1130.4 10514.51 10484.12 99.71
1134.2 10449.90 10437.09 99.88
1138.0 10433.33 10408.34 99.76
1141.8 10386.09 10360.97 99.76
1145.6 10351.04 10355.23 100.04
1149.4 10320.93 10304.52 99.84
1153.2 10268.19 10272.26 100.04
1157.0 10246.53 10238.41 99.92
1160.8 10177.88 10206.49 100.28
1164.6 10162.78 10166.81 100.04
1168.4 10114.83 10114.83 100.00
1172.1 10076.17 10068.04 99.92
1175.9 10033.05 10033.05 100.00
1179.7 9975.45 9999.56 100.24
1183.5 9930.96 9954.83 100.24
1187.3 9886.72 9894.72 100.08
1191.1 9851.56 9871.88 100.21
1194.8 9797.06 9762.46 99.65
1198.6 9732.69 9736.61 100.04
1202.4 9713.84 9686.94 99.72
1206.2 9653.38 9618.88 99.64
1209.9 9651.91 9595.77 99.42
1213.7 9577.72 9510.25 99.30
1217.5 9563.46 9482.41 99.15
1221.3 9491.89 9441.06 99.46
1225.0 9449.48 9392.19 99.39
1228.8 9359.30 9322.11 99.60
1232.6 9328.26 9299.37 99.69
1236.3 9264.06 9251.22 99.86
1240.1 9219.57 9216.35 99.97
1243.8 9161.49 9158.38 99.97
1247.6 9104.32 9095.04 99.90
1251.4 9063.43 9057.14 99.93
1255.1 9023.36 9007.90 99.83
1258.9 8979.06 8976.02 99.97
1262.6 8934.81 8952.99 100.20
1266.4 8891.44 8891.44 100.00
1270.1 8871.71 8874.66 100.03
1273.9 8867.03 8831.86 99.60
1277.6 8819.23 8816.34 99.97
1281.4 8779.53 8785.16 100.06
1285.1 8678.25 8709.65 100.36
1288.9 8646.21 8679.69 100.39
1292.6 8607.78 8613.43 100.07
1296.4 8546.61 8546.61 100.00
1300.1 8487.00 8478.72 99.90
1303.8 8421.66 8419.01 99.97
1307.6 8359.39 8367.35 100.10
1311.3 8310.47 8313.09 100.03
1315.1 8225.63 8258.83 100.40
1318.8 8189.44 8202.38 100.16
1322.5 8114.48 8147.84 100.41
1326.3 8060.16 8089.02 100.36
1330.0 7997.70 8035.43 100.47
1333.7 7941.30 7974.78 100.42
1337.5 7865.55 7911.52 100.58
1341.2 7791.51 7832.21 100.52
1344.9 7700.66 7754.71 100.70
1348.6 7620.39 7712.33 101.21
1352.4 7514.42 7636.80 101.63
1356.1 7428.92 7560.54 101.77
1359.8 7339.73 7480.77 101.92
1363.5 7270.65 7415.10 101.99
1367.2 7211.64 7325.73 101.58
1371.0 7102.49 7236.74 101.89
1374.7 6949.78 7110.97 102.32
1378.4 6837.66 6998.06 102.35
1382.1 6757.09 6886.93 101.92
1385.8 6724.95 6839.98 101.71
1389.5 6736.41 6813.84 101.15
1393.2 6747.25 6821.09 101.09
1396.9 6756.03 6834.26 101.16
1400.7 6777.93 6845.30 100.99
1404.4 6798.75 6851.25 100.77
1408.1 6795.11 6855.20 100.88
1411.8 6808.01 6855.94 100.70
1415.5 6801.83 6832.40 100.45
1419.2 6774.83 6816.03 100.61
1422.9 6752.55 6796.43 100.65
1426.6 6735.79 6785.36 100.74
1430.3 6693.65 6752.81 100.88
1434.0 6665.00 6730.07 100.98
1437.7 6629.68 6679.51 100.75
1441.3 6598.57 6651.72 100.81
1445.0 6582.90 6633.95 100.78
1448.7 6549.02 6578.12 100.44
1452.4 6538.82 6573.13 100.52
1456.1 6496.44 6522.24 100.40
1459.8 6481.12 6520.29 100.60
1463.5 6440.36 6477.27 100.57
1467.2 6401.50 6444.61 100.67
1470.8 6366.01 6415.33 100.77
1474.5 6342.91 6381.76 100.61
1478.2 6294.59 6338.66 100.70
1481.9 6256.56 6302.30 100.73
1485.6 6228.57 6257.32 100.46
1489.2 6203.61 6242.74 100.63
1492.9 6157.65 6204.04 100.75
1496.6 6131.20 6149.12 100.29
1500.3 6079.84 6115.79 100.59
1503.9 6048.89 6079.59 100.51
1507.6 6013.82 6041.99 100.47
1511.3 5967.39 6007.95 100.68
1514.9 5917.26 5947.33 100.51
1518.6 5888.88 5916.51 100.47
1522.3 5855.71 5886.24 100.52
1525.9 5828.05 5850.96 100.39
1529.6 5765.18 5807.06 100.73
1533.3 5731.02 5768.44 100.65
1536.9 5694.46 5729.84 100.62
1540.6 5654.22 5683.88 100.52
1544.2 5614.14 5641.05 100.48
1547.9 5565.12 5604.80 100.71
1551.6 5541.14 5560.72 100.35
1555.2 5496.82 5536.58 100.72
1558.9 5479.56 5489.38 100.18
1562.5 5415.03 5446.55 100.58
1566.2 5405.57 5442.90 100.69
1569.8 5351.18 5375.49 100.45
1573.5 5326.83 5356.26 100.55
1577.1 5281.79 5318.33 100.69
1580.8 5243.94 5275.53 100.60
1584.4 5208.47 5232.82 100.47
1588.1 5167.92 5199.64 100.61
1591.7 5141.27 5173.01 100.62
1595.3 5097.16 5136.20 100.77
1599.0 5074.98 5089.74 100.29
1602.6 5042.73 5062.20 100.39
1606.3 5013.90 5018.73 100.10
1609.9 4969.82 4984.20 100.29
1613.5 4910.18 4945.50 100.72
1617.2 4877.34 4906.20 100.59
1620.8 4839.08 4870.37 100.65
1624.4 4776.81 4817.85 100.86
1628.1 4743.36 4784.84 100.87
1631.7 4694.20 4730.13 100.77
1635.3 4661.79 4698.67 100.79
1639.0 4610.39 4648.73 100.83
1642.6 4577.65 4604.75 100.59
1646.2 4534.75 4563.85 100.64
1649.8 4495.27 4529.62 100.76
1653.5 4441.93 4476.44 100.78
1657.1 4389.19 4423.77 100.79
1660.7 4354.98 4386.73 100.73
1664.3 4306.07 4330.62 100.57
1667.9 4248.30 4267.90 100.46
1671.6 4193.46 4210.64 100.41
1675.2 4139.04 4168.03 100.70
1678.8 4113.49 4140.54 100.66
1682.4 4084.52 4104.11 100.48
1686.0 4056.71 4083.50 100.66
1689.6 4037.67 4054.88 100.43
1693.2 4005.99 4023.47 100.44
1696.9 3970.61 3990.92 100.51
1700.5 3920.35 3947.14 100.68
1704.1 3897.73 3920.18 100.58
1707.7 3854.27 3886.02 100.82
1711.3 3820.00 3842.50 100.59
1714.9 3791.39 3820.90 100.78
1718.5 3775.04 3797.63 100.60
1722.1 3749.76 3764.64 100.40
1725.7 3761.96 3779.80 100.47
1729.3 3750.43 3773.26 100.61
1732.9 3771.52 3781.86 100.27
1736.5 3767.55 3801.08 100.89
1740.1 3781.09 3786.31 100.14
1743.7 3791.87 3815.02 100.61
1747.3 3791.40 3812.70 100.56
1750.9 3787.81 3806.41 100.49
1754.5 3777.38 3782.63 100.14
1758.1 3766.38 3766.38 100.00
1761.6 3729.91 3742.81 100.35
1765.2 3687.93 3700.98 100.35
1768.8 3666.39 3668.96 100.07
1772.4 3623.38 3638.53 100.42
1776.0 3586.07 3598.93 100.36
1779.6 3571.89 3584.67 100.36
1783.2 3519.63 3547.59 100.79
1786.7 3475.65 3498.60 100.66
1790.3 3439.29 3457.33 100.52
1793.9 3391.26 3411.97 100.61
1797.5 3354.03 3388.04 101.01
1801.1 3335.29 3335.29 100.00
1804.6 3326.55 3299.24 99.18
1808.2 3282.80 3252.64 99.08
1811.8 3236.08 3214.32 99.33
1815.4 3178.22 3182.55 100.14
1818.9 3124.56 3155.72 101.00
1822.5 3094.30 3121.91 100.89
1826.1 3050.31 3093.49 101.42
1829.6 3005.89 3057.94 101.73
1833.2 2964.89 3037.37 102.44
1836.8 2927.34 2997.54 102.40
1840.3 2893.50 2968.25 102.58
1843.9 2852.23 2910.34 102.04
1847.5 2804.40 2878.20 102.63
1851.0 2766.66 2829.94 102.29
1854.6 2727.29 2796.17 102.53
1858.2 2697.37 2759.26 102.29
1861.7 2677.42 2732.60 102.06
1865.3 2628.13 2716.90 103.38
1868.8 2616.37 2683.60 102.57
1872.4 2601.30 2663.51 102.39
1875.9 2601.54 2636.46 101.34
1879.5 2573.58 2615.95 101.65
1883.1 2553.00 2610.50 102.25
1886.6 2533.68 2580.60 101.85
1890.2 2509.88 2582.63 102.90
1893.7 2485.00 2559.55 103.00
1897.2 2472.71 2561.14 103.58
1900.3 2309.58 2339.19 101.28
1903.1 2301.84 2314.35 100.54
1905.9 2284.38 2305.63 100.93
1908.7 2281.60 2309.20 101.21
1911.5 2286.64 2302.80 100.71
1914.3 2266.12 2280.60 100.64
1917.1 2229.26 2295.41 102.97
1919.8 2246.64 2295.48 102.17
1922.6 2262.63 2302.43 101.76
1925.4 2268.45 2284.43 100.70
1928.2 2262.26 2277.28 100.66
1931.0 2246.72 2270.32 101.05
1933.8 2231.39 2253.62 101.00
1936.5 2224.89 2237.46 100.56
1939.3 2205.72 2233.44 101.26
1942.1 2188.71 2214.86 101.19
1944.8 2189.40 2207.20 100.81
1947.6 2172.17 2182.40 100.47
1950.3 2151.60 2164.80 100.61
1953.1 2137.98 2141.19 100.15
1955.8 2123.52 2126.68 100.15
1958.6 2087.05 2099.51 100.60
1961.3 2057.70 2070.04 100.60
1964.1 2034.63 2049.91 100.75
1966.8 2011.32 2023.40 100.60
1969.5 1986.00 1992.00 100.30
1972.2 1951.60 1954.58 100.15
1975.0 1914.84 1920.75 100.31
1977.7 1890.42 1887.48 99.84
1980.4 1851.03 1848.11 99.84
1983.2 1812.50 1803.80 99.52
1985.9 1780.43 1777.53 99.84
1988.6 1751.04 1748.16 99.84
1991.3 1707.54 1713.27 100.34
1994.0 1673.16 1673.16 100.00
1996.7 1647.38 1644.51 99.83
1999.4 1618.68 1612.94 99.65
2002.1 1572.76 1575.63 100.18
2004.8 1524.38 1530.10 100.38
2007.5 1510.08 1504.36 99.62
2010.2 1481.21 1478.34 99.81
2012.8 1446.83 1449.69 100.20
2015.5 1413.23 1410.37 99.80
2018.2 1378.97 1378.97 100.00
2020.9 1344.20 1355.64 100.85
2023.6 1320.77 1335.09 101.08
2026.2 1297.85 1297.85 100.00
2028.9 1272.06 1266.33 99.55
2031.6 1257.06 1242.71 98.86
2034.2 1242.00 1224.75 98.61
2036.9 1219.00 1198.88 98.35
2039.5 1195.20 1177.92 98.55
2042.2 1168.43 1165.54 99.75
2044.8 1154.00 1151.12 99.75
2047.5 1139.58 1136.69 99.75
2050.1 1128.04 1116.50 98.98
2052.8 1110.73 1099.19 98.96
2055.4 1088.64 1085.76 99.74
2058.0 1078.99 1073.22 99.47
2060.6 1067.45 1058.80 99.19
2063.3 1054.08 1045.44 99.18
2065.9 1036.80 1039.68 100.28
2068.5 1024.18 1027.06 100.28
2071.1 1017.28 1002.83 98.58
2073.8 1005.72 988.38 98.28
2076.4 982.60 979.71 99.71
2079.0 974.40 968.60 99.40
2081.6 961.14 946.67 98.49
2084.2 944.13 938.32 99.38
2086.8 935.72 932.80 99.69
2089.4 922.72 916.88 99.37
2092.0 911.04 893.52 98.08
2094.6 905.37 879.00 97.09
2097.1 887.79 879.00 99.01
2099.7 870.21 876.07 100.67
2102.3 865.83 862.89 99.66
2104.9 849.66 840.84 98.96
2107.5 829.08 826.14 99.65
2110.0 820.26 820.26 100.00
2112.6 809.67 809.67 100.00
2115.2 803.76 791.94 98.53
2117.7 787.65 775.85 98.50
2120.3 768.30 762.39 99.23
2122.9 753.53 759.44 100.78
2125.4 747.18 744.22 99.60
2127.9 746.73 731.85 98.01
2130.5 731.85 722.93 98.78
2133.0 718.18 709.24 98.76
2135.6 716.98 708.05 98.76
2138.1 706.26 712.22 100.84
2140.7 701.48 698.49 99.57
2143.2 698.49 692.52 99.15
2145.7 701.48 695.51 99.15
2148.2 699.66 696.67 99.57
2150.8 702.00 693.00 98.72
2153.3 710.36 704.34 99.15
2155.8 718.76 724.80 100.84
2158.3 721.78 724.80 100.42
2160.8 729.03 719.95 98.76
2163.3 737.51 728.40 98.77
2165.8 746.61 734.47 98.37
2168.3 767.86 746.61 97.23
2170.8 780.00 767.86 98.44
2173.3 783.85 780.80 99.61
2175.8 786.42 789.48 100.39
2178.3 809.16 796.90 98.48
2180.8 819.28 803.88 98.12
2183.3 826.37 810.89 98.13
2185.8 824.60 827.70 100.38
2188.2 833.48 833.48 100.00
2190.7 834.38 821.88 98.50
2193.2 833.43 820.85 98.49
2195.6 832.40 826.07 99.24
2198.1 833.16 823.62 98.85
2200.6 826.89 817.28 98.84
2203.0 817.19 807.50 98.81
2205.5 810.50 800.73 98.80
2207.9 809.34 792.89 97.97
2210.4 810.95 787.78 97.14
2212.8 807.64 801.02 99.18
2215.3 810.95 801.02 98.78
2217.7 822.12 805.55 97.98
2220.2 821.28 814.63 99.19
2222.6 820.41 813.74 99.19
2225.0 822.87 816.18 99.19
2227.5 820.75 814.05 99.18
2229.9 824.10 817.40 99.19
2232.3 834.15 827.45 99.20
2234.7 821.98 821.98 100.00
2237.1 815.54 818.91 100.41
2239.6 830.25 813.38 97.97
2242.0 834.86 817.96 97.98
2244.4 814.80 818.20 100.42
2246.8 816.19 812.77 99.58
2249.2 812.91 802.62 98.73
2251.6 801.45 794.60 99.15
2254.0 799.11 799.11 100.00
2256.4 795.70 802.53 100.86
2258.8 790.02 793.44 100.43
2261.1 793.44 779.76 98.28
2263.5 795.76 764.89 96.12
2265.9 788.90 771.75 97.83
2268.3 780.90 780.90 100.00
2270.6 778.61 775.18 99.56
2273.0 767.12 767.12 100.00
2275.4 764.79 764.79 100.00
2277.8 761.35 764.79 100.45
2280.1 751.01 761.35 101.38
2282.5 750.82 750.82 100.00
2284.8 754.08 736.70 97.70
2287.2 743.37 736.39 99.06
2289.5 738.50 735.00 99.53
2291.9 740.61 740.61 100.00
2294.2 735.68 739.20 100.48
2296.6 727.18 730.71 100.49
2298.9 728.21 721.14 99.03
2301.2 713.06 698.94 98.02
2303.6 709.53 691.88 97.51
2305.9 697.95 690.90 98.99
2308.2 686.40 675.84 98.46
2310.5 688.35 667.17 96.92
2312.8 677.76 656.58 96.88
2315.2 662.70 648.60 97.87
2317.5 659.18 641.55 97.33
2319.8 653.98 639.84 97.84
2322.1 630.12 633.66 100.56
2324.4 629.24 622.13 98.87
2326.7 629.20 604.18 96.02
2329.0 615.60 594.00 96.49
2331.3 602.87 595.65 98.80
2333.6 604.54 600.92 99.40
2335.9 596.96 596.96 100.00
2338.1 593.32 586.04 98.77
2340.4 579.56 564.98 97.48
2342.7 572.52 557.84 97.44
2345.0 579.33 557.19 96.18
2347.2 566.10 558.70 98.69
2349.5 549.08 549.08 100.00
2351.8 536.40 540.13 100.69
2354.1 543.03 539.28 99.31
2356.3 539.11 535.34 99.30
2358.6 538.89 538.89 100.00
2360.8 544.83 541.02 99.30
2363.1 536.20 524.71 97.86
2365.3 519.08 522.92 100.74
2367.6 528.14 516.57 97.81
2369.8 527.00 515.38 97.79
2372.0 518.70 518.70 100.00
2374.3 512.87 508.95 99.24
2376.5 515.49 499.75 96.95
2378.7 522.06 502.29 96.21
2381.0 508.80 504.83 99.22
2383.2 503.37 503.37 100.00
2385.4 513.28 489.22 95.31
2387.6 506.52 482.40 95.24
2389.8 501.58 489.45 97.58
2392.1 516.26 491.87 95.28
2394.3 505.92 485.52 95.97
2396.5 495.50 479.12 96.69
2398.7 502.03 469.11 93.44
2400.9 489.11 472.53 96.61
2403.1 475.95 471.78 99.12
2405.3 487.20 474.60 97.41
2407.4 481.08 476.86 99.12
2409.6 470.09 465.85 99.10
2411.8 476.56 459.54 96.43
2414.0 466.52 466.52 100.00
2416.2 464.40 455.80 98.15
2418.4 457.39 448.76 98.11
2420.5 445.48 436.83 98.06
2422.7 455.18 442.17 97.14
2424.9 461.63 452.92 98.11
2427.0 451.14 442.38 98.06
2429.2 444.40 431.20 97.03
2431.3 447.43 425.28 95.05
2433.5 446.00 432.62 97.00
2435.6 448.00 439.04 98.00
2437.8 450.50 427.98 95.00
2439.9 443.94 416.76 93.88
2442.1 443.29 420.44 94.85
2444.2 446.69 428.27 95.88
2446.4 439.85 421.33 95.79
2448.5 429.18 429.18 100.00
2450.6 423.45 414.04 97.78
2452.7 445.56 388.68 87.23
2454.9 442.22 404.18 91.40
2457.0 430.20 425.42 98.89
2459.1 433.35 409.28 94.44
2461.2 421.52 387.60 91.95
2463.3 414.38 394.88 95.29
2465.4 416.50 406.70 97.65
2467.5 418.63 398.93 95.29
2469.6 417.90 398.00 95.24
2471.7 415.83 390.78 93.98
2473.8 408.24 393.12 96.30
2475.9 399.74 384.56 96.20
2478.0 384.94 384.94 100.00
2480.1 387.22 382.13 98.68
2482.2 397.32 371.52 93.51
2484.2 403.48 366.80 90.91
2486.3 396.00 369.60 93.33
2488.4 382.68 382.68 100.00
2490.5 392.74 376.60 95.89
2492.5 400.71 373.64 93.24
2494.6 380.45 364.15 95.71
2496.7 359.37 348.48 96.97
2498.7 355.23 344.30 96.92
2500.8 359.78 337.64 93.85
2502.8 356.90 328.57 92.06
2504.9 360.53 319.83 88.71
2506.9 351.64 333.76 94.92
2509.0 355.83 337.43 94.83
2511.0 359.96 328.38 91.23
2513.1 374.10 328.95 87.93
|
{
"id": "4965437e-1f8c-452f-9807-0ac61f15ad1f",
"modelName": "GMFolder",
"mvc": "1.1",
"name": "4965437e-1f8c-452f-9807-0ac61f15ad1f",
"children": [
],
"filterType": "GMIncludedFile",
"folderName": "datafiles",
"isDefaultView": false,
"localisedFolderName": "ResourceTree_IncludedFiles"
} |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
/**
* Mock Application Catalog API
*/
|
---
title: "Exercise 4.6"
output: html_notebook
---
Exercise 4.6 How do you sum the following Chinese numbers?
```{r}
fct <- factor(
c('參','貮','貮','貮','壹','貮','參','貮','參','參'),
levels=c('壹','貮','參')
)
sum(as.numeric(fct))
``` |
//Written by Przemyslaw Zaworski
//https://github.com/przemyslawzaworski
Shader "Deferred (Metallic Gloss)"
{
Properties
{
_Color ("Color", Color) = (1,1,1,1)
_Metallic ("Metallic", Range(0, 1)) = 1
_Gloss ("Gloss", Range(0, 1)) = 0.8
}
SubShader
{
Pass
{
Tags {"LightMode"="Deferred"}
CGPROGRAM
#pragma vertex vertex_shader
#pragma fragment pixel_shader
#pragma exclude_renderers nomrt
#pragma multi_compile ___ UNITY_HDR_ON
#pragma target 3.0
#include "UnityPBSLighting.cginc"
float4 _Color;
float _Metallic;
float _Gloss;
struct structureVS
{
float4 screen_vertex : SV_POSITION;
float4 world_vertex : TEXCOORD0;
float3 normal : TEXCOORD1;
};
struct structurePS
{
half4 albedo : SV_Target0;
half4 specular : SV_Target1;
half4 normal : SV_Target2;
half4 emission : SV_Target3;
};
structureVS vertex_shader (float4 vertex : POSITION,float3 normal : NORMAL)
{
structureVS vs;
vs.screen_vertex = UnityObjectToClipPos( vertex );
vs.world_vertex = mul(unity_ObjectToWorld, vertex);
vs.normal = UnityObjectToWorldNormal(normal);
return vs;
}
structurePS pixel_shader (structureVS vs)
{
structurePS ps;
float3 normalDirection = normalize(vs.normal);
half3 specular;
half specularMonochrome;
half3 diffuseColor = DiffuseAndSpecularFromMetallic( _Color.rgb, _Metallic, specular, specularMonochrome );
ps.albedo = half4( diffuseColor, 1.0 );
ps.specular = half4( specular, _Gloss );
ps.normal = half4( normalDirection * 0.5 + 0.5, 1.0 );
ps.emission = half4(0,0,0,1);
#ifndef UNITY_HDR_ON
ps.emission.rgb = exp2(-ps.emission.rgb);
#endif
return ps;
}
ENDCG
}
}
FallBack "Diffuse"
} |
'use strict';
var express = require('express');
var controller = require('./question.controller');
var auth = require('../../auth/auth.service');
var router = express.Router();
router.get('/practice/:subject/:topic?', controller.findPractice);
router.get('/tags/:subject?', controller.showTags);
router.get('/', auth.hasRole('Admin'), controller.index);
router.get('/bySubject/:subject', controller.bySubject);
router.get('/:id', controller.show);
router.post('/comment/:id', controller.addComment);
router.put('/linkToEmail', controller.updateWithEmail);
router.post('/mine', auth.hasAdminOrTeacher(), controller.createTeacher);
router.post('/', controller.create);
router.put('/vote/:id', auth.isAuthenticated(), controller.vote);
router.put('/mine/:id', auth.hasAdminOrTeacher(), controller.updateMine);
router.put('/:id', auth.hasRole('Admin'), controller.update);
router.patch('/:id', controller.update);
router.delete('/:id', controller.destroy);
module.exports = router;
|
(* One can use these trees to test the Sentinel's in Graphs problem*)
let short_med_long_path =
["14"; "0 1"; "1 2"; "2 3";
"1 4"; "4 5"; "5 6"; "6 3";
"1 7"; "7 8"; "8 9"; "9 10"; "10 11"; "11 12"; "12 13"; "13 3"]
let cycle_tree =
["6"; "0 1"; "1 2"; "2 3"; "3 4"; "4 5"; "5 2"]
(*Graph from Lecture*)
let example_graph =
([|"a"; "b"; "c"; "d"; "e"; "f"; "g"; "h"; "i"; "j"; "k"|],
[(0, 1); (1, 2); (2, 3); (2, 4); (2, 5); (3, 4); (3, 6); (4, 7); (4, 8);
(5, 9); (6, 3); (7, 10); (8, 3); (9, 1); (9, 2); (10, 2)])
(* Procedure to form tree from example_graph after opening the required modules
let example_graphe = read_graph_and_payloads 11 (fst example_graph) (snd example_graph) ([] : (int * int * unit) list)
let sentinel_of_example = sentinel_tree (0, example_graphe);;
let viz_sentinel_of_example = visualize_sentinel_tree sentinel_of_example;;
let read_sentinel_of_example = graphviz_with_payload viz_sentinel_of_example (fst example_graph) "example_graph.dot";;
*)
|
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor.
banner3 = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/furniture/lifeday/lifeday_banner_s03.iff",
craftingValues = {
},
customizationStringNames = {},
customizationValues = {},
skillMods = {
}
}
addLootItemTemplate("banner3", banner3) |
module PatternSynonymImports2 where
open import PatternSynonyms
open import PatternSynonymImports
myzero' = z
myzero'' = myzero
list2 : List _
list2 = 1 ∷ [] |
#!/bin/sh
set -e
if [ "$1" = 'manage.py' ]; then
echo "Starting server..."
./manage.py migrate
./manage.py collectstatic --noinput
exec /srv/web/manage.py runserver 0.0.0.0:8000
fi
echo "Runing command..."
exec "$@"
|
;;;; Theme settings
;;; Rainbow parentheses customization
(custom-set-faces
'(rainbow-delimiters-depth-1-face ((t (:foreground "#00877C" :weight normal))))
'(rainbow-delimiters-depth-2-face ((t (:foreground "#b58900" :weight normal))))
'(rainbow-delimiters-depth-3-face ((t (:foreground "#6c71c4" :weight normal))))
'(rainbow-delimiters-depth-4-face ((t (:foreground "#cb4b16" :weight normal))))
'(rainbow-delimiters-depth-5-face ((t (:foreground "#859900" :weight normal))))
'(rainbow-delimiters-depth-6-face ((t (:foreground "#b58900" :weight normal))))
'(rainbow-delimiters-depth-7-face ((t (:foreground "#6c71c4" :weight normal))))
'(rainbow-delimiters-depth-8-face ((t (:foreground "#cb4b16" :weight normal))))
'(rainbow-delimiters-depth-9-face ((t (:foreground "#859900" :weight normal)))))
;;; General theme options
(setq custom-safe-themes t)
(load-theme 'brin t)
|
<?xml version="1.0" encoding="utf-8" ?>
<dataset Transactions="1"><dataset_header DisableRI="yes" DatasetObj="1004928896.09" DateFormat="mdy" FullHeader="no" SCMManaged="yes" YearOffset="1950" DatasetCode="RYCSO" NumericFormat="AMERICAN" NumericDecimal="." OriginatingSite="91" NumericSeparator=","/>
<dataset_records><dataset_transaction TransactionNo="1" TransactionType="DATA"><contained_record DB="icfdb" Table="ryc_smartobject" version_date="05/27/2003" version_time="63945" version_user="admin" deletion_flag="no" entity_mnemonic="rycso" key_field_value="3000028114.09" record_version_obj="3000028115.09" version_number_seq="37.09" secondary_key_value="ryc_relationship.child_entity#CHR(1)#0" import_version_number_seq="37.09"><smartobject_obj>3000028114.09</smartobject_obj>
<object_filename>ryc_relationship.child_entity</object_filename>
<customization_result_obj>0</customization_result_obj>
<object_type_obj>1005091923.09</object_type_obj>
<product_module_obj>3000005456.09</product_module_obj>
<layout_obj>0</layout_obj>
<object_description>DataField for child_entity</object_description>
<object_path>ry/dfo</object_path>
<object_extension></object_extension>
<static_object>yes</static_object>
<generic_object>no</generic_object>
<template_smartobject>no</template_smartobject>
<system_owned>no</system_owned>
<deployment_type></deployment_type>
<design_only>no</design_only>
<runnable_from_menu>no</runnable_from_menu>
<container_object>no</container_object>
<disabled>no</disabled>
<run_persistent>no</run_persistent>
<run_when>ANY</run_when>
<shutdown_message_text></shutdown_message_text>
<required_db_list></required_db_list>
<sdo_smartobject_obj>0</sdo_smartobject_obj>
<extends_smartobject_obj>0</extends_smartobject_obj>
<security_smartobject_obj>3000028114.09</security_smartobject_obj>
<object_is_runnable>no</object_is_runnable>
<contained_record DB="icfdb" Table="ryc_attribute_value"><attribute_value_obj>3000028122.09</attribute_value_obj>
<object_type_obj>1005091923.09</object_type_obj>
<container_smartobject_obj>0</container_smartobject_obj>
<smartobject_obj>3000028114.09</smartobject_obj>
<object_instance_obj>0</object_instance_obj>
<constant_value>no</constant_value>
<attribute_label>ColumnLabel</attribute_label>
<character_value>?</character_value>
<integer_value>0</integer_value>
<date_value>?</date_value>
<decimal_value>0</decimal_value>
<logical_value>no</logical_value>
<primary_smartobject_obj>3000028114.09</primary_smartobject_obj>
<render_type_obj>0</render_type_obj>
<applies_at_runtime>no</applies_at_runtime>
</contained_record>
<contained_record DB="icfdb" Table="ryc_attribute_value"><attribute_value_obj>3000028118.09</attribute_value_obj>
<object_type_obj>1005091923.09</object_type_obj>
<container_smartobject_obj>0</container_smartobject_obj>
<smartobject_obj>3000028114.09</smartobject_obj>
<object_instance_obj>0</object_instance_obj>
<constant_value>no</constant_value>
<attribute_label>DATA-TYPE</attribute_label>
<character_value>character</character_value>
<integer_value>0</integer_value>
<date_value>?</date_value>
<decimal_value>0</decimal_value>
<logical_value>no</logical_value>
<primary_smartobject_obj>3000028114.09</primary_smartobject_obj>
<render_type_obj>0</render_type_obj>
<applies_at_runtime>no</applies_at_runtime>
</contained_record>
<contained_record DB="icfdb" Table="ryc_attribute_value"><attribute_value_obj>3000028120.09</attribute_value_obj>
<object_type_obj>1005091923.09</object_type_obj>
<container_smartobject_obj>0</container_smartobject_obj>
<smartobject_obj>3000028114.09</smartobject_obj>
<object_instance_obj>0</object_instance_obj>
<constant_value>no</constant_value>
<attribute_label>FORMAT</attribute_label>
<character_value>X(8)</character_value>
<integer_value>0</integer_value>
<date_value>?</date_value>
<decimal_value>0</decimal_value>
<logical_value>no</logical_value>
<primary_smartobject_obj>3000028114.09</primary_smartobject_obj>
<render_type_obj>0</render_type_obj>
<applies_at_runtime>no</applies_at_runtime>
</contained_record>
<contained_record DB="icfdb" Table="ryc_attribute_value"><attribute_value_obj>3000028124.09</attribute_value_obj>
<object_type_obj>1005091923.09</object_type_obj>
<container_smartobject_obj>0</container_smartobject_obj>
<smartobject_obj>3000028114.09</smartobject_obj>
<object_instance_obj>0</object_instance_obj>
<constant_value>no</constant_value>
<attribute_label>HEIGHT-CHARS</attribute_label>
<character_value></character_value>
<integer_value>0</integer_value>
<date_value>?</date_value>
<decimal_value>1</decimal_value>
<logical_value>no</logical_value>
<primary_smartobject_obj>3000028114.09</primary_smartobject_obj>
<render_type_obj>0</render_type_obj>
<applies_at_runtime>yes</applies_at_runtime>
</contained_record>
<contained_record DB="icfdb" Table="ryc_attribute_value"><attribute_value_obj>3000028123.09</attribute_value_obj>
<object_type_obj>1005091923.09</object_type_obj>
<container_smartobject_obj>0</container_smartobject_obj>
<smartobject_obj>3000028114.09</smartobject_obj>
<object_instance_obj>0</object_instance_obj>
<constant_value>no</constant_value>
<attribute_label>HELP</attribute_label>
<character_value>Child entity</character_value>
<integer_value>0</integer_value>
<date_value>?</date_value>
<decimal_value>0</decimal_value>
<logical_value>no</logical_value>
<primary_smartobject_obj>3000028114.09</primary_smartobject_obj>
<render_type_obj>0</render_type_obj>
<applies_at_runtime>yes</applies_at_runtime>
</contained_record>
<contained_record DB="icfdb" Table="ryc_attribute_value"><attribute_value_obj>3000028119.09</attribute_value_obj>
<object_type_obj>1005091923.09</object_type_obj>
<container_smartobject_obj>0</container_smartobject_obj>
<smartobject_obj>3000028114.09</smartobject_obj>
<object_instance_obj>0</object_instance_obj>
<constant_value>no</constant_value>
<attribute_label>InitialValue</attribute_label>
<character_value></character_value>
<integer_value>0</integer_value>
<date_value>?</date_value>
<decimal_value>0</decimal_value>
<logical_value>no</logical_value>
<primary_smartobject_obj>3000028114.09</primary_smartobject_obj>
<render_type_obj>0</render_type_obj>
<applies_at_runtime>yes</applies_at_runtime>
</contained_record>
<contained_record DB="icfdb" Table="ryc_attribute_value"><attribute_value_obj>3000028121.09</attribute_value_obj>
<object_type_obj>1005091923.09</object_type_obj>
<container_smartobject_obj>0</container_smartobject_obj>
<smartobject_obj>3000028114.09</smartobject_obj>
<object_instance_obj>0</object_instance_obj>
<constant_value>no</constant_value>
<attribute_label>LABEL</attribute_label>
<character_value>Child entity</character_value>
<integer_value>0</integer_value>
<date_value>?</date_value>
<decimal_value>0</decimal_value>
<logical_value>no</logical_value>
<primary_smartobject_obj>3000028114.09</primary_smartobject_obj>
<render_type_obj>0</render_type_obj>
<applies_at_runtime>no</applies_at_runtime>
</contained_record>
<contained_record DB="icfdb" Table="ryc_attribute_value"><attribute_value_obj>3000028137.09</attribute_value_obj>
<object_type_obj>1005091923.09</object_type_obj>
<container_smartobject_obj>0</container_smartobject_obj>
<smartobject_obj>3000028114.09</smartobject_obj>
<object_instance_obj>0</object_instance_obj>
<constant_value>no</constant_value>
<attribute_label>LABELS</attribute_label>
<character_value></character_value>
<integer_value>0</integer_value>
<date_value>?</date_value>
<decimal_value>0</decimal_value>
<logical_value>yes</logical_value>
<primary_smartobject_obj>3000028114.09</primary_smartobject_obj>
<render_type_obj>0</render_type_obj>
<applies_at_runtime>yes</applies_at_runtime>
</contained_record>
<contained_record DB="icfdb" Table="ryc_attribute_value"><attribute_value_obj>3000028116.09</attribute_value_obj>
<object_type_obj>1005091923.09</object_type_obj>
<container_smartobject_obj>0</container_smartobject_obj>
<smartobject_obj>3000028114.09</smartobject_obj>
<object_instance_obj>0</object_instance_obj>
<constant_value>no</constant_value>
<attribute_label>NAME</attribute_label>
<character_value>child_entity</character_value>
<integer_value>0</integer_value>
<date_value>?</date_value>
<decimal_value>0</decimal_value>
<logical_value>no</logical_value>
<primary_smartobject_obj>3000028114.09</primary_smartobject_obj>
<render_type_obj>0</render_type_obj>
<applies_at_runtime>no</applies_at_runtime>
</contained_record>
<contained_record DB="icfdb" Table="ryc_attribute_value"><attribute_value_obj>3000028129.09</attribute_value_obj>
<object_type_obj>1005091923.09</object_type_obj>
<container_smartobject_obj>0</container_smartobject_obj>
<smartobject_obj>3000028114.09</smartobject_obj>
<object_instance_obj>0</object_instance_obj>
<constant_value>yes</constant_value>
<attribute_label>SCHEMA-COLUMN-LABEL</attribute_label>
<character_value>?</character_value>
<integer_value>0</integer_value>
<date_value>?</date_value>
<decimal_value>0</decimal_value>
<logical_value>no</logical_value>
<primary_smartobject_obj>3000028114.09</primary_smartobject_obj>
<render_type_obj>0</render_type_obj>
<applies_at_runtime>no</applies_at_runtime>
</contained_record>
<contained_record DB="icfdb" Table="ryc_attribute_value"><attribute_value_obj>3000042113.09</attribute_value_obj>
<object_type_obj>1005091923.09</object_type_obj>
<container_smartobject_obj>0</container_smartobject_obj>
<smartobject_obj>3000028114.09</smartobject_obj>
<object_instance_obj>0</object_instance_obj>
<constant_value>yes</constant_value>
<attribute_label>SCHEMA-DECIMALS</attribute_label>
<character_value></character_value>
<integer_value>?</integer_value>
<date_value>?</date_value>
<decimal_value>0</decimal_value>
<logical_value>no</logical_value>
<primary_smartobject_obj>3000028114.09</primary_smartobject_obj>
<render_type_obj>0</render_type_obj>
<applies_at_runtime>no</applies_at_runtime>
</contained_record>
<contained_record DB="icfdb" Table="ryc_attribute_value"><attribute_value_obj>3000042114.09</attribute_value_obj>
<object_type_obj>1005091923.09</object_type_obj>
<container_smartobject_obj>0</container_smartobject_obj>
<smartobject_obj>3000028114.09</smartobject_obj>
<object_instance_obj>0</object_instance_obj>
<constant_value>yes</constant_value>
<attribute_label>SCHEMA-DESCRIPTION</attribute_label>
<character_value>This is the entity mnemonic of the child table of the relationship. The actual table name is obtained by reading the gsc_entity_mnemonic table and referencing the entity_mnemonic_description which is the actual table name in all cases.
</character_value>
<integer_value>0</integer_value>
<date_value>?</date_value>
<decimal_value>0</decimal_value>
<logical_value>no</logical_value>
<primary_smartobject_obj>3000028114.09</primary_smartobject_obj>
<render_type_obj>0</render_type_obj>
<applies_at_runtime>no</applies_at_runtime>
</contained_record>
<contained_record DB="icfdb" Table="ryc_attribute_value"><attribute_value_obj>3000028127.09</attribute_value_obj>
<object_type_obj>1005091923.09</object_type_obj>
<container_smartobject_obj>0</container_smartobject_obj>
<smartobject_obj>3000028114.09</smartobject_obj>
<object_instance_obj>0</object_instance_obj>
<constant_value>yes</constant_value>
<attribute_label>SCHEMA-FORMAT</attribute_label>
<character_value>X(8)</character_value>
<integer_value>0</integer_value>
<date_value>?</date_value>
<decimal_value>0</decimal_value>
<logical_value>no</logical_value>
<primary_smartobject_obj>3000028114.09</primary_smartobject_obj>
<render_type_obj>0</render_type_obj>
<applies_at_runtime>no</applies_at_runtime>
</contained_record>
<contained_record DB="icfdb" Table="ryc_attribute_value"><attribute_value_obj>3000028130.09</attribute_value_obj>
<object_type_obj>1005091923.09</object_type_obj>
<container_smartobject_obj>0</container_smartobject_obj>
<smartobject_obj>3000028114.09</smartobject_obj>
<object_instance_obj>0</object_instance_obj>
<constant_value>yes</constant_value>
<attribute_label>SCHEMA-HELP</attribute_label>
<character_value>Child entity</character_value>
<integer_value>0</integer_value>
<date_value>?</date_value>
<decimal_value>0</decimal_value>
<logical_value>no</logical_value>
<primary_smartobject_obj>3000028114.09</primary_smartobject_obj>
<render_type_obj>0</render_type_obj>
<applies_at_runtime>no</applies_at_runtime>
</contained_record>
<contained_record DB="icfdb" Table="ryc_attribute_value"><attribute_value_obj>3000028126.09</attribute_value_obj>
<object_type_obj>1005091923.09</object_type_obj>
<container_smartobject_obj>0</container_smartobject_obj>
<smartobject_obj>3000028114.09</smartobject_obj>
<object_instance_obj>0</object_instance_obj>
<constant_value>no</constant_value>
<attribute_label>SCHEMA-INITIAL</attribute_label>
<character_value></character_value>
<integer_value>0</integer_value>
<date_value>?</date_value>
<decimal_value>0</decimal_value>
<logical_value>no</logical_value>
<primary_smartobject_obj>3000028114.09</primary_smartobject_obj>
<render_type_obj>0</render_type_obj>
<applies_at_runtime>no</applies_at_runtime>
</contained_record>
<contained_record DB="icfdb" Table="ryc_attribute_value"><attribute_value_obj>3000028128.09</attribute_value_obj>
<object_type_obj>1005091923.09</object_type_obj>
<container_smartobject_obj>0</container_smartobject_obj>
<smartobject_obj>3000028114.09</smartobject_obj>
<object_instance_obj>0</object_instance_obj>
<constant_value>yes</constant_value>
<attribute_label>SCHEMA-LABEL</attribute_label>
<character_value>Child entity</character_value>
<integer_value>0</integer_value>
<date_value>?</date_value>
<decimal_value>0</decimal_value>
<logical_value>no</logical_value>
<primary_smartobject_obj>3000028114.09</primary_smartobject_obj>
<render_type_obj>0</render_type_obj>
<applies_at_runtime>no</applies_at_runtime>
</contained_record>
<contained_record DB="icfdb" Table="ryc_attribute_value"><attribute_value_obj>3000042115.09</attribute_value_obj>
<object_type_obj>1005091923.09</object_type_obj>
<container_smartobject_obj>0</container_smartobject_obj>
<smartobject_obj>3000028114.09</smartobject_obj>
<object_instance_obj>0</object_instance_obj>
<constant_value>yes</constant_value>
<attribute_label>SCHEMA-ORDER</attribute_label>
<character_value></character_value>
<integer_value>50</integer_value>
<date_value>?</date_value>
<decimal_value>0</decimal_value>
<logical_value>no</logical_value>
<primary_smartobject_obj>3000028114.09</primary_smartobject_obj>
<render_type_obj>0</render_type_obj>
<applies_at_runtime>no</applies_at_runtime>
</contained_record>
<contained_record DB="icfdb" Table="ryc_attribute_value"><attribute_value_obj>3000028132.09</attribute_value_obj>
<object_type_obj>1005091923.09</object_type_obj>
<container_smartobject_obj>0</container_smartobject_obj>
<smartobject_obj>3000028114.09</smartobject_obj>
<object_instance_obj>0</object_instance_obj>
<constant_value>yes</constant_value>
<attribute_label>SCHEMA-VALIDATE-EXPRESSION</attribute_label>
<character_value>?</character_value>
<integer_value>0</integer_value>
<date_value>?</date_value>
<decimal_value>0</decimal_value>
<logical_value>no</logical_value>
<primary_smartobject_obj>3000028114.09</primary_smartobject_obj>
<render_type_obj>0</render_type_obj>
<applies_at_runtime>no</applies_at_runtime>
</contained_record>
<contained_record DB="icfdb" Table="ryc_attribute_value"><attribute_value_obj>3000028133.09</attribute_value_obj>
<object_type_obj>1005091923.09</object_type_obj>
<container_smartobject_obj>0</container_smartobject_obj>
<smartobject_obj>3000028114.09</smartobject_obj>
<object_instance_obj>0</object_instance_obj>
<constant_value>yes</constant_value>
<attribute_label>SCHEMA-VALIDATE-MESSAGE</attribute_label>
<character_value>s_entity_mnemonic</character_value>
<integer_value>0</integer_value>
<date_value>?</date_value>
<decimal_value>0</decimal_value>
<logical_value>no</logical_value>
<primary_smartobject_obj>3000028114.09</primary_smartobject_obj>
<render_type_obj>0</render_type_obj>
<applies_at_runtime>no</applies_at_runtime>
</contained_record>
<contained_record DB="icfdb" Table="ryc_attribute_value"><attribute_value_obj>3000028131.09</attribute_value_obj>
<object_type_obj>1005091923.09</object_type_obj>
<container_smartobject_obj>0</container_smartobject_obj>
<smartobject_obj>3000028114.09</smartobject_obj>
<object_instance_obj>0</object_instance_obj>
<constant_value>yes</constant_value>
<attribute_label>SCHEMA-VIEW-AS</attribute_label>
<character_value>?</character_value>
<integer_value>0</integer_value>
<date_value>?</date_value>
<decimal_value>0</decimal_value>
<logical_value>no</logical_value>
<primary_smartobject_obj>3000028114.09</primary_smartobject_obj>
<render_type_obj>0</render_type_obj>
<applies_at_runtime>no</applies_at_runtime>
</contained_record>
<contained_record DB="icfdb" Table="ryc_attribute_value"><attribute_value_obj>3000028134.09</attribute_value_obj>
<object_type_obj>1005091923.09</object_type_obj>
<container_smartobject_obj>0</container_smartobject_obj>
<smartobject_obj>3000028114.09</smartobject_obj>
<object_instance_obj>0</object_instance_obj>
<constant_value>no</constant_value>
<attribute_label>ShowPopup</attribute_label>
<character_value></character_value>
<integer_value>0</integer_value>
<date_value>?</date_value>
<decimal_value>0</decimal_value>
<logical_value>no</logical_value>
<primary_smartobject_obj>3000028114.09</primary_smartobject_obj>
<render_type_obj>0</render_type_obj>
<applies_at_runtime>yes</applies_at_runtime>
</contained_record>
<contained_record DB="icfdb" Table="ryc_attribute_value"><attribute_value_obj>3000028117.09</attribute_value_obj>
<object_type_obj>1005091923.09</object_type_obj>
<container_smartobject_obj>0</container_smartobject_obj>
<smartobject_obj>3000028114.09</smartobject_obj>
<object_instance_obj>0</object_instance_obj>
<constant_value>yes</constant_value>
<attribute_label>TableName</attribute_label>
<character_value>ryc_relationship</character_value>
<integer_value>0</integer_value>
<date_value>?</date_value>
<decimal_value>0</decimal_value>
<logical_value>no</logical_value>
<primary_smartobject_obj>3000028114.09</primary_smartobject_obj>
<render_type_obj>0</render_type_obj>
<applies_at_runtime>yes</applies_at_runtime>
</contained_record>
<contained_record DB="icfdb" Table="ryc_attribute_value"><attribute_value_obj>3000028136.09</attribute_value_obj>
<object_type_obj>1005091923.09</object_type_obj>
<container_smartobject_obj>0</container_smartobject_obj>
<smartobject_obj>3000028114.09</smartobject_obj>
<object_instance_obj>0</object_instance_obj>
<constant_value>no</constant_value>
<attribute_label>VISIBLE</attribute_label>
<character_value></character_value>
<integer_value>0</integer_value>
<date_value>?</date_value>
<decimal_value>0</decimal_value>
<logical_value>yes</logical_value>
<primary_smartobject_obj>3000028114.09</primary_smartobject_obj>
<render_type_obj>0</render_type_obj>
<applies_at_runtime>yes</applies_at_runtime>
</contained_record>
<contained_record DB="icfdb" Table="ryc_attribute_value"><attribute_value_obj>3000028135.09</attribute_value_obj>
<object_type_obj>1005091923.09</object_type_obj>
<container_smartobject_obj>0</container_smartobject_obj>
<smartobject_obj>3000028114.09</smartobject_obj>
<object_instance_obj>0</object_instance_obj>
<constant_value>no</constant_value>
<attribute_label>VisualizationType</attribute_label>
<character_value>FILL-IN</character_value>
<integer_value>0</integer_value>
<date_value>?</date_value>
<decimal_value>0</decimal_value>
<logical_value>no</logical_value>
<primary_smartobject_obj>3000028114.09</primary_smartobject_obj>
<render_type_obj>0</render_type_obj>
<applies_at_runtime>yes</applies_at_runtime>
</contained_record>
<contained_record DB="icfdb" Table="ryc_attribute_value"><attribute_value_obj>3000028125.09</attribute_value_obj>
<object_type_obj>1005091923.09</object_type_obj>
<container_smartobject_obj>0</container_smartobject_obj>
<smartobject_obj>3000028114.09</smartobject_obj>
<object_instance_obj>0</object_instance_obj>
<constant_value>no</constant_value>
<attribute_label>WIDTH-CHARS</attribute_label>
<character_value></character_value>
<integer_value>0</integer_value>
<date_value>?</date_value>
<decimal_value>13.6</decimal_value>
<logical_value>no</logical_value>
<primary_smartobject_obj>3000028114.09</primary_smartobject_obj>
<render_type_obj>0</render_type_obj>
<applies_at_runtime>yes</applies_at_runtime>
</contained_record>
</contained_record>
</dataset_transaction>
</dataset_records>
</dataset> |
\qecho Execute /database/triggers/dummy_sp_trigger_a.sql
\include ./database/triggers/dummy_sp_trigger_a.sql
\qecho Execute /database/triggers/dummy_sp_trigger_b.sql
\include ./database/triggers/dummy_sp_trigger_b.sql
\qecho Execute /database/triggers/dummy_sp_trigger_c.sql
\include ./database/triggers/dummy_sp_trigger_c.sql
|
-- Internal persistence library
--[[ Provides ]]
-- persistence.store(path, ...): Stores arbitrary items to the file at the given path
-- persistence.load(path): Loads files that were previously stored with store and returns them
--[[ Limitations ]]
-- Does not export userdata, threads or most function values
-- Function export is not portable
--[[ License: MIT (see bottom) ]]
-- Private methods
local write, writeIndent, writers, refCount;
-- write thing (dispatcher)
write = function (file, item, level, objRefNames)
writers[type(item)](file, item, level, objRefNames);
end;
-- write indent
writeIndent = function (file, level)
for i = 1, level do
file:write("\t");
end;
end;
-- recursively count references
refCount = function (objRefCount, item)
-- only count reference types (tables)
if type(item) == "table" then
-- Increase ref count
if objRefCount[item] then
objRefCount[item] = objRefCount[item] + 1;
else
objRefCount[item] = 1;
-- If first encounter, traverse
for k, v in pairs(item) do
refCount(objRefCount, k);
refCount(objRefCount, v);
end;
end;
end;
end;
-- Format items for the purpose of restoring
writers = {
["nil"] = function (file, item)
file:write("nil");
end;
["number"] = function (file, item)
file:write(tostring(item));
end;
["string"] = function (file, item)
file:write(string.format("%q", item));
end;
["boolean"] = function (file, item)
if item then
file:write("true");
else
file:write("false");
end
end;
["table"] = function (file, item, level, objRefNames)
local refIdx = objRefNames[item];
if refIdx then
-- Table with multiple references
file:write("multiRefObjects["..refIdx.."]");
else
-- Single use table
file:write("{\n");
for k, v in pairs(item) do
writeIndent(file, level+1);
file:write("[");
write(file, k, level+1, objRefNames);
file:write("] = ");
write(file, v, level+1, objRefNames);
file:write(";\n");
end
writeIndent(file, level);
file:write("}");
end;
end;
["function"] = function (file, item)
-- Does only work for "normal" functions, not those
-- with upvalues or c functions
local dInfo = debug.getinfo(item, "uS");
if dInfo.nups > 0 then
file:write("nil --[[functions with upvalue not supported]]");
elseif dInfo.what ~= "Lua" then
file:write("nil --[[non-lua function not supported]]");
else
local r, s = pcall(string.dump,item);
if r then
file:write(string.format("loadstring(%q)", s));
else
file:write("nil --[[function could not be dumped]]");
end
end
end;
["thread"] = function (file, item)
file:write("nil --[[thread]]\n");
end;
["userdata"] = function (file, item)
file:write("nil --[[userdata]]\n");
end;
}
return function (path, ...)
local file, e;
if type(path) == "string" then
-- Path, open a file
file, e = io.open(path, "w");
if not file then
return error(e);
end
else
-- Just treat it as file
file = path;
end
local n = select("#", ...);
-- Count references
local objRefCount = {}; -- Stores reference that will be exported
for i = 1, n do
refCount(objRefCount, (select(i,...)));
end;
-- Export Objects with more than one ref and assign name
-- First, create empty tables for each
local objRefNames = {};
local objRefIdx = 0;
file:write("-- Persistent Data\n");
file:write("local multiRefObjects = {\n");
for obj, count in pairs(objRefCount) do
if count > 1 then
objRefIdx = objRefIdx + 1;
objRefNames[obj] = objRefIdx;
file:write("{};"); -- table objRefIdx
end;
end;
file:write("\n} -- multiRefObjects\n");
-- Then fill them (this requires all empty multiRefObjects to exist)
for obj, idx in pairs(objRefNames) do
for k, v in pairs(obj) do
file:write("multiRefObjects["..idx.."][");
write(file, k, 0, objRefNames);
file:write("] = ");
write(file, v, 0, objRefNames);
file:write(";\n");
end;
end;
-- Create the remaining objects
for i = 1, n do
file:write("local ".."obj"..i.." = ");
write(file, (select(i,...)), 0, objRefNames);
file:write("\n");
end
-- Return them
if n > 0 then
file:write("return obj1");
for i = 2, n do
file:write(" ,obj"..i);
end;
file:write("\n");
else
file:write("return\n");
end;
file:close();
end, function (path)
local f, e = loadfile(path);
if f then
return f();
else
return nil, e;
end;
end
--[[
Copyright (c) 2010 Gerhard Roethlin
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 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.
]]
|
<?php
/*##########################################################################################################################################
ALLOWS US TO SEPARATE THE LOGIC FROM THE LAYOUT
Updated December 2007
SAMPLE USAGE:
index_page.html contents:
---------------------------------
<html>
<head>
<title></title>
</head>
<body>
<p>Some text is [sumpm].</p>
</body>
</html>
---------------------------------
index.php contents:
---------------------------------
<?php
require_once("template.php");
$vars['sumpm']="something";
$HTML = replace($vars,rf("index_page.html"));
//
?>
---------------------------------
Then, you browse to index.php. The
terms enclosed in square brackets are
taken from the $vars variable and
placed into the HTML file where they
appear with the same name. The HTML
file is then sent as the PHP output.
The output of the page will be:
"Some text is something."
How do we get this system into objects?
##########################################################################################################################################*/
function rf($file){
if(is_file($file)){
return implode("",file($file));
}
}
function replace($array,$str){
if(is_array($array)){
foreach($array as $n=>$v){
$search[]="[$n]";
$replace[]="$v";
}
if(!empty($search)&&!empty($replace)){
return str_replace($search,$replace,$str);
}else{
return $str;
}
}else{
return $str;
}
}
?> |
namespace java com.rbkmoney.bouncer.rstn
namespace erlang brstn
include "base.thrift"
typedef base.Version Version
typedef base.Entity Entity
const Version HEAD = 1
/**
* Ограничения применимые в сервисе
*
* Так как ограничения предпологаются только на конкретных сервисах с их
* уникальными данными, то нет нужды запаковывать их в строку
*/
struct Restrictions {
1: required Version vsn = HEAD
2: optional RestrictionsAnalyticsAPI anapi
3: optional RestrictionsCommonAPI capi
}
/**
* Ограничения накладываемые на сервис АПИ Аналитики
*/
struct RestrictionsAnalyticsAPI {
1: required AnalyticsAPIOperationRestrictions op
}
struct AnalyticsAPIOperationRestrictions {
1: required set<Entity> shops
}
/**
* Ограничения, накладываемые на сервисы общего АПИ
*/
struct RestrictionsCommonAPI {
1: optional bool ip_replacement_forbidden
}
|
syntax = "proto3";
package alert_rule;
import "monitor_sdk/model/monitor/alert_rule.proto";
/*
DetailAlertRuleV4请求
*/
message DetailAlertRuleV4Request {
/*
告警规则id
*/
string id = 1 ;
/*
告警规则版本
*/
int32 version = 2 ;
}
/*
DetailAlertRuleV4返回
*/
message DetailAlertRuleV4Response {
/*
code
*/
int32 code = 1 ;
/*
msg
*/
string msg = 2 ;
/*
data
*/
monitor.AlertRule data = 3 ;
}
/*
DetailAlertRuleV4Api返回
*/
message DetailAlertRuleV4ResponseWrapper {
/*
返回码
*/
int32 code = 1 ;
/*
返回码解释
*/
string codeExplain = 2 ;
/*
错误详情
*/
string error = 3 ;
/*
返回数据
*/
alert_rule.DetailAlertRuleV4Response data = 4 ;
}
|
@ECHO off
SET ROOT=%cd%
cd %~dp0
SET TEST_PATH=..\..\..\..\..\..\..\java-advanced-2020
SET PROJECT_PATH=..\..\..\..\..\
SET mod_name=ru.ifmo.rain.karimov.implementor
SET mod_path=ru\ifmo\rain\karimov\implementor
SET res_name=info.kgeorgiy.java.advanced
SET res_path=%TEST_PATH%\modules\%res_name%.implementor\info\kgeorgiy\java\advanced\implementor
SET src=%wd%\src\modules\%mod_name%
SET out=_build
SET req=%cd%\%TEST_PATH%\lib;%cd%\%TEST_PATH%\artifacts;
mkdir _build
javac --module-path %req% %PROJECT_PATH%\module-info.java *.java -d %out%
cd %out%
@ECHO on
jar -c --file=..\Implementor.jar --main-class=%mod_name%.Implementor --module-path=%req% module-info.class %mod_path%\*.class
rmdir /S /Q _build
cd %ROOT%
|
prefix fn: <http://localhost:8083/>
prefix fn2: <http://localhost:8888/>
prefix x: <http://www.drugbank.ca>
prefix xs: <http://www.w3.org/2001/XMLSchema>
function fn:getDrugBankNames GET ( -> ?x )
service fn:getDrugBankNames [ ] -> "//x:row" :: "./x:drug" "xs:string"
function fn:getSMILES ( ?drug -> ?smiles )
table fn:getSMILES [ "funcData" -> post data ] -> "//x:row" :: "./x:drug" "xs:string" "./x:smiles" "xs:string"
select distinct * where {
BIND( fn:getDrugBankNames() AS ( ?drug ) )
BIND( fn:getSMILES( ?drug ) AS ( ?drug ?smiles ) )
}
|
\documentclass{article}
\usepackage{pstricks}
\usepackage{auto-pst-pdf}
\usepackage{booktabs}
\begin{document}
\begin{center}
\psset{unit=7cm}
\begin{pspicture}(-1,-1)(1,1)
\pscircle[linewidth=.001pt](0,0){1}
\newgray{lightestgray}{.93}
% draw the triangles
\pscustom[linewidth=.1pt]{
\psline[linewidth=.1pt]
(0.00000000,0.00000000)
(0.75983568,0.00000000)
\psarc[linewidth=.1pt]
(1.0379549,-0.2781191)
{0.39331992}
{135.00000}
{195.00000}
\psline[linewidth=.1pt]
(0.65803701,-0.3799178)
(0.00000000,0.00000000)
\closepath}
\pscustom[linewidth=.1pt,fillstyle=solid,fillcolor=lightgray]{
\psline[linewidth=.1pt]
(0.00000000,0.00000000)
(0.75983568,0.00000000)
\psarcn[linewidth=.1pt]
(1.0379549,0.27811915)
{0.39331990}
{225.00000}
{165.00000}
\psline[linewidth=.1pt]
(0.65803701,0.37991784)
(0.00000000,0.00000000)
\closepath}
\pscustom[linewidth=.1pt]{
\psarc[linewidth=.1pt]
(1.0379548,0.00000000)
{0.27811915}
{120.00000}
{180.00000}
\psarcn[linewidth=.1pt]
(1.0379549,0.27811914)
{0.39331989}
{225.00000}
{165.00000}
\psarc[linewidth=.1pt]
(0.89889528,0.51897735)
{0.27811914}
{209.99998}
{270.00000}
\closepath}
\pscustom[linewidth=.1pt,fillstyle=solid,fillcolor=lightgray]{
\psarc[linewidth=.1pt]
(1.0379548,0.00000000)
{0.27811915}
{120.00000}
{180.00000}
\psarcn[linewidth=.1pt]
(1.0379548,-0.2781190)
{0.39331982}
{135.00001}
{105.00000}
\psarcn[linewidth=.1pt]
(0.98705550,0.18995894)
{0.10179869}
{240.00001}
{150.00000}
\closepath}
\pscustom[linewidth=.1pt]{
\psarc[linewidth=.1pt]
(0.97341709,0.24085836)
{0.07452181}
{180.00007}
{259.79218}
\psarc[linewidth=.1pt]
(0.99492966,0.11754724)
{0.06084659}
{124.79232}
{195.00023}
\psarcn[linewidth=.1pt]
(0.98705551,0.18995899)
{0.10179874}
{240.00002}
{150.00003}
\closepath}
\pscustom[linewidth=.1pt,fillstyle=solid,fillcolor=lightgray]{
\psarc[linewidth=.1pt]
(0.97341708,0.24085828)
{0.07452181}
{180.00001}
{259.79218}
\psarcn[linewidth=.1pt]
(0.98340110,0.18362945)
{0.02823918}
{214.79243}
{135.00023}
\psarcn[linewidth=.1pt]
(0.96343305,0.27811943)
{0.07452207}
{269.99999}
{210.00018}
\closepath}
\pscustom[linewidth=.1pt]{
\psline[linewidth=.1pt]
(0.00000000,0.00000000)
(0.37991784,-0.6580370)
\psarc[linewidth=.1pt]
(0.27811917,-1.0379549)
{0.39331991}
{75.000002}
{135.00000}
\psline[linewidth=.1pt]
(0.00000000,-0.7598356)
(0.00000000,0.00000000)
\closepath}
\pscustom[linewidth=.1pt,fillstyle=solid,fillcolor=lightgray]{
\psline[linewidth=.1pt]
(0.00000000,0.00000000)
(0.37991784,-0.6580370)
\psarcn[linewidth=.1pt]
(0.75983565,-0.7598356)
{0.39331986}
{165.00000}
{104.99999}
\psline[linewidth=.1pt]
(0.65803701,-0.3799178)
(0.00000000,0.00000000)
\closepath}
\pscustom[linewidth=.1pt]{
\psline[linewidth=.1pt]
(0.00000000,0.00000000)
(-0.3799178,-0.6580370)
\psarc[linewidth=.1pt]
(-0.7598357,-0.7598356)
{0.39331994}
{14.999998}
{74.999993}
\psline[linewidth=.1pt]
(-0.6580370,-0.3799178)
(0.00000000,0.00000000)
\closepath}
\pscustom[linewidth=.1pt,fillstyle=solid,fillcolor=lightgray]{
\psline[linewidth=.1pt]
(0.00000000,0.00000000)
(-0.3799178,-0.6580370)
\psarcn[linewidth=.1pt]
(-0.2781191,-1.0379548)
{0.39331989}
{105.00000}
{45.000001}
\psline[linewidth=.1pt]
(0.00000000,-0.7598356)
(0.00000000,0.00000000)
\closepath}
\pscustom[linewidth=.1pt]{
\psline[linewidth=.1pt]
(0.00000000,0.00000000)
(-0.7598356,0.00000000)
\psarc[linewidth=.1pt]
(-1.0379548,0.27811917)
{0.39331989}
{315.00000}
{14.999999}
\psline[linewidth=.1pt]
(-0.6580370,0.37991784)
(0.00000000,0.00000000)
\closepath}
\pscustom[linewidth=.1pt,fillstyle=solid,fillcolor=lightgray]{
\psline[linewidth=.1pt]
(0.00000000,0.00000000)
(-0.7598356,0.00000000)
\psarcn[linewidth=.1pt]
(-1.0379548,-0.2781191)
{0.39331984}
{45.000000}
{344.99999}
\psline[linewidth=.1pt]
(-0.6580370,-0.3799178)
(0.00000000,0.00000000)
\closepath}
\pscustom[linewidth=.1pt]{
\psline[linewidth=.1pt]
(0.00000000,0.00000000)
(-0.3799178,0.65803701)
\psarc[linewidth=.1pt]
(-0.2781191,1.0379548)
{0.39331989}
{254.99999}
{315.00000}
\psline[linewidth=.1pt]
(0.00000000,0.75983568)
(0.00000000,0.00000000)
\closepath}
\pscustom[linewidth=.1pt,fillstyle=solid,fillcolor=lightgray]{
\psline[linewidth=.1pt]
(0.00000000,0.00000000)
(-0.3799178,0.65803701)
\psarcn[linewidth=.1pt]
(-0.7598356,0.75983570)
{0.39331988}
{345.00000}
{285.00000}
\psline[linewidth=.1pt]
(-0.6580370,0.37991784)
(0.00000000,0.00000000)
\closepath}
\pscustom[linewidth=.1pt]{
\psline[linewidth=.1pt]
(0.00000000,0.00000000)
(0.37991784,0.65803701)
\psarc[linewidth=.1pt]
(0.75983568,0.75983570)
{0.39331989}
{195.00000}
{255.00000}
\psline[linewidth=.1pt]
(0.65803701,0.37991784)
(0.00000000,0.00000000)
\closepath}
\pscustom[linewidth=.1pt,fillstyle=solid,fillcolor=lightgray]{
\psline[linewidth=.1pt]
(0.00000000,0.00000000)
(0.37991784,0.65803701)
\psarcn[linewidth=.1pt]
(0.27811918,1.0379548)
{0.39331988}
{285.00000}
{225.00000}
\psline[linewidth=.1pt]
(0.00000000,0.75983568)
(0.00000000,0.00000000)
\closepath}
% label the sides
\rput(0.65803701,-0.1763204)
{\psframebox*[linewidth=.0001,fillcolor=blue!10]
{$s_{1}$}}
\rput(0.17632048,0.65803701)
{\psframebox*[linewidth=.0001,fillcolor=red!80]
{$s_{1}$}}
\rput(0.75983570,0.27811917)
{\scalebox{0.86379044}
{\psframebox*[linewidth=.0001,fillcolor=blue!10]
{$s_{2}$}}}
\rput(0.92617214,0.21358135)
{\scalebox{0.21734977}
{\psframebox*[linewidth=.0001,fillcolor=red!80]
{$s_{2}$}}}
\rput(0.48171652,0.48171652)
{\psframebox*[linewidth=.0001,fillcolor=blue!10]
{$s_{3}$}}
\rput(0.95527402,0.18614149)
{\scalebox{0.21734977}
{\psframebox*[linewidth=.0001,fillcolor=red!80]
{$s_{3}$}}}
\rput(0.17632048,-0.6580370)
{\psframebox*[linewidth=.0001,fillcolor=blue!10]
{$s_{4}$}}
\rput(-0.1763204,-0.6580370)
{\psframebox*[linewidth=.0001,fillcolor=red!80]
{$s_{4}$}}
\rput(0.48171652,-0.4817165)
{\psframebox*[linewidth=.0001,fillcolor=blue!10]
{$s_{5}$}}
\rput(-0.4817165,-0.4817165)
{\psframebox*[linewidth=.0001,fillcolor=red!80]
{$s_{5}$}}
\rput(-0.1763204,0.65803701)
{\psframebox*[linewidth=.0001,fillcolor=blue!10]
{$s_{6}$}}
\rput(-0.4817165,0.48171654)
{\psframebox*[linewidth=.0001,fillcolor=red!80]
{$s_{6}$}}
\rput(-0.6580370,0.17632049)
{\psframebox*[linewidth=.0001,fillcolor=blue!10]
{$s_{7}$}}
\rput(-0.6580370,-0.1763204)
{\psframebox*[linewidth=.0001,fillcolor=red!80]
{$s_{7}$}}
\rput(0.84129490,0.06250584)
{\scalebox{0.86379044}
{\psframebox*[linewidth=.0001,fillcolor=blue!10]
{$s_{8}$}}}
\rput(0.93779020,0.13846152)
{\scalebox{0.21734977}
{\psframebox*[linewidth=.0001,fillcolor=red!80]
{$s_{8}$}}}
% draw the dessin
% coset 1
\psline[linewidth=1.5000000pt]
(0.00000000,0.00000000)
(0.75983568,0.00000000)
\psdots*[dotstyle=o,dotsize=7.0000000pt](0.00000000,0.00000000)
\psdots*[dotstyle=*,dotsize=7.0000000pt](0.75983568,0.00000000)
\psdots*[dotstyle=x,dotsize=7.0000000pt](0.65803701,-0.3799178)
% coset 2
\psarc[linewidth=1.2956856pt]
(1.0379548,0.00000000)
{0.27811915}
{120.00000}
{180.00000}
\psdots*[dotstyle=o,dotsize=6.0465330pt](0.89889527,0.24085826)
\psdots*[dotstyle=*,dotsize=6.0465330pt](0.75983568,0.00000000)
\psdots*[dotstyle=x,dotsize=6.0465330pt](0.65803701,0.37991784)
% coset 3
\psarc[linewidth=0.32602465pt]
(0.97341704,0.24085833)
{0.07452176}
{180.00006}
{259.79222}
\psdots*[dotstyle=o,dotsize=1.5214484pt](0.89889527,0.24085826)
\psdots*[dotstyle=*,dotsize=1.5214484pt](0.96021039,0.16751603)
\psdots*[dotstyle=x,dotsize=1.5214484pt](0.93615617,0.10179868)
% coset 4
\psline[linewidth=1.5000000pt]
(0.00000000,0.00000000)
(0.37991784,-0.6580370)
\psdots*[dotstyle=o,dotsize=7.0000000pt](0.00000000,0.00000000)
\psdots*[dotstyle=*,dotsize=7.0000000pt](0.37991784,-0.6580370)
\psdots*[dotstyle=x,dotsize=7.0000000pt](0.00000000,-0.7598356)
% coset 5
\psline[linewidth=1.5000000pt]
(0.00000000,0.00000000)
(-0.3799178,-0.6580370)
\psdots*[dotstyle=o,dotsize=7.0000000pt](0.00000000,0.00000000)
\psdots*[dotstyle=*,dotsize=7.0000000pt](-0.3799178,-0.6580370)
\psdots*[dotstyle=x,dotsize=7.0000000pt](-0.6580370,-0.3799178)
% coset 6
\psline[linewidth=1.5000000pt]
(0.00000000,0.00000000)
(-0.7598356,0.00000000)
\psdots*[dotstyle=o,dotsize=7.0000000pt](0.00000000,0.00000000)
\psdots*[dotstyle=*,dotsize=7.0000000pt](-0.7598356,0.00000000)
\psdots*[dotstyle=x,dotsize=7.0000000pt](-0.6580370,0.37991784)
% coset 7
\psline[linewidth=1.5000000pt]
(0.00000000,0.00000000)
(-0.3799178,0.65803701)
\psdots*[dotstyle=o,dotsize=7.0000000pt](0.00000000,0.00000000)
\psdots*[dotstyle=*,dotsize=7.0000000pt](-0.3799178,0.65803701)
\psdots*[dotstyle=x,dotsize=7.0000000pt](0.00000000,0.75983568)
% coset 8
\psline[linewidth=1.5000000pt]
(0.00000000,0.00000000)
(0.37991784,0.65803701)
\psdots*[dotstyle=o,dotsize=7.0000000pt](0.00000000,0.00000000)
\psdots*[dotstyle=*,dotsize=7.0000000pt](0.37991784,0.65803701)
\psdots*[dotstyle=x,dotsize=7.0000000pt](0.65803701,0.37991784)
% label the cosets
\rput(0.37991784,0.00000000)
{\psshadowbox[linewidth=.0001,fillcolor=lightestgray]
{$1$}}
\rput(0.79709659,0.13905958)
{\scalebox{0.86379044}
{\psshadowbox[linewidth=.0001,fillcolor=lightestgray]
{$2$}}}
\rput(0.91624325,0.19306035)
{\scalebox{0.21734977}
{\psshadowbox[linewidth=.0001,fillcolor=lightestgray]
{$3$}}}
\rput(0.18995892,-0.3290185)
{\psshadowbox[linewidth=.0001,fillcolor=lightestgray]
{$4$}}
\rput(-0.1899589,-0.3290185)
{\psshadowbox[linewidth=.0001,fillcolor=lightestgray]
{$5$}}
\rput(-0.3799178,0.00000000)
{\psshadowbox[linewidth=.0001,fillcolor=lightestgray]
{$6$}}
\rput(-0.1899589,0.32901850)
{\psshadowbox[linewidth=.0001,fillcolor=lightestgray]
{$7$}}
\rput(0.18995892,0.32901850)
{\psshadowbox[linewidth=.0001,fillcolor=lightestgray]
{$8$}}
\end{pspicture}
\end{center}
\thispagestyle{empty}
\end{document}
% [(1, 8, 7, 6, 5, 4)(2, 3),(1, 8, 3, 2)(4, 5),(1, 5, 6, 7)(2, 8)]
|
synospec.etc.spectrographs module
=================================
.. automodule:: synospec.etc.spectrographs
:members:
:private-members:
:undoc-members:
:show-inheritance:
|
***********
Concurrency
***********
MGE uses multi-threading to achieve concurrency.
Threading Utilities
===================
Thread
------
The thread class enhances the `std::thread` interface by some convenience
methods.
.. doxygenclass:: mge::thread
:members:
Thread Group
------------
Threads can be organized in thread groups. A thread is assigned to a thread
group om construction, and the group cannot be changed.
.. doxygenclass:: mge::thread_group
:members:
|
X, Y, TStamp, Pres., EndPts
DataSize: 689
5412 7830 0 8 0
5412 7830 16 16 0
5461 7951 26 23 0
5511 7951 32 27 0
5511 7951 47 30 0
5511 7951 57 34 0
5511 7951 63 37 0
5511 7951 79 40 0
5511 8071 94 44 0
5511 8071 104 42 0
5511 8071 110 41 0
5511 8071 125 40 0
5511 8192 135 41 0
5461 8312 141 42 0
5461 8433 151 43 0
5362 8553 157 47 0
5312 8553 172 50 0
5213 8674 182 55 0
5213 8674 188 58 0
5114 8674 204 59 0
5014 8794 214 62 0
4915 8674 219 61 0
4865 8794 229 61 0
4865 8674 235 60 0
4766 8553 250 50 0
4716 8433 260 43 0
4716 8433 266 41 0
4716 8312 282 41 0
4766 8192 292 47 0
4816 8071 297 52 0
4865 8071 307 58 0
4915 8071 313 61 0
5014 7951 329 49 0
5114 7951 339 43 0
5263 7951 344 41 0
5412 7951 360 40 0
5461 7951 370 38 0
5560 7951 375 38 0
5660 7951 385 41 0
5759 7951 407 45 0
5858 7951 417 48 0
5908 7830 422 54 0
6007 7951 432 61 0
6107 7830 438 62 0
6256 7710 454 58 0
6404 7589 464 55 0
6504 7469 469 57 0
6603 7348 485 64 0
6702 7228 495 72 0
6752 7228 500 73 0
6752 7228 510 72 0
6752 7228 516 73 0
6752 7228 532 67 0
6702 7348 542 59 0
6603 7469 547 55 0
6504 7710 563 55 0
6404 7951 573 53 0
6256 8192 579 60 0
6107 8312 589 72 0
5958 8553 594 52 0
5908 8674 610 42 0
5809 8794 620 41 0
5759 8915 625 44 0
5759 8915 635 47 0
5759 8915 641 48 0
5759 8915 657 49 0
5759 8915 667 46 0
5709 8915 672 40 0
5709 8915 688 38 0
5709 8915 698 36 0
5709 8794 704 36 0
5709 8674 714 39 0
5759 8674 719 43 0
5759 8553 735 45 0
5709 8553 750 42 0
5709 8674 760 43 0
5610 8794 766 44 0
5511 8915 782 51 0
5461 8915 792 62 0
5362 9035 797 57 0
5163 9276 813 48 0
5064 9276 823 47 0
4965 9396 829 47 0
4915 9396 839 47 0
4766 9396 844 46 0
4716 9396 860 47 0
4716 9276 870 46 0
4716 9155 875 51 0
4716 9035 891 50 0
4766 8794 901 45 0
4865 8553 907 41 1
7497 6987 1094 32 0
7497 6987 1104 35 0
7497 6987 1110 39 0
7447 7108 1120 45 0
7348 7228 1125 46 0
7199 7469 1141 46 0
7100 7589 1151 57 0
6851 7951 1157 45 0
6653 8071 1167 46 0
6454 8312 1172 57 0
6454 8312 1188 70 0
6256 8433 1198 77 0
6256 8433 1204 81 0
6107 8433 1219 73 0
6057 8553 1229 62 0
6007 8553 1235 51 0
6007 8553 1245 46 0
5958 8553 1250 43 0
6057 8553 1266 41 0
6057 8553 1276 42 0
6107 8553 1282 45 0
6206 8433 1297 46 0
6206 8433 1307 47 0
6206 8433 1313 47 0
6206 8553 1323 50 0
6256 8674 1329 53 0
6256 8794 1344 50 0
6256 8915 1354 47 0
6206 8915 1360 46 0
6156 9035 1375 45 0
6156 9035 1385 45 0
6156 9035 1391 45 0
6206 9035 1401 44 0
6206 9035 1422 40 0
6305 9035 1432 39 0
6355 8915 1438 41 0
6454 8794 1448 43 0
6454 8794 1454 46 0
6504 8794 1469 49 0
6504 8794 1479 53 0
6553 8794 1485 55 0
6553 8794 1500 52 0
6553 8794 1510 51 0
6553 8794 1516 49 0
6553 8915 1526 51 0
6504 8915 1532 52 0
6504 8915 1547 54 0
6504 9035 1557 55 0
6504 9035 1563 56 0
6504 8915 1579 56 0
6603 8915 1589 56 0
6653 8915 1594 53 0
6702 8794 1604 51 0
6752 8794 1610 55 0
6802 8674 1625 59 0
6802 8674 1635 60 0
6802 8674 1641 62 0
6851 8674 1657 63 0
6851 8674 1667 61 0
6802 8674 1672 56 0
6802 8794 1682 55 0
6802 8794 1688 53 0
6802 8915 1704 55 0
6802 8915 1714 56 0
6802 8915 1719 57 0
6802 8915 1729 58 0
6802 8915 1750 58 0
6901 8915 1760 55 0
7000 8915 1766 53 0
7050 8794 1776 53 0
7149 8674 1782 54 0
7248 8553 1797 50 0
7397 8433 1807 53 0
7596 8312 1813 62 0
7795 8071 1829 61 0
7944 7830 1839 57 0
8092 7710 1844 61 0
8192 7589 1854 65 0
8291 7469 1860 68 0
8341 7469 1875 69 0
8291 7469 1885 67 0
8291 7589 1891 59 0
8142 7710 1907 55 0
7993 7830 1917 53 0
7795 7951 1922 57 0
7646 8192 1932 68 0
7546 8312 1938 78 0
7397 8553 1954 65 0
7298 8794 1964 59 0
7248 8915 1969 56 0
7248 8915 1985 55 0
7248 8915 1995 54 0
7298 8915 2000 52 0
7397 8915 2010 52 0
7546 8794 2016 49 0
7695 8794 2032 49 0
7894 8674 2042 56 0
8092 8553 2047 70 0
8291 8312 2063 62 0
8539 8192 2073 64 0
8738 8071 2079 71 0
8887 7951 2094 83 0
8986 7710 2110 91 0
9085 7589 2120 69 0
9135 7469 2125 59 0
9085 7348 2135 53 0
9036 7348 2141 49 0
8837 7469 2157 51 0
8688 7589 2167 55 0
8539 7710 2172 65 0
8291 7951 2188 56 0
8142 8192 2198 56 0
8043 8312 2204 61 0
7944 8553 2214 66 0
7894 8553 2219 73 0
7894 8674 2235 70 0
7894 8794 2245 70 0
7894 8794 2250 69 0
7944 8794 2266 65 0
7993 8915 2276 60 0
8142 8794 2282 59 0
8192 8794 2292 59 0
8291 8674 2297 61 0
8390 8553 2313 62 0
8490 8553 2323 61 0
8589 8433 2329 62 0
8639 8433 2339 63 0
8589 8433 2344 58 0
8539 8553 2360 57 0
8490 8553 2370 56 0
8341 8674 2375 58 0
8291 8794 2391 62 0
8241 8915 2401 69 0
8241 8915 2407 72 0
8241 9035 2422 74 0
8241 9035 2438 73 0
8241 9035 2448 69 0
8291 9035 2454 62 0
8390 8915 2464 59 0
8539 8794 2469 59 0
8688 8674 2485 59 0
8738 8553 2495 59 0
8788 8553 2500 56 0
8788 8553 2516 57 0
8837 8553 2526 58 0
8837 8553 2532 56 0
8788 8553 2542 55 0
8738 8674 2547 54 0
8688 8674 2563 56 0
8589 8794 2573 57 0
8539 8794 2579 58 0
8539 8915 2594 59 0
8539 8915 2604 62 0
8539 8915 2610 64 0
8490 8915 2620 65 0
8539 8915 2625 62 0
8589 8915 2641 55 0
8688 8915 2651 54 0
8837 8915 2657 51 0
8936 8794 2672 50 0
9085 8674 2682 54 0
9234 8433 2688 68 0
9483 8192 2698 58 0
9780 7951 2704 67 0
10029 7589 2719 68 0
10277 7348 2729 63 0
10476 7108 2735 68 0
10624 6987 2750 78 0
10624 6987 2766 83 0
10674 6987 2776 80 0
10674 6987 2782 68 0
10525 7108 2797 63 0
10277 7348 2807 64 0
10029 7589 2813 77 0
9780 7951 2823 65 0
9532 8192 2829 73 0
9334 8553 2844 79 0
9135 8794 2854 63 0
8986 9035 2860 59 0
8887 9155 2875 59 0
8837 9155 2885 59 0
8837 9155 2891 54 0
8887 9155 2901 50 0
9036 9035 2907 45 0
9185 8794 2922 48 0
9433 8674 2932 65 0
9681 8312 2938 56 0
9929 8071 2948 66 0
10277 7710 2954 54 0
10525 7589 2969 54 0
10724 7469 2979 56 0
10873 7469 2985 58 0
11022 7469 3000 59 0
11121 7589 3010 60 0
11071 7710 3016 64 0
10972 7830 3026 67 0
10823 8071 3032 71 0
10674 8192 3047 82 0
10525 8312 3057 89 0
10277 8433 3063 86 0
10128 8553 3079 78 0
9929 8674 3094 62 0
9780 8674 3104 58 0
9632 8674 3110 56 0
9532 8674 3125 56 0
9433 8553 3135 56 0
9433 8553 3141 56 0
9383 8433 3151 57 0
9383 8312 3157 56 0
9433 8312 3172 57 0
9483 8312 3182 56 0
9582 8433 3188 55 0
9681 8433 3204 54 0
9880 8553 3214 55 0
10029 8794 3219 58 0
10277 9035 3229 59 0
10525 9155 3235 69 0
10773 9396 3250 69 0
11121 9637 3260 66 0
11419 9758 3266 76 0
11816 9878 3282 58 0
12114 9878 3292 54 0
12461 9999 3297 60 0
12660 9999 3307 64 1
7149 8071 3563 18 0
7298 8071 3579 27 0
7447 8071 3589 39 0
7695 8192 3594 57 0
8092 8071 3610 44 0
8490 8071 3620 40 0
8887 8071 3625 50 1
12461 8192 3969 20 0
12461 8071 3985 32 0
12561 8071 3995 38 0
12561 8071 4000 40 0
12660 7951 4016 42 0
12710 7830 4026 43 0
12710 7830 4032 46 0
12759 7710 4042 52 0
12759 7710 4047 54 0
12759 7589 4063 56 0
12660 7469 4073 58 0
12561 7348 4079 59 0
12362 7348 4094 58 0
12164 7348 4110 50 0
11866 7469 4120 50 0
11617 7589 4125 60 0
11320 7830 4141 67 0
11071 8071 4151 66 0
10823 8192 4157 74 0
10575 8553 4167 58 0
10476 8794 4172 53 0
10426 9035 4188 56 0
10476 9155 4198 58 0
10575 9276 4204 63 0
10724 9396 4219 69 0
10922 9396 4229 79 0
11270 9396 4235 64 0
11568 9276 4245 65 0
11866 9155 4250 71 0
12164 9035 4266 66 0
12461 8915 4276 73 0
12759 8553 4282 77 0
13008 8312 4297 74 0
13156 8071 4307 81 0
13305 7830 4313 94 0
13355 7469 4323 73 0
13405 7228 4329 68 0
13355 7108 4344 63 0
13256 7108 4354 59 0
13057 7108 4360 60 0
12859 7228 4375 64 0
12561 7469 4385 73 0
12263 7589 4391 67 0
12015 7830 4401 72 0
11866 8071 4407 77 0
11766 8192 4422 77 0
11667 8312 4438 77 0
11667 8433 4448 75 0
11717 8433 4454 73 0
11717 8433 4469 71 0
11866 8433 4479 65 0
12015 8433 4485 63 0
12164 8433 4500 63 0
12263 8312 4510 68 0
12362 8312 4516 74 0
12412 8312 4526 75 0
12412 8312 4532 76 0
12461 8312 4547 76 0
12461 8192 4557 71 0
12412 8312 4563 66 0
12412 8312 4573 63 0
12362 8433 4579 62 0
12312 8433 4594 61 0
12312 8433 4604 61 0
12312 8433 4610 61 0
12312 8433 4625 61 0
12412 8433 4635 97 0
12412 8433 4641 75 0
12511 8433 4651 69 0
12561 8312 4657 67 0
12660 8312 4672 68 0
12710 8312 4682 68 0
12710 8312 4688 68 0
12710 8312 4704 66 0
12660 8433 4714 61 0
12561 8433 4719 62 0
12412 8553 4729 68 0
12312 8674 4735 68 0
12164 8674 4750 56 0
12064 8794 4760 50 0
11915 8794 4766 47 0
11816 8915 4782 45 0
11816 8915 4797 44 0
11717 8794 4807 44 0
11667 8794 4813 44 0
11667 8794 4829 43 0
11717 8674 4839 45 0
11717 8674 4844 50 0
11816 8674 4854 49 0
11915 8794 4860 48 0
12064 8794 4875 46 0
12213 8794 4885 47 0
12312 8674 4891 50 0
12461 8674 4907 57 0
12610 8674 4917 64 0
12759 8674 4922 70 0
12859 8553 4932 77 0
13008 8553 4938 78 0
13107 8553 4954 80 0
13107 8553 4964 81 0
13156 8433 4969 81 0
13156 8433 4985 81 0
13206 8433 4995 81 0
13206 8433 5000 76 0
13206 8312 5010 73 0
13156 8312 5016 71 0
13156 8433 5032 66 0
13107 8312 5042 61 0
13057 8433 5047 59 0
13057 8433 5063 56 0
12958 8433 5073 57 0
12958 8553 5079 57 0
12958 8553 5089 57 0
12958 8553 5110 60 0
12958 8553 5120 63 0
12958 8553 5125 64 0
13057 8553 5135 65 0
13107 8553 5141 67 0
13206 8553 5157 64 0
13305 8553 5167 62 0
13405 8433 5172 59 0
13405 8433 5188 57 0
13405 8433 5198 57 0
13454 8433 5204 57 0
13454 8312 5214 54 0
13454 8433 5219 50 0
13405 8674 5235 53 0
13355 8794 5245 62 0
13256 9035 5250 73 0
13156 9276 5260 75 0
13008 9517 5266 76 0
12958 9637 5282 89 0
12859 9758 5292 90 0
12710 9999 5297 87 0
12610 10119 5313 76 0
12461 10240 5323 66 0
12412 10360 5329 58 0
12312 10360 5339 56 0
12312 10360 5344 53 0
12164 10240 5360 53 0
12114 10240 5370 54 0
12064 10119 5375 61 0
12114 9878 5391 52 0
12164 9758 5401 54 0
12263 9517 5407 62 0
12362 9396 5417 69 0
12461 9396 5422 80 0
12710 9276 5438 65 0
12908 9155 5454 60 0
13107 9035 5464 67 0
13355 9035 5469 74 0
13603 8794 5485 66 0
13802 8674 5495 63 0
14000 8553 5500 68 0
14000 8553 5516 74 0
14149 8433 5526 78 0
14149 8433 5532 86 0
14199 8433 5542 90 0
14199 8433 5547 92 0
14249 8433 5563 93 0
14249 8433 5573 94 0
14249 8433 5579 85 0
14199 8433 5594 74 0
14149 8553 5604 67 0
14149 8553 5610 64 0
14100 8674 5620 62 0
14100 8674 5625 63 0
14100 8674 5641 66 0
14050 8794 5651 66 0
14100 8794 5657 65 0
14100 8794 5672 64 0
14199 8674 5682 61 0
14298 8674 5688 62 0
14348 8553 5698 65 0
14398 8553 5704 71 0
14497 8433 5719 75 0
14547 8433 5729 77 0
14547 8433 5735 75 0
14547 8433 5750 74 0
14547 8433 5760 70 0
14547 8433 5766 67 0
14547 8553 5782 65 0
14497 8674 5792 63 0
14447 8794 5797 62 0
14447 8794 5813 63 0
14447 8794 5823 63 0
14447 8794 5829 63 0
14497 8794 5844 62 0
14547 8794 5854 61 0
14596 8674 5860 61 0
14646 8674 5870 58 0
14696 8553 5875 59 0
14795 8553 5891 55 0
14795 8553 5901 53 0
14795 8553 5907 54 0
14795 8553 5922 53 0
14844 8553 5932 52 0
14844 8553 5938 52 0
14795 8674 5948 52 0
14745 8674 5954 55 0
14745 8674 5969 56 0
14745 8794 5979 57 0
14745 8915 5985 57 0
14696 8915 6000 59 0
14696 8915 6010 58 0
14696 8915 6016 53 0
14795 8915 6026 51 0
14844 8794 6032 52 0
14844 8794 6047 56 0
14944 8794 6057 66 0
14993 8674 6063 53 0
15093 8674 6079 48 0
15093 8674 6089 48 0
15142 8674 6094 48 0
15142 8674 6104 48 0
15142 8674 6125 49 0
15242 8674 6135 51 0
15242 8674 6141 51 0
15242 8674 6151 52 0
15291 8674 6157 54 0
15341 8674 6172 53 0
15440 8674 6182 54 0
15589 8674 6188 60 0
15639 8674 6204 70 0
15738 8553 6214 73 0
15788 8553 6219 78 0
15887 8433 6229 80 0
15887 8433 6235 83 0
15887 8433 6250 80 0
15887 8433 6260 77 0
15887 8433 6266 71 0
15788 8433 6282 63 0
15688 8433 6292 59 0
15639 8553 6297 56 0
15540 8553 6307 61 0
15490 8674 6313 62 0
15391 8794 6329 61 0
15391 8794 6339 61 0
15341 8915 6344 59 0
15291 9035 6354 60 0
15291 9035 6360 55 0
15341 9035 6375 53 0
15440 9035 6385 51 0
15589 9035 6391 51 0
15688 8915 6407 52 0
15837 8915 6417 55 0
15986 8794 6422 67 0
16086 8674 6432 66 0
16185 8553 6454 57 0
16284 8553 6464 52 0
16284 8553 6469 54 0
16334 8433 6479 52 0
16334 8433 6485 50 0
16284 8553 6500 53 0
16185 8674 6510 54 0
16185 8794 6516 56 0
16086 8794 6532 57 0
16036 8915 6542 63 0
16036 8915 6547 67 0
16036 8915 6557 68 0
16036 8915 6563 68 0
15986 9035 6579 67 0
16086 9035 6589 61 0
16135 9035 6594 56 0
16185 9035 6610 54 0
16284 8915 6620 60 0
16433 8794 6625 50 0
16582 8674 6635 48 0
16681 8553 6641 49 0
16781 8553 6657 50 0
16781 8553 6667 54 0
16781 8553 6672 55 0
16781 8553 6688 53 0
16830 8553 6698 55 0
16731 8674 6704 56 0
16731 8794 6714 56 0
16632 8915 6719 56 0
16582 8915 6735 56 0
16582 8915 6745 56 0
16582 9035 6750 57 0
16582 9035 6766 57 0
16632 9035 6776 55 0
16681 9035 6782 55 0
16731 9035 6797 55 0
16880 8915 6813 55 0
16930 8915 6823 54 0
17079 8915 6829 57 0
17227 8915 6839 60 0
17376 8794 6844 63 0
17525 8794 6860 70 0
17625 8794 6870 76 0
17674 8794 6875 78 0
17674 8674 6891 80 0
17674 8794 6901 76 0
17674 8794 6907 67 0
17625 8915 6917 61 0
17525 8915 6922 63 0
17376 9035 6938 70 0
17178 9155 6948 59 0
17029 9276 6954 58 0
16830 9396 6964 67 0
16632 9517 6969 73 0
16433 9637 6985 64 0
16284 9758 6995 58 0
16185 9878 7000 55 0
16235 9999 7016 53 0
16334 9999 7026 53 0
16483 9999 7032 55 0
16731 9999 7042 60 0
16979 9999 7047 68 0
17327 9999 7063 80 0
17774 9878 7073 61 0
18171 9878 7079 57 0
18419 9878 7094 52 1
14348 6385 7422 33 0
14348 6385 7432 40 0
14298 6385 7438 44 0
14199 6505 7454 47 0
14050 6626 7469 51 0
13951 6746 7479 53 0
13852 6867 7485 58 0
13802 6987 7500 62 0
13802 6987 7510 60 0
13752 6987 7516 63 0
13802 6987 7526 59 0
13802 6987 7532 52 0
13901 7108 7547 49 0
14000 6987 7557 52 0
14100 6987 7563 56 0
14149 6987 7573 57 0
14199 6987 7579 59 0
14249 6987 7594 58 0
14199 7108 7604 55 0
14149 7228 7610 54 0
14100 7228 7625 53 0
14050 7348 7635 58 0
14050 7348 7641 57 0
14050 7469 7651 54 0
14050 7469 7657 41 1
15142 7710 7766 37 0
15142 7830 7782 42 0
15142 7830 7797 49 0
15043 7830 7807 53 0
15043 7951 7813 55 0
14944 7951 7829 62 0
14894 8071 7839 65 0
14795 8192 7844 65 0
14795 8312 7854 64 0
14795 8312 7860 62 0
14795 8312 7875 61 0
14795 8312 7885 57 0
14894 8312 7891 53 0
15043 8312 7907 53 0
15142 8312 7917 58 0
15192 8192 7922 62 0
15341 8192 7932 65 0
15391 8192 7938 67 0
15391 8192 7954 68 0
15391 8192 7964 66 0
15391 8312 7969 65 0
15341 8312 7985 63 0
15291 8433 7995 62 0
15291 8433 8000 61 0
15291 8433 8010 61 0
15291 8433 8016 61 0
15291 8553 8032 61 0
15291 8553 8042 58 0
|
open Core
(* We can define a list using brackets and semicolons. *)
let xs = [ 1; 2; 3 ]
(* We can also define a list using the "::" (cons) operator. *)
let ys = 1 :: 2 :: 3 :: []
(* The cons operator can be used to prepend an element to a list. *)
let zs = 1 :: [ 2; 3 ]
(* We can match on lists! *)
let print_first_element xs =
match xs with
| [] -> print_string "empty"
| x :: _ -> printf "%d" x
;;
(* There are lots of useful list functions in the [List] module, which we will see later! *)
|
<?php
namespace Bitrix\Main\Security;
class SecurityException extends \Bitrix\Main\SystemException
{
public function __construct($message = "", $code = 0, \Exception $previous = null)
{
parent::__construct($message, $code, '', '', $previous);
}
}
class OtpException extends SecurityException
{
}
|
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
include "thrift/test/EnumTest.thrift"
enum MyQualifiedEnum {
FOO = 0,
BAR = 1,
}
const MyQualifiedEnum FOO = BAR;
struct MyQualifiedStruct {
1: optional MyQualifiedEnum field1 = FOO;
2: optional MyQualifiedEnum field2 = MyQualifiedEnum.FOO;
3: optional EnumTest.MyEnum1 field3 = EnumTest.ME1_1;
4: optional EnumTest.MyEnum1 field4 = EnumTest.MyEnum1.ME1_1;
5: optional EnumTest.MyEnum4 field5 = EnumTest.c_me4_a;
}
enum MyBitMaskEnum {
kNil = 0,
kFoo = 1,
kBar = 2,
kBaz = 4,
} (cpp.declare_bitwise_ops)
enum MyBitMaskEnumShort {
kNil = 0,
kFoo = 1,
kBar = 2,
kBaz = 4,
} (cpp.enum_type = 'int16_t', cpp.declare_bitwise_ops)
|
{*******************************************************************************************}
{ }
{ XML Data Binding }
{ }
{ Generated on: 28.4.2006 16:05:33 }
{ Generated from: XMLSchemas\Public\TOccupationEmployeeAssignment.xsd }
{ }
{*******************************************************************************************}
unit xTOccupationEmployeeAssignment;
interface
uses
xmldom, XMLDoc, XMLIntf, xTOccupation, xTEmployee, xTDateInterval, xTSalary,
xTOccupationEmployeeAssignmentRegime;
type
{ Forward Decls }
IXMLTOccupationEmployeeAssignment = interface;
{ IXMLTOccupationEmployeeAssignment }
IXMLTOccupationEmployeeAssignment = interface(IXMLNode)
['{18DC7931-AD91-4423-9D3F-8B7FA040A47A}']
{ Property Accessors }
function Get_Occupation: IXMLTOccupation;
function Get_Employee: IXMLTEmployee;
function Get_AssignmentDateInterval: IXMLTDateInterval;
function Get_OccupationEmployeeAssignmentRegime: IXMLTOccupationEmployeeAssignmentRegime;
function Get_Salary: IXMLTSalary;
function Get_AssignedProfessions: Variant;
procedure Set_AssignedProfessions(Value: Variant);
{ Methods & Properties }
property Occupation: IXMLTOccupation read Get_Occupation;
property Employee: IXMLTEmployee read Get_Employee;
property AssignmentDateInterval: IXMLTDateInterval read Get_AssignmentDateInterval;
property OccupationEmployeeAssignmentRegime: IXMLTOccupationEmployeeAssignmentRegime read Get_OccupationEmployeeAssignmentRegime;
property Salary: IXMLTSalary read Get_Salary;
property AssignedProfessions: Variant read Get_AssignedProfessions write Set_AssignedProfessions;
end;
{ Forward Decls }
TXMLTOccupationEmployeeAssignment = class;
{ TXMLTOccupationEmployeeAssignment }
TXMLTOccupationEmployeeAssignment = class(TXMLNode, IXMLTOccupationEmployeeAssignment)
protected
{ IXMLTOccupationEmployeeAssignment }
function Get_Occupation: IXMLTOccupation;
function Get_Employee: IXMLTEmployee;
function Get_AssignmentDateInterval: IXMLTDateInterval;
function Get_OccupationEmployeeAssignmentRegime: IXMLTOccupationEmployeeAssignmentRegime;
function Get_Salary: IXMLTSalary;
function Get_AssignedProfessions: Variant;
procedure Set_AssignedProfessions(Value: Variant);
public
procedure AfterConstruction; override;
end;
{ Global Functions }
function GetUnknown(Doc: IXMLDocument): IXMLTOccupationEmployeeAssignment;
function LoadUnknown(const FileName: WideString): IXMLTOccupationEmployeeAssignment;
function NewUnknown: IXMLTOccupationEmployeeAssignment;
const
TargetNamespace = '';
implementation
{ Global Functions }
function GetUnknown(Doc: IXMLDocument): IXMLTOccupationEmployeeAssignment;
begin
Result := Doc.GetDocBinding('Unknown', TXMLTOccupationEmployeeAssignment, TargetNamespace) as IXMLTOccupationEmployeeAssignment;
end;
function LoadUnknown(const FileName: WideString): IXMLTOccupationEmployeeAssignment;
begin
Result := LoadXMLDocument(FileName).GetDocBinding('Unknown', TXMLTOccupationEmployeeAssignment, TargetNamespace) as IXMLTOccupationEmployeeAssignment;
end;
function NewUnknown: IXMLTOccupationEmployeeAssignment;
begin
Result := NewXMLDocument.GetDocBinding('Unknown', TXMLTOccupationEmployeeAssignment, TargetNamespace) as IXMLTOccupationEmployeeAssignment;
end;
{ TXMLTOccupationEmployeeAssignment }
procedure TXMLTOccupationEmployeeAssignment.AfterConstruction;
begin
RegisterChildNode('Occupation', TXMLTOccupation);
RegisterChildNode('Employee', TXMLTEmployee);
RegisterChildNode('AssignmentDateInterval', TXMLTDateInterval);
RegisterChildNode('OccupationEmployeeAssignmentRegime', TXMLTOccupationEmployeeAssignmentRegime);
RegisterChildNode('Salary', TXMLTSalary);
inherited;
end;
function TXMLTOccupationEmployeeAssignment.Get_Occupation: IXMLTOccupation;
begin
Result := ChildNodes['Occupation'] as IXMLTOccupation;
end;
function TXMLTOccupationEmployeeAssignment.Get_Employee: IXMLTEmployee;
begin
Result := ChildNodes['Employee'] as IXMLTEmployee;
end;
function TXMLTOccupationEmployeeAssignment.Get_AssignmentDateInterval: IXMLTDateInterval;
begin
Result := ChildNodes['AssignmentDateInterval'] as IXMLTDateInterval;
end;
function TXMLTOccupationEmployeeAssignment.Get_OccupationEmployeeAssignmentRegime: IXMLTOccupationEmployeeAssignmentRegime;
begin
Result := ChildNodes['OccupationEmployeeAssignmentRegime'] as IXMLTOccupationEmployeeAssignmentRegime;
end;
function TXMLTOccupationEmployeeAssignment.Get_Salary: IXMLTSalary;
begin
Result := ChildNodes['Salary'] as IXMLTSalary;
end;
function TXMLTOccupationEmployeeAssignment.Get_AssignedProfessions: Variant;
begin
Result := ChildNodes['AssignedProfessions'].NodeValue;
end;
procedure TXMLTOccupationEmployeeAssignment.Set_AssignedProfessions(Value: Variant);
begin
ChildNodes['AssignedProfessions'].NodeValue := Value;
end;
end.
|
################################################################################
# Automatically-generated file. Do not edit!
################################################################################
# Add inputs and outputs from these tool invocations to the build variables
CMD_SRCS += \
../source/HL_sys_link.cmd
ASM_SRCS += \
../source/HL_sys_core.asm \
../source/HL_sys_intvecs.asm \
../source/HL_sys_mpu.asm \
../source/HL_sys_pmu.asm
C_SRCS += \
../source/HL_can.c \
../source/HL_epc.c \
../source/HL_errata.c \
../source/HL_esm.c \
../source/HL_etpwm.c \
../source/HL_nmpu.c \
../source/HL_notification.c \
../source/HL_pinmux.c \
../source/HL_sys_dma.c \
../source/HL_sys_main.c \
../source/HL_sys_pcr.c \
../source/HL_sys_phantom.c \
../source/HL_sys_pmm.c \
../source/HL_sys_startup.c \
../source/HL_sys_vim.c \
../source/HL_system.c
C_DEPS += \
./source/HL_can.d \
./source/HL_epc.d \
./source/HL_errata.d \
./source/HL_esm.d \
./source/HL_etpwm.d \
./source/HL_nmpu.d \
./source/HL_notification.d \
./source/HL_pinmux.d \
./source/HL_sys_dma.d \
./source/HL_sys_main.d \
./source/HL_sys_pcr.d \
./source/HL_sys_phantom.d \
./source/HL_sys_pmm.d \
./source/HL_sys_startup.d \
./source/HL_sys_vim.d \
./source/HL_system.d
OBJS += \
./source/HL_can.obj \
./source/HL_epc.obj \
./source/HL_errata.obj \
./source/HL_esm.obj \
./source/HL_etpwm.obj \
./source/HL_nmpu.obj \
./source/HL_notification.obj \
./source/HL_pinmux.obj \
./source/HL_sys_core.obj \
./source/HL_sys_dma.obj \
./source/HL_sys_intvecs.obj \
./source/HL_sys_main.obj \
./source/HL_sys_mpu.obj \
./source/HL_sys_pcr.obj \
./source/HL_sys_phantom.obj \
./source/HL_sys_pmm.obj \
./source/HL_sys_pmu.obj \
./source/HL_sys_startup.obj \
./source/HL_sys_vim.obj \
./source/HL_system.obj
ASM_DEPS += \
./source/HL_sys_core.d \
./source/HL_sys_intvecs.d \
./source/HL_sys_mpu.d \
./source/HL_sys_pmu.d
OBJS__QUOTED += \
"source/HL_can.obj" \
"source/HL_epc.obj" \
"source/HL_errata.obj" \
"source/HL_esm.obj" \
"source/HL_etpwm.obj" \
"source/HL_nmpu.obj" \
"source/HL_notification.obj" \
"source/HL_pinmux.obj" \
"source/HL_sys_core.obj" \
"source/HL_sys_dma.obj" \
"source/HL_sys_intvecs.obj" \
"source/HL_sys_main.obj" \
"source/HL_sys_mpu.obj" \
"source/HL_sys_pcr.obj" \
"source/HL_sys_phantom.obj" \
"source/HL_sys_pmm.obj" \
"source/HL_sys_pmu.obj" \
"source/HL_sys_startup.obj" \
"source/HL_sys_vim.obj" \
"source/HL_system.obj"
C_DEPS__QUOTED += \
"source/HL_can.d" \
"source/HL_epc.d" \
"source/HL_errata.d" \
"source/HL_esm.d" \
"source/HL_etpwm.d" \
"source/HL_nmpu.d" \
"source/HL_notification.d" \
"source/HL_pinmux.d" \
"source/HL_sys_dma.d" \
"source/HL_sys_main.d" \
"source/HL_sys_pcr.d" \
"source/HL_sys_phantom.d" \
"source/HL_sys_pmm.d" \
"source/HL_sys_startup.d" \
"source/HL_sys_vim.d" \
"source/HL_system.d"
ASM_DEPS__QUOTED += \
"source/HL_sys_core.d" \
"source/HL_sys_intvecs.d" \
"source/HL_sys_mpu.d" \
"source/HL_sys_pmu.d"
C_SRCS__QUOTED += \
"../source/HL_can.c" \
"../source/HL_epc.c" \
"../source/HL_errata.c" \
"../source/HL_esm.c" \
"../source/HL_etpwm.c" \
"../source/HL_nmpu.c" \
"../source/HL_notification.c" \
"../source/HL_pinmux.c" \
"../source/HL_sys_dma.c" \
"../source/HL_sys_main.c" \
"../source/HL_sys_pcr.c" \
"../source/HL_sys_phantom.c" \
"../source/HL_sys_pmm.c" \
"../source/HL_sys_startup.c" \
"../source/HL_sys_vim.c" \
"../source/HL_system.c"
ASM_SRCS__QUOTED += \
"../source/HL_sys_core.asm" \
"../source/HL_sys_intvecs.asm" \
"../source/HL_sys_mpu.asm" \
"../source/HL_sys_pmu.asm"
|
module FSharpx.TypeProviders.NamespaceProvider
open Microsoft.FSharp.Core.CompilerServices
open Samples.FSharp.ProvidedTypes
[<TypeProvider>]
type public DocumentProvider(cfg:TypeProviderConfig) as this =
inherit TypeProviderForNamespaces()
do this.AddNamespace(
DSL.rootNamespace,
[XmlTypeProvider.xmlType this cfg
JsonTypeProvider.jsonType this cfg
MiniCsvProvider.csvType this cfg])
[<TypeProviderAssembly>]
do () |
#Testing Variables
$Script:ModulePath = "$PSScriptRoot\..\SPMTools"
# Test Mode must be set before testing
$Env:SPMTools_TestMode = 1
#Functions
Import-Module $Script:ModulePath
#Test Suite
Describe SPMTools.Public.New-ADDrive {
BeforeAll {
Import-Module "$PSScriptRoot\TestVariables.psm1"
InitTestVariables
}
AfterAll {
RemoveTestVariables
Remove-Module TestVariables
}
InModuleScope SPMTools {
Context 'Loadng Drive (PSProvider Available / No PDC / No Credential)' {
#Setup Variables
$DomainObj = Copy-Object $DefaultConfig.Companies.$DefaultCompanyName.Domain
$DomainObj.CredentialName = $false
#PSProvider Mock
Function New-PSDrive { Param(
[string]$Name,
[string]$PSProvider,
[string]$Root,
[string]$Scope,
[string]$Server
)}
#Mocks
Mock Get-PSDrive { Throw }
Mock New-PSDrive {}
Mock Get-PSProvider {}
Mock Import-Module {}
Mock Remove-Module {}
#Run Statement
New-ADDrive $DomainObj
#Tests
It 'Checks for the PSProvider' {
$Param = @{
CommandName = 'Get-PSProvider'
Exactly = $true
Times = 1
ParameterFilter = {
$PSProvider -eq 'ActiveDirectory'
}
}
Assert-MockCalled @Param
}
It 'Does not manipulate the aviailible modules' {
Assert-MockCalled -CommandName 'Import-Module' -Exactly -Times 0
Assert-MockCalled -CommandName 'Remove-Module' -Exactly -Times 0
}
It 'Checks for existing drives' {
$Param = @{
CommandName = 'Get-PSDrive'
Exactly = $true
Times = 1
ParameterFilter = {
$Name -eq $DomainObj.PSDriveLetter
}
}
Assert-MockCalled @Param
}
It 'Creates the Drive' {
$Param = @{
CommandName = 'New-PSDrive'
Exactly = $true
Times = 1
ParameterFilter = {
$Name -eq $DomainObj.PSDriveLetter -and
$PSProvider -eq 'ActiveDirectory' -and
$Root -eq '' -and
$Scope -eq 'Global' -and
$Server -eq $DomainObj.FQDN
}
}
Assert-MockCalled @Param
}
}
Context 'Loadng Drive (PSProvider Unavailable / PDC / Credential)' {
#Setup Variables
$DomainObj = Copy-Object $DefaultConfig.Companies.$DefaultCompanyName.Domain
$DomainObj.PreferedDomainController = 'Test.example.com'
$TestCredential = $DefaultTestCredential
#PSProvider Mock
Function New-PSDrive { Param(
[string]$Name,
[string]$PSProvider,
[string]$Root,
[string]$Scope,
[string]$Server,
[pscredential]$Credential
)}
#Mocks
Mock Get-PSDrive { Throw }
Mock New-PSDrive {}
Mock Get-PSProvider {
$Ex = New-Object System.Management.Automation.ProviderNotFoundException
Throw $Ex
}
Mock Import-Module {}
Mock Remove-Module {}
Mock Get-StoredCredential { return $TestCredential }
#Run Statement
New-ADDrive $DomainObj
#Tests
It 'Removes and ReImports the AD Module' {
$Param = @{
CommandName = 'Remove-Module'
Exactly = $true
Times = 1
ParameterFilter = {
$Name -eq 'ActiveDirectory' -and
$Force -eq $true
}
}
Assert-MockCalled @Param
$Param = @{
CommandName = 'Import-Module'
Exactly = $true
Times = 1
ParameterFilter = {
$Name -eq 'ActiveDirectory'
}
}
Assert-MockCalled @Param
}
It 'Creates the Drive' {
$Param = @{
CommandName = 'New-PSDrive'
Exactly = $true
Times = 1
ParameterFilter = {
$Name -eq $DomainObj.PSDriveLetter -and
$PSProvider -eq 'ActiveDirectory' -and
$Root -eq '' -and
$Scope -eq 'Global' -and
$Server -eq $DomainObj.PreferedDomainController -and
$Credential -eq $TestCredential
}
}
Assert-MockCalled @Param
}
}
Context 'Loadng Drive (PSDrive Letter Used)' {
#Setup Variables
$DomainObj = Copy-Object $DefaultConfig.Companies.$DefaultCompanyName.Domain
$DomainObj.CredentialName = $false
$ErrorText = "The drive '$($DomainObj.PSDriveLetter)' exists. Please unmount it before calling '$($PSCmdlet.MyInvocation.InvocationName)' again"
#Mocks
Mock Get-PSDrive {}
Mock New-PSDrive {}
Mock Get-PSProvider {}
Mock Import-Module {}
Mock Remove-Module {}
#Tests
It 'Throws an error' {
{ New-ADDrive $DomainObj } | Should Throw $ErrorText
}
}
}
}
#Cleanup
$Env:SPMTools_TestMode = 0
Remove-Module SPMTools |
{"timestamp": 1573594490.0, "score": 8.27, "score_count": 88023}
{"timestamp": 1567146475.0, "score": 8.29, "score_count": 85052}
{"timestamp": 1554861434.0, "score": 8.3, "score_count": 80976}
{"timestamp": 1554060084.0, "score": 8.3, "score_count": 80591}
{"timestamp": 1546552423.0, "score": 8.3, "score_count": 77732}
{"timestamp": 1546550300.0, "score": 8.3, "score_count": 77732}
{"timestamp": 1522339192.0, "score": 8.33, "score_count": 69554}
{"timestamp": 1487427388.0, "score": 8.38, "score_count": 53536}
{"timestamp": 1486159195.0, "score": 8.38, "score_count": 53022}
{"timestamp": 1486158454.0, "score": 8.38, "score_count": 53022}
{"timestamp": 1485886461.0, "score": 8.38, "score_count": 52914}
{"timestamp": 1485539950.0, "score": 8.38, "score_count": 52768}
{"timestamp": 1485539776.0, "score": 8.38, "score_count": 52768}
{"timestamp": 1478659080.0, "score": 8.39, "score_count": 49637}
{"timestamp": 1471634579.0, "score": 8.41, "score_count": 46613}
{"timestamp": 1479421972.0, "score": 8.39, "score_count": 49936}
{"timestamp": 1464691206.0, "score": 8.4, "score_count": 43354}
{"timestamp": 1461331235.0, "score": 8.41, "score_count": 41827}
{"timestamp": 1448611058.0, "score": 8.44, "score_count": 35459}
{"timestamp": 1441703682.0, "score": 8.47, "score_count": 32941}
{"timestamp": 1471011770.0, "score": 8.41, "score_count": 46329}
{"timestamp": 1468019615.0, "score": 8.4, "score_count": 44932}
{"timestamp": 1466112320.0, "score": 8.4, "score_count": 43951}
{"timestamp": 1465499443.0, "score": 8.4, "score_count": 43702}
{"timestamp": 1464882691.0, "score": 8.4, "score_count": 43445}
{"timestamp": 1464709193.0, "score": 8.4, "score_count": 43358}
{"timestamp": 1464484652.0, "score": 8.41, "score_count": 43260}
{"timestamp": 1462454855.0, "score": 8.41, "score_count": 42354}
{"timestamp": 1462230430.0, "score": 8.41, "score_count": 42251}
{"timestamp": 1461803724.0, "score": 8.41, "score_count": 42040}
{"timestamp": 1461392487.0, "score": 8.41, "score_count": 41861}
{"timestamp": 1461299160.0, "score": 8.41, "score_count": 41813}
{"timestamp": 1461293316.0, "score": 8.41, "score_count": 41813}
{"timestamp": 1460664612.0, "score": 8.41, "score_count": 41427}
{"timestamp": 1459981200.0, "score": 8.41, "score_count": 41007}
{"timestamp": 1459195740.0, "score": 8.41, "score_count": 40507}
{"timestamp": 1458775956.0, "score": 8.41, "score_count": 40263}
{"timestamp": 1458581641.0, "score": 8.41, "score_count": 40157}
{"timestamp": 1458224789.0, "score": 8.41, "score_count": 39990}
{"timestamp": 1458160911.0, "score": 8.41, "score_count": 39971}
{"timestamp": 1457495558.0, "score": 8.42, "score_count": 39649}
{"timestamp": 1456744296.0, "score": 8.42, "score_count": 39306}
{"timestamp": 1456086845.0, "score": 8.42, "score_count": 39017}
{"timestamp": 1456031096.0, "score": 8.42, "score_count": 38991}
{"timestamp": 1455938761.0, "score": 8.42, "score_count": 38946}
{"timestamp": 1455630876.0, "score": 8.42, "score_count": 38801}
{"timestamp": 1455045153.0, "score": 8.42, "score_count": 38529}
{"timestamp": 1454567997.0, "score": 8.42, "score_count": 38279}
{"timestamp": 1454422765.0, "score": 8.42, "score_count": 38194}
{"timestamp": 1454148013.0, "score": 8.42, "score_count": 38052}
{"timestamp": 1454035431.0, "score": 8.42, "score_count": 38004}
{"timestamp": 1453825158.0, "score": 8.43, "score_count": 37902}
{"timestamp": 1453671353.0, "score": 8.43, "score_count": 37820}
|
@echo off
go build -ldflags "-s -w"
set OUT_DIR=.
set PACK_NAME=dataobject
go run main.go --url "mysql://root:123456@127.0.0.1:3306/test?charset=utf8" --disable-decimal ^
--out %OUT_DIR% --db "test" --table "users, classes" --suffix do --package %PACK_NAME% --readonly "created_at, updated_at"
echo generate go file ok, formatting...
gofmt -w %OUT_DIR%/%PACK_NAME%
pause |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateUserSkillTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('user_skill', function(Blueprint $table)
{
$table->integer('id', true);
$table->integer('user_id');
$table->integer('domain_id');
$table->integer('skill_id');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('user_skill');
}
}
|
Fix the README for the html genereation
> import Data.List
> main :: IO ()
> main = do
> ls <- getContents
> putStrLn $ unlines $ map fixLinks $ lines ls
> fixLinks x | "link:" `isPrefixOf` x = []
> fixLinks x | "// <<" `isPrefixOf` x = drop 3 x
> fixLinks x = x
|
data {
int d_int;
array[d_int] int d_int_array;
array[d_int] real d_real_array;
matrix[d_int, d_int] d_matrix;
vector[d_int] d_vector;
row_vector[d_int] d_row_vector;
array[3] vector[2] x3y;
array[3] row_vector[2] x4y;
array[3] matrix[2, 3] x5y;
array[3, 4] int x1z;
array[3, 4] real x2z;
array[3, 4] vector[2] x3z;
array[3, 4] row_vector[2] x4z;
array[3, 4] matrix[2, 3] x5z;
array[3, 4, 5] int x1w;
array[3, 4, 5] real x2w;
array[3, 4, 5] vector[2] x3w;
array[3, 4, 5] row_vector[2] x4w;
array[3, 4, 5] matrix[2, 3] x5w;
}
transformed data {
matrix[d_int, d_int] transformed_data_matrix;
vector[d_int] transformed_data_vector;
row_vector[d_int] transformed_data_row_vector;
array[3] vector[2] trans_x3y;
array[3] row_vector[2] trans_x4y;
array[3] matrix[2, 3] trans_x5y;
array[3, 4] real trans_x2z;
array[3, 4] vector[2] trans_x3z;
array[3, 4] row_vector[2] trans_x4z;
array[3, 4] matrix[2, 3] trans_x5z;
array[3, 4, 5] real trans_x2w;
array[3, 4, 5] vector[2] trans_x3w;
array[3, 4, 5] row_vector[2] trans_x4w;
array[3, 4, 5] matrix[2, 3] trans_x5w;
transformed_data_matrix = expm1(d_matrix);
transformed_data_vector = expm1(d_vector);
transformed_data_row_vector = expm1(d_row_vector);
trans_x3y = expm1(x3y);
trans_x4y = expm1(x4y);
trans_x5y = expm1(x5y);
trans_x2z = expm1(x1z);
trans_x2z = expm1(x2z);
trans_x3z = expm1(x3z);
trans_x4z = expm1(x4z);
trans_x5z = expm1(x5z);
trans_x2w = expm1(x1w);
trans_x2w = expm1(x2w);
trans_x3w = expm1(x3w);
trans_x4w = expm1(x4w);
trans_x5w = expm1(x5w);
}
parameters {
real p_real;
real y_p;
array[d_int] real p_real_array;
matrix[d_int, d_int] p_matrix;
vector[d_int] p_vector;
row_vector[d_int] p_row_vector;
array[3] vector[2] p_x3y;
array[3] row_vector[2] p_x4y;
array[3] matrix[2, 3] p_x5y;
array[3, 4] real p_x2z;
array[3, 4] vector[2] p_x3z;
array[3, 4] row_vector[2] p_x4z;
array[3, 4] matrix[2, 3] p_x5z;
array[3, 4, 5] real p_x2w;
array[3, 4, 5] vector[2] p_x3w;
array[3, 4, 5] row_vector[2] p_x4w;
array[3, 4, 5] matrix[2, 3] p_x5w;
}
transformed parameters {
matrix[d_int, d_int] transformed_param_matrix;
vector[d_int] transformed_param_vector;
row_vector[d_int] transformed_param_row_vector;
array[3] vector[2] trans_p_x3y;
array[3] row_vector[2] trans_p_x4y;
array[3] matrix[2, 3] trans_p_x5y;
array[3, 4] real trans_p_x2z;
array[3, 4] vector[2] trans_p_x3z;
array[3, 4] row_vector[2] trans_p_x4z;
array[3, 4] matrix[2, 3] trans_p_x5z;
array[3, 4, 5] real trans_p_x2w;
array[3, 4, 5] vector[2] trans_p_x3w;
array[3, 4, 5] row_vector[2] trans_p_x4w;
array[3, 4, 5] matrix[2, 3] trans_p_x5w;
transformed_param_matrix = expm1(d_matrix);
transformed_param_vector = expm1(d_vector);
transformed_param_row_vector = expm1(d_row_vector);
transformed_param_matrix = expm1(p_matrix);
transformed_param_vector = expm1(p_vector);
transformed_param_row_vector = expm1(p_row_vector);
trans_p_x3y = expm1(p_x3y);
trans_p_x4y = expm1(p_x4y);
trans_p_x5y = expm1(p_x5y);
trans_p_x2z = expm1(p_x2z);
trans_p_x3z = expm1(p_x3z);
trans_p_x4z = expm1(p_x4z);
trans_p_x5z = expm1(p_x5z);
trans_p_x2w = expm1(p_x2w);
trans_p_x3w = expm1(p_x3w);
trans_p_x4w = expm1(p_x4w);
trans_p_x5w = expm1(p_x5w);
}
model {
y_p ~ normal(0, 1);
}
|
------------------------------------------------------------------------------
-- This file is a part of the GRLIB VHDL IP LIBRARY
-- Copyright (C) 2003 - 2008, Gaisler Research
-- Copyright (C) 2008 - 2014, Aeroflex Gaisler
-- Copyright (C) 2015 - 2016, Cobham Gaisler
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
------------------------------------------------------------------------------
library ieee;
use ieee.std_logic_1164.all;
library commonlib;
use commonlib.types_common.all;
--! AMBA system bus specific library.
library ambalib;
--! AXI4 configuration constants.
use ambalib.types_amba4.all;
package types_eth is
--gigabit sync types
type data_sync_type is array (0 to 3) of std_logic_vector(31 downto 0);
type ctrl_sync_type is array (0 to 3) of std_logic_vector(1 downto 0);
constant HTRANS_IDLE: std_logic_vector(1 downto 0) := "00";
constant HTRANS_NONSEQ: std_logic_vector(1 downto 0) := "10";
constant HTRANS_SEQ: std_logic_vector(1 downto 0) := "11";
constant HBURST_INCR: std_logic_vector(2 downto 0) := "001";
constant HSIZE_WORD: std_logic_vector(2 downto 0) := "010";
constant HRESP_OKAY: std_logic_vector(1 downto 0) := "00";
constant HRESP_ERROR: std_logic_vector(1 downto 0) := "01";
constant HRESP_RETRY: std_logic_vector(1 downto 0) := "10";
constant HRESP_SPLIT: std_logic_vector(1 downto 0) := "11";
--receiver constants
constant maxsizerx : std_logic_vector(15 downto 0) :=
conv_std_logic_vector(1500, 16);
constant minpload : std_logic_vector(10 downto 0) :=
conv_std_logic_vector(60, 11);
type ahb_fifo_in_type is record
renable : std_ulogic;
raddress : std_logic_vector(4 downto 0);
write : std_ulogic;
data : std_logic_vector(31 downto 0);
waddress : std_logic_vector(4 downto 0);
end record;
type ahb_fifo_out_type is record
data : std_logic_vector(31 downto 0);
end record;
type nchar_fifo_in_type is record
renable : std_ulogic;
raddress : std_logic_vector(5 downto 0);
write : std_ulogic;
data : std_logic_vector(8 downto 0);
waddress : std_logic_vector(5 downto 0);
end record;
type nchar_fifo_out_type is record
data : std_logic_vector(8 downto 0);
end record;
type rmapbuf_in_type is record
renable : std_ulogic;
raddress : std_logic_vector(7 downto 0);
write : std_ulogic;
data : std_logic_vector(7 downto 0);
waddress : std_logic_vector(7 downto 0);
end record;
type rmapbuf_out_type is record
data : std_logic_vector(7 downto 0);
end record;
type ahbc_mst_in_type is record
hgrant : std_ulogic; -- bus grant
hready : std_ulogic; -- transfer done
hresp : std_logic_vector(1 downto 0); -- response type
hrdata : std_logic_vector(31 downto 0); -- read data bus
end record;
type ahbc_mst_out_type is record
hbusreq : std_ulogic; -- bus request
hlock : std_ulogic; -- lock request
htrans : std_logic_vector(1 downto 0); -- transfer type
haddr : std_logic_vector(31 downto 0); -- address bus (byte)
hwrite : std_ulogic; -- read/write
hsize : std_logic_vector(2 downto 0); -- transfer size
hburst : std_logic_vector(2 downto 0); -- burst type
hprot : std_logic_vector(3 downto 0); -- protection control
hwdata : std_logic_vector(31 downto 0); -- write data bus
end record;
type apbc_slv_in_type is record
psel : std_ulogic; -- slave select
penable : std_ulogic; -- strobe
paddr : std_logic_vector(31 downto 0); -- address bus (byte)
pwrite : std_ulogic; -- write
pwdata : std_logic_vector(31 downto 0); -- write data bus
end record;
type apbc_slv_out_type is record
prdata : std_logic_vector(31 downto 0); -- read data bus
end record;
type eth_tx_ahb_in_type is record
req : std_ulogic;
write : std_ulogic;
addr : std_logic_vector(31 downto 0);
data : std_logic_vector(31 downto 0);
burst_bytes : std_logic_vector(10 downto 0);
end record;
type eth_tx_ahb_out_type is record
grant : std_ulogic;
data : std_logic_vector(31 downto 0);
ready : std_ulogic;
error : std_ulogic;
retry : std_ulogic;
end record;
type eth_rx_ahb_in_type is record
req : std_ulogic;
write : std_ulogic;
addr : std_logic_vector(31 downto 0);
data : std_logic_vector(31 downto 0);
burst_bytes : std_logic_vector(10 downto 0);
end record;
constant eth_rx_in_none : eth_rx_ahb_in_type := (
'0', '0', (others => '0'), (others => '0'), (others => '0'));
type eth_rx_ahb_out_type is record
grant : std_ulogic;
ready : std_ulogic;
error : std_ulogic;
retry : std_ulogic;
data : std_logic_vector(31 downto 0);
end record;
type eth_rx_gbit_ahb_in_type is record
req : std_ulogic;
write : std_ulogic;
addr : std_logic_vector(31 downto 0);
data : std_logic_vector(31 downto 0);
size : std_logic_vector(1 downto 0);
end record;
type gbit_host_tx_type is record
full_duplex : std_ulogic;
start : std_ulogic;
read_ack : std_ulogic;
data : std_logic_vector(31 downto 0);
datavalid : std_ulogic;
valid : std_ulogic;
len : std_logic_vector(10 downto 0);
rx_col : std_ulogic;
rx_crs : std_ulogic;
end record;
type gbit_tx_host_type is record
txd : std_logic_vector(3 downto 0);
tx_en : std_ulogic;
done : std_ulogic;
read : std_ulogic;
restart : std_ulogic;
status : std_logic_vector(1 downto 0);
end record;
type gbit_rx_host_type is record
sync_start : std_ulogic;
done : std_ulogic;
write : std_logic_vector(3 downto 0);
dataout : data_sync_type;
byte_count : std_logic_vector(10 downto 0);
status : std_logic_vector(3 downto 0);
gotframe : std_ulogic;
mcasthash : std_logic_vector(5 downto 0);
end record;
type gbit_host_rx_type is record
full_duplex : std_ulogic;
gbit : std_ulogic;
doneack : std_ulogic;
writeack : std_logic_vector(3 downto 0);
speed : std_ulogic;
writeok : std_logic_vector(3 downto 0);
rxenable : std_ulogic;
rxd : std_logic_vector(7 downto 0);
rx_dv : std_ulogic;
rx_er : std_ulogic;
rx_col : std_ulogic;
rx_crs : std_ulogic;
rx_en : std_ulogic;
end record;
type gbit_gtx_host_type is record
txd : std_logic_vector(7 downto 0);
tx_en : std_ulogic;
tx_er : std_ulogic;
done : std_ulogic;
restart : std_ulogic;
read : std_logic_vector(3 downto 0);
status : std_logic_vector(2 downto 0);
end record;
type gbit_host_gtx_type is record
rx_col : std_ulogic;
rx_crs : std_ulogic;
full_duplex : std_ulogic;
burstmode : std_ulogic;
txen : std_ulogic;
start_sync : std_ulogic;
readack : std_logic_vector(3 downto 0);
valid : std_logic_vector(3 downto 0);
data : data_sync_type;
len : std_logic_vector(10 downto 0);
end record;
type host_tx_type is record
rx_col : std_ulogic;
rx_crs : std_ulogic;
full_duplex : std_ulogic;
start : std_ulogic;
readack : std_ulogic;
speed : std_ulogic;
data : std_logic_vector(31 downto 0);
datavalid : std_ulogic;
valid : std_ulogic;
len : std_logic_vector(10 downto 0);
end record;
type tx_host_type is record
txd : std_logic_vector(3 downto 0);
tx_en : std_ulogic;
tx_er : std_ulogic;
done : std_ulogic;
read : std_ulogic;
restart : std_ulogic;
status : std_logic_vector(1 downto 0);
end record;
type rx_host_type is record
dataout : std_logic_vector(31 downto 0);
start : std_ulogic;
done : std_ulogic;
write : std_ulogic;
status : std_logic_vector(3 downto 0);
gotframe : std_ulogic;
byte_count : std_logic_vector(10 downto 0);
lentype : std_logic_vector(15 downto 0);
mcasthash : std_logic_vector(5 downto 0);
end record;
type host_rx_type is record
writeack : std_ulogic;
doneack : std_ulogic;
speed : std_ulogic;
writeok : std_ulogic;
rxd : std_logic_vector(3 downto 0);
rx_dv : std_ulogic;
rx_crs : std_ulogic;
rx_er : std_ulogic;
enable : std_ulogic;
rx_en : std_ulogic;
end record;
component greth_rx is
generic(
nsync : integer range 1 to 2 := 2;
rmii : integer range 0 to 1 := 0;
multicast : integer range 0 to 1 := 0;
maxsize : integer;
gmiimode : integer range 0 to 1 := 0
);
port(
rst : in std_ulogic;
clk : in std_ulogic;
rxi : in host_rx_type;
rxo : out rx_host_type
);
end component;
component greth_tx is
generic(
ifg_gap : integer := 24;
attempt_limit : integer := 16;
backoff_limit : integer := 10;
nsync : integer range 1 to 2 := 2;
rmii : integer range 0 to 1 := 0;
gmiimode : integer range 0 to 1 := 0
);
port(
rst : in std_ulogic;
clk : in std_ulogic;
txi : in host_tx_type;
txo : out tx_host_type
);
end component;
component eth_rstgen is
generic(acthigh : integer := 0);
port (
rstin : in std_ulogic;
clk : in std_ulogic;
clklock : in std_ulogic;
rstout : out std_ulogic;
rstoutraw : out std_ulogic
);
end component;
component greth_gbit_tx is
generic(
ifg_gap : integer := 24;
attempt_limit : integer := 16;
backoff_limit : integer := 10;
nsync : integer range 1 to 2 := 2;
gmiimode : integer range 0 to 1 := 0
);
port(
rst : in std_ulogic;
clk : in std_ulogic;
txi : in gbit_host_tx_type;
txo : out gbit_tx_host_type);
end component;
component greth_gbit_gtx is
generic(
ifg_gap : integer := 24;
attempt_limit : integer := 16;
backoff_limit : integer := 10;
nsync : integer range 1 to 2 := 2;
iotest : integer := 0);
port(
rst : in std_ulogic;
clk : in std_ulogic;
gtxi : in gbit_host_gtx_type;
gtxo : out gbit_gtx_host_type;
iotmact : in std_ulogic;
iotdata : in std_logic_vector(9 downto 0)
);
end component;
component greth_gbit_rx is
generic(
multicast : integer range 0 to 1 := 0;
nsync : integer range 1 to 2 := 2;
gmiimode : integer range 0 to 1 := 0
);
port(
rst : in std_ulogic;
clk : in std_ulogic;
rxi : in gbit_host_rx_type;
rxo : out gbit_rx_host_type;
iotdata : out std_logic_vector(9 downto 0));
end component;
component eth_ahb_mst is
port(
rst : in std_ulogic;
clk : in std_ulogic;
ahbmi : in ahbc_mst_in_type;
ahbmo : out ahbc_mst_out_type;
tmsti : in eth_tx_ahb_in_type;
tmsto : out eth_tx_ahb_out_type;
rmsti : in eth_rx_ahb_in_type;
rmsto : out eth_rx_ahb_out_type
);
end component;
component eth_ahb_mst_gbit is
port(
rst : in std_ulogic;
clk : in std_ulogic;
ahbmi : in ahbc_mst_in_type;
ahbmo : out ahbc_mst_out_type;
tmsti : in eth_tx_ahb_in_type;
tmsto : out eth_tx_ahb_out_type;
rmsti : in eth_rx_gbit_ahb_in_type;
rmsto : out eth_rx_ahb_out_type);
end component;
component eth_edcl_ahb_mst is
port(
rst : in std_ulogic;
clk : in std_ulogic;
ahbmi : in ahbc_mst_in_type;
ahbmo : out ahbc_mst_out_type;
tmsti : in eth_tx_ahb_in_type;
tmsto : out eth_tx_ahb_out_type
);
end component;
component eth_axi_mst is
port(
rst : in std_ulogic;
clk : in std_ulogic;
aximi : in axi4_master_in_type;
aximo : out axi4_master_out_type;
tmsti : in eth_tx_ahb_in_type;
tmsto : out eth_tx_ahb_out_type;
rmsti : in eth_rx_ahb_in_type;
rmsto : out eth_rx_ahb_out_type
);
end component;
function mirror(din : in std_logic_vector) return std_logic_vector;
function crc32_4(d : in std_logic_vector(3 downto 0);
crc : in std_logic_vector(31 downto 0))
return std_logic_vector;
function crc16_2(d1 : in std_logic_vector(15 downto 0);
d2 : in std_logic_vector(25 downto 0))
return std_logic_vector;
function crc16(d1 : in std_logic_vector(15 downto 0);
d2 : in std_logic_vector(15 downto 0))
return std_logic_vector;
function validlen(len : in std_logic_vector(10 downto 0);
bcnt : in std_logic_vector(10 downto 0);
usesz : in std_ulogic)
return std_ulogic;
function getfifosize(edcl, fifosize, ebufsize : in integer) return integer;
function setburstlength(fifosize : in integer) return integer;
function calccrc(d : in std_logic_vector(3 downto 0);
crc : in std_logic_vector(31 downto 0))
return std_logic_vector;
--16-bit one's complement adder
function crcadder(d1 : in std_logic_vector(15 downto 0);
d2 : in std_logic_vector(17 downto 0))
return std_logic_vector;
-- ETH registers
type eth_mdio_command_type is record
valid : std_ulogic;
regadr : std_logic_vector(4 downto 0);
write : std_ulogic;
read : std_ulogic;
data : std_logic_vector(15 downto 0);
end record;
constant eth_mdio_command_none : eth_mdio_command_type := (
'0', (others => '0'), '0', '0', (others => '0')
);
type eth_mdio_status_type is record
cmd : eth_mdio_command_type;
busy : std_ulogic;
linkfail : std_ulogic;
end record;
type eth_mac_status_type is record
txdsel : std_logic_vector(9 downto 3);
rxdsel : std_logic_vector(9 downto 3);
txen : std_ulogic;
rxen : std_ulogic;
tx_int : std_ulogic;
rx_int : std_ulogic;
tx_err : std_ulogic;
rx_err : std_ulogic;
edcltx_idle : std_ulogic;
edclrx_idle : std_ulogic;
txahberr : std_ulogic;
rxahberr : std_ulogic;
toosmall : std_ulogic;
invaddr : std_ulogic;
phystat : std_ulogic;
full_duplex : std_ulogic;
speed : std_ulogic;
reset : std_ulogic;
mdio : eth_mdio_status_type;
end record;
--! Latched values set via external Bus Interface
type eth_control_type is record
tx_irqen : std_ulogic;
rx_irqen : std_ulogic;
prom : std_ulogic;
pstatirqen : std_ulogic;
mcasten : std_ulogic;
--! Enable access to the internal FIFOs via system BUS (disabled default)
ramdebugen : std_ulogic;
--! Disable EDCL access
edcldis : std_ulogic;
disableduplex : std_ulogic;
--! Physical address.
--! Can be changed in a runtime, but become actual only after system reset.
mdio_phyadr : std_logic_vector(4 downto 0);
mac_addr : std_logic_vector(47 downto 0);
--! Tx descriptor
txdesc : std_logic_vector(31 downto 10);
--! Rx descriptor
rxdesc : std_logic_vector(31 downto 10);
--! EDCL IP
edclip : std_logic_vector(31 downto 0);
--! Multicast enabling hash value
hash : std_logic_vector(63 downto 0);
emacaddr : std_logic_vector(47 downto 0);
end record;
--! @name DBG access unique IDs to the internal FIFOs blocks.
--! @{
constant DBG_ACCESS_NONE : std_logic_vector(1 downto 0) := "00";
constant DBG_ACCESS_TX_BUFFER : std_logic_vector(1 downto 0) := "01";
constant DBG_ACCESS_RX_BUFFER : std_logic_vector(1 downto 0) := "10";
constant DBG_ACCESS_EDCL_BUFFER : std_logic_vector(1 downto 0) := "11";
--! @}
--! Bus interface read/write actions transforming into these commands.
type eth_command_type is record
--! Tx/Rx can be enabled externally but they're cleared inside of MAC
--! in a case of disabled Descriptor or in a case of BUS error.
set_txena : std_ulogic;
clr_txena : std_ulogic;
set_rxena : std_ulogic;
clr_rxena : std_ulogic;
--! Set new descriptor index in the array of descriptors table
set_txdsel : std_ulogic;
set_rxdsel : std_ulogic;
txdsel : std_logic_vector(9 downto 3);
rxdsel : std_logic_vector(9 downto 3);
--! The following values can be changed during initialization stage.
set_full_duplex : std_ulogic;
clr_full_duplex : std_ulogic;
set_speed : std_ulogic;
clr_speed : std_ulogic;
set_reset : std_ulogic;
clr_reset : std_ulogic;
--! Clear status bits commands:
clr_status_tx_int : std_ulogic;
clr_status_rx_int : std_ulogic;
clr_status_tx_err : std_ulogic;
clr_status_rx_err : std_ulogic;
clr_status_txahberr : std_ulogic;
clr_status_rxahberr : std_ulogic;
clr_status_toosmall : std_ulogic;
clr_status_invaddr : std_ulogic;
clr_status_phystat : std_ulogic;
--! mdi interface command
mdio_cmd : eth_mdio_command_type;
--! Request ID values:
dbg_access_id : std_logic_vector(1 downto 0);
dbg_wr_ena : std_logic;
dbg_rd_ena : std_logic;
dbg_addr : std_logic_vector(13 downto 0);
dbg_wdata : std_logic_vector(31 downto 0);
end record;
constant eth_command_none : eth_command_type := (
'0', '0', '0', '0', '0', '0', (others => '0'), (others => '0'),
'0', '0', '0', '0', '0', '0',
'0', '0', '0', '0', '0', '0', '0', '0', '0', eth_mdio_command_none,
DBG_ACCESS_NONE, '0', '0', (others => '0'), (others => '0')
);
type eth_in_type is record
gtx_clk : std_ulogic;
rmii_clk : std_ulogic;
tx_clk : std_ulogic;
tx_clk_90 : std_ulogic;
rx_clk : std_ulogic;
tx_dv : std_ulogic;
rxd : std_logic_vector(3 downto 0);
rx_dv : std_ulogic;
rx_er : std_ulogic;
rx_col : std_ulogic;
rx_en : std_ulogic;
rx_crs : std_ulogic;
mdio_i : std_ulogic;
mdint : std_ulogic;
phyrstaddr : std_logic_vector(4 downto 0);
edcladdr : std_logic_vector(3 downto 0);
edclsepahb : std_ulogic;
edcldisable : std_ulogic;
end record;
constant eth_in_none : eth_in_type := (
'0', '0', '0', '0', '0', '0', (others => '0'), '0', '0', '0', '0', '0',
'0', '0', (others => '0'), (others => '0'), '0', '0');
type eth_out_type is record
reset : std_ulogic;
txd : std_logic_vector(3 downto 0);
tx_en : std_ulogic;
tx_er : std_ulogic;
tx_clk : std_ulogic;
mdc : std_ulogic;
mdio_o : std_ulogic;
mdio_oe : std_ulogic;
gbit : std_ulogic;
speed : std_ulogic;
end record;
constant eth_out_none : eth_out_type := (
'0', (others => '0'), '0', '0', '0', '0', '0', '1', '0', '0');
component grethc64 is
generic(
memtech : integer := 0;
ifg_gap : integer := 24;
attempt_limit : integer := 16;
backoff_limit : integer := 10;
mdcscaler : integer range 0 to 255 := 25;
enable_mdio : integer range 0 to 1 := 0;
fifosize : integer range 4 to 512 := 8;
nsync : integer range 1 to 2 := 2;
edcl : integer range 0 to 3 := 0;
edclbufsz : integer range 1 to 64 := 1;
macaddrh : integer := 16#00005E#;
macaddrl : integer := 16#000000#;
ipaddrh : integer := 16#c0a8#;
ipaddrl : integer := 16#0035#;
phyrstadr : integer range 0 to 32 := 0;
rmii : integer range 0 to 1 := 0;
oepol : integer range 0 to 1 := 0;
scanen : integer range 0 to 1 := 0;
mdint_pol : integer range 0 to 1 := 0;
enable_mdint : integer range 0 to 1 := 0;
multicast : integer range 0 to 1 := 0;
edclsepahbg : integer range 0 to 1 := 0;
ramdebug : integer range 0 to 2 := 0;
mdiohold : integer := 1;
maxsize : integer := 1500;
gmiimode : integer range 0 to 1 := 0
);
port(
rst : in std_ulogic;
clk : in std_ulogic;
ctrli : in eth_control_type;
cmdi : in eth_command_type;
statuso : out eth_mac_status_type;
--! Debug value read from internal buffers suing external bus interface
rdbgdatao : out std_logic_vector(31 downto 0);
--irq
irq : out std_logic;
--ethernet input signals
rmii_clk : in std_ulogic;
tx_clk : in std_ulogic;
rx_clk : in std_ulogic;
tx_dv : in std_ulogic;
rxd : in std_logic_vector(3 downto 0);
rx_dv : in std_ulogic;
rx_er : in std_ulogic;
rx_col : in std_ulogic;
rx_en : in std_ulogic;
rx_crs : in std_ulogic;
mdio_i : in std_ulogic;
phyrstaddr : in std_logic_vector(4 downto 0);
mdint : in std_ulogic;
--ethernet output signals
reset : out std_ulogic;
txd : out std_logic_vector(3 downto 0);
tx_en : out std_ulogic;
tx_er : out std_ulogic;
mdc : out std_ulogic;
mdio_o : out std_ulogic;
mdio_oe : out std_ulogic;
--scantest
testrst : in std_ulogic;
testen : in std_ulogic;
testoen : in std_ulogic;
edcladdr : in std_logic_vector(3 downto 0) := "0000";
edclsepahb : in std_ulogic;
edcldisable : in std_ulogic;
speed : out std_ulogic;
tmsto : out eth_tx_ahb_in_type;
tmsti : in eth_tx_ahb_out_type;
tmsto2 : out eth_tx_ahb_in_type;
tmsti2 : in eth_tx_ahb_out_type;
rmsto : out eth_rx_ahb_in_type;
rmsti : in eth_rx_ahb_out_type
);
end component;
component grethaxi is
generic(
async_reset : boolean := false;
xaddr : integer := 0;
xmask : integer := 16#FFFFF#;
xirq : integer := 0;
memtech : integer := 0;
ifg_gap : integer := 24;
attempt_limit : integer := 16;
backoff_limit : integer := 10;
slot_time : integer := 128;
mdcscaler : integer range 0 to 255 := 25;
enable_mdio : integer range 0 to 1 := 0;
fifosize : integer range 4 to 512 := 8;
nsync : integer range 1 to 2 := 2;
edcl : integer range 0 to 3 := 0;
edclbufsz : integer range 1 to 64 := 1;
macaddrh : integer := 16#00005E#;
macaddrl : integer := 16#000000#;
ipaddrh : integer := 16#c0a8#;
ipaddrl : integer := 16#0035#;
phyrstadr : integer range 0 to 32 := 0;
rmii : integer range 0 to 1 := 0;
oepol : integer range 0 to 1 := 0;
scanen : integer range 0 to 1 := 0;
ft : integer range 0 to 2 := 0;
edclft : integer range 0 to 2 := 0;
mdint_pol : integer range 0 to 1 := 0;
enable_mdint : integer range 0 to 1 := 0;
multicast : integer range 0 to 1 := 0;
edclsepahbg : integer range 0 to 1 := 0;
ramdebug : integer range 0 to 2 := 0;
mdiohold : integer := 1;
maxsize : integer := 1500;
gmiimode : integer range 0 to 1 := 0
);
port(
rst : in std_ulogic;
clk : in std_ulogic;
msti : in axi4_master_in_type;
msto : out axi4_master_out_type;
mstcfg : out axi4_master_config_type;
msto2 : out axi4_master_out_type;
mstcfg2 : out axi4_master_config_type;
slvi : in axi4_slave_in_type;
slvo : out axi4_slave_out_type;
slvcfg : out axi4_slave_config_type;
ethi : in eth_in_type;
etho : out eth_out_type;
irq : out std_logic
);
end component;
end package;
package body types_eth is
function mirror(din : in std_logic_vector)
return std_logic_vector is
variable do : std_logic_vector(din'range);
begin
for i in 0 to din'length-1 loop
do(din'high-i) := din(i+din'low);
end loop;
return do;
end function;
function crc32_4(d : in std_logic_vector(3 downto 0);
crc : in std_logic_vector(31 downto 0))
return std_logic_vector is
variable ncrc : std_logic_vector(31 downto 0);
variable tc : std_logic_vector(3 downto 0);
begin
tc(0) := d(0) xor crc(31); tc(1) := d(1) xor crc(30);
tc(2) := d(2) xor crc(29); tc(3) := d(3) xor crc(28);
ncrc(31) := crc(27);
ncrc(30) := crc(26);
ncrc(29) := tc(0) xor crc(25);
ncrc(28) := tc(1) xor crc(24);
ncrc(27) := tc(2) xor crc(23);
ncrc(26) := tc(0) xor tc(3) xor crc(22);
ncrc(25) := tc(0) xor tc(1) xor crc(21);
ncrc(24) := tc(1) xor tc(2) xor crc(20);
ncrc(23) := tc(2) xor tc(3) xor crc(19);
ncrc(22) := tc(3) xor crc(18);
ncrc(21) := crc(17);
ncrc(20) := crc(16);
ncrc(19) := tc(0) xor crc(15);
ncrc(18) := tc(1) xor crc(14);
ncrc(17) := tc(2) xor crc(13);
ncrc(16) := tc(3) xor crc(12);
ncrc(15) := tc(0) xor crc(11);
ncrc(14) := tc(0) xor tc(1) xor crc(10);
ncrc(13) := tc(0) xor tc(1) xor tc(2) xor crc(9);
ncrc(12) := tc(1) xor tc(2) xor tc(3) xor crc(8);
ncrc(11) := tc(0) xor tc(2) xor tc(3) xor crc(7);
ncrc(10) := tc(0) xor tc(1) xor tc(3) xor crc(6);
ncrc(9) := tc(1) xor tc(2) xor crc(5);
ncrc(8) := tc(0) xor tc(2) xor tc(3) xor crc(4);
ncrc(7) := tc(0) xor tc(1) xor tc(3) xor crc(3);
ncrc(6) := tc(1) xor tc(2) xor crc(2);
ncrc(5) := tc(0) xor tc(2) xor tc(3) xor crc(1);
ncrc(4) := tc(0) xor tc(1) xor tc(3) xor crc(0);
ncrc(3) := tc(0) xor tc(1) xor tc(2);
ncrc(2) := tc(1) xor tc(2) xor tc(3);
ncrc(1) := tc(2) xor tc(3);
ncrc(0) := tc(3);
return ncrc;
end function;
--16-bit one's complement adder
function crc16(d1 : in std_logic_vector(15 downto 0);
d2 : in std_logic_vector(15 downto 0))
return std_logic_vector is
variable vd1 : std_logic_vector(16 downto 0);
variable vd2 : std_logic_vector(16 downto 0);
variable sum : std_logic_vector(16 downto 0);
begin
vd1 := '0' & d1; vd2 := '0' & d2;
sum := vd1 + vd2;
sum(15 downto 0) := sum(15 downto 0) + sum(16);
return sum(15 downto 0);
end function;
--16-bit one's complement adder for ip/tcp checksum detection
function crc16_2(d1 : in std_logic_vector(15 downto 0);
d2 : in std_logic_vector(25 downto 0))
return std_logic_vector is
variable vd1 : std_logic_vector(25 downto 0);
variable vd2 : std_logic_vector(25 downto 0);
variable sum : std_logic_vector(25 downto 0);
begin
vd1 := "0000000000" & d1; vd2 := d2;
sum := vd1 + vd2;
return sum;
end function;
function validlen(len : in std_logic_vector(10 downto 0);
bcnt : in std_logic_vector(10 downto 0);
usesz : in std_ulogic)
return std_ulogic is
variable valid : std_ulogic;
begin
valid := '1';
if usesz = '1' then
if len > minpload then
if bcnt /= len then
valid := '0';
end if;
else
if bcnt /= minpload then
valid := '0';
end if;
end if;
end if;
return valid;
end function;
function setburstlength(fifosize : in integer) return integer is
begin
if fifosize <= 64 then
return fifosize/2;
else
return 32;
end if;
end function;
function getfifosize(edcl, fifosize, ebufsize : in integer) return integer is
begin
if (edcl /= 0) and (ebufsize > fifosize) then
return ebufsize;
else
return fifosize;
end if;
end function;
function calccrc(d : in std_logic_vector(3 downto 0);
crc : in std_logic_vector(31 downto 0))
return std_logic_vector is
variable ncrc : std_logic_vector(31 downto 0);
variable tc : std_logic_vector(3 downto 0);
begin
tc(0) := d(0) xor crc(31); tc(1) := d(1) xor crc(30);
tc(2) := d(2) xor crc(29); tc(3) := d(3) xor crc(28);
ncrc(31) := crc(27);
ncrc(30) := crc(26);
ncrc(29) := tc(0) xor crc(25);
ncrc(28) := tc(1) xor crc(24);
ncrc(27) := tc(2) xor crc(23);
ncrc(26) := tc(0) xor tc(3) xor crc(22);
ncrc(25) := tc(0) xor tc(1) xor crc(21);
ncrc(24) := tc(1) xor tc(2) xor crc(20);
ncrc(23) := tc(2) xor tc(3) xor crc(19);
ncrc(22) := tc(3) xor crc(18);
ncrc(21) := crc(17);
ncrc(20) := crc(16);
ncrc(19) := tc(0) xor crc(15);
ncrc(18) := tc(1) xor crc(14);
ncrc(17) := tc(2) xor crc(13);
ncrc(16) := tc(3) xor crc(12);
ncrc(15) := tc(0) xor crc(11);
ncrc(14) := tc(0) xor tc(1) xor crc(10);
ncrc(13) := tc(0) xor tc(1) xor tc(2) xor crc(9);
ncrc(12) := tc(1) xor tc(2) xor tc(3) xor crc(8);
ncrc(11) := tc(0) xor tc(2) xor tc(3) xor crc(7);
ncrc(10) := tc(0) xor tc(1) xor tc(3) xor crc(6);
ncrc(9) := tc(1) xor tc(2) xor crc(5);
ncrc(8) := tc(0) xor tc(2) xor tc(3) xor crc(4);
ncrc(7) := tc(0) xor tc(1) xor tc(3) xor crc(3);
ncrc(6) := tc(1) xor tc(2) xor crc(2);
ncrc(5) := tc(0) xor tc(2) xor tc(3) xor crc(1);
ncrc(4) := tc(0) xor tc(1) xor tc(3) xor crc(0);
ncrc(3) := tc(0) xor tc(1) xor tc(2);
ncrc(2) := tc(1) xor tc(2) xor tc(3);
ncrc(1) := tc(2) xor tc(3);
ncrc(0) := tc(3);
return ncrc;
end function;
--function calccrc_8(data : in std_logic_vector( 7 downto 0);
-- crc : in std_logic_vector(31 downto 0))
-- return std_logic_vector is
-- variable ncrc : std_logic_vector(31 downto 0);
-- variable d : std_logic_vector(7 downto 0);
--begin
-- d(7) := data(0); d(6) := data(1); d(5) := data(2); d(4) := data(3);
-- d(3) := data(4); d(2) := data(5); d(1) := data(6); d(0) := data(7);
-- ncrc(0) := d(6) xor d(0) xor crc(24) xor crc(30);
-- ncrc(1) := d(7) xor d(6) xor d(1) xor d(0) xor crc(24) xor crc(25) xor crc(30) xor crc(31);
-- ncrc(2) := d(7) xor d(6) xor d(2) xor d(1) xor d(0) xor crc(24) xor crc(25) xor crc(26) xor crc(30) xor crc(31);
-- ncrc(3) := d(7) xor d(3) xor d(2) xor d(1) xor crc(25) xor crc(26) xor crc(27) xor crc(31);
-- ncrc(4) := d(6) xor d(4) xor d(3) xor d(2) xor d(0) xor crc(24) xor crc(26) xor crc(27) xor crc(28) xor crc(30);
-- ncrc(5) := d(7) xor d(6) xor d(5) xor d(4) xor d(3) xor d(1) xor d(0) xor crc(24) xor crc(25) xor crc(27) xor crc(28) xor crc(29) xor crc(30) xor crc(31);
-- ncrc(6) := d(7) xor d(6) xor d(5) xor d(4) xor d(2) xor d(1) xor crc(25) xor crc(26) xor crc(28) xor crc(29) xor crc(30) xor crc(31);
-- ncrc(7) := d(7) xor d(5) xor d(3) xor d(2) xor d(0) xor crc(24) xor crc(26) xor crc(27) xor crc(29) xor crc(31);
-- ncrc(8) := d(4) xor d(3) xor d(1) xor d(0) xor crc(0) xor crc(24) xor crc(25) xor crc(27) xor crc(28);
-- ncrc(9) := d(5) xor d(4) xor d(2) xor d(1) xor crc(1) xor crc(25) xor crc(26) xor crc(28) xor crc(29);
-- ncrc(10) := d(5) xor d(3) xor d(2) xor d(0) xor crc(2) xor crc(24) xor crc(26) xor crc(27) xor crc(29);
-- ncrc(11) := d(4) xor d(3) xor d(1) xor d(0) xor crc(3) xor crc(24) xor crc(25) xor crc(27) xor crc(28);
-- ncrc(12) := d(6) xor d(5) xor d(4) xor d(2) xor d(1) xor d(0) xor crc(4) xor crc(24) xor crc(25) xor crc(26) xor crc(28) xor crc(29) xor crc(30);
-- ncrc(13) := d(7) xor d(6) xor d(5) xor d(3) xor d(2) xor d(1) xor crc(5) xor crc(25) xor crc(26) xor crc(27) xor crc(29) xor crc(30) xor crc(31);
-- ncrc(14) := d(7) xor d(6) xor d(4) xor d(3) xor d(2) xor crc(6) xor crc(26) xor crc(27) xor crc(28) xor crc(30) xor crc(31);
-- ncrc(15) := d(7) xor d(5) xor d(4) xor d(3) xor crc(7) xor crc(27) xor crc(28) xor crc(29) xor crc(31);
-- ncrc(16) := d(5) xor d(4) xor d(0) xor crc(8) xor crc(24) xor crc(28) xor crc(29);
-- ncrc(17) := d(6) xor d(5) xor d(1) xor crc(9) xor crc(25) xor crc(29) xor crc(30);
-- ncrc(18) := d(7) xor d(6) xor d(2) xor crc(10) xor crc(26) xor crc(30) xor crc(31);
-- ncrc(19) := d(7) xor d(3) xor crc(11) xor crc(27) xor crc(31);
-- ncrc(20) := d(4) xor crc(12) xor crc(28);
-- ncrc(21) := d(5) xor crc(13) xor crc(29);
-- ncrc(22) := d(0) xor crc(14) xor crc(24);
-- ncrc(23) := d(6) xor d(1) xor d(0) xor crc(15) xor crc(24) xor crc(25) xor crc(30);
-- ncrc(24) := d(7) xor d(2) xor d(1) xor crc(16) xor crc(25) xor crc(26) xor crc(31);
-- ncrc(25) := d(3) xor d(2) xor crc(17) xor crc(26) xor crc(27);
-- ncrc(26) := d(6) xor d(4) xor d(3) xor d(0) xor crc(18) xor crc(24) xor crc(27) xor crc(28) xor crc(30);
-- ncrc(27) := d(7) xor d(5) xor d(4) xor d(1) xor crc(19) xor crc(25) xor crc(28) xor crc(29) xor crc(31);
-- ncrc(28) := d(6) xor d(5) xor d(2) xor crc(20) xor crc(26) xor crc(29) xor crc(30);
-- ncrc(29) := d(7) xor d(6) xor d(3) xor crc(21) xor crc(27) xor crc(30) xor crc(31);
-- ncrc(30) := d(7) xor d(4) xor crc(22) xor crc(28) xor crc(31);
-- ncrc(31) := d(5) xor crc(23) xor crc(29);
-- return ncrc;
--end function;
--16-bit one's complement adder
function crcadder(d1 : in std_logic_vector(15 downto 0);
d2 : in std_logic_vector(17 downto 0))
return std_logic_vector is
variable vd1 : std_logic_vector(17 downto 0);
variable vd2 : std_logic_vector(17 downto 0);
variable sum : std_logic_vector(17 downto 0);
begin
vd1 := "00" & d1; vd2 := d2;
sum := vd1 + vd2;
return sum;
end function;
end package body;
|
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class ChangeCreatorModifierDialog
Inherits System.Windows.Forms.Form
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
End If
Finally
MyBase.Dispose(disposing)
End Try
End Sub
Private components As System.ComponentModel.IContainer
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(ChangeCreatorModifierDialog))
Me.TableLayoutPanel1 = New System.Windows.Forms.TableLayoutPanel()
Me.Label1 = New System.Windows.Forms.Label()
Me.Label2 = New System.Windows.Forms.Label()
Me.CurrentNameTextBox = New System.Windows.Forms.TextBox()
Me.Label3 = New System.Windows.Forms.Label()
Me.TableLayoutPanel2 = New System.Windows.Forms.TableLayoutPanel()
Me.UserNameTextBox = New System.Windows.Forms.TextBox()
Me.SelectUserButton = New System.Windows.Forms.Button()
Me.ClearUserSelectionButton = New System.Windows.Forms.Button()
Me.ButtonCancel = New System.Windows.Forms.Button()
Me.Panel1 = New System.Windows.Forms.Panel()
Me.ButtonOK = New System.Windows.Forms.Button()
Me.TableLayoutPanel1.SuspendLayout()
Me.TableLayoutPanel2.SuspendLayout()
Me.Panel1.SuspendLayout()
Me.SuspendLayout()
resources.ApplyResources(Me.TableLayoutPanel1, "TableLayoutPanel1")
Me.TableLayoutPanel1.Controls.Add(Me.Label1, 0, 0)
Me.TableLayoutPanel1.Controls.Add(Me.Label2, 0, 3)
Me.TableLayoutPanel1.Controls.Add(Me.CurrentNameTextBox, 1, 3)
Me.TableLayoutPanel1.Controls.Add(Me.Label3, 0, 4)
Me.TableLayoutPanel1.Controls.Add(Me.TableLayoutPanel2, 1, 4)
Me.TableLayoutPanel1.Name = "TableLayoutPanel1"
resources.ApplyResources(Me.Label1, "Label1")
Me.TableLayoutPanel1.SetColumnSpan(Me.Label1, 3)
Me.Label1.Name = "Label1"
resources.ApplyResources(Me.Label2, "Label2")
Me.Label2.Name = "Label2"
resources.ApplyResources(Me.CurrentNameTextBox, "CurrentNameTextBox")
Me.TableLayoutPanel1.SetColumnSpan(Me.CurrentNameTextBox, 2)
Me.CurrentNameTextBox.Name = "CurrentNameTextBox"
resources.ApplyResources(Me.Label3, "Label3")
Me.Label3.Name = "Label3"
resources.ApplyResources(Me.TableLayoutPanel2, "TableLayoutPanel2")
Me.TableLayoutPanel1.SetColumnSpan(Me.TableLayoutPanel2, 2)
Me.TableLayoutPanel2.Controls.Add(Me.UserNameTextBox, 0, 0)
Me.TableLayoutPanel2.Controls.Add(Me.SelectUserButton, 1, 0)
Me.TableLayoutPanel2.Controls.Add(Me.ClearUserSelectionButton, 3, 0)
Me.TableLayoutPanel2.Name = "TableLayoutPanel2"
resources.ApplyResources(Me.UserNameTextBox, "UserNameTextBox")
Me.UserNameTextBox.Name = "UserNameTextBox"
resources.ApplyResources(Me.SelectUserButton, "SelectUserButton")
Me.SelectUserButton.Name = "SelectUserButton"
Me.SelectUserButton.UseVisualStyleBackColor = True
resources.ApplyResources(Me.ClearUserSelectionButton, "ClearUserSelectionButton")
Me.ClearUserSelectionButton.Name = "ClearUserSelectionButton"
Me.ClearUserSelectionButton.UseVisualStyleBackColor = True
Me.ButtonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel
resources.ApplyResources(Me.ButtonCancel, "ButtonCancel")
Me.ButtonCancel.Name = "ButtonCancel"
Me.ButtonCancel.UseVisualStyleBackColor = True
Me.Panel1.Controls.Add(Me.ButtonOK)
Me.Panel1.Controls.Add(Me.ButtonCancel)
resources.ApplyResources(Me.Panel1, "Panel1")
Me.Panel1.Name = "Panel1"
resources.ApplyResources(Me.ButtonOK, "ButtonOK")
Me.ButtonOK.Name = "ButtonOK"
Me.ButtonOK.UseVisualStyleBackColor = True
resources.ApplyResources(Me, "$this")
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.ControlBox = False
Me.Controls.Add(Me.Panel1)
Me.Controls.Add(Me.TableLayoutPanel1)
Me.Cursor = System.Windows.Forms.Cursors.Default
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
Me.Name = "ChangeCreatorModifierDialog"
Me.TableLayoutPanel1.ResumeLayout(False)
Me.TableLayoutPanel1.PerformLayout()
Me.TableLayoutPanel2.ResumeLayout(False)
Me.TableLayoutPanel2.PerformLayout()
Me.Panel1.ResumeLayout(False)
Me.ResumeLayout(False)
End Sub
Friend WithEvents TableLayoutPanel1 As System.Windows.Forms.TableLayoutPanel
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents CurrentNameTextBox As System.Windows.Forms.TextBox
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents ButtonCancel As System.Windows.Forms.Button
Friend WithEvents TableLayoutPanel2 As System.Windows.Forms.TableLayoutPanel
Friend WithEvents UserNameTextBox As System.Windows.Forms.TextBox
Friend WithEvents SelectUserButton As System.Windows.Forms.Button
Friend WithEvents ClearUserSelectionButton As System.Windows.Forms.Button
Friend WithEvents Panel1 As System.Windows.Forms.Panel
Friend WithEvents ButtonOK As System.Windows.Forms.Button
End Class
|
/*
Copyright 2014 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// This is the default algorithm provider for the scheduler.
package defaults
import (
"os"
"strconv"
"k8s.io/kubernetes/pkg/cloudprovider/providers/aws"
"k8s.io/kubernetes/pkg/util/sets"
"k8s.io/kubernetes/plugin/pkg/scheduler"
"k8s.io/kubernetes/plugin/pkg/scheduler/algorithm"
"k8s.io/kubernetes/plugin/pkg/scheduler/algorithm/predicates"
"k8s.io/kubernetes/plugin/pkg/scheduler/algorithm/priorities"
"k8s.io/kubernetes/plugin/pkg/scheduler/factory"
"github.com/golang/glog"
)
// GCE instances can have up to 16 PD volumes attached.
const DefaultMaxGCEPDVolumes = 16
// getMaxVols checks the max PD volumes environment variable, otherwise returning a default value
func getMaxVols(defaultVal int) int {
if rawMaxVols := os.Getenv("KUBE_MAX_PD_VOLS"); rawMaxVols != "" {
if parsedMaxVols, err := strconv.Atoi(rawMaxVols); err != nil {
glog.Errorf("Unable to parse maxiumum PD volumes value, using default of %v: %v", defaultVal, err)
} else if parsedMaxVols <= 0 {
glog.Errorf("Maximum PD volumes must be a positive value, using default of %v", defaultVal)
} else {
return parsedMaxVols
}
}
return defaultVal
}
func init() {
factory.RegisterAlgorithmProvider(factory.DefaultProvider, defaultPredicates(), defaultPriorities())
// EqualPriority is a prioritizer function that gives an equal weight of one to all nodes
// Register the priority function so that its available
// but do not include it as part of the default priorities
factory.RegisterPriorityFunction("EqualPriority", scheduler.EqualPriority, 1)
// ServiceSpreadingPriority is a priority config factory that spreads pods by minimizing
// the number of pods (belonging to the same service) on the same node.
// Register the factory so that it's available, but do not include it as part of the default priorities
// Largely replaced by "SelectorSpreadPriority", but registered for backward compatibility with 1.0
factory.RegisterPriorityConfigFactory(
"ServiceSpreadingPriority",
factory.PriorityConfigFactory{
Function: func(args factory.PluginFactoryArgs) algorithm.PriorityFunction {
return priorities.NewSelectorSpreadPriority(args.PodLister, args.ServiceLister, algorithm.EmptyControllerLister{}, algorithm.EmptyReplicaSetLister{})
},
Weight: 1,
},
)
// PodFitsPorts has been replaced by PodFitsHostPorts for better user understanding.
// For backwards compatibility with 1.0, PodFitsPorts is regitered as well.
factory.RegisterFitPredicate("PodFitsPorts", predicates.PodFitsHostPorts)
// ImageLocalityPriority prioritizes nodes based on locality of images requested by a pod. Nodes with larger size
// of already-installed packages required by the pod will be preferred over nodes with no already-installed
// packages required by the pod or a small total size of already-installed packages required by the pod.
factory.RegisterPriorityFunction("ImageLocalityPriority", priorities.ImageLocalityPriority, 1)
// Fit is defined based on the absence of port conflicts.
// This predicate is actually a default predicate, because it is invoked from
// predicates.GeneralPredicates()
factory.RegisterFitPredicate("PodFitsHostPorts", predicates.PodFitsHostPorts)
// Fit is determined by resource availability.
// This predicate is actually a default predicate, because it is invoked from
// predicates.GeneralPredicates()
factory.RegisterFitPredicate("PodFitsResources", predicates.PodFitsResources)
// Fit is determined by the presence of the Host parameter and a string match
// This predicate is actually a default predicate, because it is invoked from
// predicates.GeneralPredicates()
factory.RegisterFitPredicate("HostName", predicates.PodFitsHost)
// Fit is determined by node selector query.
factory.RegisterFitPredicate("MatchNodeSelector", predicates.PodSelectorMatches)
}
func defaultPredicates() sets.String {
return sets.NewString(
// Fit is determined by non-conflicting disk volumes.
factory.RegisterFitPredicate("NoDiskConflict", predicates.NoDiskConflict),
// Fit is determined by volume zone requirements.
factory.RegisterFitPredicateFactory(
"NoVolumeZoneConflict",
func(args factory.PluginFactoryArgs) algorithm.FitPredicate {
return predicates.NewVolumeZonePredicate(args.PVInfo, args.PVCInfo)
},
),
// Fit is determined by whether or not there would be too many AWS EBS volumes attached to the node
factory.RegisterFitPredicateFactory(
"MaxEBSVolumeCount",
func(args factory.PluginFactoryArgs) algorithm.FitPredicate {
// TODO: allow for generically parameterized scheduler predicates, because this is a bit ugly
maxVols := getMaxVols(aws.DefaultMaxEBSVolumes)
return predicates.NewMaxPDVolumeCountPredicate(predicates.EBSVolumeFilter, maxVols, args.PVInfo, args.PVCInfo)
},
),
// Fit is determined by whether or not there would be too many GCE PD volumes attached to the node
factory.RegisterFitPredicateFactory(
"MaxGCEPDVolumeCount",
func(args factory.PluginFactoryArgs) algorithm.FitPredicate {
// TODO: allow for generically parameterized scheduler predicates, because this is a bit ugly
maxVols := getMaxVols(DefaultMaxGCEPDVolumes)
return predicates.NewMaxPDVolumeCountPredicate(predicates.GCEPDVolumeFilter, maxVols, args.PVInfo, args.PVCInfo)
},
),
// GeneralPredicates are the predicates that are enforced by all Kubernetes components
// (e.g. kubelet and all schedulers)
factory.RegisterFitPredicate("GeneralPredicates", predicates.GeneralPredicates),
)
}
func defaultPriorities() sets.String {
return sets.NewString(
// Prioritize nodes by least requested utilization.
factory.RegisterPriorityFunction("LeastRequestedPriority", priorities.LeastRequestedPriority, 1),
// Prioritizes nodes to help achieve balanced resource usage
factory.RegisterPriorityFunction("BalancedResourceAllocation", priorities.BalancedResourceAllocation, 1),
// spreads pods by minimizing the number of pods (belonging to the same service or replication controller) on the same node.
factory.RegisterPriorityConfigFactory(
"SelectorSpreadPriority",
factory.PriorityConfigFactory{
Function: func(args factory.PluginFactoryArgs) algorithm.PriorityFunction {
return priorities.NewSelectorSpreadPriority(args.PodLister, args.ServiceLister, args.ControllerLister, args.ReplicaSetLister)
},
Weight: 1,
},
),
factory.RegisterPriorityConfigFactory(
"NodeAffinityPriority",
factory.PriorityConfigFactory{
Function: func(args factory.PluginFactoryArgs) algorithm.PriorityFunction {
return priorities.NewNodeAffinityPriority(args.NodeLister)
},
Weight: 1,
},
),
)
}
|
/*
* Copyright 2017 Okta
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.okta.sdk.tests.it
import com.okta.sdk.client.Client
import com.okta.sdk.resource.ExtensibleResource
import com.okta.sdk.resource.Resource
import com.okta.sdk.resource.ResourceException
import com.okta.sdk.resource.group.Group
import com.okta.sdk.resource.group.GroupBuilder
import com.okta.sdk.resource.policy.PasswordPolicyPasswordSettings
import com.okta.sdk.resource.policy.PasswordPolicyPasswordSettingsAge
import com.okta.sdk.resource.policy.PasswordPolicyRule
import com.okta.sdk.resource.policy.PasswordPolicyRuleAction
import com.okta.sdk.resource.policy.PasswordPolicyRuleActions
import com.okta.sdk.resource.policy.PasswordPolicyRuleConditions
import com.okta.sdk.resource.policy.PasswordPolicySettings
import com.okta.sdk.resource.policy.PolicyNetworkCondition
import com.okta.sdk.resource.user.AuthenticationProviderType
import com.okta.sdk.resource.user.ChangePasswordRequest
import com.okta.sdk.resource.user.ForgotPasswordResponse
import com.okta.sdk.resource.user.PasswordCredential
import com.okta.sdk.resource.user.RecoveryQuestionCredential
import com.okta.sdk.resource.user.ResetPasswordToken
import com.okta.sdk.resource.user.Role
import com.okta.sdk.resource.user.TempPassword
import com.okta.sdk.resource.user.User
import com.okta.sdk.resource.user.UserBuilder
import com.okta.sdk.resource.user.UserCredentials
import com.okta.sdk.resource.user.UserList
import com.okta.sdk.tests.Scenario
import com.okta.sdk.tests.it.util.ITSupport
import org.testng.Assert
import org.testng.annotations.BeforeClass
import org.testng.annotations.Test
import java.time.Duration
import java.nio.charset.StandardCharsets
import java.security.MessageDigest
import java.util.stream.Collectors
import static com.okta.sdk.tests.it.util.Util.assertGroupTargetPresent
import static com.okta.sdk.tests.it.util.Util.assertNotPresent
import static com.okta.sdk.tests.it.util.Util.assertPresent
import static com.okta.sdk.tests.it.util.Util.expect
import static com.okta.sdk.tests.it.util.Util.validateGroup
import static com.okta.sdk.tests.it.util.Util.validateUser
import static org.hamcrest.MatcherAssert.assertThat
import static org.hamcrest.Matchers.*
/**
* Tests for /api/v1/users
* @since 0.5.0
*/
class UsersIT extends ITSupport implements CrudTestSupport {
@BeforeClass
void initCustomProperties() {
ensureCustomProperties()
}
@Test
void userProfileNumberValues() {
def email = "joe.coder+${uniqueTestName}@example.com"
User user = UserBuilder.instance()
.setEmail(email)
.setFirstName("Joe")
.setLastName("Code")
.setPassword("Password1".toCharArray())
.setSecurityQuestion("Favorite security question?")
.setSecurityQuestionAnswer("None of them!")
.putAllProfileProperties([
customNumber: 1.5d,
customBoolean: true,
customInteger: 123,
customStringArray: ["one", "two", "three"],
customNumberArray: [1.5d, 2.5d, 3.5d],
customIntegerArray: [1, 2, 3]
])
.buildAndCreate(getClient())
registerForCleanup(user)
// check the values after create
assertThat(user.getProfile().getString("firstName"), equalTo("Joe"))
assertThat(user.getProfile().getNumber("customNumber"), equalTo(1.5d))
assertThat(user.getProfile().getBoolean("customBoolean"), equalTo(true))
assertThat(user.getProfile().getInteger("customInteger"), equalTo(123))
assertThat(user.getProfile().getStringList("customStringArray"), equalTo(["one", "two", "three"]))
assertThat(user.getProfile().getNumberList("customNumberArray"), equalTo([1.5d, 2.5d, 3.5d]))
assertThat(user.getProfile().getIntegerList("customIntegerArray"), equalTo([1, 2, 3]))
// Use the 'get' to update the values to make sure there are no conversion issues
user.getProfile().putAll([
customNumber: user.getProfile().getNumber("customNumber"),
customBoolean: true,
customStringArray: user.getProfile().getStringList("customStringArray"),
customNumberArray: user.getProfile().getNumberList("customNumberArray"),
customIntegerArray: user.getProfile().getIntegerList("customIntegerArray")])
user.update()
// same check as before
assertThat(user.getProfile().getNumber("customNumber"), equalTo(1.5d))
assertThat(user.getProfile().getBoolean("customBoolean"), equalTo(true))
assertThat(user.getProfile().getInteger("customInteger"), equalTo(123))
assertThat(user.getProfile().getStringList("customStringArray"), equalTo(["one", "two", "three"]))
assertThat(user.getProfile().getNumberList("customNumberArray"), equalTo([1.5d, 2.5d, 3.5d]))
assertThat(user.getProfile().getIntegerList("customIntegerArray"), equalTo([1, 2, 3]))
// test again but null out all of the values
user.getProfile().remove("customNumber")
user.getProfile().remove("customBoolean")
user.getProfile().remove("customInteger")
user.getProfile().remove("customStringArray")
user.getProfile().remove("customNumberArray")
user.getProfile().remove("customIntegerArray")
user.update()
// everything should be null
assertThat(user.getProfile().getNumber("customNumber"), nullValue())
assertThat(user.getProfile().getBoolean("customBoolean"), nullValue())
assertThat(user.getProfile().getInteger("customInteger"), nullValue())
assertThat(user.getProfile().getStringList("customStringArray"), nullValue())
assertThat(user.getProfile().getNumberList("customNumberArray"), nullValue())
assertThat(user.getProfile().getIntegerList("customIntegerArray"), nullValue())
}
@Override
def create(Client client) {
def email = "joe.coder+${uniqueTestName}@example.com"
User user = UserBuilder.instance()
.setEmail(email)
.setFirstName("Joe")
.setLastName("Code")
.setPassword("Password1".toCharArray())
.setSecurityQuestion("Favorite security question?")
.setSecurityQuestionAnswer("None of them!")
.buildAndCreate(client)
registerForCleanup(user)
return user
}
@Override
def read(Client client, String id) {
return client.getUser(id)
}
@Override
void update(Client client, def user) {
user.getProfile().lastName = "Coder"
user.update()
}
@Override
void assertUpdate(Client client, Object resource) {
assertThat resource.getProfile().lastName, equalTo("Coder")
}
@Override
Iterator getResourceCollectionIterator(Client client) {
return client.listUsers().iterator()
}
@Test
@Scenario("user-activate")
void userActivateTest() {
def password = 'Passw0rd!2@3#'
def firstName = 'John'
def lastName = 'Activate'
def email = "john-activate=${uniqueTestName}@example.com"
// 1. Create a user
User user = UserBuilder.instance()
.setEmail(email)
.setFirstName(firstName)
.setLastName(lastName)
.setPassword(password.toCharArray())
.setActive(false)
.buildAndCreate(client)
registerForCleanup(user)
validateUser(user, firstName, lastName, email)
// 2. Activate the user and verify user in list of active users
user.activate(false)
UserList users = client.listUsers(null, 'status eq \"ACTIVE\"', null, null, null)
assertPresent(users, user)
}
@Test(enabled = false)
@Scenario("user-role-assign")
void roleAssignTest() {
def password = 'Passw0rd!2@3#'
def firstName = 'John'
def lastName = 'Role'
def email = "john-${uniqueTestName}@example.com"
// 1. Create a user
User user = UserBuilder.instance()
.setEmail(email)
.setFirstName(firstName)
.setLastName(lastName)
.setPassword(password.toCharArray())
.setActive(true)
.buildAndCreate(client)
registerForCleanup(user)
validateUser(user, firstName, lastName, email)
// 2. Assign USER_ADMIN role to the user
Role role = user.addRole(client.instantiate(Role)
.setType('USER_ADMIN'))
// 3. List roles for the user and verify added role
assertPresent(user.listRoles(), role)
// 4. Remove role for the user
user.removeRole(role.getId())
// 5. List roles for user and verify role was removed
assertNotPresent(user.listRoles(), role)
}
@Test
@Scenario("user-change-password")
void changePasswordTest() {
def password = 'Passw0rd!2@3#'
def firstName = 'John'
def lastName = 'Change-Password'
def email = "john-${uniqueTestName}@example.com"
// 1. Create a user
User user = UserBuilder.instance()
.setEmail(email)
.setFirstName(firstName)
.setLastName(lastName)
.setPassword(password.toCharArray())
.setActive(true)
.buildAndCreate(client)
registerForCleanup(user)
validateUser(user, firstName, lastName, email)
// 2. Change the user's password
UserCredentials credentials = user.changePassword(client.instantiate(ChangePasswordRequest)
.setOldPassword(client.instantiate(PasswordCredential).setValue('Passw0rd!2@3#'.toCharArray()))
.setNewPassword(client.instantiate(PasswordCredential).setValue('!2@3#Passw0rd'.toCharArray())), true)
assertThat credentials.getProvider().getType(), equalTo(AuthenticationProviderType.OKTA)
// 3. make the test recording happy, and call a get on the user
// TODO: fix har file
client.getUser(user.getId())
}
@Test
void changeStrictPasswordTest() {
def password = 'Passw0rd!2@3#'
def firstName = 'John'
def lastName = 'Change-Password'
def email = "john-${uniqueTestName}@example.com"
def group = randomGroup()
def policy = randomPasswordPolicy(group.getId())
policy.setSettings(client.instantiate(PasswordPolicySettings)
.setPassword(client.instantiate(PasswordPolicyPasswordSettings)
.setAge(client.instantiate(PasswordPolicyPasswordSettingsAge)
.setMinAgeMinutes(Duration.ofDays(2L).toMinutes() as int))))
.update()
def policyRuleName = "policyRule+" + UUID.randomUUID().toString()
PasswordPolicyRule policyRule = policy.createRule(client.instantiate(PasswordPolicyRule)
.setConditions(client.instantiate(PasswordPolicyRuleConditions)
.setNetwork(client.instantiate(PolicyNetworkCondition)
.setConnection(PolicyNetworkCondition.ConnectionEnum.ANYWHERE)))
.setActions(client.instantiate(PasswordPolicyRuleActions)
.setPasswordChange(client.instantiate(PasswordPolicyRuleAction)
.setAccess(PasswordPolicyRuleAction.AccessEnum.ALLOW))
.setSelfServicePasswordReset(client.instantiate(PasswordPolicyRuleAction)
.setAccess(PasswordPolicyRuleAction.AccessEnum.ALLOW))
.setSelfServiceUnlock(client.instantiate(PasswordPolicyRuleAction)
.setAccess(PasswordPolicyRuleAction.AccessEnum.DENY)))
.setName(policyRuleName))
registerForCleanup(policyRule)
// 1. Create a user
User user = UserBuilder.instance()
.setEmail(email)
.setFirstName(firstName)
.setLastName(lastName)
.setPassword(password.toCharArray())
.setActive(true)
.setGroups(group.getId())
.buildAndCreate(client)
registerForCleanup(user)
validateUser(user, firstName, lastName, email)
// 2. Change the user's password
def request = client.instantiate(ChangePasswordRequest)
.setOldPassword(client.instantiate(PasswordCredential).setValue('Passw0rd!2@3#'.toCharArray()))
.setNewPassword(client.instantiate(PasswordCredential).setValue('!2@3#Passw0rd'.toCharArray()))
def exception = expect ResourceException, {user.changePassword(request, true)}
assertThat exception.getMessage(), containsString("E0000014") // Update of credentials failed.
def credentials = user.changePassword(request, false)
assertThat credentials.getProvider().getType(), equalTo(AuthenticationProviderType.OKTA)
// 3. make the test recording happy, and call a get on the user
// TODO: fix har file
client.getUser(user.getId())
}
@Test
@Scenario("user-change-recovery-question")
void changeRecoveryQuestionTest() {
def password = 'Passw0rd!2@3#'
def firstName = 'John'
def lastName = 'Change-Recovery-Question'
def email = "john-${uniqueTestName}@example.com"
// 1. Create a user with password & recovery question
User user = UserBuilder.instance()
.setEmail(email)
.setFirstName(firstName)
.setLastName(lastName)
.setPassword(password.toCharArray())
.setActive(true)
.buildAndCreate(client)
registerForCleanup(user)
validateUser(user, firstName, lastName, email)
// 2. Change the recovery question
UserCredentials userCredentials = user.changeRecoveryQuestion(client.instantiate(UserCredentials)
.setPassword(client.instantiate(PasswordCredential)
.setValue('Passw0rd!2@3#'.toCharArray()))
.setRecoveryQuestion(client.instantiate(RecoveryQuestionCredential)
.setQuestion('How many roads must a man walk down?')
.setAnswer('forty two')))
assertThat userCredentials.getProvider().getType(), equalTo(AuthenticationProviderType.OKTA)
assertThat userCredentials.getRecoveryQuestion().question, equalTo('How many roads must a man walk down?')
// 3. Update the user password through updated recovery question
userCredentials.getPassword().value = '!2@3#Passw0rd'.toCharArray()
userCredentials.getRecoveryQuestion().answer = 'forty two'
ForgotPasswordResponse response = user.forgotPassword(null, userCredentials)
assertThat response.getResetPasswordUrl(), nullValue()
// 4. make the test recording happy, and call a get on the user
// TODO: fix har file
client.getUser(user.getId())
}
@Test (groups = "bacon")
void forgotPasswordTest() {
def password = 'Passw0rd!2@3#'
def firstName = 'John'
def lastName = 'Forgot-Password'
def email = "john-${uniqueTestName}@example.com"
// 1. Create a user
User user = UserBuilder.instance()
.setEmail(email)
.setFirstName(firstName)
.setLastName(lastName)
.setPassword(password.toCharArray())
.setActive(true)
.buildAndCreate(client)
registerForCleanup(user)
validateUser(user, firstName, lastName, email)
ForgotPasswordResponse response = user.forgotPassword(false, null)
assertThat response.getResetPasswordUrl(), containsString("/reset-password/")
}
@Test
@Scenario("user-expire-password")
void expirePasswordTest() {
def password = 'Passw0rd!2@3#'
def firstName = 'John'
def lastName = 'Expire-Password'
def email = "john-${uniqueTestName}@example.com"
// 1. Create a user
User user = UserBuilder.instance()
.setEmail(email)
.setFirstName(firstName)
.setLastName(lastName)
.setPassword(password.toCharArray())
.setActive(true)
.buildAndCreate(client)
registerForCleanup(user)
validateUser(user, firstName, lastName, email)
// 2. Expire the user's password with tempPassword=true
TempPassword tempPassword = user.expirePassword(true)
assertThat tempPassword.getTempPassword(), notNullValue()
}
@Test
@Scenario("user-get-reset-password-url")
void resetPasswordUrlTest() {
def password = 'Passw0rd!2@3#'
def firstName = 'John'
def lastName = 'Get-Reset-Password-URL'
def email = "john-${uniqueTestName}@example.com"
// 1. Create a user
User user = UserBuilder.instance()
.setEmail(email)
.setFirstName(firstName)
.setLastName(lastName)
.setPassword(password.toCharArray())
.setActive(true)
.buildAndCreate(client)
registerForCleanup(user)
validateUser(user, firstName, lastName, email)
// 2. Get the reset password link
ResetPasswordToken token = user.resetPassword(null, false)
assertThat token.getResetPasswordUrl(), notNullValue()
}
@Test
@Scenario("user-get")
void getUserTest() {
def password = 'Passw0rd!2@3#'
def firstName = 'John'
def lastName = 'Get-User'
def email = "john-${uniqueTestName}@example.com"
// 1. Create a user
User createUser = UserBuilder.instance()
.setEmail(email)
.setFirstName(firstName)
.setLastName(lastName)
.setPassword(password.toCharArray())
.setActive(false)
.buildAndCreate(client)
registerForCleanup(createUser)
validateUser(createUser, firstName, lastName, email)
// 2. Get the user by user ID
User user = client.getUser(createUser.getId())
validateUser(user, firstName, lastName, email)
// 3. Get the user by user login
User userByLogin = client.getUser(createUser.getProfile().getLogin())
validateUser(userByLogin, firstName, lastName, email)
// 3. delete the user
user.deactivate()
user.delete()
// 4. get user expect 404
expect(ResourceException) {
client.getUser(email)
}
}
@Test(enabled = false)
@Scenario("user-group-target-role")
void groupTargetRoleTest() {
def password = 'Passw0rd!2@3#'
def firstName = 'John'
def lastName = 'Group-Target'
def email = "john-${uniqueTestName}@example.com"
def groupName = "Group-Target Test Group ${uniqueTestName}"
// 1. Create a user
User user = UserBuilder.instance()
.setEmail(email)
.setFirstName(firstName)
.setLastName(lastName)
.setPassword(password.toCharArray())
.setActive(false)
.buildAndCreate(client)
registerForCleanup(user)
validateUser(user, firstName, lastName, email)
Group group = GroupBuilder.instance()
.setName(groupName)
.buildAndCreate(client)
registerForCleanup(group)
validateGroup(group, groupName)
// 2. Assign USER_ADMIN role to the user
Role role = user.addRole(client.instantiate(Role)
.setType('USER_ADMIN'))
// 3. Add Group Target to User Admin Role
user.addGroupTargetToRole(role.id, group.id)
// 4. List Group Targets for Role
assertGroupTargetPresent(user, group, role)
// 5. Remove Group Target from Admin User Role and verify removed
// Note: Don’t remove the last group target from a role assignment, as this causes an exception.
// To get around this, create a new group and add this group target to user admin role
def adminGroupName = "Group-Target User Admin Test Group ${uniqueTestName}"
deleteGroup(adminGroupName, client)
Group adminGroup = GroupBuilder.instance()
.setName(adminGroupName)
.buildAndCreate(client)
registerForCleanup(adminGroup)
validateGroup(adminGroup, adminGroupName)
user.addGroupTargetToRole(role.getId(), adminGroup.getId())
user.removeGroupTargetFromRole(role.getId(), adminGroup.getId())
assertGroupTargetPresent(user, group, role)
}
@Test
@Scenario("user-profile-update")
void userProfileUpdate() {
def password = 'Passw0rd!2@3#'
def firstName = 'John'
def lastName = 'Profile-Update'
def email = "john-${uniqueTestName}@example.com"
// 1. Create a user
User user = UserBuilder.instance()
.setEmail(email)
.setFirstName(firstName)
.setLastName(lastName)
.setPassword(password.toCharArray())
.setActive(false)
.buildAndCreate(client)
registerForCleanup(user)
validateUser(user, firstName, lastName, email)
def originalLastUpdated = user.lastUpdated
// 2. Update the user profile and verify that profile was updated
// Need to wait 1 second here as that is the minimum time resolution of the 'lastUpdated' field
sleep(1000)
user.getProfile().put("nickName", "Batman")
user.update()
assertThat(user.lastUpdated, greaterThan(originalLastUpdated))
User updatedUser = client.getUser(user.getId())
assertThat(updatedUser.getProfile().get("nickName"), equalTo("Batman"))
}
@Test
@Scenario("user-suspend")
void userSuspendTest() {
def password = 'Passw0rd!2@3#'
def firstName = 'John'
def lastName = 'Suspend'
def email = "john-${uniqueTestName}@example.com"
// 1. Create a user
User user = UserBuilder.instance()
.setEmail(email)
.setFirstName(firstName)
.setLastName(lastName)
.setPassword(password.toCharArray())
.setActive(true)
.buildAndCreate(client)
registerForCleanup(user)
validateUser(user, firstName, lastName, email)
// 2. Suspend the user and verify user in list of suspended users
user.suspend()
assertPresent(client.listUsers(null, 'status eq \"SUSPENDED\"', null, null, null), user)
// 3. Unsuspend the user and verify user in list of active users
user.unsuspend()
assertPresent(client.listUsers(null, 'status eq \"ACTIVE\"', null, null, null), user)
}
@Test
void getUserInvalidUserId() {
try {
def userId = "invalid-user-id-${uniqueTestName}@example.com"
getClient().getUser(userId)
Assert.fail("Expected ResourceException")
} catch(ResourceException e) {
assertThat e.getStatus(), equalTo(404)
}
}
@Test
void getUserNullUserId() {
try {
getClient().getUser(null)
Assert.fail("Expected IllegalArgumentException")
} catch(IllegalArgumentException e) {
assertThat e.getMessage(), allOf(containsString("userId"), containsString("required"))
}
}
@Test
void getUserEmptyUserId() {
try {
getClient().getUser("")
Assert.fail("Expected IllegalArgumentException")
} catch(IllegalArgumentException e) {
assertThat e.getMessage(), allOf(containsString("userId"), containsString("required"))
}
}
@Test
void createUserWithGroups() {
def groupName = "Group-to-Assign-${uniqueTestName}"
def password = 'Passw0rd!2@3#'
def firstName = 'John'
def lastName = 'Create-User-With-Group'
def email = "john-${uniqueTestName}@example.com"
// 1. Create group
Group group = GroupBuilder.instance()
.setName(groupName)
.buildAndCreate(client)
registerForCleanup(group)
validateGroup(group, groupName)
// 2. Create a user
User createUser = UserBuilder.instance()
.setEmail(email)
.setFirstName(firstName)
.setLastName(lastName)
.setPassword(password.toCharArray())
.setActive(false)
.addGroup(group.getId())
.buildAndCreate(client)
registerForCleanup(createUser)
validateUser(createUser, firstName, lastName, email)
List<Group> groups = createUser.listGroups().stream().collect(Collectors.toList())
assertThat groups, allOf(hasSize(2))
assertThat groups.get(0).getProfile().name, equalTo("Everyone")
assertThat groups.get(1).getId(), equalTo(group.id)
}
@Test
void setUserPasswordWithoutReset() {
def user = randomUser()
def userId = user.getId()
Resource userPasswordRequest = client.instantiate(ExtensibleResource)
userPasswordRequest.put("credentials", client.instantiate(ExtensibleResource)
.put("password", client.instantiate(ExtensibleResource)
.put("value", "aPassword1!".toCharArray())))
Resource result = client.getDataStore().http()
.setBody(userPasswordRequest)
.addQueryParameter("key1", "value1")
.addQueryParameter("key2", "value2")
.post("/api/v1/users/"+ userId, User.class)
assertThat(result, instanceOf(User))
}
@Test
void importUserWithSha512Password() {
def salt = "aSalt"
def hashedPassword = hashPassword("aPassword", salt)
def email = "joe.coder+${uniqueTestName}@example.com"
User user = UserBuilder.instance()
.setEmail(email)
.setFirstName("Joe")
.setLastName("Code")
.setSha512PasswordHash(hashedPassword, salt, "PREFIX")
.buildAndCreate(getClient())
registerForCleanup(user)
assertThat user.getCredentials(), notNullValue()
assertThat user.getCredentials().getProvider().getType(), is(AuthenticationProviderType.IMPORT)
}
private void ensureCustomProperties() {
def userSchemaUri = "/api/v1/meta/schemas/user/default"
ExtensibleResource userSchema = getClient().http().get(userSchemaUri, ExtensibleResource)
Map customProperties = userSchema.get("definitions").get("custom").get("properties")
boolean needsUpdate =
ensureCustomProperty("customNumber", [type: "number"], customProperties) &&
ensureCustomProperty("customBoolean", [type: "boolean"], customProperties) &&
ensureCustomProperty("customInteger", [type: "integer"], customProperties) &&
ensureCustomProperty("customStringArray", [type: "array", items: [type: "string"]], customProperties) &&
ensureCustomProperty("customNumberArray", [type: "array", items: [type: "number"]], customProperties) &&
ensureCustomProperty("customIntegerArray", [type: "array", items: [type: "integer"]], customProperties)
if (needsUpdate) {
getClient().http()
.setBody(userSchema)
.post(userSchemaUri, ExtensibleResource)
}
}
private static boolean ensureCustomProperty(String name, Map body, Map<String, Object> customProperties) {
boolean addProperty = !customProperties.containsKey(name)
if (addProperty) {
body.putAll([
title: name
])
customProperties.put(name, body)
}
return addProperty
}
private String hashPassword(String password, String salt) {
def messageDigest = MessageDigest.getInstance("SHA-512")
messageDigest.update(salt.getBytes(StandardCharsets.UTF_8))
def bytes = messageDigest.digest(password.getBytes(StandardCharsets.UTF_8))
return Base64.getEncoder().encodeToString(bytes)
}
}
|
'*************************************************************'
' Author : An Pham Ngoc (IT) '
' Mail : phamngocanthi@yahoo.com, phamngocanthi@gmail.com '
' Gender : Male '
' Age : 1982 '
' National : VietNam '
' Jobtitle : HCM '
' District : 7 '
'*************************************************************'
Imports vb = Microsoft.VisualBasic
Imports libraryPNA.clsSystem
Imports libraryPNA.clsMessage
Imports DevExpress.XtraGrid.Columns
Public Class frmHRLevel
'Public intLang As Integer = 1
'Public strExtension As String = ""
'Public intButton As Integer = 0
'Public intIndexTable1 = 0
'Public intTotalRow As Integer = 0
'Private Sub frmHRLevel_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' clsHRLevel.LoadForm(Me)
'End Sub
''Menu
'Private Sub mnuVietnameseEnglish_ItemClick(ByVal sender As System.Object, ByVal e As DevExpress.XtraBars.ItemClickEventArgs)
' If itemVietnameseEnglish.Caption <> "English" Then
' clsHRLevel.LoadLang(Me, 1)
' Else
' clsHRLevel.LoadLang(Me, 2)
' End If
'End Sub
'Private Sub mnuRefesh_ItemClick(ByVal sender As System.Object, ByVal e As DevExpress.XtraBars.ItemClickEventArgs)
' clsHRLevel.RefeshDatabase(Me)
'End Sub
'Private Sub mnuAdd_ItemClick(ByVal sender As System.Object, ByVal e As DevExpress.XtraBars.ItemClickEventArgs)
' clsHRLevel.ItemAdd(Me)
'End Sub
'Private Sub mnuDelete_ItemClick(ByVal sender As System.Object, ByVal e As DevExpress.XtraBars.ItemClickEventArgs)
' clsHRLevel.ItemDelete(Me)
'End Sub
'Private Sub mnuUpdate_ItemClick(ByVal sender As System.Object, ByVal e As DevExpress.XtraBars.ItemClickEventArgs)
' clsHRLevel.ItemEdit(Me)
'End Sub
'Private Sub mnuSave_ItemClick(ByVal sender As System.Object, ByVal e As DevExpress.XtraBars.ItemClickEventArgs)
' clsHRLevel.ItemSave(Me)
'End Sub
''Toolbar
'Private Sub btnVietnameseEnglish_ItemClick(ByVal sender As System.Object, ByVal e As DevExpress.XtraBars.ItemClickEventArgs)
' If itemVietnameseEnglish.Caption <> "English" Then
' clsHRLevel.LoadLang(Me, 1)
' Else
' clsHRLevel.LoadLang(Me, 2)
' End If
'End Sub
'Private Sub btnRefesh_ItemClick(ByVal sender As System.Object, ByVal e As DevExpress.XtraBars.ItemClickEventArgs)
' clsHRLevel.RefeshDatabase(Me)
'End Sub
'Private Sub btnAdd_ItemClick(ByVal sender As System.Object, ByVal e As DevExpress.XtraBars.ItemClickEventArgs)
' clsHRLevel.ItemAdd(Me)
'End Sub
'Private Sub gridViewtable1_InitNewRow(ByVal sender As Object, ByVal e As DevExpress.XtraGrid.Views.Grid.InitNewRowEventArgs)
' Dim row As DataRow = gridViewtable1.GetDataRow(e.RowHandle)
' row("IDLevel") = txtIDLevel.Text.Trim
' row("LevelName") = txtName.Text.Trim
' row("Description") = txtDescription.Text.Trim
' gridViewtable1.RefreshRow(gridViewtable1.FocusedRowHandle)
'End Sub
'Private Sub btnDelete_ItemClick(ByVal sender As System.Object, ByVal e As DevExpress.XtraBars.ItemClickEventArgs)
' clsHRLevel.ItemDelete(Me)
'End Sub
'Private Sub btnUpdate_ItemClick(ByVal sender As System.Object, ByVal e As DevExpress.XtraBars.ItemClickEventArgs)
' clsHRLevel.ItemEdit(Me)
'End Sub
'Private Sub btnSave_ItemClick(ByVal sender As System.Object, ByVal e As DevExpress.XtraBars.ItemClickEventArgs)
' clsHRLevel.ItemSave(Me)
'End Sub
'Private Sub btnUndo_ItemClick(ByVal sender As System.Object, ByVal e As DevExpress.XtraBars.ItemClickEventArgs)
' clsHRLevel.Undo(Me)
'End Sub
''Submenu
'Private Sub itemVietnameseEnglish_LinkClicked(ByVal sender As System.Object, ByVal e As DevExpress.XtraNavBar.NavBarLinkEventArgs)
' If itemVietnameseEnglish.Caption <> "English" Then
' clsHRLevel.LoadLang(Me, 1)
' Else
' clsHRLevel.LoadLang(Me, 2)
' End If
'End Sub
'Private Sub itemRefesh_LinkClicked(ByVal sender As System.Object, ByVal e As DevExpress.XtraNavBar.NavBarLinkEventArgs)
' clsHRLevel.RefeshDatabase(Me)
'End Sub
'Private Sub itemAdd_LinkClicked(ByVal sender As System.Object, ByVal e As DevExpress.XtraNavBar.NavBarLinkEventArgs)
' clsHRLevel.ItemAdd(Me)
'End Sub
'Private Sub itemDelete_LinkClicked(ByVal sender As System.Object, ByVal e As DevExpress.XtraNavBar.NavBarLinkEventArgs)
' clsHRLevel.ItemDelete(Me)
'End Sub
'Private Sub itemUpdate_LinkClicked(ByVal sender As System.Object, ByVal e As DevExpress.XtraNavBar.NavBarLinkEventArgs)
' clsHRLevel.ItemEdit(Me)
'End Sub
'Private Sub itemSave_LinkClicked(ByVal sender As System.Object, ByVal e As DevExpress.XtraNavBar.NavBarLinkEventArgs)
' clsHRLevel.ItemSave(Me)
'End Sub
''Center
'Private Sub gridViewtable1_DoubleClick(ByVal sender As System.Object, ByVal e As System.EventArgs)
' If itemSave.Enabled Then Exit Sub
' intIndexTable1 = gridViewtable1.GetSelectedRows()(0)
' clsHRLevel.getRowGrid1(Me)
'End Sub
'Private Sub txtSearch_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs)
' If e.KeyCode = Windows.Forms.Keys.Enter Then
' clsHRCity.ItemSearch(Me)
' End If
'End Sub
'Private Sub btnSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
' clsHRLevel.ItemSearch(Me)
'End Sub
'Private Sub gridControlTable2_DoubleClick(ByVal sender As System.Object, ByVal e As System.EventArgs)
' clsHRLevel.getRowGrid2(Me)
'End Sub
End Class |
{
"compression": 2,
"volume": 1.0,
"preload": true,
"bitRate": 128,
"sampleRate": 44100,
"type": 0,
"bitDepth": 1,
"audioGroupId": {
"name": "audiogroup_default",
"path": "audiogroups/audiogroup_default",
},
"soundFile": "snd_retrieve",
"duration": 0.817698,
"parent": {
"name": "Menu",
"path": "folders/Sounds/Menu.yy",
},
"resourceVersion": "1.0",
"name": "snd_retrieve",
"tags": [],
"resourceType": "GMSound",
} |
(* Copyright (C) 2013 Matthew Fluet.
* Copyright (C) 2004-2007 Henry Cejtin, Matthew Fluet, Suresh
* Jagannathan, and Stephen Weeks.
*
* MLton is released under a HPND-style license.
* See the file MLton-LICENSE for details.
*)
(* Required signatures *)
signature ARRAY = ARRAY
signature ARRAY_SLICE = ARRAY_SLICE
signature BIN_IO = BIN_IO
signature BOOL = BOOL
signature BYTE = BYTE
signature CHAR = CHAR
signature COMMAND_LINE = COMMAND_LINE
signature DATE = DATE
signature GENERAL = GENERAL
signature IEEE_REAL = IEEE_REAL
signature IMPERATIVE_IO = IMPERATIVE_IO
signature INTEGER = INTEGER
signature INT_INF = INT_INF
signature IO = IO
signature LIST = LIST
signature LIST_PAIR = LIST_PAIR
signature MATH = MATH
signature MONO_ARRAY = MONO_ARRAY
signature MONO_ARRAY_SLICE = MONO_ARRAY_SLICE
signature MONO_VECTOR = MONO_VECTOR
signature MONO_VECTOR_SLICE = MONO_VECTOR_SLICE
signature OPTION = OPTION
signature OS = OS
signature OS_FILE_SYS = OS_FILE_SYS
signature OS_IO = OS_IO
signature OS_PATH = OS_PATH
signature OS_PROCESS = OS_PROCESS
signature PRIM_IO = PRIM_IO
signature REAL = REAL
signature STREAM_IO = STREAM_IO
signature STRING = STRING
signature STRING_CVT = STRING_CVT
signature SUBSTRING = SUBSTRING
signature TEXT = TEXT
signature TEXT_IO = TEXT_IO
signature TEXT_STREAM_IO = TEXT_STREAM_IO
signature TIME = TIME
signature TIMER = TIMER
signature VECTOR = VECTOR
signature VECTOR_SLICE = VECTOR_SLICE
signature WORD = WORD
(* Optional signatures *)
signature ARRAY2 = ARRAY2
signature BIT_FLAGS = BIT_FLAGS
signature GENERIC_SOCK = GENERIC_SOCK
signature INET_SOCK = INET_SOCK
signature INT_INF = INT_INF
signature MONO_ARRAY2 = MONO_ARRAY2
signature NET_HOST_DB = NET_HOST_DB
signature NET_PROT_DB = NET_PROT_DB
signature NET_SERV_DB = NET_SERV_DB
signature PACK_REAL = PACK_REAL
signature PACK_WORD = PACK_WORD
signature POSIX = POSIX
signature POSIX_ERROR = POSIX_ERROR
signature POSIX_FILE_SYS = POSIX_FILE_SYS
signature POSIX_IO = POSIX_IO
signature POSIX_PROC_ENV = POSIX_PROC_ENV
signature POSIX_PROCESS = POSIX_PROCESS
signature POSIX_SIGNAL = POSIX_SIGNAL
signature POSIX_SYS_DB = POSIX_SYS_DB
signature POSIX_TTY = POSIX_TTY
signature SOCKET = SOCKET
signature UNIX = UNIX
signature UNIX_SOCK = UNIX_SOCK
(*
signature WINDOWS = WINDOWS
*)
(* Non-standard signatures *)
signature PRIM_IO_ARG = PRIM_IO_ARG
signature STREAM_IO_ARG = STREAM_IO_ARG
signature IMPERATIVE_IO_ARG = IMPERATIVE_IO_ARG
signature SML90 = SML90
signature MLTON = MLTON
signature MLTON_ARRAY = MLTON_ARRAY
signature MLTON_BIN_IO = MLTON_BIN_IO
signature MLTON_CONT = MLTON_CONT
signature MLTON_EXN = MLTON_EXN
signature MLTON_FINALIZABLE = MLTON_FINALIZABLE
signature MLTON_GC = MLTON_GC
signature MLTON_INT_INF = MLTON_INT_INF
signature MLTON_IO = MLTON_IO
signature MLTON_ITIMER = MLTON_ITIMER
signature MLTON_MONO_ARRAY = MLTON_MONO_ARRAY
signature MLTON_MONO_VECTOR = MLTON_MONO_VECTOR
signature MLTON_PLATFORM = MLTON_PLATFORM
signature MLTON_POINTER = MLTON_POINTER
signature MLTON_PROC_ENV = MLTON_PROC_ENV
signature MLTON_PROCESS = MLTON_PROCESS
signature MLTON_PROFILE = MLTON_PROFILE
signature MLTON_RANDOM = MLTON_RANDOM
signature MLTON_REAL = MLTON_REAL
signature MLTON_RLIMIT = MLTON_RLIMIT
signature MLTON_RUSAGE = MLTON_RUSAGE
signature MLTON_SIGNAL = MLTON_SIGNAL
signature MLTON_SYSLOG = MLTON_SYSLOG
signature MLTON_TEXT_IO = MLTON_TEXT_IO
signature MLTON_THREAD = MLTON_THREAD
signature MLTON_VECTOR = MLTON_VECTOR
signature MLTON_WEAK = MLTON_WEAK
signature MLTON_WORD = MLTON_WORD
signature MLTON_WORLD = MLTON_WORLD
signature SML_OF_NJ = SML_OF_NJ
signature UNSAFE = UNSAFE
|
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.Recommendations.Declarations
Public Class EndBlockKeywordRecommenderTests
Inherits RecommenderTests
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndSubInBrokenMethodBodyTest()
VerifyRecommendationsContain(<ClassDeclaration>Sub Goo()
|</ClassDeclaration>, "End Sub")
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub NotAfterCompletedMethodBodyTest()
VerifyRecommendationsMissing(<ClassDeclaration>
Sub Goo()
End Sub
|</ClassDeclaration>, "End")
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub NotAfterMustOverrideMethodDeclaration1Test()
VerifyRecommendationsMissing(<ClassDeclaration>
MustOverride Sub Goo()
|</ClassDeclaration>, "End")
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub NotAfterMustOverrideMethodDeclaration2Test()
VerifyRecommendationsMissing(<ClassDeclaration>
MustOverride Sub Goo()
|</ClassDeclaration>, "End Sub")
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndPropertyAfterIncompleteProperty1Test()
VerifyRecommendationsContain(<ClassDeclaration>Property goo As Integer
Get
End Get
Set(value As Integer)
End Set
|</ClassDeclaration>, "End Property")
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndPropertyAfterIncompleteProperty2Test()
VerifyRecommendationsContain(<ClassDeclaration>Property goo As Integer
Get
End Get
Set(value As Integer)
End Set
End |</ClassDeclaration>, "Property")
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndSubInLambdaTest()
VerifyRecommendationsContain(<MethodBody>Dim goo = Sub()
|</MethodBody>, "End Sub")
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndIfInMethodBody1Test()
VerifyRecommendationsContain(<MethodBody>If True Then
|</MethodBody>, "End", "End If")
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndIfInMethodBody2Test()
VerifyRecommendationsContain(<MethodBody>If True Then
End |</MethodBody>, "If")
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndWithInMethodBodyTest()
VerifyRecommendationsContain(<MethodBody>With goo
|</MethodBody>, "End With")
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndWhileInMethodBodyTest()
VerifyRecommendationsContain(<MethodBody>While goo
|</MethodBody>, "End While")
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndSelectInMethodBody1Test()
VerifyRecommendationsContain(<MethodBody>Select goo
|</MethodBody>, "End Select")
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndSelectInMethodBody2Test()
VerifyRecommendationsContain(<MethodBody>Select goo
Case 1
|</MethodBody>, "End Select")
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndSelectInMethodBody3Test()
VerifyRecommendationsContain(<MethodBody>Select goo
Case 1
Case Else
|</MethodBody>, "End Select")
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndSyncLockInMethodBodyTest()
VerifyRecommendationsContain(<MethodBody>SyncLock goo
|</MethodBody>, "End SyncLock")
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndModuleInFile1Test()
VerifyRecommendationsContain(<File>Module Goo
|</File>, {"End Module"})
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndModuleInFile2Test()
VerifyRecommendationsContain(<File>
Module Goo
End |</File>, "Module")
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndInterfaceInFile1Test()
VerifyRecommendationsContain(<File>Interface IGoo
|</File>, {"End Interface"})
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndInterfaceInFile2Test()
VerifyRecommendationsContain(<File>
Interface IGoo
End |</File>, "Interface")
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndClassInFile1Test()
VerifyRecommendationsContain(<File>Class Goo
|</File>, {"End Class"})
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndClassInFile2Test()
VerifyRecommendationsContain(<File>
Class Goo
End |</File>, "Class")
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndStructureInFile1Test()
VerifyRecommendationsContain(<File>Structure Goo
|</File>, {"End Structure"})
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndStructureInFile2Test()
VerifyRecommendationsContain(<File>
Structure Goo
End |</File>, "Structure")
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndEnumInFile1Test()
VerifyRecommendationsContain(<File>Enum Goo
|</File>, {"End Enum"})
End Sub
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndEnumInFile2Test()
VerifyRecommendationsContain(<File>
Enum Goo
End |</File>, "Enum")
End Sub
<WorkItem(539311, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539311")>
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndBlockMissingInPreprocessorTest()
VerifyRecommendationsMissing(
<ClassDeclaration>
Module M
Sub Goo()
#If t|
End Sub
End Module
</ClassDeclaration>, {"End Module", "End Sub"})
End Sub
<WorkItem(540069, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540069")>
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndSubSuggestFunctionTest()
VerifyRecommendationsContain(<ClassDeclaration>Sub Goo()
End |</ClassDeclaration>, "Function", "Sub")
End Sub
<WorkItem(540069, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540069")>
<WorkItem(530599, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530599")>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
<Fact>
Public Sub EndFunctionDoesNotSuggestEndSubTest()
VerifyRecommendationsMissing(<ClassDeclaration>Function Goo()
|</ClassDeclaration>, "End Sub")
End Sub
<WorkItem(540069, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540069")>
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndFunctionSuggestSubTest()
VerifyRecommendationsContain(<ClassDeclaration>Function Goo()
End |</ClassDeclaration>, "Function", "Sub")
End Sub
<WorkItem(540069, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540069")>
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndSubNotClassSuggestedTest()
VerifyRecommendationsMissing(<ClassDeclaration>Sub Goo()
|</ClassDeclaration>, "End Class", "End Module", "End Structure", "End Interface")
End Sub
<WorkItem(969097, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/969097")>
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndClassPairingsTest()
VerifyRecommendationsMissing(<File>Class Goo()
End |</File>, "Module", "Interface", "Structure")
End Sub
<WorkItem(969097, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/969097")>
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndModulePairingsTest()
VerifyRecommendationsMissing(<File>Module Goo()
End |</File>, "Class", "Interface", "Structure")
End Sub
<WorkItem(540069, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540069")>
<Fact>
<Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub EndModuleNotSubSuggestedTest()
VerifyRecommendationsMissing(<File>Module Goo()
|</File>, "End Sub", "End Function")
End Sub
End Class
End Namespace
|
import $ from 'jquery';
import GLForm from '../../../../gl_form';
import RefSelectDropdown from '../../../../ref_select_dropdown';
import ZenMode from '../../../../zen_mode';
new ZenMode(); // eslint-disable-line no-new
new GLForm($('.tag-form')); // eslint-disable-line no-new
new RefSelectDropdown($('.js-branch-select')); // eslint-disable-line no-new
|
//Address: 0x31968c0f883dbf768fdfb5801fabd35884da3c3e
//Contract name: KatyaToken
//Balance: 0 Ether
//Verification Date: 2/3/2018
//Transacion Count: 2
// CODE STARTS HERE
pragma solidity ^0.4.4;
contract Token {
function totalSupply() constant returns (uint256 supply) {}
function balanceOf(address _owner) constant returns (uint256 balance) {}
function transfer(address _to, uint256 _value) returns (bool success) {}
function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {}
function approve(address _spender, uint256 _value) returns (bool success) {}
function allowance(address _owner, address _spender) constant returns (uint256 remaining) {}
event Transfer(address indexed _from, address indexed _to, uint256 _value);
event Approval(address indexed _owner, address indexed _spender, uint256 _value);
}
contract StandardToken is Token {
function transfer(address _to, uint256 _value) returns (bool success) {
if (balances[msg.sender] >= _value && _value > 0) {
balances[msg.sender] -= _value;
balances[_to] += _value;
Transfer(msg.sender, _to, _value);
return true;
} else { return false; }
}
function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {
if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && _value > 0) {
balances[_to] += _value;
balances[_from] -= _value;
allowed[_from][msg.sender] -= _value;
Transfer(_from, _to, _value);
return true;
} else { return false; }
}
function balanceOf(address _owner) constant returns (uint256 balance) {
return balances[_owner];
}
function approve(address _spender, uint256 _value) returns (bool success) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
function allowance(address _owner, address _spender) constant returns (uint256 remaining) {
return allowed[_owner][_spender];
}
mapping (address => uint256) balances;
mapping (address => mapping (address => uint256)) allowed;
uint256 public totalSupply;
}
contract KatyaToken is StandardToken {
function () {
throw;
}
string public name;
uint8 public decimals;
string public symbol;
string public version = 'H1.0';
function KatyaToken(
) {
balances[msg.sender] = 1000000000;
totalSupply = 1000000000;
name = "Katya Tokareva Token";
decimals = 2;
symbol = "TKT";
}
function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
if(!_spender.call(bytes4(bytes32(sha3("receiveApproval(address,uint256,address,bytes)"))), msg.sender, _value, this, _extraData)) { throw; }
return true;
}
}
|
; A162770: a(n) = ((2+sqrt(5))*(1+sqrt(5))^n + (2-sqrt(5))*(1-sqrt(5))^n)/2.
; Submitted by Jon Maiga
; 2,7,22,72,232,752,2432,7872,25472,82432,266752,863232,2793472,9039872,29253632,94666752,306348032,991363072,3208118272,10381688832,33595850752,108718456832,351820316672,1138514460672,3684310188032,11922678218752,38582597189632,124855907254272,404042203267072,1307508035551232,4231184884170752,13692401910546432,44309543357775872,143388694357737472,464015562146578432,1501585901724106752,4859234052034527232,15724811710965481472,50886559630069071872,164672366104000069632,532890970728276426752
lpb $0
sub $0,1
mul $2,2
mov $3,$2
mul $4,2
add $4,1
mov $2,$4
add $4,$3
lpe
add $2,$4
mov $0,$2
div $0,2
mul $0,5
add $0,2
|
defmodule Phoenix.SimpleForm.Factory do
@moduledoc """
Factories used for ex_machina.
"""
use ExMachina
def form_input_factory do
%Phoenix.SimpleForm.FormInput{
clean_opts: [],
collection: nil,
errors: [],
errors_translated: [],
field: :name,
field_str: "name",
form: build(:form),
hint: nil,
input_attrs: [],
label: "Name",
label_attrs: [],
label_human: "Name",
label_translated: nil,
opts: [],
required: false,
style_module: Phoenix.SimpleForm.Styles.Bootstrap4,
wrapper_attrs: []
}
end
def form_factory do
%Phoenix.HTML.Form{
action: nil,
data: nil,
errors: [],
hidden: [],
id: nil,
impl: Phoenix.HTML.FormData.Ecto.Changeset,
index: nil,
name: nil,
options: [],
params: %{},
source: %{
types: %{name: :string},
required: [],
validations: [],
changes: %{},
data: %{}
}
}
end
end
|
namespace go sanskerta.contract.value
namespace java id.dynastymasra.sanskerta.common.contract.value
#@namespace scala id.dynastymasra.sanskerta.common.contract.value
typedef string timestamp
typedef string UUID
|
@echo off
REM PHPUnit
REM
REM Copyright (c) 2002-2008, Sebastian Bergmann <sb@sebastian-bergmann.de>.
REM All rights reserved.
REM
REM Redistribution and use in source and binary forms, with or without
REM modification, are permitted provided that the following conditions
REM are met:
REM
REM * Redistributions of source code must retain the above copyright
REM notice, this list of conditions and the following disclaimer.
REM
REM * Redistributions in binary form must reproduce the above copyright
REM notice, this list of conditions and the following disclaimer in
REM the documentation and/or other materials provided with the
REM distribution.
REM
REM * Neither the name of Sebastian Bergmann nor the names of his
REM contributors may be used to endorse or promote products derived
REM from this software without specific prior written permission.
REM
REM THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
REM "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
REM LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
REM FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
REM COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
REM INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
REM BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
REM LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
REM CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRIC
REM LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
REM ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
REM POSSIBILITY OF SUCH DAMAGE.
REM
REM $Id: pear-phpunit.bat 2798 2008-04-14 16:48:33Z sb $
REM
set PHPBIN="C:\wamp\bin\php\php5.4.3\.\php.exe"
"C:\wamp\bin\php\php5.4.3\.\php.exe">test_results.txt "C:\wamp\bin\php\php5.4.3\phpunit" --coverage-html coverage --configuration coverage.xml SmartyTests.php
|
-- fmGUI_ManageSecurity_AccountNames(fullAccessAccountName:null, fullAccessPassword:null)
-- Daniel A. Shockley, NYHTC
-- Open Manage Security window
(*
HISTORY:
1.1 - 2017-06-14 ( eshagdar ): narrowed scope.
1.0 - created
REQUIRES:
fmGUI_AppFrontMost
*)
on run
fmGUI_ManageSecurity_AccountNames({fullAccessAccountName:"admin", fullAccessPassword:""})
end run
--------------------
-- START OF CODE
--------------------
on fmGUI_ManageSecurity_AccountNames(prefs)
-- version 1.1
set defaultPrefs to {fullAccessAccountName:null, fullAccessPassword:null}
set prefs to prefs & defaultPrefs
try
fmGUI_AppFrontMost()
fmGUI_ManageSecurity_GoToTab_Accounts(prefs)
tell application "System Events"
tell application process "FileMaker Pro Advanced"
set accountNames to name of static text 1 of every row of (table 1 of scroll area 1 of tab group 1 of window 1)
end tell
end tell
return accountNames
on error errMsg number errNum
error "Couldn't fmGUI_ManageSecurity_AccountNames - " & errMsg number errNum
end try
end fmGUI_ManageSecurity_AccountNames
--------------------
-- END OF CODE
--------------------
on fmGUI_AppFrontMost()
tell application "htcLib" to fmGUI_AppFrontMost()
end fmGUI_AppFrontMost
on fmGUI_ManageSecurity_GoToTab_Accounts(prefs)
tell application "htcLib" to fmGUI_ManageSecurity_GoToTab_Accounts(prefs)
end fmGUI_ManageSecurity_GoToTab_Accounts |
@[irreducible] instance : has_zero string := ⟨""⟩
class foo (s : string) : Prop
instance string.foo : foo 0 := ⟨⟩
#eval tactic.mk_instance `(foo "") |
/*!
* Hamburgers
* @description Tasty CSS-animated hamburgers
* @author Jonathan Suh @jonsuh
* @site https://jonsuh.com/hamburgers
* @link https://github.com/jonsuh/hamburgers
*/.hamburger{font:inherit;display:inline-block;overflow:visible;margin:0;padding:15px;cursor:pointer;transition-timing-function:linear;transition-duration:.15s;transition-property:opacity,filter;text-transform:none;color:inherit;border:0;background-color:transparent}.hamburger.is_active:hover,.hamburger:hover{opacity:.7}.hamburger.is_active .hamburger_inner,.hamburger.is_active .hamburger_inner:after,.hamburger.is_active .hamburger_inner:before{background-color: var(--text-white)} .hamburger_box{position:relative;display:inline-block;width:40px;height:24px} .hamburger_inner{top:50%;display:block;margin-top:-2px} .hamburger_inner,.hamburger_inner:after,.hamburger_inner:before{position:absolute;width:40px;height:4px;transition-timing-function:ease;transition-duration:.15s;transition-property:transform;border-radius:4px;background-color: var(--text-white)} .hamburger_inner:after,.hamburger_inner:before{display:block;content:""} .hamburger_inner:before{top:-10px} .hamburger_inner:after{bottom:-10px} .hamburger_3dx .hamburger_box{perspective:80px} .hamburger_3dx .hamburger_inner{transition:transform .15s cubic-bezier(.645,.045,.355,1),background-color 0s cubic-bezier(.645,.045,.355,1) .1s} .hamburger_3dx .hamburger_inner:after,.hamburger_3dx .hamburger_inner:before{transition:transform 0s cubic-bezier(.645,.045,.355,1) .1s} .hamburger_3dx.is_active .hamburger_inner{transform:rotateY(180deg);background-color:transparent!important} .hamburger_3dx.is_active .hamburger_inner:before{transform:translate3d(0,10px,0) rotate(45deg)} .hamburger_3dx.is_active .hamburger_inner:after{transform:translate3d(0,-10px,0) rotate(-45deg)} .hamburger_3dx-r .hamburger_box{perspective:80px} .hamburger_3dx-r .hamburger_inner{transition:transform .15s cubic-bezier(.645,.045,.355,1),background-color 0s cubic-bezier(.645,.045,.355,1) .1s} .hamburger_3dx-r .hamburger_inner:after,.hamburger_3dx-r .hamburger_inner:before{transition:transform 0s cubic-bezier(.645,.045,.355,1) .1s} .hamburger_3dx-r.is_active .hamburger_inner{transform:rotateY(-180deg);background-color:transparent!important} .hamburger_3dx-r.is_active .hamburger_inner:before{transform:translate3d(0,10px,0) rotate(45deg)} .hamburger_3dx-r.is_active .hamburger_inner:after{transform:translate3d(0,-10px,0) rotate(-45deg)} .hamburger_3dy .hamburger_box{perspective:80px} .hamburger_3dy .hamburger_inner{transition:transform .15s cubic-bezier(.645,.045,.355,1),background-color 0s cubic-bezier(.645,.045,.355,1) .1s} .hamburger_3dy .hamburger_inner:after,.hamburger_3dy .hamburger_inner:before{transition:transform 0s cubic-bezier(.645,.045,.355,1) .1s} .hamburger_3dy.is_active .hamburger_inner{transform:rotateX(-180deg);background-color:transparent!important} .hamburger_3dy.is_active .hamburger_inner:before{transform:translate3d(0,10px,0) rotate(45deg)} .hamburger_3dy.is_active .hamburger_inner:after{transform:translate3d(0,-10px,0) rotate(-45deg)} .hamburger_3dy-r .hamburger_box{perspective:80px} .hamburger_3dy-r .hamburger_inner{transition:transform .15s cubic-bezier(.645,.045,.355,1),background-color 0s cubic-bezier(.645,.045,.355,1) .1s} .hamburger_3dy-r .hamburger_inner:after,.hamburger_3dy-r .hamburger_inner:before{transition:transform 0s cubic-bezier(.645,.045,.355,1) .1s} .hamburger_3dy-r.is_active .hamburger_inner{transform:rotateX(180deg);background-color:transparent!important} .hamburger_3dy-r.is_active .hamburger_inner:before{transform:translate3d(0,10px,0) rotate(45deg)} .hamburger_3dy-r.is_active .hamburger_inner:after{transform:translate3d(0,-10px,0) rotate(-45deg)} .hamburger_3dxy .hamburger_box{perspective:80px} .hamburger_3dxy .hamburger_inner{transition:transform .15s cubic-bezier(.645,.045,.355,1),background-color 0s cubic-bezier(.645,.045,.355,1) .1s} .hamburger_3dxy .hamburger_inner:after,.hamburger_3dxy .hamburger_inner:before{transition:transform 0s cubic-bezier(.645,.045,.355,1) .1s} .hamburger_3dxy.is_active .hamburger_inner{transform:rotateX(180deg) rotateY(180deg);background-color:transparent!important} .hamburger_3dxy.is_active .hamburger_inner:before{transform:translate3d(0,10px,0) rotate(45deg)} .hamburger_3dxy.is_active .hamburger_inner:after{transform:translate3d(0,-10px,0) rotate(-45deg)} .hamburger_3dxy-r .hamburger_box{perspective:80px} .hamburger_3dxy-r .hamburger_inner{transition:transform .15s cubic-bezier(.645,.045,.355,1),background-color 0s cubic-bezier(.645,.045,.355,1) .1s} .hamburger_3dxy-r .hamburger_inner:after,.hamburger_3dxy-r .hamburger_inner:before{transition:transform 0s cubic-bezier(.645,.045,.355,1) .1s} .hamburger_3dxy-r.is_active .hamburger_inner{transform:rotateX(180deg) rotateY(180deg) rotate(-180deg);background-color:transparent!important} .hamburger_3dxy-r.is_active .hamburger_inner:before{transform:translate3d(0,10px,0) rotate(45deg)} .hamburger_3dxy-r.is_active .hamburger_inner:after{transform:translate3d(0,-10px,0) rotate(-45deg)} .hamburger_arrow.is_active .hamburger_inner:before{transform:translate3d(-8px,0,0) rotate(-45deg) scaleX(.7)} .hamburger_arrow.is_active .hamburger_inner:after{transform:translate3d(-8px,0,0) rotate(45deg) scaleX(.7)} .hamburger_arrow-r.is_active .hamburger_inner:before{transform:translate3d(8px,0,0) rotate(45deg) scaleX(.7)} .hamburger_arrow-r.is_active .hamburger_inner:after{transform:translate3d(8px,0,0) rotate(-45deg) scaleX(.7)} .hamburger_arrowalt .hamburger_inner:before{transition:top .1s ease .1s,transform .1s cubic-bezier(.165,.84,.44,1)} .hamburger_arrowalt .hamburger_inner:after{transition:bottom .1s ease .1s,transform .1s cubic-bezier(.165,.84,.44,1)} .hamburger_arrowalt.is_active .hamburger_inner:before{top:0;transition:top .1s ease,transform .1s cubic-bezier(.895,.03,.685,.22) .1s;transform:translate3d(-8px,-10px,0) rotate(-45deg) scaleX(.7)} .hamburger_arrowalt.is_active .hamburger_inner:after{bottom:0;transition:bottom .1s ease,transform .1s cubic-bezier(.895,.03,.685,.22) .1s;transform:translate3d(-8px,10px,0) rotate(45deg) scaleX(.7)} .hamburger_arrowalt-r .hamburger_inner:before{transition:top .1s ease .1s,transform .1s cubic-bezier(.165,.84,.44,1)} .hamburger_arrowalt-r .hamburger_inner:after{transition:bottom .1s ease .1s,transform .1s cubic-bezier(.165,.84,.44,1)} .hamburger_arrowalt-r.is_active .hamburger_inner:before{top:0;transition:top .1s ease,transform .1s cubic-bezier(.895,.03,.685,.22) .1s;transform:translate3d(8px,-10px,0) rotate(45deg) scaleX(.7)} .hamburger_arrowalt-r.is_active .hamburger_inner:after{bottom:0;transition:bottom .1s ease,transform .1s cubic-bezier(.895,.03,.685,.22) .1s;transform:translate3d(8px,10px,0) rotate(-45deg) scaleX(.7)} .hamburger_arrowturn.is_active .hamburger_inner{transform:rotate(-180deg)} .hamburger_arrowturn.is_active .hamburger_inner:before{transform:translate3d(8px,0,0) rotate(45deg) scaleX(.7)} .hamburger_arrowturn.is_active .hamburger_inner:after{transform:translate3d(8px,0,0) rotate(-45deg) scaleX(.7)} .hamburger_arrowturn-r.is_active .hamburger_inner{transform:rotate(-180deg)} .hamburger_arrowturn-r.is_active .hamburger_inner:before{transform:translate3d(-8px,0,0) rotate(-45deg) scaleX(.7)} .hamburger_arrowturn-r.is_active .hamburger_inner:after{transform:translate3d(-8px,0,0) rotate(45deg) scaleX(.7)} .hamburger_boring .hamburger_inner,.hamburger_boring .hamburger_inner:after,.hamburger_boring .hamburger_inner:before{transition-property:none} .hamburger_boring.is_active .hamburger_inner{transform:rotate(45deg)} .hamburger_boring.is_active .hamburger_inner:before{top:0;opacity:0} .hamburger_boring.is_active .hamburger_inner:after{bottom:0;transform:rotate(-90deg)} .hamburger_collapse .hamburger_inner{top:auto;bottom:0;transition-delay:.13s;transition-timing-function:cubic-bezier(.55,.055,.675,.19);transition-duration:.13s} .hamburger_collapse .hamburger_inner:after{top:-20px;transition:top .2s cubic-bezier(.33333,.66667,.66667,1) .2s,opacity .1s linear} .hamburger_collapse .hamburger_inner:before{transition:top .12s cubic-bezier(.33333,.66667,.66667,1) .2s,transform .13s cubic-bezier(.55,.055,.675,.19)} .hamburger_collapse.is_active .hamburger_inner{transition-delay:.22s;transition-timing-function:cubic-bezier(.215,.61,.355,1);transform:translate3d(0,-10px,0) rotate(-45deg)} .hamburger_collapse.is_active .hamburger_inner:after{top:0;transition:top .2s cubic-bezier(.33333,0,.66667,.33333),opacity .1s linear .22s;opacity:0} .hamburger_collapse.is_active .hamburger_inner:before{top:0;transition:top .1s cubic-bezier(.33333,0,.66667,.33333) .16s,transform .13s cubic-bezier(.215,.61,.355,1) .25s;transform:rotate(-90deg)} .hamburger_collapse-r .hamburger_inner{top:auto;bottom:0;transition-delay:.13s;transition-timing-function:cubic-bezier(.55,.055,.675,.19);transition-duration:.13s} .hamburger_collapse-r .hamburger_inner:after{top:-20px;transition:top .2s cubic-bezier(.33333,.66667,.66667,1) .2s,opacity .1s linear} .hamburger_collapse-r .hamburger_inner:before{transition:top .12s cubic-bezier(.33333,.66667,.66667,1) .2s,transform .13s cubic-bezier(.55,.055,.675,.19)} .hamburger_collapse-r.is_active .hamburger_inner{transition-delay:.22s;transition-timing-function:cubic-bezier(.215,.61,.355,1);transform:translate3d(0,-10px,0) rotate(45deg)} .hamburger_collapse-r.is_active .hamburger_inner:after{top:0;transition:top .2s cubic-bezier(.33333,0,.66667,.33333),opacity .1s linear .22s;opacity:0} .hamburger_collapse-r.is_active .hamburger_inner:before{top:0;transition:top .1s cubic-bezier(.33333,0,.66667,.33333) .16s,transform .13s cubic-bezier(.215,.61,.355,1) .25s;transform:rotate(90deg)} .hamburger_elastic .hamburger_inner{top:2px;transition-timing-function:cubic-bezier(.68,-.55,.265,1.55);transition-duration:.275s} .hamburger_elastic .hamburger_inner:before{top:10px;transition:opacity .125s ease .275s} .hamburger_elastic .hamburger_inner:after{top:20px;transition:transform .275s cubic-bezier(.68,-.55,.265,1.55)} .hamburger_elastic.is_active .hamburger_inner{transition-delay:75ms;transform:translate3d(0,10px,0) rotate(135deg)} .hamburger_elastic.is_active .hamburger_inner:before{transition-delay:0s;opacity:0} .hamburger_elastic.is_active .hamburger_inner:after{transition-delay:75ms;transform:translate3d(0,-20px,0) rotate(-270deg)} .hamburger_elastic-r .hamburger_inner{top:2px;transition-timing-function:cubic-bezier(.68,-.55,.265,1.55);transition-duration:.275s} .hamburger_elastic-r .hamburger_inner:before{top:10px;transition:opacity .125s ease .275s} .hamburger_elastic-r .hamburger_inner:after{top:20px;transition:transform .275s cubic-bezier(.68,-.55,.265,1.55)} .hamburger_elastic-r.is_active .hamburger_inner{transition-delay:75ms;transform:translate3d(0,10px,0) rotate(-135deg)} .hamburger_elastic-r.is_active .hamburger_inner:before{transition-delay:0s;opacity:0} .hamburger_elastic-r.is_active .hamburger_inner:after{transition-delay:75ms;transform:translate3d(0,-20px,0) rotate(270deg)} .hamburger_emphatic{overflow:hidden} .hamburger_emphatic .hamburger_inner{transition:background-color .125s ease-in .175s} .hamburger_emphatic .hamburger_inner:before{left:0;transition:transform .125s cubic-bezier(.6,.04,.98,.335),top .05s linear .125s,left .125s ease-in .175s} .hamburger_emphatic .hamburger_inner:after{top:10px;right:0;transition:transform .125s cubic-bezier(.6,.04,.98,.335),top .05s linear .125s,right .125s ease-in .175s} .hamburger_emphatic.is_active .hamburger_inner{transition-delay:0s;transition-timing-function:ease-out;background-color:transparent!important} .hamburger_emphatic.is_active .hamburger_inner:before{top:-80px;left:-80px;transition:left .125s ease-out,top .05s linear .125s,transform .125s cubic-bezier(.075,.82,.165,1) .175s;transform:translate3d(80px,80px,0) rotate(45deg)} .hamburger_emphatic.is_active .hamburger_inner:after{top:-80px;right:-80px;transition:right .125s ease-out,top .05s linear .125s,transform .125s cubic-bezier(.075,.82,.165,1) .175s;transform:translate3d(-80px,80px,0) rotate(-45deg)} .hamburger_emphatic-r{overflow:hidden} .hamburger_emphatic-r .hamburger_inner{transition:background-color .125s ease-in .175s} .hamburger_emphatic-r .hamburger_inner:before{left:0;transition:transform .125s cubic-bezier(.6,.04,.98,.335),top .05s linear .125s,left .125s ease-in .175s} .hamburger_emphatic-r .hamburger_inner:after{top:10px;right:0;transition:transform .125s cubic-bezier(.6,.04,.98,.335),top .05s linear .125s,right .125s ease-in .175s} .hamburger_emphatic-r.is_active .hamburger_inner{transition-delay:0s;transition-timing-function:ease-out;background-color:transparent!important} .hamburger_emphatic-r.is_active .hamburger_inner:before{top:80px;left:-80px;transition:left .125s ease-out,top .05s linear .125s,transform .125s cubic-bezier(.075,.82,.165,1) .175s;transform:translate3d(80px,-80px,0) rotate(-45deg)} .hamburger_emphatic-r.is_active .hamburger_inner:after{top:80px;right:-80px;transition:right .125s ease-out,top .05s linear .125s,transform .125s cubic-bezier(.075,.82,.165,1) .175s;transform:translate3d(-80px,-80px,0) rotate(45deg)} .hamburger_minus .hamburger_inner:after,.hamburger_minus .hamburger_inner:before{transition:bottom .08s ease-out 0s,top .08s ease-out 0s,opacity 0s linear} .hamburger_minus.is_active .hamburger_inner:after,.hamburger_minus.is_active .hamburger_inner:before{transition:bottom .08s ease-out,top .08s ease-out,opacity 0s linear .08s;opacity:0} .hamburger_minus.is_active .hamburger_inner:before{top:0} .hamburger_minus.is_active .hamburger_inner:after{bottom:0} .hamburger_slider .hamburger_inner{top:2px} .hamburger_slider .hamburger_inner:before{top:10px;transition-timing-function:ease;transition-duration:.15s;transition-property:transform,opacity} .hamburger_slider .hamburger_inner:after{top:20px} .hamburger_slider.is_active .hamburger_inner{transform:translate3d(0,10px,0) rotate(45deg)} .hamburger_slider.is_active .hamburger_inner:before{transform:rotate(-45deg) translate3d(-5.71429px,-6px,0);opacity:0} .hamburger_slider.is_active .hamburger_inner:after{transform:translate3d(0,-20px,0) rotate(-90deg)} .hamburger_slider-r .hamburger_inner{top:2px} .hamburger_slider-r .hamburger_inner:before{top:10px;transition-timing-function:ease;transition-duration:.15s;transition-property:transform,opacity} .hamburger_slider-r .hamburger_inner:after{top:20px} .hamburger_slider-r.is_active .hamburger_inner{transform:translate3d(0,10px,0) rotate(-45deg)} .hamburger_slider-r.is_active .hamburger_inner:before{transform:rotate(45deg) translate3d(5.71429px,-6px,0);opacity:0} .hamburger_slider-r.is_active .hamburger_inner:after{transform:translate3d(0,-20px,0) rotate(90deg)} .hamburger_spin .hamburger_inner{transition-timing-function:cubic-bezier(.55,.055,.675,.19);transition-duration:.22s} .hamburger_spin .hamburger_inner:before{transition:top .1s ease-in .25s,opacity .1s ease-in} .hamburger_spin .hamburger_inner:after{transition:bottom .1s ease-in .25s,transform .22s cubic-bezier(.55,.055,.675,.19)} .hamburger_spin.is_active .hamburger_inner{transition-delay:.12s;transition-timing-function:cubic-bezier(.215,.61,.355,1);transform:rotate(225deg)} .hamburger_spin.is_active .hamburger_inner:before{top:0;transition:top .1s ease-out,opacity .1s ease-out .12s;opacity:0} .hamburger_spin.is_active .hamburger_inner:after{bottom:0;transition:bottom .1s ease-out,transform .22s cubic-bezier(.215,.61,.355,1) .12s;transform:rotate(-90deg)} .hamburger_spin-r .hamburger_inner{transition-timing-function:cubic-bezier(.55,.055,.675,.19);transition-duration:.22s} .hamburger_spin-r .hamburger_inner:before{transition:top .1s ease-in .25s,opacity .1s ease-in} .hamburger_spin-r .hamburger_inner:after{transition:bottom .1s ease-in .25s,transform .22s cubic-bezier(.55,.055,.675,.19)} .hamburger_spin-r.is_active .hamburger_inner{transition-delay:.12s;transition-timing-function:cubic-bezier(.215,.61,.355,1);transform:rotate(-225deg)} .hamburger_spin-r.is_active .hamburger_inner:before{top:0;transition:top .1s ease-out,opacity .1s ease-out .12s;opacity:0} .hamburger_spin-r.is_active .hamburger_inner:after{bottom:0;transition:bottom .1s ease-out,transform .22s cubic-bezier(.215,.61,.355,1) .12s;transform:rotate(90deg)} .hamburger_spring .hamburger_inner{top:2px;transition:background-color 0s linear .13s} .hamburger_spring .hamburger_inner:before{top:10px;transition:top .1s cubic-bezier(.33333,.66667,.66667,1) .2s,transform .13s cubic-bezier(.55,.055,.675,.19)} .hamburger_spring .hamburger_inner:after{top:20px;transition:top .2s cubic-bezier(.33333,.66667,.66667,1) .2s,transform .13s cubic-bezier(.55,.055,.675,.19)} .hamburger_spring.is_active .hamburger_inner{transition-delay:.22s;background-color:transparent!important} .hamburger_spring.is_active .hamburger_inner:before{top:0;transition:top .1s cubic-bezier(.33333,0,.66667,.33333) .15s,transform .13s cubic-bezier(.215,.61,.355,1) .22s;transform:translate3d(0,10px,0) rotate(45deg)} .hamburger_spring.is_active .hamburger_inner:after{top:0;transition:top .2s cubic-bezier(.33333,0,.66667,.33333),transform .13s cubic-bezier(.215,.61,.355,1) .22s;transform:translate3d(0,10px,0) rotate(-45deg)} .hamburger_spring-r .hamburger_inner{top:auto;bottom:0;transition-delay:0s;transition-timing-function:cubic-bezier(.55,.055,.675,.19);transition-duration:.13s} .hamburger_spring-r .hamburger_inner:after{top:-20px;transition:top .2s cubic-bezier(.33333,.66667,.66667,1) .2s,opacity 0s linear} .hamburger_spring-r .hamburger_inner:before{transition:top .1s cubic-bezier(.33333,.66667,.66667,1) .2s,transform .13s cubic-bezier(.55,.055,.675,.19)} .hamburger_spring-r.is_active .hamburger_inner{transition-delay:.22s;transition-timing-function:cubic-bezier(.215,.61,.355,1);transform:translate3d(0,-10px,0) rotate(-45deg)} .hamburger_spring-r.is_active .hamburger_inner:after{top:0;transition:top .2s cubic-bezier(.33333,0,.66667,.33333),opacity 0s linear .22s;opacity:0} .hamburger_spring-r.is_active .hamburger_inner:before{top:0;transition:top .1s cubic-bezier(.33333,0,.66667,.33333) .15s,transform .13s cubic-bezier(.215,.61,.355,1) .22s;transform:rotate(90deg)} .hamburger_stand .hamburger_inner{transition:transform 75ms cubic-bezier(.55,.055,.675,.19) .15s,background-color 0s linear 75ms} .hamburger_stand .hamburger_inner:before{transition:top 75ms ease-in 75ms,transform 75ms cubic-bezier(.55,.055,.675,.19) 0s} .hamburger_stand .hamburger_inner:after{transition:bottom 75ms ease-in 75ms,transform 75ms cubic-bezier(.55,.055,.675,.19) 0s} .hamburger_stand.is_active .hamburger_inner{transition:transform 75ms cubic-bezier(.215,.61,.355,1) 0s,background-color 0s linear .15s;transform:rotate(90deg);background-color:transparent!important} .hamburger_stand.is_active .hamburger_inner:before{top:0;transition:top 75ms ease-out .1s,transform 75ms cubic-bezier(.215,.61,.355,1) .15s;transform:rotate(-45deg)} .hamburger_stand.is_active .hamburger_inner:after{bottom:0;transition:bottom 75ms ease-out .1s,transform 75ms cubic-bezier(.215,.61,.355,1) .15s;transform:rotate(45deg)} .hamburger_stand-r .hamburger_inner{transition:transform 75ms cubic-bezier(.55,.055,.675,.19) .15s,background-color 0s linear 75ms} .hamburger_stand-r .hamburger_inner:before{transition:top 75ms ease-in 75ms,transform 75ms cubic-bezier(.55,.055,.675,.19) 0s} .hamburger_stand-r .hamburger_inner:after{transition:bottom 75ms ease-in 75ms,transform 75ms cubic-bezier(.55,.055,.675,.19) 0s} .hamburger_stand-r.is_active .hamburger_inner{transition:transform 75ms cubic-bezier(.215,.61,.355,1) 0s,background-color 0s linear .15s;transform:rotate(-90deg);background-color:transparent!important} .hamburger_stand-r.is_active .hamburger_inner:before{top:0;transition:top 75ms ease-out .1s,transform 75ms cubic-bezier(.215,.61,.355,1) .15s;transform:rotate(-45deg)} .hamburger_stand-r.is_active .hamburger_inner:after{bottom:0;transition:bottom 75ms ease-out .1s,transform 75ms cubic-bezier(.215,.61,.355,1) .15s;transform:rotate(45deg)} .hamburger_squeeze .hamburger_inner{transition-timing-function:cubic-bezier(.55,.055,.675,.19);transition-duration:75ms} .hamburger_squeeze .hamburger_inner:before{transition:top 75ms ease .12s,opacity 75ms ease} .hamburger_squeeze .hamburger_inner:after{transition:bottom 75ms ease .12s,transform 75ms cubic-bezier(.55,.055,.675,.19)} .hamburger_squeeze.is_active .hamburger_inner{transition-delay:.12s;transition-timing-function:cubic-bezier(.215,.61,.355,1);transform:rotate(45deg)} .hamburger_squeeze.is_active .hamburger_inner:before{top:0;transition:top 75ms ease,opacity 75ms ease .12s;opacity:0} .hamburger_squeeze.is_active .hamburger_inner:after{bottom:0;transition:bottom 75ms ease,transform 75ms cubic-bezier(.215,.61,.355,1) .12s;transform:rotate(-90deg)} .hamburger_vortex .hamburger_inner{transition-timing-function:cubic-bezier(.19,1,.22,1);transition-duration:.2s} .hamburger_vortex .hamburger_inner:after,.hamburger_vortex .hamburger_inner:before{transition-delay:.1s;transition-timing-function:linear;transition-duration:0s} .hamburger_vortex .hamburger_inner:before{transition-property:top,opacity} .hamburger_vortex .hamburger_inner:after{transition-property:bottom,transform} .hamburger_vortex.is_active .hamburger_inner{transition-timing-function:cubic-bezier(.19,1,.22,1);transform:rotate(765deg)} .hamburger_vortex.is_active .hamburger_inner:after,.hamburger_vortex.is_active .hamburger_inner:before{transition-delay:0s} .hamburger_vortex.is_active .hamburger_inner:before{top:0;opacity:0} .hamburger_vortex.is_active .hamburger_inner:after{bottom:0;transform:rotate(90deg)} .hamburger_vortex-r .hamburger_inner{transition-timing-function:cubic-bezier(.19,1,.22,1);transition-duration:.2s} .hamburger_vortex-r .hamburger_inner:after,.hamburger_vortex-r .hamburger_inner:before{transition-delay:.1s;transition-timing-function:linear;transition-duration:0s} .hamburger_vortex-r .hamburger_inner:before{transition-property:top,opacity} .hamburger_vortex-r .hamburger_inner:after{transition-property:bottom,transform} .hamburger_vortex-r.is_active .hamburger_inner{transition-timing-function:cubic-bezier(.19,1,.22,1);transform:rotate(-765deg)} .hamburger_vortex-r.is_active .hamburger_inner:after,.hamburger_vortex-r.is_active .hamburger_inner:before{transition-delay:0s} .hamburger_vortex-r.is_active .hamburger_inner:before{top:0;opacity:0} .hamburger_vortex-r.is_active .hamburger_inner:after{bottom:0;transform:rotate(-90deg)} |
tokenizing - dtd
nextEndDoctypeDeclaration
self nextDoctypeDeclarationTerminator.
state := state postDoctypeDeclarationState.
driver handleEndDTD. |
#!/bin/bash
workingDir=/var/www/cryptodb.org/Common/pubcrawler
bgColor="#FFCCCC"
project=CryptoDB
icon=/images/cryptodb_logo.gif
PC_SCRIPT=$workingDir/pubcrawlerApi.pl
CONFIG=$workingDir/pubcrawler.config
perl $PC_SCRIPT -d $workingDir -mute -c $CONFIG -bg $bgColor -proj $project -icon $icon
|
---
title: Skapa delade avbildnings gallerier med Azure CLI
description: I den här artikeln får du lära dig hur du använder Azure CLI för att skapa en delad avbildning av en virtuell dator i Azure.
services: virtual-machines-linux
documentationcenter: virtual-machines
author: axayjo
manager: gwallace
editor: tysonn
tags: azure-resource-manager
ms.assetid: ''
ms.service: virtual-machines-linux
ms.topic: article
ms.tgt_pltfrm: vm-linux
ms.workload: infrastructure
ms.date: 05/06/2019
ms.author: akjosh
ms.reviewer: cynthn
ms.custom: ''
ms.openlocfilehash: de1afa2367afcb78e8ca68e518acc93e33f61c43
ms.sourcegitcommit: 49cf9786d3134517727ff1e656c4d8531bbbd332
ms.translationtype: MT
ms.contentlocale: sv-SE
ms.lasthandoff: 11/13/2019
ms.locfileid: "74034964"
---
# <a name="create-a-shared-image-gallery-with-the-azure-cli"></a>Skapa ett galleri för delad avbildning med Azure CLI
Ett [delat bild galleri](shared-image-galleries.md) fören klar en anpassad bild delning i hela organisationen. Anpassade avbildningar liknar Marketplace-avbildningar, men du skapar dem själv. Anpassade avbildningar kan användas för startkonfigurationer, till exempel förinläsning av program, programkonfigurationer och andra OS-konfigurationer.
Med galleriet för delade avbildningar kan du dela dina anpassade VM-avbildningar med andra i din organisation, inom eller mellan regioner, inom en AAD-klient. Välj vilka bilder du vill dela, vilka regioner du vill göra tillgängliga i och vilka du vill dela dem med. Du kan skapa flera gallerier så att du kan gruppera delade avbildningar logiskt.
Galleriet är en resurs på den översta nivån som ger fullständig rollbaserad åtkomst kontroll (RBAC). Avbildningar kan vara versioner och du kan välja att replikera varje avbildnings version till en annan uppsättning Azure-regioner. Galleriet fungerar bara med hanterade bilder.
Funktionen för delad bild galleri har flera resurs typer. Vi kommer att använda eller skapa dessa i den här artikeln:
| Resurs | Beskrivning|
|----------|------------|
| **Hanterad avbildning** | Detta är en grundläggande bild som kan användas separat eller användas för att skapa en **avbildnings version** i ett bild galleri. Hanterade avbildningar skapas från generaliserade virtuella datorer. En hanterad avbildning är en särskild typ av virtuell hård disk som kan användas för att skapa flera virtuella datorer och kan nu användas för att skapa delade avbildnings versioner. |
| **Bild galleri** | Precis som Azure Marketplace är ett **avbildnings Galleri** en lagrings plats för att hantera och dela bilder, men du styr vem som har åtkomst. |
| **Bild definition** | Avbildningar definieras i ett galleri och bär information om avbildningen och kraven för att använda den internt. Detta inkluderar om avbildningen är Windows eller Linux, viktig information och minimi-och högsta minnes krav. Det är en definition av en typ av bild. |
| **Avbildnings version** | En **avbildnings version** är vad du använder för att skapa en virtuell dator när du använder ett galleri. Du kan ha flera versioner av en avbildning efter behov för din miljö. Som en hanterad avbildning används avbildnings versionen för att skapa nya diskar för den virtuella datorn när du använder en **avbildnings version** för att skapa en virtuell dator. Avbildnings versioner kan användas flera gånger. |
[!INCLUDE [virtual-machines-common-shared-images-cli](../../../includes/virtual-machines-common-shared-images-cli.md)]
## <a name="create-a-vm"></a>Skapa en virtuell dator
Skapa en virtuell dator från den senaste avbildnings versionen med [AZ VM Create](/cli/azure/vm#az-vm-create).
```azurecli-interactive
az vm create\
--resource-group myGalleryRG \
--name myVM \
--image "/subscriptions/subscription ID where the gallery is located>/resourceGroups/myGalleryRG/providers/Microsoft.Compute/galleries/myGallery/images/myImageDefinition" \
--generate-ssh-keys
```
Du kan också använda en speciell version med hjälp av avbildningens versions-ID för parametern `--image`. Om du till exempel vill använda bild versionen *1.0.0* skriver du: `--image "/subscriptions/<subscription ID where the gallery is located>/resourceGroups/myGalleryRG/providers/Microsoft.Compute/galleries/myGallery/images/myImageDefinition/versions/1.0.0"`.
[!INCLUDE [virtual-machines-common-gallery-list-cli](../../../includes/virtual-machines-common-gallery-list-cli.md)]
[!INCLUDE [virtual-machines-common-shared-images-update-delete-cli](../../../includes/virtual-machines-common-shared-images-update-delete-cli.md)]
## <a name="next-steps"></a>Nästa steg
[Azure Image Builder (för hands version)](image-builder-overview.md) kan hjälpa dig att automatisera avbildnings versionen, du kan även använda den för att uppdatera och [skapa en ny avbildnings version från en befintlig avbildnings version](image-builder-gallery-update-image-version.md).
Du kan också skapa delade avbildnings Galleri resurser med hjälp av mallar. Det finns flera tillgängliga Azure snabb starts mallar:
- [Skapa ett galleri för delad avbildning](https://azure.microsoft.com/resources/templates/101-sig-create/)
- [Skapa en avbildnings definition i ett galleri för delade avbildningar](https://azure.microsoft.com/resources/templates/101-sig-image-definition-create/)
- [Skapa en avbildnings version i ett galleri för delad avbildning](https://azure.microsoft.com/resources/templates/101-sig-image-version-create/)
- [Skapa en virtuell dator från avbildnings version](https://azure.microsoft.com/resources/templates/101-vm-from-sig/)
Mer information om delade avbildnings gallerier finns i [översikten](shared-image-galleries.md). Om du stöter på problem, se [Felsöka delade avbildnings gallerier](troubleshooting-shared-images.md).
|
namespace java thrift.test
const string name = "Columbo";
const string copyName = name;
/**
I AM A DOC
*/
// not a doc, just a comment, but the doc should still get included.
const i32 someInt = 1;
const double someDouble = 3.0;
const list<string> someList = ["piggy"];
const list<string> emptyList = [];
const map<string,string> someMap = {"foo": "bar"};
const set<string> someSimpleSet = ["foo", "bar"]
const list<string> anotherNoneEmptyList = ["kitty"]
const set<list<string>> someSet = [someList, anotherNoneEmptyList]
const list<string> nonEmptyPlainList = [name];
// TODO: CSL-364. Uncomment the following line once it's fixed.
// const list<list<string>> emptyNestedList = [emptyList];
// const set<list<string>> setWithEmptyListElement = [emptyList, someList]
const list<list<string>> nonEmptyNestedList = [nonEmptyPlainList];
// mixed cases for ids
enum weekDay {
// not a doc, just a comment.
mon = 1,
// not a doc, just a comment.
TUE,
/** I am a doc. */
// not a doc, just a comment.
Wed = 3,
/** I am a doc. */
thu,
Fri,
Sat,
sUN
}
const weekDay myWfhDay = weekDay.thu;
const list<weekDay> myDaysOut = [myWfhDay, weekDay.Sat, weekDay.sUN]
|
module Grape
module Util
# HashStack is a stack of hashes. When retrieving a value, keys of the top
# hash on the stack take precendent over the lower keys.
class HashStack
# Unmerged array of hashes to represent the stack.
# The top of the stack is the last element.
attr_reader :stack
# TODO: handle aggregates
def initialize
@stack = [{}]
end
# Returns the top hash on the stack
def peek
@stack.last
end
# Add a new hash to the top of the stack.
#
# @param hash [Hash] optional hash to be pushed. Defaults to empty hash
# @return [HashStack]
def push(hash = {})
@stack.push(hash)
self
end
def pop
@stack.pop
end
# Looks through the stack for the first frame that matches :key
#
# @param key [Symbol] key to look for in hash frames
# @return value of given key after merging the stack
def get(key)
(@stack.length - 1).downto(0).each do |i|
return @stack[i][key] if @stack[i].key? key
end
nil
end
alias_method :[], :get
# Replace a value on the top hash of the stack.
#
# @param key [Symbol] The key to set.
# @param value [Object] The value to set.
def set(key, value)
peek[key.to_sym] = value
end
alias_method :[]=, :set
# Replace multiple values on the top hash of the stack.
#
# @param hash [Hash] Hash of values to be merged in.
def update(hash)
peek.merge!(hash)
self
end
# Adds addition value into the top hash of the stack
def imbue(key, value)
current = peek[key.to_sym]
if current.is_a?(Array)
current.concat(value)
elsif current.is_a?(Hash)
current.merge!(value)
else
set(key, value)
end
end
# Prepend another HashStack's to self
def prepend(hash_stack)
@stack.unshift *hash_stack.stack
self
end
# Concatenate another HashStack's to self
def concat(hash_stack)
@stack.concat hash_stack.stack
self
end
# Looks through the stack for all instances of a given key and returns
# them as a flat Array.
#
# @param key [Symbol] The key to gather
# @return [Array]
def gather(key)
stack.map{|s| s[key] }.flatten.compact.uniq
end
def to_s
@stack.to_s
end
def clone
new_stack = HashStack.new
stack.each do |frame|
new_stack.push frame.clone
end
new_stack.stack.shift
new_stack
end
end
end
end
|
module renderer_top_testbench();
timeunit 10ns;
timeprecision 1ns;
logic Clk;
logic [3:0] KEY;
logic [7:0] SW;
logic [7:0] LEDR;
logic [6:0] HEX0, HEX1;
// VGA Interface
logic [7:0] VGA_R; //VGA Red
logic [7:0] VGA_G; //VGA Green
logic [7:0] VGA_B; //VGA Blue
logic VGA_CLK; //VGA Clock
logic VGA_SYNC_N; //VGA Sync signal
logic VGA_BLANK_N; //VGA Blank signal
logic VGA_VS; //VGA virtical sync signal
logic VGA_HS; //VGA horizontal sync signal
wire [15:0] OTG_DATA; //CY7C67200 Data bus 16 Bits
logic [1:0] OTG_ADDR; //CY7C67200 Address 2 Bits
logic OTG_CS_N; //CY7C67200 Chip Select
logic OTG_RD_N; //CY7C67200 Write
logic OTG_WR_N; //CY7C67200 Read
logic OTG_RST_N; //CY7C67200 Reset
logic OTG_INT; //CY7C67200 Interrupt
// SDRAM Interface for Nios II Software
logic [12:0] DRAM_ADDR; //SDRAM Address 13 Bits
wire [31:0] DRAM_DQ; //SDRAM Data 32 Bits
logic [1:0] DRAM_BA; //SDRAM Bank Address 2 Bits
logic [3:0] DRAM_DQM; //SDRAM Data Mast 4 Bits
logic DRAM_RAS_N; //SDRAM Row Address Strobe
logic DRAM_CAS_N; //SDRAM Column Address Strobe
logic DRAM_CKE; //SDRAM Clock Enable
logic DRAM_WE_N; //SDRAM Write Enable
logic DRAM_CS_N; //SDRAM Chip Select
logic DRAM_CLK; //SDRAM Clock
logic draw_start, draw_done, clear_start, clear_done;
logic draw_data, read_data;
logic [9:0] DrawX, DrawY;
logic [9:0] ReadX, ReadY;
renderer_top rt(.*, .CLOCK_50(Clk));
assign draw_start = rt.draw_start;
assign draw_done = rt.draw_done;
assign clear_start = rt.clear_start;
assign clear_done = rt.clear_done;
assign draw_data = rt.draw_data;
assign read_data = rt.read_data;
assign DrawX = rt.DrawX;
assign DrawY = rt.DrawY;
assign ReadX = rt.ReadX;
assign ReadY = rt.ReadY;
assign curr_state = rt.cu.curr_state;
always begin : CLOCK_GENERATION
#1 Clk = ~Clk;
end
initial begin: CLOCK_INITIALIZATION
Clk = 0;
end
initial begin: TEST_VECTORS
KEY[0] = 0;
#120 KEY[0] = 1;
#100;
end
endmodule
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.flink.runtime.state;
import org.apache.flink.annotation.PublicEvolving;
import org.apache.flink.configuration.Configuration;
import org.apache.flink.configuration.IllegalConfigurationException;
import java.io.IOException;
/**
* A factory to create a specific state backend. The state backend creation gets a Configuration
* object that can be used to read further config values.
*
* <p>The state backend factory is typically specified in the configuration to produce a
* configured state backend.
*
* @param <T> The type of the state backend created.
*/
@PublicEvolving
public interface StateBackendFactory<T extends StateBackend> {
/**
* Creates the state backend, optionally using the given configuration.
*
* @param config The Flink configuration (loaded by the TaskManager).
* @return The created state backend.
*
* @throws IllegalConfigurationException
* If the configuration misses critical values, or specifies invalid values
* @throws IOException
* If the state backend initialization failed due to an I/O exception
*/
T createFromConfig(Configuration config) throws IllegalConfigurationException, IOException;
}
|
/*! firebase-admin v10.0.0 */
/*!
* Copyright 2021 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Firebase Instance ID service.
*
* @packageDocumentation
*/
import { App } from '../app/index';
import { Installations } from './installations';
export { Installations };
/**
* Gets the {@link Installations} service for the default app or a given app.
*
* `getInstallations()` can be called with no arguments to access the default
* app's `Installations` service or as `getInstallations(app)` to access the
* `Installations` service associated with a specific app.
*
* @example
* ```javascript
* // Get the Installations service for the default app
* const defaultInstallations = getInstallations();
* ```
*
* @example
* ```javascript
* // Get the Installations service for a given app
* const otherInstallations = getInstallations(otherApp);
*```
*
* @param app - Optional app whose `Installations` service to
* return. If not provided, the default `Installations` service will be
* returned.
*
* @returns The default `Installations` service if
* no app is provided or the `Installations` service associated with the
* provided app.
*/
export declare function getInstallations(app?: App): Installations;
|
CREATE TABLE [dbo].[TPosInTrack]
(
--From MergedXSDs XSD
--From 'genericRailML' Namespace
[TPosInTrackId] TINYINT NOT NULL,
[Value] NVARCHAR(16) NOT NULL,
CONSTRAINT [PK_TPosInTrackId] PRIMARY KEY CLUSTERED ([TPosInTrackId] ASC)
);
|
/*
Find the number of countries for each currency. Display three columns: currency code,
currency description and number of countries. Sort the results by number of countries
(from highest to lowest), then by currency description alphabetically.
Name the columns exactly like in the table below.
Submit your query statement as Prepare DB & run queries in Judge.
*/
select cur.CurrencyCode as CurrencyCode,
cur.Description as Currency,
COUNT(*)as NumberOfCountries
from Currencies cur
join Countries c on c.CurrencyCode=cur.CurrencyCode
group by cur.CurrencyCode,cur.Description
order by NumberOfCountries desc,cur.Description
|
/*
* Copyright 2016 Alexander Terenin
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* /
*/
/*
* Function : cuda_lambdaSqInv
* Purpose : draws Exp(1 + theta^2) random variables
* Argument n : size of sampler
* Argument *u : pointer to array of uniforms
* Argument *beta : pointer to beta vector
* Argument *nuInv : pointer to nuInv vector
* Argument *tSqInv : pointer to tauSqInv constant
* Output : mutates u and stores result in its place
*/
extern "C"
__global__ void cuda_lambdaSqInv(int n, float *u, float* beta, float *nuInv, float* tSqInv) {
int i = blockIdx.x*blockDim.x + threadIdx.x;
if(i < n) {
u[i] = (-1.0f/(nuInv[i] + (0.5f * tSqInv[0] * beta[i] * beta[i]) )) * logf(u[i]);
}
} |
void Clear();
int32 NPCMessage();
int32 CollReview();
void* __ct(int32 myType);
// Clear__14zNPCGoalCommonFv
// Start address: 0x2adad0
void zNPCGoalCommon::Clear()
{
// Line 189, Address: 0x2adad0, Func Offset: 0
// Func End, Address: 0x2adad8, Func Offset: 0x8
}
// NPCMessage__14zNPCGoalCommonFP6NPCMsg
// Start address: 0x2adae0
int32 zNPCGoalCommon::NPCMessage()
{
// Line 198, Address: 0x2adae0, Func Offset: 0
// Func End, Address: 0x2adae8, Func Offset: 0x8
}
// CollReview__14zNPCGoalCommonFPv
// Start address: 0x2adaf0
int32 zNPCGoalCommon::CollReview()
{
// Line 199, Address: 0x2adaf0, Func Offset: 0
// Func End, Address: 0x2adaf8, Func Offset: 0x8
}
// __ct__14zNPCGoalCommonFi
// Start address: 0x2c5b10
void* zNPCGoalCommon::__ct(int32 myType)
{
// Line 186, Address: 0x2c5b10, Func Offset: 0
// Line 187, Address: 0x2c5b34, Func Offset: 0x24
// Line 186, Address: 0x2c5b38, Func Offset: 0x28
// Line 187, Address: 0x2c5b3c, Func Offset: 0x2c
// Line 186, Address: 0x2c5b40, Func Offset: 0x30
// Line 187, Address: 0x2c5b54, Func Offset: 0x44
// Func End, Address: 0x2c5b64, Func Offset: 0x54
}
|
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Option Explicit On
Option Strict On
Namespace Microsoft.VisualBasic.Devices
'''**************************************************************************
''';Network
''' <summary>
''' An object that allows easy access to some simple network properties and functionality.
''' </summary>
''' <remarks></remarks>
Public Class Network
'* PUBLIC *************************************************************
'''**********************************************************************
''';New - Constructor
''' <summary>
''' Creates class and hooks up events
''' </summary>
''' <remarks></remarks>
Public Sub New()
End Sub
End Class
End Namespace
|
<?php namespace App\Http\Controllers;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Illuminate\Contracts\Auth\Guard;
use App\Nisitusers;
use Input;
use Socialite;
use Auth;
use Redirect;
use Hash;
use Illuminate\Http\Request;
class SocialLoginController extends Controller {
protected $redirectTo = '/nisitinfos';
protected $redirectAfterLogout = '/login/google';
// /**
// * Create a new controller instance.
// *
// * @return void
// */
// public function __construct()
// {
// $this->middleware('guest')->except('logout');
// }
public function __construct()
{
$user = Auth::user();
}
public function redirectToProvider($provider)
{
return Socialite::driver($provider)->redirect();
}
public function findOrCreateUser($user,$provider)
{
$authUser = Nisitusers::where('provider_id',$user->id)->first();
if($authUser)
{
return $authUser;
}
return Nisitusers::create([
'name'=>$user->name,
'email'=>$user->email,
'provider'=>strtoupper($provider),
'provider_id'=>$user->id
]);
}
public function handleProviderCallback($provider)
{
$user = Socialite::driver($provider)->stateless()->user();
$authUser = $this->findOrCreateUser($user,$provider);
//Auth::login($authUser);
return redirect($this->redirectTo);
//return $user->token;
}
}
|
(require 'init-clojure)
(require-package 'emacs '(24))
(require-package 'cider)
(require-package 'ac-cider)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; nrepl with Clojure
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(setq nrepl-popup-stacktraces nil)
(after-load 'cider
(add-hook 'cider-repl-mode-hook 'ac-cider-setup)
(add-hook 'cider-mode-hook 'ac-cider-setup)
(after-load 'auto-complete
(add-to-list 'ac-modes 'cider-repl-mode))
(add-hook 'cider-repl-mode-hook 'set-auto-complete-as-completion-at-point-function)
(add-hook 'cider-mode-hook 'set-auto-complete-as-completion-at-point-function)
(add-hook 'cider-mode-hook 'cider-turn-on-eldoc-mode)
(add-hook 'cider-repl-mode-hook 'subword-mode)
(add-hook 'cider-repl-mode-hook 'paredit-mode)
(define-key cider-mode-map (kbd "C-c C-d") 'ac-nrepl-popup-doc)
;; nrepl isn't based on comint
(add-hook 'cider-repl-mode-hook
(lambda () (setq show-trailing-whitespace nil))))
(provide 'init-clojure-cider)
|
#!/usr/local/bin/thrift --gen py:utf8strings --gen java:beans,nocamel,hashcode
namespace java elephantdb.generated.search
include "core.thrift"
service ElephantDBSearch extends core.ElephantDBShared {
// Thinking a bit more on this one. Lucene on the back end!
}
|