text:
7344,2014-09-30 02:45:00
131,75,181,135,95,10.186664830688414,56.139477887997344,2014-09-30 02:50:00
131,78,177,136,93,10.186664830688414,56.139477887997344,2014-09-30 02:55:00
131,82,181,141,96,10.186664830688414,56.139477887997344,2014-09-30 03:00:00
133,86,182,146,99,10.186664830688414,56.139477887997344,2014-09-30 03:05:00
129,83,180,148,97,10.186664830688414,56.139477887997344,2014-09-30 03:10:00
125,79,182,151,99,10.186664830688414,56.139477887997344,2014-09-30 03:15:00
125,82,181,149,94,10.186664830688414,56.139477887997344,2014-09-30 03:20:00
126,83,183,147,93,10.186664830688414,56.139477887997344,2014-09-30 03:25:00
121,84,181,147,95,10.186664830688414,56.139477887997344,2014-09-30 03:30:00
126,82,185,148,96,10.186664830688414,56.139477887997344,2014-09-30 03:35:00
124,81,189,143,93,10.186664830688414,56.139477887997344,2014-09-30 03:40:00
127,79,191,147,88,10.186664830688414,56.139477887997344,2014-09-30 03:45:00
122,83,186,144,92,10.186664830688414,56.139477887997344,2014-09-30 03:50:00
121,81,183,147,91,10.186664830688414,56.139477887997344,2014-09-30 03:55:00
124,79,188,142,95,10.186664830688414,56.139477887997344,2014-09-30 04:00:00
123,74,186,146,90,10.186664830688414,56.139477887997344,2014-09-30 04:05:00
120,69,184,147,92,10.186664830688414,56.139477887997344,2014-09-30 04:10:00
116,72,183,149,94,10.186664830688414,56.139477887997344,2014-09-30 04:15:00
111,70,188,148,92,10.186664830688414,56.139477887997344,2014-09-30 04:20:00
115,67,186,153,96,10.186664830688414,56.139477887997344,2014-09-30 04:25:00
113,63,187,156,91,10.186664830688414,56.139477887997344,2014-09-30 04:30:00
109,59,182,153,93,10.186664830688414,56.139477887997344,2014-09-30 04:35:00
109,63,187,156,95,10.186664830688414,56.139477887997344,2014-09-30 04:40:00
108,64,182,161,96,10.186664830688414,56.139477887997344,2014-09-30 04:45:00
105,69,177,156,99,10.186664830688414,56.139477887997344,2014-09-30 04:50:00
103,68,179,152,94,10.186664830688414,56.139477887997344,2014-09-30 04:55:00
105,64,181,147,93,10.186664830688414,56.139477887997344,2014-09-30 05:00:00
106,61,184,150,96,10.186664830688414,56.139477887997344,2014-09-30 05:05:00
104,60,184,148,101,10.186664830688414,56.139477887997344,2014-09-30 05:10:00
100,64,188,148,96,10.186664830688414,56.139477887997344,2014-09-30 05:15:00
100,65,192,150,96,10.186664830688414,56.139477887997344,2014-09-30 05:20:00
101,62,192,145,96,10.186664830688414,56.139477887997344,2014-09-30 05:25:00
103,67,187,145,95,10.186664830688414,56.139477887997344,2014-09-30 05:30:00
104,67,190,146,90,10.186664830688414,56.139477887997344,2014-09-30 05:35:00
106,66,194,150,94,10.186664830688414,56.139477887997344,2014-09-30 05:40:00
102,64,198,147,93,10.186664830688414,56.139477887997344,2014-09-30 05:45:00
98,64,198,146,90,10.186664830688414,56.139477887997344,2014-09-30 05:50:00
103,59,194,150,87,10.186664830688414,56.139477887997344,2014-09-30 05:55:00
105,56,191,149,86,10.186664830688414,56.139477887997344,2014-09-30 06:00:00
110,56,187,153,90,10.186664830688414,56.139477887997344,2014-09-30 06:05:00
105,52,188,156,87,10.186664830688414,56.139477887997344,2014-09-30 06:10:00
104,47,191,158,90,10.186664830688414,56.139477887997344,2014-09-30 06:15:00
108,52,190,157,88,10.186664830688414,56.139477887997344,2014-09-30 06:20:00
113,47,185,154,93,10.186664830688414,56.139477887997344,2014-09-30 06:25:00
115,50,186,154,91,10.186664830688414,56.139477887997344,2014-09-30 06:30:00
118,52,183,154,95,10.186664830688414,56.139477887997344,2014-09-30 06:35:00
116,49,180,149,98,10.186664830688414,56.139477887997344,2014-09-30 06:40:00
119,54,175,150,99,10.186664830688414,56.139477887997344,2014-09-30 06:45:00
121,49,174,154,99,10.186664830688414,56.139477887997344,2014-09-30 06:50:00
117,54,172,158,103,10.186664830688414,56.139477887997344,2014-09-30 06:55:00
121,49,170,157,107,10.186664830688414,56.139477887997344,2014-09-30 07:00:00
124,53,168,157,103,10.186664830688414,56.139477887997344,2014-09-30 07:05:00
128,56,169,157,98,10.186664830688414,56.139477887997344,2014-09-30 07:10:00
124,59,169,162,95,10.186664830688414,56.139477887997344,2014-09-30 07:15:00
124,57,167,160,97,10.186664830688414,56.139477887997344,2014-09-30 07:20:00
123,52,166,163,97,10.186664830688414,56.139477887997344,2014-09-30 07:25:00
128,49,166,158,92,10.186664830688414,56.139477887997344,2014-09-30 07:30:00
125,52,165,161,96,10.186664830688414,56.139477887997344,2014-09-30 07:35:00
122,54,163,163,100,10.186664830688414,56.139477887997344,2014-09-30 07:40:00
124,50,165,168,99,10.186664830688414,56.139477887997344,2014-09-30 07:45:00
127,50,161,173,95,10.186664830688414,56.139477887997344,2014-09-30 07:50:00
127,52,164,176,92,10.186664830688414,56.139477887997344,2014-09-30 07:55:00
122,54,167,172,97,10.186664830688414,56.139477887997344,2014-09-30 08:00:00
124,50,164,173,94,10.186664830688414,56.139477887997344,2014-09-30 08:05:00
127,50,165,177,96,10.186664830688414,56.139477887997344,2014-09-30 08:10:00
127,50,168,173,92,10.186664830688414,56.139477887997344,2014-09-30 08:15:00
125,54,173,172,88,10.186664830688414,56.139477887997344,2014-09-30 08:20:00
127,55,173,174,89,10.186664830688414,56.139477887997344,2014-09-30 08:25:00
122,55,170,169,88,10.186664830688414,56.139477887997344,2014-09-30 08:30:00
123,54,169,167,83,10.186664830688414,56.139477887997344,2014-09-30 08:35:00
121,58,174,166,87,10.186664830688414,56.139477887997344,2014-09-30 08:40:00
123,54,177,167,85,10.186664830688414,56.139477887997344,2014-09-30 08:45:00
122,49,180,166,88,10.186664830688414,56.139477887997344,2014-09-30 08:50:00
126,44,179,169,85,10.186664830688414,56.139477887997344,2014-09-30 08:55:00
124,43,178,171,82,10.186664830688414,56.139477887997344,2014-09-30 09:00:00
125,39,180,172,85,10.186664830688414,56.139477887997344,2014-09-30 09:05:00
127,43,182,167,80,10.186664830688414,56.139477887997344,2014-09-30 09:10:00
129,44,177,165,79,10.186664830688414,56.139477887997344,2014-09-30 09:15:00
125,43,181,164,84,10.186664830688414,56.139477887997344,2014-09-30 09:20:00
130,46,183,165,83,10.186664830688414,56.139477887997344,2014-09-30 09:25:00
130,46,180,166,86,10.186664830688414,56.139477887997344,2014-09-30 09:30:00
128,42,175,161,83,10.186664830688414,56.139477887997344,2014-09-30 09:35:00
126,40,176,164,78,10.186664830688414,56.139477887997344,2014-09-30 09:40:00
127,38,176,164,74,10.186664830688414,56.139477887997344,2014-09-30 09:45:00
125,34,171,165,79,10.186664830688414,56.139477887997344,2014-09-30 09:50:00
128,32,176,164,84,10.186664830688414,56.139477887997344,2014-09-30 09:55:00
126,36,172,164,81,10.186664830688414,56.139477887997344,2014-09-30 10:00:00
125,36,173,163,79,10.186664830688414,56.139477887997344,2014-09-30 10:05:00
120,32,174,163,74,10.186664830688414,56.139477887997344,2014-09-30 10:10:00
120,29,175,159,75,10.186664830688414,56.139477887997344,2014-09-30 10:15:00
123,31,176,160,72,10.186664830688414,56.139477887997344,2014-09-30 10:20:00
118,27,179,160,67,10.186664830688414,56.139477887997344,2014-09-30 10:25:00
113,25,181,156,64,10.186664830688414,56.139477887997344,2014-09-30 10:30:00
114,27,185,158,66,10.186664830688414,56.139477887997344,2014-09-30 10:35:00
115,29,185,161,64,10.186664830688414,56.139477887997344,2014-09-30 10:40:00
116,32,181,162,63,10.186664830688414,56.139477887997344,2014-09-30 10:45:00
114,36,182,160,66,10.186664830688414,56.139477887997344,2014-09-30 10:50:00
114,39,179,155,68,10.186664830688414,56.139477887997344,2014-09-30 10:55:00
116,35,176,160,63,10.186664830688414,56.139477887997344,2014-09-30 11:00:00
115,30,180,165,62,10.186664830688414,56.139477887997344,2014-09-30 11:05:00
116,26,177,170,65,10.186664830688414,56.139477887997344,2014-09-30 11:10:00
118,24,179,165,60,10.186664830688414,56.139477887997344,2014-09-30 11:15:00
120,26,183,160,58,10.186664830688414,56.139477887997344,2014-09-30 11:20:00
118,29,179,156,58,10.186664830688414,56.139477887997344,2014-09-30 11:25:00
118,32,177,160,56,10.186664830688414,56.139477887997344,2014-09-30 11:30:00
118,37,182,163,51,10.186664830688414,56.139477887997344,2014-09-30 11:35:00
117,41,181,158,50,10.186664830688414,56.139477887997344,2014-09-30 11:40:00
119,36,182,158,45,10.186664830688414,56.139477887997344,2014-09-30 11:45:00
123,39,180,153,45,10.186664830688414,56.139477887997344,2014-09-30 11:50:00
121,37,179,152,41,10.186664830688414,56.139477887997344,2014-09-30 11:55:00
116,42,177,157,36,10.186664830688414,56.139477887997344,2014-09-30 12:00:00
114,42,177,161,38,10.186664830688414,56.139477887997344,2014-09-30 12:05:00
114,47,174,166,40,10.186664830688414,56.139477887997344,2014-09-30 12:10:00
113,46,172,161,44,10.186664830688414,56.139477887997344,2014-09-30 12:15:00
113,42,176,164,43,10.186664830688414,56.139477887997344,2014-09-30 12:20:00
115,40,181,167,39,10.186664830688414,56.139477887997344,2014-09-30 12:25:00
116,43,186,166,34,10.186664830688414,56.139477887997344,2014-09-30 12:30:00
116,42,188,168,39,10.186664830688414,56.139477887997344,2014-09-30 12:35:00
117,44,190,163,41,10.186664830688414,56.139477887997344,2014-09-30 12:40:00
113,47,188,158,36,10.186664830688414,56.139477887997344,2014-09-30 12:45:00
116,47,185,153,31,10.186664830688414,56.139477887997344,2014-09-30 12:50:00
112,42,183,148,33,10.186664830688414,56.139477887997344,2014-09-30 12:55:00
114,45,180,148,33,10.186664830688414,56.139477887997344,2014-09-30 13:00:00
114,43,179,149,31,10.186664830688414,56.139477887997344,2014-09-30 13:05:00
118,45,178,145,34,10.186664830688414,56.139477887997344,2014-09-30 13:10:00
123,49,174,143,38,10.186664830688414,56.139477887997344,2014-09-30 13:15:00
124,48,173,144,42,10.186664830688414,56.139477887997344,2014-09-30 13:20:00
122,53,171,145,44,10.186664830688414,56.139477887997344,2014-09-30 13:25:00
118,52,169,143,49,10.186664830688414,56.139477887997344,2014-09-30 13:30:00
115,49,171,140,50,10.186664830688414,56.139477887997344,2014-09-30 13:35:00
110,48,167,141,46,10.186664830688414,56.139477887997344,2014-09-30 13:40:00
108,45,171,137,48,10.186664830688414,56.139477887997344,2014-09-30 13:45:00
111,42,176,133,51,10.186664830688414,56.139477887997344,2014-09-30 13:50:00
109,37,177,134,54,10.186664830688414,56.139477887997344,2014-09-30 13:55:00
109,35,174,131,49,10.186664830688414,56.139477887997344,2014-09-30 14:00:00
105,39,177,130,49,10.186664830688414,56.139477887997344,2014-09-30 14:05:00
107,44,182,135,49,10.186664830688414,56.139477887997344,2014-09-30 14:10:00
104,43,177,136,52,10.186664830688414,56.139477887997344,2014-09-30 14:15:00
108,44,182,139,47,10.186664830688414,56.139477887997344,2014-09-30 14:20:00
108,41,183,141,48,10.186664830688414,56.139477887997344,2014-09-30 14:25:00
105,41,186,145,43,10.186664830688414,56.139477887997344,2014-09-30 14:30:00
109,46,188,149,39,10.186664830688414,56.139477887997344,2014-09-30 14:35:00
110,45,193,150,34,10.186664830688414,56.139477887997344,2014-09-30 14:40:00
108,49,188,149,37,10.186664830688414,56.139477887997344,2014-09-30 14:45:00
105,51,190,145,34,10.186664830688414,56.139477887997344,2014-09-30 14:50:00
104,51,193,149,38,10.186664830688414,56.139477887997344,2014-09-30 14:55:00
105,55,197,145,39,10.186664830688414,56.139477887997344,2014-09-30 15:00:00
103,57,194,147,37,10.186664830688414,56.139477887997344,2014-09-30 15:05:00
98,59,192,144,41,10.186664830688414,56.139477887997344,2014-09-30 15:10:00
94,56,187,141,44,10.186664830688414,56.139477887997344,2014-09-30 15:15:00
94,59,191,142,43,10.186664830688414,56.139477887997344,2014-09-30 15:20:00
98,58,193,145,43,10.186664830688414,56.139477887997344,2014-09-30 15:25:00
98,58,192,146,42,10.186664830688414,56.139477887997344,2014-09-30 15:30:00
103,58,196,151,40,10.186664830688414,56.139477887997344,2014-09-30 15:35:00
101,54,191,150,44,10.186664830688414,56.139477887997344,2014-09-30 15:40:00
101,57,195,154,41,10.186664830688414,56.139477887997344,2014-09-30 15:45:00
106,55,200,154,45,10.186664830688414,56.139477887997344,2014-09-30 15:50:00
107,59,195,157,44,10.186664830688414,56.139477887997344,2014-09-30 15:55:00
103,58,194,154,49,10.186664830688414,56.139477887997344,2014-09-30 16:00:00
108,62,192,154,49,10.186664830688414,56.139477887997344,2014-09-30 16:05:00
107,58,195,152,47,10.186664830688414,56.139477887997344,2014-09-30 16:10:00
105,56,196,148,52,10.186664830688414,56.139477887997344,2014-09-30 16:15:00
106,56,193,152,53,10.186664830688414,56.139477887997344,2014-09-30 16:20:00
105,59,198,153,54,10.186664830688414,56.139477887997344,2014-09-30 16:25:00
108,58,195,149,50,10.186664830688414,56.139477887997344,2014-09-30 16:30:00
108,63,190,145,52,10.186664830688414,56.139477887997344,2014-09-30 16:35:00
109,59,185,149,53,10.186664830688414,56.139477887997344,2014-09-30 16:40:00
104,64,182,147,50,10.186664830688414,56.139477887997344,2014-09-30 16:45:00
100,67,179,144,48,10.186664830688414,56.139477887997344,2014-09-30 16:50:00
97,70,181,143,46,10.186664830688414,56.139477887997344,2014-09-30 16:55:00
96,67,185,139,43,10.186664830688414,56.139477887997344,2014-09-30 17:00:00
93,67,189,141,38,10.186664830688414,56.139477887997344,2014-09-30 17:05:00
91,67,184,137,40,10.186664830688414,56.139477887997344,2014-09-30 17:10:00
95,62,184,139,41,10.186664830688414,56.139477887997344,2014-09-30 17:15:00
96,67,189,141,37,10.186664830688414,56.139477887997344,2014-09-30 17:20:00
91,64,190,136,33,10.186664830688414,56.139477887997344,2014-09-30 17:25:00
89,64,193,140,36,10.186664830688414,56.139477887997344,2014-09-30 17:30:00
93,67,193,143,39,10.186664830688414,56.139477887997344,2014-09-30 17:35:00
93,64,190,141,36,10.186664830688414,56.139477887997344,2014-09-30 17:40:00
97,65,188,140,31,10.186664830688414,56.139477887997344,2014-09-30 17:45:00
100,68,188,141,30,10.186664830688414,56.139477887997344,2014-09-30 17:50:00
105,63,189,141,28,10.186664830688414,56.139477887997344,2014-09-30 17:55:00
105,62,187,136,24,10.186664830688414,56.139477887997344,2014-09-30 18:00:00
103,58,192,137,28,10.186664830688414,56.139477887997344,2014-09-30 18:05:00
108,56,197,139,24,10.186664830688414,56.139477887997344,2014-09-30 18:10:00
105,53,201,137,28,10.186664830688414,56.139477887997344,2014-09-30 18:15:00
102,56,205,138,27,10.186664830688414,56.139477887997344,2014-09-30 18:20:00
98,57,209,133,23,10.186664830688414,56.139477887997344,2014-09-30 18:25:00
96,52,207,137,25,10.186664830688414,56.139477887997344,2014-09-30 18:30:00
100,53,205,138,24,10.186664830688414,56.139477887997344,2014-09-30 18:35:00
105,54,202,142,21,10.186664830688414,56.139477887997344,2014-09-30 18:40:00
102,49,198,139,25,10.186664830688414,56.139477887997344,2014-09-30 18:45:00
107,46,194,135,30,10.186664830688414,56.139477887997344,2014-09-30 18:50:00
107,45,193,133,31,10.186664830688414,56.139477887997344,2014-09-30 18:55:00
102,44,196,128,28,10.186664830688414,56.139477887997344,2014-09-30 19:00:00
105,47,194,124,33,10.186664830688414,56.139477887997344,2014-09-30 19:05:00
107,46,198,122,38,10.186664830688414,56.139477887997344,2014-09-30 19:10:00
104,49,199,126,36,10.186664830688414,56.139477887997344,2014-09-30 19:15:00
108,45,196,128,32,10.186664830688414,56.139477887997344,2014-09-30 19:20:00
110,47,194,133,35,10.186664830688414,56.139477887997344,2014-09-30 19:25:00
111,47,191,136,30,10.186664830688414,56.139477887997344,2014-09-30 19:30:00
114,52,195,136,35,10.186664830688414,56.139477887997344,2014-09-30 19:35:00
115,52,195,138,40,10.186664830688414,56.139477887997344,2014-09-30 19:40:00
119,53,194,136,42,10.186664830688414,56.139477887997344,2014-09-30 19:45:00
117,58,189,141,41,10.186664830688414,56.139477887997344,2014-09-30 19:50:00
120,59,188,142,43,10.186664830688414,56.139477887997344,2014-09-30 19:55:00
117,62,184,137,47,10.186664830688414,56.139477887997344,2014-09-30 20:00:00
122,60,181,136,49,10.186664830688414,56.139477887997344,2014-09-30 20:05:00
121,57,179,133,44,10.186664830688414,56.139477887997344,2014-09-30 20:10:00
120,60,177,134,46,10.186664830688414,56.139477887997344,2014-09-30 20:15:00
116,55,180,133,41,10.186664830688414,56.139477887997344,2014-09-30 20:20:00
121,52,184,131,38,10.186664830688414,56.139477887997344,2014-09-30 20:25:00
125,49,185,131,40,10.186664830688414,56.139477887997344,2014-09-30 20:30:00
120,49,186,130,38,10.186664830688414,56.139477887997344,2014-09-30 20:35:00
116,50,190,133,36,10.186664830688414,56.139477887997344,2014-09-30 20:40:00
115,48,185,131,36,10.186664830688414,56.139477887997344,2014-09-30 20:45:00
117,52,183,129,40,10.186664830688414,56.139477887997344,2014-09-30 20:50:00
122,50,181,130,43,10.186664830688414,56.139477887997344,2014-09-30 20:55:00
122,46,185,130,44,10.186664830688414,56.139477887997344,2014-09-30 21:00:00
120,50,182,125,44,10.186664830688414,56.139477887997344,2014-09-30 21:05:00
116,46,185,125,45,10.186664830688414,56.139477887997344,2014-09-30 21:10:00
114,42,182,128,47,10.186664830688414,56.139477887997344,2014-09-30 21:15:00
112,40,177,132,44,10.186664830688414,56.139477887997344,2014-09-30 21:20:00
107,40,180,131,43,10.186664830688414,56.139477887997344,2014-09-30 21:25:00
103,36,180,131,46,10.186664830688414,56.139477887997344,2014-09-30 21:30:00
101,38,183,129,42,10.186664830688414,56.139477887997344,2014-09-30 21:35:00
105,43,180,131,47,10.186664830688414,56.139477887997344,2014-09-30 21:40:00
104,47,183,126,50,10.186664830688414,56.139477887997344,2014-09-30 21:45:00
103,42,186,128,54,10.186664830688414,56.139477887997344,2014-09-30 21:50:00
105,47,191,126,53,10.186664830688414,56.139477887997344,2014-09-30 21:55:00
103,46,187,126,49,10.186664830688414,56.139477887997344,2014-09-30 22:00:00
103,49,187,130,52,10.186664830688414,56.139477887997344,2014-09-30 22:05:00
101,50,183,126,50,10.186664830688414,56.139477887997344,2014-09-30 22:10:00
98,54,178,126,50,10.186664830688414,56.139477887997344,2014-09-30 22:15:00
93,57,183,124,46,10.186664830688414,56.139477887997344,2014-09-30 22:20:00
90,57,181,121,48,10.186664830688414,56.139477887997344,2014-09-30 22:25:00
86,55,179,123,51,10.186664830688414,56.139477887997344,2014-09-30 22:30:00
83,55,176,121,49,10.186664830688414,56.139477887997344,2014-09-30 22:35:00
83,55,180,126,49,10.186664830688414,56.139477887997344,2014-09-30 22:40:00
80,55,179,121,46,10.186664830688414,56.139477887997344,2014-09-30 22:45:00
83,51,184,121,50,10.186664830688414,56.139477887997344,2014-09-30 22:50:00
80,49,184,124,50,10.186664830688414,56.139477887997344,2014-09-30 22:55:00
76,53,188,125,50,10.186664830688414,56.139477887997344,2014-09-30 23:00:00
78,48,186,130,46,10.186664830688414,56.139477887997344,2014-09-30 23:05:00
73,45,187,126,45,10.186664830688414,56.139477887997344,2014-09-30 23:10:00
73,43,185,129,44,10.186664830688414,56.139477887997344,2014-09-30 23:15:00
78,40,183,129,49,10.186664830688414,56.139477887997344,2014-09-30 23:20:00
80,43,179,131,51,10.186664830688414,56.139477887997344,2014-09-30 23:25:00
76,41,177,130,53,10.186664830688414,56.139477887997344,2014-09-30 23:30:00
76,43,175,129,58,10.186664830688414,56.139477887997344,2014-09-30 23:35:00
77,42,177,130,56,10.186664830688414,56.139477887997344,2014-09-30 23:40:00
74,39,174,133,57,10.186664830688414,56.139477887997344,2014-09-30 23:45:00
79,44,173,128,53,10.186664830688414,56.139477887997344,2014-09-30 23:50:00
82,43,175,130,49,10.186664830688414,56.139477887997344,2014-09-30 23:55:00
82,46,180,131,48,10.186664830688414,56.139477887997344,2014-10-01 00:00:00


text:
package main

import (
	"os"

	"github.com/argoproj/argo-events/common"
	"github.com/argoproj/argo-events/gateways"
	"github.com/argoproj/argo-events/gateways/community/hdfs"
	"k8s.io/client-go/kubernetes"
)

func main() {
	kubeConfig, _ := os.LookupEnv(common.EnvVarKubeConfig)
	restConfig, err := common.GetClientConfig(kubeConfig)
	if err != nil {
		panic(err)
	}
	clientset := kubernetes.NewForConfigOrDie(restConfig)
	namespace, ok := os.LookupEnv(common.EnvVarGatewayNamespace)
	if !ok {
		panic("namespace is not provided")
	}
	gateways.StartGateway(&hdfs.EventSourceExecutor{
		Log:       common.NewArgoEventsLogger(),
		Namespace: namespace,
		Clientset: clientset,
	})
}

repository: locona/argo-events

license_type: permissive

repo_name: locona/argo-events

branch_name: refs/heads/master

gha_language: Go

extension: go


text:
---
---

@article{ahrabian2020structure,
  abbr={EMNLP 2020},
  title={Structure Aware Negative Sampling in Knowledge Graphs},
  author={Ahrabian, Kian and Feizi, Aarash and Salehi, Yasmin and Hamilton, William L. and Bose, Avishek Joey},
  journal={arXiv preprint arXiv:2009.11355},
  year={2020},
  html={https://arxiv.org/abs/2009.11355},
  pdf={https://arxiv.org/pdf/2009.11355.pdf},
  selected={true}
}

@article{feizi2022revisiting,
  abbr={},
  abbr={DataPerf WS <br>ICML 2022},
  title={Revisiting Hotels-50K and Hotel-ID},
  author={Feizi, Aarash and Casanova, Arantxa and Romero-Soriano, Adriana and Rabbany, Reihaneh},
  journal={arXiv preprint arXiv:2207.10200},
  year={2022}
}

license: MIT

extension: bib


text:
package slot

import (
	"regexp"

	"github.com/nlopes/slack"
)

// RegexResponder matches a regex against an incoming string and executes a
// response if a match occurred
type RegexResponder struct {
	Regexp    *regexp.Regexp
	Responder Responder
}

// Match implements MatchResponder
func (r *RegexResponder) Match(rtm *slack.RTM, ev *slack.MessageEvent) bool {
	return r.Regexp.MatchString(ev.Text)
}

// Respond implements Responder
func (r *RegexResponder) Respond(rtm *slack.RTM, ev *slack.MessageEvent) error {
	return r.Responder.Respond(rtm, ev)
}

repository: andrewstuart/slot

repo_name: andrewstuart/slot


text:
# Generated by superflore -- DO NOT EDIT
#
# Copyright Open Source Robotics Foundation

inherit ros_distro_melodic
inherit ros_superflore_generated

DESCRIPTION = "Messages definitions for representing computer's hardware state, such as battery information, GPU, some miscellaneous sensors. Format is in ROS. Originally developed at pr2_common repository"
AUTHOR = "Isaac I.Y. Saito <130s@2000.jukuin.keio.ac.jp>"
ROS_AUTHOR = "Eric Berger and many others"
HOMEPAGE = "http://ros.org/wiki/computer_status_msgs"
SECTION = "devel"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://package.xml;beginline=6;endline=6;md5=d566ef916e9dedc494f5f793a6690ba5"

ROS_CN = "computer_status_msgs"
ROS_BPN = "computer_status_msgs"

ROS_BUILD_DEPENDS = " \
    geometry-msgs \
    message-generation \
    std-msgs \
"

ROS_BUILDTOOL_DEPENDS = " \
    catkin-native \
"

ROS_EXPORT_DEPENDS = " \
    geometry-msgs \
    message-generation \
    std-msgs \
"

ROS_BUILDTOOL_EXPORT_DEPENDS = ""

ROS_EXEC_DEPENDS = " \
    geometry-msgs \
    message-generation \
    message-runtime \
    std-msgs \
"

# Currently informational only -- see http://www.ros.org/reps/rep-0149.html#dependency-tags.
ROS_TEST_DEPENDS = ""

DEPENDS = "${ROS_BUILD_DEPENDS} ${ROS_BUILDTOOL_DEPENDS}"
# Bitbake doesn't support the "export" concept, so build them as if we needed them to build this package (even though we actually
# don't) so that they're guaranteed to have been staged should this package appear in another's DEPENDS.
DEPENDS += "${ROS_EXPORT_DEPENDS} ${ROS_BUILDTOOL_EXPORT_DEPENDS}"

RDEPENDS:${PN} += "${ROS_EXEC_DEPENDS}"

# matches with: https://github.com/130s/computer_status_msgs-release/archive/release/melodic/computer_status_msgs/2.1.0-2.tar.gz
ROS_BRANCH ?= "branch=release/melodic/computer_status_msgs"
SRC_URI = "git://github.com/130s/computer_status_msgs-release;${ROS_BRANCH};protocol=https"
SRCREV = "4cfc14b84258f5d277909be8dcf96295392c6e21"
S = "${WORKDIR}/git"

ROS_BUILD_TYPE = "catkin"

inherit ros_${ROS_BUILD_TYPE}

repository: DasRoteSkelett/meta-ros

repo_name: DasRoteSkelett/meta-ros

gha_license_id: MIT

extension: bb


text:
package scclient

import (
	"time"

	"github.com/iotaledger/wasp/packages/kv/dict"
)

func (c *SCClient) CallView(functionName string, args dict.Dict, optimisticReadTimeout ...time.Duration) (dict.Dict, error) {
	return c.ChainClient.CallView(c.ContractHname, functionName, args, optimisticReadTimeout...)
}

repository: BugFreeSoftware/wasp

repo_name: BugFreeSoftware/wasp


text:
package main

import (
	"github.com/sirupsen/logrus"
	"github.com/spf13/cobra"
	"github.com/spf13/viper"

	"github.com/PI-Victor/nail/pkg/cli"
)

var rootCmd = &cobra.Command{
	Use:   "nail - \"nail\" your microservices versions in place under one common platform",
	Short: "nail",
	Run: func(cmd *cobra.Command, args []string) {
		cmd.Help()
	},
}

func main() {
	rootCmd.AddCommand(
		cli.AddRepo,
		cli.CreateRelease,
		cli.ValidateRelease,
		cli.InitPlatform,
		cli.DeployRelease,
	)

	if err := rootCmd.Execute(); err != nil {
		logrus.Fatalf("Failed loading commands: %#v", err)
	}
}

func init() {
	viper.SetConfigName(".config")
	viper.SetConfigType("yaml")
	viper.AddConfigPath(".")
	if err := viper.ReadInConfig(); err != nil {
		logrus.Errorf("An error occured while reading the configuration: %#v", err)
	}
	logLevel := viper.Get("log_level").(int)
	l := logrus.Level(logLevel)
	logrus.SetLevel(l)
}

repository: PI-Victor/nail

repo_name: PI-Victor/nail


text:
#Angstrom image to test systemd

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690"

IMAGE_PREPROCESS_COMMAND = "rootfs_update_timestamp ;"

DISTRO_UPDATE_ALTERNATIVES ??= ""
ROOTFS_PKGMANAGE_PKGS ?= '${@oe.utils.conditional("ONLINE_PACKAGE_MANAGEMENT", "none", "", "${ROOTFS_PKGMANAGE} ${DISTRO_UPDATE_ALTERNATIVES}", d)}'

IMAGE_FEATURES += "empty-root-password allow-empty-password"
CONMANPKGS ??= ""

IMAGE_INSTALL += " \
	angstrom-packagegroup-boot \
	packagegroup-basic \
	${ROOTFS_PKGMANAGE_PKGS} \
	update-alternatives-opkg \
	systemd-analyze \
	cpufreq-tweaks \
        fixmac \
	bash tar wget curl screen rsync procps pigz \
	dracut \
	collectd net-snmp \
        e2fsprogs-resize2fs gptfdisk parted util-linux \
        linux-firmware \
	kernel-modules \
	sch-cake \
        domoticz \
        ${CONMANPKGS} \
"

IMAGE_DEV_MANAGER   = "udev"
IMAGE_INIT_MANAGER  = "systemd"
IMAGE_INITSCRIPTS   = " "
IMAGE_LOGIN_MANAGER = "busybox shadow"

export IMAGE_BASENAME = "Domoticz-image"

IMAGE_PREPROCESS_COMMAND += "do_systemd_network ; "

do_systemd_network () {
	install -d ${IMAGE_ROOTFS}${sysconfdir}/systemd/network
	cat << EOF > ${IMAGE_ROOTFS}${sysconfdir}/systemd/network/10-en.network
[Match]
Name=en*

[Network]
DHCP=yes
EOF

	cat << EOF > ${IMAGE_ROOTFS}${sysconfdir}/systemd/network/11-eth.network
[Match]
Name=eth*

[Network]
DHCP=yes
EOF
}

inherit image

repository: koenkooi/meta-dominion

repo_name: koenkooi/meta-dominion

gha_language: BitBake


text:
require ${BPN}.inc

inherit native

DEPENDS += " \
    kconfig-native \
    kcoreaddons-native \
    ki18n-native \
"

SRC_URI += " \
	file://0003-only-build-kf5-config-for-native.patch \
"


text:
package main

import "fmt"

func main() {
	// Declaring Variables
	var i int
	i = 42
	fmt.Println(i)

	var f float32 = 43.2
	fmt.Println(f)

	// Implicid
	d := "Pesho"
	fmt.Println(d)

	bo := true
	fmt.Println(bo)

	c := complex(3, 4)
	fmt.Println(c)

	r, im := real(c), imag(c)
	fmt.Println(r, im)
}

branch_name: refs/heads/main


text:
// Copyright Fuzamei Corp. 2018 All Rights Reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package ecdsa

import (
	"bytes"
	"errors"
	"fmt"

	"crypto/ecdsa"
	"crypto/elliptic"
	"crypto/rand"
	"encoding/asn1"
	"math/big"

	"github.com/33cn/chain33/common/crypto"
)

const (
	privateKeyECDSALength = 32
	publicKeyECDSALength  = 65
)

// Driver driver
type Driver struct{}

// GenKey create private key
func (d Driver) GenKey() (crypto.PrivKey, error) {
	privKeyBytes := [privateKeyECDSALength]byte{}
	copy(privKeyBytes[:], crypto.CRandBytes(privateKeyECDSALength))
	priv, _ := privKeyFromBytes(elliptic.P256(), privKeyBytes[:])
	copy(privKeyBytes[:], SerializePrivateKey(priv))
	return PrivKeyECDSA(privKeyBytes), nil
}

// PrivKeyFromBytes create private key from bytes
func (d Driver) PrivKeyFromBytes(b []byte) (privKey crypto.PrivKey, err error) {
	if len(b) != privateKeyECDSALength {
		return nil, errors.New("invalid priv key byte")
	}

	privKeyBytes := new([privateKeyECDSALength]byte)
	copy(privKeyBytes[:], b[:privateKeyECDSALength])
	priv, _ := privKeyFromBytes(elliptic.P256(), privKeyBytes[:])

	copy(privKeyBytes[:], SerializePrivateKey(priv))
	return PrivKeyECDSA(*privKeyBytes), nil
}

// PubKeyFromBytes create public key from bytes
func (d Driver) PubKeyFromBytes(b []byte) (pubKey crypto.PubKey, err error) {
	if len(b) != publicKeyECDSALength {
		return nil, errors.New("invalid pub key byte")
	}
	pubKeyBytes := new([publicKeyECDSALength]byte)
	copy(pubKeyBytes[:], b[:])
	return PubKeyECDSA(*pubKeyBytes), nil
}

// SignatureFromBytes create signature from bytes
func (d Driver) SignatureFromBytes(b []byte) (sig crypto.Signature, err error) {
	var certSignature crypto.CertSignature
	_, err = asn1.Unmarshal(b, &certSignature)
	if err != nil {
		return SignatureECDSA(b), nil
	}

	if len(certSignature.Cert) == 0 {
		return SignatureECDSA(b), nil
	}

	return SignatureECDSA(certSignature.Signature), nil
}

// PrivKeyECDSA PrivKey
type PrivKeyECDSA [privateKeyECDSALength]byte

// Bytes convert to bytes
func (privKey PrivKeyECDSA) Bytes() []byte {
	s := make([]byte, privateKeyECDSALength)
	copy(s, privKey[:])
	return s
}

// Sign create signature
func (privKey PrivKeyECDSA) Sign(msg []byte) crypto.Signature {
	priv, pub := privKeyFromBytes(elliptic.P256(), privKey[:])
	r, s, err := ecdsa.Sign(rand.Reader, priv, crypto.Sha256(msg))
	if err != nil {
		return nil
	}

	s = ToLowS(pub, s)
	ecdsaSigByte, _ := MarshalECDSASignature(r, s)
	return SignatureECDSA(ecdsaSigByte)
}

// PubKey convert to public key
func (privKey PrivKeyECDSA) PubKey() crypto.PubKey {
	_, pub := privKeyFromBytes(elliptic.P256(), privKey[:])
	var pubECDSA PubKeyECDSA
	copy(pubECDSA[:], SerializePublicKey(pub))
	return pubECDSA
}

// Equals check privkey is equal
func (privKey PrivKeyECDSA) Equals(other crypto.PrivKey) bool {
	if otherSecp, ok := other.(PrivKeyECDSA); ok {
		return bytes.Equal(privKey[:], otherSecp[:])
	}

	return false
}

// String convert to string
func (privKey PrivKeyECDSA) String() string {
	return fmt.Sprintf("PrivKeyECDSA{*****}")
}

// PubKeyECDSA PubKey
// prefixed with 0x02 or 0x03, depending on the y-cord.
type PubKeyECDSA [publicKeyECDSALength]byte

// Bytes convert to bytes
func (pubKey PubKeyECDSA) Bytes() []byte {
	s := make([]byte, publicKeyECDSALength)
	copy(s, pubKey[:])
	return s
}

// VerifyBytes verify signature
func (pubKey PubKeyECDSA) VerifyBytes(msg []byte, sig crypto.Signature) bool {
	// unwrap if needed
	if wrap, ok := sig.(SignatureS); ok {
		sig = wrap.Signature
	}
	// and assert same algorithm to sign and verify
	sigECDSA, ok := sig.(SignatureECDSA)
	if !ok {
		return false
	}

	pub, err := parsePubKey(pubKey[:], elliptic.P256())
	if err != nil {
		return false
	}

	r, s, err := UnmarshalECDSASignature(sigECDSA)
	if err != nil {
		return false
	}

	lowS := IsLowS(s)
	if !lowS {
		return false
	}
	return ecdsa.Verify(pub, crypto.Sha256(msg), r, s)
}

// String convert to string
func (pubKey PubKeyECDSA) String() string {
	return fmt.Sprintf("PubKeyECDSA{%X}", pubKey[:])
}

// KeyString Must return the full bytes in hex.
// Used for map keying, etc.
func (pubKey PubKeyECDSA) KeyString() string {
	return fmt.Sprintf("%X", pubKey[:])
}

// Equals check public key is equal
func (pubKey PubKeyECDSA) Equals(other crypto.PubKey) bool {
	if otherSecp, ok := other.(PubKeyECDSA); ok {
		return bytes.Equal(pubKey[:], otherSecp[:])
	}
	return false
}

type signatureECDSA struct {
	R, S *big.Int
}

// SignatureECDSA Signature
type SignatureECDSA []byte

// SignatureS signature struct
type SignatureS struct {
	crypto.Signature
}

// Bytes convert signature to bytes
func (sig SignatureECDSA) Bytes() []byte {
	s := make([]byte, len(sig))
	copy(s, sig[:])
	return s
}

// IsZero check signature is zero
func (sig SignatureECDSA) IsZero() bool { return len(sig) == 0 }

// String convert signature to string
func (sig SignatureECDSA) String() string {
	fingerprint := make([]byte, len(sig[:]))
	copy(fingerprint, sig[:])
	return fmt.Sprintf("/%X.../", fingerprint)

}

// Equals check signature equals
func (sig SignatureECDSA) Equals(other crypto.Signature) bool {
	if otherEd, ok := other.(SignatureECDSA); ok {
		return bytes.Equal(sig[:], otherEd[:])
	}
	return false
}

// Name name
const Name = "auth_ecdsa"

// ID id
const ID = 257

func init() {
	crypto.Register(Name, &Driver{})
	crypto.RegisterType(Name, ID)
}

func privKeyFromBytes(curve elliptic.Curve, pk []byte) (*ecdsa.PrivateKey, *ecdsa.PublicKey) {
	x, y := curve.ScalarBaseMult(pk)

	priv := &ecdsa.PrivateKey{
		PublicKey: ecdsa.PublicKey{
			Curve: curve,
			X:     x,
			Y:     y,
		},
		D: new(big.Int).SetBytes(pk),
	}

	return priv, &priv.PublicKey
}


text:
The collection of economics, statistics and econometrics

@article{blackwell1957identifiability,
  title={On the identifiability problem for functions of finite Markov chains},
  author={Blackwell, David and Koopmans, Lambert},
  journal={The Annals of Mathematical Statistics},
  pages={1011--1015},
  year={1957},
  publisher={JSTOR}
}

@book{rasch1960probabilistic,
  title={Probabilistic models for some intelligence and attainment tests.},
  author={Rasch, Georg},
  year={1960},
  publisher={ERIC}
}

@book{lord1980applications,
  title={Applications of item response theory to practical testing problems},
  author={Lord, Frederic M},
  year={1980},
  publisher={Routledge}
}

@article{hansen1982large,
  title={Large sample properties of generalized method of moments estimators},
  author={Hansen, Lars Peter},
  journal={Econometrica: Journal of the Econometric Society},
  pages={1029--1054},
  year={1982},
  publisher={JSTOR}
}

@article{heckman1984identifiability,
  title={The identifiability of the proportional hazard model},
  author={Heckman, James and Singer, Burton},
  journal={The Review of Economic Studies},
  volume={51},
  number={2},
  pages={231--241},
  year={1984},
  publisher={Oxford University Press}
}

@article{holland1986conditional,
  title={Conditional association and unidimensionality in monotone latent variable models},
  author={Holland, Paul W and Rosenbaum, Paul R},
  journal={The Annals of Statistics},
  pages={1523--1543},
  year={1986},
  publisher={JSTOR}
}

@article{rabiner1989tutorial,
  title={A tutorial on hidden Markov models and selected applications in speech recognition},
  author={Rabiner, Lawrence R},
  journal={Proceedings of the IEEE},
  volume={77},
  number={2},
  pages={257--286},
  year={1989},
  publisher={IEEE}
}

@article{leroux1992maximum,
  title={Maximum-likelihood estimation for hidden Markov models},
  author={Leroux, Brian G},
  journal={Stochastic processes and their applications},
  volume={40},
  number={1},
  pages={127--143},
  year={1992},
  publisher={Elsevier}
}

@article{ito1992identifiability,
  title={Identifiability of hidden Markov information sources and their minimum degrees of freedom},
  author={Ito, Hisashi and Amari, S-I and Kobayashi, Kingo},
  journal={IEEE transactions on information theory},
  volume={38},
  number={2},
  pages={324--333},
  year={1992},
  publisher={IEEE}
}

@article{gilks1992adaptive,
  title={Adaptive rejection sampling for Gibbs sampling},
  author={Gilks, Walter R and Wild, Pascal},
  journal={Applied Statistics},
  pages={337--348},
  year={1992},
  publisher={JSTOR}
}

@article{dellaportas1993bayesian,
  title={Bayesian inference for generalized linear and proportional hazards models via Gibbs sampling},
  author={Dellaportas, P and Smith, Adrian FM},
  journal={Applied Statistics},
  pages={443--459},
  year={1993},
  publisher={JSTOR}
}

@article{chib1996calculating,
  title={Calculating posterior distributions and modal estimates in Markov mixture models},
  author={Chib, Siddhartha},
  journal={Journal of Econometrics},
  volume={75},
  number={1},
  pages={79--97},
  year={1996},
  publisher={Elsevier}
}

@article{ham1996effect,
  title={The effect of sample selection and initial conditions in duration models: Evidence from experimental data on training},
  author={Ham, John C and LaLonde, Robert J},
  journal={Econometrica: Journal of the Econometric Society},
  pages={175--205},
  year={1996},
  publisher={JSTOR}
}

@article{cameron1998life,
  title={Life cycle schooling and dynamic selection bias: Models and evidence for five cohorts of American males},
  author={Cameron, Stephen V and Heckman, James J},
  journal={The Journal of Political Economy},
  volume={106},
  number={2},
  pages={262},
  year={1998},
  publisher={University of Chicago, acting through its Press}
}

@article{scott2002bayesian,
  title={Bayesian Methods for Hidden Markov Models: Recursive Computing in the 21st Century},
  author={Scott, Steven L},
  journal={Journal of the American Statistical Association},
  year={2002}
}

@article{ephraim2002hidden,
  title={Hidden markov processes},
  author={Ephraim, Yariv and Merhav, Neri},
  journal={IEEE Transactions on information theory},
  volume={48},
  number={6},
  pages={1518--1569},
  year={2002},
  publisher={IEEE}
}

@book{greene2003econometric,
  title={Econometric analysis},
  author={Greene, William H},
  year={2003},
  publisher={Pearson Education India}
}

@book{kleinbaum2006survival,
  title={Survival analysis: a self-learning text},
  author={Kleinbaum, David G and Klein, Mitchel},
  year={2006},
  publisher={Springer Science \& Business Media}
}

@article{heckman2007econometric,
  title={Econometric evaluation of social programs, part I: Causal models, structural models and econometric policy evaluation},
  author={Heckman, James J and Vytlacil, Edward J},
  journal={Handbook of econometrics},
  volume={6},
  pages={4779--4874},
  year={2007},
  publisher={Elsevier}
}

@book{metcalfe2011student,
  title={Student effort and educational attainment: Using the England football team to identify the education production function},
  author={Metcalfe, Robert and Burgess, Simon and Proud, Steven and others},
  year={2011},
  publisher={Centre for Market and Public Organisation Bristol}
}
@Misc{Carlson2013IRT,
  author =   {Carlson, James E.},
  title =    {Item Response Theory},
  howpublished = {\url{https://www.ets.org/Media/Research/pdf/RR-13-28.pdf}},
  month =    {December},
  year =     2013
}

@article{levitt2013behavioralist,
  title={The behavioralist goes to school: Leveraging behavioral economics to improve educational performance},
  author={Levitt, Steven and List, John and Neckermann, Susanne and Sadoff, Sally},
  journal={Framed Field Experiments},
  volume={379},
  year={2013},
  publisher={Citeseer}
}

@article{taylor2015new,
  title={New Technology and Teacher Productivity},
  author={Taylor, Eric S},
  year={2015}
}

@article{zamarro2016comparing,
  title={Comparing and validating measures of character skills: Findings from a nationally representative sample (EDRE Working Paper 2016-08)},
  author={Zamarro, G and Cheng, A and Shakeel, M and Hitt, C},
  journal={Fayetteville, AR: Department of Education Reform, University of Arkansas},
  year={2016}
}

@article{burgess2016understanding,
  title={Understanding the response to financial and non-financial incentives in education: Field experimental evidence using high-stakes assessments},
  author={Burgess, Simon M and Metcalfe, Robert D and Sadoff, Sally},
  year={2016}
}

repository: junchenfeng/thesis

repo_name: junchenfeng/thesis


text:
package utils

import (
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestAll(t *testing.T) {
	assert.Equal(t, []byte{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1}, U64ToB(1))
	assert.Equal(t, uint64(1), U64([]byte{0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1}))
}

repository: gaecom/baetyl

repo_name: gaecom/baetyl


text:
SUMMARY = "matplotlib: plotting with Python"
DESCRIPTION = "\
Matplotlib is a Python 2D plotting library which produces \
publication-quality figures in a variety of hardcopy formats \
and interactive environments across platforms."
HOMEPAGE = "https://github.com/matplotlib/matplotlib"
SECTION = "devel/python"
LICENSE = "PSF-2.0"
LIC_FILES_CHKSUM = "\
    file://setup.py;beginline=293;endline=293;md5=20e7ab4d2b2b1395a0e4ab800181eb96 \
    file://LICENSE/LICENSE;md5=afec61498aa5f0c45936687da9a53d74 \
"

DEPENDS = "\
    freetype \
    libpng \
    python3-numpy-native \
    python3-pip-native \
    python3-dateutil-native \
    python3-pytz-native \
    python3-certifi-native \
    python3-setuptools-scm-native \
    python3-pybind11-native \
"
SRC_URI[sha256sum] = "a8cdb91dddb04436bd2f098b8fdf4b81352e68cf4d2c6756fcc414791076569b"

inherit pypi setuptools3 pkgconfig

# Stop the component from attempting to download when it detects a missing
# dependency
SRC_URI += "file://matplotlib-disable-download.patch \
"

# This python module requires a full copy of freetype-2.6.1
SRC_URI += "https://downloads.sourceforge.net/project/freetype/freetype2/2.6.1/freetype-2.6.1.tar.gz;name=freetype;subdir=matplotlib-${PV}/build"
SRC_URI[freetype.sha256sum] = "0a3c7dfbda6da1e8fce29232e8e96d987ababbbf71ebc8c75659e4132c367014"

# This python module requires a full copy of 'qhull-2020'
SRC_URI += "http://www.qhull.org/download/qhull-2020-src-8.0.2.tgz;name=qhull;subdir=matplotlib-${PV}/build"
SRC_URI[qhull.sha256sum] = "b5c2d7eb833278881b952c8a52d20179eab87766b00b865000469a45c1838b7e"

# LTO with clang needs lld
LDFLAGS:append:toolchain-clang = " -fuse-ld=lld"
LDFLAGS:remove:toolchain-clang:mips = "-fuse-ld=lld"
LDFLAGS:remove:toolchain-clang:riscv64 = "-fuse-ld=lld"
LDFLAGS:remove:toolchain-clang:riscv32 = "-fuse-ld=lld"
RDEPENDS:${PN} = "\
    freetype \
    libpng \
    python3-numpy \
    python3-pyparsing \
    python3-cycler \
    python3-dateutil \
    python3-kiwisolver \
    python3-pytz \
    python3-pillow \
    python3-packaging \
"

ENABLELTO:toolchain-clang:riscv64 = "echo enable_lto = False >> ${S}/mplsetup.cfg"
ENABLELTO:toolchain-clang:riscv32 = "echo enable_lto = False >> ${S}/mplsetup.cfg"
ENABLELTO:toolchain-clang:mips = "echo enable_lto = False >> ${S}/mplsetup.cfg"

do_compile:prepend() {
    echo [libs] > ${S}/mplsetup.cfg
    echo system_freetype = True >> ${S}/mplsetup.cfg
    ${ENABLELTO}
}

BBCLASSEXTEND = "native"

repository: openembedded/meta-openembedded

repo_name: openembedded/meta-openembedded


text:
HOMEPAGE = "https://www.freedesktop.org/software/PackageKit/index.html"
SUMMARY = "QT5 binding for PackageKit "
DESCRIPTION = "PackageKit is a system designed to make installing and updating \
software on your computer easier. The primary design goal is to unify all the \
software graphical tools used in different distributions, and use some of the \
latest technology like PolicyKit. "

LICENSE = "LGPL-2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"

SRC_URI = " \
    https://www.freedesktop.org/software/PackageKit/releases/PackageKit-Qt-1.1.1.tar.xz \
"

S = "${WORKDIR}/PackageKit-Qt-1.1.1"

SRC_URI[sha256sum] = "8ad57523dbfd5a4b2086fa420b8ded63024e12efb8ca0ac42db767842e506212"

inherit cmake_qt5 pkgconfig

DEPENDS = " \
    qtbase \
    packagekit \
"


text:
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

#
# Finduv
# ------
#
# Imported Targets
# ^^^^^^^^^^^^^^^^
#
# An imported target named ``uv::uv`` is provided if libuv has been found.
#
# Result Variables
# ^^^^^^^^^^^^^^^^
#
# This module defines the following variables:
#
# ``uv_FOUND``
#   True if libuv was found, false otherwise.
# ``uv_LIBRARY_DIRS``
#   The path(s) to uv libraries.
# ``uv_VERSION``
#   The version of libuv found.
#

find_package(PkgConfig QUIET)

if((NOT TP_BUILD_LIBUV) AND PkgConfig_FOUND)
  pkg_check_modules(uv QUIET IMPORTED_TARGET GLOBAL libuv)
  if(uv_FOUND)
    add_library(uv::uv ALIAS PkgConfig::uv)
  endif()
endif()

if(NOT uv_FOUND)
  set(uv_VERSION "1.37.0")
  set(uv_LIBRARY_DIRS "submodule")

  add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/libuv
    ${PROJECT_BINARY_DIR}/third_party/libuv)

  add_library(uv::uv ALIAS uv_a)
  set_target_properties(uv_a PROPERTIES POSITION_INDEPENDENT_CODE 1)
endif()

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(uv
  REQUIRED_VARS uv_VERSION
  VERSION_VAR uv_VERSION)

repository: peijason/tensorpipe

repo_name: peijason/tensorpipe

extension: cmake


text:
package client

import (
	"bytes"
	"encoding/json"
	"io/ioutil"
	"net/http"
	"net/http/httptest"
	"strings"

	"github.com/liimaorg/liimactl/client/util"
)

//MockClient used for mocking http client
type MockClient struct{}

var ts httptest.Server

//CloseMockClient will close the started test server
func CloseMockClient() {
	defer ts.Close()
}

// NewMockClient creates a new liima client from the config
func NewMockClient(config *Config) (*Client, error) {

	//Set Server with handlers
	mux := serverMuxHandler()
	ts := httptest.NewServer(mux)
	//set localhost in config
	config.Host = ts.URL + "/"

	return &Client{
		client: http.DefaultClient,
		config: config,
		url:    ts.URL,
	}, nil
}

// Creates a new Liima client with mocked http.Client
func NewMockClientWithCustomHttpClient(client *http.Client) *Client {
	var config = Config{Username: "", Password: "", Host: ""}
	return &Client{
		client: client,
		config: &config,
		url:    "",
	}
}

//Mux Http handlers
func serverMuxHandler() *http.ServeMux {
	r := http.NewServeMux()

	// Deployment test handler
	r.HandleFunc("/resources/deployments", listDeploymentHandler)

	// Deployment filter test handler
	r.HandleFunc("/resources/deployments/filter", listDeploymentFilterHandler)

	//Hostname test handler
	r.HandleFunc("/resources/hostNames", listHostnameHandler)

	return r
}

//Deployment test handler
func listDeploymentHandler(w http.ResponseWriter, r *http.Request) {

	//POST (Problem: r.Method is always GET -> Check POST, GET over URL)
	if r.URL.String() == "/resources/deployments" {

		//Create  response
		response := Deployments{{}}
		response[0].State = DeploymentStateSuccess

		//Send response
		deployment, err := json.Marshal(response[0])
		if err != nil {

			w.WriteHeader(http.StatusInternalServerError)
			return
		}
		w.Write(deployment)

		//GET
	} else {
		w.WriteHeader(http.StatusNotFound)
	}

}

//Deployment filter test handler
func listDeploymentFilterHandler(w http.ResponseWriter, r *http.Request) {

	testapp := []struct {
		ApplicationName string `json:"applicationName"`
		Version         string `json:"version"`
	}{
		{"testapp", "1.0"},
	}

	//Create  response
	response := Deployments{{}}
	response[0].AppServerName = "Test"
	response[0].AppsWithVersion = testapp
	response[0].State = DeploymentStateSuccess

	//Send response
	deployment, err := json.Marshal(response)
	if err != nil {

		w.WriteHeader(http.StatusInternalServerError)
		return
	}
	w.Write(deployment)

}

//Hostname test handler
func listHostnameHandler(w http.ResponseWriter, r *http.Request) {

	//Create hostname response
	respHostname := Hostnames{{}}

	//Split the requested Url
	cuttedURL := strings.Split(r.URL.String(), "?")[1]
	//Split the subcommands
	commands := strings.Split(cuttedURL, "&")
	//Set the requested command-value as respond if a tag exits in the hostename
	for _, command := range commands {
		key := strings.Split(command, "=")[0]
		value := strings.Split(command, "=")[1]
		util.SetValueIfTagExists(&respHostname[0], key, value)
	}
	//Send hostname as response
	hostname, err := json.Marshal(respHostname)
	if err != nil {
		w.WriteHeader(http.StatusInternalServerError)
		return
	}
	w.Write(hostname)
}

//DoRequest set up a json for the given url and calls the llima client.
//Method: http.MethodX
//URL: Resturl
//The bodyType will be marshaled to the rest body, depending the method
//The result will be unmarshaled to the responseType
func (c *MockClient) DoRequest(method string, url string, bodyType interface{}, responseType interface{}) error {

	//Setup body if MethodPost
	bData := []byte{}
	if method == http.MethodPost {
		bData, err := json.Marshal(bodyType)
		if err != nil {
			return err
		}
		_ = bData
	}

	var bodydata = bytes.NewBuffer(bData)

	// Dump response
	data, err := ioutil.ReadAll(bodydata)
	if err != nil {
		return err
	}

	//Unmarshal json respond to responseType
	return json.Unmarshal(data, responseType)

}

repository: liimaorg/liimactl

repo_name: liimaorg/liimactl


text:
SUMMARY = "Qt5 OpenGL ES 2.0 Test Application"
DESCRIPTION = "This application is used to test OpenGL ES 2.0 rendering \
in a simple QWindow, plus multi-touch input, window orientation, window \
focus handling and some other game-related features."
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/main.cpp;beginline=1;endline=26;md5=93b83ece006c9e76b9fca80c3aecb169"

PV = "1.0.4+gitr${SRCPV}"

DEPENDS = "qtbase qtsensors"

# Depends on gles2 enabled and that's not default configuration
EXCLUDE_FROM_WORLD = "1"

SRC_URI = "git://github.com/smk-embedded/qt5-opengles2-test.git"
SRCREV = "938390507054ed1258345f70ed55770d2fe56176"
S = "${WORKDIR}/git"

inherit qmake5


text:
// Copyright 2014 Kevin Bowrin All rights reserved.
// Use of this source code is governed by the MIT
// license that can be found in the LICENSE file.

package main

import (
	"os"
	"testing"
)

repository: joemontibello/tyro

repo_name: joemontibello/tyro


text:
include recipes-kernel/linux/kmeta-linux-lmp-5.10.y.inc

LINUX_VERSION ?= "5.10.41"
KBRANCH = "ti-linux-5.10.y"
SRCREV_machine = "4c2eade9f722838b0e457650368cba1c6c7483c2"
SRCREV_meta = "${KERNEL_META_COMMIT}"

TI_DEFCONFIG_BUILDER_TARGET ?= "ti_sdk_arm64_release"
KBUILD_DEFCONFIG ?= "${TI_DEFCONFIG_BUILDER_TARGET}_defconfig"

LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"

# add device-tree to rootfs
RDEPENDS_${KERNEL_PACKAGE_NAME}-base_append_lmp-base = " kernel-devicetree"

SRC_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=${KBRANCH};name=machine; \
    ${KERNEL_META_REPO};protocol=${KERNEL_META_REPO_PROTOCOL};type=kmeta;name=meta;branch=${KERNEL_META_BRANCH};destsuffix=${KMETA} \
"

SRC_URI_append_am64xx-evm = " \
    file://0001-arm64-dts-ti-k3-am642-sk-Enable-WLAN-connected-to-SD.patch \
"

KMETA = "kernel-meta"

do_kernel_metadata_prepend() {
    cd ${S}
    ti_config_fragments/defconfig_builder.sh -t ${TI_DEFCONFIG_BUILDER_TARGET}
}

include recipes-kernel/linux/linux-lmp.inc

repository: ricardosalveti/meta-lmp

repo_name: ricardosalveti/meta-lmp


text:
package main

//nexter是一个接口类型，并且定义了一个next()方法读取下一字节。函数nextFew1将nexter接口作为参数并读取接下来n个字节，并返回一个切片；这是正确的做法。但是nextFew2是使用一个指向nexter接口类型的指针作为参数传递给函数：当使用next()函数时，系统会给出一个编译错误：n.next() undefined(type *nexter has no field or method next)

type nexter interface {
	next() byte
}

func nextFew1(n nexter, num int) []byte {
	var b []byte
	for i := 0; i< num;i++ {
		b[i] = n.next()
	}
	return b
}

func nextFew2(n *nexter, num int) []byte {
	var b []byte
	for i := 0; i< num;i++ {
		b[i] = n.next()//编译错误：n.next未定义(*nexter类型没有next方法或next成员)
	}
	return b
}

//永远不要使用一个指针指向一个接口类型，因为它已经是一个指针。

repository: fengjijiao/go-code

path: /16.6使用指针指向接口类型.go

path: /16.6使用指针指向接口类型.go

repo_name: fengjijiao/go-code

filename: 16.6使用指针指向接口类型.go


text:
package core

import (
	"github.com/unjello/gb/layout"
)

type BuildInfo struct {
	Cxx        string
	CxxOptions string
	Project    layout.ProjectInfo
}

func NewBuildInfo() BuildInfo {
	return BuildInfo{}
}

repository: unjello/gb

repo_name: unjello/gb


text:
@article{Martins2013,
  author = {Martins, Joaquim R. R. A. and Lambe, Andrew B.},
  doi = {10.2514/1.J051895},
  journal = {AIAA Journal},
  month = sep,
  number = {9},
  pages = {2049--2075},
  title = {Multidisciplinary Design Optimization: A Survey of Architectures},
  volume = {51},
  year = {2013}
}

@inproceedings{gray2014derivatives,
Author = {Justin S. Gray and Tristan A. Hearn and Kenneth T. Moore and John Hwang and Joaquim Martins and Andrew Ning},
Booktitle = "{15th AIAA/ISSMO Multidisciplinary Analysis and Optimization Conference}",
Doi = {doi:10.2514/6.2014-2042},
Month = {2014/07/08},
Publisher = {American Institute of Aeronautics and Astronautics},
Title = "{Automatic Evaluation of Multidisciplinary Derivatives Using a Graph-Based Problem Formulation in OpenMDAO}",
Url = {http://dx.doi.org/10.2514/6.2014-2042},
Year = {2014},
pdf = {http://openmdao.org/pubs/Gray_Hearn_Moore_EtAl-_2014_-Multidisciplinary_Derivatives.pdf}
}

@article{Gray2019a,
Author = {Justin S. Gray and John T. Hwang and Joaquim R. R. A. Martins and Kenneth T. Moore and Bret A. Naylor},
Doi = {10.1007/s00158-019-02211-z},
Journal = {Structural and Multidisciplinary Optimization},
Month = {April},
Number = {4},
Pages = {1075--1104},
Title = {{OpenMDAO}: An open-source framework for multidisciplinary design, analysis, and optimization},
Volume = {59},
Year = {2019},
pdf = {https://link.springer.com/article/10.1007/s00158-019-02211-z}
}

@article{Herman1996,
author = {Herman, Albert L. and Conway, Bruce A.},
title = {Direct optimization using collocation based on high-order {Gauss-Lobatto} quadrature rules},
journal = {Journal of Guidance, Control, and Dynamics},
volume = {19},
number = {3},
pages = {592-599},
year = {1996},
doi = {10.2514/3.21662},
}

@inproceedings{Garg2009,
author = {Divya Garg and Michael Patterson and Christopher Darby and Camila Francolin and Geoffrey Huntington and William Hager and Anil Rao},
title = {Direct Trajectory Optimization and Costate Estimation of General Optimal Control Problems Using a Radau Pseudospectral Method},
booktitle = {AIAA Guidance, Navigation, and Control Conference},
doi = {10.2514/6.2009-5989},
URL = {https://arc.aiaa.org/doi/abs/10.2514/6.2009-5989},
year = {2009}
}

@article{Seywald1994,
author = {Seywald, Hans},
title = {Trajectory optimization based on differential inclusion (Revised)},
publisher = {American Institute of Aeronautics and Astronautics},
journal = {Journal of Guidance, Control, and Dynamics},
volume = {17},
number = {3},
pages = {480-487},
year = {1994},
doi = {10.2514/3.21224},
}

@inproceedings{Hariton2020a,
author = {Eric S. Hendricks and Eliot D. Aretskin-Hariton and Daniel J. Ingraham and Justin S. Gray and Sydney L. Schnulo and Jeffrey C. Chin and Robert D. Falck and Dustin L. Hall},
title = {Multidisciplinary Optimization of an Electric Quadrotor Urban Air Mobility Aircraft},
booktitle = {AIAA Aviation 2020 Forum },
doi = {10.2514/6.2020-3176},
URL = {https://arc.aiaa.org/doi/abs/10.2514/6.2020-3176},
year = {2020},
}

@inproceedings{Ingraham2020a,
author = {Daniel Ingraham and Robert Falck and Justin S. Gray},
title = {Blade and Trajectory Optimization of a Propeller -Driven Electric Aircraft with Acoustic Constraints},
booktitle = {AIAA Aviation 2020 Forum},
doi = {10.2514/6.2020-3141},
URL = {https://arc.aiaa.org/doi/abs/10.2514/6.2020-3141},
year = {2020},
}

@inproceedings{Falck2017a,
Address = {Denver, CO},
Author = {Falck, Robert D. and Chin, Jeffrey C. and Schnulo, Sydney L. and Burt, Jonathan M. and Gray, Justin S.},
Booktitle = "{18th AIAA/ISSMO Multidisciplinary Analysis and Optimization Conference}",
Month = {June},
Title = "{Trajectory Optimization of Electric Aircraft Subject to Subsystem Thermal Constraints}",
Year = {2017},
pdf = {http://openmdao.org/pubs/falck_traj_opt_electric_2017.pdf},
doi={10.2514/6.2017-4002}
}

@inproceedings {Schnulo2018a,
title = "{Development of a Multi-Segment Mission Planning Tool for SCEPTOR X-57}",
booktitle = "{2018 Multidisciplinary Analysis and Optimization Conference}",
year = {2018},
month = {6},
publisher = {AIAA},
address = {Atlanta, GA},
author = {Sydney L. Schnulo and Jeff Chin, Robert D. Falck and Justin S. Gray and Kurt V. Papathakis and Sean C. Clarke and Nickelle Reid and Nicholas K. Borer},
notes={AIAA 2018-3976},
doi={10.2514/6.2018-3738},
pdf={http://openmdao.org/pubs/x57_mpt_2018.pdf}
}

@inproceedings{Schnulo2019a,
author = {Sydney L. Schnulo and Dustin L. Hall and Jeffrey C, Chin},
title = {Further Development and Validation of NASA X-57 Maxwell Mission Planning Tool for Mods III and IV},
booktitle = {AIAA Propulsion and Energy 2019 Forum},
doi = {10.2514/6.2019-4491},
year = {2019}
}

@inproceedings{Jasa2018a,
author = {John P. Jasa and Charles A. Mader and Joaquim Martins},
title = {Trajectory Optimization of a Supersonic Aircraft with a Thermal Fuel Management System},
booktitle = {2018 Multidisciplinary Analysis and Optimization Conference},
doi = {10.2514/6.2018-3884},
year = {2018}
}

@article{Wu_pyoptsparse_2020,
    author = {Neil Wu and Gaetan Kenway and Charles A. Mader and John Jasa and
     Joaquim R. R. A. Martins},
    title = {{pyOptSparse:} A {Python} framework for large-scale constrained
     nonlinear optimization of sparse systems},
    journal = {Journal of Open Source Software},
    volume = {5},
    number = {54},
    month = {October},
    year = {2020},
    pages = {2564},
    doi = {10.21105/joss.02564},
    publisher = {The Open Journal},
}

@article {GilMS05,
 AUTHOR = {Gill, Philip E. and Murray, Walter and Saunders, Michael A.},
 TITLE = {{SNOPT}: An {SQP} algorithm for large-scale constrained optimization},
 JOURNAL = {SIAM Review},
 PAGES = {99--131},
 VOLUME = {47},
 YEAR = {2005},
 doi = {10.1137/S0036144504446096}
}

@article{wachter2006,
author = {W\"{a}chter, Andreas and Biegler, Lorenz T.},
title = {On the Implementation of an Interior-Point Filter Line-Search Algorithm for Large-Scale Nonlinear Programming},
year = {2006},
publisher = {Springer-Verlag},
address = {Berlin, Heidelberg},
volume = {106},
number = {1},
issn = {0025-5610},
journal = {Mathematical Programming},
month = mar,
pages = {25–57},
numpages = {33},
doi={10.1007/s10107-004-0559-y}
}

@article{2020SciPy-NMeth,
       author = {{Virtanen}, Pauli and {Gommers}, Ralf and {Oliphant},
         Travis E. and {Haberland}, Matt and {Reddy}, Tyler and
         {Cournapeau}, David and {Burovski}, Evgeni and {Peterson}, Pearu
         and {Weckesser}, Warren and {Bright}, Jonathan and {van der Walt},
         St{\'e}fan J.  and {Brett}, Matthew and {Wilson}, Joshua and
         {Jarrod Millman}, K.  and {Mayorov}, Nikolay and {Nelson}, Andrew
         R.~J. and {Jones}, Eric and {Kern}, Robert and {Larson}, Eric and
         {Carey}, CJ and {Polat}, {\.I}lhan and {Feng}, Yu and {Moore},
         Eric W. and {Vand erPlas}, Jake and {Laxalde}, Denis and
         {Perktold}, Josef and {Cimrman}, Robert and {Henriksen}, Ian and
         {Quintero}, E.~A. and {Harris}, Charles R and {Archibald}, Anne M.
         and {Ribeiro}, Ant{\^o}nio H. and {Pedregosa}, Fabian and
         {van Mulbregt}, Paul and {Contributors}, SciPy 1. 0},
        title = "{SciPy 1.0: Fundamental Algorithms for Scientific
                  Computing in Python}",
      journal = {Nature Methods},
      year = "2020",
      volume={17},
      pages={261--272},
      adsurl = {https://rdcu.be/b08Wh},
      doi = {10.1038/s41592-019-0686-2},
}

@Article{Andersson2018,
  Author = {Joel A E Andersson and Joris Gillis and Greg Horn
            and James B Rawlings and Moritz Diehl},
  Title = {{CasADi} -- {A} software framework for nonlinear optimization
           and optimal control},
  Journal = {Mathematical Programming Computation},
  volume={11},
  pages={1--36},
  Year = {2019},
  doi ={10.1007/s12532-018-0139-4}
}

@article{Patterson2014GPOPSII,
author = {Patterson, Michael A. and Rao, Anil V.},
title = {GPOPS-II: A MATLAB Software for Solving Multiple-Phase Optimal Control Problems Using Hp-Adaptive Gaussian Quadrature Collocation Methods and Sparse Nonlinear Programming},
journal={ACM Transactions on Mathematical Software},
year = {2014},
volume = {41},
number = {1},
issn = {0098-3500},
doi = {10.1145/2558904},

}

@inbook{Paris2006,
author = {Stephen Paris and John Riehl and Waldy Sjauw},
title = {Enhanced Procedures for Direct Trajectory Optimization Using Nonlinear Programming and Implicit Integration},
booktitle = {AIAA/AAS Astrodynamics Specialist Conference and Exhibit},
doi = {10.2514/6.2006-6309},
year = {2006}
}

@article{Martins2003CS,
 author = {Joaquim R. R. A. Martins and Peter Sturdza and Juan J. Alonso},
 doi = {10.1145/838250.838251},
 journal = {ACM Transactions on Mathematical Software},
 month = {September},
 number = {3},
 pages = {245--262},
 title = {The Complex-Step Derivative Approximation},
 volume = {29},
 year = {2003}
}

@article{MartinsHwang2013Unification,
 author = {Joaquim R. R. A. Martins and John T. Hwang},
 doi = {10.2514/1.J052184},
 journal = {AIAA Journal},
 month = {November},
 number = {11},
 pages = {2582--2599},
 title = {Review and Unification of Methods for Computing Derivatives of Multidisciplinary Computational Models},
 volume = {51},
 year = {2013}
}

@article{griewank2003mathematical,
  title={A mathematical view of automatic differentiation},
  author={Griewank, Andreas},
  journal={Acta Numerica},
  volume={12},
  number={1},
  pages={321--398},
  year={2003},
  doi={10.1017/S0962492902000132}
}

@article{martins2005coupled,
 author = {Joaquim R. R. A. Martins and Juan J. Alonso and James J. Reuther},
 doi = {10.1023/B:OPTE.0000048536.47956.62},
 journal = {Optimization and Engineering},
 month = {March},
 number = {1},
 pages = {33--62},
 title = {A Coupled-Adjoint Sensitivity Analysis Method for High-Fidelity Aero-Structural Design},
 volume = {6},
 year = {2005}
}

@article{mader2008adjoint,
  title={ADjoint: An approach for the rapid development of discrete adjoint solvers},
  author={Mader, Charles A and Martins, Joaquim RRA and Alonso, Juan J and Van Der Weide, Edwin},
  journal={AIAA journal},
  volume={46},
  number={4},
  pages={863--873},
  year={2008},
  doi={doi:10.2514/1.29123}
}

@article{kenway2019effective,
  title={Effective adjoint approaches for computational fluid dynamics},
  author={Kenway, Gaetan KW and Mader, Charles A and He, Ping and Martins, Joaquim RRA},
  journal={Progress in Aerospace Sciences},
  volume={110},
  pages={100542},
  year={2019},
  publisher={Elsevier},
  doi={10.1016/j.paerosci.2019.05.002}
}

@article{garciasans2019,
author = {Garcia-Sanz, Mario},
title = {Control Co-Design: An engineering game changer},
journal = {Advanced Control for Applications},
volume = {1},
number = {1},
pages = {e18},
doi = {10.1002/adc2.18},
note = {e18 ADC2-19-0039},
year = {2019}
}

@inproceedings{Fathy2001,
  author={H. K. {Fathy} and J. A. {Reyer} and P. Y. {Papalambros} and A. G. {Ulsov}},
  booktitle={Proceedings of the 2001 American Control Conference.},
  title={On the coupling between the plant and controller optimization problems},
  year={2001},
  doi={10.1109/ACC.2001.946008}
}

@inproceedings{Peters2009,
  author = {Peters, Diane L. and Papalambros, Panos Y. and Ulsoy, A. Galip},
  title = "{On Measures of Coupling Between the Artifact and Controller Optimal Design Problems}",
  booktitle = {International Design Engineering Technical Conferences and Computers and Information in Engineering Conference},
  pages = {1363-1372},
  year = {2009},
  month = {08},
  doi={10.1115/DETC2009-86868}
}

@article {hwang2018b,
 author = {John T. Hwang and Joaquim R. R. A. Martins},
 doi = {10.1145/3182393},
 journal = {ACM Transactions on Mathematical Software},
 month = {June},
 number = {4},
 pages = {Article 37},
 title = {A computational architecture for coupling heterogeneous numerical models and computing coupled derivatives},
 volume = {44},
 year = {2018}
}

@inproceedings{falck2019,
title = "{Optimal Control within the Context of Multidisciplinary Design, Analysis, and Optimization}",
booktitle = "{AIAA Scitech 2019 Forum}",
year = {2019},
publisher = {AIAA},
address = {San Diego, CA},
author = {Robert D. Falck and Justin S. Gray},
notes={AIAA 2019-0976},
doi={10.2514/6.2019-0976},
}

repository: OpenMDAO/dymos

repo_name: OpenMDAO/dymos

gha_language: Python


text:
package commands

import (
	"fmt"
	"os"
	"regexp"
	"strings"

	"github.com/DataDog/kafka-kit/v4/kafkaadmin"
	"github.com/DataDog/kafka-kit/v4/kafkazk"

	"github.com/spf13/cobra"
)

var rebuildCmd = &cobra.Command{
	Use:   "rebuild",
	Short: "Rebuild a partition map for one or more topics",
	Long: `rebuild requires at least two inputs: a reference of
target topics and a list of broker IDs to which those topics should be mapped.
Target topics are provided as a comma delimited list of topic names and/or regex patterns
via the --topics parameter, which discovers matching topics in ZooKeeper (additionally,
the --zk-addr and --zk-prefix global flags should be set). Alternatively, a JSON map can be
provided via the --map-string flag. Target broker IDs are provided via the --broker flag.`,
	Run: rebuild,
}

func init() {
	rootCmd.AddCommand(rebuildCmd)

	rebuildCmd.Flags().String("topics", "", "Rebuild topics (comma delim. list) by lookup in ZooKeeper")
	rebuildCmd.Flags().String("topics-exclude", "", "Exclude topics")
	rebuildCmd.Flags().String("map-string", "", "Rebuild a partition map provided as a string literal")
	rebuildCmd.Flags().Bool("use-meta", true, "Use broker metadata in placement constraints")
	rebuildCmd.Flags().String("out-path", "", "Path to write output map files to")
	rebuildCmd.Flags().String("out-file", "", "If defined, write a combined map of all topics to a file")
	rebuildCmd.Flags().Bool("force-rebuild", false, "Forces a complete map rebuild")
	rebuildCmd.Flags().Int("replication", 0, "Normalize the topic replication factor across all replica sets (0 results in a no-op)")
	rebuildCmd.Flags().Bool("sub-affinity", false, "Replacement broker substitution affinity")
	rebuildCmd.Flags().String("placement", "count", "Partition placement strategy: [count, storage]")
	rebuildCmd.Flags().Int("min-rack-ids", 0, "Minimum number of required of unique rack IDs per replica set (0 requires that all are unique)")
	rebuildCmd.Flags().String("optimize", "distribution", "Optimization priority for the storage placement strategy: [distribution, storage]")
	rebuildCmd.Flags().Float64("partition-size-factor", 1.0, "Factor by which to multiply partition sizes when using storage placement")
	rebuildCmd.Flags().String("brokers", "", "Broker list to scope all partition placements to ('-1' for all currently mapped brokers, '-2' for all brokers in cluster)")
	rebuildCmd.Flags().Int("metrics-age", 60, "Kafka metrics age tolerance (in minutes) (when using storage placement)")
	rebuildCmd.Flags().Bool("skip-no-ops", false, "Skip no-op partition assigments")
	rebuildCmd.Flags().Bool("optimize-leadership", false, "Rebalance all broker leader/follower ratios")
	rebuildCmd.Flags().Bool("phased-reassignment", false, "Create two-phase output maps")
	rebuildCmd.Flags().String("leader-evac-brokers", "", "Broker list to remove leadership for topics in leader-evac-topics.")
	rebuildCmd.Flags().String("leader-evac-topics", "", "Topics list to remove leadership for the brokers given in leader-evac-brokers")
	rebuildCmd.Flags().Int("chunk-step-size", 0, "Number of brokers to move data at a time for with a chunked operation.")

	// Required.
	rebuildCmd.MarkFlagRequired("brokers")
}

type rebuildParams struct {
	brokers             []int
	forceRebuild        bool
	mapString           string
	maxMetadataAge      int
	minRackIds          int
	optimize            string
	optimizeLeadership  bool
	partitionSizeFactor float64
	phasedReassignment  bool
	placement           string
	replication         int
	skipNoOps           bool
	subAffinity         bool
	topics              []string
	topicsExclude       []*regexp.Regexp
	useMetadata         bool
	leaderEvacTopics    []string
	leaderEvacBrokers   []int
	chunkStepSize       int
}

func rebuildParamsFromCmd(cmd *cobra.Command) (params rebuildParams) {
	brokers, _ := cmd.Flags().GetString("brokers")
	params.brokers = brokerStringToSlice(brokers)
	forceRebuild, _ := cmd.Flags().GetBool("force-rebuild")
	params.forceRebuild = forceRebuild
	mapString, _ := cmd.Flags().GetString("map-string")
	params.mapString = mapString
	maxMetadataAge, _ := cmd.Flags().GetInt("metrics-age")
	params.maxMetadataAge = maxMetadataAge
	minRackIds, _ := cmd.Flags().GetInt("min-rack-ids")
	params.minRackIds = minRackIds
	optimize, _ := cmd.Flags().GetString("optimize")
	params.optimize = optimize
	optimizeLeadership, _ := cmd.Flags().GetBool("optimize-leadership")
	params.optimizeLeadership = optimizeLeadership
	partitionSizeFactor, _ := cmd.Flags().GetFloat64("partition-size-factor")
	params.partitionSizeFactor = partitionSizeFactor
	phasedReassignment, _ := cmd.Flags().GetBool("phased-reassignment")
	params.phasedReassignment = phasedReassignment
	placement, _ := cmd.Flags().GetString("placement")
	params.placement = placement
	replication, _ := cmd.Flags().GetInt("replication")
	params.replication = replication
	skipNoOps, _ := cmd.Flags().GetBool("skip-no-ops")
	params.skipNoOps = skipNoOps
	subAffinity, _ := cmd.Flags().GetBool("sub-affinity")
	params.subAffinity = subAffinity
	topics, _ := cmd.Flags().GetString("topics")
	params.topics = strings.Split(topics, ",")
	topicsExclude, _ := cmd.Flags().GetString("topics-exclude")
	params.topicsExclude = topicRegex(topicsExclude)
	useMetadata, _ := cmd.Flags().GetBool("use-meta")
	params.useMetadata = useMetadata
	chunkStepSize, _ := cmd.Flags().GetInt("chunk-step-size")
	params.chunkStepSize = chunkStepSize
	let, _ := cmd.Flags().GetString("leader-evac-topics")
	if let != "" {
		params.leaderEvacTopics = strings.Split(let, ",")
	}
	leb, _ := cmd.Flags().GetString("leader-evac-brokers")
	if leb != "" {
		params.leaderEvacBrokers = brokerStringToSlice(leb)
	}
	return params
}

func (c rebuildParams) validate() error {
	switch {
	case c.mapString == "" && len(c.topics) == 0:
		return fmt.Errorf("\n[ERROR] must specify either --topics or --map-string")
	case c.placement != "count" && c.placement != "storage":
		return fmt.Errorf("\n[ERROR] --placement must be either 'count' or 'storage'")
	case c.optimize != "distribution" && c.optimize != "storage":
		return fmt.Errorf("\n[ERROR] --optimize must be either 'distribution' or 'storage'")
	case !c.useMetadata && c.placement == "storage":
		return fmt.Errorf("\n[ERROR] --placement=storage requires --use-meta=true")
	case c.forceRebuild && c.subAffinity:
		return fmt.Errorf("\n[INFO] --force-rebuild disables --sub-affinity")
	case (len(c.leaderEvacBrokers) != 0 || len(c.leaderEvacTopics) != 0) && (len(c.leaderEvacBrokers) == 0 || len(c.leaderEvacTopics) == 0):
		return fmt.Errorf("\n[ERROR] --leader-evac-topics and --leader-evac-brokers must both be specified for leadership evacuation.")
	}
	return nil
}

func rebuild(cmd *cobra.Command, _ []string) {
	sanitizeInput(cmd)
	params := rebuildParamsFromCmd(cmd)

	err := params.validate()
	if err != nil {
		fmt.Println(err)
		defaultsAndExit()
	}
	if params.forceRebuild && params.subAffinity {
		fmt.Println("\n[INFO] --force-rebuild disables --sub-affinity")
	}

	// Init kafkaadmin client.
	bs := cmd.Parent().Flag("kafka-addr").Value.String()
	ka, err := kafkaadmin.NewClient(kafkaadmin.Config{BootstrapServers: bs})
	if err != nil {
		fmt.Println(err)
		os.Exit(1)
	}

	// ZooKeeper init.
	var zk kafkazk.Handler
	if params.useMetadata || len(params.topics) > 0 || params.placement == "storage" {
		zkAddr := cmd.Parent().Flag("zk-addr").Value.String()
		kafkaPrefix := cmd.Parent().Flag("zk-prefix").Value.String()
		metricsPrefix := cmd.Flag("zk-metrics-prefix").Value.String()
		zk, err = initZooKeeper(zkAddr, kafkaPrefix, metricsPrefix)
		if err != nil {
			fmt.Println(err)
			os.Exit(1)
		}
		defer zk.Close()
	}

	maps, errs := runRebuild(params, ka, zk)

	// Print error/warnings.
	handleOverridableErrs(cmd, errs)

	outPath := cmd.Flag("out-path").Value.String()
	outFile := cmd.Flag("out-file").Value.String()
	writeMaps(outPath, outFile, maps)
}

repository: DataDog/kafka-kit

repo_name: DataDog/kafka-kit


text:
@inproceedings{Nagahara2016,
 abstract = {Several recent studies in compressive video sensing have realized scene capture beyond the fundamental trade-off limit between spatial resolution and temporal resolution using random space-time sampling. However, most of these studies showed results for higher frame rate video that were produced by simulation experiments or using an optically simulated random sampling camera, because there are currently no commercially available image sensors with random exposure or sampling capabilities. We fabricated a prototype complementary metal oxide semiconductor (CMOS) image sensor with quasi pixel-wise exposure timing that can realize nonuniform space-time sampling. The prototype sensor can reset exposures independently by columns and fix these amount of exposure by rows for each 8×8 pixel block. This CMOS sensor is not fully controllable via the pixels, and has line-dependent controls, but it offers flexibility when compared with regular CMOS or charge-coupled device sensors with global or rolling shutters. We propose a method to realize pseudo-random sampling for high-speed video acquisition that uses the flexibility of the CMOS sensor. We reconstruct the high-speed video sequence from the images produced by pseudo-random sampling using an over-complete dictionary. The proposed method also removes the rolling shutter effect from the reconstructed video.},
 author = {Nagahara, Hajime and Sonoda, Toshiki and Endo, Kenta and Sugiyama, Yukinobu and Taniguchi, Rin Ichiro},
 booktitle = {2016 IEEE International Conference on Computational Photography, ICCP 2016 - Proceedings},
 doi = {10.1109/ICCPHOT.2016.7492875},
 isbn = {9781467386234},
 month = {jun},
 publisher = {Institute of Electrical and Electronics Engineers Inc.},
 title = {High-speed imaging using CMOS image sensor with quasi pixel-wise exposure},
 year = {2016}
}

repository: conscienceli/islab-website

repo_name: conscienceli/islab-website


text:
// Copyright 2015 Walter Schulze
//
//  Licensed under the Apache License, Version 2.0 (the "License");
//  you may not use this file except in compliance with the License.
//  You may obtain a copy of the License at
//
//    http://www.apache.org/licenses/LICENSE-2.0
//
//  Unless required by applicable law or agreed to in writing, software
//  distributed under the License is distributed on an "AS IS" BASIS,
//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//  See the License for the specific language governing permissions and
//  limitations under the License.

package main

import (
	"encoding/xml"
	"fmt"
	"github.com/gopherjs/gopherjs/js"
	. "github.com/katydid/relaxng"
)

func main() {
	js.Global.Set("gofunctions", map[string]interface{}{
		"ValidateRelaxNG":  ValidateRelaxNG,
		"TranslateRelaxNG": TranslateRelaxNG,
	})
}

func ValidateRelaxNG(relaxngStr, xmlStr string) string {
	v, err := validate(relaxngStr, xmlStr)
	if err != nil {
		return "Error: " + err.Error()
	}
	return fmt.Sprintf("%v", v)
}

func TranslateRelaxNG(relaxngStr string) string {
	v, err := translate(relaxngStr)
	if err != nil {
		return "Error: " + err.Error()
	}
	return fmt.Sprintf("%s", v)
}

func validate(relaxngStr, xmlStr string) (bool, error) {
	v := &validator{nil}
	b, err := v.validate(relaxngStr, xmlStr)
	if err != nil {
		return false, err
	}
	if v.err != nil {
		return false, err
	}
	return b, nil
}

func translate(relaxngStr string) (string, error) {
	v := &validator{nil}
	s, err := v.translate(relaxngStr)
	if err != nil {
		return "", err
	}
	if v.err != nil {
		return "", err
	}
	return s, nil
}

type validator struct {
	err error
}

func (this *validator) translate(relaxngStr string) (string, error) {
	defer func() {
		if r := recover(); r != nil {
			this.err = fmt.Errorf("%v", r)
		}
	}()
	g, err := ParseGrammar([]byte(relaxngStr))
	if err != nil {
		return "", fmt.Errorf("relaxng parse error: %v, couldn't parse `%s`", err, relaxngStr)
	}
	katy, err := Translate(g)
	if err != nil {
		return "", fmt.Errorf("translate error: %v", err)
	}
	return katy.String(), nil
}

func (this *validator) validate(relaxngStr, xmlStr string) (bool, error) {
	defer func() {
		if r := recover(); r != nil {
			this.err = fmt.Errorf("%v", r)
		}
	}()
	g, err := ParseGrammar([]byte(relaxngStr))
	if err != nil {
		return false, fmt.Errorf("relaxng parse error: %v, couldn't parse `%s`", err, relaxngStr)
	}
	var m interface{}
	if err := xml.Unmarshal([]byte(xmlStr), &m); err != nil {
		return false, fmt.Errorf("xml input parse error: %v, couldn't parse `%s`", err, xmlStr)
	}
	katy, err := Translate(g)
	if err != nil {
		return false, fmt.Errorf("translate error: %v", err)
	}
	err = Validate(katy, []byte(xmlStr))
	if err != nil {
		return false, nil
	}
	return true, nil
}

repository: katydid/relaxng

repo_name: katydid/relaxng


text:
@article{tulloch_future_2019,
 abstract = {Historical harvesting pushed many whale species to the brink of extinction. Although most Southern Hemisphere populations are slowly recovering, the influence of future climate change on their recovery remains unknown. We investigate the impacts of two anthropogenic pressures—historical commercial whaling and future climate change—on populations of baleen whales (blue, fin, humpback, Antarctic minke, southern right) and their prey (krill and copepods) in the Southern Ocean. We use a climate–biological coupled “Model of Intermediate Complexity for Ecosystem Assessments” (MICE) that links krill and whale population dynamics with climate change drivers, including changes in ocean temperature, primary productivity and sea ice. Models predict negative future impacts of climate change on krill and all whale species, although the magnitude of impacts on whales differs among populations. Despite initial recovery from historical whaling, models predict concerning declines under climate change, even local extinctions by 2100, for Pacific populations of blue, fin and southern right whales, and Atlantic/Indian fin and humpback whales. Predicted declines were a consequence of reduced prey (copepods/krill) from warming and increasing interspecific competition between whale species. We model whale population recovery under an alternative scenario whereby whales adapt their migratory patterns to accommodate changing sea ice in the Antarctic and a shifting prey base. Plasticity in range size and migration was predicted to improve recovery for ice‐associated blue and minke whales. Our study highlights the need for ongoing protection to help depleted whale populations recover, as well as local management to ensure the krill prey base remains viable, but this may have limited success without immediate action to reduce emissions.},
 author = {Tulloch, Vivitskaia J. D. and Plagányi, Éva E. and Brown, Christopher and Richardson, Anthony J. and Matear, Richard},
 doi = {10.1111/gcb.14573},
 file = {Tulloch et al. - 2019 - Future recovery of baleen whales is imperiled by c.pdf:/Users/ric325/Zotero/storage/6GPKARPD/Tulloch et al. - 2019 - Future recovery of baleen whales is imperiled by c.pdf:application/pdf},
 issn = {1354-1013, 1365-2486},
 journal = {Global Change Biology},
 language = {en},
 month = {April},
 number = {4},
 pages = {1263--1281},
 title = {Future recovery of baleen whales is imperiled by climate change},
 url = {https://onlinelibrary.wiley.com/doi/abs/10.1111/gcb.14573},
 urldate = {2019-10-24},
 volume = {25},
 year = {2019}
}


text:
require powertop.inc
PR = "${INC_PR}.0"

SRC_URI[md5sum] = "e09f631f60d50299d8885193e6fd3756"
SRC_URI[sha256sum] = "cc60000bbe5f4d7b9beae8a84e1cd1ba69339a489a7d1a7365a3d8fe8fd73d6b"

repository: overo/overo-oe-natty

repo_name: overo/overo-oe-natty

branch_name: HEAD


text:
// Code generated by go-swagger; DO NOT EDIT.

// Copyright 2017 The go-ovh 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.

package models

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	strfmt "github.com/go-openapi/strfmt"

	"github.com/go-openapi/errors"
	"github.com/go-openapi/swag"
	"github.com/go-openapi/validate"
)

// CloudQuotaQuotas Quotas
// swagger:model cloud.Quota.Quotas
type CloudQuotaQuotas struct {

	// instance
	// Required: true
	Instance *CloudQuotaInstanceQuotas `json:"instance"`

	// keypair
	// Required: true
	Keypair *CloudQuotaKeypairQuotas `json:"keypair"`

	// Region
	// Required: true
	// Read Only: true
	Region string `json:"region"`

	// volume
	// Required: true
	Volume *CloudQuotaVolumeQuotas `json:"volume"`
}

// Validate validates this cloud quota quotas
func (m *CloudQuotaQuotas) Validate(formats strfmt.Registry) error {
	var res []error

	if err := m.validateInstance(formats); err != nil {
		// prop
		res = append(res, err)
	}

	if err := m.validateKeypair(formats); err != nil {
		// prop
		res = append(res, err)
	}

	if err := m.validateRegion(formats); err != nil {
		// prop
		res = append(res, err)
	}

	if err := m.validateVolume(formats); err != nil {
		// prop
		res = append(res, err)
	}

	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}

func (m *CloudQuotaQuotas) validateInstance(formats strfmt.Registry) error {

	if err := validate.Required("instance", "body", m.Instance); err != nil {
		return err
	}

	if m.Instance != nil {

		if err := m.Instance.Validate(formats); err != nil {
			if ve, ok := err.(*errors.Validation); ok {
				return ve.ValidateName("instance")
			}
			return err
		}
	}

	return nil
}

func (m *CloudQuotaQuotas) validateKeypair(formats strfmt.Registry) error {

	if err := validate.Required("keypair", "body", m.Keypair); err != nil {
		return err
	}

	if m.Keypair != nil {

		if err := m.Keypair.Validate(formats); err != nil {
			if ve, ok := err.(*errors.Validation); ok {
				return ve.ValidateName("keypair")
			}
			return err
		}
	}

	return nil
}

func (m *CloudQuotaQuotas) validateRegion(formats strfmt.Registry) error {

	if err := validate.RequiredString("region", "body", string(m.Region)); err != nil {
		return err
	}

	return nil
}

func (m *CloudQuotaQuotas) validateVolume(formats strfmt.Registry) error {

	if err := validate.Required("volume", "body", m.Volume); err != nil {
		return err
	}

	if m.Volume != nil {

		if err := m.Volume.Validate(formats); err != nil {
			if ve, ok := err.(*errors.Validation); ok {
				return ve.ValidateName("volume")
			}
			return err
		}
	}

	return nil
}

// MarshalBinary interface implementation
func (m *CloudQuotaQuotas) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *CloudQuotaQuotas) UnmarshalBinary(b []byte) error {
	var res CloudQuotaQuotas
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}

repository: Laeeth/go-ovh

repo_name: Laeeth/go-ovh


text:
DESCRIPTION = "Barcode demo to detect region of interest"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://detect_barcode.cpp;beginline=1;endline=25;md5=babab64d39715b3671dd16bcb4f4917b"

inherit features_check

REQUIRED_MACHINE_FEATURES = "dsp"
REQUIRED_DISTRO_FEATURES = "opencv"

DEPENDS += "opencv"

PV = "01.00.00"
PR = "r1"

BRANCH = "master"
SRC_URI = "git://git.ti.com/git/apps/barcode-roi-detection.git;protocol=https;branch=${BRANCH}"

SRCREV = "50fa051f66012ebaa10eba1cb289287c4c5e7432"

S = "${WORKDIR}/git"

do_install() {
    install -d ${D}${bindir}
    install -m 755 ${S}/detect_barcode ${D}${bindir}

    install -d ${D}${datadir}/ti/image
    install -m 644 ${S}/test/sample_barcode.jpg ${D}${datadir}/ti/image
}

FILES:${PN} += "\
    ${datadir}/ti/image \
"

INSANE_SKIP:${PN} = "ldflags"

repository: rcn-ee/meta-arago

repo_name: rcn-ee/meta-arago


text:
@article{2011ApJ...740..110A,
 abstract = {Stellar rotation periods measured from single-age populations are
critical for investigating how stellar angular momentum content
evolves over time, how that evolution depends on mass, and how
rotation influences the stellar dynamo and the magnetically
heated chromosphere and corona. We report rotation periods for
40 late-K to mid-M star members of the nearby, rich,
intermediate-age (åisebox-0.5ex~600 Myr) open
cluster Praesepe. These rotation periods were derived from
\i̊sebox-0.5ex~200 observations taken by the
Palomar Transient Factory of four cluster fields from 2010
February to May. Our measurements indicate that Praesepe's mass-
period relation transitions from a well-defined singular
relation to a more scattered distribution of both fast and slow
rotators at \rs̊ebox-0.5ex~0.6 M $_sun$. The
location of this transition is broadly consistent with
expectations based on observations of younger clusters and the
assumption that stellar spin-down is the dominant mechanism
influencing angular momentum evolution at 600 Myr. However, a
comparison to data recently published for the Hyades, assumed to
be coeval to Praesepe, indicates that the divergence from a
singular mass-period relation occurs at different characteristic
masses, strengthening the finding that Praesepe is the younger
of the two clusters. We also use previously published relations
describing the evolution of rotation periods as a function of
color and mass to evolve the sample of Praesepe periods in time.
Comparing the resulting predictions to periods measured in M35
and NGC 2516 (\rae̊box-0.5ex~150 Myr) and for
kinematically selected young and old field star populations
suggests that stellar spin-down may progress more slowly than
described by these relations.},
 adsnote = {Provided by the SAO/NASA Astrophysics Data System},
 adsurl = {https://ui.adsabs.harvard.edu/abs/2011ApJ...740..110A},
 archiveprefix = {arXiv},
 author = {Agüeros, Marcel A. and Covey, Kevin R. and Lemonias, Jenna J. and
Law, Nicholas M. and Kraus, Adam and Batalha, Natasha and
Bloom, Joshua S. and Cenko, S. Bradley and Kasliwal, Mansi M. and
Kulkarni, Shrinivas R. and Nugent, Peter E. and Ofek, Eran O. and
Poznanski, Dovi and Quimby, Robert M.},
 doi = {10.1088/0004-637X/740/2/110},
 eid = {110},
 eprint = {1107.4039},
 journal = {\apj},
 keywords = {open clusters and associations: individual: Praesepe, stars: rotation, surveys, techniques: photometric, Astrophysics - Solar and Stellar Astrophysics},
 month = {Oct},
 number = {2},
 pages = {110},
 primaryclass = {astro-ph.SR},
 title = {The Factory and the Beehive. I. Rotation Periods for Low-mass Stars in Praesepe},
 volume = {740},
 year = {2011}
}

repository: profjsb/my-content

repo_name: profjsb/my-content

gha_language: TeX


text:
require libpng.inc

PR = "${INC_PR}.0"

SRC_URI += "file://makefile_fix.patch"

SRC_URI[tarball.md5sum] = "2faa7f8d81e6a35beb991cb75edbf056"
SRC_URI[tarball.sha256sum] = "a172c5afe4668a31eb090d14be7fc2811a9fec8568a785badd30280f47a27e00"


text:
SUMMARY = "SL(1): Cure your bad habit of mistyping"
SECTION = "examples"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=74e9dd589a0ab212a9002b15ef2b82f0"

SRCREV = "923e7d7ebc5c1f009755bdeb789ac25658ccce03"
SRC_URI = "git://github.com/mtoyoda/sl.git \
           file://0001-for-yocto.patch \
           "

S = "${WORKDIR}/git"

inherit sa

do_install() {
             install -d ${D}${bindir}
             install -m 0755 sl ${D}${bindir}
}

DEPENDS = "ncurses"


text:
// Copyright (c) 2021 Terminus, 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.

// @Title  this file is used to query the action definition
// @Description  query action definition and spec
package action_info

import (
	"sync"

	"github.com/erda-project/erda/apistructs"
	"github.com/erda-project/erda/internal/tools/pipeline/providers/actionmgr"
	"github.com/erda-project/erda/internal/tools/pipeline/services/apierrors"
	"github.com/erda-project/erda/internal/tools/pipeline/spec"
	"github.com/erda-project/erda/pkg/parser/diceyml"
	"github.com/erda-project/erda/pkg/parser/pipelineyml"
	"github.com/erda-project/erda/pkg/strutil"
)

// passedDataWhenCreate stores data passed recursively when create graph.
type PassedDataWhenCreate struct {
	actionJobDefines *sync.Map
	actionJobSpecs   *sync.Map
	actionMgr        actionmgr.Interface
}

func (that *PassedDataWhenCreate) GetActionJobDefine(actionTypeVersion string) *diceyml.Job {
	if that == nil {
		return nil
	}
	if that.actionJobDefines == nil {
		return nil
	}

	if value, ok := that.actionJobDefines.Load(actionTypeVersion); ok {
		if job, ok := value.(*diceyml.Job); ok {
			return job
		}
	}
	return nil
}

func (that *PassedDataWhenCreate) GetActionJobSpecs(actionTypeVersion string) *apistructs.ActionSpec {

	if that == nil {
		return nil
	}
	if that.actionJobDefines == nil {
		return nil
	}

	if value, ok := that.actionJobSpecs.Load(actionTypeVersion); ok {
		if spec, ok := value.(*apistructs.ActionSpec); ok {
			return spec
		}
	}
	return nil
}

func (that *PassedDataWhenCreate) InitData(actionMgr actionmgr.Interface) {
	if that == nil {
		return
	}

	if that.actionJobDefines == nil {
		that.actionJobDefines = &sync.Map{}
	}
	if that.actionJobSpecs == nil {
		that.actionJobSpecs = &sync.Map{}
	}
	that.actionMgr = actionMgr
}

func (that *PassedDataWhenCreate) PutPassedDataByPipelineYml(pipelineYml *pipelineyml.PipelineYml, p *spec.Pipeline) error {
	if that == nil {
		return nil
	}
	// batch search extensions
	var extItems []string
	for _, stage := range pipelineYml.Spec().Stages {
		for _, typedAction := range stage.Actions {
			for _, action := range typedAction {
				if action.Type.IsSnippet() {
					continue
				}
				extItem := that.actionMgr.MakeActionTypeVersion(action)
				// extension already searched, skip
				if _, ok := that.actionJobDefines.Load(extItem); ok {
					continue
				}
				extItems = append(extItems, that.actionMgr.MakeActionTypeVersion(action))
			}
		}
	}

	extItems = strutil.DedupSlice(extItems, true)
	actionJobDefines, actionJobSpecs, err := that.actionMgr.SearchActions(extItems)
	if err != nil {
		return apierrors.ErrCreatePipelineGraph.InternalError(err)
	}

	for extItem, actionJobDefine := range actionJobDefines {
		that.actionJobDefines.Store(extItem, actionJobDefine)
	}
	for extItem, actionJobSpec := range actionJobSpecs {
		that.actionJobSpecs.Store(extItem, actionJobSpec)
	}
	return nil
}

repository: erda-project/erda

repo_name: erda-project/erda


text:
package camGRpcClient

import "google.golang.org/grpc"

// sequence logic option
type sequenceOption struct {
	keys  []string
	len   int
	index int
}

func newSequenceOption(connDict *connDict) *sequenceOption {
	opt := new(sequenceOption)
	connDict.Range(func(key string, conn *grpc.ClientConn) bool {
		opt.keys = append(opt.keys, key)
		return true
	})
	opt.len = connDict.Len()
	opt.index = 0
	return opt
}

// get now key and move index to the next
func (opt *sequenceOption) nextKey() string {
	key := opt.keys[opt.index]
	if opt.len > 1 {
		opt.index++
		if opt.index == opt.len {
			opt.index = 0
		}
	}
	return key
}

repository: go-cam/cam

repo_name: go-cam/cam


text:
DESCRIPTION = "Libretro extra cores package group"

inherit retro-packagegroup

LIBRETRO_EXTRA_CORE_PACKAGES ?= " \
    3dengine-libretro \
    bash-launcher-libretro \
    dinothawr-libretro \
    gme-libretro \
    mrboom-libretro \
    prboom-libretro \
    superflappybirds-libretro \
    tyrquake-libretro \
"

RDEPENDS:${PN} = "${LIBRETRO_EXTRA_CORE_PACKAGES}"


text:
DESCRIPTION = "JDBC driver for sqlite and sqlite3"
HOMEPAGE = "http://www.ch-werner.de/javasqlite"
LICENSE  = "BSD"

PR = "r2"

SRC_URI = "\
  http://www.ch-werner.de/javasqlite/javasqlite-${PV}.tar.gz \
  file://build-fix.patch"

DEPENDS = "virtual/javac-native fastjar-native classpath-tools-native javasqlite-mkconst-native classpath sqlite sqlite3"
RDEPENDS_${JPN} = "lib${PN}-jni"

inherit java-library autotools

JARFILENAME = "sqlite.jar"

# jamvm-native unfortunately contains non-generificed java/lang/reflect classes
# which are accessed in this package. Work around this by setting the bootclasspath
# explicitly.
export JAVACFLAGS="-bootclasspath ${STAGING_DATADIR}/classpath/glibj.zip -source 5.0"

EXTRA_OECONF = " \
  --with-jni-incdir=${STAGING_INCDIR}/classpath \
  --with-jardir=${datadir_java} \
  --with-target-native-libdir=${libdir_jni} \
  --with-sqlite-incdir=${STAGING_INCDIR} \
  --with-sqlite-libdir=${STAGING_LIBDIR} \
  --with-sqlite3-incdir=${STAGING_INCDIR} \
  --with-sqlite3-libdir=${STAGING_LIBDIR} \
  --with-java=${STAGING_BINDIR_NATIVE}/java \
  --with-javac=${STAGING_BINDIR_NATIVE}/javac \
  --with-jar=${STAGING_BINDIR_NATIVE}/gjar \
  --with-javah=${STAGING_BINDIR_NATIVE}/gjavah \
  --with-javadoc=true \
  "

do_configurepre() {
  sed -i -e "s|wrong-libtool|${TARGET_SYS}-libtool|" Makefile.in
}

addtask configurepre after do_patch before do_configure

do_compile_prepend() {
  # Injects a cross-compiled mkconst binary into the build
  cp ${STAGING_BINDIR_NATIVE}/javasqlite-mkconst-${PV} native/mkconst
  touch native/mkconst
}

do_install_append() {
  rm ${D}${libdir_jni}/libsqlite_jni.la
  rm ${D}${libdir_jni}/libsqlite_jni.a
}

PACKAGES += "lib${PN}-jni lib${PN}-jni-dbg"

FILES_lib${PN}-jni = "${libdir_jni}/lib*.so*"
FILES_lib${PN}-jni-dbg = "${libdir_jni}/.debug/lib*.so*"

SRC_URI[md5sum] = "842932cfb22d44d8ebf85d1e184b4c55"
SRC_URI[sha256sum] = "ea216b2fa82e784fe7572074246fb0bbaaeac46e655f554d44da827f82b95231"