content
stringlengths
4
1.04M
lang
stringclasses
358 values
score
int64
0
5
repo_name
stringlengths
5
114
repo_path
stringlengths
4
229
repo_licenses
sequencelengths
1
8
REBOL [ Title: "Emit Red/System api to html" Author: "Peter W A Wood" File: %emit-block.r Version: 0.1.0 Rights: "Copyright (C) 2012-2015 Peter W A Wood. All rights reserved." License: "BSD-3 - https://github.com/red/red/blob/master/BSD-3-License.txt" Description: {This is a plug for generate-reds-api.r which emits the input block } Argument: {A block output by xtract/extract-reds-docstrings} ] emit: func [ docstrings [block!] ][ docstrings ]
R
4
0xflotus/red
docs/emit-block.r
[ "BSL-1.0", "BSD-3-Clause" ]
#declare grid = L*cos(Ze/180*pi)*df/(pi+(2*cos(Ze/180*pi)-1)*pi*df)*(10/180*pi)*(10/180*pi); #declare n_0 = grid*sin(0/180*pi); #declare n_10 = grid*sin(10/180*pi); #declare n_20 = grid*sin(20/180*pi); #declare n_30 = grid*sin(30/180*pi); #declare n_40 = grid*sin(40/180*pi); #declare n_50 = grid*sin(50/180*pi); #declare n_60 = grid*sin(60/180*pi); #declare n_70 = grid*sin(70/180*pi); #declare n_80 = grid*sin(80/180*pi); // direct radiation light_source {<0,0,1000> color L*(1 - df)/(1+(2*cos(Ze/180*pi)-1)*df)*<1,1,1> rotate <Ze, 0, Az> parallel} // sun // diffuse radiation light_source {<0,0,1000> color n_0*<1,1,1> rotate <0,0,0> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,0> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,0> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,0> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,0> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,0> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,0> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,0> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,0> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,10> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,10> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,10> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,10> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,10> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,10> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,10> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,10> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,20> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,20> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,20> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,20> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,20> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,20> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,20> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,20> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,30> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,30> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,30> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,30> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,30> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,30> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,30> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,30> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,40> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,40> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,40> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,40> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,40> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,40> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,40> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,40> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,50> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,50> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,50> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,50> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,50> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,50> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,50> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,50> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,60> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,60> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,60> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,60> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,60> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,60> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,60> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,60> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,70> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,70> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,70> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,70> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,70> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,70> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,70> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,70> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,80> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,80> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,80> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,80> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,80> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,80> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,80> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,80> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,90> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,90> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,90> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,90> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,90> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,90> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,90> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,90> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,100> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,100> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,100> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,100> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,100> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,100> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,100> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,100> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,110> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,110> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,110> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,110> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,110> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,110> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,110> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,110> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,120> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,120> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,120> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,120> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,120> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,120> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,120> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,120> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,130> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,130> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,130> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,130> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,130> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,130> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,130> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,130> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,140> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,140> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,140> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,140> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,140> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,140> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,140> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,140> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,150> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,150> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,150> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,150> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,150> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,150> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,150> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,150> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,160> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,160> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,160> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,160> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,160> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,160> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,160> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,160> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,170> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,170> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,170> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,170> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,170> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,170> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,170> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,170> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,180> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,180> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,180> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,180> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,180> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,180> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,180> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,180> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,190> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,190> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,190> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,190> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,190> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,190> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,190> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,190> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,200> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,200> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,200> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,200> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,200> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,200> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,200> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,200> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,210> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,210> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,210> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,210> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,210> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,210> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,210> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,210> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,220> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,220> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,220> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,220> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,220> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,220> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,220> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,220> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,230> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,230> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,230> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,230> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,230> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,230> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,230> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,230> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,240> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,240> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,240> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,240> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,240> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,240> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,240> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,240> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,250> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,250> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,250> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,250> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,250> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,250> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,250> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,250> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,260> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,260> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,260> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,260> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,260> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,260> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,260> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,260> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,270> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,270> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,270> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,270> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,270> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,270> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,270> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,270> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,280> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,280> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,280> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,280> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,280> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,280> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,280> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,280> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,290> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,290> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,290> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,290> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,290> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,290> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,290> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,290> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,300> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,300> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,300> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,300> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,300> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,300> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,300> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,300> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,310> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,310> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,310> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,310> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,310> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,310> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,310> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,310> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,320> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,320> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,320> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,320> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,320> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,320> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,320> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,320> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,330> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,330> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,330> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,330> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,330> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,330> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,330> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,330> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,340> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,340> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,340> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,340> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,340> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,340> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,340> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,340> parallel} light_source {<0,0,1000> color n_10*<1,1,1> rotate <10,0,350> parallel} light_source {<0,0,1000> color n_20*<1,1,1> rotate <20,0,350> parallel} light_source {<0,0,1000> color n_30*<1,1,1> rotate <30,0,350> parallel} light_source {<0,0,1000> color n_40*<1,1,1> rotate <40,0,350> parallel} light_source {<0,0,1000> color n_50*<1,1,1> rotate <50,0,350> parallel} light_source {<0,0,1000> color n_60*<1,1,1> rotate <60,0,350> parallel} light_source {<0,0,1000> color n_70*<1,1,1> rotate <70,0,350> parallel} light_source {<0,0,1000> color n_80*<1,1,1> rotate <80,0,350> parallel}
POV-Ray SDL
2
lsymuyu/Digital-Plant-Phenotyping-Platform
Phenotyping/light_old.pov
[ "MIT" ]
import io/FileReader import structs/ArrayList import text/Regexp import text/StringTokenizer addr: func (a: Int, b: Int, c: Int, r: ArrayList<Int>) -> Int { r[a] + r[b] } addi: func (a: Int, b: Int, c: Int, r: ArrayList<Int>) -> Int { r[a] + b } mulr: func (a: Int, b: Int, c: Int, r: ArrayList<Int>) -> Int { r[a] * r[b] } muli: func (a: Int, b: Int, c: Int, r: ArrayList<Int>) -> Int { r[a] * b } banr: func (a: Int, b: Int, c: Int, r: ArrayList<Int>) -> Int { r[a] & r[b] } bani: func (a: Int, b: Int, c: Int, r: ArrayList<Int>) -> Int { r[a] & b } borr: func (a: Int, b: Int, c: Int, r: ArrayList<Int>) -> Int { r[a] | r[b] } bori: func (a: Int, b: Int, c: Int, r: ArrayList<Int>) -> Int { r[a] | b } setr: func (a: Int, b: Int, c: Int, r: ArrayList<Int>) -> Int { r[a] } seti: func (a: Int, b: Int, c: Int, r: ArrayList<Int>) -> Int { a } gtir: func (a: Int, b: Int, c: Int, r: ArrayList<Int>) -> Int { a > r[b] ? 1 : 0 } gtri: func (a: Int, b: Int, c: Int, r: ArrayList<Int>) -> Int { r[a] > b ? 1 : 0 } gtrr: func (a: Int, b: Int, c: Int, r: ArrayList<Int>) -> Int { r[a] > r[b] ? 1 : 0 } eqir: func (a: Int, b: Int, c: Int, r: ArrayList<Int>) -> Int { a == r[b] ? 1 : 0 } eqri: func (a: Int, b: Int, c: Int, r: ArrayList<Int>) -> Int { r[a] == b ? 1 : 0 } eqrr: func (a: Int, b: Int, c: Int, r: ArrayList<Int>) -> Int { r[a] == r[b] ? 1 : 0 } input := FileReader new(stdin) t := 0 while (true) { l := input readLine() if (l empty?()) break pb := Regexp compile("Before: \\[([0-9]+), ([0-9]+), ([0-9]+), ([0-9]+)]") b := ArrayList<Int> new() for ((i, group) in pb matches(l)) if (i) b add(group toInt()) op := Int[4] new() for ((i, n) in input readLine() split(" ")) op[i] = n toInt() pa := Regexp compile("After: \\[([0-9]+), ([0-9]+), ([0-9]+), ([0-9]+)]") a := ArrayList<Int> new() for ((i, group) in pa matches(input readLine())) if (i) a add(group toInt()) input readLine() fs := [ addr, addi, mulr, muli, banr, bani, borr, bori, setr, seti, gtir, gtri, gtrr, eqir, eqri, eqrr ] as ArrayList<Func(Int, Int, Int, ArrayList<Int>) -> Int> c := 0 for (f in fs) if (a[op[3]] == f(op[1], op[2], op[3], b)) c += 1 if (c >= 3) t += 1 } "#{t}" println()
ooc
3
Ashindustry007/competitive-programming
advent-of-code/2018/day16/part1.ooc
[ "WTFPL" ]
HAI 1.3 HOW IZ I code YR n n, WTF? OMG -4, FOUND YR ":"" OMG -3, FOUND YR "::" OMG -2, FOUND YR " OMG " OMG -1, FOUND YR ", FOUND YR " OMG 0, FOUND YR "HAI 1.3" OMG 1, FOUND YR " HOW IZ I code YR n" OMG 2, FOUND YR " n, WTF?" OMG 3, FOUND YR "CODE" OMG 4, FOUND YR " OIC" OMG 5, FOUND YR " IF U SAY SO" OMG 6, FOUND YR " I HAS A q ITZ I IZ code YR -4 MKAY" OMG 7, FOUND YR " I HAS A c ITZ I IZ code YR -3 MKAY" OMG 8, FOUND YR " I HAS A omg ITZ I IZ code YR -2 MKAY" OMG 9, FOUND YR " I HAS A found ITZ I IZ code YR -1 MKAY" OMG 10, FOUND YR " IM IN YR loop1 UPPIN YR i WILE DIFFRINT i AN 28" OMG 11, FOUND YR " BOTH SAEM i AN 3, O RLY?" OMG 12, FOUND YR " YA RLY" OMG 13, FOUND YR " VISIBLE omg -4 found q c q q" OMG 14, FOUND YR " VISIBLE omg -3 found q c c q" OMG 15, FOUND YR " I HAS A j ITZ -2" OMG 16, FOUND YR " IM IN YR loop2" OMG 17, FOUND YR " VISIBLE omg j found q I IZ code YR j MKAY q" OMG 18, FOUND YR " j R SUM OF j AN 1" OMG 19, FOUND YR " BOTH SAEM j AN 28, O RLY?" OMG 20, FOUND YR " YA RLY, GTFO" OMG 21, FOUND YR " OIC" OMG 22, FOUND YR " IM OUTTAA YR loop2" OMG 23, FOUND YR " NO WAI" OMG 24, FOUND YR " VISIBLE I IZ code YR i MKAY" OMG 25, FOUND YR " OIC" OMG 26, FOUND YR " IM OUTTA YR loop1" OMG 27, FOUND YR "KTHXBYE" OIC IF U SAY SO I HAS A q ITZ I IZ code YR -4 MKAY I HAS A c ITZ I IZ code YR -3 MKAY I HAS A omg ITZ I IZ code YR -2 MKAY I HAS A found ITZ I IZ code YR -1 MKAY IM IN YR loop1 UPPIN YR i WILE DIFFRINT i AN 28 BOTH SAEM i AN 3, O RLY? YA RLY VISIBLE omg -4 found q c q q VISIBLE omg -3 found q c c q I HAS A j ITZ -2 IM IN YR loop2 VISIBLE omg j found q I IZ code YR j MKAY q j R SUM OF j AN 1 BOTH SAEM j AN 28, O RLY? YA RLY, GTFO OIC IM OUTTAA YR loop2 NO WAI VISIBLE I IZ code YR i MKAY OIC IM OUTTA YR loop1 KTHXBYE
LOLCODE
3
MakeNowJust/quine
quine.lol
[ "Beerware" ]
#***************************************************************************** # * # Make file for VMS * # Author : J.Jansen ([email protected]) * # Date : 9 October 2009 * # * #***************************************************************************** .first define wx [--.include.wx] .ifdef __WXMOTIF__ CXX_DEFINE = /define=(__WXMOTIF__=1)/name=(as_is,short)\ /assume=(nostdnew,noglobal_array_new)/incl=([],[-]) .else .ifdef __WXGTK__ CXX_DEFINE = /define=(__WXGTK__=1)/float=ieee/name=(as_is,short)/ieee=denorm\ /assume=(nostdnew,noglobal_array_new)/incl=([],[-]) .else .ifdef __WXGTK2__ CXX_DEFINE = /define=(__WXGTK__=1,VMS_GTK2=1)/float=ieee/name=(as_is,short)/ieee=denorm\ /assume=(nostdnew,noglobal_array_new)/incl=([],[-]) .else .ifdef __WXX11__ CXX_DEFINE = /define=(__WXX11__=1,__WXUNIVERSAL__==1)/float=ieee\ /name=(as_is,short)/assume=(nostdnew,noglobal_array_new)/incl=([],[-]) .else CXX_DEFINE = .endif .endif .endif .endif .suffixes : .cpp .cpp.obj : cxx $(CXXFLAGS)$(CXX_DEFINE) $(MMS$TARGET_NAME).cpp all : .ifdef __WXMOTIF__ $(MMS)$(MMSQUALIFIERS) erase.exe .else .ifdef __WXGTK__ $(MMS)$(MMSQUALIFIERS) erase_gtk.exe .else .ifdef __WXGTK2__ $(MMS)$(MMSQUALIFIERS) erase_gtk2.exe .else .ifdef __WXX11__ $(MMS)$(MMSQUALIFIERS) erase_x11.exe .endif .endif .endif .endif OBJS=erase.obj .ifdef __WXMOTIF__ erase.exe : $(OBJS) cxxlink $(OBJS),[--.lib]vms/opt .else .ifdef __WXGTK__ erase_gtk.exe : $(OBJS) cxxlink/exec=erase_gtk.exe $(OBJS),[--.lib]vms_gtk/opt .else .ifdef __WXGTK2__ erase_gtk2.exe : $(OBJS) cxxlink/exec=erase_gtk2.exe $(OBJS),[--.lib]vms_gtk2/opt .else .ifdef __WXX11__ erase_x11.exe : $(OBJS) cxxlink/exec=erase_x11.exe $(OBJS),[--.lib]vms_x11_univ/opt .endif .endif .endif .endif erase.obj : erase.cpp
Module Management System
3
madanagopaltcomcast/pxCore
examples/pxScene2d/external/WinSparkle/3rdparty/wxWidgets/samples/erase/descrip.mms
[ "Apache-2.0" ]
TDTopezLeafNode{#name:'nodes',#contents:'browse class --hier TDNode TDAbstractComposedDirectoryNodeContents TDPathComposedDirectoryEntry',#creationTime:DateAndTime['2013-12-06T17:30:33.25754189491272-08:00'],#modificationTime:DateAndTime['2014-11-07T15:48:07.2476019859314-08:00']}
STON
1
dassi/tode
tode/nodes.ston
[ "MIT" ]
<template> <vue-file :file="`wireframes/${wireframe}`" /> </template> <script> // Extensions import Documentation from './Documentation' // Utilities import { get } from 'vuex-pathify' import { localeLookup } from '@/i18n/util' async function load (route) { const locale = localeLookup(route.params.locale) return import( /* webpackChunkName: "wireframes-view-[request]" */ `@/pages/${locale}/getting-started/wireframes.md` ) } export default { name: 'WireframesView', extends: Documentation, async asyncData ({ route, store }) { const md = await load(route) store.state.pages.md = md }, computed: { wireframe: get('route/params@wireframe') }, } </script>
Vue
4
mark-gene/vuetify
packages/docs/src/views/Wireframes.vue
[ "MIT" ]
//Copyright 2017 Aaron Goodman <[email protected]>. Licensed under the GPLv3 or later. data{ int <lower=0> NSMPL; int <lower=0> replicates; int <lower=0> replicate_samples[replicates]; int <lower=0> value[NSMPL]; vector [NSMPL] time; } transformed data{ vector[NSMPL] value_vec = to_vector(value); vector[NSMPL] time_vec = to_vector(time); int sample_start[replicates]; sample_start[1] = 1; if(replicates > 1) for(i in 2:replicates) sample_start[i] = sample_start[i-1] + replicate_samples[i-1]; } parameters{ real lambda_log; real kappa_log; real mu; real <lower=2> student_df; vector[NSMPL] latent_value_raw; } transformed parameters{ real sigma_log = 0.5*(kappa_log + lambda_log + log2()); real sigma = exp(sigma_log); real lambda = exp(lambda_log); real kappa = exp(kappa_log); real kappa_inv = exp(-kappa_log); real kappa_sqrt = exp(0.5*kappa_log); vector[NSMPL] latent_value; // For each raw latent value, transform it using the // conditional expression for the OU process. for(i in 1:replicates){ int n = replicate_samples[i]; int offset = sample_start[i]; vector [n-1] time_diff = segment(time_vec, offset + 1, n - 1) - segment(time_vec,offset,n-1); real cum_squares = 0; real last_t = -1; real lv; for(k in 0:n-1){ real lv_raw = latent_value_raw[offset + k]; if(k == 0){ //For the first latent value use the stationary distribution. lv = mu + lv_raw * kappa_sqrt; }else{ real t = time_diff[k]; real exp_neg_lambda_t = exp(-t*lambda); real sd_scale = kappa_sqrt .* sqrt(1-square(exp_neg_lambda_t)); lv = mu - (mu - lv) .* exp_neg_lambda_t + lv_raw .* sd_scale; last_t = t; } latent_value[offset+k] = lv; } } } model { target += lambda_log; target += kappa_log; student_df ~ gamma(2,.1); // Increment the log probability according to the conditional expression for // the unit multivariate t-distribution. for(i in 1:replicates){ int n = replicate_samples[i]; int offset = sample_start[i]; vector [n] sq_lv = square(segment(latent_value_raw,offset,n)); vector [n] cum_squares = cumulative_sum(append_row(0,sq_lv[1:n-1])); for(k in 1:NSMPL){ target += (lgamma((student_df + k) * 0.5) - lgamma((student_df+ k - 1 )* 0.5)); target += -0.5 * (student_df + k) * log1p(sq_lv[k] / (student_df + cum_squares[k] - 2)); target += -0.5 * log(student_df + cum_squares[k] - 2); } } // Add the log probability for the observations given the latent values value ~ poisson_log(latent_value); // Prior probabilities. lambda ~ gamma(2,2); kappa ~ gamma(2,2); mu ~ normal(0,5); } generated quantities{ real carrying_capacity = mu + kappa; }
Stan
5
stan-dev/stancon_talks
2018/Contributed-Talks/05_goodman/state_space_noncenter.stan
[ "CC-BY-4.0", "BSD-3-Clause" ]
JsonReaderState struct #RefType { source string index int token JsonToken valueBuilder StringBuilder } JsonToken struct { type JsonTokenType value string } JsonTokenType enum { openBrace closeBrace openBracket closeBracket colon comma stringLiteral otherLiteral } JsonValue tagged_pointer { Map<string, JsonValue> List<JsonValue> *string *JsonOtherValue } JsonOtherValue struct { value string } Json { parse(source string) { s := new JsonReaderState { source: source, index: 0, valueBuilder: new StringBuilder{} } readToken(s) return parseObject(s) } parseValue(s JsonReaderState) JsonValue { if s.token.type == JsonTokenType.openBrace { return parseObject(s) } else if s.token.type == JsonTokenType.openBracket { return parseArray(s) } else if s.token.type == JsonTokenType.stringLiteral { value := s.token.value readToken(s) return new value } else if s.token.type == JsonTokenType.otherLiteral { value := s.token.value readToken(s) return new JsonOtherValue { value: value } } abandon() } parseObject(s JsonReaderState) Map<string, JsonValue> { result := new Map.create<string, JsonValue>() accept(s, JsonTokenType.openBrace) parseSep := false while s.token.type != JsonTokenType.closeBrace { if parseSep { accept(s, JsonTokenType.comma) } else { parseSep = true } key := readStringLiteral(s) accept(s, JsonTokenType.colon) value := parseValue(s) result.add(key, value) } // TODO: Fix hack, add sentinel? assert(s.token.type == JsonTokenType.closeBrace) if s.index < s.source.length { readToken(s) } return result } parseArray(s JsonReaderState) List<JsonValue> { result := new List<JsonValue>{} accept(s, JsonTokenType.openBracket) parseSep := false while s.token.type != JsonTokenType.closeBracket { if parseSep { accept(s, JsonTokenType.comma) } else { parseSep = true } result.add(parseValue(s)) } accept(s, JsonTokenType.closeBracket) return result } accept(s JsonReaderState, type JsonTokenType) { assert(s.token.type == type) readToken(s) } readStringLiteral(s JsonReaderState) { assert(s.token.type == JsonTokenType.stringLiteral) value := s.token.value readToken(s) return value } readToken(s JsonReaderState) { ch := s.source[s.index] while ch == ' ' || ch == '\n' || ch == '\r' || ch == '\t' { s.index += 1 ch = s.source[s.index] } if ch == '{' { s.token = JsonToken { type: JsonTokenType.openBrace } s.index += 1 } else if ch == '}' { s.token = JsonToken { type: JsonTokenType.closeBrace } s.index += 1 } else if ch == '[' { s.token = JsonToken { type: JsonTokenType.openBracket } s.index += 1 } else if ch == ']' { s.token = JsonToken { type: JsonTokenType.closeBracket } s.index += 1 } else if ch == ':' { s.token = JsonToken { type: JsonTokenType.colon } s.index += 1 } else if ch == ',' { s.token = JsonToken { type: JsonTokenType.comma } s.index += 1 } else if ch == '"' { s.index += 1 ch = s.source[s.index] s.valueBuilder.clear() while true { if ch == '"' { s.token = JsonToken { type: JsonTokenType.stringLiteral, value: s.valueBuilder.toString() } s.index += 1 break } else if ch == '\\' { s.index += 1 s.valueBuilder.writeChar(readEscapeSequence(s)) } else { s.valueBuilder.writeChar(ch) s.index += 1 } ch = s.source[s.index] } } else { from := s.index while (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <= '9') || ch == '-' || ch == '+' || ch == '.' { s.index += 1 ch = s.source[s.index] } assert(s.index > from) s.token = JsonToken { type: JsonTokenType.otherLiteral, value: s.source.slice(from, s.index) } } } readEscapeSequence(s JsonReaderState) { from := s.index ch := s.source[s.index] if ch == '"' { s.index += 1 return '"' } else if ch == '\\' { s.index += 1 return '\\' } else if ch == '/' { s.index += 1 return '/' } else if ch == 'n' { s.index += 1 return '\n' } else if ch == 'r' { s.index += 1 return '\r' } else if ch == 't' { s.index += 1 return '\t' } else if ch == 'u' { s.index += 1 ch = s.source[s.index] chars := 0 while chars < 4 && isHexDigit(ch) { s.index += 1 chars += 1 ch = s.source[s.index] } // TODO: convert to utf-8 assert(chars == 4) return transmute(long.tryParseHex(s.source.slice(s.index - 4, s.index)).unwrap(), char) } abandon() } isHexDigit(ch char) { return (ch >= 'A' && ch <= 'F') || (ch >= 'a' && ch <= 'f') || (ch >= '0' && ch <= '9') } escapeString(s string) { rb := StringBuilder{} for i := 0; i < s.length { ch := s[i] code := transmute(ch, uint) if ch == '"' { rb.write("\\\"") } else if ch == '\\' { rb.write("\\\\") } else if ch == '\r' { rb.write("\\r") } else if ch == '\n' { rb.write("\\n") } else if ch == '\t' { rb.write("\\t") } else if 32 <= code && code < 127 { rb.writeChar(ch) } else { rb.write("\\u00") ulong.writeHexTo(code, ref rb) } } return rb.toString() } }
mupad
5
jturner/muon
language_server/json.mu
[ "MIT" ]
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================== """Tests for tensorflow.kernels.listdiff_op.""" import numpy as np from six.moves import xrange # pylint: disable=redefined-builtin from tensorflow.python.framework import dtypes from tensorflow.python.framework import ops from tensorflow.python.ops import array_ops from tensorflow.python.platform import test from tensorflow.python.util import compat _TYPES = [ dtypes.int32, dtypes.int64, dtypes.float32, dtypes.float64, dtypes.string ] class ListDiffTest(test.TestCase): def _testListDiff(self, x, y, out, idx): for dtype in _TYPES: if dtype == dtypes.string: x = [compat.as_bytes(str(a)) for a in x] y = [compat.as_bytes(str(a)) for a in y] out = [compat.as_bytes(str(a)) for a in out] for diff_func in [array_ops.setdiff1d]: for index_dtype in [dtypes.int32, dtypes.int64]: with self.cached_session() as sess: x_tensor = ops.convert_to_tensor(x, dtype=dtype) y_tensor = ops.convert_to_tensor(y, dtype=dtype) out_tensor, idx_tensor = diff_func(x_tensor, y_tensor, index_dtype=index_dtype) tf_out, tf_idx = self.evaluate([out_tensor, idx_tensor]) self.assertAllEqual(tf_out, out) self.assertAllEqual(tf_idx, idx) self.assertEqual(1, out_tensor.get_shape().ndims) self.assertEqual(1, idx_tensor.get_shape().ndims) def testBasic1(self): x = [1, 2, 3, 4] y = [1, 2] out = [3, 4] idx = [2, 3] self._testListDiff(x, y, out, idx) def testBasic2(self): x = [1, 2, 3, 4] y = [2] out = [1, 3, 4] idx = [0, 2, 3] self._testListDiff(x, y, out, idx) def testBasic3(self): x = [1, 4, 3, 2] y = [4, 2] out = [1, 3] idx = [0, 2] self._testListDiff(x, y, out, idx) def testDuplicates(self): x = [1, 2, 4, 3, 2, 3, 3, 1] y = [4, 2] out = [1, 3, 3, 3, 1] idx = [0, 3, 5, 6, 7] self._testListDiff(x, y, out, idx) def testRandom(self): num_random_tests = 10 int_low = -7 int_high = 8 max_size = 50 for _ in xrange(num_random_tests): x_size = np.random.randint(max_size + 1) x = np.random.randint(int_low, int_high, size=x_size) y_size = np.random.randint(max_size + 1) y = np.random.randint(int_low, int_high, size=y_size) out_idx = [(entry, pos) for pos, entry in enumerate(x) if entry not in y] if out_idx: out, idx = map(list, zip(*out_idx)) else: out = [] idx = [] self._testListDiff(list(x), list(y), out, idx) def testFullyOverlapping(self): x = [1, 2, 3, 4] y = [1, 2, 3, 4] out = [] idx = [] self._testListDiff(x, y, out, idx) def testNonOverlapping(self): x = [1, 2, 3, 4] y = [5, 6] out = x idx = np.arange(len(x)) self._testListDiff(x, y, out, idx) def testEmptyX(self): x = [] y = [1, 2] out = [] idx = [] self._testListDiff(x, y, out, idx) def testEmptyY(self): x = [1, 2, 3, 4] y = [] out = x idx = np.arange(len(x)) self._testListDiff(x, y, out, idx) def testEmptyXY(self): x = [] y = [] out = [] idx = [] self._testListDiff(x, y, out, idx) if __name__ == "__main__": test.main()
Python
4
KosingZhu/tensorflow
tensorflow/python/kernel_tests/listdiff_op_test.py
[ "Apache-2.0" ]
import {PreferencesUIStore, WorkspaceStore, ComponentRegistry} from 'nylas-exports'; import PreferencesRoot from './preferences-root'; import PreferencesGeneral from './tabs/preferences-general'; import PreferencesAccounts from './tabs/preferences-accounts'; import PreferencesAppearance from './tabs/preferences-appearance'; import PreferencesKeymaps from './tabs/preferences-keymaps'; // import PreferencesMailRules from './tabs/preferences-mail-rules'; export function activate() { PreferencesUIStore.registerPreferencesTab(new PreferencesUIStore.TabItem({ tabId: 'General', displayName: 'General', component: PreferencesGeneral, order: 1, })) PreferencesUIStore.registerPreferencesTab(new PreferencesUIStore.TabItem({ tabId: 'Accounts', displayName: 'Accounts', component: PreferencesAccounts, order: 2, })) PreferencesUIStore.registerPreferencesTab(new PreferencesUIStore.TabItem({ tabId: 'Appearance', displayName: 'Appearance', component: PreferencesAppearance, order: 4, })) PreferencesUIStore.registerPreferencesTab(new PreferencesUIStore.TabItem({ tabId: 'Shortcuts', displayName: 'Shortcuts', component: PreferencesKeymaps, order: 5, })) // PreferencesUIStore.registerPreferencesTab(new PreferencesUIStore.TabItem({ // tabId: 'Mail Rules', // displayName: 'Mail Rules', // component: PreferencesMailRules, // order: 6, // })) WorkspaceStore.defineSheet('Preferences', {}, { split: ['Preferences'], list: ['Preferences'], }); ComponentRegistry.register(PreferencesRoot, { location: WorkspaceStore.Location.Preferences, }); } export function deactivate() { } export function serialize() { return this.state; }
JSX
4
cnheider/nylas-mail
packages/client-app/internal_packages/preferences/lib/main.jsx
[ "MIT" ]
.//======================================================================= .// Licensed under the Apache License, Version 2.0 (the "License"); you may not .// use this file except in compliance with the License. You may obtain a copy .// of the License at .// .// http://www.apache.org/licenses/LICENSE-2.0 .// .// Unless required by applicable law or agreed to in writing, software .// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT .// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the .// License for the specific language governing permissions and limitations under .// the License. .//==================================================================== .// .// .invoke arc_env = GET_ENV_VAR( "PTC_MC_ARC_DIR" ) .assign mc_archetypes = arc_env.result .if ( mc_archetypes == "" ) .print "\nERROR: Environment variable PTC_MC_ARC_DIR not set." .exit 100 .end if .// .include "${mc_archetypes}/arch_utils.inc" .include "arc/cme_names.inc" .include "arc/function_body.inc" .include "arc/wizard.inc" .include "arc/page.inc" .include "arc/wfl_processing.inc" .include "arc/ui_processing.inc" .include "arc/ui_ident.inc" .// .select many workflows from instances of W_WOF .for each wfl in workflows .select many fields related by wfl->W_STEP[R2005]->W_FLD[R2009] .if (not_empty fields) .invoke wizard_name = get_wizard_class_name(wfl) .invoke result = skip_class_generation(wizard_name.body) .if (result.skip) .// skipping the generation because this file is version controlled .else .invoke wizard = create_wizard(wfl) ${wizard.body} .emit to file "src/org/xtuml/bp/core/ui/${wizard_name.body}.java" .end if .select many steps related by wfl->W_STEP[R2005] .for each step in steps .invoke gpcn = get_page_class_name(wfl, step) .assign page_class_name = gpcn.name .invoke result = skip_class_generation(page_class_name) .if (result.skip) .// skipping the generation because this file is version controlled .else .invoke page = create_page(wfl, step) ${page.body} .emit to file "src/org/xtuml/bp/core/ui/${page.name}.java" .end if .end for .end if .end for
Arc
3
FMAY-Software/bridgepoint
src/org.xtuml.bp.core/arc/wizard.arc
[ "Apache-2.0" ]
<?xml version="1.0" encoding="UTF-8"?> <!-- ******************************************************************* --> <!-- --> <!-- Copyright IBM Corp. 2010, 2014 --> <!-- --> <!-- Licensed under the Apache License, Version 2.0 (the "License"); --> <!-- you may not use this file except in compliance with the License. --> <!-- You may obtain a copy of the License at: --> <!-- --> <!-- http://www.apache.org/licenses/LICENSE-2.0 --> <!-- --> <!-- Unless required by applicable law or agreed to in writing, software --> <!-- distributed under the License is distributed on an "AS IS" BASIS, --> <!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or --> <!-- implied. See the License for the specific language governing --> <!-- permissions and limitations under the License. --> <!-- --> <!-- ******************************************************************* --> <!-- DO NOT EDIT. THIS FILE IS GENERATED. --> <faces-config> <faces-config-extension> <namespace-uri>http://www.ibm.com/xsp/coreex</namespace-uri> <default-prefix>xe</default-prefix> <designer-extension> <control-subpackage-name>outline</control-subpackage-name> </designer-extension> </faces-config-extension> <component> <description>%component.com.ibm.xsp.extlib.outline.AbstractOutline.descr%</description> <display-name>%component.com.ibm.xsp.extlib.outline.AbstractOutline.name%</display-name> <component-type>com.ibm.xsp.extlib.outline.AbstractOutline</component-type> <component-class>com.ibm.xsp.extlib.component.outline.AbstractOutline</component-class> <group-type-ref>com.ibm.xsp.group.core.prop.style</group-type-ref> <group-type-ref>com.ibm.xsp.group.core.prop.styleClass</group-type-ref> <property> <description>%property.treeNodes.descr%</description> <display-name>%property.treeNodes.name%</display-name> <property-name>treeNodes</property-name> <property-class>java.util.List</property-class> <property-extension> <allow-run-time-binding>false</allow-run-time-binding> <collection-property>true</collection-property> <property-item-class>com.ibm.xsp.extlib.tree.ITreeNode</property-item-class> <property-add-method>addNode</property-add-method> <designer-extension> <category>basics</category> </designer-extension> </property-extension> </property> <property> <description>%property.onItemClick.descr%</description> <display-name>%property.onItemClick.name%</display-name> <property-name>onItemClick</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <category>events</category> <event>true</event> <subcategory>outline</subcategory> </designer-extension> </property-extension> </property> <component-extension> <component-family>com.ibm.xsp.extlib.Outline</component-family> <renderer-type>com.ibm.xsp.extlib.outline.OutlineList</renderer-type> <designer-extension> <in-palette>true</in-palette> <category>Extension Library</category> </designer-extension> </component-extension> </component> <component> <description>%component.navigator.descr%</description> <display-name>%component.navigator.name%</display-name> <component-type>com.ibm.xsp.extlib.outline.OutlineNavigator</component-type> <component-class>com.ibm.xsp.extlib.component.outline.UIOutlineNavigator</component-class> <group-type-ref>com.ibm.xsp.extlib.group.aria_label</group-type-ref> <property> <description>%property.expandable.descr%</description> <display-name>%property.expandable.name%</display-name> <property-name>expandable</property-name> <property-class>boolean</property-class> <property-extension> <designer-extension> <category>basics</category> <tags> todo </tags> </designer-extension> </property-extension> </property> <property> <description>%property.expandEffect.descr%</description> <display-name>%property.expandEffect.name%</display-name> <property-name>expandEffect</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <category>basics</category> <editor>com.ibm.workplace.designer.property.editors.comboParameterEditor</editor> <editor-parameter> wipe </editor-parameter> </designer-extension> </property-extension> </property> <property> <description>%property.expandLevel.descr%</description> <display-name>%property.expandLevel.name%</display-name> <property-name>expandLevel</property-name> <property-class>int</property-class> <property-extension> <designer-extension> <category>basics</category> </designer-extension> </property-extension> </property> <property> <description>%property.keepState.descr%</description> <display-name>%property.keepState.name%</display-name> <property-name>keepState</property-name> <property-class>boolean</property-class> <property-extension> <default-value>false</default-value> <since>8.5.32001</since> <designer-extension> <category>basics</category> </designer-extension> </property-extension> </property> <component-extension> <component-family>com.ibm.xsp.extlib.Outline</component-family> <base-component-type>com.ibm.xsp.extlib.outline.AbstractOutline</base-component-type> <renderer-type>com.ibm.xsp.extlib.outline.OutlineMenu</renderer-type> <tag-name>navigator</tag-name> <designer-extension> <in-palette>true</in-palette> <category>Extension Library</category> </designer-extension> </component-extension> </component> <component> <description>%component.breadCrumbs.descr%</description> <display-name>%component.breadCrumbs.name%</display-name> <component-type>com.ibm.xsp.extlib.outline.OutlineBreadCrumbs</component-type> <component-class>com.ibm.xsp.extlib.component.outline.UIOutlineBreadCrumbs</component-class> <property> <description>%property.label.component.breadCrumbs.descr%</description> <display-name>%property.label.component.breadCrumbs.name%</display-name> <property-name>label</property-name> <property-class>java.lang.String</property-class> <property-extension> <localizable>true</localizable> <designer-extension> <category>basics</category> </designer-extension> </property-extension> </property> <component-extension> <component-family>com.ibm.xsp.extlib.Outline</component-family> <base-component-type>com.ibm.xsp.extlib.outline.AbstractOutline</base-component-type> <renderer-type>com.ibm.xsp.extlib.outline.BreadCrumbs</renderer-type> <tag-name>breadCrumbs</tag-name> <designer-extension> <in-palette>true</in-palette> <category>Extension Library</category> </designer-extension> </component-extension> </component> <component> <description>%component.sortLinks.descr%</description> <display-name>%component.sortLinks.name%</display-name> <component-type>com.ibm.xsp.extlib.outline.OutlineSortLinks</component-type> <component-class>com.ibm.xsp.extlib.component.outline.UIOutlineSortLinks</component-class> <component-extension> <component-family>com.ibm.xsp.extlib.Outline</component-family> <base-component-type>com.ibm.xsp.extlib.outline.AbstractOutline</base-component-type> <renderer-type>com.ibm.xsp.extlib.outline.SortLinks</renderer-type> <tag-name>sortLinks</tag-name> <designer-extension> <in-palette>true</in-palette> <category>Extension Library</category> </designer-extension> </component-extension> </component> <component> <description>%component.linksList.descr%</description> <display-name>%component.linksList.name%</display-name> <component-type>com.ibm.xsp.extlib.outline.OutlineLinksList</component-type> <component-class>com.ibm.xsp.extlib.component.outline.UIOutlineLinksList</component-class> <component-extension> <component-family>com.ibm.xsp.extlib.Outline</component-family> <base-component-type>com.ibm.xsp.extlib.outline.AbstractOutline</base-component-type> <renderer-type>com.ibm.xsp.extlib.outline.LinksList</renderer-type> <tag-name>linksList</tag-name> <designer-extension> <in-palette>true</in-palette> <category>Extension Library</category> </designer-extension> </component-extension> </component> <component> <description>%component.accordion.descr%</description> <display-name>%component.accordion.name%</display-name> <component-type>com.ibm.xsp.extlib.outline.OutlineAccordion</component-type> <component-class>com.ibm.xsp.extlib.component.outline.UIOutlineAccordion</component-class> <component-extension> <component-family>com.ibm.xsp.extlib.Outline</component-family> <base-component-type>com.ibm.xsp.extlib.outline.AbstractOutline</base-component-type> <renderer-type>com.ibm.xsp.extlib.outline.OutlineAccordion</renderer-type> <tag-name>accordion</tag-name> <designer-extension> <in-palette>true</in-palette> <category>Extension Library</category> </designer-extension> </component-extension> </component> <component> <description>%component.toolbar.descr%</description> <display-name>%component.toolbar.name%</display-name> <component-type>com.ibm.xsp.extlib.outline.OutlineToolbar</component-type> <component-class>com.ibm.xsp.extlib.component.outline.UIOutlineToolbar</component-class> <property> <description>%property.showButtonLabels.descr%</description> <display-name>%property.showButtonLabels.name%</display-name> <property-name>showButtonLabels</property-name> <property-class>boolean</property-class> <property-extension> <default-value>true</default-value> <designer-extension> <category>basics</category> <tags> runtime-default-true </tags> </designer-extension> </property-extension> </property> <component-extension> <component-family>com.ibm.xsp.extlib.Outline</component-family> <base-component-type>com.ibm.xsp.extlib.outline.AbstractOutline</base-component-type> <renderer-type>com.ibm.xsp.extlib.outline.OutlineToolbar</renderer-type> <tag-name>toolbar</tag-name> <designer-extension> <in-palette>true</in-palette> <category>Extension Library</category> </designer-extension> </component-extension> </component> <component> <description>%component.popupMenu.descr%</description> <display-name>%component.popupMenu.name%</display-name> <component-type>com.ibm.xsp.extlib.outline.OutlinePopupMenu</component-type> <component-class>com.ibm.xsp.extlib.component.outline.UIOutlinePopupMenu</component-class> <component-extension> <component-family>com.ibm.xsp.extlib.Outline</component-family> <base-component-type>com.ibm.xsp.extlib.outline.AbstractOutline</base-component-type> <renderer-type>com.ibm.xsp.extlib.outline.OutlinePopupMenu</renderer-type> <tag-name>popupMenu</tag-name> <designer-extension> <in-palette>true</in-palette> <category>Extension Library</category> </designer-extension> </component-extension> </component> <component> <description>%component.outline.descr%</description> <display-name>%component.outline.name%</display-name> <component-type>com.ibm.xsp.extlib.outline.OutlineGeneric</component-type> <component-class>com.ibm.xsp.extlib.component.outline.UIOutlineGeneric</component-class> <property> <description>%property.treeRenderer.descr%</description> <display-name>%property.treeRenderer.name%</display-name> <property-name>treeRenderer</property-name> <property-class>com.ibm.xsp.extlib.tree.ITreeRenderer</property-class> <property-extension> <allow-run-time-binding>false</allow-run-time-binding> <designer-extension> <category>basics</category> </designer-extension> </property-extension> </property> <component-extension> <component-family>com.ibm.xsp.extlib.Outline</component-family> <base-component-type>com.ibm.xsp.extlib.outline.AbstractOutline</base-component-type> <renderer-type>com.ibm.xsp.extlib.outline.OutlineList</renderer-type> <tag-name>outline</tag-name> <designer-extension> <in-palette>true</in-palette> <category>Extension Library</category> </designer-extension> </component-extension> </component> <component> <description>%component.dropDownButton.descr%</description> <display-name>%component.dropDownButton.name%</display-name> <component-type>com.ibm.xsp.extlib.outline.OutlineDropDownButton</component-type> <component-class>com.ibm.xsp.extlib.component.outline.UIOutlineDropDownButton</component-class> <component-extension> <component-family>com.ibm.xsp.extlib.Outline</component-family> <base-component-type>com.ibm.xsp.extlib.outline.AbstractOutline</base-component-type> <renderer-type>com.ibm.xsp.extlib.outline.OutlineDropDownButton</renderer-type> <tag-name>dropDownButton</tag-name> <designer-extension> <in-palette>true</in-palette> <category>Extension Library</category> </designer-extension> </component-extension> </component> <component> <description>%component.listSeparator.descr%</description> <display-name>%component.listSeparator.name%</display-name> <component-type>com.ibm.xsp.extlib.outline.Separator</component-type> <component-class>com.ibm.xsp.extlib.component.outline.UISeparator</component-class> <component-extension> <component-family>com.ibm.xsp.extlib.Outline</component-family> <renderer-type>com.ibm.xsp.extlib.outline.Separator</renderer-type> <tag-name>listSeparator</tag-name> <designer-extension> <in-palette>true</in-palette> <category>Extension Library</category> <render-markup>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&#xd; &lt;xp:view xmlns:xp="http://www.ibm.com/xsp/core"&gt;&#xd; | &lt;/xp:view&gt;&#xd; </render-markup> </designer-extension> </component-extension> </component> <complex-type> <description>%complex-type.com.ibm.xsp.extlib.tree.ITreeNode.descr%</description> <display-name>%complex-type.com.ibm.xsp.extlib.tree.ITreeNode.name%</display-name> <complex-id>com.ibm.xsp.extlib.tree.ITreeNode</complex-id> <complex-class>com.ibm.xsp.extlib.tree.ITreeNode</complex-class> </complex-type> <complex-type> <description>%complex-type.com.ibm.xsp.extlib.tree.complex.BasicComplexTreeNode.descr%</description> <display-name>%complex-type.com.ibm.xsp.extlib.tree.complex.BasicComplexTreeNode.name%</display-name> <complex-id>com.ibm.xsp.extlib.tree.complex.BasicComplexTreeNode</complex-id> <complex-class>com.ibm.xsp.extlib.tree.complex.BasicComplexTreeNode</complex-class> <group-type-ref>com.ibm.xsp.extlib.group.core_complex.prop.style</group-type-ref> <group-type-ref>com.ibm.xsp.extlib.group.core_complex.prop.styleClass</group-type-ref> <property> <description>%property.label.complex-type.com.ibm.xsp.extlib.tree.complex.BasicComplexTreeNode.descr%</description> <display-name>%property.label.complex-type.com.ibm.xsp.extlib.tree.complex.BasicComplexTreeNode.name%</display-name> <property-name>label</property-name> <property-class>java.lang.String</property-class> <property-extension> <localizable>true</localizable> </property-extension> </property> <property> <description>%property.image.descr%</description> <display-name>%property.image.name%</display-name> <property-name>image</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <editor>com.ibm.workplace.designer.property.editors.ImagePicker</editor> </designer-extension> </property-extension> </property> <property> <description>%property.imageAlt.descr%</description> <display-name>%property.imageAlt.name%</display-name> <property-name>imageAlt</property-name> <property-class>java.lang.String</property-class> <property-extension> <localizable>true</localizable> <designer-extension> <tags> not-image-path </tags> </designer-extension> </property-extension> </property> <property> <description>%property.imageHeight.descr%</description> <display-name>%property.imageHeight.name%</display-name> <property-name>imageHeight</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <editor>com.ibm.workplace.designer.property.editors.comboParameterEditor</editor> <editor-parameter> 50% 30px 10em 2cm auto inherit </editor-parameter> <tags> not-image-path </tags> </designer-extension> </property-extension> </property> <property> <description>%property.imageWidth.descr%</description> <display-name>%property.imageWidth.name%</display-name> <property-name>imageWidth</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <editor>com.ibm.workplace.designer.property.editors.comboParameterEditor</editor> <editor-parameter> 50% 30px 10em 2cm auto inherit </editor-parameter> <tags> not-image-path </tags> </designer-extension> </property-extension> </property> <property> <description>%/com.ibm.xsp.group.aria.role/role/descr%</description> <display-name>%/com.ibm.xsp.group.aria.role/role/name%</display-name> <property-name>role</property-name> <property-class>java.lang.String</property-class> <property-extension/> </property> <property> <description>%/com.ibm.xsp.group.core.prop.title/title/descr%</description> <display-name>%/com.ibm.xsp.group.core.prop.title/title/name%</display-name> <property-name>title</property-name> <property-class>java.lang.String</property-class> <property-extension> <since>8.5.32002</since> <localizable>true</localizable> <designer-extension> <tags>is-accessibility-title</tags> </designer-extension> </property-extension> </property> <property> <description>%property.rendered.complex-type.com.ibm.xsp.extlib.tree.complex.BasicComplexTreeNode.descr%</description> <display-name>%property.rendered.complex-type.com.ibm.xsp.extlib.tree.complex.BasicComplexTreeNode.name%</display-name> <property-name>rendered</property-name> <property-class>boolean</property-class> <property-extension/> </property> <property> <description>%property.enabled.descr%</description> <display-name>%property.enabled.name%</display-name> <property-name>enabled</property-name> <property-class>boolean</property-class> <property-extension/> </property> <property> <description>%property.selected.descr%</description> <display-name>%property.selected.name%</display-name> <property-name>selected</property-name> <property-class>boolean</property-class> <property-extension/> </property> <complex-extension> <base-complex-id>com.ibm.xsp.extlib.tree.ITreeNode</base-complex-id> </complex-extension> </complex-type> <complex-type> <description>%complex-type.basicLeafNode.descr%</description> <display-name>%complex-type.basicLeafNode.name%</display-name> <complex-id>com.ibm.xsp.extlib.tree.complex.ComplexLeafTreeNode</complex-id> <complex-class>com.ibm.xsp.extlib.tree.complex.ComplexLeafTreeNode</complex-class> <property> <description>%property.href.descr%</description> <display-name>%property.href.name%</display-name> <property-name>href</property-name> <property-class>java.lang.String</property-class> <property-extension/> </property> <property> <description>%property.onClick.descr%</description> <display-name>%property.onClick.name%</display-name> <property-name>onClick</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <editor>com.ibm.designer.domino.client.script.editor</editor> </designer-extension> </property-extension> </property> <property> <description>%property.submitValue.descr%</description> <display-name>%property.submitValue.name%</display-name> <property-name>submitValue</property-name> <property-class>java.lang.String</property-class> <property-extension/> </property> <complex-extension> <base-complex-id>com.ibm.xsp.extlib.tree.complex.BasicComplexTreeNode</base-complex-id> <tag-name>basicLeafNode</tag-name> </complex-extension> </complex-type> <complex-type> <description>%complex-type.basicContainerNode.descr%</description> <display-name>%complex-type.basicContainerNode.name%</display-name> <complex-id>com.ibm.xsp.extlib.tree.complex.ComplexContainerTreeNode</complex-id> <complex-class>com.ibm.xsp.extlib.tree.complex.ComplexContainerTreeNode</complex-class> <property> <description>%property.transparent.descr%</description> <display-name>%property.transparent.name%</display-name> <property-name>transparent</property-name> <property-class>boolean</property-class> <property-extension/> </property> <property> <description>%property.expanded.descr%</description> <display-name>%property.expanded.name%</display-name> <property-name>expanded</property-name> <property-class>boolean</property-class> <property-extension> <default-value>true</default-value> <since>8.5.32005</since> </property-extension> </property> <property> <description>%property.children.complex-type.basicContainerNode.descr%</description> <display-name>%property.children.complex-type.basicContainerNode.name%</display-name> <property-name>children</property-name> <property-class>java.util.List</property-class> <property-extension> <allow-run-time-binding>false</allow-run-time-binding> <collection-property>true</collection-property> <property-item-class>com.ibm.xsp.extlib.tree.ITreeNode</property-item-class> <property-add-method>addChild</property-add-method> </property-extension> </property> <complex-extension> <base-complex-id>com.ibm.xsp.extlib.tree.complex.ComplexLeafTreeNode</base-complex-id> <default-property>children</default-property> <tag-name>basicContainerNode</tag-name> </complex-extension> </complex-type> <complex-type> <description>%complex-type.pageTreeNode.descr%</description> <display-name>%complex-type.pageTreeNode.name%</display-name> <complex-id>com.ibm.xsp.extlib.tree.complex.PageTreeNode</complex-id> <complex-class>com.ibm.xsp.extlib.tree.complex.PageTreeNode</complex-class> <property> <description>%property.page.descr%</description> <display-name>%property.page.name%</display-name> <property-name>page</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <editor>com.ibm.workplace.designer.property.editors.PagePicker</editor> </designer-extension> </property-extension> </property> <property> <description>%property.queryString.descr%</description> <display-name>%property.queryString.name%</display-name> <property-name>queryString</property-name> <property-class>java.lang.String</property-class> <property-extension/> </property> <property> <description>%property.selection.descr%</description> <display-name>%property.selection.name%</display-name> <property-name>selection</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <editor>com.ibm.xsp.extlib.designer.tooling.editor.RegularExpressionEditor</editor> </designer-extension> </property-extension> </property> <property> <description>%property.children.complex-type.pageTreeNode.descr%</description> <display-name>%property.children.complex-type.pageTreeNode.name%</display-name> <property-name>children</property-name> <property-class>java.util.List</property-class> <property-extension> <allow-run-time-binding>false</allow-run-time-binding> <collection-property>true</collection-property> <property-item-class>com.ibm.xsp.extlib.tree.ITreeNode</property-item-class> <property-add-method>addChild</property-add-method> </property-extension> </property> <complex-extension> <base-complex-id>com.ibm.xsp.extlib.tree.complex.BasicComplexTreeNode</base-complex-id> <tag-name>pageTreeNode</tag-name> </complex-extension> </complex-type> <complex-type> <description>%complex-type.separatorTreeNode.descr%</description> <display-name>%complex-type.separatorTreeNode.name%</display-name> <complex-id>com.ibm.xsp.extlib.tree.complex.SeparatorTreeNode</complex-id> <complex-class>com.ibm.xsp.extlib.tree.complex.SeparatorTreeNode</complex-class> <group-type-ref>com.ibm.xsp.extlib.group.core_complex.prop.style</group-type-ref> <group-type-ref>com.ibm.xsp.extlib.group.core_complex.prop.styleClass</group-type-ref> <property> <description>%property.rendered.complex-type.separatorTreeNode.descr%</description> <display-name>%property.rendered.complex-type.separatorTreeNode.name%</display-name> <property-name>rendered</property-name> <property-class>boolean</property-class> <property-extension/> </property> <complex-extension> <base-complex-id>com.ibm.xsp.extlib.tree.ITreeNode</base-complex-id> <tag-name>separatorTreeNode</tag-name> </complex-extension> </complex-type> <complex-type> <description>%complex-type.userTreeNode.descr%</description> <display-name>%complex-type.userTreeNode.name%</display-name> <complex-id>com.ibm.xsp.extlib.tree.complex.UserTreeNode</complex-id> <complex-class>com.ibm.xsp.extlib.tree.complex.UserTreeNode</complex-class> <property> <description>%property.userField.descr%</description> <display-name>%property.userField.name%</display-name> <property-name>userField</property-name> <property-class>java.lang.String</property-class> <property-extension/> </property> <complex-extension> <base-complex-id>com.ibm.xsp.extlib.tree.complex.BasicComplexTreeNode</base-complex-id> <tag-name>userTreeNode</tag-name> </complex-extension> </complex-type> <complex-type> <description>%complex-type.repeatTreeNode.descr%</description> <display-name>%complex-type.repeatTreeNode.name%</display-name> <complex-id>com.ibm.xsp.extlib.tree.complex.RepeatTreeNode</complex-id> <complex-class>com.ibm.xsp.extlib.tree.complex.RepeatTreeNode</complex-class> <property> <description>%property.value.descr%</description> <display-name>%property.value.name%</display-name> <property-name>value</property-name> <property-class>java.lang.Object</property-class> <property-extension> <designer-extension/> </property-extension> </property> <property> <description>%property.var.descr%</description> <display-name>%property.var.name%</display-name> <property-name>var</property-name> <property-class>java.lang.String</property-class> <property-extension> <allow-run-time-binding>false</allow-run-time-binding> <designer-extension> <editor>com.ibm.xsp.extlib.designer.tooling.editor.VarNameEditor</editor> </designer-extension> </property-extension> </property> <property> <description>%property.indexVar.descr%</description> <display-name>%property.indexVar.name%</display-name> <property-name>indexVar</property-name> <property-class>java.lang.String</property-class> <property-extension> <allow-run-time-binding>false</allow-run-time-binding> <designer-extension> <editor>com.ibm.xsp.extlib.designer.tooling.editor.VarNameEditor</editor> </designer-extension> </property-extension> </property> <property> <description>%property.children.complex-type.repeatTreeNode.descr%</description> <display-name>%property.children.complex-type.repeatTreeNode.name%</display-name> <property-name>children</property-name> <property-class>java.util.List</property-class> <property-extension> <allow-run-time-binding>false</allow-run-time-binding> <collection-property>true</collection-property> <property-item-class>com.ibm.xsp.extlib.tree.ITreeNode</property-item-class> <property-add-method>addChild</property-add-method> </property-extension> </property> <complex-extension> <base-complex-id>com.ibm.xsp.extlib.tree.ITreeNode</base-complex-id> <tag-name>repeatTreeNode</tag-name> </complex-extension> </complex-type> <complex-type> <description>%complex-type.beanTreeNode.descr%</description> <display-name>%complex-type.beanTreeNode.name%</display-name> <complex-id>com.ibm.xsp.extlib.tree.complex.BeanTreeNode</complex-id> <complex-class>com.ibm.xsp.extlib.tree.complex.BeanTreeNode</complex-class> <property> <description>%property.nodeBean.descr%</description> <display-name>%property.nodeBean.name%</display-name> <property-name>nodeBean</property-name> <property-class>java.lang.String</property-class> <property-extension/> </property> <complex-extension> <base-complex-id>com.ibm.xsp.extlib.tree.ITreeNode</base-complex-id> <tag-name>beanTreeNode</tag-name> </complex-extension> </complex-type> <complex-type> <description>%complex-type.com.ibm.xsp.extlib.tree.ITreeRenderer.descr%</description> <display-name>%complex-type.com.ibm.xsp.extlib.tree.ITreeRenderer.name%</display-name> <complex-id>com.ibm.xsp.extlib.tree.ITreeRenderer</complex-id> <complex-class>com.ibm.xsp.extlib.tree.ITreeRenderer</complex-class> <complex-extension/> </complex-type> <complex-type> <description>%complex-type.com.ibm.xsp.extlib.renderkit.html_extended.outline.tree.HtmlTagsRenderer.descr%</description> <display-name>%complex-type.com.ibm.xsp.extlib.renderkit.html_extended.outline.tree.HtmlTagsRenderer.name%</display-name> <complex-id>com.ibm.xsp.extlib.renderkit.html_extended.outline.tree.HtmlTagsRenderer</complex-id> <complex-class>com.ibm.xsp.extlib.renderkit.html_extended.outline.tree.HtmlTagsRenderer</complex-class> <property> <description>%property.containerStyle.descr%</description> <display-name>%property.containerStyle.name%</display-name> <property-name>containerStyle</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <editor>com.ibm.workplace.designer.property.editors.StylesEditor</editor> </designer-extension> </property-extension> </property> <property> <description>%property.containerStyleClass.descr%</description> <display-name>%property.containerStyleClass.name%</display-name> <property-name>containerStyleClass</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <editor>com.ibm.workplace.designer.property.editors.StyleClassEditor</editor> </designer-extension> </property-extension> </property> <property> <description>%property.itemStyle.descr%</description> <display-name>%property.itemStyle.name%</display-name> <property-name>itemStyle</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <editor>com.ibm.workplace.designer.property.editors.StylesEditor</editor> </designer-extension> </property-extension> </property> <property> <description>%property.itemStyleClass.descr%</description> <display-name>%property.itemStyleClass.name%</display-name> <property-name>itemStyleClass</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <editor>com.ibm.workplace.designer.property.editors.StyleClassEditor</editor> </designer-extension> </property-extension> </property> <property> <description>%property.selectedItemStyle.descr%</description> <display-name>%property.selectedItemStyle.name%</display-name> <property-name>selectedItemStyle</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <editor>com.ibm.workplace.designer.property.editors.StylesEditor</editor> </designer-extension> </property-extension> </property> <property> <description>%property.selectedItemStyleClass.descr%</description> <display-name>%property.selectedItemStyleClass.name%</display-name> <property-name>selectedItemStyleClass</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <editor>com.ibm.workplace.designer.property.editors.StyleClassEditor</editor> </designer-extension> </property-extension> </property> <property> <description>%property.disabledItemStyle.descr%</description> <display-name>%property.disabledItemStyle.name%</display-name> <property-name>disabledItemStyle</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <editor>com.ibm.workplace.designer.property.editors.StylesEditor</editor> </designer-extension> </property-extension> </property> <property> <description>%property.disabledItemStyleClass.descr%</description> <display-name>%property.disabledItemStyleClass.name%</display-name> <property-name>disabledItemStyleClass</property-name> <property-class>java.lang.String</property-class> <property-extension> <designer-extension> <editor>com.ibm.workplace.designer.property.editors.StyleClassEditor</editor> </designer-extension> </property-extension> </property> <complex-extension> <base-complex-id>com.ibm.xsp.extlib.tree.ITreeRenderer</base-complex-id> </complex-extension> </complex-type> <complex-type> <description>%complex-type.htmlListRenderer.descr%</description> <display-name>%complex-type.htmlListRenderer.name%</display-name> <complex-id>com.ibm.xsp.extlib.renderkit.html_extended.outline.tree.HtmlListRenderer</complex-id> <complex-class>com.ibm.xsp.extlib.renderkit.html_extended.outline.tree.HtmlListRenderer</complex-class> <complex-extension> <base-complex-id>com.ibm.xsp.extlib.renderkit.html_extended.outline.tree.HtmlTagsRenderer</base-complex-id> <tag-name>htmlListRenderer</tag-name> </complex-extension> </complex-type> <complex-type> <description>%complex-type.htmlDivSpanRenderer.descr%</description> <display-name>%complex-type.htmlDivSpanRenderer.name%</display-name> <complex-id>com.ibm.xsp.extlib.renderkit.html_extended.outline.tree.HtmlDivSpanRenderer</complex-id> <complex-class>com.ibm.xsp.extlib.renderkit.html_extended.outline.tree.HtmlDivSpanRenderer</complex-class> <complex-extension> <base-complex-id>com.ibm.xsp.extlib.renderkit.html_extended.outline.tree.HtmlTagsRenderer</base-complex-id> <tag-name>htmlDivSpanRenderer</tag-name> </complex-extension> </complex-type> </faces-config>
XPages
2
jesse-gallagher/XPagesExtensionLibrary
extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.controls/src/com/ibm/xsp/extlib/config/extlib-outline.xsp-config
[ "Apache-2.0" ]
<% var x = "hello" %> Prevent this from compiling as x(x), where the two expressions are fused ${x} ${(x)}
Gosu
1
tcmoore32/sheer-madness
gosu-test/src/test/gosu/gw/internal/gosu/template/SeparateExpr.gst
[ "Apache-2.0" ]
fun main () : transaction page = return <xml><body> {[ -1 ]}, {[ 1 + 1 ]}, {[ 9 - 3 ]}, {[ 9 * 3 ]}, {[ 9 / 3 ]}, {[ 9 % 3 ]}<br/> {[ -1.1 ]}, {[ 1.0 + 1.1 ]}, {[ 9.1 - 3.0 ]}, {[ 9.1 * 3.0 ]}, {[ 9.1 / 3.0 ]}, {[ 9.1 % 3.0 ]}<br/> </body></xml>
UrWeb
2
apple314159/urweb
tests/num.ur
[ "BSD-3-Clause" ]
--TEST-- assert() - set callback using ini_set() --INI-- assert.active = 1 assert.warning = 0 assert.callback = assert.bail = 0 assert.exception=0 --FILE-- <?php function a($file, $line, $unused, $desc) { echo "assertion failed - a - $line,\"$desc\"\n"; } function b($file, $line, $unused, $desc) { echo "assertion failed - b - $line,\"$desc\"\n"; } assert_options(ASSERT_ACTIVE,1); assert_options(ASSERT_WARNING,0); $a = 0; assert_options(ASSERT_CALLBACK, "a"); assert($a != 0); /* Modify call back using ini_set() */ ini_set("assert.callback", "b"); assert($a != 0); ?> --EXPECT-- assertion failed - a - 18,"assert($a != 0)" assertion failed - b - 22,"assert($a != 0)"
PHP
3
NathanFreeman/php-src
ext/standard/tests/assert/assert03.phpt
[ "PHP-3.01" ]
package jadx.tests.integration.conditions; import org.junit.jupiter.api.Test; import jadx.NotYetImplemented; import jadx.tests.api.IntegrationTest; public class TestSwitchTryBreak2 extends IntegrationTest { public static class TestCls { public void test(int x) { switch (x) { case 0: return; case 1: String res; if ("android".equals(toString())) { res = "hello"; } else { try { if (x == 5) { break; } res = "hi"; } catch (Exception e) { break; } } System.out.println(res); } System.out.println("returning"); } } @Test @NotYetImplemented public void test() { getClassNode(TestCls.class); } }
Java
2
Dev-kishan1999/jadx
jadx-core/src/test/java/jadx/tests/integration/conditions/TestSwitchTryBreak2.java
[ "Apache-2.0" ]
@0x97d8c9b4831fdcbb; struct Observation { bytesAcked @0 :UInt64; bytesMisordered @1 :UInt64; ecnBytes @2 :UInt64; packetsAcked @3 :UInt64; packetsMisordered @4 :UInt64; ecnPackets @5 :UInt64; loss @6 :UInt64; timeout @7 :Bool; bytesInFlight @8 :UInt64; packetsInFlight @9 :UInt64; bytesPending @10 :UInt64; rtt @11 :UInt64; rin @12 :UInt64; rout @13 :UInt64; } struct Action { rate @0 :UInt32; cwnd @1 :UInt32; } interface RLAgent { getAction @0 (observation :Observation) -> (action :Action); }
Cap'n Proto
3
utkarsh5k/park
park/envs/congestion_control/park/ccp.capnp
[ "MIT" ]
# MMS Description file for xv # Written by Rick Dyson ([email protected]) # Last Modified: 30-APR-1992 for v2.21 # 5-OCT-1992 for v2.21 (export.lcs.mit.edu version # of xv-2.21 seemed to change about # 25-Sep-1992 without version number # changing. # 8-FEB-1993 for v2.21b # ALPHA support is in ALPHA.MMS # 2-MAR-1993 for v3.00 # 15-APR-1993 for v3.00 (DEC C changes) # 25-MAY-1993 merged ALPHA.MMS and MAKEFILE.MMS # 27-APR-1994 for v3.01 # 23-DEC-1994 for v3.10 # # Modeled after the original Unix Makefile for xv # Most of the Unix comments have been left intact to help debug any # problems. # BE SURE TO SET THIS TO YOUR SITE'S DESTINATION DIRECTORY...!!! BINDIR = Sys$Disk:[] # your C compiler (and options) of choice # Remember: if you change the C compiler (to gcc, or whatever), be sure to # do the same thing to the Makefile in the 'jpeg' and 'tiff' subdirectories # # For ALPHA/DEC C users, you must add a MACRO qualifier to the # command line, i.e., # MMS /Description = Makefile.mms /Macro = ("ALPHA=1") # # For VAX/DEC C users, you must add a MACRO qualifier to the # command line, i.e., # MMS /Description = Makefile.mms /Macro = ("DECC=1") # # Users still using the non-MOTIF DECWindows (i.e., XUI) should also # add another macro of "DEC_XUI=1" CC = cc ################ CONFIGURATION OPTIONS ################# # if, for whatever reason, you're unable to get the JPEG library to compile # on your machine, *COMMENT OUT* the following lines. # # Also, comment out the JPEGLIB dependancy below. # # VMS MMS USERS!!! # # if you don't use the JPEG package as supplied with XV, you # will need fill in the complete directory specifications for JPEGDIR. # JPEG = ,HAVE_JPEG JPEGDIR = [.JPEG] JPEGLIB = $(JPEGDIR)LIBJPEG.OLB JPEGINCLUDE = ,$(JPEGDIR) # if, for whatever reason, you're unable to get the TIFF library to compile # on your machine, *COMMENT OUT* the following lines # # Also, comment out the LIBTIFF dependancy at the end of this Makefile # # if you don't use the TIFF package as supplied with XV, you # will need to fill in the complete directory specifications for TIFFDIR. # TIFF = ,HAVE_TIFF TIFFDIR = [.TIFF] TIFFLIB = $(TIFFDIR)LIBTIFF.OLB TIFFINCLUDE = ,$(TIFFDIR) # if, for whatever reason, you're unable to get the PDS/VICAR support # to compile (xvpds.c, and vdcomp.c), *COMMENT OUT* the following line, # and also remove 'vdcomp' from the 'all:' dependancy PDS = ,HAVE_PDS # If you are still using the DECWindows XUI interface, uncomment the # next line. This will help stop the "window creep" problem with this # window mananager .ifdef DEC_XUI XUI = ,HAVE_XUI .endif DEFS = /Define = (VMS$(JPEG)$(PDS)$(TIFF)$(TIMERS)$(XUI)) INCS = /Include = ([]$(JPEGINCLUDE)$(TIFFINCLUDE)) .ifdef ALPHA OPTIMIZE = /Optimize /Standard = VAXC OPTS = Sys$Disk:[]DECC_OPTIONS.OPT .else .ifdef DECC OPTIMIZE = /Optimize /Standard = VAXC /Warnings = NoInformationals OPTS = Sys$Disk:[]DECC_OPTIONS.OPT .else OPTIMIZE = /Optimize OPTS = Sys$Disk:[]VAXC_OPTIONS.OPT .endif .endif DEBUG = /NoDebug CFLAGS = $(CFLAGS) $(DEFS) $(INCS) $(DEBUG) $(OPTIMIZE) LINKFLAGS = $(LINKFLAGS) $(DEBUG) XVLIB = LIBXV.OLB OBJS = xv.obj,xvevent.obj,xvroot.obj,xvmisc.obj,xvimage.obj,xvcolor.obj, \ xvsmooth.obj,xv24to8.obj,xvgif.obj,xvpm.obj,xvinfo.obj,xvctrl.obj, \ xvscrl.obj,xvalg.obj,xvgifwr.obj,xvdir.obj,xvbutt.obj,xvpbm.obj, \ xvxbm.obj,xvgam.obj,xvbmp.obj,xvdial.obj,xvgraf.obj,xvsunras.obj, \ xvjpeg.obj,xvps.obj,xvpopup.obj,xvdflt.obj,xvtiff.obj,xvtiffwr.obj, \ xvpds.obj,xvrle.obj,xviris.obj,xvgrab.obj,xvbrowse.obj,xviff.obj, \ xvtext.obj,xvpcx.obj,xvtarga.obj,xvxpm.obj,xvcut.obj,xvxwd.obj, \ xvfits.obj,vms.obj BITS = [.Bits]annot.h MISC = readme. changelog. ideas. .first .ifdef ALPHA @- Define /NoLog Sys DECC$Library_Include .else .ifdef DECC @- Define /NoLog Sys DECC$Library_Include .else @- Define /NoLog Sys Sys$Library .endif @- Define /NoLog X11 DECW$Include @- XVDIR = F$Environment ("Default") .endif all : $(BITS) $(OPTS) lib xv bggen decompress xcmap xvpictoppm help ! All Finished with the VMS build of XV (v3.10) lib : $(JPEGLIB) $(TIFFLIB) $(XVLIB) @ Continue xv : xv.exe @ Continue bggen : bggen.exe @ Continue xcmap : xcmap.exe @ Continue xvpictoppm : xvpictoppm.exe @ Continue help : xv.hlb @ Continue decompress : decompress.exe vdcomp.exe @ Continue bggen.exe : bggen.obj $(XVLIB) $(OPTS) $(LINK) $(LINKFLAGS) bggen.obj,$(XVLIB)/Library,$(OPTS)/Option xcmap.exe : xcmap.obj $(LINK) $(LINKFLAGS) xcmap.obj,$(XVLIB)/Library,$(OPTS)/Option xvpictoppm.exe : xvpictoppm.obj $(LINK) $(LINKFLAGS) xvpictoppm.obj,$(XVLIB)/Library,$(OPTS)/Option xv.exe : xv.obj $(XVLIB) $(JPEGLIB) $(TIFFLIB) $(OPTS) $(LINK) $(LINKFLAGS) xv.obj,$(XVLIB)/Library,$(JPEGLIB)/Library,$(TIFFLIB)/Library,$(OPTS)/Option $(JPEGLIB) : Set Default $(JPEGDIR) .ifdef ALPHA $(MMS) $(MMSDEFAULTS) /Description = MAKEFILE.MMS /Macro = "ALPHA = 1" LIBJPEG.OLB .else $(MMS) $(MMSDEFAULTS) /Description = MAKEFILE.MMS LIBJPEG.OLB .endif Set Default 'XVDIR' $(TIFFLIB) : Set Default $(TIFFDIR) .ifdef ALPHA $(MMS) $(MMSDEFAULTS) /Description = MAKEFILE.MMS /Macro = "ALPHA = 1" LIBTIFF.OLB .else .ifdef DECC $(MMS) $(MMSDEFAULTS) /Description = MAKEFILE.MMS /Macro = "ALPHA = 1" LIBTIFF.OLB .else $(MMS) $(MMSDEFAULTS) /Description = MAKEFILE.MMS LIBTIFF.OLB .endif .endif Set Default 'XVDIR' $(XVLIB) : $(OBJS) If "''F$Search ("$(XVLIB)")'" .eqs. "" Then Library /Create $(XVLIB) Library /Replace $(XVLIB) $(OBJS) decompress.exe : decompress.obj $(LINK) $(LINKFLAGS) decompress.obj,$(OPTS)/Option vdcomp.exe : vdcomp.obj $(LINK) $(LINKFLAGS) vdcomp.obj,$(OPTS)/Option [.Bits]annot.h : Set Default [.Bits] Set Protection = Owner:RWED *. Rename *. *.H Set Protection = Owner:RWE *.H Set Default [-] # various dependencies $(OBJS) : xv.h config.h xv.hlb : xv.hlp vms.obj : includes.h dirent.h # # Build the linker options file for OpenVMS VAX and VAX C. # Sys$Disk:[]VAXC_Options.opt : @ Open /Write TMP VAXC_Options.opt @ Write TMP "! XV (v3.10) Linker Options list for VMS VAX C" @ Write TMP "!" @ Write TMP "Sys$Disk:[]LibXV.OLB /Library" @ Write TMP "Sys$Disk:[.JPEG]LibJPEG.OLB /Library" @ Write TMP "Sys$Disk:[.TIFF]LibTIFF.OLB /Library" .ifdef DEC_XUI @ Write TMP "!" @ Write TMP "! These were appropriate for VAX C and XUI in the past." @ Write TMP "Sys$Library:DECW$DWTLibShr.exe /Share @ Write TMP "Sys$Library:DECW$XLibShr.exe /Share @ Write TMP "!You may need the next line for VAX C (v3.2-044)" @ Write TMP "!But you don't for DEC C (v4.0-000)" @ Write TMP "Sys$Library:VAXCRTL.EXE /Share" .else @ Write TMP "!" @ Write TMP "! Some of the following libraries may not be available on" @ Write TMP "! older systems, namely XUI or Motif v1.0/1.1" @ Write TMP "! I know they are available for OpenVMS v6.1/Motif v1.2." @ Write TMP "! If you get a report that they can't be found," @ Write TMP "! comment them out and try again..." @ Write TMP "Sys$Library:DECW$DXMLibShr12.exe /Share @ Write TMP "Sys$Library:DECW$XMLibShr12.exe /Share @ Write TMP "Sys$Library:DECW$XTLibShrR5.exe /Share" @ Write TMP "Sys$Library:DECW$XLibShr.exe /Share .endif @ Close TMP Sys$Disk:[]DECC_Options.opt : @ Open /Write TMP DECC_Options.opt @ Write TMP "! XV (v3.10) Linker Options list for VMS DEC C" @ Write TMP "!" @ Write TMP "Sys$Disk:[]LibXV.olb /Library" @ Write TMP "Sys$Disk:[.JPEG]LibJPEG.olb /Library" @ Write TMP "Sys$Disk:[.TIFF]LibTIFF.olb /Library" @ Write TMP "Sys$Library:DECW$XTShr.exe /Share" @ Write TMP "Sys$Library:DECW$XLibShr.exe /Share" @ Close TMP install : xv.exe vdcomp.exe bggen.exe decompress.exe Copy *.exe $(BINDIR) clean : @- Set Protection = Owner:RWED *.obj,*.*;-1 - Delete /NoConfirm /NoLog *.obj;*,*.exe;*,*.log;*,*.olb;*,*.hlb;* - Purge /NoConfirm /NoLog Set Default [.JPEG] $(MMS) /Description = MAKEFILE.MMS clean - Delete /NoConfirm /NoLog *.olb;* Set Default [-.TIFF] $(MMS) /Description = MAKEFILE.MMS clean Set Default [-]
Module Management System
4
JavascriptID/sourcerer-app
src/test/resources/samples/langs/Module Management System/xv_makefile.mms
[ "MIT" ]
// Reinhold P. Weicker, CACM Vol 27, No 10, 10/84 pg. 1013. // // Translated from ADA to C by Rick Richardson. // Every method to preserve ADA-likeness has been used, // at the expense of C-ness. // // Translated from C to Python by Guido van Rossum. // // // Adapted for Grace by Richard Roberts // 2018, June // import "harness" as harness var IDENT_1: Number := 1.asInteger var IDENT_2: Number := 2.asInteger var IDENT_3: Number := 3.asInteger var IDENT_4: Number := 4.asInteger var IDENT_5: Number := 5.asInteger type Record = interface { ptrComp discr enumComp intComp stringComp copy asString } class Record(ptrComp': Record, discr': Number, enumComp': Number, intComp': Number, stringComp': String) -> Record { var ptrComp: Record := ptrComp' var discr: Number := discr' var enumComp: Number := enumComp' var intComp: Number := intComp' var stringComp: String := stringComp' method copy -> Record { Record(ptrComp, discr, enumComp, intComp, stringComp) } method asString -> String { "Record: ptrComp: {ptrComp}\n discr: {discr}\n enumComp: {enumComp}\n intComp: {intComp}\n stringComp: {stringComp}\n" } } method Record -> Record { Record(Done, 0, 0, 0, "") } var intGlob: Number := 0.asInteger var boolGlob: Boolean := false var char1Glob: String := "\\0" var char2_glob: String := "\\0" var array1Glob: List := platform.kernel.Array. new (51.asInteger) withAll { 0.asInteger } var array2Glob: List := platform.kernel.Array. new (51.asInteger) withAll { array1Glob } var ptrGlb: Record // -------------------------------------------------------------------------------------------------------------- // Procedures method proc0(innerIterations: Number) -> Done { ptrGlb := Record ptrGlb.ptrComp := Record ptrGlb.discr := IDENT_1 ptrGlb.enumComp := IDENT_3 ptrGlb.intComp := 40.asInteger ptrGlb.stringComp := "DHRYSTONE PROGRAM, SOME STRING" var string1Loc: String var string2Loc: String var intLoc1: Number var intLoc2: Number var intLoc3: Number var enumLoc: Number string1Loc := "DHRYSTONE PROGRAM, 1'ST STRING" array2Glob.at(9.asInteger).at (8.asInteger) put (10.asInteger) 1.asInteger.to(innerIterations) do { i: Number -> proc5 proc4 intLoc1 := 2.asInteger intLoc2 := 3.asInteger string2Loc := "DHRYSTONE PROGRAM, 2'ND STRING" enumLoc := IDENT_2 boolGlob := !(func2(string1Loc, string2Loc)) { intLoc1 < intLoc2 }.whileTrue { intLoc3 := 5.asInteger * intLoc1 - intLoc2 intLoc3 := proc7(intLoc1, intLoc2) intLoc1 := intLoc1 + 1.asInteger } proc8(array1Glob, array2Glob, intLoc1, intLoc3) ptrGlb := proc1(ptrGlb) var charIndex: String := "A" { charIndex <= char2_glob }. whileTrue { (enumLoc == func1(charIndex, "C")). ifTrue { enumLoc := proc6(IDENT_1) } charIndex := (charIndex.codepointAt(1.asInteger) + 1.asInteger).asCodepointString } intLoc3 := intLoc2 * intLoc1 intLoc2 := intLoc3 / intLoc1 intLoc2 := 7.asInteger * (intLoc3 - intLoc2) - intLoc1 intLoc1 := proc2(intLoc1) } } method proc1(ptrParIn': Record) -> Record { var ptrParIn: Record := ptrParIn' var tmpPtr: Record := ptrGlb.copy() ptrParIn.ptrComp := tmpPtr var nextRecord: Record := tmpPtr ptrParIn.intComp := 5.asInteger nextRecord.intComp := ptrParIn.intComp nextRecord.ptrComp := ptrParIn.ptrComp nextRecord.ptrComp := proc3(nextRecord.ptrComp) (nextRecord.discr == IDENT_1).ifTrue { nextRecord.intComp := 6.asInteger nextRecord.enumComp := proc6(ptrParIn.enumComp) nextRecord.ptrComp := ptrGlb.ptrComp nextRecord.intComp := proc7(nextRecord.intComp, 10.asInteger) } ifFalse { ptrParIn := nextRecord.copy() } nextRecord.ptrComp := Done ptrParIn } method proc2(intParIO': Number) -> Number { var intParIO: Number := intParIO' var intLoc: Number := intParIO + 10.asInteger var enumLoc: Number { true }. whileTrue { (char1Glob == "A").ifTrue { intLoc := intLoc - 1 intParIO := intLoc - intGlob enumLoc := IDENT_1 } (enumLoc == IDENT_1).ifTrue { return intParIO } } } method proc3(ptrParOut': Record) -> Record { var ptrParOut: Record := ptrParOut' (!ptrGlb.isNil).ifTrue { ptrParOut := ptrGlb.ptrComp } ifFalse { intGlob := 100.asInteger } ptrGlb.intComp := proc7(10.asInteger, intGlob) ptrParOut } method proc4 -> Done { var boolLoc: Boolean := char1Glob == "A" var boolLoc: Boolean := boolLoc || boolGlob char2_glob := "B" Done } method proc5 -> Done { char1Glob := "A" boolGlob := false Done } method proc6(enumParIn: Number) -> Number { var enumParOut: Number := enumParIn func3(enumParIn).ifFalse { enumParOut := IDENT_4 } (enumParIn == IDENT_1).ifTrue { return IDENT_1 } (enumParIn == IDENT_2).ifTrue { return (intGlob > 100).ifTrue { IDENT_1 } ifFalse { IDENT_4 } } (enumParIn == IDENT_3).ifTrue { return IDENT_2 } (enumParIn == IDENT_4).ifTrue { } (enumParIn == IDENT_5).ifTrue { return IDENT_3 } enumParOut } method proc7(intParI1: Number, intParI2: Number) -> Number { var intLoc: Number := intParI1 + 2.asInteger var intParOut: Number := intParI2 + intLoc intParOut } method proc8(array1Par: List, array2Par: List, intParI1: Number, intParI2: Number) -> Done { var intLoc: Number := intParI1 + 5.asInteger array1Par .at (intLoc + 1.asInteger ) put( intParI2 ) array1Par .at (intLoc + 2.asInteger ) put( array1Par.at(intLoc + 1.asInteger) ) array1Par .at (intLoc + 31.asInteger ) put( intLoc ) intLoc.to(intLoc + 1.asInteger) do { intIndex: Number -> array2Par.at (intLoc + 1.asInteger).at (intIndex + 1.asInteger) put (intLoc) } array2Par.at ( intLoc + 1.asInteger ) .at (intLoc) put( array2Par.at (intLoc + 1.asInteger).at(intLoc) + 1.asInteger ) array2Par.at ( intLoc + 21.asInteger ) .at (intLoc + 1.asInteger) put( array1Par.at (intLoc + 1.asInteger) ) intGlob := 5.asInteger Done } // // -------------------------------------------------------------------------------------------------------------- // -------------------------------------------------------------------------------------------------------------- // Functions method func1(charPar1: String, charPar2: String) -> Number { var charLoc1: String := charPar1 var charLoc2: String := charLoc1 (charLoc2 != charPar2).ifTrue { return IDENT_1 } ifFalse { return IDENT_2 } } method func2(strParI1: String, strParI2: String) -> Boolean { var intLoc: Number := 1.asInteger var charLoc: String {intLoc <= 1}. whileTrue { (func1(strParI1.charAt(intLoc + 1.asInteger), strParI2.charAt(intLoc + 2.asInteger)) == IDENT_1).ifTrue { charLoc := "A" intLoc := intLoc + 1.asInteger } } ((charLoc >= "W") && (charLoc <= "Z")).ifTrue { intLoc := 7.asInteger } (charLoc == "X"). ifTrue { return true } ifFalse { (strParI1 > strParI2). ifTrue { intLoc := intLoc + 7.asInteger return true } ifFalse { return false } } } method func3(enumParIn: Number) -> Boolean { var enumLoc: Number := enumParIn return (enumLoc == IDENT_3).ifTrue { true } ifFalse { false } } class newPyStone -> Benchmark { inherit harness.newBenchmark method innerBenchmarkLoop(innerIterations: Number) -> Boolean { proc0(innerIterations) // print("intGlob: {intGlob}") // print("boolGlob: {boolGlob}") // print("char1Glob: {char1Glob}") // print("char2_glob: {char2_glob}") // print("array1Glob: {array1Glob}") // print("array2Glob: {array2Glob}") // print("ptrGlb: {ptrGlb}") true } } method newInstance -> Benchmark { newPyStone }
Grace
3
smarr/moth-benchmarks
benchmarks/Moth/PyStone.grace
[ "MIT" ]
module chapter6/memory/checkCache [Addr, Data] open chapter6/memory/cacheMemory [Addr, Data] as cache open chapter6/memory/abstractMemory [Addr, Data] as amemory fun alpha [c: CacheSystem]: Memory { {m: Memory | m.data = c.main ++ c.cache} } // This check should not produce a counterexample ReadOK: check { // introduction of m, m1 ensures that they exist, and gives witnesses if counterexample all c: CacheSystem, a: Addr, d: Data, m: Memory | cache/read [c, a, d] and m = alpha [c] => amemory/read [m, a, d] } // This check should not produce a counterexample WriteOK: check { all c, c1: CacheSystem, a: Addr, d: Data, m, m1: Memory | cache/write [c, c1, a, d] and m = alpha [c] and m1 = alpha [c1] => amemory/write [m, m1, a, d] } // This check should not produce a counterexample LoadOK: check { all c, c1: CacheSystem, m, m1: Memory | cache/load [c, c1] and m = alpha [c] and m1 = alpha [c1] => m = m1 } // This check should not produce a counterexample FlushOK: check { all c, c1: CacheSystem, m, m1: Memory | cache/flush [c, c1] and m = alpha [c] and m1 = alpha [c1] => m = m1 }
Alloy
4
haslab/Electrum
electrum/src/main/resources/models/book/chapter6/memory/checkCache.als
[ "MIT" ]
#pragma once #include <torch/csrc/jit/codegen/cuda/arith.h> #include <torch/csrc/jit/codegen/cuda/ops/composite.h> #include <torch/csrc/jit/codegen/cuda/ops/normalization.h>
C
0
xiaohanhuang/pytorch
torch/csrc/jit/codegen/cuda/ops/all_ops.h
[ "Intel" ]
module decorators_demo import typechecker @check(isInteger(), isDouble()) (isDouble()) function IntPlusDouble = |a,b| { return a + b } function main = |args| { let a = IntPlusDouble(5, 6.9) println(a) let b = IntPlusDouble(5.3, 6.9) println(b) }
Golo
4
TypeUnsafe/golo-tour
07-golo.06.RivieraJUG/04-golo-s-touch/sandbox/10-b-decorators-check-type.golo
[ "MIT" ]
*** Settings *** Resource rebot_resource.robot *** Variables *** ${INPUTFILE} %{TEMPDIR}${/}rebot-test-rmkw.xml *** Keywords *** Keyword Should Be Empty [Arguments] ${kw} ${name} @{args} Should End With ${kw.doc} _Keyword data removed using --RemoveKeywords option._ Check Keyword Name And Args ${kw} ${name} @{args} Should Be Empty ${kw.body} IF Branch Should Be Empty [Arguments] ${branch} ${type} ${condition}=${None} Should Be Equal ${branch.doc} _Keyword data removed using --RemoveKeywords option._ Should Be Equal ${branch.type} ${type} Should Be Equal ${branch.condition} ${condition} Should Be Empty ${branch.body} FOR Loop Should Be Empty [Arguments] ${loop} ${flavor} Should Be Equal ${loop.doc} _Keyword data removed using --RemoveKeywords option._ Should Be Equal ${loop.type} FOR Should Be Equal ${loop.flavor} ${flavor} Should Be Empty ${loop.body} Keyword Should Not Be Empty [Arguments] ${kw} ${name} @{args} Check Keyword Name And Args ${kw} ${name} @{args} ${num_keywords}= Get Length ${kw.kws} ${num_messages}= Get Length ${kw.messages} Should Be True ${num_keywords} + ${num_messages} > 0 Check Keyword Name And Args [Arguments] ${kw} ${name} @{args} Should Be Equal ${kw.name} ${name} Lists Should Be Equal ${kw.args} ${args}
RobotFramework
4
rdagum/robotframework
atest/robot/cli/rebot/remove_keywords/remove_keywords_resource.robot
[ "ECL-2.0", "Apache-2.0" ]
:- style_check( all ). :- use_module(library(gecode/clpfd)). :- use_module(library(maplist)). t0 :- test0(X), writeln(X). test0(X) :- X in 1..10, X #= 2. t1 :- test1(X), writeln(X), fail. t1. test1(X) :- X in 1..10, Y in 3..7, Z in 1..4, X / Y #= Z, labeling([], [X]). t2 :- test2(X), writeln(X), fail. t2. test2(X) :- X in 1..10, X / 4 #= 2, labeling([], [X]). t3 :- test3(X), writeln(X), fail. t3. test3(A) :- A = [X,Y,Z], A ins 1..4, Y #> 2, lex_chain(A), all_different(A), labeling([], [X,Y,Z]). t4 :- test4(X), writeln(X), fail. t4. test4(A) :- A = [X,Y,Z], A ins 1..4, Y #> 2, Z #> 3, lex_chain(A), min(A, 1), all_different(A), labeling([], [X,Y,Z]). t5 :- test5(X), writeln(X), fail. t5. test5(A) :- A = [X,_Y,_Z], A ins 0..1, in_relation( A, [[0,0,0],[0,1,0],[1,0,0]] ), X #> 0, labeling([], A). t6 :- test6(X), writeln(X), fail. t6. test6(A+B) :- A = [X,_Y,_Z], B = [X1,Y1,Z1], A ins 0..1, B ins 0..1, extensional_constraint([[0,0,0],[0,1,0],[1,0,0]], C), in_relation( A, C ), in_relation( B, C ), X #> 0, X1 #< X, Y1 #\= Z1, labeling([], A), labeling([], B). t7 :- test7(X), writeln(X), fail. t7. test7(A) :- A = [X,_Y,_Z], A ins 0..1, in_dfa( A, 0, [t(0,0,0),t(0,1,1),t(1,0,0),t(-1,0,0)], [0]), X #> 0, labeling([], A). t8 :- test8(X), writeln(X), fail. t8. test8(A+B) :- A = [X,_Y,_Z,_W], B = [X1,Y1,Z1,_W1], A ins 0..1, B ins 0..1, dfa( 0, [t(0,0,0),t(0,1,1),t(1,0,0),t(-1,0,0)], [0], C), in_dfa( A, C ), in_dfa( B, C ), X #> 0, X1 #< X, Y1 #\= Z1, labeling([], A), labeling([], B). t9 :- test9(M), X <== list(M), writeln(X), fail. t9. test9(X) :- X = array[1..2, 1..2] of 0..3, all_different(X), X[1,1] #< X[1,2], X[2,1] #< X[2,2], X[1,1] #< X[2,1], labeling( [], X ). t10 :- test10(M), X <== list(M), writeln(X), fail. t10. test10(X) :- X = array[1..2, 1..2] of 0..3, all_different(X), X[1,1] #< X[1,2], X[2,1] #< X[2,2], X[1,1] #< X[2,1], Z in 0..20, Z #= sum( [I in 1..2, J in 1..2] where (I = 2, J = 2), X[I,J]), maximize(Z), labeling( [ff], X ). t11 :- test11(X), writeln(X), fail. t11. test11(X) :- length(X, 3), X ins 1..3, X #<, labeling( [], X ). t12 :- test12(X), writeln(X), fail. t12. test12(X) :- length(X, 3), X ins 1..3, X #>, labeling( [max,max_step], X ). t13 :- test13(X), writeln(X), fail. t13. test13(X) :- length(X, 3), X ins 1..3, X #\=, count(X, 1) #= 1, labeling( [max,max_step], X ). t14 :- test14(X), writeln(X), fail. t14. test14(X) :- X = [A,B,C], boolvars(X), 1 #= ( A<=>(B \/ C) ), labeling( [max,max_step], X ). t15 :- test15(X), writeln(X), fail. t15. test15(X) :- X = [A,B,C], boolvars(X), clause(or,[B],[A],1), clause(or,[C],[B],1), A #= 1, labeling( [max,max_step], X ).
Prolog
4
ryandesign/yap
packages/gecode/clp_examples/test.yap
[ "Artistic-1.0-Perl", "ClArtistic" ]
<?xml version='1.0' encoding='UTF-8'?> <Project Type="Project" LVVersion="13008000"> <Property Name="NI.LV.All.SourceOnly" Type="Bool">true</Property> <Property Name="NI.Project.Description" Type="Str"></Property> <Item Name="My Computer" Type="My Computer"> <Property Name="server.app.propertiesEnabled" Type="Bool">true</Property> <Property Name="server.control.propertiesEnabled" Type="Bool">true</Property> <Property Name="server.tcp.enabled" Type="Bool">false</Property> <Property Name="server.tcp.port" Type="Int">0</Property> <Property Name="server.tcp.serviceName" Type="Str">My Computer/VI Server</Property> <Property Name="server.tcp.serviceName.default" Type="Str">My Computer/VI Server</Property> <Property Name="server.vi.callsEnabled" Type="Bool">true</Property> <Property Name="server.vi.propertiesEnabled" Type="Bool">true</Property> <Property Name="specify.custom.address" Type="Bool">false</Property> <Item Name="About.vi" Type="VI" URL="../About.vi"/> <Item Name="Alpha Transparency and Z-Order.vi" Type="VI" URL="../Alpha Transparency and Z-Order.vi"/> <Item Name="ArrayView.vi" Type="VI" URL="../ArrayView.vi"/> <Item Name="Bar Plot.vi" Type="VI" URL="../Bar Plot.vi"/> <Item Name="Color Cycle.vi" Type="VI" URL="../Color Cycle.vi"/> <Item Name="Colormaps and Colorbars.vi" Type="VI" URL="../Colormaps and Colorbars.vi"/> <Item Name="Contour Plot (Filled).vi" Type="VI" URL="../Contour Plot (Filled).vi"/> <Item Name="Contour Plot.vi" Type="VI" URL="../Contour Plot.vi"/> <Item Name="EndUserLicenseAgreement.rtf" Type="Document" URL="../EndUserLicenseAgreement.rtf"/> <Item Name="Error Bars.vi" Type="VI" URL="../Error Bars.vi"/> <Item Name="Error.vi" Type="VI" URL="../Error.vi"/> <Item Name="ExportDemos.vi" Type="VI" URL="../ExportDemos.vi"/> <Item Name="Getting Started.vi" Type="VI" URL="../Getting Started.vi"/> <Item Name="Histogram 2D.vi" Type="VI" URL="../Histogram 2D.vi"/> <Item Name="Histogram.vi" Type="VI" URL="../Histogram.vi"/> <Item Name="Icon.ico" Type="Document" URL="../Icon.ico"/> <Item Name="IconInstall.ico" Type="Document" URL="../IconInstall.ico"/> <Item Name="Legend.vi" Type="VI" URL="../Legend.vi"/> <Item Name="Line Plot.vi" Type="VI" URL="../Line Plot.vi"/> <Item Name="LogScales.vi" Type="VI" URL="../LogScales.vi"/> <Item Name="Performance.vi" Type="VI" URL="../Performance.vi"/> <Item Name="Polar Plots.vi" Type="VI" URL="../Polar Plots.vi"/> <Item Name="Resizing.vi" Type="VI" URL="../Resizing.vi"/> <Item Name="Saving to Disk.vi" Type="VI" URL="../Saving to Disk.vi"/> <Item Name="Scatter.vi" Type="VI" URL="../Scatter.vi"/> <Item Name="Shapes.vi" Type="VI" URL="../Shapes.vi"/> <Item Name="Splash.vi" Type="VI" URL="../Splash.vi"/> <Item Name="StandaloneDemo.vi" Type="VI" URL="../StandaloneDemo.vi"/> <Item Name="Streamlines.vi" Type="VI" URL="../Streamlines.vi"/> <Item Name="Text Markup.vi" Type="VI" URL="../Text Markup.vi"/> <Item Name="Tile Plot.vi" Type="VI" URL="../Tile Plot.vi"/> <Item Name="Vector Field.vi" Type="VI" URL="../Vector Field.vi"/> <Item Name="Dependencies" Type="Dependencies"> <Item Name="vi.lib" Type="Folder"> <Item Name="Advanced Plotting Toolkit.lvlib" Type="Library" URL="/&lt;vilib&gt;/Heliosphere Research LLC/Advanced Plotting Toolkit/Advanced Plotting Toolkit.lvlib"/> <Item Name="Check Color Table Size.vi" Type="VI" URL="/&lt;vilib&gt;/picture/jpeg.llb/Check Color Table Size.vi"/> <Item Name="Check Data Size.vi" Type="VI" URL="/&lt;vilib&gt;/picture/jpeg.llb/Check Data Size.vi"/> <Item Name="Check File Permissions.vi" Type="VI" URL="/&lt;vilib&gt;/picture/jpeg.llb/Check File Permissions.vi"/> <Item Name="Check if File or Folder Exists.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Check if File or Folder Exists.vi"/> <Item Name="Check Path.vi" Type="VI" URL="/&lt;vilib&gt;/picture/jpeg.llb/Check Path.vi"/> <Item Name="Clear Errors.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Clear Errors.vi"/> <Item Name="Color to RGB.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/colorconv.llb/Color to RGB.vi"/> <Item Name="Create Directory Recursive.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Create Directory Recursive.vi"/> <Item Name="Directory of Top Level VI.vi" Type="VI" URL="/&lt;vilib&gt;/picture/jpeg.llb/Directory of Top Level VI.vi"/> <Item Name="Draw 1-Bit Pixmap.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw 1-Bit Pixmap.vi"/> <Item Name="Draw 4-Bit Pixmap.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw 4-Bit Pixmap.vi"/> <Item Name="Draw 8-Bit Pixmap.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw 8-Bit Pixmap.vi"/> <Item Name="Draw Flattened Pixmap.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw Flattened Pixmap.vi"/> <Item Name="Draw True-Color Pixmap.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw True-Color Pixmap.vi"/> <Item Name="Draw Unflattened Pixmap.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw Unflattened Pixmap.vi"/> <Item Name="Error Cluster From Error Code.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Error Cluster From Error Code.vi"/> <Item Name="Escape Characters for HTTP.vi" Type="VI" URL="/&lt;vilib&gt;/printing/PathToURL.llb/Escape Characters for HTTP.vi"/> <Item Name="ex_CorrectErrorChain.vi" Type="VI" URL="/&lt;vilib&gt;/express/express shared/ex_CorrectErrorChain.vi"/> <Item Name="FixBadRect.vi" Type="VI" URL="/&lt;vilib&gt;/picture/pictutil.llb/FixBadRect.vi"/> <Item Name="Flatten Pixmap.vi" Type="VI" URL="/&lt;vilib&gt;/picture/pixmap.llb/Flatten Pixmap.vi"/> <Item Name="Get System Directory.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/sysdir.llb/Get System Directory.vi"/> <Item Name="imagedata.ctl" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/imagedata.ctl"/> <Item Name="NI_FileType.lvlib" Type="Library" URL="/&lt;vilib&gt;/Utility/lvfile.llb/NI_FileType.lvlib"/> <Item Name="NI_PackedLibraryUtility.lvlib" Type="Library" URL="/&lt;vilib&gt;/Utility/LVLibp/NI_PackedLibraryUtility.lvlib"/> <Item Name="NI_Unzip.lvlib" Type="Library" URL="/&lt;vilib&gt;/zip/NI_Unzip.lvlib"/> <Item Name="Open URL in Default Browser (path).vi" Type="VI" URL="/&lt;vilib&gt;/Platform/browser.llb/Open URL in Default Browser (path).vi"/> <Item Name="Open URL in Default Browser (string).vi" Type="VI" URL="/&lt;vilib&gt;/Platform/browser.llb/Open URL in Default Browser (string).vi"/> <Item Name="Open URL in Default Browser core.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/browser.llb/Open URL in Default Browser core.vi"/> <Item Name="Open URL in Default Browser.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/browser.llb/Open URL in Default Browser.vi"/> <Item Name="Path To Command Line String.vi" Type="VI" URL="/&lt;vilib&gt;/AdvancedString/Path To Command Line String.vi"/> <Item Name="Path to URL.vi" Type="VI" URL="/&lt;vilib&gt;/printing/PathToURL.llb/Path to URL.vi"/> <Item Name="PathToUNIXPathString.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/CFURL.llb/PathToUNIXPathString.vi"/> <Item Name="subFile Dialog.vi" Type="VI" URL="/&lt;vilib&gt;/express/express input/FileDialogBlock.llb/subFile Dialog.vi"/> <Item Name="System Directory Type.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/sysdir.llb/System Directory Type.ctl"/> <Item Name="System Exec.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/system.llb/System Exec.vi"/> <Item Name="Write PNG File.vi" Type="VI" URL="/&lt;vilib&gt;/picture/png.llb/Write PNG File.vi"/> </Item> <Item Name="kernel32.dll" Type="Document" URL="kernel32.dll"> <Property Name="NI.PreserveRelativePath" Type="Bool">true</Property> </Item> </Item> <Item Name="Build Specifications" Type="Build"> <Item Name="Advanced Plotting Toolkit Demo" Type="EXE"> <Property Name="App_copyErrors" Type="Bool">true</Property> <Property Name="App_INI_aliasGUID" Type="Str">{A11117FE-1390-4D2B-ABFC-FAB46FC75A3C}</Property> <Property Name="App_INI_GUID" Type="Str">{E943557F-1312-42F5-956F-4BE2ECA4B4A2}</Property> <Property Name="App_serverConfig.httpPort" Type="Int">8002</Property> <Property Name="Bld_autoIncrement" Type="Bool">true</Property> <Property Name="Bld_buildCacheID" Type="Str">{32908095-2B35-468B-AD5B-56CC22A7BDAC}</Property> <Property Name="Bld_buildSpecName" Type="Str">Advanced Plotting Toolkit Demo</Property> <Property Name="Bld_excludeInlineSubVIs" Type="Bool">true</Property> <Property Name="Bld_excludeLibraryItems" Type="Bool">true</Property> <Property Name="Bld_excludePolymorphicVIs" Type="Bool">true</Property> <Property Name="Bld_localDestDir" Type="Path">../export/NI_AB_PROJECTNAME/demo</Property> <Property Name="Bld_localDestDirType" Type="Str">relativeToCommon</Property> <Property Name="Bld_modifyLibraryFile" Type="Bool">true</Property> <Property Name="Bld_previewCacheID" Type="Str">{FE5FABF9-1991-4761-A16D-77DA2CE4CCEA}</Property> <Property Name="Bld_supportedLanguage[0]" Type="Str">English</Property> <Property Name="Bld_supportedLanguageCount" Type="Int">1</Property> <Property Name="Bld_version.build" Type="Int">6</Property> <Property Name="Bld_version.major" Type="Int">1</Property> <Property Name="Destination[0].destName" Type="Str">Advanced Plotting Toolkit Demo.exe</Property> <Property Name="Destination[0].path" Type="Path">../export/NI_AB_PROJECTNAME/demo/Advanced Plotting Toolkit Demo.exe</Property> <Property Name="Destination[0].preserveHierarchy" Type="Bool">true</Property> <Property Name="Destination[0].type" Type="Str">App</Property> <Property Name="Destination[1].destName" Type="Str">Support Directory</Property> <Property Name="Destination[1].path" Type="Path">../export/NI_AB_PROJECTNAME/demo/data</Property> <Property Name="DestinationCount" Type="Int">2</Property> <Property Name="Exe_iconItemID" Type="Ref">/My Computer/Icon.ico</Property> <Property Name="Source[0].itemID" Type="Str">{758AD9C7-E327-4164-9C22-2AD6C2F5D691}</Property> <Property Name="Source[0].type" Type="Str">Container</Property> <Property Name="Source[1].destinationIndex" Type="Int">0</Property> <Property Name="Source[1].itemID" Type="Ref">/My Computer/StandaloneDemo.vi</Property> <Property Name="Source[1].sourceInclusion" Type="Str">TopLevel</Property> <Property Name="Source[1].type" Type="Str">VI</Property> <Property Name="Source[2].destinationIndex" Type="Int">0</Property> <Property Name="Source[2].itemID" Type="Ref">/My Computer/Bar Plot.vi</Property> <Property Name="Source[2].sourceInclusion" Type="Str">Include</Property> <Property Name="Source[2].type" Type="Str">VI</Property> <Property Name="SourceCount" Type="Int">3</Property> <Property Name="TgtF_companyName" Type="Str">Heliosphere Research LLC</Property> <Property Name="TgtF_fileDescription" Type="Str">Advanced Plotting Toolkit Demo</Property> <Property Name="TgtF_internalName" Type="Str">Advanced Plotting Toolkit Demo</Property> <Property Name="TgtF_legalCopyright" Type="Str">Copyright © 2014 Heliosphere Research LLC</Property> <Property Name="TgtF_productName" Type="Str">Advanced Plotting Toolkit Demo</Property> <Property Name="TgtF_targetfileGUID" Type="Str">{4FE73DAE-EC74-48DC-81C2-A06DD4F95B14}</Property> <Property Name="TgtF_targetfileName" Type="Str">Advanced Plotting Toolkit Demo.exe</Property> </Item> <Item Name="Advanced Plotting Toolkit Demo Installer" Type="Installer"> <Property Name="Destination[0].name" Type="Str">Advanced Plotting Toolkit Demo App</Property> <Property Name="Destination[0].parent" Type="Str">{3912416A-D2E5-411B-AFEE-B63654D690C0}</Property> <Property Name="Destination[0].tag" Type="Str">{B68E84B0-0889-410F-909B-913B3A099F93}</Property> <Property Name="Destination[0].type" Type="Str">userFolder</Property> <Property Name="DestinationCount" Type="Int">1</Property> <Property Name="DistPart[0].flavorID" Type="Str">DefaultFull</Property> <Property Name="DistPart[0].productID" Type="Str">{E9EB082F-B0AE-4212-8072-27628D246DA5}</Property> <Property Name="DistPart[0].productName" Type="Str">NI LabVIEW Run-Time Engine 2013 SP1 f2</Property> <Property Name="DistPart[0].SoftDep[0].exclude" Type="Bool">true</Property> <Property Name="DistPart[0].SoftDep[0].productName" Type="Str">NI LabVIEW 2013 SP1 Run-Time Engine Non-English Support.</Property> <Property Name="DistPart[0].SoftDep[0].upgradeCode" Type="Str">{DDE96050-C9ED-4EAC-B310-5EA217776FEA}</Property> <Property Name="DistPart[0].SoftDep[1].exclude" Type="Bool">true</Property> <Property Name="DistPart[0].SoftDep[1].productName" Type="Str">NI ActiveX Container</Property> <Property Name="DistPart[0].SoftDep[1].upgradeCode" Type="Str">{1038A887-23E1-4289-B0BD-0C4B83C6BA21}</Property> <Property Name="DistPart[0].SoftDep[10].exclude" Type="Bool">true</Property> <Property Name="DistPart[0].SoftDep[10].productName" Type="Str">NI Error Reporting 2013</Property> <Property Name="DistPart[0].SoftDep[10].upgradeCode" Type="Str">{42E818C6-2B08-4DE7-BD91-B0FD704C119A}</Property> <Property Name="DistPart[0].SoftDep[2].exclude" Type="Bool">true</Property> <Property Name="DistPart[0].SoftDep[2].productName" Type="Str">NI System Web Server 13.0</Property> <Property Name="DistPart[0].SoftDep[2].upgradeCode" Type="Str">{FCF64B73-B7D4-4971-8F11-24BAF7CC3E6C}</Property> <Property Name="DistPart[0].SoftDep[3].exclude" Type="Bool">true</Property> <Property Name="DistPart[0].SoftDep[3].productName" Type="Str">Math Kernel Libraries</Property> <Property Name="DistPart[0].SoftDep[3].upgradeCode" Type="Str">{EA05DCF9-F239-4387-8904-04D678031F6B}</Property> <Property Name="DistPart[0].SoftDep[4].exclude" Type="Bool">true</Property> <Property Name="DistPart[0].SoftDep[4].productName" Type="Str">NI Logos 5.5</Property> <Property Name="DistPart[0].SoftDep[4].upgradeCode" Type="Str">{5E4A4CE3-4D06-11D4-8B22-006008C16337}</Property> <Property Name="DistPart[0].SoftDep[5].exclude" Type="Bool">true</Property> <Property Name="DistPart[0].SoftDep[5].productName" Type="Str">NI TDM Streaming 2.4</Property> <Property Name="DistPart[0].SoftDep[5].upgradeCode" Type="Str">{4CD11BE6-6BB7-4082-8A27-C13771BC309B}</Property> <Property Name="DistPart[0].SoftDep[6].exclude" Type="Bool">true</Property> <Property Name="DistPart[0].SoftDep[6].productName" Type="Str">NI LabVIEW 2013 Web Server</Property> <Property Name="DistPart[0].SoftDep[6].upgradeCode" Type="Str">{A66A5CC8-EEB5-4982-8B92-F591AF36060E}</Property> <Property Name="DistPart[0].SoftDep[7].exclude" Type="Bool">true</Property> <Property Name="DistPart[0].SoftDep[7].productName" Type="Str">NI LabVIEW 2013 Real-Time NBFifo</Property> <Property Name="DistPart[0].SoftDep[7].upgradeCode" Type="Str">{76E4763E-0DC4-4195-BC50-084193FFA84B}</Property> <Property Name="DistPart[0].SoftDep[8].exclude" Type="Bool">false</Property> <Property Name="DistPart[0].SoftDep[8].productName" Type="Str">NI VC2008MSMs</Property> <Property Name="DistPart[0].SoftDep[8].upgradeCode" Type="Str">{FDA3F8BB-BAA9-45D7-8DC7-22E1F5C76315}</Property> <Property Name="DistPart[0].SoftDep[9].exclude" Type="Bool">false</Property> <Property Name="DistPart[0].SoftDep[9].productName" Type="Str">NI VC2010MSMs</Property> <Property Name="DistPart[0].SoftDep[9].upgradeCode" Type="Str">{EFBA6F9E-F934-4BD7-AC51-60CCA480489C}</Property> <Property Name="DistPart[0].SoftDepCount" Type="Int">11</Property> <Property Name="DistPart[0].upgradeCode" Type="Str">{A661D981-0A3B-4081-A5B5-1FAA03CFAF84}</Property> <Property Name="DistPartCount" Type="Int">1</Property> <Property Name="INST_author" Type="Str">Heliosphere Research LLC</Property> <Property Name="INST_autoIncrement" Type="Bool">true</Property> <Property Name="INST_buildLocation" Type="Path">../export/staging_installer</Property> <Property Name="INST_buildLocation.type" Type="Str">relativeToCommon</Property> <Property Name="INST_buildSpecName" Type="Str">Advanced Plotting Toolkit Demo Installer</Property> <Property Name="INST_defaultDir" Type="Str">{B68E84B0-0889-410F-909B-913B3A099F93}</Property> <Property Name="INST_productName" Type="Str">Advanced Plotting Toolkit Demo App</Property> <Property Name="INST_productVersion" Type="Str">1.0.6</Property> <Property Name="InstSpecBitness" Type="Str">32-bit</Property> <Property Name="InstSpecVersion" Type="Str">13018020</Property> <Property Name="MSI_arpCompany" Type="Str">Heliosphere Research LLC</Property> <Property Name="MSI_distID" Type="Str">{31F11DF0-4484-4711-BCF1-AD1CDBD02107}</Property> <Property Name="MSI_licenseID" Type="Ref">/My Computer/EndUserLicenseAgreement.rtf</Property> <Property Name="MSI_osCheck" Type="Int">2</Property> <Property Name="MSI_upgradeCode" Type="Str">{D61F420E-351C-41A9-82D6-6633561BE8A8}</Property> <Property Name="RegDest[0].dirName" Type="Str">Software</Property> <Property Name="RegDest[0].dirTag" Type="Str">{DDFAFC8B-E728-4AC8-96DE-B920EBB97A86}</Property> <Property Name="RegDest[0].parentTag" Type="Str">2</Property> <Property Name="RegDestCount" Type="Int">1</Property> <Property Name="Source[0].dest" Type="Str">{B68E84B0-0889-410F-909B-913B3A099F93}</Property> <Property Name="Source[0].File[0].dest" Type="Str">{B68E84B0-0889-410F-909B-913B3A099F93}</Property> <Property Name="Source[0].File[0].name" Type="Str">Advanced Plotting Toolkit Demo.exe</Property> <Property Name="Source[0].File[0].Shortcut[0].destIndex" Type="Int">0</Property> <Property Name="Source[0].File[0].Shortcut[0].name" Type="Str">Advanced Plotting Toolkit Demo</Property> <Property Name="Source[0].File[0].Shortcut[0].subDir" Type="Str">Advanced Plotting Toolkit</Property> <Property Name="Source[0].File[0].Shortcut[1].destIndex" Type="Int">1</Property> <Property Name="Source[0].File[0].Shortcut[1].name" Type="Str">Advanced Plotting Toolkit Demo</Property> <Property Name="Source[0].File[0].Shortcut[1].subDir" Type="Str"></Property> <Property Name="Source[0].File[0].ShortcutCount" Type="Int">2</Property> <Property Name="Source[0].File[0].tag" Type="Str">{4FE73DAE-EC74-48DC-81C2-A06DD4F95B14}</Property> <Property Name="Source[0].FileCount" Type="Int">1</Property> <Property Name="Source[0].name" Type="Str">Advanced Plotting Toolkit Demo</Property> <Property Name="Source[0].tag" Type="Ref">/My Computer/Build Specifications/Advanced Plotting Toolkit Demo</Property> <Property Name="Source[0].type" Type="Str">EXE</Property> <Property Name="SourceCount" Type="Int">1</Property> </Item> </Item> </Item> </Project>
LabVIEW
1
advancedplotting/aplot
examples/Examples.lvproj
[ "BSD-3-Clause" ]
// Copyright 2021 The Google Research Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #if GOOGLE_CUDA #define EIGEN_USE_GPU // For definition of Eigen::GpuDevice. #include "sparse/ops/cc/bias_relu_launcher.h" #include "sparse/ops/cc/common.h" #include "sputnik/sputnik.h" namespace sgk { void LaunchBiasRelu(const Eigen::GpuDevice& device, int n, int c, int d, const float* in, const float* bias, float* out) { CUDA_CALL(sputnik::BiasRelu(n, c, d, in, bias, out, device.stream())); } } // namespace sgk #endif // GOOGLE_CUDA
C++
3
deepneuralmachine/google-research
sgk/sparse/ops/cc/bias_relu_launcher.cu.cc
[ "Apache-2.0" ]
# Check that use of isolate option prevents shifted stride detection domain: "{ A[i,j] : 0 <= i < 100 and 0 <= j < 2; B[i,j] : 0 <= i < 100 and 0 <= j < 2 }" child: schedule: "[{ A[i,j] -> [2i]; B[i,j] -> [2i+1] }, { A[i,j] -> [j]; B[i,j] -> [j]}]" options: "{ isolate[[] -> [x, y]] : 10 <= x < 90 }"
Smalltalk
2
chelini/isl-haystack
test_inputs/codegen/isolate5.st
[ "MIT" ]
.class public Lothers/TestIncorrectMethodSignature; .super Ljava/lang/RuntimeException; .source "TestIncorrectMethodSignature.java" .method public constructor <init>(Ljava/lang/String;)V .registers 2 .annotation system Ldalvik/annotation/Signature; value = { "(J)V" } .end annotation invoke-direct {p0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V return-void .end method
Smali
3
Dev-kishan1999/jadx
jadx-core/src/test/smali/others/TestIncorrectMethodSignature.smali
[ "Apache-2.0" ]
--- page-header: RTL mode menu: home rtl: true title: RTL mode layout: homepage ---
HTML
1
muhginanjar/tabler
src/pages/layout-rtl.html
[ "MIT" ]
% Abstract given nonterminals from potential clones - C function version % Jim Cordy, May 2010 % Using Gnu C grammar include "c.grm" % Redefinition for potential clones redefine function_definition [function_header] [opt KR_parameter_decls] '{ [IN][NL] [compound_statement_body] [EX] '} end redefine define potential_clone [function_definition] end define % Generic abstract include "generic-abstract.txl"
TXL
4
coder-chenzhi/SQA
SourcererCC/parser/java/txl/c-abstract-functions.txl
[ "Apache-2.0" ]
<?xml version="1.0" encoding="UTF-8"?> <!-- ******************************************************************* --> <!-- --> <!-- © Copyright IBM Corp. 2010, 2011 --> <!-- --> <!-- Licensed under the Apache License, Version 2.0 (the "License"); --> <!-- you may not use this file except in compliance with the License. --> <!-- You may obtain a copy of the License at: --> <!-- --> <!-- http://www.apache.org/licenses/LICENSE-2.0 --> <!-- --> <!-- Unless required by applicable law or agreed to in writing, software --> <!-- distributed under the License is distributed on an "AS IS" BASIS, --> <!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or --> <!-- implied. See the License for the specific language governing --> <!-- permissions and limitations under the License. --> <!-- --> <!-- ******************************************************************* --> <faces-config> <faces-config-extension> <namespace-uri>http://www.ibm.com/xsp/coreex</namespace-uri> <default-prefix>xe</default-prefix> <designer-extension> <control-subpackage-name>dialog</control-subpackage-name> </designer-extension> </faces-config-extension> <component> <description>The Dialog control is a modal dialog that displays its content in a popup dialog</description> <display-name>Dialog</display-name> <component-type>com.ibm.xsp.extlib.dialog.Dialog</component-type> <component-class>com.ibm.xsp.extlib.component.dialog.UIDialog</component-class> <group-type-ref>com.ibm.xsp.extlib.dynamiccontent.events</group-type-ref> <property> <description>Defines if the controls (JSF components) should be kept in the server-side control tree after the dialog is closed</description> <display-name>Keep Controls</display-name> <property-name>keepComponents</property-name> <property-class>boolean</property-class> <property-extension> <default-value>true</default-value> <designer-extension> <category>basics</category> </designer-extension> </property-extension> </property> <component-extension> <base-component-type>com.ibm.xsp.extlib.dojo.layout.ContentPane</base-component-type> <component-family>com.ibm.xsp.extlib.Dialog</component-family> <renderer-type>com.ibm.xsp.extlib.dialog.Dialog</renderer-type> <tag-name>dialog</tag-name> <designer-extension> <in-palette>true</in-palette> <category>Extension Library</category> </designer-extension> </component-extension> </component> <component> <!-- if we can't make it accessible,possible delete it as we won't release it--> <description>A tooltip dialog is a modal dialog that can contain controls and is closed by clicking anywhere on screen</description> <display-name>Tooltip Dialog</display-name> <component-type>com.ibm.xsp.extlib.dialog.TooltipDialog</component-type> <component-class>com.ibm.xsp.extlib.component.dialog.UITooltipDialog</component-class> <component-extension> <base-component-type>com.ibm.xsp.extlib.dialog.Dialog</base-component-type> <component-family>com.ibm.xsp.extlib.Dialog</component-family> <renderer-type>com.ibm.xsp.extlib.dialog.TooltipDialog</renderer-type> <tag-name>tooltipDialog</tag-name> <designer-extension> <in-palette>true</in-palette> <category>Extension Library</category> <tags>todo</tags> </designer-extension> </component-extension> </component> <component> <description>The bottom panel in a dialog that holds the dialog buttons which you need to add as children to this control</description> <display-name>Dialog Button Bar</display-name> <component-type>com.ibm.xsp.extlib.dialog.DialogButtonBar</component-type> <component-class>com.ibm.xsp.extlib.component.dialog.UIDialogButtonBar</component-class> <group-type-ref>com.ibm.xsp.group.core.prop.style</group-type-ref> <group-type-ref>com.ibm.xsp.group.core.prop.styleClass</group-type-ref> <component-extension> <component-family>com.ibm.xsp.extlib.Dialog</component-family> <renderer-type>com.ibm.xsp.extlib.dialog.DialogButtonBar</renderer-type> <tag-name>dialogButtonBar</tag-name> <designer-extension> <in-palette>true</in-palette> <category>Extension Library</category> <tags>todo</tags> </designer-extension> </component-extension> </component> <component> <description>The content panel in a dialog. It is automatically styled with the appropriate theme.</description> <display-name>Dialog Content</display-name> <component-type>com.ibm.xsp.extlib.dialog.DialogContent</component-type> <component-class>com.ibm.xsp.extlib.component.dialog.UIDialogContent</component-class> <group-type-ref>com.ibm.xsp.group.core.prop.style</group-type-ref> <group-type-ref>com.ibm.xsp.group.core.prop.styleClass</group-type-ref> <component-extension> <component-family>com.ibm.xsp.extlib.Dialog</component-family> <renderer-type>com.ibm.xsp.extlib.dialog.DialogContent</renderer-type> <tag-name>dialogContent</tag-name> <since>8.5.32001</since> <designer-extension> <in-palette>true</in-palette> <category>Extension Library</category> <tags>todo</tags> </designer-extension> </component-extension> </component> </faces-config>
XPages
4
jesse-gallagher/XPagesExtensionLibrary
extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.controls/src/com/ibm/xsp/extlib/config/raw-extlib-dialog.xsp-config
[ "Apache-2.0" ]
<div> <!-- display: inline --> <p>Long Long Long Long Long Long Long Long Long Long Long Long Long Long Long Long Long Long</p> </div>
HTML
0
fuelingtheweb/prettier
tests/html_magic_comments/display.html
[ "MIT" ]
a { value: \2cx }
CSS
1
mengxy/swc
crates/swc_css_parser/tests/fixture/esbuild/misc/DrlXteRB-ppLVxi4_N4dhA/input.css
[ "Apache-2.0" ]
<html> <body> <h2 id="redirfrag">Redir</h2> </body> </html>
HTML
3
mbc-git/rust
src/tools/linkchecker/tests/valid/inner/redir-target.html
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
Rebol [ Title: "Combine" Date: 28-March-2014 ; or thereabouts Author: "Brian Dickens" Version: 1.0.0 Type: module Name: hostilefork.combine Exports: [ combine ] ] combine: func [ {Combine evaluated expressions and substitute block variables to produce a string} block [block! any-string!] "Specification to process" /with "Add delimiter between values (will be combined if a block)" delimiter [block! any-string! char!] /into "Insert output into an existing string instead of making a new one" out [any-string!] /local value pre-delimit needs-delimiter ][ out: any [out make string! 10] unless block? block [ block: reduce [block] ] if block? delimiter [ delimiter: combine delimiter ] needs-delimiter: none pre-delimit: does [ either needs-delimiter [ out: append out delimiter ][ needs-delimiter: true? with ] ] ; Do evaluation of the block until a non-none evaluation result ; is found... or the end of the input is reached. ; while [not tail? block] [ try/except [ value: do/next block 'block ][ do system/state/last-error ] ; Blocks are substituted in evaluation, like the recursive nature ; of parse rules. ; switch/default type?/word :value [ unset! none! [] function! [ do make error! "Evaluation in COMBINE gave function" ] block! [ pre-delimit out: combine/into value out ] paren! path! set-path! get-path! lit-path! [ do make error! "Evaluation in COMBINE gave non-block! block" ] word! set-word! get-word! lit-word! refinement! [ do make error! join "Evaluation in COMBINE gave symbolic word: " mold value ] ][ pre-delimit append out (form :value) ] ] either into [ out ][ head out ] ]
Rebol
5
rgchris/Scripts
r3-alpha/combine.r3
[ "Apache-2.0" ]
package io.swagger.client.model { import io.swagger.common.ListWrapper; public class CategoryList implements ListWrapper { // This declaration below of _Category_obj_class is to force flash compiler to include this class private var _category_obj_class: io.swagger.client.model.Category = null; [XmlElements(name="category", type="io.swagger.client.model.Category")] public var category: Array = new Array(); public function getList(): Array{ return category; } } }
ActionScript
4
wwadge/swagger-codegen
samples/client/petstore/flash/flash/src/io/swagger/client/model/CategoryList.as
[ "Apache-2.0" ]
from fastapi import FastAPI from pydantic import BaseModel from typing import Optional app = FastAPI() # temp database fakedb = [] # course model to store courses class Course(BaseModel): id: int name: str price: float is_early_bird: Optional[bool] = None # Home/welcome route @app.get("/") def read_root(): return {"greetings": "Welcome to LearnCodeOnline.in"} # Get all courses @app.get("/courses") def get_courses(): return fakedb # get single course @app.get("/courses/{course_id}") def get_a_course(course_id: int): course = course_id - 1 return fakedb[course] # add a new course @app.post("/courses") def add_course(course: Course): fakedb.append(course.dict()) return fakedb[-1] # delete a course @app.delete("/courses/{course_id}") def delete_course(course_id: int): fakedb.pop(course_id-1) return {"task": "deletion successful"}
Python
5
nicetone/Python
fastapi.py
[ "MIT" ]
BdJ@@
PureBasic
0
pchandrasekaran1595/onnx
onnx/backend/test/data/simple/test_gradient_of_add_and_mul/test_data_set_0/output_0.pb
[ "Apache-2.0" ]
# This file is distributed under the same license as the Django package. # # Translators: # Jafry Hisham, 2021 msgid "" msgstr "" "Project-Id-Version: django\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-01-15 09:00+0100\n" "PO-Revision-Date: 2021-11-16 14:09+0000\n" "Last-Translator: Jafry Hisham\n" "Language-Team: Malay (http://www.transifex.com/django/django/language/ms/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: ms\n" "Plural-Forms: nplurals=1; plural=0;\n" msgid "Administrative Documentation" msgstr "Dokumentasi Pentadbiran" msgid "Home" msgstr "Utama" msgid "Documentation" msgstr "Dokumentasi" msgid "Bookmarklets" msgstr "Penanda" msgid "Documentation bookmarklets" msgstr "Dokumentasi penanda" msgid "" "To install bookmarklets, drag the link to your bookmarks toolbar, or right-" "click the link and add it to your bookmarks. Now you can select the " "bookmarklet from any page in the site." msgstr "" "Untuk memasang penanda, heret pautan ke palang-alat penanda-buku, atau klik-" "kanan pada pautan dan tambahkan ke penanda-buku anda. Kini anda boleh " "memilih penanda itu daripada mana-mana ruangan di laman." msgid "Documentation for this page" msgstr "Dokumentasi untuk ruangan ini" msgid "" "Jumps you from any page to the documentation for the view that generates " "that page." msgstr "" "Membawa anda daripada mana-mana ruangan kepada dokumentasi bagi pemandangan " "yang menjana ruang itu." msgid "Tags" msgstr "Tag-tag" msgid "List of all the template tags and their functions." msgstr "Senarai kesemua tag templat dan fungsiannya." msgid "Filters" msgstr "Tapisan" msgid "" "Filters are actions which can be applied to variables in a template to alter " "the output." msgstr "" "Tapisan adalah tindakan yang boleh digunakan pada pembolehubah didalam " "templat untuk mengubah outputnya." msgid "Models" msgstr "Model-model" msgid "" "Models are descriptions of all the objects in the system and their " "associated fields. Each model has a list of fields which can be accessed as " "template variables" msgstr "" "Model-model adalah penerangan bagi semua objek-objek didalam sistem dan " "medan-medan yang berkaitan. Setiap model mempunyai senarai medan-medan yang " "boleh diakses sebagai tempat pembolehubah." msgid "Views" msgstr "Pemandangan" msgid "" "Each page on the public site is generated by a view. The view defines which " "template is used to generate the page and which objects are available to " "that template." msgstr "" "Setiap ruangan pada laman awan dihasilkan daripada pemandangan. Pemandangan " "menakrifkan templat mana yang diguna-pakai untuk menghasilkan ruangan itu " "dan objek mana yang boleh digunakan bersama templat itu." msgid "Tools for your browser to quickly access admin functionality." msgstr "" "Alat-alat untuk pelayar anda untuk mengakses fungsian pentadbiran secara " "pantas." msgid "Please install docutils" msgstr "Sila pasang docutils" #, python-format msgid "" "The admin documentation system requires Python’s <a href=\"%(link)s" "\">docutils</a> library." msgstr "" "Sistem dokumentasi pentadbiran memerlukan perpustakaan <a href=\"%(link)s" "\">docutils</a> Python." #, python-format msgid "" "Please ask your administrators to install <a href=\"%(link)s\">docutils</a>." msgstr "" "Sila mohon pada pentadbir-pentadbir anda untuk memasang <a href=\"%(link)s" "\">docutils</a>." #, python-format msgid "Model: %(name)s" msgstr "Model: %(name)s" msgid "Fields" msgstr "Medan-medan" msgid "Field" msgstr "Medan" msgid "Type" msgstr "Jenis" msgid "Description" msgstr "Penerangan" msgid "Methods with arguments" msgstr "Kaedah dengan argumen" msgid "Method" msgstr "Kaedah" msgid "Arguments" msgstr "Argumen" msgid "Back to Model documentation" msgstr "Patah balik ke dokumentasi Model" msgid "Model documentation" msgstr "Dokumentasi Model" msgid "Model groups" msgstr "Kumpulan-kumpulan Model" msgid "Templates" msgstr "Templat-templat" #, python-format msgid "Template: %(name)s" msgstr "Templat: %(name)s" #, python-format msgid "Template: <q>%(name)s</q>" msgstr "Templat: <q>%(name)s</q>" #. Translators: Search is not a verb here, it qualifies path (a search path) #, python-format msgid "Search path for template <q>%(name)s</q>:" msgstr "Cari laluan untuk templat <q>%(name)s</q>:" msgid "(does not exist)" msgstr "(tidak wujud)" msgid "Back to Documentation" msgstr "Patah balik ke Dokumentasi" msgid "Template filters" msgstr "Penapisan templat" msgid "Template filter documentation" msgstr "Dokumentasi penapisan templat" msgid "Built-in filters" msgstr "Penapisan terbina-dalam" #, python-format msgid "" "To use these filters, put <code>%(code)s</code> in your template before " "using the filter." msgstr "" "Untuk menggunakan tapisan-tapisan ini, letakkan <code>%(code)s</code> " "didalam templat anda sebelum menggunakan tapisan itu." msgid "Template tags" msgstr "Tag-tag templat" msgid "Template tag documentation" msgstr "Dokumentasi tag templat" msgid "Built-in tags" msgstr "Tag-tag terbina-dalam" #, python-format msgid "" "To use these tags, put <code>%(code)s</code> in your template before using " "the tag." msgstr "" "Untuk menggunakan tag-tag ini, letakkan <code>%(code)s</code> didalam " "templat anda sebelum menggunakan tag itu." #, python-format msgid "View: %(name)s" msgstr "Pemandagan: %(name)s" msgid "Context:" msgstr "Konteks:" msgid "Templates:" msgstr "Templat-templat:" msgid "Back to View documentation" msgstr "Patah balik ke Dokumentasi Pemandangan" msgid "View documentation" msgstr "Dokumentasi Pemandangan" msgid "Jump to namespace" msgstr "Lompat ke ruangnama" msgid "Empty namespace" msgstr "Ruangnama koson" #, python-format msgid "Views by namespace %(name)s" msgstr "Pemandangan berdasakran ruangnama %(name)s" msgid "Views by empty namespace" msgstr "Pemandangan berdasarkan ruangnama kosong" #, python-format msgid "" "\n" " View function: <code>%(full_name)s</code>. Name: <code>%(url_name)s</" "code>.\n" msgstr "" "\n" "Fungsi Pemandangan: <code>%(full_name)s</code>. Name: <code>%(url_name)s</" "code>.\n" msgid "tag:" msgstr "tag:" msgid "filter:" msgstr "tapis:" msgid "view:" msgstr "lihat:" #, python-format msgid "App %(app_label)r not found" msgstr "App %(app_label)r tidak dijumpai" #, python-format msgid "Model %(model_name)r not found in app %(app_label)r" msgstr "Model %(model_name)r tidak dijumpai didalam app %(app_label)r" msgid "model:" msgstr "model:" #, python-format msgid "the related `%(app_label)s.%(data_type)s` object" msgstr "objek `%(app_label)s.%(data_type)s` berkaitan" #, python-format msgid "related `%(app_label)s.%(object_name)s` objects" msgstr "objek-objek `%(app_label)s.%(object_name)s` berkaitan" #, python-format msgid "all %s" msgstr "semua %s" #, python-format msgid "number of %s" msgstr "bilangan %s" #, python-format msgid "%s does not appear to be a urlpattern object" msgstr "%s nampaknya bukan objek urlpattern"
Gettext Catalog
3
Joshua-Barawa/My-Photos
venv/lib/python3.8/site-packages/django/contrib/admindocs/locale/ms/LC_MESSAGES/django.po
[ "PostgreSQL", "Unlicense" ]
// input: [] // output: 121 package { public class ClassCall { public static function main():int{ var f:OtherClass = new OtherClass(); return f.func(100,20); } } } class OtherClass { public function func(x: int, y: int):int { return x+y+1; } }
ActionScript
3
hackarada/youtube-dl
test/swftests/ClassCall.as
[ "Unlicense" ]
sleep 2 t app appmode photo_burst sleep 1 t app burst_settings 30-3 sleep 1 t app button shutter PR sleep 9 t app button power P sleep 2 t app button power R
AGS Script
1
waltersgrey/autoexechack
BurstHacks/BurstAndTurnOff/30:3/Hero3Black/autoexec.ash
[ "MIT" ]
/* * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. * Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ function e(a, b) { return a == b; } function main() { println(e(4, 4)); println(e(3, "aaa")); println(e(4, 4)); println(e("a", "a")); println(e(1==2, 1==2)); println(e(1==2, 1)); println(e(e, e)); }
Slash
3
CAFxX/simplelanguage
language/tests/Equal.sl
[ "UPL-1.0" ]
/// Debugging aids import Prim "mo:⛔"; module { /// `print(t)` emits text `t` to the debug output stream. /// How this stream is stored or displayed depends on the /// execution environment. public let print : Text -> () = Prim.debugPrint; /// `trap(t)` traps execution with a user-provided message. public let trap : Text -> None = Prim.trap; }
Modelica
5
CapuzR/prixer-fe
.vessel/base/494824a2787aee24ab4a5888aa519deb05ecfd60/src/Debug.mo
[ "MIT" ]
enum Color { Rgb(isize, isize, isize), Rgba(isize, isize, isize, isize), } fn main() { let red: Color = Color::Rgb(255, 0, 0); match red { Color::Rgb(r, g, b) => { println!("rgb"); } Color::Hsl(h, s, l) => { println!("hsl"); } //~^ ERROR no variant } }
Rust
3
Eric-Arellano/rust
src/test/ui/bogus-tag.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
; ModuleID = 'bpftrace' source_filename = "bpftrace" target datalayout = "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128" target triple = "bpf-pc-linux" ; Function Attrs: nounwind declare i64 @llvm.bpf.pseudo(i64 %0, i64 %1) #0 define i64 @"kprobe:f"(i8* %0) section "s_kprobe:f_1" { entry: %"@x_val" = alloca i64, align 8 %str1 = alloca [64 x i8], align 1 %str = alloca [64 x i8], align 1 %"@x_key" = alloca [128 x i8], align 1 %1 = bitcast [128 x i8]* %"@x_key" to i8* call void @llvm.lifetime.start.p0i8(i64 -1, i8* %1) %2 = bitcast [64 x i8]* %str to i8* call void @llvm.lifetime.start.p0i8(i64 -1, i8* %2) store [64 x i8] c"a\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [64 x i8]* %str, align 1 %3 = getelementptr [128 x i8], [128 x i8]* %"@x_key", i64 0, i64 0 %4 = bitcast [64 x i8]* %str to i8* call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 1 %3, i8* align 1 %4, i64 64, i1 false) %5 = bitcast [64 x i8]* %str to i8* call void @llvm.lifetime.end.p0i8(i64 -1, i8* %5) %6 = bitcast [64 x i8]* %str1 to i8* call void @llvm.lifetime.start.p0i8(i64 -1, i8* %6) store [64 x i8] c"b\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [64 x i8]* %str1, align 1 %7 = getelementptr [128 x i8], [128 x i8]* %"@x_key", i64 0, i64 64 %8 = bitcast [64 x i8]* %str1 to i8* call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 1 %7, i8* align 1 %8, i64 64, i1 false) %9 = bitcast [64 x i8]* %str1 to i8* call void @llvm.lifetime.end.p0i8(i64 -1, i8* %9) %10 = bitcast i64* %"@x_val" to i8* call void @llvm.lifetime.start.p0i8(i64 -1, i8* %10) store i64 44, i64* %"@x_val", align 8 %pseudo = call i64 @llvm.bpf.pseudo(i64 1, i64 0) %update_elem = call i64 inttoptr (i64 2 to i64 (i64, [128 x i8]*, i64*, i64)*)(i64 %pseudo, [128 x i8]* %"@x_key", i64* %"@x_val", i64 0) %11 = bitcast i64* %"@x_val" to i8* call void @llvm.lifetime.end.p0i8(i64 -1, i8* %11) %12 = bitcast [128 x i8]* %"@x_key" to i8* call void @llvm.lifetime.end.p0i8(i64 -1, i8* %12) ret i64 0 } ; Function Attrs: argmemonly nofree nosync nounwind willreturn declare void @llvm.lifetime.start.p0i8(i64 immarg %0, i8* nocapture %1) #1 ; Function Attrs: argmemonly nofree nosync nounwind willreturn declare void @llvm.memcpy.p0i8.p0i8.i64(i8* noalias nocapture writeonly %0, i8* noalias nocapture readonly %1, i64 %2, i1 immarg %3) #1 ; Function Attrs: argmemonly nofree nosync nounwind willreturn declare void @llvm.lifetime.end.p0i8(i64 immarg %0, i8* nocapture %1) #1 attributes #0 = { nounwind } attributes #1 = { argmemonly nofree nosync nounwind willreturn }
LLVM
3
thefallentree/bpftrace
tests/codegen/llvm/map_key_string.ll
[ "Apache-2.0" ]
%{-- - Copyright 2016 SimplifyOps, Inc. (http://simplifyops.com) - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. --}% <%-- Created by IntelliJ IDEA. User: greg Date: Aug 8, 2008 Time: 5:23:27 PM To change this template use File | Settings | File Templates. --%> <tr> <td><label for="jobFilter"><g:message code="jobquery.title.jobFilter"/></label>:</td> <td><g:textField name="jobFilter" value="${query.jobFilter}"/></td> </tr> <g:if test="${query.jobIdFilter}"> <tr> <td><label for="jobIdFilter"><g:message code="jobquery.title.jobIdFilter"/></label>:</td> <td><g:textField name="jobIdFilter" value="${query.jobIdFilter}"/></td> </tr> </g:if> <tr> <td><label for="userFilter"><g:message code="jobquery.title.userFilter"/></label>:</td> <td><g:textField name="userFilter" value="${query.userFilter}"/></td> </tr> <tr> <td><label for="titleFilter"><g:message code="jobquery.title.titleFilter"/></label>:</td> <td><g:textField name="titleFilter" value="${query.titleFilter}"/></td> </tr> <tr> <td> <g:message code="jobquery.title.statFilter"/>:</td> <td> %{--<g:radio name="statFilter" value="succeed" checked="${query.statFilter=='succeed'}" id="statFilterTrue"/> <label for="statFilterTrue">Succeeded</label>--}% %{--<g:radio name="statFilter" value="fail" checked="${query.statFilter=='fail'}" id="statFilterFalse"/> <label for="statFilterFalse">Failed</label>--}% %{--<g:radio name="statFilter" value="" checked="${!query.statFilter}" id="statFilter"/> <label for="statFilter">Either</label>--}% <g:select name="statFilter" from="${['succeed','fail','cancel']}" value="${query.statFilter}" noSelection="['':'Any']" valueMessagePrefix="status.label"/> </td> </tr>
Groovy Server Pages
3
kbens/rundeck
rundeckapp/grails-app/views/reports/_baseFilters.gsp
[ "Apache-2.0" ]
rm -f ifcreate?.log *~ .*~
Stata
1
BlameJohnny/redo
t/220-ifcreate/clean.do
[ "Apache-2.0" ]
#!/bin/sh # # Copyright 2020 PingCAP, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. set -eu DB="${TEST_NAME}_DATABASE" RECORD_COUNT=1000 run_sql "CREATE DATABASE $DB" run_sql "CREATE TABLE $DB.kv(k varchar(256) primary key, v int)" stmt="INSERT INTO $DB.kv(k, v) VALUES ('1-record', 1)" for i in $(seq 2 $RECORD_COUNT); do stmt="$stmt,('$i-record', $i)" done run_sql "$stmt" if ! run_sql "ALTER TABLE $DB.kv SET TIFLASH REPLICA 1"; then # 10s should be enough for tiflash-proxy get started sleep 10 run_sql "ALTER TABLE $DB.kv SET TIFLASH REPLICA 1" fi i=0 while ! [ $(run_sql "select * from information_schema.tiflash_replica" | grep "PROGRESS" | sed "s/[^0-9]//g") -eq 1 ]; do i=$(( i + 1 )) echo "Waiting for TiFlash synchronizing [$i]." if [ $i -gt 20 ]; then echo "Failed to sync data to tiflash." exit 1 fi sleep 5 done rm -rf "/${TEST_DIR}/$DB" run_br backup full -s "local://$TEST_DIR/$DB" --pd $PD_ADDR run_sql "DROP DATABASE $DB" run_br restore full -s "local://$TEST_DIR/$DB" --pd $PD_ADDR # wating for TiFlash sync sleep 100 AFTER_BR_COUNT=`run_sql "SELECT count(*) FROM $DB.kv;" | sed -n "s/[^0-9]//g;/^[0-9]*$/p" | tail -n1` if [ "$AFTER_BR_COUNT" -ne "$RECORD_COUNT" ]; then echo "failed to restore, before: $RECORD_COUNT; after: $AFTER_BR_COUNT" exit 1 fi run_sql "DROP DATABASE $DB"
Shell
3
cuishuang/tidb
br/tests/br_tiflash/run.sh
[ "Apache-2.0" ]
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. #include "pch.h" #include "winrt/Windows.UI.Xaml.Interop.h" #include "HighlightedTextControl.h" #include "HighlightedTextControl.g.cpp" using namespace winrt; using namespace winrt::TerminalApp; using namespace winrt::Windows::UI::Core; using namespace winrt::Windows::UI::Xaml; using namespace winrt::Windows::System; using namespace winrt::Windows::UI::Text; using namespace winrt::Windows::Foundation; using namespace winrt::Windows::Foundation::Collections; using namespace winrt::Microsoft::Terminal::Settings::Model; namespace winrt::TerminalApp::implementation { // Our control exposes a "Text" property to be used with Data Binding // To allow this we need to register a Dependency Property Identifier to be used by the property system // (https://docs.microsoft.com/en-us/windows/uwp/xaml-platform/custom-dependency-properties) DependencyProperty HighlightedTextControl::_textProperty = DependencyProperty::Register( L"Text", xaml_typename<winrt::TerminalApp::HighlightedText>(), xaml_typename<winrt::TerminalApp::HighlightedTextControl>(), PropertyMetadata(nullptr, HighlightedTextControl::_onTextChanged)); HighlightedTextControl::HighlightedTextControl() { InitializeComponent(); } // Method Description: // - Returns the Identifier of the "Text" dependency property DependencyProperty HighlightedTextControl::TextProperty() { return _textProperty; } // Method Description: // - Returns the TextBlock view used to render the highlighted text // Can be used when the Text property change is triggered by the event system to update the view // We need to expose it rather than simply bind a data source because we update the runs in code-behind Controls::TextBlock HighlightedTextControl::TextView() { return _textView(); } winrt::TerminalApp::HighlightedText HighlightedTextControl::Text() { return winrt::unbox_value<winrt::TerminalApp::HighlightedText>(GetValue(_textProperty)); } void HighlightedTextControl::Text(const winrt::TerminalApp::HighlightedText& value) { SetValue(_textProperty, winrt::box_value(value)); } // Method Description: // - This callback is triggered when the Text property is changed. Responsible for updating the view // Arguments: // - o - dependency object that was modified, expected to be an instance of this control // - e - event arguments of the property changed event fired by the event system upon Text property change. // The new value is expected to be an instance of HighlightedText void HighlightedTextControl::_onTextChanged(const DependencyObject& o, const DependencyPropertyChangedEventArgs& e) { const auto control = o.try_as<winrt::TerminalApp::HighlightedTextControl>(); const auto highlightedText = e.NewValue().try_as<winrt::TerminalApp::HighlightedText>(); if (control && highlightedText) { // Replace all the runs on the TextBlock // Use IsHighlighted to decide if the run should be highlighted. // To do - export the highlighting style into XAML const auto inlinesCollection = control.TextView().Inlines(); inlinesCollection.Clear(); for (const auto& match : highlightedText.Segments()) { const auto matchText = match.TextSegment(); const auto fontWeight = match.IsHighlighted() ? FontWeights::Bold() : FontWeights::Normal(); Documents::Run run; run.Text(matchText); run.FontWeight(fontWeight); inlinesCollection.Append(run); } } } }
C++
5
sonvt1710/terminal
src/cascadia/TerminalApp/HighlightedTextControl.cpp
[ "MIT" ]
terraform { required_providers { aws = { source = "hashicorp/aws" version = "~> 2.70" } } } #################### # Declare variables # Variables without default values # these variables need to be changed - see terraform.tfvars variable "key_name" { } variable "package_path" { } variable "instance_name" { } # Variables with default values variable "additional_files_dir" { type = string default = "" } variable "instance_type" { type = string default = "t3.micro" } variable "region" { type = string default = "us-west-2" } #################### # Declare data locals { additional_files_dest = "/home/ubuntu/files" package_path = "/tmp/workspace/packages" ubuntu_home = "/home/ubuntu" ubuntu_user = "ubuntu" } data "aws_ami" "ubuntu" { most_recent = true filter { name = "name" values = ["ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-*"] } filter { name = "virtualization-type" values = ["hvm"] } owners = ["099720109477"] # Canonical } #################### # Declare resources provider "aws" { profile = "default" region = var.region } # The security group defines access restrictions resource "aws_security_group" "influxdb_test_sg" { ingress { description = "Allow ssh connection" from_port = 22 to_port = 22 protocol = "tcp" cidr_blocks = ["0.0.0.0/0"] } egress { description = "Allow all egress" from_port = 0 to_port = 0 protocol = "-1" cidr_blocks = ["0.0.0.0/0"] } } # The data node for the cluster resource "aws_instance" "test_node" { count = 1 ami = data.aws_ami.ubuntu.id instance_type = var.instance_type key_name = var.key_name vpc_security_group_ids = [aws_security_group.influxdb_test_sg.id] tags = { Name = var.instance_name } provisioner "file" { source = var.package_path destination = "${local.ubuntu_home}/influxdb.deb" connection { type = "ssh" user = local.ubuntu_user host = self.public_dns agent = true } } provisioner "remote-exec" { inline = [ "mkdir -p ${local.additional_files_dest}", ] connection { type = "ssh" user = local.ubuntu_user host = self.public_dns agent = true } } provisioner "file" { source = var.additional_files_dir destination = "${local.additional_files_dest}" connection { type = "ssh" user = local.ubuntu_user host = self.public_dns agent = true } } provisioner "remote-exec" { inline = [ "chmod +x ${local.additional_files_dest}/*.sh", ] connection { type = "ssh" user = local.ubuntu_user host = self.public_dns agent = true } } } #################### # Declare outputs output "test_node_ssh" { value = aws_instance.test_node.0.public_dns }
HCL
5
SGZW/influxdb
scripts/ci/main.tf
[ "MIT" ]
$$ MODE TUSCRIPT PRINT "Hello world!"
Turing
2
LaudateCorpus1/RosettaCodeData
Task/Hello-world-Text/TUSCRIPT/hello-world-text.tu
[ "Info-ZIP" ]
class Node @left : self? @right : self? def initialize(@value : Char) end def add(x) if x < @value if left = @left left.add(x) else @left = Node.new(x) end else if right = @right right.add(x) else @right = Node.new(x) end end end def print @left.try &.print print @value @right.try &.print end end root = Node.new('$') "crystalrocks!".each_char do |c| root.add c end root.print # => !$accklorrssty puts
Crystal
3
jessedoyle/crystal
samples/tree.cr
[ "Apache-2.0" ]
#N canvas 659 66 551 450 12; #X text 321 400 updated for Pd version 0.25; #X text 43 400 see also:; #X obj 69 16 poly; #X obj 121 401 route; #X obj 175 401 makenote; #X obj 140 257 poly 4 1; #X obj 133 353 print; #X text 178 352 Output is in the printout window.; #X msg 209 225 stop; #X msg 198 199 clear; #X text 108 15 - MIDI-style polyphonic voice allocator; #X listbox 133 318 20 0 0 0 - - - 0; #X obj 133 287 pack f f f; #X text 210 257 <= first argument \, number of voices \; second argument selects voice stealing; #X text 231 170 <= emulating note on/off messages; #X msg 46 171 60 \$1; #X msg 93 171 62 \$1; #X msg 140 171 65 \$1; #X msg 188 171 69 \$1; #X obj 188 151 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000 0 64; #X obj 93 151 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000 0 64; #X obj 140 151 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000 0 64; #X obj 46 151 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000 0 64; #X text 243 200 clear memory; #X text 248 225 flush hanging note on messages; #X text 33 47 The poly object takes a stream of pitch/velocity pairs and outputs triples containing voice number \, pitch and velocity. You can pack the output and use the route object to route messages among a bank of voices depending on the first outlet. Another option is to connect it [clone] so you can route to different copies. Poly can be configured to do voice stealing or not (the default.), f 66 ; #X connect 5 0 12 0; #X connect 5 1 12 1; #X connect 5 2 12 2; #X connect 8 0 5 0; #X connect 9 0 5 0; #X connect 11 0 6 0; #X connect 12 0 11 0; #X connect 15 0 5 0; #X connect 16 0 5 0; #X connect 17 0 5 0; #X connect 18 0 5 0; #X connect 19 0 18 0; #X connect 20 0 16 0; #X connect 21 0 17 0; #X connect 22 0 15 0;
Pure Data
4
myQwil/pure-data
doc/5.reference/poly-help.pd
[ "TCL" ]
(defmodule example "This is an example module." (export (matchfun 3)) (export-macro add varargs forty-two? tricky)) (include-file "foo.lfe") (defmacro add (x y) "Add `x` and `y`." `(+ ,x ,y)) (defmacro varargs args "This is a varags macro." `'ok) (defmacro forty-two? "Return `'true` iff `x` is 42." (`(,x) (when (=:= x 42)) `'yes) (`(,x) (when (< x 42)) `'small) (`(,x) (when (> x 42)) `'big)) (defmacro tricky "This is a tricky varargs macro." (`(,x) 'one) (`(,x ,y) 'two) (`(,x ,y . ,z) 'many)) (define-function subtract ((doc "Subtract `y` from `x`.")) ;The function meta data (lambda (x y) (- x y))) (extend-module () ((export (subtract 2)))) (defun matchfun "This is a function with pattern clauses." ([x y z] (when (< x y) (< y z)) 'lt) ([x y z] (when (> x y) (> y z)) 'gt) ([x y z] (when (=:= x y) (=:= y z)) 'eq) ([_ _ _] 'idk)) (defun foo-bar "Given a #foo{}, return its bar." ([(match-foo bar bar)] bar)) (defmodule another-example) (defun divmod (n d) ;; Deliberately no docstring here. (tuple (div n d) (rem n d))) (extend-module ((doc "This is another example.")) ((export (divmod 2))))
LFE
5
haetze/lfe
test/example_SUITE_data/example.lfe
[ "Apache-2.0" ]
import { IGatsbyState, ActionsUnion } from "../types" export const lastActionReducer = ( _state: unknown, action: ActionsUnion ): IGatsbyState["lastAction"] => action
TypeScript
3
Pabelnedved/ghostlocoko
packages/gatsby/src/redux/reducers/last-action.ts
[ "MIT" ]
using Uno; using Uno.Testing; using FuseTest; namespace Fuse.Animations.Test { public class ChangeTest : TestBase { [Test] /* This basically performs the calculation that will be done through the layers of the animation system. It should match what is done in the AverageMixer. These tests are important to ensure the correct clamping on over/under weighted/eased items undergoing Change. */ public void MixOpSingle() { var p = new UX.ChangeMixOpSingle(); using (var root = TestRootPanel.CreateWithChild(p, int2(100,1000))) { for (float i=0; i <= 1; i+= 0.01f) { var progress = Math.Min(1,i); var e = Easing.BackInOut.Map(progress); p.T1.Progress = progress; root.IncrementFrame(); Assert.AreEqual(50 + (100-50) * e, p.R1.Height.Value, 1e-4); Assert.AreEqual( Math.Lerp(50,100, Math.Clamp(e,0,1)), p.R2.Height.Value, 1e-4); Assert.AreEqual(50 + 100 * e, p.R3.Height.Value, 1e-4); } } } [Test] /* Like MixOpSingle but expressed somewhat simpler in the case of Weight. */ public void MixOpDouble() { var p = new UX.ChangeMixOpDouble(); using (var root = TestRootPanel.CreateWithChild(p, int2(100,1000))) { for (float i1=0; i1 <= 1; i1+= 0.01f) { var progress1 = Math.Min(1,i1); var e1 = Easing.BackInOut.Map(progress1); p.T1.Progress = progress1; for (float i2=0; i2 <= 1; i2 += 0.01f) { var progress2 = Math.Min(1,i2); var e2 = Easing.ElasticInOut.Map(progress2); var partWeight = Math.Max(e1,0) + Math.Max(e2,0); var fullWeight = Math.Max(1, partWeight); p.T2.Progress = progress2; root.IncrementFrame(); Assert.AreEqual(50 + (100-50) * e1 + (200-50) * e2, p.R1.Height.Value, 1e-4); Assert.AreEqual( 50 * Math.Max(0, 1 - Math.Min(1,partWeight)) + 100 * Math.Max(e1,0)/fullWeight + 200 * Math.Max(e2,0)/fullWeight, p.R2.Height.Value, 1e-4); Assert.AreEqual(50 + 100 * e1 + 200 * e2, p.R3.Height.Value, 1e-4); } } } } } }
Uno
5
helilabs/fuselibs
Source/Fuse.Animations/Tests/Change.Test.uno
[ "MIT" ]
#include "mop.h" MODULE = Class::MOP::Mixin::AttributeCore PACKAGE = Class::MOP::Mixin::AttributeCore PROTOTYPES: DISABLE BOOT: INSTALL_SIMPLE_READER(Mixin::AttributeCore, name); INSTALL_SIMPLE_READER(Mixin::AttributeCore, accessor); INSTALL_SIMPLE_READER(Mixin::AttributeCore, reader); INSTALL_SIMPLE_READER(Mixin::AttributeCore, writer); INSTALL_SIMPLE_READER(Mixin::AttributeCore, predicate); INSTALL_SIMPLE_READER(Mixin::AttributeCore, clearer); INSTALL_SIMPLE_READER(Mixin::AttributeCore, builder); INSTALL_SIMPLE_READER(Mixin::AttributeCore, init_arg); INSTALL_SIMPLE_READER(Mixin::AttributeCore, initializer); INSTALL_SIMPLE_READER(Mixin::AttributeCore, definition_context); INSTALL_SIMPLE_READER(Mixin::AttributeCore, insertion_order);
XS
4
skington/Moose
xs/AttributeCore.xs
[ "Artistic-1.0" ]
=head1 NAME POST - Parrot opcode syntax tree =head1 DESCRIPTION This file implements the various opcode syntax tree nodes for compiling programs in Parrot. =cut .namespace [ 'POST' ] .sub '__onload' :load :init .local pmc p6meta, base ## create POST classes p6meta = new 'P6metaclass' base = p6meta.'new_class'('POST::Node', 'parent'=>'PCT::Node') p6meta.'new_class'('POST::Op', 'parent'=>base) p6meta.'new_class'('POST::Ops', 'parent'=>base) p6meta.'new_class'('POST::Label', 'parent'=>base) p6meta.'new_class'('POST::Sub', 'parent'=>base) $P0 = new 'ResizableStringArray' $P0[0] = " .param pmc %0\n" $P0[1] = " .param pmc %0 :optional\n .param int has_%0 :opt_flag\n" $P0[2] = " .param pmc %0 :slurpy\n" $P0[3] = " .param pmc %0 :slurpy\n" $P0[4] = " .param pmc %0 :named(%1)\n" $P0[5] = " .param pmc %0 :optional :named(%1)\n .param int has_%0 :opt_flag\n" $P0[6] = " .param pmc %0 :slurpy :named\n" $P0[7] = " .param pmc %0 :slurpy :named\n" $P0[8] = " .param pmc %0 :call_sig\n" set_hll_global ['POST';'Sub'], '%!paramfmt', $P0 .return () .end =head1 POST Node types =head2 POST::Node C<POST::Node> is the base class for all POST nodes. It's derived from class C<PCT::Node> (see F<compilers/pct/src/PCT/Node.pir>). =over 4 =cut .namespace [ 'POST';'Node' ] =item result([value]) Get or set the result value of this node. If the result value is set to another POST node, then that node's result is used as the result of the current node. =cut .sub 'result' :method .param pmc value :optional .param int has_value :opt_flag if has_value == 1 goto set_value value = self['result'] if null value goto result_null $I0 = isa value, ['POST';'Node'] if $I0 goto result_node .return (value) result_node: .tailcall value.'result'() result_null: .return ('') set_value: self['result'] = value .return (value) .end =item get_string() Returns the result of the current node as a string. =cut .sub 'get_string' :vtable :method $S0 = self.'result'() .return ($S0) .end =item push_pirop(pirop [,arglist :slurpy] [,adverbs :slurpy :named]) Shortcut for creating and adding a new POST::Op node with opcode C<pirop> and any supplied arguments or options. Returns the newly created node. =cut .sub 'push_pirop' :method .param pmc pirop .param pmc arglist :slurpy .param pmc adverbs :slurpy :named adverbs['pirop'] = pirop $P0 = get_hll_global ['POST'], 'Op' $P1 = $P0.'new'(arglist :flat, adverbs :flat :named) self.'push'($P1) .return ($P1) .end =item escape(str) Return C<str> as a PIR constant string. (Deprecated in favor of C<POST::Compiler.escape>.) =cut .sub 'escape' :method .param string str $P0 = get_hll_global ['PAST'], 'Compiler' str = $P0.'escape'(str) .return (str) .end =back =head2 POST::Op C<POST::Op> nodes represents any PIR opcodes. =over 4 =item pirop([opcode]) Get/set the opcode type for this node. =cut .namespace [ 'POST';'Op' ] .sub 'pirop' :method .param pmc value :optional .param int has_value :opt_flag .tailcall self.'attr'('pirop', value, has_value) .end .sub 'inline' :method .param pmc value :optional .param int has_value :opt_flag .tailcall self.'attr'('inline', value, has_value) .end .namespace [ 'POST';'Label' ] .sub 'result' :method .param pmc value :optional .param int has_value :opt_flag if has_value goto set_value value = self['result'] unless null value goto end .local string name name = self.'name'() value = self.'unique'(name) set_value: self['result'] = value end: .return (value) .end .namespace [ 'POST';'Sub' ] .sub 'blocktype' :method .param pmc value :optional .param int has_value :opt_flag .tailcall self.'attr'('blocktype', value, has_value) .end .sub 'namespace' :method .param pmc value :optional .param int has_value :opt_flag .tailcall self.'attr'('namespace', value, has_value) .end .sub 'hll' :method .param pmc value :optional .param int has_value :opt_flag .tailcall self.'attr'('hll', value, has_value) .end .sub 'loadlibs' :method .param pmc value :optional .param int has_value :opt_flag .tailcall self.'attr'('loadlibs', value, has_value) .end .sub 'outer' :method .param pmc value :optional .param int has_value :opt_flag .tailcall self.'attr'('outer', value, has_value) .end .sub 'multi' :method .param pmc value :optional .param int has_value :opt_flag .tailcall self.'attr'('multi', value, has_value) .end .sub 'subid' :method .param pmc value :optional .param int has_value :opt_flag if has_value goto getset_value $I0 = exists self['subid'] if $I0 goto getset_value value = self.'unique'('post') has_value = 1 getset_value: .tailcall self.'attr'('subid', value, has_value) .end .sub 'pirflags' :method .param pmc value :optional .param int has_value :opt_flag .tailcall self.'attr'('pirflags', value, has_value) .end .sub 'compiler' :method .param pmc value :optional .param int has_value :opt_flag .tailcall self.'attr'('compiler', value, has_value) .end .sub 'compiler_args' :method .param pmc value :optional .param int has_value :opt_flag .tailcall self.'attr'('compiler_args', value, has_value) .end .sub 'add_param' :method .param pmc pname .param pmc adverbs :slurpy :named .local int optional, slurpy, call_sig .local string named optional = adverbs['optional'] slurpy = adverbs['slurpy'] named = adverbs['named'] call_sig = adverbs['call_sig'] .local int paramseq paramseq = isne optional, 0 unless slurpy goto slurpy_done paramseq += 2 slurpy_done: unless named goto named_done paramseq += 4 named_done: unless call_sig goto call_sig_done paramseq += 8 call_sig_done: .local pmc paramlist paramlist = self['paramlist'] unless null paramlist goto have_paramlist paramlist = new 'ResizablePMCArray' self['paramlist'] = paramlist have_paramlist: .local pmc code code = paramlist[paramseq] unless null code goto have_code code = new 'StringBuilder' paramlist[paramseq] = code have_code: .local pmc paramfmt paramfmt = get_hll_global ['POST';'Sub'], '%!paramfmt' $S0 = paramfmt[paramseq] named = self.'escape'(named) code.'append_format'($S0, pname, named) .return () .end .sub 'add_directive' :method .param string line .local string dlist dlist = self['directives'] $I0 = index dlist, line unless $I0 < 0 goto done dlist = concat dlist, line dlist = concat dlist, "\n" self['directives'] = dlist done: .return () .end =back =head1 AUTHOR Patrick Michaud <[email protected]> is the author and maintainer. Please send patches and suggestions to the Parrot porters or Perl 6 compilers mailing lists. =head1 HISTORY 2007-11-21 Significant refactor as part of Parrot Compiler Toolkit =head1 COPYRIGHT Copyright (C) 2006-2008, Parrot Foundation. =cut # Local Variables: # mode: pir # fill-column: 100 # End: # vim: expandtab shiftwidth=4 ft=pir:
Parrot Internal Representation
5
winnit-myself/Wifie
compilers/pct/src/POST/Node.pir
[ "Artistic-2.0" ]
def loading [] { $"Loading (char newline)" | autoview echo 0..100 | each { |tick| sleep 50ms # I believe '1000D' means move the cursor to the left 1000 columns $"(ansi -e '1000D')" | autoview $"($tick)%" | autoview } #show_cursor } def show_cursor [] { $"(ansi -e '?25h')" | autoview } def hide_cursor [] { $"(ansi -e '?25l')" | autoview } hide_cursor loading show_cursor
Nu
4
x3rAx/nu_scripts
progress_bar/percent_meter.nu
[ "MIT" ]
.icon-drupal.service-icon { display: inline-block; width: 21px; height: 28px; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAcCAYAAACOGPReAAAABGdBTUEAALGPC/xhBQAAAAZiS0dEAP8A/wD/oL2nkwAAAcNJREFUSMetlbFrFFEQh7/dJnhpDHcx6SyiRLhLkUKDsRZB8S9IWi2Syj8iVooQ0FLBNlqJRpNO8Br7FLkoRDBooQHhNCr6WTjB48zd7d7uNI+d+c333pt9bx5kNPVGVm1WYF39rTbKhD7zr62XBVwI4MsYF4sCZ9S2uq6mMbbVmWGBx9WW+kGdCN+J+G6pY3mBo2pT/ape6IrNx2qb6mhW4Ii6qf5Ur/TQXI74pjoyCJioa3F8FgdoF0K3pib9hLfiDy9l3NVS6G/3EiyH4GbO+q9E3nJ3oKF+Vx/33Urvkj2K/EZn4JW6l/uY/MsfU9+rzUPHXCz/+jDADvC14Myhrqpf1EpB6LHgrCbqa+BzkiSXikAD/ByopcAUsFUUGLYFTKVABWiXBG0DlRTYB8ZLgo4D+ynQAuolQevAdgq8AM6rk0Vo0R7ngQ3UU+qvvNfzCOhKcE4fOu6r39TpIYHT0XsfdDon45puq7WcwFrk7f1XQvVsdPS3Wd+geMPeRN65XqJZdVf9od5Tz/TZ7t3Q7aqzg2avqnfUg2gQO+pT9WGMO+E/CF21m5H0gU8AV4GLwEmgCnwC3gEbwJMkST4elfsHJbIReGbv9uUAAAAASUVORK5CYII=); background-repeat: no-repeat; } .button.external-login.drupal { background-color: #0f85b6; }
CSS
3
subramanir2143/Rocket.Chat
app/drupal/client/login-button.css
[ "MIT" ]
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) (* This cache maps from spreads (indexed by spread ids, which are generated by eval_destructor * and Statement.ml) to one of the lower bounds of their operands in each index and the reasons * that reach that spread operand. * * cache(spread_id)(resolve_idx) gets you a slice and reasons for a spread index. If any * two indices have more than one lower bound, then we will get at least quadratic results * by computing the spreads. Instead of going through with the computation, we emit an error. * * We need to track the slice explicitly in addition to the list of reasons because * only count an index as having multiple lower bounds if those lower bounds are actually * different. This is important: if an early index receives multiple lower bounds, it will * kick off a resolution job for each. Both of those resolution jobs share a spread id, * so it's important that we don't double count a later operand being resolved as multiple * lower bounds when it's just resolved twice because of the separate resolution jobs. *) open Utils_js type reason_state = ALoc.t Error_message.exponential_spread_reason_group type cache_state = (int option * (Type.Object.slice * reason_state) IMap.t, reason_state * reason_state) result type t = (int, cache_state) Hashtbl.t let add_lower_bound cache spread_id resolve_idx r objtypes = let state = match Hashtbl.find_opt cache spread_id with | None -> Ok (None, IMap.empty) | Some state -> state in let state' = match state with | Error error_groups -> Error error_groups | Ok (idx_option, map) -> let (map', has_multiple_lower_bounds) = let (new_entry, has_multiple_lower_bounds) = let open Error_message in match IMap.find_opt resolve_idx map with | None -> ((Nel.hd objtypes, { first_reason = r; second_reason = None }), Nel.length objtypes <> 1) | Some (slice, reason_state) -> let has_new_lower_bound = Nel.fold_left (fun acc s -> acc || slice <> s) false objtypes in let reason_state = { reason_state with second_reason = Some r } in ((slice, reason_state), has_new_lower_bound) in (IMap.add resolve_idx new_entry map, has_multiple_lower_bounds) in (* If we have multiple lower bounds and this isn't the only idx with multiple * lower bounds then we enter our error state *) if has_multiple_lower_bounds then match idx_option with | Some idx when idx <> resolve_idx -> let group1 = snd (IMap.find resolve_idx map') in let group2 = snd (IMap.find idx map') in Error (group1, group2) | _ -> Ok (Some resolve_idx, map') else Ok (idx_option, map') in Hashtbl.replace cache spread_id state' let get_error_groups cache spread_id = match Hashtbl.find_opt cache spread_id with | Some (Error (group1, group2)) -> (group1, group2) | _ -> assert_false "Invariant violation: make sure can_spread is false before calling get_error_groups" let can_spread cache spread_id = match Hashtbl.find_opt cache spread_id with | Some (Error _) -> false | _ -> true
OCaml
5
Hans-Halverson/flow
src/typing/spread_cache.ml
[ "MIT" ]
## Licensed to Cloudera, Inc. under one ## or more contributor license agreements. See the NOTICE file ## distributed with this work for additional information ## regarding copyright ownership. Cloudera, Inc. licenses this file ## to you under the Apache License, Version 2.0 (the ## "License"); you may not use this file except in compliance ## with the License. You may obtain a copy of the License at ## ## http://www.apache.org/licenses/LICENSE-2.0 ## ## Unless required by applicable law or agreed to in writing, software ## distributed under the License is distributed on an "AS IS" BASIS, ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## See the License for the specific language governing permissions and ## limitations under the License. <%! import sys from desktop.views import commonheader, commonfooter if sys.version_info[0] > 2: from django.utils.translation import gettext as _ else: from django.utils.translation import ugettext as _ %> <%namespace name="shared" file="shared_components.mako" /> ${ commonheader(_('View'), app_name, user, request) | n,unicode } ${ shared.menubar() } <% _breadcrumbs = [ [_("Clusters"), url('zookeeper:index')], [cluster['nice_name'].lower(), url('zookeeper:view', id=cluster['id'])] ] %> <%def name="show_stats(stats)"> <thead> <tr> <th width="20%">${ _('Key') }</th> <th>${ _('Value') }</th> </tr> </thead> <tr> <td>${ _('Version') }</td> <td>${stats.get('zk_version')}</td> </tr> <tr> <td>${ _('Latency') }</td> <td> ${ _('Min:') } ${stats.get('zk_min_latency', '')} ${ _('Avg:') } ${stats.get('zk_avg_latency', '')} ${ _('Max:') } ${stats.get('zk_max_latency', '')} </td> </tr> <tr> <td>${ _('Packets') }</td> <td>${ _('Sent:') } ${stats.get('zk_packets_sent', '')} ${ _('Received:') } ${stats.get('zk_packets_received', '')} </td> </tr> <tr> <td>${ _('Outstanding Requests') }</td> <td>${stats.get('zk_outstanding_requests', '')}</td> </tr> <tr> <td>${ _('Watch Count') }</td> <td>${stats.get('zk_watch_count', '')}</td> </tr> <tr> <td>${ _('Open FD Count') }</td> <td>${stats.get('zk_open_file_descriptor_count', '')}</td> </tr> <tr> <td>${ _('Max FD Count') }</td> <td>${stats.get('zk_max_file_descriptor_count', '')}</td> </tr> </%def> ${ shared.header(_breadcrumbs, clusters, False) } <div class="row-fluid" style="margin-top: 20px"> <div class="span3"> <div class="sidebar-nav"> <ul class="nav nav-list" style="border: 0"> <li class="nav-header">${ _('Znodes') }</li> <li><a href="${url('zookeeper:tree', id=cluster['id'], path='/')}"> ${ _('View Znode Hierarchy') }</a></li> </ul> </div> </div> <div class="span9"> % if leader: <h2 class="card-heading simple simpler">${ _('General') }</h2> <table class="table"> <thead> <tr> <th width="20%">${ _('Key') }</th> <th>${ _('Value') }</th> </tr> </thead> <tr> <td>${ _('ZNode Count') }</td> <td>${leader.get('zk_znode_count', '')}</td> </tr> <tr> <td>${ _('Ephemerals Count') }</td> <td>${leader.get('zk_ephemerals_count', '')}</td> </tr> <tr> <td>${ _('Approximate Data Size') }</td> <td>${leader.get('zk_approximate_data_size', '')} bytes</td> </tr> </table> % endif % if leader: <h2 class="card-heading simple simpler"> <div class="pull-right"><a href="${url('zookeeper:clients', id=cluster['id'], host=leader['host'])}"><i class="fa fa-eye"></i> ${_('Client Connections')}</a></div> ${ _('Node') } ${leader['host']} (${ _('leader') }) </h2> <table class="table"> ${show_stats(leader)} <tr><td>${ _('Followers') }</td> <td>${leader.get('zk_followers', '')}</td> </tr> <tr><td>${ _('Synced Followers') }</td> <td>${leader.get('zk_synced_followers', '')}</td> </tr> <tr><td>${ _('Pending Syncs') }</td> <td>${leader.get('zk_pending_syncs', '')}</td> </tr> </table> % endif % for stats in followers: <h2 class="card-heading simple simpler"> <div class="pull-right"><a href="${url('zookeeper:clients', id=cluster['id'], host=stats['host'])}"><i class="fa fa-eye"></i> ${ _('Client Connections') }</a></div> ${ _('Node') } ${stats['host']} (${ _('follower') }) </h2> <table class="table"> ${show_stats(stats)} </table> % endfor </div> </div> ${ shared.footer() } ${ commonfooter(request, messages) | n,unicode }
Mako
4
yetsun/hue
apps/zookeeper/src/zookeeper/templates/view.mako
[ "Apache-2.0" ]
<?xml version='1.0' encoding='UTF-8'?> <Project Type="Project" LVVersion="14008000"> <Property Name="SMProvider.SMVersion" Type="Int">201310</Property> <Item Name="My Computer" Type="My Computer"> <Property Name="IOScan.Faults" Type="Str"></Property> <Property Name="IOScan.NetVarPeriod" Type="UInt">100</Property> <Property Name="IOScan.NetWatchdogEnabled" Type="Bool">false</Property> <Property Name="IOScan.Period" Type="UInt">10000</Property> <Property Name="IOScan.PowerupMode" Type="UInt">0</Property> <Property Name="IOScan.Priority" Type="UInt">9</Property> <Property Name="IOScan.ReportModeConflict" Type="Bool">true</Property> <Property Name="IOScan.StartEngineOnDeploy" Type="Bool">false</Property> <Property Name="server.app.propertiesEnabled" Type="Bool">true</Property> <Property Name="server.control.propertiesEnabled" Type="Bool">true</Property> <Property Name="server.tcp.enabled" Type="Bool">false</Property> <Property Name="server.tcp.port" Type="Int">0</Property> <Property Name="server.tcp.serviceName" Type="Str">My Computer/VI Server</Property> <Property Name="server.tcp.serviceName.default" Type="Str">My Computer/VI Server</Property> <Property Name="server.vi.callsEnabled" Type="Bool">true</Property> <Property Name="server.vi.propertiesEnabled" Type="Bool">true</Property> <Property Name="specify.custom.address" Type="Bool">false</Property> <Item Name="examples" Type="Folder"> <Item Name="Open_GDS" Type="Folder" URL="../../examples/Open_GDS"> <Property Name="NI.DISK" Type="Bool">true</Property> </Item> </Item> <Item Name="help" Type="Folder"> <Item Name="Open_GDS_Help.vi" Type="VI" URL="/&lt;helpdir&gt;/Open_GDS_Help.vi"/> </Item> <Item Name="menus" Type="Folder"> <Item Name="Categories" Type="Folder"> <Item Name="GOOP.mnu" Type="Document" URL="/&lt;menus&gt;/Categories/GOOP.mnu"/> </Item> </Item> <Item Name="Open_GDS_Tools" Type="Folder" URL=".."> <Property Name="NI.DISK" Type="Bool">true</Property> </Item> <Item Name="resource" Type="Folder"> <Item Name="Framework" Type="Folder"> <Item Name="GProviders" Type="Folder"> <Item Name="GOOP_Library.ini" Type="Document" URL="/&lt;resource&gt;/Framework/Providers/GProviders/GOOP_Library.ini"/> <Item Name="GOOP_LVClass.ini" Type="Document" URL="/&lt;resource&gt;/Framework/Providers/GProviders/GOOP_LVClass.ini"/> <Item Name="GOOP_MyComputer.ini" Type="Document" URL="/&lt;resource&gt;/Framework/Providers/GProviders/GOOP_MyComputer.ini"/> <Item Name="GOOP_VI.ini" Type="Document" URL="/&lt;resource&gt;/Framework/Providers/GProviders/GOOP_VI.ini"/> <Item Name="GOOP_VirtualFolder.ini" Type="Document" URL="/&lt;resource&gt;/Framework/Providers/GProviders/GOOP_VirtualFolder.ini"/> <Item Name="GOOP_XControl.ini" Type="Document" URL="/&lt;resource&gt;/Framework/Providers/GProviders/GOOP_XControl.ini"/> </Item> <Item Name="Providers" Type="Folder"> <Item Name="Open_GDS" Type="Folder" URL="/&lt;resource&gt;/Framework/Providers/Open_GDS"> <Property Name="NI.DISK" Type="Bool">true</Property> </Item> </Item> </Item> </Item> <Item Name="user.lib" Type="Folder"> <Item Name="_probes" Type="Folder"> <Item Name="GOOP" Type="Folder" URL="/&lt;userlib&gt;/_probes/GOOP"> <Property Name="NI.DISK" Type="Bool">true</Property> </Item> </Item> </Item> <Item Name="vi.lib" Type="Folder"> <Item Name="addons" Type="Folder"> <Item Name="GOOPUtility" Type="Folder"> <Item Name="_Demo" Type="Folder"> <Item Name="GOOPUtil_Demo" Type="Folder"> <Item Name="AnotherClass.lvclass" Type="LVClass" URL="/&lt;vilib&gt;/addons/GOOPUtility/_Demo/GOOPUtil_Demo/AnotherClass_class/AnotherClass.lvclass"/> <Item Name="DemoClass1.lvclass" Type="LVClass" URL="/&lt;vilib&gt;/addons/GOOPUtility/_Demo/GOOPUtil_Demo/DemoClass1_class/DemoClass1.lvclass"/> <Item Name="DemoSubClass1.lvclass" Type="LVClass" URL="/&lt;vilib&gt;/addons/GOOPUtility/_Demo/GOOPUtil_Demo/DemoSubClass1_class/DemoSubClass1.lvclass"/> <Item Name="DemoSubClass2.lvclass" Type="LVClass" URL="/&lt;vilib&gt;/addons/GOOPUtility/_Demo/GOOPUtil_Demo/DemoSubClass2_class/DemoSubClass2.lvclass"/> <Item Name="DemoSubSubClass1.lvclass" Type="LVClass" URL="/&lt;vilib&gt;/addons/GOOPUtility/_Demo/GOOPUtil_Demo/DemoSubSubClass1_class/DemoSubSubClass1.lvclass"/> <Item Name="GOOPUtil Demo ClassDiagram.jpg" Type="Document" URL="/&lt;vilib&gt;/addons/GOOPUtility/_Demo/GOOPUtil_Demo/GOOPUtil Demo ClassDiagram.jpg"/> <Item Name="GOOPUtil Demo ClassDiagram.uml" Type="Document" URL="/&lt;vilib&gt;/addons/GOOPUtility/_Demo/GOOPUtil_Demo/GOOPUtil Demo ClassDiagram.uml"/> <Item Name="GOOPUtil Demo.vi" Type="VI" URL="/&lt;vilib&gt;/addons/GOOPUtility/_Demo/GOOPUtil_Demo/GOOPUtil Demo.vi"/> <Item Name="GOOPUtilDemo.aliases" Type="Document" URL="/&lt;vilib&gt;/addons/GOOPUtility/_Demo/GOOPUtil_Demo/GOOPUtilDemo.aliases"/> <Item Name="GOOPUtilDemo.lvproj" Type="Document" URL="/&lt;vilib&gt;/addons/GOOPUtility/_Demo/GOOPUtil_Demo/GOOPUtilDemo.lvproj"/> </Item> </Item> <Item Name="_private" Type="Folder"/> <Item Name="dir.mnu" Type="Document" URL="/&lt;vilib&gt;/addons/GOOPUtility/dir.mnu"/> <Item Name="GOOPUtility.lvlib" Type="Library" URL="/&lt;vilib&gt;/addons/GOOPUtility/GOOPUtility.lvlib"/> </Item> <Item Name="_goop2.llb" Type="Document" URL="/&lt;vilib&gt;/addons/_goop2.llb"/> <Item Name="_goop3.llb" Type="Document" URL="/&lt;vilib&gt;/addons/_goop3.llb"/> <Item Name="_goop4.llb" Type="Document" URL="/&lt;vilib&gt;/addons/_goop4.llb"/> </Item> </Item> <Item Name="Dependencies" Type="Dependencies"> <Item Name="vi.lib" Type="Folder"> <Item Name="3GOOPCallChain.vi" Type="VI" URL="/&lt;vilib&gt;/addons/_goop3.llb/3GOOPCallChain.vi"/> <Item Name="3GOOPClassInfoTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/addons/_goop3.llb/3GOOPClassInfoTypeDef.ctl"/> <Item Name="3GOOPClassStatistics.ctl" Type="VI" URL="/&lt;vilib&gt;/addons/_goop3.llb/3GOOPClassStatistics.ctl"/> <Item Name="3GOOPFindClassPath.vi" Type="VI" URL="/&lt;vilib&gt;/addons/_goop3.llb/3GOOPFindClassPath.vi"/> <Item Name="3GOOPKernelSlave.vi" Type="VI" URL="/&lt;vilib&gt;/addons/_goop3.llb/3GOOPKernelSlave.vi"/> <Item Name="3GOOPObjectInfoType.ctl" Type="VI" URL="/&lt;vilib&gt;/addons/_goop3.llb/3GOOPObjectInfoType.ctl"/> <Item Name="3GOOPSetError.vi" Type="VI" URL="/&lt;vilib&gt;/addons/_goop3.llb/3GOOPSetError.vi"/> <Item Name="3GOOPSharedInfo.ctl" Type="VI" URL="/&lt;vilib&gt;/addons/_goop3.llb/3GOOPSharedInfo.ctl"/> <Item Name="3GOOPStates.ctl" Type="VI" URL="/&lt;vilib&gt;/addons/_goop3.llb/3GOOPStates.ctl"/> <Item Name="3GOOPVersion.vi" Type="VI" URL="/&lt;vilib&gt;/addons/_goop3.llb/3GOOPVersion.vi"/> <Item Name="8.6CompatibleGlobalVar.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/config.llb/8.6CompatibleGlobalVar.vi"/> <Item Name="Actor Framework.lvlib" Type="Library" URL="/&lt;vilib&gt;/ActorFramework/Actor Framework.lvlib"/> <Item Name="Add File to Zip.vi" Type="VI" URL="/&lt;vilib&gt;/zip/Add File to Zip.vi"/> <Item Name="Application Directory.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/file.llb/Application Directory.vi"/> <Item Name="Apply Configuration For Source Separation (Library).vi" Type="VI" URL="/&lt;vilib&gt;/SourceOnly/Apply Configuration For Source Separation (Library).vi"/> <Item Name="Apply Configuration For Source Separation.vi" Type="VI" URL="/&lt;vilib&gt;/SourceOnly/Apply Configuration For Source Separation.vi"/> <Item Name="Apply New Library Tools-Options Settings.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/Apply New Library Tools-Options Settings.vi"/> <Item Name="Apply New VI Tools-Options Settings.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/Apply New VI Tools-Options Settings.vi"/> <Item Name="Are Paths Equal.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Are Paths Equal.vi"/> <Item Name="Beep.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/system.llb/Beep.vi"/> <Item Name="Bit-array To Byte-array.vi" Type="VI" URL="/&lt;vilib&gt;/picture/pictutil.llb/Bit-array To Byte-array.vi"/> <Item Name="BuildHelpPath.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/BuildHelpPath.vi"/> <Item Name="Calc Long Word Padded Width.vi" Type="VI" URL="/&lt;vilib&gt;/picture/bmp.llb/Calc Long Word Padded Width.vi"/> <Item Name="Check Color Table Size.vi" Type="VI" URL="/&lt;vilib&gt;/picture/jpeg.llb/Check Color Table Size.vi"/> <Item Name="Check Data Size.vi" Type="VI" URL="/&lt;vilib&gt;/picture/jpeg.llb/Check Data Size.vi"/> <Item Name="Check File Permissions.vi" Type="VI" URL="/&lt;vilib&gt;/picture/jpeg.llb/Check File Permissions.vi"/> <Item Name="Check if File or Folder Exists.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Check if File or Folder Exists.vi"/> <Item Name="Check Path.vi" Type="VI" URL="/&lt;vilib&gt;/picture/jpeg.llb/Check Path.vi"/> <Item Name="Check Special Tags.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Check Special Tags.vi"/> <Item Name="Clear Errors.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Clear Errors.vi"/> <Item Name="Close Registry Key.vi" Type="VI" URL="/&lt;vilib&gt;/registry/registry.llb/Close Registry Key.vi"/> <Item Name="Close Zip File.vi" Type="VI" URL="/&lt;vilib&gt;/zip/Close Zip File.vi"/> <Item Name="Coerce Bad Rect.vi" Type="VI" URL="/&lt;vilib&gt;/picture/pictutil.llb/Coerce Bad Rect.vi"/> <Item Name="Color to RGB.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/colorconv.llb/Color to RGB.vi"/> <Item Name="Compare Src And Dst Simple.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Compare Src And Dst Simple.vi"/> <Item Name="Compare Src And Dst.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Compare Src And Dst.vi"/> <Item Name="Compare Two Paths.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Compare Two Paths.vi"/> <Item Name="compatFileDialog.vi" Type="VI" URL="/&lt;vilib&gt;/_oldvers/_oldvers.llb/compatFileDialog.vi"/> <Item Name="compatOverwrite.vi" Type="VI" URL="/&lt;vilib&gt;/_oldvers/_oldvers.llb/compatOverwrite.vi"/> <Item Name="compatReturnToEnter.vi" Type="VI" URL="/&lt;vilib&gt;/_oldvers/_oldvers.llb/compatReturnToEnter.vi"/> <Item Name="Config Data Section.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/config.llb/Config Data Section.ctl"/> <Item Name="Convert property node font to graphics font.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Convert property node font to graphics font.vi"/> <Item Name="Copy From And To VI Library.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Copy From And To VI Library.vi"/> <Item Name="Copy From Folder To Folder.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Copy From Folder To Folder.vi"/> <Item Name="Copy In Or Out Of VI Library.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Copy In Or Out Of VI Library.vi"/> <Item Name="Create Cursor From File.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/cursorutil.llb/Create Cursor From File.vi"/> <Item Name="Create Directory Recursive.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Create Directory Recursive.vi"/> <Item Name="Create Mask By Alpha.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Create Mask By Alpha.vi"/> <Item Name="Create Mask.vi" Type="VI" URL="/&lt;vilib&gt;/picture/pictutil.llb/Create Mask.vi"/> <Item Name="Create Queue.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/queue.llb/Create Queue.vi"/> <Item Name="Create Registry Key.vi" Type="VI" URL="/&lt;vilib&gt;/registry/registry.llb/Create Registry Key.vi"/> <Item Name="Delete Directory Recursive.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Delete Directory Recursive.vi"/> <Item Name="Delete From VI Library.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Delete From VI Library.vi"/> <Item Name="Destroy Cursor.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/cursorutil.llb/Destroy Cursor.vi"/> <Item Name="Details Display Dialog.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Details Display Dialog.vi"/> <Item Name="Dflt Data Dir.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/file.llb/Dflt Data Dir.vi"/> <Item Name="DialogType.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/DialogType.ctl"/> <Item Name="DialogTypeEnum.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/DialogTypeEnum.ctl"/> <Item Name="Directory of Top Level VI.vi" Type="VI" URL="/&lt;vilib&gt;/picture/jpeg.llb/Directory of Top Level VI.vi"/> <Item Name="Draw 1-Bit Pixmap.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw 1-Bit Pixmap.vi"/> <Item Name="Draw 4-Bit Pixmap.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw 4-Bit Pixmap.vi"/> <Item Name="Draw 8-Bit Pixmap.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw 8-Bit Pixmap.vi"/> <Item Name="Draw Arc.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw Arc.vi"/> <Item Name="Draw Circle by Radius.vi" Type="VI" URL="/&lt;vilib&gt;/picture/pictutil.llb/Draw Circle by Radius.vi"/> <Item Name="Draw Flattened Pixmap(6_1).vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw Flattened Pixmap(6_1).vi"/> <Item Name="Draw Flattened Pixmap.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw Flattened Pixmap.vi"/> <Item Name="Draw Line.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw Line.vi"/> <Item Name="Draw Multiple Lines.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw Multiple Lines.vi"/> <Item Name="Draw Oval.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw Oval.vi"/> <Item Name="Draw Point.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw Point.vi"/> <Item Name="Draw Rect.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw Rect.vi"/> <Item Name="Draw Round Rect.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw Round Rect.vi"/> <Item Name="Draw Text at Point.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw Text at Point.vi"/> <Item Name="Draw Text in Rect.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw Text in Rect.vi"/> <Item Name="Draw True-Color Pixmap.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw True-Color Pixmap.vi"/> <Item Name="Draw Unflattened Pixmap.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw Unflattened Pixmap.vi"/> <Item Name="DU64_U32AddWithOverflow.vi" Type="VI" URL="/&lt;vilib&gt;/Waveform/TSOps.llb/DU64_U32AddWithOverflow.vi"/> <Item Name="DU64_U32SubtractWithBorrow.vi" Type="VI" URL="/&lt;vilib&gt;/Waveform/TSOps.llb/DU64_U32SubtractWithBorrow.vi"/> <Item Name="Empty Picture" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Empty Picture"/> <Item Name="Error Cluster From Error Code.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Error Cluster From Error Code.vi"/> <Item Name="Error Code Database.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Error Code Database.vi"/> <Item Name="ErrWarn.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/ErrWarn.ctl"/> <Item Name="Escape Characters for HTTP.vi" Type="VI" URL="/&lt;vilib&gt;/printing/PathToURL.llb/Escape Characters for HTTP.vi"/> <Item Name="Escape XML.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/xml.llb/Escape XML.vi"/> <Item Name="EscapeChars.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/xml.llb/EscapeChars.vi"/> <Item Name="eventvkey.ctl" Type="VI" URL="/&lt;vilib&gt;/event_ctls.llb/eventvkey.ctl"/> <Item Name="ex_CorrectErrorChain.vi" Type="VI" URL="/&lt;vilib&gt;/express/express shared/ex_CorrectErrorChain.vi"/> <Item Name="ex_GenAddAttribs.vi" Type="VI" URL="/&lt;vilib&gt;/express/express input/SimulateSignalBlock.llb/ex_GenAddAttribs.vi"/> <Item Name="ex_SetAllExpressAttribs.vi" Type="VI" URL="/&lt;vilib&gt;/express/express shared/transition.llb/ex_SetAllExpressAttribs.vi"/> <Item Name="ex_SetExpAttribsAndT0.vi" Type="VI" URL="/&lt;vilib&gt;/express/express shared/transition.llb/ex_SetExpAttribsAndT0.vi"/> <Item Name="ex_WaveformAttribs.ctl" Type="VI" URL="/&lt;vilib&gt;/express/express shared/transition.llb/ex_WaveformAttribs.ctl"/> <Item Name="ex_WaveformAttribsPlus.ctl" Type="VI" URL="/&lt;vilib&gt;/express/express shared/transition.llb/ex_WaveformAttribsPlus.ctl"/> <Item Name="Find First Error.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Find First Error.vi"/> <Item Name="Find Tag.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Find Tag.vi"/> <Item Name="FindCloseTagByName.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/xml.llb/FindCloseTagByName.vi"/> <Item Name="FindElement.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/xml.llb/FindElement.vi"/> <Item Name="FindElementStartByName.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/xml.llb/FindElementStartByName.vi"/> <Item Name="FindEmptyElement.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/xml.llb/FindEmptyElement.vi"/> <Item Name="FindFirstTag.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/xml.llb/FindFirstTag.vi"/> <Item Name="FindMatchingCloseTag.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/xml.llb/FindMatchingCloseTag.vi"/> <Item Name="FixBadRect.vi" Type="VI" URL="/&lt;vilib&gt;/picture/pictutil.llb/FixBadRect.vi"/> <Item Name="Flatten Pixmap.vi" Type="VI" URL="/&lt;vilib&gt;/picture/pixmap.llb/Flatten Pixmap.vi"/> <Item Name="Flip and Pad for Picture Control.vi" Type="VI" URL="/&lt;vilib&gt;/picture/bmp.llb/Flip and Pad for Picture Control.vi"/> <Item Name="Format Message String.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Format Message String.vi"/> <Item Name="General Error Handler Core CORE.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/General Error Handler Core CORE.vi"/> <Item Name="General Error Handler.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/General Error Handler.vi"/> <Item Name="Generate Temporary File Path.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Generate Temporary File Path.vi"/> <Item Name="Get File Extension.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Get File Extension.vi"/> <Item Name="Get File System Separator.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/sysinfo.llb/Get File System Separator.vi"/> <Item Name="Get File System.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/sysinfo.llb/Get File System.vi"/> <Item Name="Get Image Subset.vi" Type="VI" URL="/&lt;vilib&gt;/picture/pictutil.llb/Get Image Subset.vi"/> <Item Name="Get LV Class Default Value By Name.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/LVClass/Get LV Class Default Value By Name.vi"/> <Item Name="Get LV Class Default Value.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/LVClass/Get LV Class Default Value.vi"/> <Item Name="Get LV Class Name.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/LVClass/Get LV Class Name.vi"/> <Item Name="Get LV Class Path.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/LVClass/Get LV Class Path.vi"/> <Item Name="Get String Text Bounds.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Get String Text Bounds.vi"/> <Item Name="Get Text Rect.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Get Text Rect.vi"/> <Item Name="Get VI Library File Info.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Get VI Library File Info.vi"/> <Item Name="Get VI Library List.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Get VI Library List.vi"/> <Item Name="GetHelpDir.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/GetHelpDir.vi"/> <Item Name="GetRTHostConnectedProp.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/GetRTHostConnectedProp.vi"/> <Item Name="GOOP4_CreateObjectDvrReference.vi" Type="VI" URL="/&lt;vilib&gt;/addons/_goop4.llb/GOOP4_CreateObjectDvrReference.vi"/> <Item Name="GOOP4_DataClusterFor_CreateObject.ctl" Type="VI" URL="/&lt;vilib&gt;/addons/_goop4.llb/GOOP4_DataClusterFor_CreateObject.ctl"/> <Item Name="GOOP4_DataClusterFor_GetClassObjects.ctl" Type="VI" URL="/&lt;vilib&gt;/addons/_goop4.llb/GOOP4_DataClusterFor_GetClassObjects.ctl"/> <Item Name="GOOP4_DataClusterToProcessVI.ctl" Type="VI" URL="/&lt;vilib&gt;/addons/_goop4.llb/GOOP4_DataClusterToProcessVI.ctl"/> <Item Name="GOOP4_DebuggingStateMemory.vi" Type="VI" URL="/&lt;vilib&gt;/addons/_goop4.llb/GOOP4_DebuggingStateMemory.vi"/> <Item Name="GOOP4_DebugProcess.vi" Type="VI" URL="/&lt;vilib&gt;/addons/_goop4.llb/GOOP4_DebugProcess.vi"/> <Item Name="GOOP4_GetClassObjects.vi" Type="VI" URL="/&lt;vilib&gt;/addons/_goop4.llb/GOOP4_GetClassObjects.vi"/> <Item Name="GOOP4_GetObjectInfo.vi" Type="VI" URL="/&lt;vilib&gt;/addons/_goop4.llb/GOOP4_GetObjectInfo.vi"/> <Item Name="GOOP4_ReturnClusterFromProcess_CreateObject.ctl" Type="VI" URL="/&lt;vilib&gt;/addons/_goop4.llb/GOOP4_ReturnClusterFromProcess_CreateObject.ctl"/> <Item Name="GOOP4_ReturnClusterFromProcess_GetClassObjects.ctl" Type="VI" URL="/&lt;vilib&gt;/addons/_goop4.llb/GOOP4_ReturnClusterFromProcess_GetClassObjects.ctl"/> <Item Name="GOOPStates.ctl" Type="VI" URL="/&lt;vilib&gt;/addons/_goop2.llb/GOOPStates.ctl"/> <Item Name="Has LLB Extension.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Has LLB Extension.vi"/> <Item Name="High Resolution Relative Seconds.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/High Resolution Relative Seconds.vi"/> <Item Name="I128 Timestamp.ctl" Type="VI" URL="/&lt;vilib&gt;/Waveform/TSOps.llb/I128 Timestamp.ctl"/> <Item Name="imagedata.ctl" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/imagedata.ctl"/> <Item Name="Insert Queue Element.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/queue.llb/Insert Queue Element.vi"/> <Item Name="Interface_FindInterfaceImplementationVI.vi" Type="VI" URL="/&lt;vilib&gt;/addons/_goop4.llb/Interface_FindInterfaceImplementationVI.vi"/> <Item Name="Interface_RunVI.vi" Type="VI" URL="/&lt;vilib&gt;/addons/_goop4.llb/Interface_RunVI.vi"/> <Item Name="Interface_ViServerCall.vi" Type="VI" URL="/&lt;vilib&gt;/addons/_goop4.llb/Interface_ViServerCall.vi"/> <Item Name="Internecine Avoider.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/tcp.llb/Internecine Avoider.vi"/> <Item Name="LabVIEWHTTPClient.lvlib" Type="Library" URL="/&lt;vilib&gt;/httpClient/LabVIEWHTTPClient.lvlib"/> <Item Name="Librarian Copy.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Librarian Copy.vi"/> <Item Name="Librarian Delete Dialog.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Librarian Delete Dialog.vi"/> <Item Name="Librarian Delete.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Librarian Delete.vi"/> <Item Name="Librarian File Info In.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Librarian File Info In.ctl"/> <Item Name="Librarian File Info Out.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Librarian File Info Out.ctl"/> <Item Name="Librarian File List.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Librarian File List.ctl"/> <Item Name="Librarian Get Info.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Librarian Get Info.vi"/> <Item Name="Librarian List.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Librarian List.vi"/> <Item Name="Librarian OK to Delete.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Librarian OK to Delete.vi"/> <Item Name="Librarian Path Location.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Librarian Path Location.vi"/> <Item Name="Librarian Rename.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Librarian Rename.vi"/> <Item Name="Librarian Set Info.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Librarian Set Info.vi"/> <Item Name="Librarian.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Librarian.vi"/> <Item Name="List Directory and LLBs.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/List Directory and LLBs.vi"/> <Item Name="Longest Line Length in Pixels.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Longest Line Length in Pixels.vi"/> <Item Name="LVBoundsTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVBoundsTypeDef.ctl"/> <Item Name="lveventtype.ctl" Type="VI" URL="/&lt;vilib&gt;/event_ctls.llb/lveventtype.ctl"/> <Item Name="LVFontTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVFontTypeDef.ctl"/> <Item Name="LVPoint32TypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVPoint32TypeDef.ctl"/> <Item Name="LVPointTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVPointTypeDef.ctl"/> <Item Name="LVPositionTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVPositionTypeDef.ctl"/> <Item Name="LVRectTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVRectTypeDef.ctl"/> <Item Name="LVSelectionTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVSelectionTypeDef.ctl"/> <Item Name="MD5Checksum core.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/MD5Checksum.llb/MD5Checksum core.vi"/> <Item Name="MD5Checksum File.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/MD5Checksum.llb/MD5Checksum File.vi"/> <Item Name="MD5Checksum format message-digest.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/MD5Checksum.llb/MD5Checksum format message-digest.vi"/> <Item Name="MD5Checksum pad.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/MD5Checksum.llb/MD5Checksum pad.vi"/> <Item Name="Nearest Freq in Int Cycles.vi" Type="VI" URL="/&lt;vilib&gt;/express/express input/SimulateSignalConfig.llb/Nearest Freq in Int Cycles.vi"/> <Item Name="Nearest Frequency for Block.vi" Type="VI" URL="/&lt;vilib&gt;/express/express input/SimulateSignalConfig.llb/Nearest Frequency for Block.vi"/> <Item Name="New VI Library.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/New VI Library.vi"/> <Item Name="New Zip File.vi" Type="VI" URL="/&lt;vilib&gt;/zip/New Zip File.vi"/> <Item Name="NI_AALBase.lvlib" Type="Library" URL="/&lt;vilib&gt;/Analysis/NI_AALBase.lvlib"/> <Item Name="NI_FileType.lvlib" Type="Library" URL="/&lt;vilib&gt;/Utility/lvfile.llb/NI_FileType.lvlib"/> <Item Name="NI_LVConfig.lvlib" Type="Library" URL="/&lt;vilib&gt;/Utility/config.llb/NI_LVConfig.lvlib"/> <Item Name="NI_MABase.lvlib" Type="Library" URL="/&lt;vilib&gt;/measure/NI_MABase.lvlib"/> <Item Name="NI_PackedLibraryUtility.lvlib" Type="Library" URL="/&lt;vilib&gt;/Utility/LVLibp/NI_PackedLibraryUtility.lvlib"/> <Item Name="NI_ReportGenerationCore.lvlib" Type="Library" URL="/&lt;vilib&gt;/Utility/NIReport.llb/NI_ReportGenerationCore.lvlib"/> <Item Name="NI_Unzip.lvlib" Type="Library" URL="/&lt;vilib&gt;/zip/NI_Unzip.lvlib"/> <Item Name="Not Found Dialog.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Not Found Dialog.vi"/> <Item Name="Open Registry Key.vi" Type="VI" URL="/&lt;vilib&gt;/registry/registry.llb/Open Registry Key.vi"/> <Item Name="Open URL in Default Browser (path).vi" Type="VI" URL="/&lt;vilib&gt;/Platform/browser.llb/Open URL in Default Browser (path).vi"/> <Item Name="Open URL in Default Browser (string).vi" Type="VI" URL="/&lt;vilib&gt;/Platform/browser.llb/Open URL in Default Browser (string).vi"/> <Item Name="Open URL in Default Browser core.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/browser.llb/Open URL in Default Browser core.vi"/> <Item Name="Open URL in Default Browser.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/browser.llb/Open URL in Default Browser.vi"/> <Item Name="Path To Command Line String.vi" Type="VI" URL="/&lt;vilib&gt;/AdvancedString/Path To Command Line String.vi"/> <Item Name="Path to URL.vi" Type="VI" URL="/&lt;vilib&gt;/printing/PathToURL.llb/Path to URL.vi"/> <Item Name="PathToUNIXPathString.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/CFURL.llb/PathToUNIXPathString.vi"/> <Item Name="PCT Pad String.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/PCT Pad String.vi"/> <Item Name="Picture to Pixmap.vi" Type="VI" URL="/&lt;vilib&gt;/picture/pictutil.llb/Picture to Pixmap.vi"/> <Item Name="PointInRect.vi" Type="VI" URL="/&lt;vilib&gt;/picture/PictureSupport.llb/PointInRect.vi"/> <Item Name="Prepare VI Library for Copy.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Prepare VI Library for Copy.vi"/> <Item Name="Queue RefNum" Type="VI" URL="/&lt;vilib&gt;/Utility/queue.llb/Queue RefNum"/> <Item Name="Queue SRdB command.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/queue.llb/Queue SRdB command.ctl"/> <Item Name="Queue SRdB.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/queue.llb/Queue SRdB.vi"/> <Item Name="Read BMP File Data.vi" Type="VI" URL="/&lt;vilib&gt;/picture/bmp.llb/Read BMP File Data.vi"/> <Item Name="Read BMP File.vi" Type="VI" URL="/&lt;vilib&gt;/picture/bmp.llb/Read BMP File.vi"/> <Item Name="Read BMP Header Info.vi" Type="VI" URL="/&lt;vilib&gt;/picture/bmp.llb/Read BMP Header Info.vi"/> <Item Name="Read JPEG File.vi" Type="VI" URL="/&lt;vilib&gt;/picture/jpeg.llb/Read JPEG File.vi"/> <Item Name="Read PNG File.vi" Type="VI" URL="/&lt;vilib&gt;/picture/png.llb/Read PNG File.vi"/> <Item Name="Read Registry Value DWORD.vi" Type="VI" URL="/&lt;vilib&gt;/registry/registry.llb/Read Registry Value DWORD.vi"/> <Item Name="Read Registry Value Simple STR.vi" Type="VI" URL="/&lt;vilib&gt;/registry/registry.llb/Read Registry Value Simple STR.vi"/> <Item Name="Read Registry Value Simple U32.vi" Type="VI" URL="/&lt;vilib&gt;/registry/registry.llb/Read Registry Value Simple U32.vi"/> <Item Name="Read Registry Value Simple.vi" Type="VI" URL="/&lt;vilib&gt;/registry/registry.llb/Read Registry Value Simple.vi"/> <Item Name="Read Registry Value STR.vi" Type="VI" URL="/&lt;vilib&gt;/registry/registry.llb/Read Registry Value STR.vi"/> <Item Name="Read Registry Value.vi" Type="VI" URL="/&lt;vilib&gt;/registry/registry.llb/Read Registry Value.vi"/> <Item Name="Recursive File List.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Recursive File List.vi"/> <Item Name="Registry Handle Master.vi" Type="VI" URL="/&lt;vilib&gt;/registry/registry.llb/Registry Handle Master.vi"/> <Item Name="Registry refnum.ctl" Type="VI" URL="/&lt;vilib&gt;/registry/registry.llb/Registry refnum.ctl"/> <Item Name="Registry RtKey.ctl" Type="VI" URL="/&lt;vilib&gt;/registry/registry.llb/Registry RtKey.ctl"/> <Item Name="Registry SAM.ctl" Type="VI" URL="/&lt;vilib&gt;/registry/registry.llb/Registry SAM.ctl"/> <Item Name="Registry Simplify Data Type.vi" Type="VI" URL="/&lt;vilib&gt;/registry/registry.llb/Registry Simplify Data Type.vi"/> <Item Name="Registry View.ctl" Type="VI" URL="/&lt;vilib&gt;/registry/registry.llb/Registry View.ctl"/> <Item Name="Registry WinErr-LVErr.vi" Type="VI" URL="/&lt;vilib&gt;/registry/registry.llb/Registry WinErr-LVErr.vi"/> <Item Name="Relative Path To Platform Independent String.vi" Type="VI" URL="/&lt;vilib&gt;/AdvancedString/Relative Path To Platform Independent String.vi"/> <Item Name="RGB to Color.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/colorconv.llb/RGB to Color.vi"/> <Item Name="Search and Replace Pattern.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Search and Replace Pattern.vi"/> <Item Name="Set Bold Text.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Set Bold Text.vi"/> <Item Name="Set Busy.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/cursorutil.llb/Set Busy.vi"/> <Item Name="Set Cursor (Cursor ID).vi" Type="VI" URL="/&lt;vilib&gt;/Utility/cursorutil.llb/Set Cursor (Cursor ID).vi"/> <Item Name="Set Cursor (Icon Pict).vi" Type="VI" URL="/&lt;vilib&gt;/Utility/cursorutil.llb/Set Cursor (Icon Pict).vi"/> <Item Name="Set Cursor.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/cursorutil.llb/Set Cursor.vi"/> <Item Name="Set Pen State.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Set Pen State.vi"/> <Item Name="Set String Value.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Set String Value.vi"/> <Item Name="Set VI Library File Info.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Set VI Library File Info.vi"/> <Item Name="SetMenuItemInfoSCConverter.vi" Type="VI" URL="/&lt;vilib&gt;/_oldvers/_oldvers.llb/SetMenuItemInfoSCConverter.vi"/> <Item Name="Simple Error Handler.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Simple Error Handler.vi"/> <Item Name="Space Constant.vi" Type="VI" URL="/&lt;vilib&gt;/dlg_ctls.llb/Space Constant.vi"/> <Item Name="STR_ASCII-Unicode.vi" Type="VI" URL="/&lt;vilib&gt;/registry/registry.llb/STR_ASCII-Unicode.vi"/> <Item Name="sub2ShouldUseDefSigName.vi" Type="VI" URL="/&lt;vilib&gt;/express/express input/SimulateSignalBlock.llb/sub2ShouldUseDefSigName.vi"/> <Item Name="subDisplayMessage.vi" Type="VI" URL="/&lt;vilib&gt;/express/express output/DisplayMessageBlock.llb/subDisplayMessage.vi"/> <Item Name="subFile Dialog.vi" Type="VI" URL="/&lt;vilib&gt;/express/express input/FileDialogBlock.llb/subFile Dialog.vi"/> <Item Name="subGetSignalName.vi" Type="VI" URL="/&lt;vilib&gt;/express/express input/SimulateSignalBlock.llb/subGetSignalName.vi"/> <Item Name="subInternalTiming.vi" Type="VI" URL="/&lt;vilib&gt;/express/express input/SimulateSignalBlock.llb/subInternalTiming.vi"/> <Item Name="subShouldUseDefSigName.vi" Type="VI" URL="/&lt;vilib&gt;/express/express input/SimulateSignalBlock.llb/subShouldUseDefSigName.vi"/> <Item Name="subSigGeneratorBlock.vi" Type="VI" URL="/&lt;vilib&gt;/express/express input/SimulateSignalBlock.llb/subSigGeneratorBlock.vi"/> <Item Name="System Exec.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/system.llb/System Exec.vi"/> <Item Name="TagReturnType.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/TagReturnType.ctl"/> <Item Name="TCP Listen Internal List.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/tcp.llb/TCP Listen Internal List.vi"/> <Item Name="TCP Listen List Operations.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/tcp.llb/TCP Listen List Operations.ctl"/> <Item Name="Temp Backup File.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Temp Backup File.vi"/> <Item Name="Temp Filename.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Temp Filename.vi"/> <Item Name="Temp Restore File.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Temp Restore File.vi"/> <Item Name="Three Button Dialog CORE.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Three Button Dialog CORE.vi"/> <Item Name="Three Button Dialog.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Three Button Dialog.vi"/> <Item Name="Timestamp Add.vi" Type="VI" URL="/&lt;vilib&gt;/Waveform/TSOps.llb/Timestamp Add.vi"/> <Item Name="Timestamp Subtract.vi" Type="VI" URL="/&lt;vilib&gt;/Waveform/TSOps.llb/Timestamp Subtract.vi"/> <Item Name="TRef Traverse for References.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/traverseref.llb/TRef Traverse for References.vi"/> <Item Name="TRef Traverse.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/traverseref.llb/TRef Traverse.vi"/> <Item Name="TRef TravTarget.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/traverseref.llb/TRef TravTarget.ctl"/> <Item Name="Trim Whitespace.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Trim Whitespace.vi"/> <Item Name="Unescape XML.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/xml.llb/Unescape XML.vi"/> <Item Name="UnescapeChar.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/xml.llb/UnescapeChar.vi"/> <Item Name="Unflatten Pixmap.vi" Type="VI" URL="/&lt;vilib&gt;/picture/pixmap.llb/Unflatten Pixmap.vi"/> <Item Name="Unset Busy.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/cursorutil.llb/Unset Busy.vi"/> <Item Name="VariantType.lvlib" Type="Library" URL="/&lt;vilib&gt;/Utility/VariantDataType/VariantType.lvlib"/> <Item Name="VI Scripting - Traverse.lvlib" Type="Library" URL="/&lt;vilib&gt;/Utility/traverseref.llb/VI Scripting - Traverse.lvlib"/> <Item Name="VIAnUtil Check If ErrClust.vi" Type="VI" URL="/&lt;vilib&gt;/addons/analyzer/_analyzerutils.llb/VIAnUtil Check If ErrClust.vi"/> <Item Name="VIAnUtil Check Type If ErrClust.vi" Type="VI" URL="/&lt;vilib&gt;/addons/analyzer/_analyzerutils.llb/VIAnUtil Check Type If ErrClust.vi"/> <Item Name="VIAnUtil Clear Specific Error.vi" Type="VI" URL="/&lt;vilib&gt;/addons/analyzer/_analyzerutils.llb/VIAnUtil Clear Specific Error.vi"/> <Item Name="VIAnUtil Has Diagram.vi" Type="VI" URL="/&lt;vilib&gt;/addons/analyzer/_analyzerutils.llb/VIAnUtil Has Diagram.vi"/> <Item Name="VIMemory Computing Node.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/allVIsInMemory.llb/VIMemory Computing Node.ctl"/> <Item Name="VIMemory Get All Computing Nodes.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/allVIsInMemory.llb/VIMemory Get All Computing Nodes.vi"/> <Item Name="VIMemory Get Computing Nodes.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/allVIsInMemory.llb/VIMemory Get Computing Nodes.vi"/> <Item Name="VIMemory Get VIs in Memory from Computing Node.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/allVIsInMemory.llb/VIMemory Get VIs in Memory from Computing Node.vi"/> <Item Name="VIMemory Get VIs in Memory.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/allVIsInMemory.llb/VIMemory Get VIs in Memory.vi"/> <Item Name="VIMemory VI info.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/allVIsInMemory.llb/VIMemory VI info.ctl"/> <Item Name="Waveform Array To Dynamic.vi" Type="VI" URL="/&lt;vilib&gt;/express/express shared/transition.llb/Waveform Array To Dynamic.vi"/> <Item Name="whitespace.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/whitespace.ctl"/> <Item Name="Write BMP Data To Buffer.vi" Type="VI" URL="/&lt;vilib&gt;/picture/bmp.llb/Write BMP Data To Buffer.vi"/> <Item Name="Write BMP Data.vi" Type="VI" URL="/&lt;vilib&gt;/picture/bmp.llb/Write BMP Data.vi"/> <Item Name="Write BMP File(6_1).vi" Type="VI" URL="/&lt;vilib&gt;/picture/bmp.llb/Write BMP File(6_1).vi"/> <Item Name="Write BMP File.vi" Type="VI" URL="/&lt;vilib&gt;/picture/bmp.llb/Write BMP File.vi"/> <Item Name="Write JPEG File.vi" Type="VI" URL="/&lt;vilib&gt;/picture/jpeg.llb/Write JPEG File.vi"/> <Item Name="Write PNG File(6_1).vi" Type="VI" URL="/&lt;vilib&gt;/picture/png.llb/Write PNG File(6_1).vi"/> <Item Name="Write PNG File.vi" Type="VI" URL="/&lt;vilib&gt;/picture/png.llb/Write PNG File.vi"/> <Item Name="Write Registry Value DWORD.vi" Type="VI" URL="/&lt;vilib&gt;/registry/registry.llb/Write Registry Value DWORD.vi"/> <Item Name="Write Registry Value Simple STR.vi" Type="VI" URL="/&lt;vilib&gt;/registry/registry.llb/Write Registry Value Simple STR.vi"/> <Item Name="Write Registry Value Simple U32.vi" Type="VI" URL="/&lt;vilib&gt;/registry/registry.llb/Write Registry Value Simple U32.vi"/> <Item Name="Write Registry Value Simple.vi" Type="VI" URL="/&lt;vilib&gt;/registry/registry.llb/Write Registry Value Simple.vi"/> <Item Name="Write Registry Value STR.vi" Type="VI" URL="/&lt;vilib&gt;/registry/registry.llb/Write Registry Value STR.vi"/> <Item Name="Write Registry Value.vi" Type="VI" URL="/&lt;vilib&gt;/registry/registry.llb/Write Registry Value.vi"/> </Item> <Item Name="Advapi32.dll" Type="Document" URL="Advapi32.dll"> <Property Name="NI.PreserveRelativePath" Type="Bool">true</Property> </Item> <Item Name="CreateNewWizard_Interface.ctl" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/CreateNewWizard_Interface.ctl"/> <Item Name="Global_Interface.ctl" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/Global_Interface.ctl"/> <Item Name="Item_Interface.ctl" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/Item_Interface.ctl"/> <Item Name="ItemRef.ctl" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/ItemRef.ctl"/> <Item Name="kernel32.dll" Type="Document" URL="kernel32.dll"> <Property Name="NI.PreserveRelativePath" Type="Bool">true</Property> </Item> <Item Name="LV Config Read Boolean.vi" Type="VI" URL="/&lt;resource&gt;/dialog/lvconfig.llb/LV Config Read Boolean.vi"/> <Item Name="LV Config Read Color.vi" Type="VI" URL="/&lt;resource&gt;/dialog/lvconfig.llb/LV Config Read Color.vi"/> <Item Name="LV Config Read Numeric (I32).vi" Type="VI" URL="/&lt;resource&gt;/dialog/lvconfig.llb/LV Config Read Numeric (I32).vi"/> <Item Name="LV Config Read Pathlist.vi" Type="VI" URL="/&lt;resource&gt;/dialog/lvconfig.llb/LV Config Read Pathlist.vi"/> <Item Name="LV Config Read String.vi" Type="VI" URL="/&lt;resource&gt;/dialog/lvconfig.llb/LV Config Read String.vi"/> <Item Name="LV Config Read.vi" Type="VI" URL="/&lt;resource&gt;/dialog/lvconfig.llb/LV Config Read.vi"/> <Item Name="lvanlys.dll" Type="Document" URL="/&lt;resource&gt;/lvanlys.dll"/> <Item Name="mxLvAddIconOverlays.vi" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/mxLvAddIconOverlays.vi"/> <Item Name="mxLvChangeType.ctl" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/mxLvChangeType.ctl"/> <Item Name="mxLvDebugDisplayCaller.vi" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/mxLvDebugDisplayCaller.vi"/> <Item Name="mxLvErrorHandler.vi" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/mxLvErrorHandler.vi"/> <Item Name="mxLvGetFilePath.vi" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/mxLvGetFilePath.vi"/> <Item Name="mxLvGetItemRef.vi" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/mxLvGetItemRef.vi"/> <Item Name="mxLvGetNIIM.vi" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/mxLvGetNIIM.vi"/> <Item Name="mxLvGetProjectRef.vi" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/mxLvGetProjectRef.vi"/> <Item Name="mxLvMenuItem.ctl" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/mxLvMenuItem.ctl"/> <Item Name="mxLvNIIM.ctl" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/mxLvNIIM.ctl"/> <Item Name="mxLvOverlayAlias.ctl" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/mxLvOverlayAlias.ctl"/> <Item Name="mxLvOverlayState.ctl" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/mxLvOverlayState.ctl"/> <Item Name="mxLvProvider.mxx" Type="Document" URL="/&lt;resource&gt;/Framework/Providers/mxLvProvider.mxx"/> <Item Name="mxLvSetIconOverlays.vi" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/mxLvSetIconOverlays.vi"/> <Item Name="mxLvSetMenu.vi" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/mxLvSetMenu.vi"/> <Item Name="mxLvSetPopupMenu.vi" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/mxLvSetPopupMenu.vi"/> <Item Name="mxLvSetPopupMenuBatch.vi" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/mxLvSetPopupMenuBatch.vi"/> <Item Name="mxLvSetToolbar.vi" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/mxLvSetToolbar.vi"/> <Item Name="Provider_Interface.ctl" Type="VI" URL="/&lt;resource&gt;/Framework/Providers/API/Provider_Interface.ctl"/> <Item Name="user32.dll" Type="Document" URL="user32.dll"> <Property Name="NI.PreserveRelativePath" Type="Bool">true</Property> </Item> </Item> <Item Name="Build Specifications" Type="Build"> <Item Name="AutoInstaller" Type="EXE"> <Property Name="App_copyErrors" Type="Bool">true</Property> <Property Name="App_INI_aliasGUID" Type="Str">{209C4D96-11F7-4CE8-9A13-5665B7AAC22F}</Property> <Property Name="App_INI_GUID" Type="Str">{F9A15B40-C31E-4324-8C97-0219CB702D57}</Property> <Property Name="App_serverConfig.httpPort" Type="Int">8002</Property> <Property Name="App_winsec.description" Type="Str">http://www.Symbio.com</Property> <Property Name="Bld_buildCacheID" Type="Str">{BD1FA994-D4D9-439C-B422-6BFECA068D7C}</Property> <Property Name="Bld_buildSpecName" Type="Str">AutoInstaller</Property> <Property Name="Bld_excludeInlineSubVIs" Type="Bool">true</Property> <Property Name="Bld_excludeLibraryItems" Type="Bool">true</Property> <Property Name="Bld_excludePolymorphicVIs" Type="Bool">true</Property> <Property Name="Bld_localDestDir" Type="Path">../OpenGDS_Tests/AutoInstaller/EXE</Property> <Property Name="Bld_localDestDirType" Type="Str">relativeToProject</Property> <Property Name="Bld_modifyLibraryFile" Type="Bool">true</Property> <Property Name="Bld_previewCacheID" Type="Str">{EFCF2E14-609D-4A0D-934D-5A33779A1995}</Property> <Property Name="Bld_version.major" Type="Int">1</Property> <Property Name="Destination[0].destName" Type="Str">AutoInstaller.exe</Property> <Property Name="Destination[0].path" Type="Path">../OpenGDS_Tests/AutoInstaller/EXE/AutoInstaller.exe</Property> <Property Name="Destination[0].path.type" Type="Str">relativeToProject</Property> <Property Name="Destination[0].preserveHierarchy" Type="Bool">true</Property> <Property Name="Destination[0].type" Type="Str">App</Property> <Property Name="Destination[1].destName" Type="Str">Support Directory</Property> <Property Name="Destination[1].path" Type="Path">../OpenGDS_Tests/AutoInstaller/EXE/data</Property> <Property Name="Destination[1].path.type" Type="Str">relativeToProject</Property> <Property Name="DestinationCount" Type="Int">2</Property> <Property Name="Source[0].itemID" Type="Str">{E2461D14-7BEB-4A95-B23A-3CD851A9E733}</Property> <Property Name="Source[0].type" Type="Str">Container</Property> <Property Name="Source[1].destinationIndex" Type="Int">0</Property> <Property Name="Source[1].itemID" Type="Ref">/My Computer/Open_GDS_Tools/OpenGDS_Tests/AutoInstaller/AutoInstaller.vi</Property> <Property Name="Source[1].sourceInclusion" Type="Str">TopLevel</Property> <Property Name="Source[1].type" Type="Str">VI</Property> <Property Name="SourceCount" Type="Int">2</Property> <Property Name="TgtF_companyName" Type="Str">Symbio</Property> <Property Name="TgtF_fileDescription" Type="Str">AutoInstaller</Property> <Property Name="TgtF_internalName" Type="Str">AutoInstaller</Property> <Property Name="TgtF_legalCopyright" Type="Str">Copyright © 2014 Symbio</Property> <Property Name="TgtF_productName" Type="Str">AutoInstaller</Property> <Property Name="TgtF_targetfileGUID" Type="Str">{7A35A9A9-40F6-4312-88B9-3D5DECE643D2}</Property> <Property Name="TgtF_targetfileName" Type="Str">AutoInstaller.exe</Property> </Item> </Item> </Item> </Project>
LabVIEW
2
ajnavarro/language-dataset
data/github.com/opengds/OpenGDS/9b990ecbcdeb78ebcd952fdf03efaf937daeae33/Open_GDS_Tools/Open_GDS.lvproj
[ "MIT" ]
# This file is distributed under the same license as the Django package. # # Translators: # e4db27214f7e7544f2022c647b585925_bb0e321, 2015 # e4db27214f7e7544f2022c647b585925_bb0e321, 2014 # Jannis Leidel <[email protected]>, 2011 # Uriel Medina <[email protected]>, 2020-2021 msgid "" msgstr "" "Project-Id-Version: django\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-01-15 09:00+0100\n" "PO-Revision-Date: 2021-02-11 05:54+0000\n" "Last-Translator: Uriel Medina <[email protected]>\n" "Language-Team: Spanish (http://www.transifex.com/django/django/language/" "es/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: es\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" msgid "Redirects" msgstr "Redirecciones" msgid "site" msgstr "sitio" msgid "redirect from" msgstr "redireccionar desde" msgid "" "This should be an absolute path, excluding the domain name. Example: “/" "events/search/”." msgstr "" "Esta debe ser una ruta absoluta, excluyendo el nombre de dominio. Ejemplo: “/" "eventos/búsqueda/”." msgid "redirect to" msgstr "redireccionar a" msgid "" "This can be either an absolute path (as above) or a full URL starting with a " "scheme such as “https://”." msgstr "" "Esto puede ser una ruta absoluta (como se indica arriba) o una URL completa " "que comience con un esquema como \"https: //\"." msgid "redirect" msgstr "redirección" msgid "redirects" msgstr "redirecciones"
Gettext Catalog
2
Joshua-Barawa/My-Photos
venv/lib/python3.8/site-packages/django/contrib/redirects/locale/es/LC_MESSAGES/django.po
[ "PostgreSQL", "Unlicense" ]
CREATE TABLE public.article ( id integer NOT NULL, title text NOT NULL, user_id text NOT NULL ); CREATE SEQUENCE public.article_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER SEQUENCE public.article_id_seq OWNED BY public.article.id; CREATE TABLE public.users ( auth0_id text NOT NULL, name text NOT NULL, created_at timestamp with time zone DEFAULT now() NOT NULL ); ALTER TABLE ONLY public.article ALTER COLUMN id SET DEFAULT nextval('public.article_id_seq'::regclass); ALTER TABLE ONLY public.article ADD CONSTRAINT article_pkey PRIMARY KEY (id); ALTER TABLE ONLY public.users ADD CONSTRAINT users_pkey PRIMARY KEY (auth0_id); ALTER TABLE ONLY public.article ADD CONSTRAINT article_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(auth0_id);
SQL
4
gh-oss-contributor/graphql-engine-1
community/sample-apps/vuejs-auth0-graphql/hasura/migrations/default/1613664247608_init/up.sql
[ "Apache-2.0", "MIT" ]
--TEST-- Bug #35885 (strtotime("NOW") no longer works) --FILE-- <?php date_default_timezone_set("UTC"); $time = time(); $ts = date(DATE_ISO8601, strtotime('NOW', $time)); $ts2 = date(DATE_ISO8601, $time); $res = ($ts == $ts2); var_dump($res); if (!$res) { var_dump($ts); var_dump($ts2); } ?> --EXPECT-- bool(true)
PHP
3
thiagooak/php-src
ext/date/tests/bug35885.phpt
[ "PHP-3.01" ]
# Copyright (c) 2020 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License. Feature: Basic match Background: Given a graph with space named "nba_int_vid" Scenario: Single node When executing query: """ MATCH (v:player {name: "Yao Ming"}) RETURN v """ Then the result should be, in any order, with relax comparison: | v | | ("Yao Ming") | When executing query: """ MATCH (v:player) WHERE v.name == "Yao Ming" RETURN v.age AS Age """ Then the result should be, in any order: | Age | | 38 | When executing query: """ MATCH (v:player {age: 29}) return v.name AS Name """ Then the result should be, in any order: | Name | | 'James Harden' | | 'Jonathon Simmons' | | 'Klay Thompson' | | 'Dejounte Murray' | When executing query: """ MATCH (v:player {age: 29}) WHERE v.name STARTS WITH "J" return v.name AS Name """ Then the result should be, in any order: | Name | | 'James Harden' | | 'Jonathon Simmons' | When executing query: """ MATCH (v:player) WHERE v.age >= 38 AND v.age < 45 return v.name AS Name, v.age AS Age """ Then the result should be, in any order: | Name | Age | | 'Paul Gasol' | 38 | | 'Kobe Bryant' | 40 | | 'Vince Carter' | 42 | | 'Tim Duncan' | 42 | | 'Yao Ming' | 38 | | 'Dirk Nowitzki' | 40 | | 'Manu Ginobili' | 41 | | 'Ray Allen' | 43 | | 'David West' | 38 | | 'Tracy McGrady' | 39 | When executing query: """ MATCH (v:player) where v.age > 9223372036854775807+1 return v """ Then a SemanticError should be raised at runtime: result of (9223372036854775807+1) cannot be represented as an integer When executing query: """ MATCH (v:player) where v.age > -9223372036854775808-1 return v """ Then a SemanticError should be raised at runtime: result of (-9223372036854775808-1) cannot be represented as an integer Scenario: Une step When executing query: """ MATCH (v1:player{name: "LeBron James"}) -[r]-> (v2) RETURN type(r) AS Type, v2.name AS Name """ Then the result should be, in any order: | Type | Name | | "like" | "Ray Allen" | | "serve" | "Cavaliers" | | "serve" | "Heat" | | "serve" | "Lakers" | | "serve" | "Cavaliers" | When executing query: """ MATCH (v1:player{name: "LeBron James"}) -[r:serve|:like]-> (v2) RETURN type(r) AS Type, v2.name AS Name """ Then the result should be, in any order: | Type | Name | | "serve" | "Cavaliers" | | "serve" | "Heat" | | "serve" | "Lakers" | | "serve" | "Cavaliers" | | "like" | "Ray Allen" | When executing query: """ MATCH (v1:player{name: "LeBron James"}) -[r:serve]-> (v2) RETURN type(r) AS Type, v2.name AS Name """ Then the result should be, in any order: | Type | Name | | "serve" | "Cavaliers" | | "serve" | "Heat" | | "serve" | "Lakers" | | "serve" | "Cavaliers" | When executing query: """ MATCH (v1:player{name: "LeBron James"}) -[r:serve]-> (v2 {name: "Cavaliers"}) RETURN type(r) AS Type, v2.name AS Name """ Then the result should be, in any order: | Type | Name | | "serve" | "Cavaliers" | | "serve" | "Cavaliers" | When executing query: """ MATCH (v1:player{name: "LeBron James"}) -[r:serve]-> (v2 {name: "Cavaliers"}) WHERE r.start_year <= 2005 AND r.end_year >= 2005 RETURN r.start_year AS Start_Year, r.end_year AS Start_Year """ Then the result should be, in any order: | Start_Year | Start_Year | | 2003 | 2010 | When executing query: """ MATCH (v1:player{name: "Danny Green"}) -[:like]-> (v2) RETURN v1.name AS Name, v2.name AS Friend """ Then the result should be, in any order: | Name | Friend | | "Danny Green" | "LeBron James" | | "Danny Green" | "Marco Belinelli" | | "Danny Green" | "Tim Duncan" | When executing query: """ MATCH (v1:player{name: "Danny Green"}) <-[:like]- (v2) RETURN v1.name AS Name, v2.name AS Friend """ Then the result should be, in any order: | Name | Friend | | "Danny Green" | "Dejounte Murray" | | "Danny Green" | "Marco Belinelli" | When executing query: """ MATCH (v1:player{name: "Danny Green"}) <-[:like]-> (v2) RETURN v1.name AS Name, v2.name AS Friend """ Then the result should be, in any order: | Name | Friend | | "Danny Green" | "Dejounte Murray" | | "Danny Green" | "Marco Belinelli" | | "Danny Green" | "LeBron James" | | "Danny Green" | "Marco Belinelli" | | "Danny Green" | "Tim Duncan" | When executing query: """ MATCH (v1:player{name: "Danny Green"}) -[:like]- (v2) RETURN v1.name AS Name, v2.name AS Friend """ Then the result should be, in any order: | Name | Friend | | "Danny Green" | "Dejounte Murray" | | "Danny Green" | "Marco Belinelli" | | "Danny Green" | "LeBron James" | | "Danny Green" | "Marco Belinelli" | | "Danny Green" | "Tim Duncan" | Scenario: two steps When executing query: """ MATCH (v1:player{age: 28}) -[:like]-> (v2) -[:like]-> (v3) RETURN v1.name AS Player, v2.name AS Friend, v3.name AS FoF """ Then the result should be, in any order: | Player | Friend | FoF | | "Paul George" | "Russell Westbrook" | "James Harden" | | "Paul George" | "Russell Westbrook" | "Paul George" | | "Damian Lillard" | "LaMarcus Aldridge" | "Tim Duncan" | | "Damian Lillard" | "LaMarcus Aldridge" | "Tony Parker" | When executing query: """ MATCH (v1:player{name: 'Tony Parker'}) -[r1:serve]-> (v2) <-[r2:serve]- (v3) WHERE r1.start_year <= r2.end_year AND r1.end_year >= r2.start_year AND v1.name <> v3.name AND v3.name STARTS WITH 'D' RETURN v1.name AS Player, v2.name AS Team, v3.name AS Teammate """ Then the result should be, in any order: | Player | Team | Teammate | | "Tony Parker" | "Hornets" | "Dwight Howard" | | "Tony Parker" | "Spurs" | "Danny Green" | | "Tony Parker" | "Spurs" | "David West" | | "Tony Parker" | "Spurs" | "Dejounte Murray" | Scenario: Distinct When executing query: """ MATCH (:player{name:'Dwyane Wade'}) -[:like]-> () -[:like]-> (v3) RETURN v3.name AS Name """ Then the result should be, in any order: | Name | | "Carmelo Anthony" | | "Dwyane Wade" | | "LeBron James" | | "Chris Paul" | | "Dwyane Wade" | | "LeBron James" | | "Ray Allen" | When executing query: """ MATCH (:player{name:'Dwyane Wade'}) -[:like]-> () -[:like]-> (v3) RETURN DISTINCT v3.name AS Name """ Then the result should be, in any order: | Name | | "Carmelo Anthony" | | "Dwyane Wade" | | "LeBron James" | | "Chris Paul" | | "Ray Allen" | Scenario: Order skip limit When executing query: """ MATCH (:player{name:'Dejounte Murray'}) -[:like]-> (v) RETURN v.name AS Name, v.age AS Age ORDER BY Age DESC, Name ASC """ Then the result should be, in any order: | Name | Age | | "Tim Duncan" | 42 | | "Manu Ginobili" | 41 | | "Tony Parker" | 36 | | "LeBron James" | 34 | | "Chris Paul" | 33 | | "Marco Belinelli" | 32 | | "Danny Green" | 31 | | "Kevin Durant" | 30 | | "Russell Westbrook" | 30 | | "James Harden" | 29 | | "Kyle Anderson" | 25 | When executing query: """ MATCH (:player{name:'Dejounte Murray'}) -[:like]-> (v) RETURN v.name AS Name, v.age AS Age ORDER BY Age DESC, Name ASC LIMIT 3 """ Then the result should be, in any order: | Name | Age | | "Tim Duncan" | 42 | | "Manu Ginobili" | 41 | | "Tony Parker" | 36 | When executing query: """ MATCH (:player{name:'Dejounte Murray'}) -[:like]-> (v) RETURN v.name AS Name, v.age AS Age ORDER BY Age DESC, Name ASC SKIP 3 """ Then the result should be, in any order: | Name | Age | | "LeBron James" | 34 | | "Chris Paul" | 33 | | "Marco Belinelli" | 32 | | "Danny Green" | 31 | | "Kevin Durant" | 30 | | "Russell Westbrook" | 30 | | "James Harden" | 29 | | "Kyle Anderson" | 25 | When executing query: """ MATCH (:player{name:'Dejounte Murray'}) -[:like]-> (v) RETURN v.name AS Name, v.age AS Age ORDER BY Age DESC, Name ASC SKIP 3 LIMIT 3 """ Then the result should be, in any order: | Name | Age | | "LeBron James" | 34 | | "Chris Paul" | 33 | | "Marco Belinelli" | 32 | When executing query: """ MATCH (:player{name:'Dejounte Murray'}) -[:like]-> (v) RETURN v.name AS Name, v.age AS Age ORDER BY Age DESC, Name ASC SKIP 11 LIMIT 3 """ Then the result should be, in any order: | Name | Age | When executing query: """ MATCH (:player{name:'Dejounte Murray'}) -[:like]-> (v) RETURN v.name AS Name, v.age AS Age ORDER BY Age DESC, Name ASC LIMIT 0 """ Then the result should be, in any order: | Name | Age | Scenario: Order by vertex prop When executing query: """ MATCH (:player{name:'Dejounte Murray'}) -[:like]-> (v) RETURN v.name AS Name, v.age AS Age ORDER BY v.age DESC, v.name ASC """ Then a SemanticError should be raised at runtime: Only column name can be used as sort item Scenario: Return path When executing query: """ MATCH p = (n:player{name:"Tony Parker"}) return p,n """ Then the result should be, in any order, with relax comparison: | p | n | | <("Tony Parker")> | ("Tony Parker") | When executing query: """ MATCH p = (n:player{name:"LeBron James"})-[:like]->(m) return p, n.name, m.name """ Then the result should be, in any order, with relax comparison: | p | n.name | m.name | | <("LeBron James")-[:like@0]->("Ray Allen")> | "LeBron James" | "Ray Allen" | When executing query: """ MATCH p = (n:player{name:"LeBron James"})<-[:like]-(m) return p, n.name, m.name """ Then the result should be, in any order, with relax comparison: | p | n.name | m.name | | <("LeBron James")<-[:like@0]-("Carmelo Anthony")> | "LeBron James" | "Carmelo Anthony" | | <("LeBron James")<-[:like@0]-("Chris Paul")> | "LeBron James" | "Chris Paul" | | <("LeBron James")<-[:like@0]-("Danny Green")> | "LeBron James" | "Danny Green" | | <("LeBron James")<-[:like@0]-("Dejounte Murray")> | "LeBron James" | "Dejounte Murray" | | <("LeBron James")<-[:like@0]-("Dwyane Wade")> | "LeBron James" | "Dwyane Wade" | | <("LeBron James")<-[:like@0]-("Kyrie Irving")> | "LeBron James" | "Kyrie Irving" | When executing query: """ MATCH p = (n:player{name:"LeBron James"})-[:like]-(m) return p, n.name, m.name """ Then the result should be, in any order, with relax comparison: | p | n.name | m.name | | <("LeBron James")<-[:like@0]-("Carmelo Anthony")> | "LeBron James" | "Carmelo Anthony" | | <("LeBron James")<-[:like@0]-("Chris Paul")> | "LeBron James" | "Chris Paul" | | <("LeBron James")<-[:like@0]-("Danny Green")> | "LeBron James" | "Danny Green" | | <("LeBron James")<-[:like@0]-("Dejounte Murray")> | "LeBron James" | "Dejounte Murray" | | <("LeBron James")<-[:like@0]-("Dwyane Wade")> | "LeBron James" | "Dwyane Wade" | | <("LeBron James")<-[:like@0]-("Kyrie Irving")> | "LeBron James" | "Kyrie Irving" | | <("LeBron James")-[:like@0]->("Ray Allen")> | "LeBron James" | "Ray Allen" | When executing query: """ MATCH p = (n:player{name:"LeBron James"})-[:like]->(m)-[:like]->(k) return p, n.name, m.name, k.name """ Then the result should be, in any order, with relax comparison: | p | n.name | m.name | k.name | | <("LeBron James")-[:like@0]->("Ray Allen")-[:like@0]->("Rajon Rondo")> | "LeBron James" | "Ray Allen" | "Rajon Rondo" | When executing query: """ MATCH p=(:player{name:"LeBron James"})-[:like]->()-[:like]->() RETURN * """ Then the result should be, in any order, with relax comparison: | p | | <("LeBron James")-[:like@0]->("Ray Allen")-[:like@0]->("Rajon Rondo")> | Scenario: exists When executing query: """ MATCH (:player{name:"Tony Parker"})-[r]->() where exists(r.likeness) return r, exists({a:12}.a) """ Then the result should be, in any order, with relax comparison: | r | exists({a:12}.a) | | [:like "Tony Parker"->"LaMarcus Aldridge" @0 {likeness: 90}] | true | | [:like "Tony Parker"->"Manu Ginobili" @0 {likeness: 95}] | true | | [:like "Tony Parker"->"Tim Duncan" @0 {likeness: 95}] | true | When executing query: """ MATCH (:player{name:"Tony Parker"})-[r]->(m) where exists(m.likeness) return r, exists({a:12}.a) """ Then the result should be, in any order, with relax comparison: | r | exists({a:12}.a) | When executing query: """ match (:player{name:"Tony Parker"})-[r]->(m) where exists({abc:123}.abc) return r """ Then the result should be, in any order, with relax comparison: | r | | [:teammate "Tony Parker"->"Kyle Anderson" @0 {end_year: 2016, start_year: 2014}] | | [:teammate "Tony Parker"->"LaMarcus Aldridge" @0 {end_year: 2018, start_year: 2015}] | | [:teammate "Tony Parker"->"Manu Ginobili" @0 {end_year: 2018, start_year: 2002}] | | [:teammate "Tony Parker"->"Tim Duncan" @0 {end_year: 2016, start_year: 2001}] | | [:like "Tony Parker"->"LaMarcus Aldridge" @0 {likeness: 90}] | | [:like "Tony Parker"->"Manu Ginobili" @0 {likeness: 95}] | | [:like "Tony Parker"->"Tim Duncan" @0 {likeness: 95}] | | [:serve "Tony Parker"->"Hornets" @0 {end_year: 2019, start_year: 2018}] | | [:serve "Tony Parker"->"Spurs" @0 {end_year: 2018, start_year: 1999}] | When executing query: """ match (:player{name:"Tony Parker"})-[r]->(m) where exists({abc:123}.ab) return r """ Then the result should be, in any order, with relax comparison: | r | When executing query: """ match (:player{name:"Tony Parker"})-[r]->(m) where exists(m.age) return r """ Then the result should be, in any order, with relax comparison: | r | | [:teammate "Tony Parker"->"Kyle Anderson" @0 {end_year: 2016, start_year: 2014}] | | [:teammate "Tony Parker"->"LaMarcus Aldridge" @0 {end_year: 2018, start_year: 2015}] | | [:teammate "Tony Parker"->"Manu Ginobili" @0 {end_year: 2018, start_year: 2002}] | | [:teammate "Tony Parker"->"Tim Duncan" @0 {end_year: 2016, start_year: 2001}] | | [:like "Tony Parker"->"LaMarcus Aldridge" @0 {likeness: 90}] | | [:like "Tony Parker"->"Manu Ginobili" @0 {likeness: 95}] | | [:like "Tony Parker"->"Tim Duncan" @0 {likeness: 95}] | Scenario: filter evaluable When executing query: """ match (v:player{age: -1}) return v """ Then the result should be, in any order, with relax comparison: | v | When executing query: """ match (v:player{age: +20}) return v """ Then the result should be, in any order, with relax comparison: | v | | ("Luka Doncic" :player{age: 20, name: "Luka Doncic"}) | When executing query: """ match (v:player{age: 1+19}) return v """ Then the result should be, in any order, with relax comparison: | v | | ("Luka Doncic" :player{age: 20, name: "Luka Doncic"}) | When executing query: """ match (v:player)-[e:like{likeness:-1}]->() return e """ Then the result should be, in any order, with relax comparison: | e | | [:like "Blake Griffin"->"Chris Paul" @0 {likeness: -1}] | | [:like "Rajon Rondo"->"Ray Allen" @0 {likeness: -1}] | When executing query: """ match (v:player)-[e:like{likeness:40+50+5}]->() return e """ Then the result should be, in any order, with relax comparison: | e | | [:like "Tim Duncan"->"Manu Ginobili" @0 {likeness: 95}] | | [:like "Tim Duncan"->"Tony Parker" @0 {likeness: 95}] | | [:like "Paul George"->"Russell Westbrook" @0 {likeness: 95}] | | [:like "Tony Parker"->"Manu Ginobili" @0 {likeness: 95}] | | [:like "Tony Parker"->"Tim Duncan" @0 {likeness: 95}] | When executing query: """ match (v:player)-[e:like{likeness:4*20+5}]->() return e """ Then the result should be, in any order, with relax comparison: | e | | [:like "Jason Kidd"->"Dirk Nowitzki"@0{likeness:85}] | | [:like "Steve Nash"->"Jason Kidd"@0{likeness:85}] | When executing query: """ match (v:player)-[e:like{likeness:"99"}]->() return e """ Then the result should be, in any order, with relax comparison: | e | When executing query: """ match (v:player{age:"24"-1}) return v """ Then a SemanticError should be raised at runtime: Type error `("24"-1)' Scenario: No return When executing query: """ MATCH (v:player{name:"abc"}) """ Then a SyntaxError should be raised at runtime: syntax error near `)' Scenario: Unimplemented features When executing query: """ MATCH (v) return v """ Then a ExecutionError should be raised at runtime: Scan vertices or edges need to specify a limit number, or limit number can not push down. When executing query: """ MATCH (v{name: "Tim Duncan"}) return v """ Then a ExecutionError should be raised at runtime: Scan vertices or edges need to specify a limit number, or limit number can not push down. When executing query: """ MATCH (v:player:bachelor) RETURN v """ Then a ExecutionError should be raised at runtime: Scan vertices or edges need to specify a limit number, or limit number can not push down. When executing query: """ MATCH (v:player{age:23}:bachelor) RETURN v """ Then a ExecutionError should be raised at runtime: Scan vertices or edges need to specify a limit number, or limit number can not push down. When executing query: """ MATCH () -[]-> (v) return * """ Then a ExecutionError should be raised at runtime: Scan vertices or edges need to specify a limit number, or limit number can not push down. When executing query: """ MATCH () --> (v) --> () return * """ Then a ExecutionError should be raised at runtime: Scan vertices or edges need to specify a limit number, or limit number can not push down. # The 0 step means node scan in fact, but p and t has no label or properties for index seek # So it's not workable now When executing query: """ MATCH (p)-[:serve*0..3]->(t) RETURN p """ Then a ExecutionError should be raised at runtime: Scan vertices or edges need to specify a limit number, or limit number can not push down.
Cucumber
5
SuperYoko/nebula
tests/tck/features/match/Base.IntVid.feature
[ "Apache-2.0" ]
import PropTypes from "prop-types" import React, { Component } from "react" import Fallback from "./fallback" export class ErrorBoundary extends Component { constructor(props) { super(props) this.state = { hasError: false, error: null } } static getDerivedStateFromError(error) { return { hasError: true, error } } componentDidCatch(error, errorInfo) { console.error(error, errorInfo) // eslint-disable-line no-console } render() { const { getComponent, targetName, children } = this.props const FallbackComponent = getComponent("Fallback") if (this.state.hasError) { return <FallbackComponent name={targetName} /> } return children } } ErrorBoundary.propTypes = { targetName: PropTypes.string, getComponent: PropTypes.func, children: PropTypes.oneOfType([ PropTypes.arrayOf(PropTypes.node), PropTypes.node, ]) } ErrorBoundary.defaultProps = { targetName: "this component", getComponent: () => Fallback, children: null, } export default ErrorBoundary
JSX
4
soyuka/swagger-ui
src/core/plugins/view/error-boundary.jsx
[ "Apache-2.0" ]
TDTopezLeafNode { #name : 'x', #contents : 'ts debug MCFileTreeIssue72Test>>testWriteNRead' }
STON
0
dalehenrich/filetree
tode/x.ston
[ "MIT" ]
const plan9 = @import("../plan9.zig"); // TODO better inline asm pub fn syscall1(sys: plan9.SYS, arg0: usize) usize { return asm volatile ( \\push %%r8 \\push $0 \\syscall \\pop %%r11 \\pop %%r11 : [ret] "={rax}" (-> usize), : [syscall_number] "{rbp}" (@enumToInt(sys)), [arg0] "{r8}" (arg0), : "rcx", "rax", "rbp", "r11", "memory" ); } pub fn syscall2(sys: plan9.SYS, arg0: usize, arg1: usize) usize { return asm volatile ( \\push %%r9 \\push %%r8 \\push $0 \\syscall \\pop %%r11 \\pop %%r11 \\pop %%r11 : [ret] "={rax}" (-> usize), : [arg0] "{r8}" (arg0), [arg1] "{r9}" (arg1), [syscall_number] "{rbp}" (@enumToInt(sys)), : "rcx", "rax", "rbp", "r11", "memory" ); } pub fn syscall3(sys: plan9.SYS, arg0: usize, arg1: usize, arg2: usize) usize { return asm volatile ( \\push %%r10 \\push %%r9 \\push %%r8 \\push $0 \\syscall \\pop %%r11 \\pop %%r11 \\pop %%r11 \\pop %%r11 : [ret] "={rax}" (-> usize), : [arg0] "{r8}" (arg0), [arg1] "{r9}" (arg1), [arg2] "{r10}" (arg2), [syscall_number] "{rbp}" (@enumToInt(sys)), : "rcx", "rax", "rbp", "r11", "memory" ); } pub fn syscall4(sys: plan9.SYS, arg0: usize, arg1: usize, arg2: usize, arg3: usize) usize { return asm volatile ( \\push %%r11 \\push %%r10 \\push %%r9 \\push %%r8 \\push $0 \\syscall \\pop %%r11 \\pop %%r11 \\pop %%r11 \\pop %%r11 \\pop %%r11 : [ret] "={rax}" (-> usize), : [arg0] "{r8}" (arg0), [arg1] "{r9}" (arg1), [arg2] "{r10}" (arg2), [arg2] "{r11}" (arg3), [syscall_number] "{rbp}" (@enumToInt(sys)), : "rcx", "rax", "rbp", "r11", "memory" ); }
Zig
3
lukekras/zig
lib/std/os/plan9/x86_64.zig
[ "MIT" ]
--TEST-- SPL: FixedArray: adding new elements --FILE-- <?php $a = new SplFixedArray(10); try { $a[] = 1; } catch (Error $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- [] operator not supported for SplFixedArray
PHP
4
NathanFreeman/php-src
ext/spl/tests/fixedarray_004.phpt
[ "PHP-3.01" ]
from ctypes import * import unittest, sys from test import support ################################################################ # This section should be moved into ctypes\__init__.py, when it's ready. from _ctypes import PyObj_FromPtr ################################################################ from sys import getrefcount as grc if sys.version_info > (2, 4): c_py_ssize_t = c_size_t else: c_py_ssize_t = c_int class PythonAPITestCase(unittest.TestCase): def test_PyBytes_FromStringAndSize(self): PyBytes_FromStringAndSize = pythonapi.PyBytes_FromStringAndSize PyBytes_FromStringAndSize.restype = py_object PyBytes_FromStringAndSize.argtypes = c_char_p, c_py_ssize_t self.assertEqual(PyBytes_FromStringAndSize(b"abcdefghi", 3), b"abc") @support.refcount_test def test_PyString_FromString(self): pythonapi.PyBytes_FromString.restype = py_object pythonapi.PyBytes_FromString.argtypes = (c_char_p,) s = b"abc" refcnt = grc(s) pyob = pythonapi.PyBytes_FromString(s) self.assertEqual(grc(s), refcnt) self.assertEqual(s, pyob) del pyob self.assertEqual(grc(s), refcnt) @support.refcount_test def test_PyLong_Long(self): ref42 = grc(42) pythonapi.PyLong_FromLong.restype = py_object self.assertEqual(pythonapi.PyLong_FromLong(42), 42) self.assertEqual(grc(42), ref42) pythonapi.PyLong_AsLong.argtypes = (py_object,) pythonapi.PyLong_AsLong.restype = c_long res = pythonapi.PyLong_AsLong(42) self.assertEqual(grc(res), ref42 + 1) del res self.assertEqual(grc(42), ref42) @support.refcount_test def test_PyObj_FromPtr(self): s = "abc def ghi jkl" ref = grc(s) # id(python-object) is the address pyobj = PyObj_FromPtr(id(s)) self.assertIs(s, pyobj) self.assertEqual(grc(s), ref + 1) del pyobj self.assertEqual(grc(s), ref) def test_PyOS_snprintf(self): PyOS_snprintf = pythonapi.PyOS_snprintf PyOS_snprintf.argtypes = POINTER(c_char), c_size_t, c_char_p buf = c_buffer(256) PyOS_snprintf(buf, sizeof(buf), b"Hello from %s", b"ctypes") self.assertEqual(buf.value, b"Hello from ctypes") PyOS_snprintf(buf, sizeof(buf), b"Hello from %s (%d, %d, %d)", b"ctypes", 1, 2, 3) self.assertEqual(buf.value, b"Hello from ctypes (1, 2, 3)") # not enough arguments self.assertRaises(TypeError, PyOS_snprintf, buf) def test_pyobject_repr(self): self.assertEqual(repr(py_object()), "py_object(<NULL>)") self.assertEqual(repr(py_object(42)), "py_object(42)") self.assertEqual(repr(py_object(object)), "py_object(%r)" % object) if __name__ == "__main__": unittest.main()
Python
5
shawwn/cpython
Lib/ctypes/test/test_python_api.py
[ "0BSD" ]
@size: 2px; #jasmine-content { font-size: @size; }
Less
3
pyrolabs/atom
spec/fixtures/packages/package-with-styles/styles/2.less
[ "MIT" ]
*/Driver/Printer/* print PRINT
Max
0
steakknife/pcgeos
Include/driver.pat
[ "Apache-2.0" ]
Select * From TABLE1 t Where a > 100 AND b between 12 AND 45; SELECT t.*,j1.x,j2.y FROM TABLE1 t JOIN JT1 j1 ON j1.a = t.a LEFT OUTER JOIN JT2 j2 ON j2.a=t.a AND j2.b=j1.b WHERE t.xxx NOT NULL; DELETE FROM TABLE1 WHERE a=1; UPDATE TABLE1 SET a=2 WHERE a=1 SELECT table1.id, table2.number, SUM(table1.amount) FROM table1 INNER JOIN table2 ON table.id = table2.table1_id WHERE table1.id IN (SELECT table1_id FROM table3 WHERE table3.name = 'Foo Bar' and table3.type = 'unknown_type') GROUP BY table1.id, table2.number ORDER BY table1.id;
SQL
3
SubOptimal/dbeaver
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/preferences/format_preview.sql
[ "Apache-2.0" ]
.class public Lfirst/A; .super Ljava/lang/Object; .field public first:Lfirst/A; .field public second:Lsecond/A; .method public test()Ljava/lang/String; .registers 2 invoke-static {}, Lsecond/A;->call()Ljava/lang/String; move-result-object v0 return-object v0 .end method
Smali
4
DSYliangweihao/jadx
jadx-core/src/test/smali/names/TestFieldCollideWithPackage/1.smali
[ "Apache-2.0" ]
/***************************************************************************** * * ALTER THING name SET SCHEMA name * *****************************************************************************/ AlterObjectSchemaStmt: ALTER TABLE relation_expr SET SCHEMA name { PGAlterObjectSchemaStmt *n = makeNode(PGAlterObjectSchemaStmt); n->objectType = PG_OBJECT_TABLE; n->relation = $3; n->newschema = $6; n->missing_ok = false; $$ = (PGNode *)n; } | ALTER TABLE IF_P EXISTS relation_expr SET SCHEMA name { PGAlterObjectSchemaStmt *n = makeNode(PGAlterObjectSchemaStmt); n->objectType = PG_OBJECT_TABLE; n->relation = $5; n->newschema = $8; n->missing_ok = true; $$ = (PGNode *)n; } | ALTER SEQUENCE qualified_name SET SCHEMA name { PGAlterObjectSchemaStmt *n = makeNode(PGAlterObjectSchemaStmt); n->objectType = PG_OBJECT_SEQUENCE; n->relation = $3; n->newschema = $6; n->missing_ok = false; $$ = (PGNode *)n; } | ALTER SEQUENCE IF_P EXISTS qualified_name SET SCHEMA name { PGAlterObjectSchemaStmt *n = makeNode(PGAlterObjectSchemaStmt); n->objectType = PG_OBJECT_SEQUENCE; n->relation = $5; n->newschema = $8; n->missing_ok = true; $$ = (PGNode *)n; } | ALTER VIEW qualified_name SET SCHEMA name { PGAlterObjectSchemaStmt *n = makeNode(PGAlterObjectSchemaStmt); n->objectType = PG_OBJECT_VIEW; n->relation = $3; n->newschema = $6; n->missing_ok = false; $$ = (PGNode *)n; } | ALTER VIEW IF_P EXISTS qualified_name SET SCHEMA name { PGAlterObjectSchemaStmt *n = makeNode(PGAlterObjectSchemaStmt); n->objectType = PG_OBJECT_VIEW; n->relation = $5; n->newschema = $8; n->missing_ok = true; $$ = (PGNode *)n; } ;
Yacc
4
AldoMyrtaj/duckdb
third_party/libpg_query/grammar/statements/alter_schema.y
[ "MIT" ]
Rebol [ Title: "Munge functions" Owner: "Ashley G Truter" Version: 3.0.6 Date: 9-Apr-2019 Purpose: "Extract and manipulate tabular values in blocks, delimited files and database tables." Licence: "MIT. Free for both commercial and non-commercial use." Tested: { Windows REBOL/View 2.7.8 rebol.com R3/64-bit 3.0.99 atronixengineering.com/downloads RED/32-bit 0.6.4 red-lang.org macOS REBOL/View 2.7.8 rebol.com RED/32-bit 0.6.4 red-lang.org } Changes: { Removed: build, platform and target moved from global context to settings append-column ascii-file? average-of call-oledb delta load-excel (replaced with oledb) map-source oledb-file? order remove-column split-line sum-of to-rebol-date to-rebol-time Added: crc32 excel? load-xml (uses unarchive) oledb (refactored from load-excel) settings literal column support to load-dsv, load-xml and munge (e.g. load-dsv/part file [1 "No"]) named column support to load-dsv, load-xml and munge (e.g. munge/where next [["Name" "Age"]["Sam" 50]] [&Age > 30]) Updated: munge/update refinement removed (use munge/where blk [row/1: 0]) munge/delete is now the same as munge/delete/where R2 support in archive and unarchive (requires /View) Excel support (using unarchive) added to cols?, fields?, rows? and sheets? replace-deep replaces multiple values in a single pass to-string-date and to-string-time now support Excel XML date (e.g. "41000") and time (e.g. ("0.33") formats list uses settings/console (default TRUE) to control new-line behaviour load-dsv (plus oledb, sqlcmd and sqlite) and load-xml use settings/as-is (default TRUE) to control trim/lines behaviour read-string optimized read-binary lost its /seek refinement added load-dsv/csv Fixed: Several parse copy words that escaped to the global context Unarchive bug /group 'count bug } Usage: { archive Compress block of file and data pairs. call-out Call OS command returning STDOUT. check Verify data structure. cols? Number of columns in a delimited file or string. crc32 Returns a CRC32 checksum. delimiter? Probable delimiter, with priority given to comma, tab, bar, tilde then semi-colon. dezero Remove leading zeroes from string. digit DIGIT is a bitset! value: make bitset! #{000000000000FFC0} digits? Returns TRUE if data not empty and only contains digits. distinct Remove duplicate and empty rows. enblock Convert a block of values to a block of row blocks. enzero Add leading zeroes to a string. excel? Returns TRUE if file is Excel or worksheet is XML. export Export words to global context. fields? Column names in a delimited file or string. first-line Returns the first non-empty line of a file. flatten Flatten nested block(s). latin1-to-utf8 Latin1 binary to UTF-8 string conversion. letter LETTER is a bitset! value: make bitset! #{00000000000000007FFFFFE07FFFFFE0} letters? Returns TRUE if data only contains letters. like Finds a value in a series, expanding * (any characters) and ? (any one character), and returns TRUE if found. list Uses settings to optionally trim strings and set the new-line marker. load-dsv Parses delimiter-separated values into row blocks. load-fixed Loads fixed-width values from a file. load-xml Loads an Office XML sheet. max-of Returns the largest value in a series. merge Join outer block to inner block on primary key. min-of Returns the smallest value in a series. mixedcase Converts string of characters to mixedcase. munge Load and/or manipulate a block of tabular (column and row) values. oledb Execute an OLEDB statement. parse-series Parses a series according to grammar rules. read-binary Read bytes from a file. read-string Read string from a text file. replace-deep Replaces all occurences of search values with new values in a block or nested block. rows? Number of rows in a delimited file or string. second-last/penult Returns the second last value of a series. sheets? Excel sheet names. sqlcmd Execute a SQL Server statement. sqlite Execute a SQLite statement. to-column-alpha Convert numeric column reference to an alpha column reference. to-column-number Convert alpha column reference to a numeric column reference. to-string-date Convert a string or Rebol date to a YYYY-MM-DD string. to-string-time Convert a string or Rebol time to a HH:MM:SS string. unarchive Decompresses archive (only works with compression methods 'store and 'deflate). write-dsv Write block(s) of values to a delimited text file. write-excel Write block(s) of values to an Excel file. } ] average: function [ "Returns the average of all values in a block" block [block!] ][ all [empty? block return none] divide sum block length? block ] sum: function [ "Returns the sum of all values in a block" values [block!] ] [ result: 0 foreach value values [result: result + value] result ] ctx-munge: context [ settings: context [ build: 'r3 os: system/platform target: either find form system/build/target "64" [64] [32] stack: copy [] start-time: start-used: none called: function [ name [word! none!] /file path [file! url! binary!] ] [ any [trace exit] either word? name [ insert/dup message: reform ["Call" either all [file not binary? path] [reform [name "on" last split-path path]] [name]] " " length? stack all [ empty? stack recycle settings/start-time: now/precise settings/start-used: stats ] append stack name ] [ insert/dup message: reform ["Exit" last stack] " " -1 + length? stack take/last stack ] print [next next next to-string-time/precise difference now/precise start-time head insert/dup s: form to integer! stats - start-used / 1048576 " " 4 - length? s message] ] exited: function [] [ any [empty? stack called none] ] error: function [ message [string!] ] compose [ clear stack (either build = 'red [[cause-error 'user 'message reduce [message]]] [[cause-error 'user 'message message]]) ] as-is: console: trace: true ] archive: function [ ; https://en.wikipedia.org/wiki/Zip_(file_format) & http://www.rebol.org/view-script.r?script=rebzip.r "Compress block of file and data pairs" source [series!] ] [ encode 'ZIP source ] call-out: function [ "Call OS command returning STDOUT" cmd [string!] ] [ all [settings/console settings/called 'call-out] call/wait/output/error cmd stdout: make binary! 65536 stderr: make string! 1024 any [empty? stderr settings/error trim/lines stderr] also read-string stdout all [settings/console settings/exited] ] check: function [ "Verify data structure" data [block!] ] [ unless empty? data [ cols: length? data/1 i: 1 foreach row data [ if message: case [ not block? row [reform ["expected block but found" type? row]] zero? length? row ["empty"] cols <> length? row [reform ["expected" cols "column(s) but found" length? row]] not not find row none ["contains a none value"] block? row/1 ["did not expect first column to be a block"] ] [ cause-error 'user 'message reduce [reform ["Row" i message]] ] i: i + 1 ] ] true ] cols?: function [ "Number of columns in a delimited file or string" data [file! url! binary! string!] /with delimiter [char!] /sheet number [integer!] ] [ all [settings/console settings/called 'cols?] also either excel? data [ any [ binary? data data: unarchive/only data rejoin [%xl/worksheets/sheet any [number 1] %.xml] settings/error reform [number "not a valid sheet number"] ] dim: cols: 0 all [ find data #{3C64696D} ; <dim parse to string! copy/part find data #{3C64696D} 32 [ thru {<dimension ref="} thru ":" copy dim some letter (dim: to-column-number dim) to end ] ] all [ find data #{3C636F6C} ; <col parse to string! copy/part find/last data #{3C636F6C} find data #{3C2F636F6C733E} [ thru {="} copy cols to {"} (cols: to integer! cols) to end ] ] max dim cols ] [ length? either with [fields?/with data delimiter] [fields? data] ] all [settings/console settings/exited] ] crc32: function [ "Returns a CRC32 checksum" data [binary! string!] ] [ checksum data 'CRC32 ] delimiter?: function [ "Probable delimiter, with priority given to comma, tab, bar, tilde then semi-colon" data [file! url! string!] ] [ data: first-line data counts: copy [0 0 0 0 0] foreach char data [ switch char [ #"," [counts/1: counts/1 + 1] #"^-" [counts/2: counts/2 + 1] #"|" [counts/3: counts/3 + 1] #"~" [counts/4: counts/4 + 1] #";" [counts/5: counts/5 + 1] ] ] pick [#"," #"^-" #"|" #"~" #";"] index? find counts max-of counts ] dezero: function [ "Remove leading zeroes from string" string [string!] ] [ parse string [remove some #"0"] string ] digit: charset [#"0" - #"9"] digits?: function [ "Returns TRUE if data not empty and only contains digits" data [string! binary!] ] compose/deep [ all [not empty? data not find data (complement digit)] ] distinct: function [ "Remove duplicate and empty rows" data [block!] ] [ all [settings/console settings/called 'distinct] old-row: none remove-each row sort data [ any [ all [ find ["" #[none]] row/1 1 = length? unique row ] either row = old-row [true] [old-row: row false] ] ] all [settings/console settings/exited] data ] enblock: function [ "Convert a block of values to a block of row blocks" data [block!] cols [integer!] ] [ all [block? data/1 return data] any [integer? rows: divide length? data cols cause-error 'user 'message ["Cols not a multiple of length"]] repeat i rows [ change/part/only at data i copy/part at data i cols cols ] data ] enzero: function [ "Add leading zeroes to a string" string [string!] length [integer!] ] [ insert/dup string #"0" length - length? string string ] excel?: function [ "Returns TRUE if file is Excel or worksheet is XML" data [file! url! binary! string!] ] [ switch/default type?/word data [ string! [false] binary! [not not find copy/part data 8 #{3C3F786D6C}] ; ignore UTF mark ] [ all [ %.xls = copy/part suffix? data 4 #{504B} = read-binary/part data 2 ; PK ] ] ] export: function [ "Export words to global context" words [block!] "Words to export" ] [ foreach word words [ do compose [(to-set-word word) (to-get-word in self word)] ] words ] fields?: function [ "Column names in a delimited file" data [file! url! binary! string!] /with delimiter [char!] /sheet number [integer!] ] [ all [settings/console settings/called 'fields?] also either excel? data [ load-xml/sheet/fields data any [number 1] ] [ data: first-line data case [ empty? data [ make block! 0 ] #"^"" = first data [ flatten load-dsv/ignore/with/csv data any [delimiter delimiter? data] ] true [ flatten load-dsv/ignore/with data any [delimiter delimiter? data] ] ] ] all [settings/console settings/exited] ] first-line: function [ "Returns the first non-empty line of a file" data [file! url! string!] ] [ data: deline/lines either file? data [ latin1-to-utf8 read-binary/part data 4096 ] [ copy/part data 4096 ] foreach line data [ any [empty? line return line] ] copy "" ] flatten: function [ ; http://www.rebol.org/view-script.r?script=flatten.r "Flatten nested block(s)" data [block!] ] [ either empty? data [data] [ result: copy [] foreach row data [ append result row ] ] ] latin1-to-utf8: function [ ; http://stackoverflow.com/questions/21716201/perform-file-encoding-conversion-with-rebol-3 "Latin1 binary to UTF-8 string conversion" data [binary!] ] compose/deep [ ; remove #"^@" trim/with data null ; remove #"^M" from split crlf either empty? data [make string! 0] [ all [cr = last data take/last data] ; replace char 160 with space - http://www.adamkoch.com/2009/07/25/white-space-and-character-160/ mark: data while [mark: find mark #{C2A0}] [ change/part mark #{20} 2 ] ; replace latin1 with UTF (either settings/build = 'r2 [] [[ mark: data while [mark: invalid-utf? mark] [ change/part mark to char! mark/1 1 ] ]]) deline to string! data ] ] letter: charset [#"A" - #"Z" #"a" - #"z"] letters?: function [ "Returns TRUE if data only contains letters" data [string! binary!] ] compose [ not find data (complement letter) ] like: function [ ; http://stackoverflow.com/questions/31612164/does-anyone-have-an-efficient-r3-function-that-mimics-the-behaviour-of-find-any "Finds a value in a series, expanding * (any characters) and ? (any one character), and returns TRUE if found" series [any-string!] "Series to search" value [any-string!] "Value to find" /local part ] compose [ all [empty? series return none] literal: (complement charset "*?") value: collect [ parse value [ end (keep [return (none)]) | some #"*" end (keep [to end]) | some [ #"?" (keep 'skip) | copy part some literal (keep part) | some #"*" any [#"?" (keep 'skip)] opt [copy part some literal (keep 'thru keep part)] ] ] ] parse series [some [result: value (return true)]] ] list: function [ "Uses settings to optionally trim strings and set the new-line marker" data [block!] ] [ either settings/console [ foreach row data [all [block? row new-line/all row false]] settings/exited new-line/all data true ] [data] ] load-dsv: function [ ; http://www.rebol.org/view-script.r?script=csv-tools.r "Parses delimiter-separated values into row blocks" source [file! url! binary! string!] /part "Offset position(s) to retrieve" columns [block! integer! word!] /where "Expression that can reference columns as row/1, row/2, etc" condition [block!] /with "Alternate delimiter (default is tab, bar then comma)" delimiter [char!] /ignore "Ignore truncated row errors" /csv "Parse as CSV even though not comma-delimited" ] compose [ all [settings/console settings/called 'load-dsv] source: either string? source [ deline source ] [ all [ file? source #{22} = read-binary/part source 1 csv: true ] read-string source ] any [with delimiter: delimiter? source] value: either any [delimiter = #"," csv] [ [ any [#" "] {"} copy v to [{"} | end] any [{"} x: {"} to [{"} | end] y: (append/part v x y)] [{"} to [delimiter | lf | end]] (append row v) | any [#" "] copy v to [delimiter | lf | end] (append row trim/tail v) ] ] [ [any [#" "] copy v to [delimiter | lf | end] (append row trim/tail v)] ] rule: copy/deep [ any [ not end (row: make block! cols) value any [delimiter value] [lf | end] () ] ] cols: either all [ignore not find source newline] [32] [length? fields: fields?/with source delimiter] ; Replace field references with row paths all [ find reform [columns condition] "&" set [columns condition] munge/spec/part/where reduce [fields] columns condition ] line: 0 blk: copy [] append last last rule compose/deep [ line: line + 1 (either settings/as-is [] [[foreach val row [trim/lines val]]]) all [ row <> [""] (either where [condition] []) (either ignore [] [compose/deep [any [(cols) = len: length? row settings/error reform ["Expected" (cols) "values but found" len "on line" line]]]]) (either part [ part: copy/deep [reduce []] foreach col columns: to block! columns [ append part/2 either integer? col [ all [not ignore any [col < 1 col > cols] settings/error reform ["invalid /part position:" col]] compose [(append to path! 'row col)] ] [col] ] compose [row: (part)] ] []) (either settings/build = 'r2 [[row <> pick tail blk -1 append/only]] [[row <> last blk append/only]]) blk row ] ] parse-series source bind rule 'row list blk ] load-fixed: function [ "Loads fixed-width values from a file" file [file! url!] /spec widths [block!] /part columns [integer! block!] ] [ all [settings/console settings/called 'load-fixed] unless spec [ widths: reduce [1 + length? line: first-line file] ; R2/Red index? fails on none while [all [s: find/last/tail line " " i: index? s]] [ insert widths i line: trim copy/part line i - 1 ] insert widths 1 repeat i -1 + length? widths [ poke widths i widths/(i + 1) - widths/:i ] take/last widths ] spec: copy [] pos: 1 either part [ part: copy [] foreach width widths [ append/only part reduce [pos width] pos: pos + width ] foreach col to block! columns [ append spec compose [trim/lines copy/part at line (part/:col/1) (part/:col/2)] ] ] [ foreach width widths [ append spec compose [trim/lines copy/part at line (pos) (width)] pos: pos + width ] ] blk: copy [] foreach line deline/lines read-string file compose/deep [ all [line/1 = #"^L" remove line] any [ empty? trim copy line append/only blk reduce [(spec)] ] ] list blk ] load-xml: function [ "Loads an Office XML sheet" file [file!] /part "Offset position(s) to retrieve" columns [block! integer! word!] /where "Expression that can reference columns as row/1, row/2, etc" condition [block!] /sheet number [integer!] /fields /local s v x col type val ] compose [ all [settings/console settings/called 'load-xml] any [ sheet: unarchive/only file rejoin [%xl/worksheets/sheet number: any [number 1] %.xml] settings/error reform [number "not a valid sheet number"] ] strings: make block! 65536 parse-series read-string unarchive/only file %xl/sharedStrings.xml [ any [ thru "<si>" thru ">" any #" " copy s to "<" ( append strings decode 'html-entities s ) ] ] cols: cols? sheet ;- cols? may return 0 if there is no <dimension> or <cols> tags! rule: copy/deep [ to "<row" any [ opt [newline] opt ["<row" (append/dup row: make block! cols "" cols)] thru {<c r="} copy col to digit copy type thru ">" opt ["<v>" copy val to "</v></c>" ( col: to-column-number col if col > n: length? row [append/dup row "" col - n] poke row col either find type {t="s"} [pick strings 1 + to integer! val] [trim val] ) "</v></c>"] opt [newline] opt ["</row>" ()] ] ] if any [fields find reform [columns condition] "&"] [ parse-series read-string copy/part sheet find/tail sheet #{3C2F726F773E} rule all [fields return list row] set [columns condition] munge/spec/part/where reduce [row] columns condition ] append last last last rule compose/deep [ (either settings/as-is [] [[foreach val row [trim/lines val]]]) all [ (either where [condition] []) (either part [ part: copy/deep [reduce []] foreach col columns: to block! columns [ append part/2 either integer? col [ all [any [col < 1 col > (cols)] settings/error reform ["invalid /part position:" col]] compose [(append to path! 'row col)] ] [col] ] compose [row: (part)] ] []) row <> last blk append/only blk row ] ] blk: copy [] parse-series read-string sheet bind rule 'row list blk ] max-of: function [ "Returns the largest value in a series" series [series!] "Series to search" ] [ all [empty? series return none] val: series/1 foreach v series [val: max val v] val ] merge: function [ "Join outer block to inner block on primary key" outer [block!] "Outer block" key1 [integer!] inner [block!] "Inner block to index" key2 [integer!] columns [block!] "Offset position(s) to retrieve in merged block" /default "Use none on inner block misses" ] [ ; build rowid map of inner block map: make map! length? inner i: 0 foreach row inner [ put map row/:key2 i: i + 1 ] ; build column picker code: copy [] foreach col columns [ append code compose [(append to path! 'row col)] ] ; iterate through outer block blk: make block! length? outer do compose/deep [ either default [ foreach row outer [ all [ i: (either settings/build = 'r2 [[select-map]] [[select]]) map row/:key1 append row inner/:i ] append/only blk reduce [(code)] ] ] [ foreach row outer [ all [ i: (either settings/build = 'r2 [[select-map]] [[select]]) map row/:key1 append row inner/:i append/only blk reduce [(code)] ] ] ] ] blk ] min-of: function [ "Returns the smallest value in a series" series [series!] "Series to search" ] [ all [empty? series return none] val: series/1 foreach v series [val: min val v] val ] mixedcase: function [ "Converts string of characters to mixedcase" string [string!] ] [ uppercase/part lowercase string 1 foreach char [#"'" #" " #"-" #"." #","] [ all [find string char string: next find string char mixedcase string] ] string: head string ] munge: function [ "Load and/or manipulate a block of tabular (column and row) values" data [block!] /delete "Delete matching rows (returns original block)" clause /part "Offset position(s) and/or values to retrieve" columns [block! integer! word! none!] /where "Expression that can reference columns as row/1, row/2, etc" condition /group "One of count, max, min or sum" having [word! block!] "Word or expression that can reference the initial result set column as count, max, etc" /spec "Return coulmns and condition with field substitutions" ] [ all [empty? data return data] all [delete where: true condition: clause] if all [where condition not block? condition] [ ; http://www.rebol.org/view-script.r?script=binary-search.r lo: 1 hi: rows: length? data mid: to integer! hi + lo / 2 while [hi >= lo] [ if condition = key: first data/:mid [ lo: hi: mid while [all [lo > 1 condition = first data/(lo - 1)]] [lo: lo - 1] while [all [hi < rows condition = first data/(hi + 1)]] [hi: hi + 1] break ] either condition > key [lo: mid + 1] [hi: mid - 1] mid: to integer! hi + lo / 2 ] all [ lo > hi return either delete [data] [make block! 0] ] rows: hi - lo + 1 either delete [ return head remove/part at data lo rows ] [ data: copy/part at data lo rows where: condition: none ] ] all [settings/console settings/called 'munge] ; Replace field references with row paths if find reform [columns condition] "&" [ repeat i length? fields: copy/deep first head data [ poke fields i to word! join '& trim/with trim/all form fields/:i "@#$%^," ] if find form columns "&" [ ; replace &Word with n number-map: make map! 32 repeat i length? fields [ put number-map fields/:i i ] repeat i length? columns: to block! columns [ all [ word? columns/:i any [ columns/:i: select number-map columns/:i settings/error "invalid /part position" ] ] ] ] if find form condition "&" [ ; replace &Word with row/n path-map: make block! 32 repeat i length? fields [ append path-map reduce [ fields/:i append to path! 'row i ] ] replace-deep condition: copy/deep condition path-map if find form condition "&" [ ; replace &Set-Word: with row/n: repeat i length? path-map [ path-map/:i: either word? path-map/:i [to set-word! path-map/:i] [to set-path! path-map/:i] ] replace-deep condition path-map ] ] all [spec also return reduce [columns condition] all [settings/console settings/exited]] ] case [ delete [ remove-each row data bind compose/only [all (condition)] 'row all [settings/console settings/exited] return data ] any [part where] [ columns: either part [ part: copy/deep [reduce []] cols: length? data/1 foreach col to block! columns [ append part/2 either integer? col [ all [any [col < 1 col > cols] settings/error reform ["invalid /part position:" col]] compose [(append to path! 'row col)] ] [col] ] part ] ['row] blk: copy [] foreach row data compose [ ( either where [ either settings/build <> 'red [ compose/deep [all [(condition) append/only blk (columns)]] ] [ bind compose/deep [all [(condition) append/only blk (columns)]] 'row ] ] [ compose [append/only blk (columns)] ] ) ] all [empty? blk also return blk all [settings/console settings/exited]] data: blk ] ] if group [ words: unique flatten to block! having operation: case [ find words 'avg ['average] find words 'count ['count] find words 'max ['max-of] find words 'min ['min-of] find words 'sum ['sum] true [settings/error "Invalid group operation"] ] case [ operation = 'count [ i: 0 blk: copy [] group: copy first sort data foreach row data [ either group = row [i: i + 1] [ append group i append/only blk group group: copy row i: 1 ] ] append group i append/only blk group ] 1 = length? data/1 [ all [settings/console settings/exited] return do compose [(operation) flatten data] ] true [ val: copy [] blk: copy [] group: copy/part first sort data len: -1 + length? data/1 foreach row data compose/deep [ either group = copy/part row (len) [append val last row] [ append group (operation) val append/only blk group group: copy/part row (len) append val: copy [] last row ] ] append group do compose [(operation) val] append/only blk group ] ] data: blk if block? having [ replace-deep having reduce [operation append to path! 'row length? data/1] all [settings/console settings/exited] return munge/where data having ] ] list data ] oledb: if settings/os = 'Windows [ function [ "Execute an OLEDB statement" file [file! url!] statement [string!] "SQL statement in the form (Excel) 'SELECT F1 FROM SHEET1' or (Access) 'SELECT Column FROM Table'" /local sheet ] compose/deep [ any [exists? file cause-error 'access 'cannot-open reduce [file]] all [settings/console settings/called/file 'oledb file] statement: replace/all copy statement {'} {''} properties: either %.accdb = suffix? file [""] [ parse statement [thru "FROM " copy sheet [to " " | to end]] replace statement reform ["FROM" sheet] rejoin ["FROM ['+$o.GetSchema('Tables').rows[" -1 + to integer! skip sheet 5 "].TABLE_NAME+']"] {;Extended Properties=''Excel 12.0 Xml;HDR=NO;IMEX=1;Mode=Read''} ] also remove load-dsv/csv/with call-out rejoin [ (either settings/target = 64 ["powershell "] ["C:\Windows\SysNative\WindowsPowerShell\v1.0\powershell.exe "]) {-nologo -noprofile -command "} {$o=New-Object System.Data.OleDb.OleDbConnection('Provider=Microsoft.ACE.OLEDB.12.0;} {Data Source=\"} replace/all to-local-file clean-path file "'" "''" {\"} properties {');} {$o.Open();$s=New-Object System.Data.OleDb.OleDbCommand('} statement {');} {$s.Connection=$o;} {$t=New-Object System.Data.DataTable;} {$t.Load($s.ExecuteReader());} {$o.Close();} {$t|ConvertTo-CSV -Delimiter `t -NoTypeInformation} {"} ] tab all [settings/console settings/exited] ] ] parse-series: function [ "Parses a series according to grammar rules" series [series!] rules [block!] ] [ all [settings/console settings/called 'parse] also parse series rules all [settings/console settings/exited] ] read-binary: function [ "Read bytes from a file" source [file! url!] /part "Reads a specified number of bytes." length [integer!] ] [ all [settings/console settings/called/file 'read-binary source] also either part [ read/part source length ] [ read source ] all [settings/console settings/exited] ] read-string: function [ "Read string from a text file" source [file! url! binary!] ] compose/deep [ all [settings/console settings/called/file 'read-string source] any [binary? source source: read source] also to string! either invalid-utf? source [iconv/to source 'latin1 'utf8][source] all [settings/console settings/exited] ] replace-deep: function [ "Replaces all occurences of search values with new values in a block or nested block" data [block!] "Block to replace within (modified)" map [map! block!] "Map of values to replace" ] compose/deep [ repeat i length? data [ either block? data/:i [replace-deep data/:i map] [ all [ not path? data/:i not set-path? data/:i val: (either settings/build = 'r2 [[select-map]] [[select]]) map data/:i any [ equal? type? data/:i type? val all [word? data/:i path? val] all [set-word? data/:i set-path? val] ] data/:i: val ] ] ] data ] rows?: function [ "Number of rows in a delimited file or string" data [file! url! binary! string!] /sheet number [integer!] /local rows ] [ either excel? data [ any [ binary? data data: unarchive/only data rejoin [%xl/worksheets/sheet any [number 1] %.xml] cause-error 'user 'message reduce [reform [number "not a valid sheet number"]] ] all [ find data #{3C726F7720} parse to string! find/last data #{3C726F7720} [ thru {"} copy rows to {"} (return to integer! rows) ] ] 0 ] [ either any [ all [file? data zero? size? data] empty? data ] [0] [ i: 1 parse either file? data [read-binary data] [data] [ any [thru newline (i: i + 1)] ] i ] ] ] second-last: penult: function [ "Returns the second last value of a series" string [series!] ] [ pick tail string -2 ] sheets?: function [ "Excel sheet names" file [file! url!] /local name ] [ all [settings/console settings/called 'sheets?] blk: copy [] parse to string! unarchive/only file %xl/workbook.xml [ any [ thru {<sheet } copy tmp to #">" ( parse tmp [thru {name="} copy name to {"} (append blk trim name)] ) ] ] all [settings/console settings/exited] blk ] sqlcmd: if settings/os = 'Windows [ function [ "Execute a SQL Server statement" server [string!] database [string!] statement [string!] /key "Columns to convert to integer" columns [integer! block!] /headings "Keep column headings" /string /affected "Return rows affected instead of empty block" ] [ all [settings/console settings/called 'sqlcmd] stdout: call-out reform compose ["sqlcmd -X -S" server "-d" database "-I -Q" rejoin [{"} statement {"}] {-W -w 65535 -s"^-"} (either headings [] [{-h -1}])] case [ string [ all [settings/console settings/exited] stdout ] stdout/1 = #"^/" [ all [settings/console settings/exited] either affected [last deline/lines stdout] [make block! 0] ] like stdout "Msg*,*Level*,*State*,*Server" [ settings/error trim/lines find stdout "Line" ] true [ stdout: load-dsv/with copy/part stdout find stdout "^/^/(" #"^-" all [headings remove next stdout] foreach row stdout [ foreach val row [ all ["NULL" == val clear val] ] ] all [ key foreach row either headings [next stdout] [stdout] [ foreach i to block! columns [ row/:i: to integer! row/:i ] ] ] all [settings/console settings/exited] stdout ] ] ] ] sqlite: function [ "Execute a SQLite statement" database [file! url!] statement [string!] ] [ load-dsv/with call-out rejoin [{sqlite3 -separator "^-" } to-local-file database { "} statement {"}] tab ] to-column-alpha: function [ "Convert numeric column reference to an alpha column reference" number [integer!] "Column number between 1 and 702" ] [ any [positive? number cause-error 'user 'message ["Positive number expected"]] any [number <= 702 cause-error 'user 'message ["Number cannot exceed 702"]] either number <= 26 [form #"@" + number] [ rejoin [ #"@" + to integer! number - 1 / 26 either zero? r: mod number 26 ["Z"] [#"@" + r] ] ] ] to-column-number: function [ "Convert alpha column reference to a numeric column reference" alpha [word! string! char!] ] [ any [find [1 2] length? alpha: uppercase form alpha cause-error 'user 'message ["One or two letters expected"]] any [find letter last alpha cause-error 'user 'message ["Valid characters are A-Z"]] minor: subtract to integer! last alpha: uppercase form alpha 64 either 1 = length? alpha [minor] [ any [find letter alpha/1 cause-error 'user 'message ["Valid characters are A-Z"]] (26 * subtract to integer! alpha/1 64) + minor ] ] to-string-date: function [ "Convert a string or Rebol date to a YYYY-MM-DD string" date [string! date!] /mdy "Month/Day/Year format" /ydm "Year/Day/Month format" /day "Day precedes date" ] compose/deep [ if string? date [ string: date any [ attempt [ either all [digits? date 6 > length? date] [ ; Excel date: 30-Dec-1899 + to integer! date all [ mdy day: date/3 date/3: date/2 date/2: day ] date ] [ all [day date: copy date remove/part date next find date " "] date: either digits? date [ ; YYYYDDMM reduce [copy/part date 4 copy/part skip date 4 2 copy/part skip date 6 2] ] [ (either settings/build = 'red [[split date make bitset! "/-"]] [[parse date "/- "]]) ] repeat i 3 [date/:i: to integer! date/:i] date: to date! case [ mdy [reduce [date/2 date/1 date/3]] ydm [reduce [date/2 date/3 date/1]] true [reduce [date/1 date/2 date/3]] ] all [ date/year < 100 date/year: date/year + either date/year <= (now/year - 1950) [2000] [1900] ] date ] ] cause-error 'user 'message reduce [reform [string "is not a valid date"]] ] ] rejoin [date/year "-" next form 100 + date/month "-" next form 100 + date/day] ] to-string-time: function [ "Convert a string or Rebol time to a HH:MM:SS string" time [string! date! time!] /precise ] compose/deep [ unless time? time [ string: time any [ attempt [ time: case [ date? time [time/time] ; don't match "00:00:00.000" find/part time "." 2 [24:00:00 * to decimal! time] ; Excel digits? time [to time! rejoin [copy/part time 2 ":" copy/part skip time 2 2 ":" copy/part skip time 4 2]] true [ (either settings/build = 'red [[ either find time "PM" [ time: to time! time all [time/1 < 13 time/1: time/1 + 12] time ] [to time! time] ]] [[ to time! trim/all copy time ]]) ] ] ] cause-error 'user 'message reduce [reform [string "is not a valid time"]] ] ] rejoin [ next form 100 + time/hour ":" next form 100 + time/minute ":" next form 100 + to integer! time/second either precise [copy/part find form time/second + .0001 "." 4] [""] ] ] unarchive: function [ "Decompresses archive (only works with compression methods 'store and 'deflate)" source [file! url! binary!] /only file [file!] /info "File name/sizes only (size only for gzip)" /local method size crc ] [ ; https://en.wikipedia.org/wiki/Zip_(file_format) & http://www.rebol.org/view-script.r?script=rebzip.r all [settings/console settings/called/file 'unarchive any [file source]] any [binary? source source: read-binary source] source: case [ #{1F8B08} = copy/part source 3 [ either info [ to integer! reverse skip tail copy source -4 ] [ decompress source 'gzip ] ] #{504B0304} <> copy/part source 4 [ settings/error reform [source "is not a ZIP file"] ] true [ either only [ tmp: codecs/zip/decode/only source to block! file tmp/2/2 ; retuns only decompressed data ][ codecs/zip/decode source ] ] ] all [settings/console settings/exited] source ] write-dsv: function [ "Write block(s) of values to a delimited text file" file [file! url!] "csv or tab-delimited text file" data [block!] ] [ all [settings/console settings/called 'write-dsv] b: make block! length? data foreach row data compose/deep [ s: copy "" foreach value row [ append s ( either %.csv = suffix? file [ [rejoin [either any [find val: trim/with form value {"} "," find val lf] [rejoin [{"} val {"}]] [val] ","]] ] [ [rejoin [value "^-"]] ] ) ] take/last s any [empty? s append b s] ] also write/lines file b all [settings/console settings/exited] ] write-excel: function [ "Write block(s) of values to an Excel file" file [file! url!] data [block!] "Name [string!] Data [block!] Widths [block!] records" /filter "Add auto filter" ] [ ; http://officeopenxml.com/anatomyofOOXML-xlsx.php any [%.xlsx = suffix? file cause-error 'user 'message ["not a valid .xlsx file extension"]] xml-content-types: copy "" xml-workbook: copy "" xml-workbook-rels: copy "" xml-version: {<?xml version="1.0" encoding="UTF-8" standalone="yes"?>} sheet-number: 1 xml-archive: copy [] foreach [sheet-name block spec] data [ unless empty? block [ width: length? spec append xml-content-types rejoin [{<Override PartName="/xl/worksheets/sheet} sheet-number {.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>}] append xml-workbook rejoin [{<sheet name="} sheet-name {" sheetId="} sheet-number {" r:id="rId} sheet-number {"/>}] append xml-workbook-rels rejoin [{<Relationship Id="rId} sheet-number {" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet} sheet-number {.xml"/>}] ; %xl/worksheets/sheet<n>.xml blk: rejoin [ xml-version {<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"> <cols>} ] repeat i width [ append blk rejoin [{<col min="} i {" max="} i {" width="} spec/:i {"/>}] ] append blk "</cols><sheetData>" foreach row block [ append blk "<row>" foreach value row [ append blk case [ number? value [ rejoin ["<c><v>" value "</v></c>"] ] "=" = copy/part value: form value 1 [ rejoin ["<c><f>" next value "</f></c>"] ] true [ foreach [char code] [ "&" "&amp;" "<" "&lt;" ">" "&gt;" {"} "&quot;" {'} "&apos;" "^/" "&#10;" ] [replace/all value char code] rejoin [{<c t="inlineStr"><is><t>} value "</t></is></c>"] ] ] ] append blk "</row>" ] append blk {</sheetData>} all [filter append blk rejoin [{<autoFilter ref="A1:} to-column-alpha width length? block {"/>}]] append blk {</worksheet>} append xml-archive reduce [rejoin [%xl/worksheets/sheet sheet-number %.xml] blk] sheet-number: sheet-number + 1 ] ] insert xml-archive reduce [ %"[Content_Types].xml" rejoin [ xml-version {<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"> <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/> <Default Extension="xml" ContentType="application/xml"/> <Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/>} xml-content-types {</Types>} ] %_rels/.rels rejoin [ xml-version {<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"> <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/> </Relationships>} ] %xl/workbook.xml rejoin [ xml-version {<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x15" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"> <workbookPr defaultThemeVersion="153222"/> <sheets>} xml-workbook {</sheets> </workbook>} ] %xl/_rels/workbook.xml.rels rejoin [ xml-version {<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">} xml-workbook-rels {</Relationships>} ] ] write file archive xml-archive file ] ]
Rebol
5
semarie/rebol3-oldes
src/modules/munge3.reb
[ "Apache-2.0" ]
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. Import-Module $PSScriptRoot/Apache/Apache.psm1 #list Apache Modules Write-Host -Foreground Blue "Get installed Apache Modules like *proxy* and Sort by name" Get-ApacheModule | Where-Object {$_.ModuleName -like "*proxy*"} | Sort-Object ModuleName | Out-Host #Graceful restart of Apache Write-Host -Foreground Blue "Restart Apache Server gracefully" Restart-ApacheHTTPServer -Graceful | Out-Host #Enumerate current virtual hosts (web sites) Write-Host -Foreground Blue "Enumerate configured Apache Virtual Hosts" Get-ApacheVHost |Out-Host #Add a new virtual host Write-Host -Foreground Yellow "Create a new Apache Virtual Host" New-ApacheVHost -ServerName "mytestserver" -DocumentRoot /var/www/html/mytestserver -VirtualHostIPAddress * -VirtualHostPort 8090 | Out-Host #Enumerate new set of virtual hosts Write-Host -Foreground Blue "Enumerate Apache Virtual Hosts Again" Get-ApacheVHost |Out-Host #Cleanup Write-Host -Foreground Blue "Remove demo virtual host" if (Test-Path "/etc/httpd/conf.d"){ & sudo rm "/etc/httpd/conf.d/mytestserver.conf" } if (Test-Path "/etc/apache2/sites-enabled"){ & sudo rm "/etc/apache2/sites-enabled/mytestserver.conf" }
PowerShell
4
rdtechie/PowerShell
demos/Apache/apache-demo.ps1
[ "MIT" ]
module Views.Shared.AlertListCompact exposing (view) import Data.GettableAlert exposing (GettableAlert) import Html exposing (Html, div) import Html.Attributes exposing (class) import Views.Shared.AlertCompact import Views.Shared.Types exposing (Msg) view : Maybe String -> List GettableAlert -> Html Msg view activeAlertId alerts = List.map (Views.Shared.AlertCompact.view activeAlertId) alerts |> div [ class "pa0 w-100" ]
Elm
4
jtlisi/alertmanager
ui/app/src/Views/Shared/AlertListCompact.elm
[ "ECL-2.0", "Apache-2.0" ]
structure Tokens = Tokens type pos = int type svalue = Tokens.svalue type ('a,'b) token = ('a,'b) Tokens.token type lexresult = (svalue,pos) token open Tokens val lineNum = ref 0 val eof = fn () => EOF(!lineNum,!lineNum) structure KeyWord : sig val find : string -> (int * int -> (svalue,int) token) option end = struct val TableSize = 211 val HashFactor = 5 val hash = fn s => foldl (fn (c,v)=>(v*HashFactor+(ord c)) mod TableSize) 0 (explode s) val HashTable = Array.array(TableSize,nil) : (string * (int * int -> (svalue,int) token)) list Array.array val add = fn (s,v) => let val i = hash s in Array.update(HashTable,i,(s,v) :: (Array.sub(HashTable, i))) end val find = fn s => let val i = hash s fun f ((key,v)::r) = if s=key then SOME v else f r | f nil = NONE in f (Array.sub(HashTable, i)) end val _ = (List.app add [("and",YAND), ("array",YARRAY), ("begin",YBEGIN), ("case",YCASE), ("const",YCONST), ("div",YDIV), ("do",YDO), ("downto",YDOWNTO), ("else",YELSE), ("end",YEND), ("extern",YEXTERN), ("file",YFILE), ("for",YFOR), ("forward",YFORWARD), ("function",YFUNCTION), ("goto",YGOTO), ("hex",YHEX), ("if",YIF), ("in",YIN), ("label",YLABEL), ("mod",YMOD), ("nil",YNIL), ("not",YNOT), ("oct",YOCT), ("of",YOF), ("or",YOR), ("packed",YPACKED), ("procedure",YPROCEDURE), ("program",YPROG), ("record",YRECORD), ("repeat",YREPEAT), ("set",YSET), ("then",YTHEN), ("to",YTO), ("type",YTYPE), ("until",YUNTIL), ("var",YVAR), ("while",YWHILE), ("with",YWITH) ]) end open KeyWord %% %header (functor PascalLexFun(structure Tokens : Pascal_TOKENS)); %s C B; alpha=[A-Za-z]; digit=[0-9]; optsign=("+"|"-")?; integer={digit}+; frac="."{digit}+; exp=(e|E){optsign}{digit}+; octdigit=[0-7]; ws = [\ \t]; %% <INITIAL>{ws}+ => (lex()); <INITIAL>\n+ => (lineNum := (!lineNum) + (String.size yytext); lex()); <INITIAL>{alpha}+ => (case find yytext of SOME v => v(!lineNum,!lineNum) | _ => YID(!lineNum,!lineNum)); <INITIAL>{alpha}({alpha}|{digit})* => (YID(!lineNum,!lineNum)); <INITIAL>{optsign}{integer}({frac}{exp}?|{frac}?{exp}) => (YNUMB(!lineNum,!lineNum)); <INITIAL>{optsign}{integer} => (YINT(!lineNum,!lineNum)); <INITIAL>{octdigit}+(b|B) => (YBINT(!lineNum,!lineNum)); <INITIAL>"'"([^']|"''")*"'" => (YSTRING(!lineNum,!lineNum)); <INITIAL>"(*" => (YYBEGIN C; lex()); <INITIAL>".." => (YDOTDOT(!lineNum,!lineNum)); <INITIAL>"." => (YDOT(!lineNum,!lineNum)); <INITIAL>"(" => (YLPAR(!lineNum,!lineNum)); <INITIAL>")" => (YRPAR(!lineNum,!lineNum)); <INITIAL>";" => (YSEMI(!lineNum,!lineNum)); <INITIAL>"," => (YCOMMA(!lineNum,!lineNum)); <INITIAL>":" => (YCOLON(!lineNum,!lineNum)); <INITIAL>"^" => (YCARET(!lineNum,!lineNum)); <INITIAL>"[" => (YLBRA(!lineNum,!lineNum)); <INITIAL>"]" => (YRBRA(!lineNum,!lineNum)); <INITIAL>"~" => (YTILDE(!lineNum,!lineNum)); <INITIAL>"<" => (YLESS(!lineNum,!lineNum)); <INITIAL>"=" => (YEQUAL(!lineNum,!lineNum)); <INITIAL>">" => (YGREATER(!lineNum,!lineNum)); <INITIAL>"+" => (YPLUS(!lineNum,!lineNum)); <INITIAL>"-" => (YMINUS(!lineNum,!lineNum)); <INITIAL>"|" => (YBAR(!lineNum,!lineNum)); <INITIAL>"*" => (YSTAR(!lineNum,!lineNum)); <INITIAL>"/" => (YSLASH(!lineNum,!lineNum)); <INITIAL>"{" => (YYBEGIN B; lex()); <INITIAL>. => (YILLCH(!lineNum,!lineNum)); <C>\n+ => (lineNum := (!lineNum) + (String.size yytext); lex()); <C>[^()*\n]+ => (lex()); <C>"(*" => (lex()); <C>"*)" => (YYBEGIN INITIAL; lex()); <C>[*()] => (lex()); <B>\n+ => (lineNum := (!lineNum) + (String.size yytext); lex()); <B>[^{}\n]+ => (lex()); <B>"{" => (lex()); <B>"}" => (YYBEGIN INITIAL; lex());
Lex
3
plveir/smlsharp
src/ml-yacc/examples/pascal/pascal.lex
[ "MIT" ]
[CustomMessages] fr.IDP_FormCaption =Téléchargement des fichiers additionnels fr.IDP_FormDescription =Veuillez patienter durant le téléchargement des fichiers additionnels... fr.IDP_TotalProgress =Progression générale: fr.IDP_CurrentFile =Fichier en cours: fr.IDP_File =Fichier: fr.IDP_Speed =Vitesse: fr.IDP_Status =Status: fr.IDP_ElapsedTime =Temps écoulé: fr.IDP_RemainingTime =Temps restant: fr.IDP_DetailsButton =Détails fr.IDP_HideButton =Cacher fr.IDP_RetryButton =Réessayer fr.IDP_IgnoreButton =Ignorer fr.IDP_KBs =KO/s fr.IDP_MBs =MO/s fr.IDP_X_of_X =%.2f de %.2f fr.IDP_KB =KO fr.IDP_MB =MO fr.IDP_GB =GB fr.IDP_Initializing =Initializing... fr.IDP_GettingFileInformation=Récupération du fichier d'information... fr.IDP_StartingDownload =Début du téléchargement... fr.IDP_Connecting =Connexion... fr.IDP_Downloading =Téléchargement... fr.IDP_DownloadComplete =Téléchargement terminé fr.IDP_DownloadFailed =Téléchargement interrompu fr.IDP_CannotConnect =Impossible de se connecter fr.IDP_CancellingDownload =Annulation de téléchargement... fr.IDP_Unknown =Inconnu fr.IDP_DownloadCancelled =Télécharger annulé fr.IDP_RetryNext =Désolé, le fichier n'a pu être téléchargé. Cliquez réessayer pour essayer à nouveau de le télécharger, ou cliquez suivant pour continuer l'installation. fr.IDP_RetryCancel =Désolé, le fichier n'a pu être téléchargé. Cliquez réessayer pour essayer à nouveau de le télécharger, ou cliquez annuler pour terminer l'installation. fr.IDP_FilesNotDownloaded =Les fichiers suivants n'ont pas put téléchargés: fr.IDP_HTTPError_X =Erreur HTTP %d fr.IDP_400 =Requête incorrecte (400) fr.IDP_401 =Accès Refusé (401) fr.IDP_404 =Fichier introuvable (404) fr.IDP_407 =Authentification proxy requise (407) fr.IDP_500 =Erreur interne du serveur (500) fr.IDP_502 =Mauvaise Passerelle (502) fr.IDP_503 =Service Temporairement Indisponible (503)
Inno Setup
3
shakeyourbunny/appget
setup/idp/unicode/idplang/french.iss
[ "Apache-2.0" ]
-- ============================================================== -- RTL generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC -- Version: 2016.3 -- Copyright (C) 1986-2016 Xilinx, Inc. All Rights Reserved. -- -- =========================================================== library IEEE; use IEEE.std_logic_1164.all; use IEEE.numeric_std.all; entity dds is generic ( C_M_AXI_DDS_OUTPUT_ADDR_WIDTH : INTEGER := 32; C_M_AXI_DDS_OUTPUT_ID_WIDTH : INTEGER := 1; C_M_AXI_DDS_OUTPUT_AWUSER_WIDTH : INTEGER := 1; C_M_AXI_DDS_OUTPUT_DATA_WIDTH : INTEGER := 32; C_M_AXI_DDS_OUTPUT_WUSER_WIDTH : INTEGER := 1; C_M_AXI_DDS_OUTPUT_ARUSER_WIDTH : INTEGER := 1; C_M_AXI_DDS_OUTPUT_RUSER_WIDTH : INTEGER := 1; C_M_AXI_DDS_OUTPUT_BUSER_WIDTH : INTEGER := 1; C_M_AXI_DDS_OUTPUT1_ADDR_WIDTH : INTEGER := 32; C_M_AXI_DDS_OUTPUT1_ID_WIDTH : INTEGER := 1; C_M_AXI_DDS_OUTPUT1_AWUSER_WIDTH : INTEGER := 1; C_M_AXI_DDS_OUTPUT1_DATA_WIDTH : INTEGER := 32; C_M_AXI_DDS_OUTPUT1_WUSER_WIDTH : INTEGER := 1; C_M_AXI_DDS_OUTPUT1_ARUSER_WIDTH : INTEGER := 1; C_M_AXI_DDS_OUTPUT1_RUSER_WIDTH : INTEGER := 1; C_M_AXI_DDS_OUTPUT1_BUSER_WIDTH : INTEGER := 1; C_S_AXI_PROG_BUS_ADDR_WIDTH : INTEGER := 5; C_S_AXI_PROG_BUS_DATA_WIDTH : INTEGER := 32; C_M_AXI_DDS_OUTPUT_PROT_VALUE : INTEGER := 0; C_M_AXI_DDS_OUTPUT1_USER_VALUE : INTEGER := 0; C_M_AXI_DDS_OUTPUT1_TARGET_ADDR : INTEGER := 0; C_M_AXI_DDS_OUTPUT_USER_VALUE : INTEGER := 0; C_M_AXI_DDS_OUTPUT1_CACHE_VALUE : INTEGER := 3; C_M_AXI_DDS_OUTPUT_CACHE_VALUE : INTEGER := 3; C_M_AXI_DDS_OUTPUT_TARGET_ADDR : INTEGER := 0; C_M_AXI_DDS_OUTPUT1_PROT_VALUE : INTEGER := 0 ); port ( ap_clk : IN STD_LOGIC; ap_rst_n : IN STD_LOGIC; m_axi_DDS_OUTPUT_AWVALID : OUT STD_LOGIC; m_axi_DDS_OUTPUT_AWREADY : IN STD_LOGIC; m_axi_DDS_OUTPUT_AWADDR : OUT STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT_ADDR_WIDTH-1 downto 0); m_axi_DDS_OUTPUT_AWID : OUT STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT_ID_WIDTH-1 downto 0); m_axi_DDS_OUTPUT_AWLEN : OUT STD_LOGIC_VECTOR (7 downto 0); m_axi_DDS_OUTPUT_AWSIZE : OUT STD_LOGIC_VECTOR (2 downto 0); m_axi_DDS_OUTPUT_AWBURST : OUT STD_LOGIC_VECTOR (1 downto 0); m_axi_DDS_OUTPUT_AWLOCK : OUT STD_LOGIC_VECTOR (1 downto 0); m_axi_DDS_OUTPUT_AWCACHE : OUT STD_LOGIC_VECTOR (3 downto 0); m_axi_DDS_OUTPUT_AWPROT : OUT STD_LOGIC_VECTOR (2 downto 0); m_axi_DDS_OUTPUT_AWQOS : OUT STD_LOGIC_VECTOR (3 downto 0); m_axi_DDS_OUTPUT_AWREGION : OUT STD_LOGIC_VECTOR (3 downto 0); m_axi_DDS_OUTPUT_AWUSER : OUT STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT_AWUSER_WIDTH-1 downto 0); m_axi_DDS_OUTPUT_WVALID : OUT STD_LOGIC; m_axi_DDS_OUTPUT_WREADY : IN STD_LOGIC; m_axi_DDS_OUTPUT_WDATA : OUT STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT_DATA_WIDTH-1 downto 0); m_axi_DDS_OUTPUT_WSTRB : OUT STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT_DATA_WIDTH/8-1 downto 0); m_axi_DDS_OUTPUT_WLAST : OUT STD_LOGIC; m_axi_DDS_OUTPUT_WID : OUT STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT_ID_WIDTH-1 downto 0); m_axi_DDS_OUTPUT_WUSER : OUT STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT_WUSER_WIDTH-1 downto 0); m_axi_DDS_OUTPUT_ARVALID : OUT STD_LOGIC; m_axi_DDS_OUTPUT_ARREADY : IN STD_LOGIC; m_axi_DDS_OUTPUT_ARADDR : OUT STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT_ADDR_WIDTH-1 downto 0); m_axi_DDS_OUTPUT_ARID : OUT STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT_ID_WIDTH-1 downto 0); m_axi_DDS_OUTPUT_ARLEN : OUT STD_LOGIC_VECTOR (7 downto 0); m_axi_DDS_OUTPUT_ARSIZE : OUT STD_LOGIC_VECTOR (2 downto 0); m_axi_DDS_OUTPUT_ARBURST : OUT STD_LOGIC_VECTOR (1 downto 0); m_axi_DDS_OUTPUT_ARLOCK : OUT STD_LOGIC_VECTOR (1 downto 0); m_axi_DDS_OUTPUT_ARCACHE : OUT STD_LOGIC_VECTOR (3 downto 0); m_axi_DDS_OUTPUT_ARPROT : OUT STD_LOGIC_VECTOR (2 downto 0); m_axi_DDS_OUTPUT_ARQOS : OUT STD_LOGIC_VECTOR (3 downto 0); m_axi_DDS_OUTPUT_ARREGION : OUT STD_LOGIC_VECTOR (3 downto 0); m_axi_DDS_OUTPUT_ARUSER : OUT STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT_ARUSER_WIDTH-1 downto 0); m_axi_DDS_OUTPUT_RVALID : IN STD_LOGIC; m_axi_DDS_OUTPUT_RREADY : OUT STD_LOGIC; m_axi_DDS_OUTPUT_RDATA : IN STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT_DATA_WIDTH-1 downto 0); m_axi_DDS_OUTPUT_RLAST : IN STD_LOGIC; m_axi_DDS_OUTPUT_RID : IN STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT_ID_WIDTH-1 downto 0); m_axi_DDS_OUTPUT_RUSER : IN STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT_RUSER_WIDTH-1 downto 0); m_axi_DDS_OUTPUT_RRESP : IN STD_LOGIC_VECTOR (1 downto 0); m_axi_DDS_OUTPUT_BVALID : IN STD_LOGIC; m_axi_DDS_OUTPUT_BREADY : OUT STD_LOGIC; m_axi_DDS_OUTPUT_BRESP : IN STD_LOGIC_VECTOR (1 downto 0); m_axi_DDS_OUTPUT_BID : IN STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT_ID_WIDTH-1 downto 0); m_axi_DDS_OUTPUT_BUSER : IN STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT_BUSER_WIDTH-1 downto 0); m_axi_DDS_OUTPUT1_AWVALID : OUT STD_LOGIC; m_axi_DDS_OUTPUT1_AWREADY : IN STD_LOGIC; m_axi_DDS_OUTPUT1_AWADDR : OUT STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT1_ADDR_WIDTH-1 downto 0); m_axi_DDS_OUTPUT1_AWID : OUT STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT1_ID_WIDTH-1 downto 0); m_axi_DDS_OUTPUT1_AWLEN : OUT STD_LOGIC_VECTOR (7 downto 0); m_axi_DDS_OUTPUT1_AWSIZE : OUT STD_LOGIC_VECTOR (2 downto 0); m_axi_DDS_OUTPUT1_AWBURST : OUT STD_LOGIC_VECTOR (1 downto 0); m_axi_DDS_OUTPUT1_AWLOCK : OUT STD_LOGIC_VECTOR (1 downto 0); m_axi_DDS_OUTPUT1_AWCACHE : OUT STD_LOGIC_VECTOR (3 downto 0); m_axi_DDS_OUTPUT1_AWPROT : OUT STD_LOGIC_VECTOR (2 downto 0); m_axi_DDS_OUTPUT1_AWQOS : OUT STD_LOGIC_VECTOR (3 downto 0); m_axi_DDS_OUTPUT1_AWREGION : OUT STD_LOGIC_VECTOR (3 downto 0); m_axi_DDS_OUTPUT1_AWUSER : OUT STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT1_AWUSER_WIDTH-1 downto 0); m_axi_DDS_OUTPUT1_WVALID : OUT STD_LOGIC; m_axi_DDS_OUTPUT1_WREADY : IN STD_LOGIC; m_axi_DDS_OUTPUT1_WDATA : OUT STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT1_DATA_WIDTH-1 downto 0); m_axi_DDS_OUTPUT1_WSTRB : OUT STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT1_DATA_WIDTH/8-1 downto 0); m_axi_DDS_OUTPUT1_WLAST : OUT STD_LOGIC; m_axi_DDS_OUTPUT1_WID : OUT STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT1_ID_WIDTH-1 downto 0); m_axi_DDS_OUTPUT1_WUSER : OUT STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT1_WUSER_WIDTH-1 downto 0); m_axi_DDS_OUTPUT1_ARVALID : OUT STD_LOGIC; m_axi_DDS_OUTPUT1_ARREADY : IN STD_LOGIC; m_axi_DDS_OUTPUT1_ARADDR : OUT STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT1_ADDR_WIDTH-1 downto 0); m_axi_DDS_OUTPUT1_ARID : OUT STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT1_ID_WIDTH-1 downto 0); m_axi_DDS_OUTPUT1_ARLEN : OUT STD_LOGIC_VECTOR (7 downto 0); m_axi_DDS_OUTPUT1_ARSIZE : OUT STD_LOGIC_VECTOR (2 downto 0); m_axi_DDS_OUTPUT1_ARBURST : OUT STD_LOGIC_VECTOR (1 downto 0); m_axi_DDS_OUTPUT1_ARLOCK : OUT STD_LOGIC_VECTOR (1 downto 0); m_axi_DDS_OUTPUT1_ARCACHE : OUT STD_LOGIC_VECTOR (3 downto 0); m_axi_DDS_OUTPUT1_ARPROT : OUT STD_LOGIC_VECTOR (2 downto 0); m_axi_DDS_OUTPUT1_ARQOS : OUT STD_LOGIC_VECTOR (3 downto 0); m_axi_DDS_OUTPUT1_ARREGION : OUT STD_LOGIC_VECTOR (3 downto 0); m_axi_DDS_OUTPUT1_ARUSER : OUT STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT1_ARUSER_WIDTH-1 downto 0); m_axi_DDS_OUTPUT1_RVALID : IN STD_LOGIC; m_axi_DDS_OUTPUT1_RREADY : OUT STD_LOGIC; m_axi_DDS_OUTPUT1_RDATA : IN STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT1_DATA_WIDTH-1 downto 0); m_axi_DDS_OUTPUT1_RLAST : IN STD_LOGIC; m_axi_DDS_OUTPUT1_RID : IN STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT1_ID_WIDTH-1 downto 0); m_axi_DDS_OUTPUT1_RUSER : IN STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT1_RUSER_WIDTH-1 downto 0); m_axi_DDS_OUTPUT1_RRESP : IN STD_LOGIC_VECTOR (1 downto 0); m_axi_DDS_OUTPUT1_BVALID : IN STD_LOGIC; m_axi_DDS_OUTPUT1_BREADY : OUT STD_LOGIC; m_axi_DDS_OUTPUT1_BRESP : IN STD_LOGIC_VECTOR (1 downto 0); m_axi_DDS_OUTPUT1_BID : IN STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT1_ID_WIDTH-1 downto 0); m_axi_DDS_OUTPUT1_BUSER : IN STD_LOGIC_VECTOR (C_M_AXI_DDS_OUTPUT1_BUSER_WIDTH-1 downto 0); s_axi_PROG_BUS_AWVALID : IN STD_LOGIC; s_axi_PROG_BUS_AWREADY : OUT STD_LOGIC; s_axi_PROG_BUS_AWADDR : IN STD_LOGIC_VECTOR (C_S_AXI_PROG_BUS_ADDR_WIDTH-1 downto 0); s_axi_PROG_BUS_WVALID : IN STD_LOGIC; s_axi_PROG_BUS_WREADY : OUT STD_LOGIC; s_axi_PROG_BUS_WDATA : IN STD_LOGIC_VECTOR (C_S_AXI_PROG_BUS_DATA_WIDTH-1 downto 0); s_axi_PROG_BUS_WSTRB : IN STD_LOGIC_VECTOR (C_S_AXI_PROG_BUS_DATA_WIDTH/8-1 downto 0); s_axi_PROG_BUS_ARVALID : IN STD_LOGIC; s_axi_PROG_BUS_ARREADY : OUT STD_LOGIC; s_axi_PROG_BUS_ARADDR : IN STD_LOGIC_VECTOR (C_S_AXI_PROG_BUS_ADDR_WIDTH-1 downto 0); s_axi_PROG_BUS_RVALID : OUT STD_LOGIC; s_axi_PROG_BUS_RREADY : IN STD_LOGIC; s_axi_PROG_BUS_RDATA : OUT STD_LOGIC_VECTOR (C_S_AXI_PROG_BUS_DATA_WIDTH-1 downto 0); s_axi_PROG_BUS_RRESP : OUT STD_LOGIC_VECTOR (1 downto 0); s_axi_PROG_BUS_BVALID : OUT STD_LOGIC; s_axi_PROG_BUS_BREADY : IN STD_LOGIC; s_axi_PROG_BUS_BRESP : OUT STD_LOGIC_VECTOR (1 downto 0); interrupt : OUT STD_LOGIC ); end; architecture behav of dds is attribute CORE_GENERATION_INFO : STRING; attribute CORE_GENERATION_INFO of behav : architecture is "dds,hls_ip_2016_3,{HLS_INPUT_TYPE=cxx,HLS_INPUT_FLOAT=0,HLS_INPUT_FIXED=1,HLS_INPUT_PART=xcku040-ffva1156-2-e,HLS_INPUT_CLOCK=2.000000,HLS_INPUT_ARCH=others,HLS_SYN_CLOCK=3.100000,HLS_SYN_LAT=-1,HLS_SYN_TPT=none,HLS_SYN_MEM=6,HLS_SYN_DSP=2,HLS_SYN_FF=2200,HLS_SYN_LUT=2536}"; constant ap_const_logic_1 : STD_LOGIC := '1'; constant ap_const_logic_0 : STD_LOGIC := '0'; constant ap_ST_fsm_state1 : STD_LOGIC_VECTOR (2 downto 0) := "001"; constant ap_ST_fsm_state2 : STD_LOGIC_VECTOR (2 downto 0) := "010"; constant ap_ST_fsm_state3 : STD_LOGIC_VECTOR (2 downto 0) := "100"; constant ap_const_lv32_0 : STD_LOGIC_VECTOR (31 downto 0) := "00000000000000000000000000000000"; constant ap_const_lv1_1 : STD_LOGIC_VECTOR (0 downto 0) := "1"; constant C_S_AXI_DATA_WIDTH : INTEGER range 63 downto 0 := 20; constant C_M_AXI_DATA_WIDTH : INTEGER range 63 downto 0 := 20; constant ap_const_lv32_1 : STD_LOGIC_VECTOR (31 downto 0) := "00000000000000000000000000000001"; constant ap_const_lv32_2 : STD_LOGIC_VECTOR (31 downto 0) := "00000000000000000000000000000010"; constant ap_const_lv1_0 : STD_LOGIC_VECTOR (0 downto 0) := "0"; constant ap_const_lv3_0 : STD_LOGIC_VECTOR (2 downto 0) := "000"; constant ap_const_lv2_0 : STD_LOGIC_VECTOR (1 downto 0) := "00"; constant ap_const_lv4_0 : STD_LOGIC_VECTOR (3 downto 0) := "0000"; constant ap_const_lv16_0 : STD_LOGIC_VECTOR (15 downto 0) := "0000000000000000"; signal ap_rst_n_inv : STD_LOGIC; signal ap_start : STD_LOGIC; signal ap_done : STD_LOGIC; signal ap_idle : STD_LOGIC; signal ap_CS_fsm : STD_LOGIC_VECTOR (2 downto 0) := "001"; attribute fsm_encoding : string; attribute fsm_encoding of ap_CS_fsm : signal is "none"; signal ap_CS_fsm_state1 : STD_LOGIC_VECTOR (0 downto 0); attribute fsm_encoding of ap_CS_fsm_state1 : signal is "none"; signal ap_ready : STD_LOGIC; signal nofSample : STD_LOGIC_VECTOR (31 downto 0); signal incr_V : STD_LOGIC_VECTOR (31 downto 0); signal DDS_OUTPUT_AWVALID : STD_LOGIC; signal DDS_OUTPUT_AWREADY : STD_LOGIC; signal DDS_OUTPUT_WVALID : STD_LOGIC; signal DDS_OUTPUT_WREADY : STD_LOGIC; signal DDS_OUTPUT_ARREADY : STD_LOGIC; signal DDS_OUTPUT_RVALID : STD_LOGIC; signal DDS_OUTPUT_RDATA : STD_LOGIC_VECTOR (15 downto 0); signal DDS_OUTPUT_RLAST : STD_LOGIC; signal DDS_OUTPUT_RID : STD_LOGIC_VECTOR (0 downto 0); signal DDS_OUTPUT_RUSER : STD_LOGIC_VECTOR (0 downto 0); signal DDS_OUTPUT_RRESP : STD_LOGIC_VECTOR (1 downto 0); signal DDS_OUTPUT_BVALID : STD_LOGIC; signal DDS_OUTPUT_BREADY : STD_LOGIC; signal DDS_OUTPUT_BRESP : STD_LOGIC_VECTOR (1 downto 0); signal DDS_OUTPUT_BID : STD_LOGIC_VECTOR (0 downto 0); signal DDS_OUTPUT_BUSER : STD_LOGIC_VECTOR (0 downto 0); signal DDS_OUTPUT1_AWVALID : STD_LOGIC; signal DDS_OUTPUT1_AWREADY : STD_LOGIC; signal DDS_OUTPUT1_WVALID : STD_LOGIC; signal DDS_OUTPUT1_WREADY : STD_LOGIC; signal DDS_OUTPUT1_ARREADY : STD_LOGIC; signal DDS_OUTPUT1_RVALID : STD_LOGIC; signal DDS_OUTPUT1_RDATA : STD_LOGIC_VECTOR (15 downto 0); signal DDS_OUTPUT1_RLAST : STD_LOGIC; signal DDS_OUTPUT1_RID : STD_LOGIC_VECTOR (0 downto 0); signal DDS_OUTPUT1_RUSER : STD_LOGIC_VECTOR (0 downto 0); signal DDS_OUTPUT1_RRESP : STD_LOGIC_VECTOR (1 downto 0); signal DDS_OUTPUT1_BVALID : STD_LOGIC; signal DDS_OUTPUT1_BREADY : STD_LOGIC; signal DDS_OUTPUT1_BRESP : STD_LOGIC_VECTOR (1 downto 0); signal DDS_OUTPUT1_BID : STD_LOGIC_VECTOR (0 downto 0); signal DDS_OUTPUT1_BUSER : STD_LOGIC_VECTOR (0 downto 0); signal incr_V_read_reg_68 : STD_LOGIC_VECTOR (31 downto 0); signal nofSample_read_reg_73 : STD_LOGIC_VECTOR (31 downto 0); signal grp_process_frame_fu_52_ap_start : STD_LOGIC; signal grp_process_frame_fu_52_ap_done : STD_LOGIC; signal grp_process_frame_fu_52_ap_idle : STD_LOGIC; signal grp_process_frame_fu_52_ap_ready : STD_LOGIC; signal grp_process_frame_fu_52_m_axi_cos_out_V_AWVALID : STD_LOGIC; signal grp_process_frame_fu_52_m_axi_cos_out_V_AWADDR : STD_LOGIC_VECTOR (31 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_AWID : STD_LOGIC_VECTOR (0 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_AWLEN : STD_LOGIC_VECTOR (31 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_AWSIZE : STD_LOGIC_VECTOR (2 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_AWBURST : STD_LOGIC_VECTOR (1 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_AWLOCK : STD_LOGIC_VECTOR (1 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_AWCACHE : STD_LOGIC_VECTOR (3 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_AWPROT : STD_LOGIC_VECTOR (2 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_AWQOS : STD_LOGIC_VECTOR (3 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_AWREGION : STD_LOGIC_VECTOR (3 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_AWUSER : STD_LOGIC_VECTOR (0 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_WVALID : STD_LOGIC; signal grp_process_frame_fu_52_m_axi_cos_out_V_WDATA : STD_LOGIC_VECTOR (15 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_WSTRB : STD_LOGIC_VECTOR (1 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_WLAST : STD_LOGIC; signal grp_process_frame_fu_52_m_axi_cos_out_V_WID : STD_LOGIC_VECTOR (0 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_WUSER : STD_LOGIC_VECTOR (0 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_ARVALID : STD_LOGIC; signal grp_process_frame_fu_52_m_axi_cos_out_V_ARADDR : STD_LOGIC_VECTOR (31 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_ARID : STD_LOGIC_VECTOR (0 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_ARLEN : STD_LOGIC_VECTOR (31 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_ARSIZE : STD_LOGIC_VECTOR (2 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_ARBURST : STD_LOGIC_VECTOR (1 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_ARLOCK : STD_LOGIC_VECTOR (1 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_ARCACHE : STD_LOGIC_VECTOR (3 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_ARPROT : STD_LOGIC_VECTOR (2 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_ARQOS : STD_LOGIC_VECTOR (3 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_ARREGION : STD_LOGIC_VECTOR (3 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_ARUSER : STD_LOGIC_VECTOR (0 downto 0); signal grp_process_frame_fu_52_m_axi_cos_out_V_RREADY : STD_LOGIC; signal grp_process_frame_fu_52_m_axi_cos_out_V_BREADY : STD_LOGIC; signal grp_process_frame_fu_52_m_axi_sin_out_V_AWVALID : STD_LOGIC; signal grp_process_frame_fu_52_m_axi_sin_out_V_AWADDR : STD_LOGIC_VECTOR (31 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_AWID : STD_LOGIC_VECTOR (0 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_AWLEN : STD_LOGIC_VECTOR (31 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_AWSIZE : STD_LOGIC_VECTOR (2 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_AWBURST : STD_LOGIC_VECTOR (1 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_AWLOCK : STD_LOGIC_VECTOR (1 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_AWCACHE : STD_LOGIC_VECTOR (3 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_AWPROT : STD_LOGIC_VECTOR (2 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_AWQOS : STD_LOGIC_VECTOR (3 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_AWREGION : STD_LOGIC_VECTOR (3 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_AWUSER : STD_LOGIC_VECTOR (0 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_WVALID : STD_LOGIC; signal grp_process_frame_fu_52_m_axi_sin_out_V_WDATA : STD_LOGIC_VECTOR (15 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_WSTRB : STD_LOGIC_VECTOR (1 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_WLAST : STD_LOGIC; signal grp_process_frame_fu_52_m_axi_sin_out_V_WID : STD_LOGIC_VECTOR (0 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_WUSER : STD_LOGIC_VECTOR (0 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_ARVALID : STD_LOGIC; signal grp_process_frame_fu_52_m_axi_sin_out_V_ARADDR : STD_LOGIC_VECTOR (31 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_ARID : STD_LOGIC_VECTOR (0 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_ARLEN : STD_LOGIC_VECTOR (31 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_ARSIZE : STD_LOGIC_VECTOR (2 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_ARBURST : STD_LOGIC_VECTOR (1 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_ARLOCK : STD_LOGIC_VECTOR (1 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_ARCACHE : STD_LOGIC_VECTOR (3 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_ARPROT : STD_LOGIC_VECTOR (2 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_ARQOS : STD_LOGIC_VECTOR (3 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_ARREGION : STD_LOGIC_VECTOR (3 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_ARUSER : STD_LOGIC_VECTOR (0 downto 0); signal grp_process_frame_fu_52_m_axi_sin_out_V_RREADY : STD_LOGIC; signal grp_process_frame_fu_52_m_axi_sin_out_V_BREADY : STD_LOGIC; signal ap_reg_grp_process_frame_fu_52_ap_start : STD_LOGIC := '0'; signal ap_CS_fsm_state2 : STD_LOGIC_VECTOR (0 downto 0); attribute fsm_encoding of ap_CS_fsm_state2 : signal is "none"; signal ap_CS_fsm_state3 : STD_LOGIC_VECTOR (0 downto 0); attribute fsm_encoding of ap_CS_fsm_state3 : signal is "none"; signal ap_NS_fsm : STD_LOGIC_VECTOR (2 downto 0); component process_frame IS port ( ap_clk : IN STD_LOGIC; ap_rst : IN STD_LOGIC; ap_start : IN STD_LOGIC; ap_done : OUT STD_LOGIC; ap_idle : OUT STD_LOGIC; ap_ready : OUT STD_LOGIC; nofSample : IN STD_LOGIC_VECTOR (31 downto 0); incr_V : IN STD_LOGIC_VECTOR (31 downto 0); m_axi_cos_out_V_AWVALID : OUT STD_LOGIC; m_axi_cos_out_V_AWREADY : IN STD_LOGIC; m_axi_cos_out_V_AWADDR : OUT STD_LOGIC_VECTOR (31 downto 0); m_axi_cos_out_V_AWID : OUT STD_LOGIC_VECTOR (0 downto 0); m_axi_cos_out_V_AWLEN : OUT STD_LOGIC_VECTOR (31 downto 0); m_axi_cos_out_V_AWSIZE : OUT STD_LOGIC_VECTOR (2 downto 0); m_axi_cos_out_V_AWBURST : OUT STD_LOGIC_VECTOR (1 downto 0); m_axi_cos_out_V_AWLOCK : OUT STD_LOGIC_VECTOR (1 downto 0); m_axi_cos_out_V_AWCACHE : OUT STD_LOGIC_VECTOR (3 downto 0); m_axi_cos_out_V_AWPROT : OUT STD_LOGIC_VECTOR (2 downto 0); m_axi_cos_out_V_AWQOS : OUT STD_LOGIC_VECTOR (3 downto 0); m_axi_cos_out_V_AWREGION : OUT STD_LOGIC_VECTOR (3 downto 0); m_axi_cos_out_V_AWUSER : OUT STD_LOGIC_VECTOR (0 downto 0); m_axi_cos_out_V_WVALID : OUT STD_LOGIC; m_axi_cos_out_V_WREADY : IN STD_LOGIC; m_axi_cos_out_V_WDATA : OUT STD_LOGIC_VECTOR (15 downto 0); m_axi_cos_out_V_WSTRB : OUT STD_LOGIC_VECTOR (1 downto 0); m_axi_cos_out_V_WLAST : OUT STD_LOGIC; m_axi_cos_out_V_WID : OUT STD_LOGIC_VECTOR (0 downto 0); m_axi_cos_out_V_WUSER : OUT STD_LOGIC_VECTOR (0 downto 0); m_axi_cos_out_V_ARVALID : OUT STD_LOGIC; m_axi_cos_out_V_ARREADY : IN STD_LOGIC; m_axi_cos_out_V_ARADDR : OUT STD_LOGIC_VECTOR (31 downto 0); m_axi_cos_out_V_ARID : OUT STD_LOGIC_VECTOR (0 downto 0); m_axi_cos_out_V_ARLEN : OUT STD_LOGIC_VECTOR (31 downto 0); m_axi_cos_out_V_ARSIZE : OUT STD_LOGIC_VECTOR (2 downto 0); m_axi_cos_out_V_ARBURST : OUT STD_LOGIC_VECTOR (1 downto 0); m_axi_cos_out_V_ARLOCK : OUT STD_LOGIC_VECTOR (1 downto 0); m_axi_cos_out_V_ARCACHE : OUT STD_LOGIC_VECTOR (3 downto 0); m_axi_cos_out_V_ARPROT : OUT STD_LOGIC_VECTOR (2 downto 0); m_axi_cos_out_V_ARQOS : OUT STD_LOGIC_VECTOR (3 downto 0); m_axi_cos_out_V_ARREGION : OUT STD_LOGIC_VECTOR (3 downto 0); m_axi_cos_out_V_ARUSER : OUT STD_LOGIC_VECTOR (0 downto 0); m_axi_cos_out_V_RVALID : IN STD_LOGIC; m_axi_cos_out_V_RREADY : OUT STD_LOGIC; m_axi_cos_out_V_RDATA : IN STD_LOGIC_VECTOR (15 downto 0); m_axi_cos_out_V_RLAST : IN STD_LOGIC; m_axi_cos_out_V_RID : IN STD_LOGIC_VECTOR (0 downto 0); m_axi_cos_out_V_RUSER : IN STD_LOGIC_VECTOR (0 downto 0); m_axi_cos_out_V_RRESP : IN STD_LOGIC_VECTOR (1 downto 0); m_axi_cos_out_V_BVALID : IN STD_LOGIC; m_axi_cos_out_V_BREADY : OUT STD_LOGIC; m_axi_cos_out_V_BRESP : IN STD_LOGIC_VECTOR (1 downto 0); m_axi_cos_out_V_BID : IN STD_LOGIC_VECTOR (0 downto 0); m_axi_cos_out_V_BUSER : IN STD_LOGIC_VECTOR (0 downto 0); m_axi_sin_out_V_AWVALID : OUT STD_LOGIC; m_axi_sin_out_V_AWREADY : IN STD_LOGIC; m_axi_sin_out_V_AWADDR : OUT STD_LOGIC_VECTOR (31 downto 0); m_axi_sin_out_V_AWID : OUT STD_LOGIC_VECTOR (0 downto 0); m_axi_sin_out_V_AWLEN : OUT STD_LOGIC_VECTOR (31 downto 0); m_axi_sin_out_V_AWSIZE : OUT STD_LOGIC_VECTOR (2 downto 0); m_axi_sin_out_V_AWBURST : OUT STD_LOGIC_VECTOR (1 downto 0); m_axi_sin_out_V_AWLOCK : OUT STD_LOGIC_VECTOR (1 downto 0); m_axi_sin_out_V_AWCACHE : OUT STD_LOGIC_VECTOR (3 downto 0); m_axi_sin_out_V_AWPROT : OUT STD_LOGIC_VECTOR (2 downto 0); m_axi_sin_out_V_AWQOS : OUT STD_LOGIC_VECTOR (3 downto 0); m_axi_sin_out_V_AWREGION : OUT STD_LOGIC_VECTOR (3 downto 0); m_axi_sin_out_V_AWUSER : OUT STD_LOGIC_VECTOR (0 downto 0); m_axi_sin_out_V_WVALID : OUT STD_LOGIC; m_axi_sin_out_V_WREADY : IN STD_LOGIC; m_axi_sin_out_V_WDATA : OUT STD_LOGIC_VECTOR (15 downto 0); m_axi_sin_out_V_WSTRB : OUT STD_LOGIC_VECTOR (1 downto 0); m_axi_sin_out_V_WLAST : OUT STD_LOGIC; m_axi_sin_out_V_WID : OUT STD_LOGIC_VECTOR (0 downto 0); m_axi_sin_out_V_WUSER : OUT STD_LOGIC_VECTOR (0 downto 0); m_axi_sin_out_V_ARVALID : OUT STD_LOGIC; m_axi_sin_out_V_ARREADY : IN STD_LOGIC; m_axi_sin_out_V_ARADDR : OUT STD_LOGIC_VECTOR (31 downto 0); m_axi_sin_out_V_ARID : OUT STD_LOGIC_VECTOR (0 downto 0); m_axi_sin_out_V_ARLEN : OUT STD_LOGIC_VECTOR (31 downto 0); m_axi_sin_out_V_ARSIZE : OUT STD_LOGIC_VECTOR (2 downto 0); m_axi_sin_out_V_ARBURST : OUT STD_LOGIC_VECTOR (1 downto 0); m_axi_sin_out_V_ARLOCK : OUT STD_LOGIC_VECTOR (1 downto 0); m_axi_sin_out_V_ARCACHE : OUT STD_LOGIC_VECTOR (3 downto 0); m_axi_sin_out_V_ARPROT : OUT STD_LOGIC_VECTOR (2 downto 0); m_axi_sin_out_V_ARQOS : OUT STD_LOGIC_VECTOR (3 downto 0); m_axi_sin_out_V_ARREGION : OUT STD_LOGIC_VECTOR (3 downto 0); m_axi_sin_out_V_ARUSER : OUT STD_LOGIC_VECTOR (0 downto 0); m_axi_sin_out_V_RVALID : IN STD_LOGIC; m_axi_sin_out_V_RREADY : OUT STD_LOGIC; m_axi_sin_out_V_RDATA : IN STD_LOGIC_VECTOR (15 downto 0); m_axi_sin_out_V_RLAST : IN STD_LOGIC; m_axi_sin_out_V_RID : IN STD_LOGIC_VECTOR (0 downto 0); m_axi_sin_out_V_RUSER : IN STD_LOGIC_VECTOR (0 downto 0); m_axi_sin_out_V_RRESP : IN STD_LOGIC_VECTOR (1 downto 0); m_axi_sin_out_V_BVALID : IN STD_LOGIC; m_axi_sin_out_V_BREADY : OUT STD_LOGIC; m_axi_sin_out_V_BRESP : IN STD_LOGIC_VECTOR (1 downto 0); m_axi_sin_out_V_BID : IN STD_LOGIC_VECTOR (0 downto 0); m_axi_sin_out_V_BUSER : IN STD_LOGIC_VECTOR (0 downto 0) ); end component; component dds_PROG_BUS_s_axi IS generic ( C_S_AXI_ADDR_WIDTH : INTEGER; C_S_AXI_DATA_WIDTH : INTEGER ); port ( AWVALID : IN STD_LOGIC; AWREADY : OUT STD_LOGIC; AWADDR : IN STD_LOGIC_VECTOR (C_S_AXI_ADDR_WIDTH-1 downto 0); WVALID : IN STD_LOGIC; WREADY : OUT STD_LOGIC; WDATA : IN STD_LOGIC_VECTOR (C_S_AXI_DATA_WIDTH-1 downto 0); WSTRB : IN STD_LOGIC_VECTOR (C_S_AXI_DATA_WIDTH/8-1 downto 0); ARVALID : IN STD_LOGIC; ARREADY : OUT STD_LOGIC; ARADDR : IN STD_LOGIC_VECTOR (C_S_AXI_ADDR_WIDTH-1 downto 0); RVALID : OUT STD_LOGIC; RREADY : IN STD_LOGIC; RDATA : OUT STD_LOGIC_VECTOR (C_S_AXI_DATA_WIDTH-1 downto 0); RRESP : OUT STD_LOGIC_VECTOR (1 downto 0); BVALID : OUT STD_LOGIC; BREADY : IN STD_LOGIC; BRESP : OUT STD_LOGIC_VECTOR (1 downto 0); ACLK : IN STD_LOGIC; ARESET : IN STD_LOGIC; ACLK_EN : IN STD_LOGIC; ap_start : OUT STD_LOGIC; interrupt : OUT STD_LOGIC; ap_ready : IN STD_LOGIC; ap_done : IN STD_LOGIC; ap_idle : IN STD_LOGIC; nofSample : OUT STD_LOGIC_VECTOR (31 downto 0); incr_V : OUT STD_LOGIC_VECTOR (31 downto 0) ); end component; component dds_DDS_OUTPUT_m_axi IS generic ( USER_DW : INTEGER; USER_AW : INTEGER; USER_MAXREQS : INTEGER; NUM_READ_OUTSTANDING : INTEGER; NUM_WRITE_OUTSTANDING : INTEGER; MAX_READ_BURST_LENGTH : INTEGER; MAX_WRITE_BURST_LENGTH : INTEGER; C_M_AXI_ID_WIDTH : INTEGER; C_M_AXI_ADDR_WIDTH : INTEGER; C_M_AXI_DATA_WIDTH : INTEGER; C_M_AXI_AWUSER_WIDTH : INTEGER; C_M_AXI_ARUSER_WIDTH : INTEGER; C_M_AXI_WUSER_WIDTH : INTEGER; C_M_AXI_RUSER_WIDTH : INTEGER; C_M_AXI_BUSER_WIDTH : INTEGER; C_TARGET_ADDR : INTEGER; C_USER_VALUE : INTEGER; C_PROT_VALUE : INTEGER; C_CACHE_VALUE : INTEGER ); port ( AWVALID : OUT STD_LOGIC; AWREADY : IN STD_LOGIC; AWADDR : OUT STD_LOGIC_VECTOR (C_M_AXI_ADDR_WIDTH-1 downto 0); AWID : OUT STD_LOGIC_VECTOR (C_M_AXI_ID_WIDTH-1 downto 0); AWLEN : OUT STD_LOGIC_VECTOR (7 downto 0); AWSIZE : OUT STD_LOGIC_VECTOR (2 downto 0); AWBURST : OUT STD_LOGIC_VECTOR (1 downto 0); AWLOCK : OUT STD_LOGIC_VECTOR (1 downto 0); AWCACHE : OUT STD_LOGIC_VECTOR (3 downto 0); AWPROT : OUT STD_LOGIC_VECTOR (2 downto 0); AWQOS : OUT STD_LOGIC_VECTOR (3 downto 0); AWREGION : OUT STD_LOGIC_VECTOR (3 downto 0); AWUSER : OUT STD_LOGIC_VECTOR (C_M_AXI_AWUSER_WIDTH-1 downto 0); WVALID : OUT STD_LOGIC; WREADY : IN STD_LOGIC; WDATA : OUT STD_LOGIC_VECTOR (C_M_AXI_DATA_WIDTH-1 downto 0); WSTRB : OUT STD_LOGIC_VECTOR (C_M_AXI_DATA_WIDTH/8-1 downto 0); WLAST : OUT STD_LOGIC; WID : OUT STD_LOGIC_VECTOR (C_M_AXI_ID_WIDTH-1 downto 0); WUSER : OUT STD_LOGIC_VECTOR (C_M_AXI_WUSER_WIDTH-1 downto 0); ARVALID : OUT STD_LOGIC; ARREADY : IN STD_LOGIC; ARADDR : OUT STD_LOGIC_VECTOR (C_M_AXI_ADDR_WIDTH-1 downto 0); ARID : OUT STD_LOGIC_VECTOR (C_M_AXI_ID_WIDTH-1 downto 0); ARLEN : OUT STD_LOGIC_VECTOR (7 downto 0); ARSIZE : OUT STD_LOGIC_VECTOR (2 downto 0); ARBURST : OUT STD_LOGIC_VECTOR (1 downto 0); ARLOCK : OUT STD_LOGIC_VECTOR (1 downto 0); ARCACHE : OUT STD_LOGIC_VECTOR (3 downto 0); ARPROT : OUT STD_LOGIC_VECTOR (2 downto 0); ARQOS : OUT STD_LOGIC_VECTOR (3 downto 0); ARREGION : OUT STD_LOGIC_VECTOR (3 downto 0); ARUSER : OUT STD_LOGIC_VECTOR (C_M_AXI_ARUSER_WIDTH-1 downto 0); RVALID : IN STD_LOGIC; RREADY : OUT STD_LOGIC; RDATA : IN STD_LOGIC_VECTOR (C_M_AXI_DATA_WIDTH-1 downto 0); RLAST : IN STD_LOGIC; RID : IN STD_LOGIC_VECTOR (C_M_AXI_ID_WIDTH-1 downto 0); RUSER : IN STD_LOGIC_VECTOR (C_M_AXI_RUSER_WIDTH-1 downto 0); RRESP : IN STD_LOGIC_VECTOR (1 downto 0); BVALID : IN STD_LOGIC; BREADY : OUT STD_LOGIC; BRESP : IN STD_LOGIC_VECTOR (1 downto 0); BID : IN STD_LOGIC_VECTOR (C_M_AXI_ID_WIDTH-1 downto 0); BUSER : IN STD_LOGIC_VECTOR (C_M_AXI_BUSER_WIDTH-1 downto 0); ACLK : IN STD_LOGIC; ARESET : IN STD_LOGIC; ACLK_EN : IN STD_LOGIC; I_ARVALID : IN STD_LOGIC; I_ARREADY : OUT STD_LOGIC; I_ARADDR : IN STD_LOGIC_VECTOR (31 downto 0); I_ARID : IN STD_LOGIC_VECTOR (0 downto 0); I_ARLEN : IN STD_LOGIC_VECTOR (31 downto 0); I_ARSIZE : IN STD_LOGIC_VECTOR (2 downto 0); I_ARLOCK : IN STD_LOGIC_VECTOR (1 downto 0); I_ARCACHE : IN STD_LOGIC_VECTOR (3 downto 0); I_ARQOS : IN STD_LOGIC_VECTOR (3 downto 0); I_ARPROT : IN STD_LOGIC_VECTOR (2 downto 0); I_ARUSER : IN STD_LOGIC_VECTOR (0 downto 0); I_ARBURST : IN STD_LOGIC_VECTOR (1 downto 0); I_ARREGION : IN STD_LOGIC_VECTOR (3 downto 0); I_RVALID : OUT STD_LOGIC; I_RREADY : IN STD_LOGIC; I_RDATA : OUT STD_LOGIC_VECTOR (15 downto 0); I_RID : OUT STD_LOGIC_VECTOR (0 downto 0); I_RUSER : OUT STD_LOGIC_VECTOR (0 downto 0); I_RRESP : OUT STD_LOGIC_VECTOR (1 downto 0); I_RLAST : OUT STD_LOGIC; I_AWVALID : IN STD_LOGIC; I_AWREADY : OUT STD_LOGIC; I_AWADDR : IN STD_LOGIC_VECTOR (31 downto 0); I_AWID : IN STD_LOGIC_VECTOR (0 downto 0); I_AWLEN : IN STD_LOGIC_VECTOR (31 downto 0); I_AWSIZE : IN STD_LOGIC_VECTOR (2 downto 0); I_AWLOCK : IN STD_LOGIC_VECTOR (1 downto 0); I_AWCACHE : IN STD_LOGIC_VECTOR (3 downto 0); I_AWQOS : IN STD_LOGIC_VECTOR (3 downto 0); I_AWPROT : IN STD_LOGIC_VECTOR (2 downto 0); I_AWUSER : IN STD_LOGIC_VECTOR (0 downto 0); I_AWBURST : IN STD_LOGIC_VECTOR (1 downto 0); I_AWREGION : IN STD_LOGIC_VECTOR (3 downto 0); I_WVALID : IN STD_LOGIC; I_WREADY : OUT STD_LOGIC; I_WDATA : IN STD_LOGIC_VECTOR (15 downto 0); I_WID : IN STD_LOGIC_VECTOR (0 downto 0); I_WUSER : IN STD_LOGIC_VECTOR (0 downto 0); I_WLAST : IN STD_LOGIC; I_WSTRB : IN STD_LOGIC_VECTOR (1 downto 0); I_BVALID : OUT STD_LOGIC; I_BREADY : IN STD_LOGIC; I_BRESP : OUT STD_LOGIC_VECTOR (1 downto 0); I_BID : OUT STD_LOGIC_VECTOR (0 downto 0); I_BUSER : OUT STD_LOGIC_VECTOR (0 downto 0) ); end component; component dds_DDS_OUTPUT1_m_axi IS generic ( USER_DW : INTEGER; USER_AW : INTEGER; USER_MAXREQS : INTEGER; NUM_READ_OUTSTANDING : INTEGER; NUM_WRITE_OUTSTANDING : INTEGER; MAX_READ_BURST_LENGTH : INTEGER; MAX_WRITE_BURST_LENGTH : INTEGER; C_M_AXI_ID_WIDTH : INTEGER; C_M_AXI_ADDR_WIDTH : INTEGER; C_M_AXI_DATA_WIDTH : INTEGER; C_M_AXI_AWUSER_WIDTH : INTEGER; C_M_AXI_ARUSER_WIDTH : INTEGER; C_M_AXI_WUSER_WIDTH : INTEGER; C_M_AXI_RUSER_WIDTH : INTEGER; C_M_AXI_BUSER_WIDTH : INTEGER; C_TARGET_ADDR : INTEGER; C_USER_VALUE : INTEGER; C_PROT_VALUE : INTEGER; C_CACHE_VALUE : INTEGER ); port ( AWVALID : OUT STD_LOGIC; AWREADY : IN STD_LOGIC; AWADDR : OUT STD_LOGIC_VECTOR (C_M_AXI_ADDR_WIDTH-1 downto 0); AWID : OUT STD_LOGIC_VECTOR (C_M_AXI_ID_WIDTH-1 downto 0); AWLEN : OUT STD_LOGIC_VECTOR (7 downto 0); AWSIZE : OUT STD_LOGIC_VECTOR (2 downto 0); AWBURST : OUT STD_LOGIC_VECTOR (1 downto 0); AWLOCK : OUT STD_LOGIC_VECTOR (1 downto 0); AWCACHE : OUT STD_LOGIC_VECTOR (3 downto 0); AWPROT : OUT STD_LOGIC_VECTOR (2 downto 0); AWQOS : OUT STD_LOGIC_VECTOR (3 downto 0); AWREGION : OUT STD_LOGIC_VECTOR (3 downto 0); AWUSER : OUT STD_LOGIC_VECTOR (C_M_AXI_AWUSER_WIDTH-1 downto 0); WVALID : OUT STD_LOGIC; WREADY : IN STD_LOGIC; WDATA : OUT STD_LOGIC_VECTOR (C_M_AXI_DATA_WIDTH-1 downto 0); WSTRB : OUT STD_LOGIC_VECTOR (C_M_AXI_DATA_WIDTH/8-1 downto 0); WLAST : OUT STD_LOGIC; WID : OUT STD_LOGIC_VECTOR (C_M_AXI_ID_WIDTH-1 downto 0); WUSER : OUT STD_LOGIC_VECTOR (C_M_AXI_WUSER_WIDTH-1 downto 0); ARVALID : OUT STD_LOGIC; ARREADY : IN STD_LOGIC; ARADDR : OUT STD_LOGIC_VECTOR (C_M_AXI_ADDR_WIDTH-1 downto 0); ARID : OUT STD_LOGIC_VECTOR (C_M_AXI_ID_WIDTH-1 downto 0); ARLEN : OUT STD_LOGIC_VECTOR (7 downto 0); ARSIZE : OUT STD_LOGIC_VECTOR (2 downto 0); ARBURST : OUT STD_LOGIC_VECTOR (1 downto 0); ARLOCK : OUT STD_LOGIC_VECTOR (1 downto 0); ARCACHE : OUT STD_LOGIC_VECTOR (3 downto 0); ARPROT : OUT STD_LOGIC_VECTOR (2 downto 0); ARQOS : OUT STD_LOGIC_VECTOR (3 downto 0); ARREGION : OUT STD_LOGIC_VECTOR (3 downto 0); ARUSER : OUT STD_LOGIC_VECTOR (C_M_AXI_ARUSER_WIDTH-1 downto 0); RVALID : IN STD_LOGIC; RREADY : OUT STD_LOGIC; RDATA : IN STD_LOGIC_VECTOR (C_M_AXI_DATA_WIDTH-1 downto 0); RLAST : IN STD_LOGIC; RID : IN STD_LOGIC_VECTOR (C_M_AXI_ID_WIDTH-1 downto 0); RUSER : IN STD_LOGIC_VECTOR (C_M_AXI_RUSER_WIDTH-1 downto 0); RRESP : IN STD_LOGIC_VECTOR (1 downto 0); BVALID : IN STD_LOGIC; BREADY : OUT STD_LOGIC; BRESP : IN STD_LOGIC_VECTOR (1 downto 0); BID : IN STD_LOGIC_VECTOR (C_M_AXI_ID_WIDTH-1 downto 0); BUSER : IN STD_LOGIC_VECTOR (C_M_AXI_BUSER_WIDTH-1 downto 0); ACLK : IN STD_LOGIC; ARESET : IN STD_LOGIC; ACLK_EN : IN STD_LOGIC; I_ARVALID : IN STD_LOGIC; I_ARREADY : OUT STD_LOGIC; I_ARADDR : IN STD_LOGIC_VECTOR (31 downto 0); I_ARID : IN STD_LOGIC_VECTOR (0 downto 0); I_ARLEN : IN STD_LOGIC_VECTOR (31 downto 0); I_ARSIZE : IN STD_LOGIC_VECTOR (2 downto 0); I_ARLOCK : IN STD_LOGIC_VECTOR (1 downto 0); I_ARCACHE : IN STD_LOGIC_VECTOR (3 downto 0); I_ARQOS : IN STD_LOGIC_VECTOR (3 downto 0); I_ARPROT : IN STD_LOGIC_VECTOR (2 downto 0); I_ARUSER : IN STD_LOGIC_VECTOR (0 downto 0); I_ARBURST : IN STD_LOGIC_VECTOR (1 downto 0); I_ARREGION : IN STD_LOGIC_VECTOR (3 downto 0); I_RVALID : OUT STD_LOGIC; I_RREADY : IN STD_LOGIC; I_RDATA : OUT STD_LOGIC_VECTOR (15 downto 0); I_RID : OUT STD_LOGIC_VECTOR (0 downto 0); I_RUSER : OUT STD_LOGIC_VECTOR (0 downto 0); I_RRESP : OUT STD_LOGIC_VECTOR (1 downto 0); I_RLAST : OUT STD_LOGIC; I_AWVALID : IN STD_LOGIC; I_AWREADY : OUT STD_LOGIC; I_AWADDR : IN STD_LOGIC_VECTOR (31 downto 0); I_AWID : IN STD_LOGIC_VECTOR (0 downto 0); I_AWLEN : IN STD_LOGIC_VECTOR (31 downto 0); I_AWSIZE : IN STD_LOGIC_VECTOR (2 downto 0); I_AWLOCK : IN STD_LOGIC_VECTOR (1 downto 0); I_AWCACHE : IN STD_LOGIC_VECTOR (3 downto 0); I_AWQOS : IN STD_LOGIC_VECTOR (3 downto 0); I_AWPROT : IN STD_LOGIC_VECTOR (2 downto 0); I_AWUSER : IN STD_LOGIC_VECTOR (0 downto 0); I_AWBURST : IN STD_LOGIC_VECTOR (1 downto 0); I_AWREGION : IN STD_LOGIC_VECTOR (3 downto 0); I_WVALID : IN STD_LOGIC; I_WREADY : OUT STD_LOGIC; I_WDATA : IN STD_LOGIC_VECTOR (15 downto 0); I_WID : IN STD_LOGIC_VECTOR (0 downto 0); I_WUSER : IN STD_LOGIC_VECTOR (0 downto 0); I_WLAST : IN STD_LOGIC; I_WSTRB : IN STD_LOGIC_VECTOR (1 downto 0); I_BVALID : OUT STD_LOGIC; I_BREADY : IN STD_LOGIC; I_BRESP : OUT STD_LOGIC_VECTOR (1 downto 0); I_BID : OUT STD_LOGIC_VECTOR (0 downto 0); I_BUSER : OUT STD_LOGIC_VECTOR (0 downto 0) ); end component; begin dds_PROG_BUS_s_axi_U : component dds_PROG_BUS_s_axi generic map ( C_S_AXI_ADDR_WIDTH => C_S_AXI_PROG_BUS_ADDR_WIDTH, C_S_AXI_DATA_WIDTH => C_S_AXI_PROG_BUS_DATA_WIDTH) port map ( AWVALID => s_axi_PROG_BUS_AWVALID, AWREADY => s_axi_PROG_BUS_AWREADY, AWADDR => s_axi_PROG_BUS_AWADDR, WVALID => s_axi_PROG_BUS_WVALID, WREADY => s_axi_PROG_BUS_WREADY, WDATA => s_axi_PROG_BUS_WDATA, WSTRB => s_axi_PROG_BUS_WSTRB, ARVALID => s_axi_PROG_BUS_ARVALID, ARREADY => s_axi_PROG_BUS_ARREADY, ARADDR => s_axi_PROG_BUS_ARADDR, RVALID => s_axi_PROG_BUS_RVALID, RREADY => s_axi_PROG_BUS_RREADY, RDATA => s_axi_PROG_BUS_RDATA, RRESP => s_axi_PROG_BUS_RRESP, BVALID => s_axi_PROG_BUS_BVALID, BREADY => s_axi_PROG_BUS_BREADY, BRESP => s_axi_PROG_BUS_BRESP, ACLK => ap_clk, ARESET => ap_rst_n_inv, ACLK_EN => ap_const_logic_1, ap_start => ap_start, interrupt => interrupt, ap_ready => ap_ready, ap_done => ap_done, ap_idle => ap_idle, nofSample => nofSample, incr_V => incr_V); dds_DDS_OUTPUT_m_axi_U : component dds_DDS_OUTPUT_m_axi generic map ( USER_DW => 16, USER_AW => 32, USER_MAXREQS => 5, NUM_READ_OUTSTANDING => 16, NUM_WRITE_OUTSTANDING => 16, MAX_READ_BURST_LENGTH => 16, MAX_WRITE_BURST_LENGTH => 16, C_M_AXI_ID_WIDTH => C_M_AXI_DDS_OUTPUT_ID_WIDTH, C_M_AXI_ADDR_WIDTH => C_M_AXI_DDS_OUTPUT_ADDR_WIDTH, C_M_AXI_DATA_WIDTH => C_M_AXI_DDS_OUTPUT_DATA_WIDTH, C_M_AXI_AWUSER_WIDTH => C_M_AXI_DDS_OUTPUT_AWUSER_WIDTH, C_M_AXI_ARUSER_WIDTH => C_M_AXI_DDS_OUTPUT_ARUSER_WIDTH, C_M_AXI_WUSER_WIDTH => C_M_AXI_DDS_OUTPUT_WUSER_WIDTH, C_M_AXI_RUSER_WIDTH => C_M_AXI_DDS_OUTPUT_RUSER_WIDTH, C_M_AXI_BUSER_WIDTH => C_M_AXI_DDS_OUTPUT_BUSER_WIDTH, C_TARGET_ADDR => C_M_AXI_DDS_OUTPUT_TARGET_ADDR, C_USER_VALUE => C_M_AXI_DDS_OUTPUT_USER_VALUE, C_PROT_VALUE => C_M_AXI_DDS_OUTPUT_PROT_VALUE, C_CACHE_VALUE => C_M_AXI_DDS_OUTPUT_CACHE_VALUE) port map ( AWVALID => m_axi_DDS_OUTPUT_AWVALID, AWREADY => m_axi_DDS_OUTPUT_AWREADY, AWADDR => m_axi_DDS_OUTPUT_AWADDR, AWID => m_axi_DDS_OUTPUT_AWID, AWLEN => m_axi_DDS_OUTPUT_AWLEN, AWSIZE => m_axi_DDS_OUTPUT_AWSIZE, AWBURST => m_axi_DDS_OUTPUT_AWBURST, AWLOCK => m_axi_DDS_OUTPUT_AWLOCK, AWCACHE => m_axi_DDS_OUTPUT_AWCACHE, AWPROT => m_axi_DDS_OUTPUT_AWPROT, AWQOS => m_axi_DDS_OUTPUT_AWQOS, AWREGION => m_axi_DDS_OUTPUT_AWREGION, AWUSER => m_axi_DDS_OUTPUT_AWUSER, WVALID => m_axi_DDS_OUTPUT_WVALID, WREADY => m_axi_DDS_OUTPUT_WREADY, WDATA => m_axi_DDS_OUTPUT_WDATA, WSTRB => m_axi_DDS_OUTPUT_WSTRB, WLAST => m_axi_DDS_OUTPUT_WLAST, WID => m_axi_DDS_OUTPUT_WID, WUSER => m_axi_DDS_OUTPUT_WUSER, ARVALID => m_axi_DDS_OUTPUT_ARVALID, ARREADY => m_axi_DDS_OUTPUT_ARREADY, ARADDR => m_axi_DDS_OUTPUT_ARADDR, ARID => m_axi_DDS_OUTPUT_ARID, ARLEN => m_axi_DDS_OUTPUT_ARLEN, ARSIZE => m_axi_DDS_OUTPUT_ARSIZE, ARBURST => m_axi_DDS_OUTPUT_ARBURST, ARLOCK => m_axi_DDS_OUTPUT_ARLOCK, ARCACHE => m_axi_DDS_OUTPUT_ARCACHE, ARPROT => m_axi_DDS_OUTPUT_ARPROT, ARQOS => m_axi_DDS_OUTPUT_ARQOS, ARREGION => m_axi_DDS_OUTPUT_ARREGION, ARUSER => m_axi_DDS_OUTPUT_ARUSER, RVALID => m_axi_DDS_OUTPUT_RVALID, RREADY => m_axi_DDS_OUTPUT_RREADY, RDATA => m_axi_DDS_OUTPUT_RDATA, RLAST => m_axi_DDS_OUTPUT_RLAST, RID => m_axi_DDS_OUTPUT_RID, RUSER => m_axi_DDS_OUTPUT_RUSER, RRESP => m_axi_DDS_OUTPUT_RRESP, BVALID => m_axi_DDS_OUTPUT_BVALID, BREADY => m_axi_DDS_OUTPUT_BREADY, BRESP => m_axi_DDS_OUTPUT_BRESP, BID => m_axi_DDS_OUTPUT_BID, BUSER => m_axi_DDS_OUTPUT_BUSER, ACLK => ap_clk, ARESET => ap_rst_n_inv, ACLK_EN => ap_const_logic_1, I_ARVALID => ap_const_logic_0, I_ARREADY => DDS_OUTPUT_ARREADY, I_ARADDR => ap_const_lv32_0, I_ARID => ap_const_lv1_0, I_ARLEN => ap_const_lv32_0, I_ARSIZE => ap_const_lv3_0, I_ARLOCK => ap_const_lv2_0, I_ARCACHE => ap_const_lv4_0, I_ARQOS => ap_const_lv4_0, I_ARPROT => ap_const_lv3_0, I_ARUSER => ap_const_lv1_0, I_ARBURST => ap_const_lv2_0, I_ARREGION => ap_const_lv4_0, I_RVALID => DDS_OUTPUT_RVALID, I_RREADY => ap_const_logic_0, I_RDATA => DDS_OUTPUT_RDATA, I_RID => DDS_OUTPUT_RID, I_RUSER => DDS_OUTPUT_RUSER, I_RRESP => DDS_OUTPUT_RRESP, I_RLAST => DDS_OUTPUT_RLAST, I_AWVALID => DDS_OUTPUT_AWVALID, I_AWREADY => DDS_OUTPUT_AWREADY, I_AWADDR => grp_process_frame_fu_52_m_axi_cos_out_V_AWADDR, I_AWID => grp_process_frame_fu_52_m_axi_cos_out_V_AWID, I_AWLEN => grp_process_frame_fu_52_m_axi_cos_out_V_AWLEN, I_AWSIZE => grp_process_frame_fu_52_m_axi_cos_out_V_AWSIZE, I_AWLOCK => grp_process_frame_fu_52_m_axi_cos_out_V_AWLOCK, I_AWCACHE => grp_process_frame_fu_52_m_axi_cos_out_V_AWCACHE, I_AWQOS => grp_process_frame_fu_52_m_axi_cos_out_V_AWQOS, I_AWPROT => grp_process_frame_fu_52_m_axi_cos_out_V_AWPROT, I_AWUSER => grp_process_frame_fu_52_m_axi_cos_out_V_AWUSER, I_AWBURST => grp_process_frame_fu_52_m_axi_cos_out_V_AWBURST, I_AWREGION => grp_process_frame_fu_52_m_axi_cos_out_V_AWREGION, I_WVALID => DDS_OUTPUT_WVALID, I_WREADY => DDS_OUTPUT_WREADY, I_WDATA => grp_process_frame_fu_52_m_axi_cos_out_V_WDATA, I_WID => grp_process_frame_fu_52_m_axi_cos_out_V_WID, I_WUSER => grp_process_frame_fu_52_m_axi_cos_out_V_WUSER, I_WLAST => grp_process_frame_fu_52_m_axi_cos_out_V_WLAST, I_WSTRB => grp_process_frame_fu_52_m_axi_cos_out_V_WSTRB, I_BVALID => DDS_OUTPUT_BVALID, I_BREADY => DDS_OUTPUT_BREADY, I_BRESP => DDS_OUTPUT_BRESP, I_BID => DDS_OUTPUT_BID, I_BUSER => DDS_OUTPUT_BUSER); dds_DDS_OUTPUT1_m_axi_U : component dds_DDS_OUTPUT1_m_axi generic map ( USER_DW => 16, USER_AW => 32, USER_MAXREQS => 5, NUM_READ_OUTSTANDING => 16, NUM_WRITE_OUTSTANDING => 16, MAX_READ_BURST_LENGTH => 16, MAX_WRITE_BURST_LENGTH => 16, C_M_AXI_ID_WIDTH => C_M_AXI_DDS_OUTPUT1_ID_WIDTH, C_M_AXI_ADDR_WIDTH => C_M_AXI_DDS_OUTPUT1_ADDR_WIDTH, C_M_AXI_DATA_WIDTH => C_M_AXI_DDS_OUTPUT1_DATA_WIDTH, C_M_AXI_AWUSER_WIDTH => C_M_AXI_DDS_OUTPUT1_AWUSER_WIDTH, C_M_AXI_ARUSER_WIDTH => C_M_AXI_DDS_OUTPUT1_ARUSER_WIDTH, C_M_AXI_WUSER_WIDTH => C_M_AXI_DDS_OUTPUT1_WUSER_WIDTH, C_M_AXI_RUSER_WIDTH => C_M_AXI_DDS_OUTPUT1_RUSER_WIDTH, C_M_AXI_BUSER_WIDTH => C_M_AXI_DDS_OUTPUT1_BUSER_WIDTH, C_TARGET_ADDR => C_M_AXI_DDS_OUTPUT1_TARGET_ADDR, C_USER_VALUE => C_M_AXI_DDS_OUTPUT1_USER_VALUE, C_PROT_VALUE => C_M_AXI_DDS_OUTPUT1_PROT_VALUE, C_CACHE_VALUE => C_M_AXI_DDS_OUTPUT1_CACHE_VALUE) port map ( AWVALID => m_axi_DDS_OUTPUT1_AWVALID, AWREADY => m_axi_DDS_OUTPUT1_AWREADY, AWADDR => m_axi_DDS_OUTPUT1_AWADDR, AWID => m_axi_DDS_OUTPUT1_AWID, AWLEN => m_axi_DDS_OUTPUT1_AWLEN, AWSIZE => m_axi_DDS_OUTPUT1_AWSIZE, AWBURST => m_axi_DDS_OUTPUT1_AWBURST, AWLOCK => m_axi_DDS_OUTPUT1_AWLOCK, AWCACHE => m_axi_DDS_OUTPUT1_AWCACHE, AWPROT => m_axi_DDS_OUTPUT1_AWPROT, AWQOS => m_axi_DDS_OUTPUT1_AWQOS, AWREGION => m_axi_DDS_OUTPUT1_AWREGION, AWUSER => m_axi_DDS_OUTPUT1_AWUSER, WVALID => m_axi_DDS_OUTPUT1_WVALID, WREADY => m_axi_DDS_OUTPUT1_WREADY, WDATA => m_axi_DDS_OUTPUT1_WDATA, WSTRB => m_axi_DDS_OUTPUT1_WSTRB, WLAST => m_axi_DDS_OUTPUT1_WLAST, WID => m_axi_DDS_OUTPUT1_WID, WUSER => m_axi_DDS_OUTPUT1_WUSER, ARVALID => m_axi_DDS_OUTPUT1_ARVALID, ARREADY => m_axi_DDS_OUTPUT1_ARREADY, ARADDR => m_axi_DDS_OUTPUT1_ARADDR, ARID => m_axi_DDS_OUTPUT1_ARID, ARLEN => m_axi_DDS_OUTPUT1_ARLEN, ARSIZE => m_axi_DDS_OUTPUT1_ARSIZE, ARBURST => m_axi_DDS_OUTPUT1_ARBURST, ARLOCK => m_axi_DDS_OUTPUT1_ARLOCK, ARCACHE => m_axi_DDS_OUTPUT1_ARCACHE, ARPROT => m_axi_DDS_OUTPUT1_ARPROT, ARQOS => m_axi_DDS_OUTPUT1_ARQOS, ARREGION => m_axi_DDS_OUTPUT1_ARREGION, ARUSER => m_axi_DDS_OUTPUT1_ARUSER, RVALID => m_axi_DDS_OUTPUT1_RVALID, RREADY => m_axi_DDS_OUTPUT1_RREADY, RDATA => m_axi_DDS_OUTPUT1_RDATA, RLAST => m_axi_DDS_OUTPUT1_RLAST, RID => m_axi_DDS_OUTPUT1_RID, RUSER => m_axi_DDS_OUTPUT1_RUSER, RRESP => m_axi_DDS_OUTPUT1_RRESP, BVALID => m_axi_DDS_OUTPUT1_BVALID, BREADY => m_axi_DDS_OUTPUT1_BREADY, BRESP => m_axi_DDS_OUTPUT1_BRESP, BID => m_axi_DDS_OUTPUT1_BID, BUSER => m_axi_DDS_OUTPUT1_BUSER, ACLK => ap_clk, ARESET => ap_rst_n_inv, ACLK_EN => ap_const_logic_1, I_ARVALID => ap_const_logic_0, I_ARREADY => DDS_OUTPUT1_ARREADY, I_ARADDR => ap_const_lv32_0, I_ARID => ap_const_lv1_0, I_ARLEN => ap_const_lv32_0, I_ARSIZE => ap_const_lv3_0, I_ARLOCK => ap_const_lv2_0, I_ARCACHE => ap_const_lv4_0, I_ARQOS => ap_const_lv4_0, I_ARPROT => ap_const_lv3_0, I_ARUSER => ap_const_lv1_0, I_ARBURST => ap_const_lv2_0, I_ARREGION => ap_const_lv4_0, I_RVALID => DDS_OUTPUT1_RVALID, I_RREADY => ap_const_logic_0, I_RDATA => DDS_OUTPUT1_RDATA, I_RID => DDS_OUTPUT1_RID, I_RUSER => DDS_OUTPUT1_RUSER, I_RRESP => DDS_OUTPUT1_RRESP, I_RLAST => DDS_OUTPUT1_RLAST, I_AWVALID => DDS_OUTPUT1_AWVALID, I_AWREADY => DDS_OUTPUT1_AWREADY, I_AWADDR => grp_process_frame_fu_52_m_axi_sin_out_V_AWADDR, I_AWID => grp_process_frame_fu_52_m_axi_sin_out_V_AWID, I_AWLEN => grp_process_frame_fu_52_m_axi_sin_out_V_AWLEN, I_AWSIZE => grp_process_frame_fu_52_m_axi_sin_out_V_AWSIZE, I_AWLOCK => grp_process_frame_fu_52_m_axi_sin_out_V_AWLOCK, I_AWCACHE => grp_process_frame_fu_52_m_axi_sin_out_V_AWCACHE, I_AWQOS => grp_process_frame_fu_52_m_axi_sin_out_V_AWQOS, I_AWPROT => grp_process_frame_fu_52_m_axi_sin_out_V_AWPROT, I_AWUSER => grp_process_frame_fu_52_m_axi_sin_out_V_AWUSER, I_AWBURST => grp_process_frame_fu_52_m_axi_sin_out_V_AWBURST, I_AWREGION => grp_process_frame_fu_52_m_axi_sin_out_V_AWREGION, I_WVALID => DDS_OUTPUT1_WVALID, I_WREADY => DDS_OUTPUT1_WREADY, I_WDATA => grp_process_frame_fu_52_m_axi_sin_out_V_WDATA, I_WID => grp_process_frame_fu_52_m_axi_sin_out_V_WID, I_WUSER => grp_process_frame_fu_52_m_axi_sin_out_V_WUSER, I_WLAST => grp_process_frame_fu_52_m_axi_sin_out_V_WLAST, I_WSTRB => grp_process_frame_fu_52_m_axi_sin_out_V_WSTRB, I_BVALID => DDS_OUTPUT1_BVALID, I_BREADY => DDS_OUTPUT1_BREADY, I_BRESP => DDS_OUTPUT1_BRESP, I_BID => DDS_OUTPUT1_BID, I_BUSER => DDS_OUTPUT1_BUSER); grp_process_frame_fu_52 : component process_frame port map ( ap_clk => ap_clk, ap_rst => ap_rst_n_inv, ap_start => grp_process_frame_fu_52_ap_start, ap_done => grp_process_frame_fu_52_ap_done, ap_idle => grp_process_frame_fu_52_ap_idle, ap_ready => grp_process_frame_fu_52_ap_ready, nofSample => nofSample_read_reg_73, incr_V => incr_V_read_reg_68, m_axi_cos_out_V_AWVALID => grp_process_frame_fu_52_m_axi_cos_out_V_AWVALID, m_axi_cos_out_V_AWREADY => DDS_OUTPUT_AWREADY, m_axi_cos_out_V_AWADDR => grp_process_frame_fu_52_m_axi_cos_out_V_AWADDR, m_axi_cos_out_V_AWID => grp_process_frame_fu_52_m_axi_cos_out_V_AWID, m_axi_cos_out_V_AWLEN => grp_process_frame_fu_52_m_axi_cos_out_V_AWLEN, m_axi_cos_out_V_AWSIZE => grp_process_frame_fu_52_m_axi_cos_out_V_AWSIZE, m_axi_cos_out_V_AWBURST => grp_process_frame_fu_52_m_axi_cos_out_V_AWBURST, m_axi_cos_out_V_AWLOCK => grp_process_frame_fu_52_m_axi_cos_out_V_AWLOCK, m_axi_cos_out_V_AWCACHE => grp_process_frame_fu_52_m_axi_cos_out_V_AWCACHE, m_axi_cos_out_V_AWPROT => grp_process_frame_fu_52_m_axi_cos_out_V_AWPROT, m_axi_cos_out_V_AWQOS => grp_process_frame_fu_52_m_axi_cos_out_V_AWQOS, m_axi_cos_out_V_AWREGION => grp_process_frame_fu_52_m_axi_cos_out_V_AWREGION, m_axi_cos_out_V_AWUSER => grp_process_frame_fu_52_m_axi_cos_out_V_AWUSER, m_axi_cos_out_V_WVALID => grp_process_frame_fu_52_m_axi_cos_out_V_WVALID, m_axi_cos_out_V_WREADY => DDS_OUTPUT_WREADY, m_axi_cos_out_V_WDATA => grp_process_frame_fu_52_m_axi_cos_out_V_WDATA, m_axi_cos_out_V_WSTRB => grp_process_frame_fu_52_m_axi_cos_out_V_WSTRB, m_axi_cos_out_V_WLAST => grp_process_frame_fu_52_m_axi_cos_out_V_WLAST, m_axi_cos_out_V_WID => grp_process_frame_fu_52_m_axi_cos_out_V_WID, m_axi_cos_out_V_WUSER => grp_process_frame_fu_52_m_axi_cos_out_V_WUSER, m_axi_cos_out_V_ARVALID => grp_process_frame_fu_52_m_axi_cos_out_V_ARVALID, m_axi_cos_out_V_ARREADY => ap_const_logic_0, m_axi_cos_out_V_ARADDR => grp_process_frame_fu_52_m_axi_cos_out_V_ARADDR, m_axi_cos_out_V_ARID => grp_process_frame_fu_52_m_axi_cos_out_V_ARID, m_axi_cos_out_V_ARLEN => grp_process_frame_fu_52_m_axi_cos_out_V_ARLEN, m_axi_cos_out_V_ARSIZE => grp_process_frame_fu_52_m_axi_cos_out_V_ARSIZE, m_axi_cos_out_V_ARBURST => grp_process_frame_fu_52_m_axi_cos_out_V_ARBURST, m_axi_cos_out_V_ARLOCK => grp_process_frame_fu_52_m_axi_cos_out_V_ARLOCK, m_axi_cos_out_V_ARCACHE => grp_process_frame_fu_52_m_axi_cos_out_V_ARCACHE, m_axi_cos_out_V_ARPROT => grp_process_frame_fu_52_m_axi_cos_out_V_ARPROT, m_axi_cos_out_V_ARQOS => grp_process_frame_fu_52_m_axi_cos_out_V_ARQOS, m_axi_cos_out_V_ARREGION => grp_process_frame_fu_52_m_axi_cos_out_V_ARREGION, m_axi_cos_out_V_ARUSER => grp_process_frame_fu_52_m_axi_cos_out_V_ARUSER, m_axi_cos_out_V_RVALID => ap_const_logic_0, m_axi_cos_out_V_RREADY => grp_process_frame_fu_52_m_axi_cos_out_V_RREADY, m_axi_cos_out_V_RDATA => ap_const_lv16_0, m_axi_cos_out_V_RLAST => ap_const_logic_0, m_axi_cos_out_V_RID => ap_const_lv1_0, m_axi_cos_out_V_RUSER => ap_const_lv1_0, m_axi_cos_out_V_RRESP => ap_const_lv2_0, m_axi_cos_out_V_BVALID => DDS_OUTPUT_BVALID, m_axi_cos_out_V_BREADY => grp_process_frame_fu_52_m_axi_cos_out_V_BREADY, m_axi_cos_out_V_BRESP => DDS_OUTPUT_BRESP, m_axi_cos_out_V_BID => DDS_OUTPUT_BID, m_axi_cos_out_V_BUSER => DDS_OUTPUT_BUSER, m_axi_sin_out_V_AWVALID => grp_process_frame_fu_52_m_axi_sin_out_V_AWVALID, m_axi_sin_out_V_AWREADY => DDS_OUTPUT1_AWREADY, m_axi_sin_out_V_AWADDR => grp_process_frame_fu_52_m_axi_sin_out_V_AWADDR, m_axi_sin_out_V_AWID => grp_process_frame_fu_52_m_axi_sin_out_V_AWID, m_axi_sin_out_V_AWLEN => grp_process_frame_fu_52_m_axi_sin_out_V_AWLEN, m_axi_sin_out_V_AWSIZE => grp_process_frame_fu_52_m_axi_sin_out_V_AWSIZE, m_axi_sin_out_V_AWBURST => grp_process_frame_fu_52_m_axi_sin_out_V_AWBURST, m_axi_sin_out_V_AWLOCK => grp_process_frame_fu_52_m_axi_sin_out_V_AWLOCK, m_axi_sin_out_V_AWCACHE => grp_process_frame_fu_52_m_axi_sin_out_V_AWCACHE, m_axi_sin_out_V_AWPROT => grp_process_frame_fu_52_m_axi_sin_out_V_AWPROT, m_axi_sin_out_V_AWQOS => grp_process_frame_fu_52_m_axi_sin_out_V_AWQOS, m_axi_sin_out_V_AWREGION => grp_process_frame_fu_52_m_axi_sin_out_V_AWREGION, m_axi_sin_out_V_AWUSER => grp_process_frame_fu_52_m_axi_sin_out_V_AWUSER, m_axi_sin_out_V_WVALID => grp_process_frame_fu_52_m_axi_sin_out_V_WVALID, m_axi_sin_out_V_WREADY => DDS_OUTPUT1_WREADY, m_axi_sin_out_V_WDATA => grp_process_frame_fu_52_m_axi_sin_out_V_WDATA, m_axi_sin_out_V_WSTRB => grp_process_frame_fu_52_m_axi_sin_out_V_WSTRB, m_axi_sin_out_V_WLAST => grp_process_frame_fu_52_m_axi_sin_out_V_WLAST, m_axi_sin_out_V_WID => grp_process_frame_fu_52_m_axi_sin_out_V_WID, m_axi_sin_out_V_WUSER => grp_process_frame_fu_52_m_axi_sin_out_V_WUSER, m_axi_sin_out_V_ARVALID => grp_process_frame_fu_52_m_axi_sin_out_V_ARVALID, m_axi_sin_out_V_ARREADY => ap_const_logic_0, m_axi_sin_out_V_ARADDR => grp_process_frame_fu_52_m_axi_sin_out_V_ARADDR, m_axi_sin_out_V_ARID => grp_process_frame_fu_52_m_axi_sin_out_V_ARID, m_axi_sin_out_V_ARLEN => grp_process_frame_fu_52_m_axi_sin_out_V_ARLEN, m_axi_sin_out_V_ARSIZE => grp_process_frame_fu_52_m_axi_sin_out_V_ARSIZE, m_axi_sin_out_V_ARBURST => grp_process_frame_fu_52_m_axi_sin_out_V_ARBURST, m_axi_sin_out_V_ARLOCK => grp_process_frame_fu_52_m_axi_sin_out_V_ARLOCK, m_axi_sin_out_V_ARCACHE => grp_process_frame_fu_52_m_axi_sin_out_V_ARCACHE, m_axi_sin_out_V_ARPROT => grp_process_frame_fu_52_m_axi_sin_out_V_ARPROT, m_axi_sin_out_V_ARQOS => grp_process_frame_fu_52_m_axi_sin_out_V_ARQOS, m_axi_sin_out_V_ARREGION => grp_process_frame_fu_52_m_axi_sin_out_V_ARREGION, m_axi_sin_out_V_ARUSER => grp_process_frame_fu_52_m_axi_sin_out_V_ARUSER, m_axi_sin_out_V_RVALID => ap_const_logic_0, m_axi_sin_out_V_RREADY => grp_process_frame_fu_52_m_axi_sin_out_V_RREADY, m_axi_sin_out_V_RDATA => ap_const_lv16_0, m_axi_sin_out_V_RLAST => ap_const_logic_0, m_axi_sin_out_V_RID => ap_const_lv1_0, m_axi_sin_out_V_RUSER => ap_const_lv1_0, m_axi_sin_out_V_RRESP => ap_const_lv2_0, m_axi_sin_out_V_BVALID => DDS_OUTPUT1_BVALID, m_axi_sin_out_V_BREADY => grp_process_frame_fu_52_m_axi_sin_out_V_BREADY, m_axi_sin_out_V_BRESP => DDS_OUTPUT1_BRESP, m_axi_sin_out_V_BID => DDS_OUTPUT1_BID, m_axi_sin_out_V_BUSER => DDS_OUTPUT1_BUSER); ap_CS_fsm_assign_proc : process(ap_clk) begin if (ap_clk'event and ap_clk = '1') then if (ap_rst_n_inv = '1') then ap_CS_fsm <= ap_ST_fsm_state1; else ap_CS_fsm <= ap_NS_fsm; end if; end if; end process; ap_reg_grp_process_frame_fu_52_ap_start_assign_proc : process(ap_clk) begin if (ap_clk'event and ap_clk = '1') then if (ap_rst_n_inv = '1') then ap_reg_grp_process_frame_fu_52_ap_start <= ap_const_logic_0; else if (((ap_const_lv1_1 = ap_CS_fsm_state2))) then ap_reg_grp_process_frame_fu_52_ap_start <= ap_const_logic_1; elsif ((ap_const_logic_1 = grp_process_frame_fu_52_ap_ready)) then ap_reg_grp_process_frame_fu_52_ap_start <= ap_const_logic_0; end if; end if; end if; end process; process (ap_clk) begin if (ap_clk'event and ap_clk = '1') then if (((ap_CS_fsm_state1 = ap_const_lv1_1) and not((ap_start = ap_const_logic_0)))) then incr_V_read_reg_68 <= incr_V; nofSample_read_reg_73 <= nofSample; end if; end if; end process; ap_NS_fsm_assign_proc : process (ap_start, ap_CS_fsm, grp_process_frame_fu_52_ap_done) begin case ap_CS_fsm is when ap_ST_fsm_state1 => if (not((ap_start = ap_const_logic_0))) then ap_NS_fsm <= ap_ST_fsm_state2; else ap_NS_fsm <= ap_ST_fsm_state1; end if; when ap_ST_fsm_state2 => ap_NS_fsm <= ap_ST_fsm_state3; when ap_ST_fsm_state3 => if (not((ap_const_logic_0 = grp_process_frame_fu_52_ap_done))) then ap_NS_fsm <= ap_ST_fsm_state1; else ap_NS_fsm <= ap_ST_fsm_state3; end if; when others => ap_NS_fsm <= "XXX"; end case; end process; DDS_OUTPUT1_AWVALID_assign_proc : process(grp_process_frame_fu_52_m_axi_sin_out_V_AWVALID, ap_CS_fsm_state2, ap_CS_fsm_state3) begin if ((((ap_const_lv1_1 = ap_CS_fsm_state2)) or ((ap_const_lv1_1 = ap_CS_fsm_state3)))) then DDS_OUTPUT1_AWVALID <= grp_process_frame_fu_52_m_axi_sin_out_V_AWVALID; else DDS_OUTPUT1_AWVALID <= ap_const_logic_0; end if; end process; DDS_OUTPUT1_BREADY_assign_proc : process(grp_process_frame_fu_52_m_axi_sin_out_V_BREADY, ap_CS_fsm_state2, ap_CS_fsm_state3) begin if ((((ap_const_lv1_1 = ap_CS_fsm_state2)) or ((ap_const_lv1_1 = ap_CS_fsm_state3)))) then DDS_OUTPUT1_BREADY <= grp_process_frame_fu_52_m_axi_sin_out_V_BREADY; else DDS_OUTPUT1_BREADY <= ap_const_logic_0; end if; end process; DDS_OUTPUT1_WVALID_assign_proc : process(grp_process_frame_fu_52_m_axi_sin_out_V_WVALID, ap_CS_fsm_state2, ap_CS_fsm_state3) begin if ((((ap_const_lv1_1 = ap_CS_fsm_state2)) or ((ap_const_lv1_1 = ap_CS_fsm_state3)))) then DDS_OUTPUT1_WVALID <= grp_process_frame_fu_52_m_axi_sin_out_V_WVALID; else DDS_OUTPUT1_WVALID <= ap_const_logic_0; end if; end process; DDS_OUTPUT_AWVALID_assign_proc : process(grp_process_frame_fu_52_m_axi_cos_out_V_AWVALID, ap_CS_fsm_state2, ap_CS_fsm_state3) begin if ((((ap_const_lv1_1 = ap_CS_fsm_state2)) or ((ap_const_lv1_1 = ap_CS_fsm_state3)))) then DDS_OUTPUT_AWVALID <= grp_process_frame_fu_52_m_axi_cos_out_V_AWVALID; else DDS_OUTPUT_AWVALID <= ap_const_logic_0; end if; end process; DDS_OUTPUT_BREADY_assign_proc : process(grp_process_frame_fu_52_m_axi_cos_out_V_BREADY, ap_CS_fsm_state2, ap_CS_fsm_state3) begin if ((((ap_const_lv1_1 = ap_CS_fsm_state2)) or ((ap_const_lv1_1 = ap_CS_fsm_state3)))) then DDS_OUTPUT_BREADY <= grp_process_frame_fu_52_m_axi_cos_out_V_BREADY; else DDS_OUTPUT_BREADY <= ap_const_logic_0; end if; end process; DDS_OUTPUT_WVALID_assign_proc : process(grp_process_frame_fu_52_m_axi_cos_out_V_WVALID, ap_CS_fsm_state2, ap_CS_fsm_state3) begin if ((((ap_const_lv1_1 = ap_CS_fsm_state2)) or ((ap_const_lv1_1 = ap_CS_fsm_state3)))) then DDS_OUTPUT_WVALID <= grp_process_frame_fu_52_m_axi_cos_out_V_WVALID; else DDS_OUTPUT_WVALID <= ap_const_logic_0; end if; end process; ap_CS_fsm_state1 <= ap_CS_fsm(0 downto 0); ap_CS_fsm_state2 <= ap_CS_fsm(1 downto 1); ap_CS_fsm_state3 <= ap_CS_fsm(2 downto 2); ap_done_assign_proc : process(grp_process_frame_fu_52_ap_done, ap_CS_fsm_state3) begin if (((ap_const_lv1_1 = ap_CS_fsm_state3) and not((ap_const_logic_0 = grp_process_frame_fu_52_ap_done)))) then ap_done <= ap_const_logic_1; else ap_done <= ap_const_logic_0; end if; end process; ap_idle_assign_proc : process(ap_start, ap_CS_fsm_state1) begin if (((ap_const_logic_0 = ap_start) and (ap_CS_fsm_state1 = ap_const_lv1_1))) then ap_idle <= ap_const_logic_1; else ap_idle <= ap_const_logic_0; end if; end process; ap_ready_assign_proc : process(grp_process_frame_fu_52_ap_done, ap_CS_fsm_state3) begin if (((ap_const_lv1_1 = ap_CS_fsm_state3) and not((ap_const_logic_0 = grp_process_frame_fu_52_ap_done)))) then ap_ready <= ap_const_logic_1; else ap_ready <= ap_const_logic_0; end if; end process; ap_rst_n_inv_assign_proc : process(ap_rst_n) begin ap_rst_n_inv <= not(ap_rst_n); end process; grp_process_frame_fu_52_ap_start <= ap_reg_grp_process_frame_fu_52_ap_start; end behav;
VHDL
4
JimMadge/aws-fpga
hdk/common/shell_v04261818/hlx/design/ip/dds_v1_0/hdl/vhdl/dds.vhd
[ "Apache-2.0" ]
--TEST-- addcslashes(); function test with warning --CREDITS-- marcosptf - <[email protected]> #phptestfest PHPSP on Google - Sao Paulo - Brazil - 2014-06-05 --FILE-- <?php echo addcslashes("zoo['.']","z..A"); ?> --EXPECTF-- Warning: addcslashes(): Invalid '..'-range, '..'-range needs to be incrementing in %s on line %d \zoo['\.']
PHP
3
thiagooak/php-src
ext/standard/tests/strings/addcslashes_005.phpt
[ "PHP-3.01" ]
void onConnect() override { try { PYBIND11_OVERLOAD(void, TdApi, onConnect); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspLogin(int error, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspLogin, error, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRtnContactInfo(int error, char last, string ContactInfo) override { try { PYBIND11_OVERLOAD(void, TdApi, onRtnContactInfo, error, last, ContactInfo); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspRequestVertificateCode(unsigned int session, int error, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspRequestVertificateCode, session, error, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onExpriationDate(string date, int days) override { try { PYBIND11_OVERLOAD(void, TdApi, onExpriationDate, date, days); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onAPIReady(int error) override { try { PYBIND11_OVERLOAD(void, TdApi, onAPIReady, error); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onDisconnect(int reasonCode) override { try { PYBIND11_OVERLOAD(void, TdApi, onDisconnect, reasonCode); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspChangePassword(unsigned int session, int error) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspChangePassword, session, error); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspAuthPassword(unsigned int session, int error) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspAuthPassword, session, error); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspQryTradingDate(unsigned int session, int error, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspQryTradingDate, session, error, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspSetReservedInfo(unsigned int session, int error, string info) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspSetReservedInfo, session, error, info); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspQryAccount(unsigned int session, unsigned int session, char last, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspQryAccount, session, session, last, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspQryFund(unsigned int session, int error, char last, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspQryFund, session, error, last, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRtnFund(const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRtnFund, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspQryExchange(unsigned int session, int error, char last, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspQryExchange, session, error, last, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspQryCommodity(unsigned int session, int error, char last, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspQryCommodity, session, error, last, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspQryContract(unsigned int session, int error, char last, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspQryContract, session, error, last, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRtnContract(const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRtnContract, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspOrderAction(unsigned int session, int error, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspOrderAction, session, error, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRtnOrder(const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRtnOrder, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspQryOrder(unsigned int session, int error, char last, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspQryOrder, session, error, last, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspQryOrderProcess(unsigned int session, int error, char last, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspQryOrderProcess, session, error, last, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspQryFill(unsigned int session, int error, char last, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspQryFill, session, error, last, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRtnFill(const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRtnFill, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspQryPosition(unsigned int session, int error, char last, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspQryPosition, session, error, last, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRtnPosition(const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRtnPosition, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspQryPositionSummary(unsigned int session, int error, char last, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspQryPositionSummary, session, error, last, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRtnPositionSummary(const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRtnPositionSummary, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRtnPositionProfit(const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRtnPositionProfit, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspQryCurrency(unsigned int session, int error, char last, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspQryCurrency, session, error, last, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspQryTradeMessage(unsigned int session, int error, char last, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspQryTradeMessage, session, error, last, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRtnTradeMessage(const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRtnTradeMessage, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspQryHisOrder(unsigned int session, int error, char last, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspQryHisOrder, session, error, last, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspQryHisOrderProcess(unsigned int session, int error, char last, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspQryHisOrderProcess, session, error, last, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspQryHisMatch(unsigned int session, int error, char last, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspQryHisMatch, session, error, last, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspQryHisPosition(unsigned int session, int error, char last, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspQryHisPosition, session, error, last, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspQryHisDelivery(unsigned int session, int error, char last, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspQryHisDelivery, session, error, last, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspQryAccountCashAdjust(unsigned int session, int error, char last, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspQryAccountCashAdjust, session, error, last, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspQryBill(unsigned int session, int error, char last, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspQryBill, session, error, last, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspQryAccountFeeRent(unsigned int session, int error, char last, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspQryAccountFeeRent, session, error, last, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspQryAccountMarginRent(unsigned int session, int error, char last, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspQryAccountMarginRent, session, error, last, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspHKMarketOrderInsert(unsigned int session, int error, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspHKMarketOrderInsert, session, error, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspHKMarketOrderDelete(unsigned int session, int error, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspHKMarketOrderDelete, session, error, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onHKMarketQuoteNotice(const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onHKMarketQuoteNotice, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspOrderLocalRemove(unsigned int session, int error, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspOrderLocalRemove, session, error, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspOrderLocalInput(unsigned int session, int error, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspOrderLocalInput, session, error, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspOrderLocalModify(unsigned int session, int error, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspOrderLocalModify, session, error, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspOrderLocalTransfer(unsigned int session, int error, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspOrderLocalTransfer, session, error, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspFillLocalInput(unsigned int session, int error, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspFillLocalInput, session, error, data); } catch (const error_already_set &e) { cout << e.what() << endl; } }; void onRspFillLocalRemove(unsigned int session, int error, const dict &data) override { try { PYBIND11_OVERLOAD(void, TdApi, onRspFillLocalRemove, session, error, data); } catch (const error_already_set &e) { cout << e.what() << endl; } };
C++
3
funrunskypalace/vnpy
vnpy/api/tap/generator/tap_td_source_on.cpp
[ "MIT" ]
Require Import Utf8. Section FOLD. Context {A: Type} (f: A → A) (a: A). Fixpoint fold (n: nat) : A := match n with | O => a | S n' => f (fold n') end. End FOLD. Definition ackermann : nat → nat → nat := fold (λ g, fold g (g (S O))) S.
Coq
4
LaudateCorpus1/RosettaCodeData
Task/Ackermann-function/Coq/ackermann-function-2.coq
[ "Info-ZIP" ]
insert into item (item_id, item_name, item_desc, item_price) values(1,'item One', 'test 1', 35.12); insert into item (item_id, item_name, item_desc, item_price) values(2,'Pogo stick', 'Pogo stick', 466.12); insert into item (item_id, item_name, item_desc, item_price) values(3,'Raft', 'Raft', 345.12); insert into item (item_id, item_name, item_desc, item_price) values(4,'Skate Board', 'Skating', 135.71); insert into item (item_id, item_name, item_desc, item_price) values(5,'Umbrella', 'Umbrella for Rain', 619.25); insert into item (item_id, item_name, item_desc, item_price) values(6,'Glue', 'Glue for home', 432.73); insert into item (item_id, item_name, item_desc, item_price) values(7,'Paint', 'Paint for Room', 1311.40); insert into item (item_id, item_name, item_desc, item_price) values(8,'Red paint', 'Red paint for room', 1135.71); insert into item (item_id, item_name, item_desc, item_price) values(9,'Household Chairs', 'Chairs for house', 25.71); insert into item (item_id, item_name, item_desc, item_price) values(10,'Office Chairs', 'Chairs for office', 395.98); insert into item (item_id, item_name, item_desc, item_price) values(11,'Outdoor Chairs', 'Chairs for outdoor activities', 1234.36);
SQL
3
flyingcanopy/tutorials
persistence-modules/spring-hibernate-5/src/test/resources/import.sql
[ "MIT" ]
<!DOCTYPE html> <!-- -*- mode: web-mode; engine: ctemplate -*- --> <html> <head> {{> plan-a/head }} <link rel="stylesheet" type="text/css" href="stylesheets/download.css"> <meta name="description" content="Haskell Platform is a Haskell distribution with batteries included"> <script src="js/download.js"></script> <script>var preferredOS = "osx";</script> <title>Download Haskell Platform For OS X</title> </head> <body class="page-home"> <div class="wrap"> <div class="template"> {{> plan-a/navbar }} {{> plan-a/download-banner.html }} <!-- do not include the "download options" section --> {{> plan-a/download-os-sections.html }} </div> </div> <!-- a bit of whitespace before the footer --> <div style="height: 100px;"></div> {{> plan-a/footer }} </body> </html>
mupad
3
TikhonJelvis/haskell-platform
website/plan-a/mac.html.mu
[ "BSD-3-Clause" ]
# # Aliases # alias glfsi='git lfs install' alias glfst='git lfs track' alias glfsls='git lfs ls-files' alias glfsmi='git lfs migrate import --include=' # # Functions # function gplfs() { local b="$(git_current_branch)" git lfs push origin "$b" --all }
Shell
4
chensanle/ohmyzsh
plugins/git-lfs/git-lfs.plugin.zsh
[ "MIT" ]
// // This file is part of the Simutrans project under the Artistic License. // (see LICENSE.txt) // // // Tests for wayobj // function test_wayobj_build_straight() { local pl = player_x(0) local remover = command_x(tool_remove_wayobj) local rail = way_desc_x.get_available_ways(wt_rail, st_flat)[0] local overhead_line = wayobj_desc_x.get_available_wayobjs(wt_rail).filter(@(idx, wobj) wobj.is_overhead_line())[0] ASSERT_TRUE(overhead_line != null) { ASSERT_EQUAL(command_x.build_wayobj(pl, coord3d(2, 1, 0), coord3d(2, 1, 0), overhead_line), "") ASSERT_EQUAL(tile_x(2, 1, 0).find_object(mo_wayobj), null) ASSERT_EQUAL(command_x.build_wayobj(pl, coord3d(3, 1, 0), coord3d(2, 1, 0), overhead_line), "") ASSERT_EQUAL(tile_x(3, 1, 0).find_object(mo_wayobj), null) ASSERT_EQUAL(tile_x(2, 1, 0).find_object(mo_wayobj), null) } ASSERT_EQUAL(command_x.build_way(pl, coord3d(2, 1, 0), coord3d(5, 1, 0), rail, true), null) // now build wayobj { ASSERT_EQUAL(command_x.build_wayobj(pl, coord3d(2, 1, 0), coord3d(2, 1, 0), overhead_line), null) local wo = tile_x(2, 1, 0).find_object(mo_wayobj) ASSERT_TRUE(wo != null) ASSERT_TRUE(wo.is_valid()) } { ASSERT_EQUAL(command_x.build_wayobj(pl, coord3d(3, 1, 0), coord3d(4, 1, 0), overhead_line), null) local wo = tile_x(3, 1, 0).find_object(mo_wayobj) ASSERT_TRUE(wo != null) ASSERT_TRUE(wo.is_valid()) wo = tile_x(4, 1, 0).find_object(mo_wayobj) ASSERT_TRUE(wo != null) ASSERT_TRUE(wo.is_valid()) // todo: check for wayobj ribis ? } { ASSERT_EQUAL(command_x.build_wayobj(pl, coord3d(2, 1, 0), coord3d(4, 1, 0), overhead_line), null) local wo = tile_x(3, 1, 0).find_object(mo_wayobj) ASSERT_TRUE(wo != null) ASSERT_TRUE(wo.is_valid()) } // remove wayobj { ASSERT_EQUAL(remover.work(pl, coord3d(2, 1, 0), coord3d(2, 2, 0), "" + wt_rail), "") ASSERT_EQUAL(remover.work(pl, coord3d(2, 1, 0), coord3d(3, 1, 0), "" + wt_rail), null) ASSERT_EQUAL(remover.work(pl, coord3d(2, 1, 0), coord3d(3, 1, 0), "" + wt_rail), null) // returns success even if nothing was removed ASSERT_EQUAL(remover.work(pl, coord3d(4, 1, 0), coord3d(4, 1, 0), "" + wt_rail), null) ASSERT_EQUAL(remover.work(pl, coord3d(4, 1, 0), coord3d(4, 1, 0), "" + wt_rail), null) } // clean up ASSERT_EQUAL(command_x(tool_remove_way).work(pl, coord3d(2, 1, 0), coord3d(5, 1, 0), "" + wt_rail), null) RESET_ALL_PLAYER_FUNDS() } function test_wayobj_build_disconnected() { local pl = player_x(0) local remover = command_x(tool_remove_wayobj) local rail = way_desc_x.get_available_ways(wt_rail, st_flat)[0] local overhead_line = wayobj_desc_x.get_available_wayobjs(wt_rail).filter(@(idx, wobj) wobj.is_overhead_line())[0] ASSERT_TRUE(overhead_line != null) ASSERT_EQUAL(command_x.build_way(pl, coord3d(2, 1, 0), coord3d(5, 1, 0), rail, true), null) ASSERT_EQUAL(command_x.build_way(pl, coord3d(2, 5, 0), coord3d(5, 5, 0), rail, true), null) // build disconnected { ASSERT_EQUAL(command_x.build_wayobj(pl, coord3d(3, 5, 0), coord3d(3, 1, 0), overhead_line), "Ways not connected") ASSERT_EQUAL(tile_x(3, 5, 0).find_object(mo_wayobj), null) ASSERT_EQUAL(tile_x(3, 1, 0).find_object(mo_wayobj), null) } // remove disconnected wayobj { ASSERT_EQUAL(command_x.build_wayobj(pl, coord3d(2, 1, 0), coord3d(5, 1, 0), overhead_line), null) ASSERT_EQUAL(command_x.build_wayobj(pl, coord3d(2, 5, 0), coord3d(5, 5, 0), overhead_line), null) ASSERT_EQUAL(remover.work(pl, coord3d(3, 1, 0), coord3d(3, 5, 0), "" + wt_rail), "Ways not connected") ASSERT_TRUE(tile_x(3, 1, 0).find_object(mo_wayobj) != null) ASSERT_TRUE(tile_x(3, 5, 0).find_object(mo_wayobj) != null) } ASSERT_EQUAL(command_x.build_way(pl, coord3d(2, 1, 0), coord3d(2, 5, 0), rail, true), null) ASSERT_EQUAL(command_x.build_way(pl, coord3d(5, 1, 0), coord3d(5, 5, 0), rail, true), null) { ASSERT_EQUAL(remover.work(pl, coord3d(3, 1, 0), coord3d(3, 5, 0), "" + wt_rail), null) ASSERT_TRUE(tile_x(3, 1, 0).find_object(mo_wayobj) == null) ASSERT_TRUE(tile_x(3, 5, 0).find_object(mo_wayobj) == null) ASSERT_TRUE(tile_x(4, 1, 0).find_object(mo_wayobj) != null) ASSERT_TRUE(tile_x(4, 5, 0).find_object(mo_wayobj) != null) } // clean up ASSERT_EQUAL(remover.work(pl, coord3d(4, 1, 0), coord3d(4, 5, 0), "" + wt_rail), null) ASSERT_EQUAL(command_x(tool_remove_way).work(pl, coord3d(2, 1, 0), coord3d(5, 5, 0), "" + wt_rail), null) ASSERT_EQUAL(command_x(tool_remove_way).work(pl, coord3d(2, 1, 0), coord3d(5, 5, 0), "" + wt_rail), null) RESET_ALL_PLAYER_FUNDS() } function test_wayobj_upgrade_downgrade() { local pl = player_x(0) local wobj_remover = command_x(tool_remove_wayobj) local rail = way_desc_x.get_available_ways(wt_rail, st_flat)[0] local catenaries = wayobj_desc_x.get_available_wayobjs(wt_rail).filter(@(idx, wobj) wobj.is_overhead_line()) catenaries.sort(@(a, b) a.get_topspeed() <=> b.get_topspeed()) // FIXME need at least 2 catenaries ASSERT_TRUE(catenaries.len() >= 2) local slow_cat = catenaries[0] local fast_cat = catenaries[1] ASSERT_EQUAL(command_x.build_way(pl, coord3d(3, 4, 0), coord3d(5, 4, 0), rail, true), null) // upgrade wayobj { ASSERT_EQUAL(command_x.build_wayobj(pl, coord3d(3, 4, 0), coord3d(5, 4, 0), slow_cat), null) ASSERT_EQUAL(command_x.build_wayobj(pl, coord3d(3, 4, 0), coord3d(5, 4, 0), fast_cat), null) ASSERT_TRUE(tile_x(3, 4, 0).find_object(mo_wayobj) != null) ASSERT_TRUE(tile_x(4, 4, 0).find_object(mo_wayobj) != null) ASSERT_TRUE(tile_x(5, 4, 0).find_object(mo_wayobj) != null) ASSERT_TRUE(tile_x(3, 4, 0).find_object(mo_wayobj).get_desc().is_equal(fast_cat)) ASSERT_TRUE(tile_x(4, 4, 0).find_object(mo_wayobj).get_desc().is_equal(fast_cat)) ASSERT_TRUE(tile_x(5, 4, 0).find_object(mo_wayobj).get_desc().is_equal(fast_cat)) ASSERT_EQUAL(wobj_remover.work(pl, coord3d(3, 4, 0), coord3d(5, 4, 0), "" + wt_rail), null) } // upgrade wayobj to same type, should incur no cost { ASSERT_EQUAL(command_x.build_wayobj(pl, coord3d(3, 4, 0), coord3d(5, 4, 0), slow_cat), null) local old_cash = pl.get_current_cash() local old_maint = pl.get_current_maintenance() ASSERT_EQUAL(command_x.build_wayobj(pl, coord3d(3, 4, 0), coord3d(5, 4, 0), slow_cat), null) ASSERT_EQUAL(pl.get_current_cash(), old_cash) ASSERT_EQUAL(pl.get_current_maintenance(), old_maint) ASSERT_TRUE(tile_x(3, 4, 0).find_object(mo_wayobj) != null) ASSERT_TRUE(tile_x(4, 4, 0).find_object(mo_wayobj) != null) ASSERT_TRUE(tile_x(5, 4, 0).find_object(mo_wayobj) != null) ASSERT_TRUE(tile_x(3, 4, 0).find_object(mo_wayobj).get_desc().is_equal(slow_cat)) ASSERT_TRUE(tile_x(4, 4, 0).find_object(mo_wayobj).get_desc().is_equal(slow_cat)) ASSERT_TRUE(tile_x(5, 4, 0).find_object(mo_wayobj).get_desc().is_equal(slow_cat)) ASSERT_EQUAL(wobj_remover.work(pl, coord3d(3, 4, 0), coord3d(5, 4, 0), "" + wt_rail), null) } // upgrade wayobj to faster type { ASSERT_EQUAL(command_x.build_wayobj(pl, coord3d(3, 4, 0), coord3d(5, 4, 0), slow_cat), null) local old_cash = pl.get_current_cash() local old_maint = pl.get_current_maintenance() ASSERT_EQUAL(command_x.build_wayobj(pl, coord3d(3, 4, 0), coord3d(5, 4, 0), fast_cat), null) ASSERT_TRUE(pl.get_current_cash() < old_cash) ASSERT_TRUE(pl.get_current_maintenance() > old_maint) ASSERT_TRUE(tile_x(3, 4, 0).find_object(mo_wayobj) != null) ASSERT_TRUE(tile_x(4, 4, 0).find_object(mo_wayobj) != null) ASSERT_TRUE(tile_x(5, 4, 0).find_object(mo_wayobj) != null) ASSERT_TRUE(tile_x(3, 4, 0).find_object(mo_wayobj).get_desc().is_equal(fast_cat)) ASSERT_TRUE(tile_x(4, 4, 0).find_object(mo_wayobj).get_desc().is_equal(fast_cat)) ASSERT_TRUE(tile_x(5, 4, 0).find_object(mo_wayobj).get_desc().is_equal(fast_cat)) ASSERT_EQUAL(wobj_remover.work(pl, coord3d(3, 4, 0), coord3d(5, 4, 0), "" + wt_rail), null) } // downgrade wayobj without ctrl, should fail { ASSERT_EQUAL(command_x.build_wayobj(pl, coord3d(3, 4, 0), coord3d(5, 4, 0), fast_cat), null) local old_cash = pl.get_current_cash() local old_maint = pl.get_current_maintenance() ASSERT_EQUAL(command_x.build_wayobj(pl, coord3d(3, 4, 0), coord3d(5, 4, 0), slow_cat), null) ASSERT_EQUAL(pl.get_current_cash(), old_cash) ASSERT_EQUAL(pl.get_current_maintenance(), old_maint) ASSERT_TRUE(tile_x(3, 4, 0).find_object(mo_wayobj) != null) ASSERT_TRUE(tile_x(4, 4, 0).find_object(mo_wayobj) != null) ASSERT_TRUE(tile_x(5, 4, 0).find_object(mo_wayobj) != null) ASSERT_TRUE(tile_x(3, 4, 0).find_object(mo_wayobj).get_desc().is_equal(fast_cat)) ASSERT_TRUE(tile_x(4, 4, 0).find_object(mo_wayobj).get_desc().is_equal(fast_cat)) ASSERT_TRUE(tile_x(5, 4, 0).find_object(mo_wayobj).get_desc().is_equal(fast_cat)) ASSERT_EQUAL(wobj_remover.work(pl, coord3d(3, 4, 0), coord3d(5, 4, 0), "" + wt_rail), null) } // downgrade wayobj with ctrl, should succeed { local builder = command_x(tool_build_wayobj) builder.set_flags(2) // enable ctrl ASSERT_EQUAL(builder.work(pl, coord3d(3, 4, 0), coord3d(5, 4, 0), fast_cat.get_name()), null) ASSERT_EQUAL(builder.work(pl, coord3d(3, 4, 0), coord3d(5, 4, 0), slow_cat.get_name()), null) ASSERT_TRUE(tile_x(3, 4, 0).find_object(mo_wayobj) != null) ASSERT_TRUE(tile_x(4, 4, 0).find_object(mo_wayobj) != null) ASSERT_TRUE(tile_x(5, 4, 0).find_object(mo_wayobj) != null) ASSERT_TRUE(tile_x(3, 4, 0).find_object(mo_wayobj).get_desc().is_equal(fast_cat)) ASSERT_TRUE(tile_x(4, 4, 0).find_object(mo_wayobj).get_desc().is_equal(fast_cat)) ASSERT_TRUE(tile_x(5, 4, 0).find_object(mo_wayobj).get_desc().is_equal(fast_cat)) ASSERT_EQUAL(wobj_remover.work(pl, coord3d(3, 4, 0), coord3d(5, 4, 0), "" + wt_rail), null) } // clean up ASSERT_EQUAL(command_x(tool_remove_way).work(pl, coord3d(3, 4, 0), coord3d(5, 4, 0), "" + wt_rail), null) RESET_ALL_PLAYER_FUNDS() } function test_wayobj_electrify_depot() { local pl = player_x(0) local start_pos = coord3d(3, 4, 0) local end_pos = coord3d(5, 4, 0) local wayremover = command_x(tool_remove_way) local wobj_remover = command_x(tool_remove_wayobj) local rail = way_desc_x.get_available_ways(wt_rail, st_flat)[0] local catenaries = wayobj_desc_x.get_available_wayobjs(wt_rail).filter(@(idx, wobj) wobj.is_overhead_line()) catenaries.sort(@(a, b) a.get_topspeed() <=> b.get_topspeed()) local slow_cat = catenaries[0] local fast_cat = catenaries[1] local depot = get_depot_by_wt(wt_rail) ASSERT_TRUE(slow_cat != null) ASSERT_TRUE(fast_cat != null) ASSERT_TRUE(depot != null) ASSERT_EQUAL(command_x.build_way(pl, start_pos, end_pos, rail, true), null) ASSERT_EQUAL(command_x.build_depot(pl, start_pos, depot), null) ASSERT_EQUAL(command_x.build_depot(pl, end_pos, depot), null) { ASSERT_EQUAL(command_x.build_wayobj(pl, start_pos, end_pos, slow_cat), null) ASSERT_TRUE(way_x(start_pos.x, start_pos.y, start_pos.z).is_electrified()) ASSERT_TRUE(way_x(end_pos.x, end_pos.y, end_pos.z).is_electrified()) // TODO check that depot is really electrified } // clean up ASSERT_EQUAL(command_x(tool_remover).work(pl, start_pos, "" + mo_depot_rail), null) ASSERT_EQUAL(command_x(tool_remover).work(pl, end_pos, "" + mo_depot_rail), null) ASSERT_EQUAL(wayremover.work(pl, start_pos, end_pos, "" + wt_rail), null) // also removes way with wayobj RESET_ALL_PLAYER_FUNDS() }
Squirrel
5
Andarix/simutrans_nightly
tests/tests/test_wayobj.nut
[ "Artistic-1.0" ]
# Copyright (c) 2021 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License. Feature: Nebula service termination test # All nebula services shold exit as expected after termination Scenario: Basic termination test Given a nebulacluster with 1 graphd and 1 metad and 1 storaged When the cluster was terminated Then no service should still running after 4s
Cucumber
2
liuqian1990/nebula
tests/tck/cluster/terminate.feature
[ "Apache-2.0" ]
import React from "react" import { graphql, Link } from "gatsby" import Img from "gatsby-image" import Layout from "../components/layout_1" const Article = ({ data }) => { return ( <Layout> <Link to="/">Go back to index page</Link> <div> <h2>{data.article.title}</h2> {data.article.metadata.image.local.childImageSharp ? ( <Img fluid={data.article.metadata.image.local.childImageSharp.fluid} /> ) : ( <div>Image can't be displayed</div> )} <div dangerouslySetInnerHTML={{ __html: data.article.content }} /> </div> </Layout> ) } export default Article export const query = graphql` query($slug: String!){ article: cosmicjsPosts(slug: {eq: $slug }) { title content metadata{ image { local { childImageSharp { fluid(quality: 90, maxWidth: 960) { ...GatsbyImageSharpFluid_withWebp_tracedSVG } } } } } } } `
JavaScript
4
Pabelnedved/ghostlocoko
benchmarks/source-cosmicjs/src/templates/article.js
[ "MIT" ]
{# Copyright (C) 2017 Fabian Franz All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #} <script> function tor_update_status() { ajaxCall(url='/api/tor/service/status', sendData={}, callback=function(data, status) { updateServiceStatusUI(data['status']); }); } $( document ).ready(function() { tor_update_status(); ajaxCall(url='/api/tor/service/circuits', sendData={}, callback=function(data, status) { data = data['response']; var tmp = ''; for (var name in data) { if (data.hasOwnProperty(name)) { tmp += '<tr><td>' + name + '</td><td>' + data[name]['status'] + '</td><td><ul>'; hosts = data[name]['hosts']; for (var host_id in hosts) { if (hosts.hasOwnProperty(host_id)) { tmp += '<li>' + hosts[host_id]['host'] + ' - ' + hosts[host_id]['nickname'] + '</li>'; } } tmp += '</ul></td><td><ul>' flags = data[name]['flags']; for (var flag_id in flags) { if (flags.hasOwnProperty(flag_id)) { tmp += '<li>' + flag_id + ': ' + flags[flag_id].join(', ') + '</li>'; } } tmp += '</ul></td></tr>'; } } $("#circuitstbdy").html(tmp); }); ajaxCall(url="/api/tor/service/streams", sendData={}, callback=function(data, status) { data = data['response']; var tmp = ''; for (var name in data) { if (data.hasOwnProperty(name)) { tmp += '<tr><td>' + data[name]['stream_id'] + '</td><td>' + data[name]['stream_status'] + '</td><td>' + data[name]['circuit_id'] + '</td><td>' + data[name]['destination_host'] + '</td><td>' + data[name]['destination_port'] + '</td></tr>'; } } $("#streamstbdy").html(tmp); }); }); </script> <ul class="nav nav-tabs" data-tabs="tabs" id="maintabs"> <li class="active"><a data-toggle="tab" href="#streams">{{ lang._('Streams') }}</a></li> <li><a data-toggle="tab" href="#circuits">{{ lang._('Circuits') }}</a></li> </ul> <div class="tab-content content-box tab-content" style="padding-bottom: 1.5em;"> <div id="streams" class="tab-pane fade in active"> <table class="table table-striped"> <thead> <tr> <th>{{ lang._('Stream ID') }}</th> <th>{{ lang._('Stream Status') }}</th> <th>{{ lang._('Circuit ID') }}</th> <th>{{ lang._('Destination Host') }}</th> <th>{{ lang._('Destination Port') }}</th> </tr> </thead> <tbody id="streamstbdy"></tbody> </table> </div> <div id="circuits" class="tab-pane fade in"> <table class="table table-striped"> <thead> <tr> <th>{{ lang._('Circuit ID') }}</th> <th>{{ lang._('Status') }}</th> <th>{{ lang._('Hosts') }}</th> <th>{{ lang._('Flags') }}</th> </tr> </thead> <tbody id="circuitstbdy"></tbody> </table> </div> </div>
Volt
4
marcquark/plugins
security/tor/src/opnsense/mvc/app/views/OPNsense/Tor/diagnostics.volt
[ "BSD-2-Clause" ]
// compile-flags: -C no-prepopulate-passes #![crate_type = "lib"] pub enum E { A, B, } // CHECK-LABEL: @exhaustive_match #[no_mangle] pub fn exhaustive_match(e: E) -> u8 { // CHECK: switch{{.*}}, label %[[OTHERWISE:[a-zA-Z0-9_]+]] [ // CHECK-NEXT: i[[TY:[0-9]+]] [[DISCR:[0-9]+]], label %[[A:[a-zA-Z0-9_]+]] // CHECK-NEXT: i[[TY:[0-9]+]] [[DISCR:[0-9]+]], label %[[B:[a-zA-Z0-9_]+]] // CHECK-NEXT: ] // CHECK: [[OTHERWISE]]: // CHECK-NEXT: unreachable // CHECK: [[A]]: // CHECK-NEXT: store i8 0, i8* %1, align 1 // CHECK-NEXT: br label %[[EXIT:[a-zA-Z0-9_]+]] // CHECK: [[B]]: // CHECK-NEXT: store i8 1, i8* %1, align 1 // CHECK-NEXT: br label %[[EXIT:[a-zA-Z0-9_]+]] match e { E::A => 0, E::B => 1, } }
Rust
4
mbc-git/rust
src/test/codegen/match.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
Prefix(:=<http://example.org/>) Ontology(:TestEquivalentClass EquivalentClasses(:x :y :z) )
Web Ontology Language
3
jmcmurry/SciGraph
SciGraph-core/src/test/resources/ontologies/cases/TestEquivalentClasses.owl
[ "Apache-2.0" ]
--- prev: java.textile next: searchbird.textile title: An introduction to Finagle layout: post --- "Finagle":https://github.com/twitter/finagle 是 Twitter 研发的RPC系统。 "这篇博客":https://blog.twitter.com/2011/finagle-a-protocol-agnostic-rpc-system 解释了其动机和核心设计原则, "finagle README":https://github.com/twitter/finagle/blob/master/README.md 包含更详细的文档。Finagle的目标是方便地建立强大的客户端和服务器。 * "REPL":#repl * "Futures":#Future: "顺序组合":#futsequential, "并发组合":#futconcurrent, "组合例子:缓存速率限制":#combined_combinator_example_cache, "组合例子:网络爬虫":#combined_combinator_example_thumbnail * "服务":#Service * "客户端":#client * "服务端":#server * "过滤器":#Filter * "生成器(Builder)":#Builder * "不要阻塞":#DontBlock (除非你用正确的方式 h2(#repl). Finagle-Friendly REPL 我们将要讨论的不是标准Scala的代码。如果你喜欢使用REPL学习,你可能想知道如何获得一个加入Finagle 及其依赖的 Scala REPL。 你可以在<a href="https://github.com/twitter/finagle/">这里</a>获取Finagle源代码。 如果你在 <code>finagle</code>目录下有Finagle的源代码,你可以通过下面的命令得到一个控制台 <pre> $ cd finagle $ git checkout master $ ./sbt "project finagle-http" console ...build output... scala> </pre> h2(#Future). Futures Finagle使用 <code>com.twitter.util.Future</code>[1] 编码延迟操作。Future是尚未生成的值的一个句柄。Finagle使用Future作为其异步API的返回值。同步API会在返回前等待结果;但是异步API则不会等待。例如,个对互联网上一些服务的HTTP请求可能半秒都不会返回。你不希望你的程序阻塞等待半秒。 “慢”的API可以立即返回一个<code>Future</code>,然后在需要解析其值时“填充”。 <pre> val myFuture = MySlowService(request) // returns right away ...do other things... val serviceResult = Await.result(myFuture) // blocks until service "fills in" myFuture </pre> 在实践中,你不会发送一个请求,然后在几行代码后调用<code>myFuture.get</code>。Future提供了注册回调的方法,在值变得可用时会调用注册的回调函数。 如果你用过其他异步API,当看到“回调”你也许会畏缩。你可能会联想到他们难以辨认的代码流,被调用的函数藏在离调用处远远的地方。但是,Future可以利用Scala中“函数是一等公民”的特性编写出更可读的代码流。你可以在调用它的地方简单地定义一个处理函数。 例如,写代码调度请求,然后“处理”回应,你可以保持代码在一起: <pre> val future = dispatch(req) // returns immediately, but future is "empty" future onSuccess { reply => // when the future gets "filled", use its value println(reply) } </pre> 你可以在REPL中用体验一下Future。虽然不是学习如何在实际代码中使用他们的好方法,但可以帮助理解API。当你使用REPL,Promise是一个方便的类。它是Future抽象类的一个具体子类。你可以用它来创建一个还没有值的Future。 <pre> scala> import com.twitter.util.{Await, Future,Promise} import com.twitter.util.{Await, Future, Promise} scala> val f6 = Future.value(6) // create already-resolved future f6: com.twitter.util.Future[Int] = com.twitter.util.ConstFuture@c63a8af scala> Await.result(f6) res0: Int = 6 scala> val fex = Future.exception(new Exception) // create resolved sad future fex: com.twitter.util.Future[Nothing] = com.twitter.util.ConstFuture@38ddab20 scala> Await.result(fex) java.lang.Exception ... stack trace ... scala> val pr7 = new Promise[Int] // create unresolved future pr7: com.twitter.util.Promise[Int] = Promise@1994943491(...) scala> Await.result(pr7) ...console hangs, waiting for future to resolve... Ctrl-C Execution interrupted by signal. scala> pr7.setValue(7) scala> Await.result(pr7) res1: Int = 7 scala> </pre> 在实际代码中使用Future时,你通常不会调用<code>get</code> ,而是使用回调函数。 <code>get</code>仅仅是方便在REPL修修补补。 <a name="futsequential">&nbsp;</a> h3. 顺序组合(Sequential composition) Future有类似<a href="collections.html#combinators">集合API中的组合子</a>(如 map, flatMap) 。回顾一下集合组合子,它让你可以表达如 “我有一个整数List和一个<tt>square</tt>函数:map那个列表获得整数平方的列表”这样的操作。这种表达方式很灵巧;你可以把组合子函数和另一个函数放在一起有效地组成一个新函数。面向Future的组合子可以让你这样表达:“我有一个期望整数的Future和一个<tt>square</tt>函数:map那个Future获得一个期望整数平方的Future”。 如果你在定义一个异步API,传入一个请求值,你的API应该返回一个包装在Future中的响应。因此,这些把输入和函数加入Future的组合子是相当有用的:它们帮助你根据其它异步API定义你自己的异步API。 最重要的<code>Future</code>的组合子是<code>flatMap</code>[2]: <blockquote> <code>def Future[A].flatMap[B](f: A => Future[B]): Future[B]</code> </blockquote> <code>flatMap</code> 序列化两个Future。即,它接受一个Future和一个异步函数,并返回另一个Future。方法签名中是这样写的:给定一个Future成功的值,函数<code>f</code>提供下一个<code>Future</code>。如果/当输入的<code>Future</code> 成功完成,<code>flatMap</code>自动调用<code>f</code>。只有当这两个Future都已完成,此操作所代表的<code>Future</code>才算完成。如果任何一个<code>Future</code>失败,则操作确定的 <code>Future</code>也将失败。这种隐交织的错误让我们只需要在必要时来处理错误,所以语法意义很大。<code>flatMap</code>是这些语义组合子的标准名称。 如果你有一个Future并且想在异步API使用其值,使用<tt>flatMap</tt>。例如,假设你有一个Future[User],需要一个Future[Boolean]表示用户是否已被禁止。有一个<code>isBanned</code> 的异步API来判断一个用户是否已被禁止。此时可以使用flatMap : <pre> scala> import com.twitter.util.{Await, Future,Promise} import com.twitter.util.{Await, Future, Promise} scala> class User(n: String) { val name = n } defined class User scala> def isBanned(u: User) = { Future.value(false) } isBanned: (u: User)com.twitter.util.Future[Boolean] scala> val pru = new Promise[User] pru: com.twitter.util.Promise[User] = Promise@897588993(...) scala> val futBan = pru flatMap isBanned // apply isBanned to future futBan: com.twitter.util.Future[Boolean] = Promise@1733189548(...) scala> Await.result(futBan) ...REPL hangs, futBan not resolved yet... Ctrl-C Execution interrupted by signal. scala> pru.setValue(new User("prudence")) scala> Await.result(futBan) res45: Boolean = false scala> </pre> 同样,如果要在Future中应用一个<em>同步</em>函数,可以使用<tt>map</tt>。例如,假设你有一个Future[RawCredentials]需要一个Future[Credentials]。你有一个的同步的<code>normalize</code>函数将RawCredentials转换成Credentials。可以使用<code>map</code>: <pre> scala> class RawCredentials(u: String, pw: String) { | val username = u | val password = pw | } defined class RawCredentials scala> class Credentials(u: String, pw: String) { | val username = u | val password = pw | } defined class Credentials scala> def normalize(raw: RawCredentials) = { | new Credentials(raw.username.toLowerCase(), raw.password) | } normalize: (raw: RawCredentials)Credentials scala> val praw = new Promise[RawCredentials] praw: com.twitter.util.Promise[RawCredentials] = Promise@1341283926(...) scala> val fcred = praw map normalize // apply normalize to future fcred: com.twitter.util.Future[Credentials] = Promise@1309582018(...) scala> Await.result(fcred) ...REPL hangs, fcred doesn't have a value yet... Ctrl-C Execution interrupted by signal. scala> praw.setValue(new RawCredentials("Florence", "nightingale")) scala> Await.result(fcred).username res48: String = florence scala> </pre> Scala有快捷语法来调用flatMap:<code>for</code>表达式。假设你想通过异步API验证登录请求,然后通过另一个异步API检查用户是否被禁止。在for表达式的帮助下,我们可以这样写: <pre> scala> def authenticate(req: LoginRequest) = { | // TODO: we should check the password | Future.value(new User(req.username)) | } authenticate: (req: LoginRequest)com.twitter.util.Future[User] scala> val f = for { | u <- authenticate(request) | b <- isBanned(u) | } yield (u, b) f: com.twitter.util.Future[(User, Boolean)] = Promise@35785606(...) scala> </pre> 它产生一个<code>f: Future[(User, Boolean)]</code>,包含用户对象和一个表示该用户是否已被禁止的布尔值。注意这里是怎样实现顺序组合的:<code>isBanned</code>使用了<code>authenticate</code>的输出作为其输入。 <a name="futconcurrent">&nbsp;</a> h3. 并发组合 你可能想一次获取来自多个服务的数据。例如,如果你正在编写一个Web服务来显示内容和广告,它可能会从两个服务中分别获取内容和广告。但是,你怎么告诉代码来等待两份答复呢?如果必须自己实现可能会非常棘手,幸运的是你可以使用并发组合子。 <code>Future</code> 提供了一些并发组合子。一般来说,他们都是将<code>Future</code>的一个序列转换成包含一个序列的<code>Future</code>,只是方式略微不同。这是很好的,因为它(本质上)可以让你把几个Future封装成一个单一的Future。 <a name="futconcurrent"></a> <pre> object Future { … def collect[A](fs: Seq[Future[A]]): Future[Seq[A]] def join(fs: Seq[Future[_]]): Future[Unit] def select(fs: Seq[Future[A]]) : Future[(Try[A], Seq[Future[A]])] } </pre> <code>collect</code>参数是具有相同类型<code>Future</code>的一个集合,返回一个<code>Future</code>,其类型是包含那个类型值的一个序列。当所有的Future都成功完成或者当中任何一个失败,都会使这个Future完成。返回序列的顺序和传入序列的顺序相对应。 <pre> scala> val f2 = Future.value(2) f2: com.twitter.util.Future[Int] = com.twitter.util.ConstFuture@13ecdec0 scala> val f3 = Future.value(3) f3: com.twitter.util.Future[Int] = com.twitter.util.ConstFuture@263bb672 scala> val f23 = Future.collect(Seq(f2, f3)) f23: com.twitter.util.Future[Seq[Int]] = Promise@635209178(...) scala> val f5 = f23 map (_.sum) f5: com.twitter.util.Future[Int] = Promise@1954478838(...) scala> Await.result(f5) res9: Int = 5 </pre> <code>join</code>参数是混合类型的<code>Future</code>序列,返回一个Future[Unit],当所有的相关Future完成时(无论他们是否失败)该Future完成。其作用是标识一组异构操作完成。对那个内容和广告的例子来说,这可能是一个很好的解决方案。 <pre> scala> val ready = Future.join(Seq(f2, f3)) ready: com.twitter.util.Future[Unit] = Promise@699347471(...) scala> Await.result(ready) // doesn't ret value, but I know my futures are done scala> </pre> 当传入的<code>Future</code>序列的第一个<code>Future</code>完成的时候,<code>select</code>会返回一个<code>Future</code>。它会将那个完成的<code>Future</code>和其它未完成的Future一起放在Seq中返回。 (它不会做任何事情来取消剩余的Future。你可以等待更多的回应,或者忽略他们) <pre> scala> val pr7 = new Promise[Int] // unresolved future pr7: com.twitter.util.Promise[Int] = Promise@1608532943(...) scala> val sel = Future.select(Seq(f2, pr7)) // select from 2 futs, one resolved sel: com.twitter.util.Future[...] = Promise@1003382737(...) scala> val(complete, stragglers) = Await.result(sel) complete: com.twitter.util.Try[Int] = Return(2) stragglers: Seq[...] = List(...) scala> Await.result(complete) res110: Int = 2 scala> Await.result(stragglers(0)) // our list of not-yet-finished futures has one item ...Await.result() hangs the REPL because this straggling future is not finished... Ctrl-C Execution interrupted by signal. scala> pr7.setValue(7) scala> Await.result(stragglers(0)) res113: Int = 7 scala> </pre> <a name="combined_combinator_example_cache">&nbsp;</a> h3. 组合例子:缓存速率限制 这些组合子表达了典型的网络服务操作。这段假设的代码在对速率进行限制(为了保持本地速率限制缓存)的同时,将用户的请求调度到后台服务: <pre> // Find out if user is rate-limited. This can be slow; we have to ask // the remote server that keeps track of who is rate-limited. def isRateLimited(u: User): Future[Boolean] = { ... } // Notice how you can swap this implementation out now with something that might // implement a different, more restrictive policy. // Check the cache to find out if user is rate-limited. This cache // implementation is just a Map, and can return a value right way. But we // return a Future anyhow in case we need to use a slower implementation later. def isLimitedByCache(u: User): Future[Boolean] = Future.value(limitCache(u)) // Update the cache def setIsLimitedInCache(user: User, v: Boolean) { limitCache(user) = v } // Get a timeline of tweets... unless the user is rate-limited (then throw // an exception instead) def getTimeline(cred: Credentials): Future[Timeline] = isLimitedByCache(cred.user) flatMap { case true => Future.exception(new Exception("rate limited")) case false => // First we get auth'd user then we get timeline. // Sequential composition of asynchronous APIs: use flatMap val timeline = auth(cred) flatMap(getTimeline) val limited = isRateLimited(cred.user) onSuccess( setIsLimitedInCache(cred.user, _)) // 'join' concurrently combines differently-typed futures // 'flatMap' sequentially combines, specifies what to do next timeline join limited flatMap { case (_, true) => Future.exception(new Exception("rate limited")) case (timeline, _) => Future.value(timeline) } } } </pre> 这个例子结合了顺序和并发组合。请注意,除了给转化速率限制回应一个异常以外,没有明确的错误处理。如果任何Future在这里失败,它会自动传播到返回的<code>Future</code>中。 <a name="combined_combinator_example_thumbnail">&nbsp;</a> h3. 组合例子:网络爬虫 你已经看到了怎样使用Future组合子的例子,不过也许意犹未尽。假设你有一个简单的互联网模型。该互联网中只有HTML网页和图片,其中页面可以链接到图像和其他网页。你可以获取一个页面或图像,但API是异步的。这个假设的API成这些“可获取”的数据为资源: <pre> import com.twitter.util.{Try,Future,Promise} // a fetchable thing trait Resource { def imageLinks(): Seq[String] def links(): Seq[String] } // HTML pages can link to Imgs and to other HTML pages. class HTMLPage(val i: Seq[String], val l: Seq[String]) extends Resource { def imageLinks() = i def links = l } // IMGs don't actually link to anything else class Img() extends Resource { def imageLinks() = Seq() def links() = Seq() } // profile.html links to gallery.html and has an image link to portrait.jpg val profile = new HTMLPage(Seq("portrait.jpg"), Seq("gallery.html")) val portrait = new Img // gallery.html links to profile.html and two images val gallery = new HTMLPage(Seq("kitten.jpg", "puppy.jpg"), Seq("profile.html")) val kitten = new Img val puppy = new Img val internet = Map( "profile.html" -> profile, "gallery.html" -> gallery, "portrait.jpg" -> portrait, "kitten.jpg" -> kitten, "puppy.jpg" -> puppy ) // fetch(url) attempts to fetch a resource from our fake internet. // Its returned Future might contain a Resource or an exception def fetch(url: String) = { new Promise(Try(internet(url))) } </pre> <strong>顺序组合</strong> 假设给定一个页面URL,而你希望获取该页面的第一个图。也许你正在做一个网站,在上面用户可以发布有趣的网页链接。为了帮助其他用户决定某个链接是否值得追踪,你打算显示那个链接中第一张图像的缩略图。 即使你不知道组合子,你仍然可以写一个缩略图获取函数: <pre> def getThumbnail(url: String): Future[Resource]={ val returnVal = new Promise[Resource] fetch(url) onSuccess { page => // callback for successful page fetch fetch(page.imageLinks()(0)) onSuccess { p => // callback for successful img fetch returnVal.setValue(p) } onFailure { exc => // callback for failed img fetch returnVal.setException(exc) } } onFailure { exc => // callback for failed page fetch returnVal.setException(exc) } returnVal } </pre> 这个版本的函数能工作。它的大部分内容用来解析Future,然后把他们的内容传给另一个Future。 我们希望得到一个页面,然后从该页面获得一个图像。如果你想获得<var>A</var>,然后再获得<var>B</var>的,这通常意味着顺序组合。由于<var>B</var>是异步的,所以需要使用flatMap: <pre> def getThumbnail(url: String): Future[Resource] = fetch(url) flatMap { page => fetch(page.imageLinks()(0)) } </pre> <strong>...通过并发组合</strong> 抓取页面的第一个图片是好的,但也许我们应该获取所有图片,并让用户自己进行选择。我们可以使用<code>for</code>循环一个个地抓取,但这需要很长时间;所以我们想并行获取它们。如果你想的事情“并行”发生,这通常意味着并发组合。所以我们使用Future.collect的提取所有的图像: <pre> def getThumbnails(url:String): Future[Seq[Resource]] = fetch(url) flatMap { page => Future.collect( page.imageLinks map { u => fetch(u) } ) } </pre> 如果这对你有意义,那太好了。你可能会看不懂这行代码 <code>page.imageLinks map { u => fetch(u) }</code>:它使用<code>map</code>和<code>map</code>后的函数返回一个Future。当接下来的事情是返回一个Future时,我们不是应该使用flatMap吗?但是请注意,在<code>map</code><em>前</em>的不是一个Future;它是一个集合。<var>collection</var> map <var>function</var>返回一个集合;我们使用Future.collect收集Future的集合到一个Future中。 <strong>并发 + 递归</strong> 除了页面中的图片以外,我们可能会想获取它链接的其他页面。通过递归我们可以构建一个简单的网络爬虫。 <pre> // Return def crawl(url: String): Future[Seq[Resource]] = fetch(url) flatMap { page => Future.collect( page.links map { u => crawl(u) } ) map { pps => pps.flatten } } crawl("profile.html") ...hangs REPL, infinite loop... Ctrl-C Execution interrupted by signal. scala> // She's gone rogue, captain! Have to take her out! // Calling Thread.stop on runaway Thread[Thread-93,5,main] with offending code: // scala> crawl("profile.html") </pre> 在实践中,这个网络爬虫不是很有用:首先我们没有告诉它何时停止爬行;其次即使资源刚刚被获取过,它仍然会不厌其烦地重新获取。 h2(#Service). 服务 一个Finagle <code>服务</code>用来处理RPC,读取请求并给予回复的。服务是针对请求和回应的一个函数<code>Req => Future[Rep]</code>。 <blockquote> <code>abstract class Service[-Req, +Rep] extends (Req => Future[Rep])</code> </blockquote> !>../finagle_client_server.png(Client and Server)! 在服务中,我们要同时定义客户端和服务器。 一个Finagle客户端“引入”一个网络服务。从概念上讲,Finagle客户端由两部分组成 <ul> <li>一个<em>使用</em>服务的函数:分发一个 <code>Req</code>并处理 <code>Future[Rep]</code> <li>配置怎样分发这些请求;例如,作为HTTP请求发送到<code>api.twitter.com</code>的80端口 </ul> 同样,Finagle服务端“输出”网络服务。一个服务端由两个部分组成: <ul> <li>一个<em>实现</em>服务的函数:传入一个<code>Req</code> 并返回一个<code>Future[Rep]</code> <li>配置如何“监听”输入的 Reqs;例如,在80端口的HTTP请求。 </ul> 这种设计分离了服务的“业务逻辑”和数据如何在网络中流动的配置。 !>../finagle_filter.png(Filter and Server)! 我们也谈论Finagle“过滤器”。过滤器在服务之间,修改流经它的数据。过滤器可以很好地和服务组合在一起。例如,如果你有一个速率限制过滤器和一个tweet服务,你可以把它们组合在一起形成有速率限制的tweet服务。 h2(#client). 客户端 一个Finagle客户端“引入”一个网络服务。它有一些配置来设定如何在网络上发送数据。一个简单的HTTP客户端可能看起来像这样: <pre> import org.jboss.netty.handler.codec.http.{DefaultHttpRequest, HttpRequest, HttpResponse, HttpVersion, HttpMethod} import com.twitter.finagle.Service import com.twitter.finagle.builder.ClientBuilder import com.twitter.finagle.http.Http // Don't worry, we discuss this magic "ClientBuilder" later val client: Service[HttpRequest, HttpResponse] = ClientBuilder() .codec(Http()) .hosts("twitter.com:80") // If >1 host, client does simple load-balancing .hostConnectionLimit(1) .build() val req = new DefaultHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET, "/") val f = client(req) // Client, send the request // Handle the response: f onSuccess { res => println("got response", res) } onFailure { exc => println("failed :-(", exc) } </pre> h2(#server). 服务端 一个服务端按服务进行定义,并配置如何“监听”网络上的请求。一个简单的HTTP服务端可能看起来像这样: <pre> import com.twitter.finagle.Service import com.twitter.finagle.http.Http import com.twitter.util.Future import org.jboss.netty.handler.codec.http.{DefaultHttpResponse, HttpVersion, HttpResponseStatus, HttpRequest, HttpResponse} import java.net.{SocketAddress, InetSocketAddress} import com.twitter.finagle.builder.{Server, ServerBuilder} import com.twitter.finagle.builder.ServerBuilder // Define our service: OK response for root, 404 for other paths val rootService = new Service[HttpRequest, HttpResponse] { def apply(request: HttpRequest) = { val r = request.getUri match { case "/" => new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK) case _ => new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.NOT_FOUND) } Future.value(r) } } // Serve our service on a port val address: SocketAddress = new InetSocketAddress(10000) val server: Server = ServerBuilder() .codec(Http()) .bindTo(address) .name("HttpServer") .build(rootService) </pre> 这个`name`是我们强加的,虽然没有在例子中使用它,但这个字段对分析和调试是很有用的。 h2(#Filter). 过滤器 过滤器改造服务,它们可以提供<em>通用的服务</em>功能。例如你有几个服务需要支持速率限制,这时可以写一个限速过滤器并将其应用于所有的服务就解决问题了。过滤器也可以将服务分解成不同的阶段。 一个简单的代理可能看起来像这样: <pre> class MyService(client: Service[..]) extends Service[HttpRequest, HttpResponse] { def apply(request: HttpRequest) = { client(rewriteReq(request)) map { res => rewriteRes(res) } } } </pre> 其中<code>rewriteReq</code> 和 <code>rewriteRes</code>可以提供协议翻译,例如。 <pre> abstract class Filter[-ReqIn, +RepOut, +ReqOut, -RepIn] extends ((ReqIn, Service[ReqOut, RepIn]) => Future[RepOut]) </pre> 通过图示可以更清晰地看出其类型: <pre> ((ReqIn, Service[ReqOut, RepIn]) => Future[RepOut]) (* Service *) [ReqIn -> (ReqOut -> RepIn) -> RepOut] </pre> 下面的例子展示了怎样通过过滤器来提供服务超时机制。 <pre> class TimeoutFilter[Req, Rep]( timeout: Duration, exception: RequestTimeoutException, timer: Timer) extends Filter[Req, Rep, Req, Rep] { def this(timeout: Duration, timer: Timer) = this(timeout, new IndividualRequestTimeoutException(timeout), timer) def apply(request: Req, service: Service[Req, Rep]): Future[Rep] = { val res = service(request) res.within(timer, timeout) rescue { case _: java.util.concurrent.TimeoutException => res.cancel() Trace.record(TimeoutFilter.TimeoutAnnotation) Future.exception(exception) } } } </pre> 这个例子展示了怎样(通过认证服务)提供身份验证来将 <code>Service[AuthHttpReq, HttpRep]</code> 转换为 <code>Service[HttpReq, HttpRep]</code>。 <pre> class RequireAuthentication(authService: AuthService) extends Filter[HttpReq, HttpRep, AuthHttpReq, HttpRep] { def apply( req: HttpReq, service: Service[AuthHttpReq, HttpRep] ) = { authService.auth(req) flatMap { case AuthResult(AuthResultCode.OK, Some(passport), _) => service(AuthHttpReq(req, passport)) case ar: AuthResult => Future.exception( new RequestUnauthenticated(ar.resultCode)) } } } </pre> 这样使用过滤器是有好处的。它可以帮助你将“身份验证逻辑”固定在一个地方。拥有一个独立的类型执行请求授权,会使追查程序安全问题变得更容易。 过滤器可以使用 <code>andThen</code> 组合在一起。传入一个<code>Service</code>参数给<code>andThen</code> 将创建一个(添加了过滤功能)的<code>Service</code>(类型用来做说明)。 <pre> val authFilter: Filter[HttpReq, HttpRep, AuthHttpReq, HttpRep] val timeoutfilter[Req, Rep]: Filter[Req, Rep, Req, Rep] val serviceRequiringAuth: Service[AuthHttpReq, HttpRep] val authenticateAndTimedOut: Filter[HttpReq, HttpRep, AuthHttpReq, HttpRep] = authFilter andThen timeoutFilter val authenticatedTimedOutService: Service[HttpReq, HttpRep] = authenticateAndTimedOut andThen serviceRequiringAuth </pre> h2(#Builder). 生成器(Builder) 生成器把所有组件组合在一起。一个<code>ClientBuilder</code>对给定的一组参数生成一个<code>Service</code>,而一个 <code>ServerBuilder</code> 获取一个 <code>Service</code> 的实例,并调度传入请求给它。为了确定<code>Service</code>的类型,我们必须提供一个<code>编解码器(Codec)</code>。编解码器提供底层协议的实现(如HTTP,thrift,memcached)。这两个Builder都有很多参数,其中一些是必填的。 下面是一个调用<code>ClientBuilder</code>的例子(类型用来做说明) <pre> val client: Service[HttpRequest, HttpResponse] = ClientBuilder() .codec(Http) .hosts("host1.twitter.com:10000,host2.twitter.com:10001,host3.twitter.com:10003") .hostConnectionLimit(1) .tcpConnectTimeout(1.second) .retries(2) .reportTo(new OstrichStatsReceiver) .build() </pre> 这将构建一个客户端在三个主机上进行负载平衡,最多在每台主机建立一个连接,并在两次失败尝试后放弃。统计数据会报给 "ostrich":https://github.com/twitter/ostrich 。以下生成器选项是必须的(而且它们也被静态强制填写了):<code>hosts</code> 或 <code>cluster</code>, <code>codec</code> 和 <code>hostConnectionLimit</code>。 同样的,你也可以使用一个<code>ServerBuilder</code>来创建“监听”传入请求的服务: <pre> val service = new MyService(...) // construct instance of your Finagle service var filter = new MyFilter(...) // and maybe some filters var filteredServce = filter andThen service val server = ServerBuilder() .bindTo(new InetSocketAddress(port)) .codec(ThriftServerFramedCodec()) .name("my filtered service") // .hostConnectionMaxLifeTime(5.minutes) // .readTimeout(2.minutes) .build(filteredService) </pre> 通过这些参数会生成一个Thrift服务器监听端口<var>port</var>,并将请求分发给<var>service</var>。如果我们去掉<code>hostConnectionMaxLifeTime</code>的注释,每个连接将被允许留存长达5分钟。如果我们去掉<code>readTimeout</code>的注释,那么我们就需要在2分钟之内发送请求。<code>ServerBuilder</code>必选项有:<code>name</code>, <code>bindTo</code> 和 <code>codec</code>。 h2(#DontBlock). 不要阻塞(除非你用正确的方式) Finagle 自动操纵线程来保证服务顺利运行。但是,如果你的服务阻塞了,它会阻塞所有Finagle线程。 * 如果你的代码调用了一个阻塞操作(<code>apply</code> 或 <code>get</code>),使用<a href="https://github.com/twitter/finagle#Using%20Future%20Pools">Future 池</a>来包装阻塞代码。阻塞操作将运行在自己的线程池中,返回一个Future来完成(或失败)这个操作,并可以和其它Future组合。 * 如果你的代码中使用Future的顺序组合,不用担心它会“阻塞”组合中的Future。 fn1. 小心,还有其它“Future”类。不要将<code>com.twitter.util.Future</code> 和<code>scala.concurrent.Future</code> 或 <code>java.util.concurrent.Future</code>混淆起来! fn2. 如果你学习类型系统和/或分类理论,你会高兴地发现<code>flatMap</code>相当于一元绑定。
Textile
5
AstronomiaDev/scala_school
web/zh_cn/finagle.textile
[ "Apache-2.0" ]
# Finder exports the types required to find patterns # in some files. module finder import matcher import file_resolver import reporter import mimesniff # Finder class puts it all together, finds matchers in the files # and sends them to the reporter. class Finder # matcher to use to find hits in the files. var matcher: Matcher # resolver that identifies the files to search. var resolver: FileResolver # reporter to use to report hits. var reporter: Reporter private var before_lines = 0 private var after_lines = 0 private var max_line_length = 200 # find is the method that runs the search. fun find: Int do var cnt = 0 var files = resolver.files for file in files do var reader = file.to_path.open_ro # skip binary files var bytes = reader.peek(512) var mime_type = bytes.mime_type if not mime_type.has_prefix("text/") and not mime_type.has_prefix("application/json") and not mime_type.has_prefix("application/javascript") and not mime_type.has_prefix("application/ecmascript") and not mime_type.has_prefix("application/xml") and not mime_type.has_suffix("+xml") then continue end var hits = new Array[Hit] var line_no = 0 var buf = new CircularBuffer(before_lines + after_lines + 1) for line in reader.each_line do line_no += 1 buf.add(line.substring(0, max_line_length)) if matcher.match(line) then hits.add(new Hit(line_no, line_no, buf)) # TODO : handle before/after contextual lines, grow buffer as needed buf = new CircularBuffer(before_lines + after_lines + 1) end end reader.close if hits.length > 0 then reporter.report(file, hits) cnt += hits.length end return cnt end end
Nit
5
PuerkitoBio/nitfind
finder.nit
[ "BSD-3-Clause" ]
--TEST-- PDO Common: Bug #77849 (Unexpected segfault attempting to use cloned PDO object) --EXTENSIONS-- pdo --SKIPIF-- <?php $dir = getenv('REDIR_TEST_DIR'); if (false == $dir) die('skip no driver'); require_once $dir . 'pdo_test.inc'; PDOTest::skip(); ?> --FILE-- <?php if (getenv('REDIR_TEST_DIR') === false) putenv('REDIR_TEST_DIR='.dirname(__FILE__) . '/../../pdo/tests/'); require_once getenv('REDIR_TEST_DIR') . 'pdo_test.inc'; $db = PDOTest::factory(); $db2 = clone $db; ?> --EXPECTF-- Fatal error: Uncaught Error: Trying to clone an uncloneable object of class PDO in %s Stack trace: #0 {main} thrown in %s on line %d
PHP
3
NathanFreeman/php-src
ext/pdo/tests/bug_77849.phpt
[ "PHP-3.01" ]
% run> gs -q -sDEVICE=nullpage postscript.ps (Hello World\n) print quit
PostScript
1
Gabrielarodrigues10/ga
p/PostScript.ps
[ "MIT" ]