hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
109
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
269
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
9
max_issues_count
int64
1
48.5k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
269
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
9
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
330k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
0.99
author_id
stringlengths
2
40
e5ec04b569e3f43f922c6fab215e04dedd811e44
26,117
cpp
C++
src/warehouse/main_stat.cpp
jhu-lcsr/sp_segmenter
4f6713c633ee2b1aaf48f614d05bcef1da4a9b02
[ "BSD-2-Clause" ]
33
2016-04-01T04:22:55.000Z
2019-08-23T13:43:05.000Z
src/warehouse/main_stat.cpp
jhu-lcsr/sp_segmenter
4f6713c633ee2b1aaf48f614d05bcef1da4a9b02
[ "BSD-2-Clause" ]
3
2017-08-14T14:09:18.000Z
2018-09-23T20:38:57.000Z
src/warehouse/main_stat.cpp
jhu-lcsr/sp_segmenter
4f6713c633ee2b1aaf48f614d05bcef1da4a9b02
[ "BSD-2-Clause" ]
26
2016-11-07T06:03:14.000Z
2019-09-20T01:39:23.000Z
#include "sp_segmenter/utility/utility.h" #include "sp_segmenter/features.h" #include "sp_segmenter/BBDataParser.h" #include "sp_segmenter/UWDataParser.h" #include "sp_segmenter/JHUDataParser.h" void mergeProbs(const std::vector<problem> &problem_set, problem &final_prob) { if( problem_set.empty() == true ) return; if(final_prob.l > 0) { for( int i = 0 ; i < final_prob.l ; i++ ) free(final_prob.x[i]); free(final_prob.x); free(final_prob.y); } size_t total = 0; int fea_dim = problem_set[0].n; float bias = problem_set[0].bias; for( std::vector<problem>::const_iterator it = problem_set.begin() ; it < problem_set.end() ; it++ ) { total += (*it).l; if( (*it).n != fea_dim || (*it).bias != bias ) { std::cerr << (*it).n << " " << fea_dim << std::endl; std::cerr << "Merging Dimensions Mismatched!" << std::endl; exit(0); } } final_prob.l = total; final_prob.n = fea_dim; //include bias term final_prob.bias = bias; final_prob.y = new float[final_prob.l]; final_prob.x = new feature_node *[final_prob.l]; int base = 0; for( std::vector<problem>::const_iterator it = problem_set.begin() ; it < problem_set.end() ; it++ ) { for( int j = 0 ; j < (*it).l ; j++, base++ ) { if( base >= final_prob.l ) { std::cerr << "base >= final_prob.l!" << std::endl; exit(0); } final_prob.y[base] = (*it).y[j]; final_prob.x[base] = (*it).x[j]; } if( (*it).l > 0 ) free((*it).y); } } double StatOnePool(cv::Mat pool_fea, cv::Mat &mean, cv::Mat &var) { int num = pool_fea.rows; int dim = pool_fea.cols; mean.release(); var.release(); mean = cv::Mat::zeros(1, dim, CV_32FC1); var = cv::Mat::zeros(1, dim, CV_32FC1); for( int c = 0 ; c < dim ; c++ ) { cv::Scalar cur_mean, cur_stddev; cv::Mat cur_fea = pool_fea.col(c); cv::meanStdDev(cur_fea, cur_mean, cur_stddev); mean.at<float>(0, c) = cur_mean.val[0]; var.at<float>(0, c) = cur_stddev.val[0]*cur_stddev.val[0]; } return cv::norm(var, cv::NORM_L1); } void onlineStat(cv::Mat one_data, cv::Mat &EX, cv::Mat &EX2, int N) { if( EX.empty() == true ) EX = cv::Mat::zeros(1, one_data.cols, CV_32FC1); if( EX2.empty() == true ) EX2 = cv::Mat::zeros(1, one_data.cols, CV_32FC1); cv::Mat one_square = one_data.mul(one_data); EX = (EX*N+one_data)/(N+1); EX2 = (EX2*N+one_square)/(N+1); } double distDistri(cv::Mat E1, cv::Mat E2, cv::Mat V1, cv::Mat V2, float gamma) { double diff_E = cv::norm(E1-E2, cv::NORM_L2); diff_E = pow(diff_E, 2.5); double diff_V = cv::norm(V1, cv::NORM_L1)+cv::norm(V2, cv::NORM_L1); double dist = diff_E / diff_V; std::cerr << diff_E << " " << diff_V << " " << dist << std::endl; //cv::Mat diff_E = E1-E2; //diff_E = diff_E.mul(diff_E); //cv::Mat sum_Var = V1 + V2; //cv::Mat dist_vec = diff_E / sum_Var; //double dist = cv::norm(dist_vec, cv::NORM_L1); return dist; } /* double HellingerDist(cv::Mat E1, cv::Mat E2, cv::Mat V1, cv::Mat V2) { cv::Mat diff_E = E1-E2; diff_E = diff_E.mul(diff_E); cv::Mat sum_Var = V1 + V2; cv::Mat dist_vec = diff_E / sum_Var; //double tmp1 = cv::norm(dist_vec, cv::NORM_L1); double tmp1 = -(1.0/4.0) * diff_E / (cv::norm(V1, cv::NORM_L1)+cv::norm(V2, cv::NORM_L1)); //std::cerr <<"TMP1: "<< tmp1 << std::endl; cv::Mat bar_V = (V1+V2)/2; double prod = 1.0; for(int i = 0 ; i < V1.cols; i++) { if(V1.at<float>(0, i)>0 && V2.at<float>(0, i)>0) prod *= (sqrt(V1.at<float>(0, i))*sqrt(V2.at<float>(0, i)))/bar_V.at<float>(0, i); //std::cerr << prod1 << " " << prod2 << " " << prod3 << std::endl; } double tmp2 = sqrt(prod); std::cerr <<"TMP2: "<< tmp2 << std::endl; return 1 - tmp2*exp(tmp1); } //*/ void getDistri(std::vector<MulInfoT> &data, std::vector<Pooler_L0> &pooler_vec, Hier_Pooler &hie_producer, std::vector<cv::Mat> &mean_vec, std::vector<cv::Mat> &var_vec, std::string id, int type = 0) { int len = pooler_vec.size(); int num = data.size(); mean_vec.clear(); var_vec.clear(); mean_vec.resize(len); var_vec.resize(len); //* std::vector<cv::Mat> mean_2(len); #pragma omp parallel for schedule(dynamic, 1) for( int j = 0 ; j < num ; j++ ) { std::vector<cv::Mat> cur_fea= hie_producer.getHierFea(data[j], 0); std::vector<cv::Mat> fea_vec(len); for( int i = 0 ; i < len ; i++ ) { switch(type) { case 0: { cv::Mat depth_fea = pooler_vec[i].PoolOneDomain(data[j].rgb, cur_fea[0], 1, true); cv::Mat color_fea = pooler_vec[i].PoolOneDomain(data[j].rgb, cur_fea[1], 1, true); cv::hconcat(depth_fea, color_fea, fea_vec[i]); break; } case 1: { cv::Mat depth_fea = pooler_vec[i].PoolOneDomain(data[j].uv, cur_fea[0], 1, true); cv::Mat color_fea = pooler_vec[i].PoolOneDomain(data[j].uv, cur_fea[1], 1, true); cv::hconcat(depth_fea, color_fea, fea_vec[i]); break; } default:exit(1); } onlineStat(fea_vec[i], mean_vec[i], mean_2[i], j); //std::cerr << mean_vec[i] << std::endl; //std::cerr << mean_2[i] << std::endl; //std::cin.get(); } } for( int i = 0 ; i < len ; i++ ) { cv::Mat E2 = mean_vec[i].mul(mean_vec[i]); var_vec[i] = mean_2[i] - E2; } //*/ /* std::vector< std::vector<cv::Mat> > fea_vec(len); for( int i = 0 ; i < len ; i++ ) fea_vec[i].resize(num); #pragma omp parallel for schedule(dynamic, 1) for( int j = 0 ; j < num ; j++ ) { std::vector<cv::Mat> cur_fea= hie_producer.getHierFea(data[j], 0); for( int i = 0 ; i < len ; i++ ) { switch(type) { case 0: { cv::Mat depth_fea = pooler_vec[i].PoolOneDomain(data[j].rgb, cur_fea[0], 1, true); cv::Mat color_fea = pooler_vec[i].PoolOneDomain(data[j].rgb, cur_fea[1], 1, true); cv::hconcat(depth_fea, color_fea, fea_vec[i][j]); break; } case 1: { cv::Mat depth_fea = pooler_vec[i].PoolOneDomain(data[j].uv, cur_fea[0], 1, true); cv::Mat color_fea = pooler_vec[i].PoolOneDomain(data[j].uv, cur_fea[1], 1, true); cv::hconcat(depth_fea, color_fea, fea_vec[i][j]); } default:exit(1); } } } #pragma omp parallel for schedule(dynamic, 1) for( int i = 0 ; i < len ; i++ ) { std::ostringstream ss; ss << i; cv::Mat cur_fea; cv::vconcat(fea_vec[i], cur_fea); double cur_var_total = StatOnePool(cur_fea, mean_vec[i], var_vec[i]); //std::cerr << "Var-"<<i+1<<": "<<cur_var_total<<std::endl; if( exists_dir("BB_stat/"+ss.str()) == false ) boost::filesystem::create_directories("BB_stat/"+ss.str()); saveCvMatSparse( "BB_stat/"+ss.str() + "/" + id + "_L0.smat", cur_fea); cur_fea.release(); } //*/ } /* int main(int argc, char** argv) { int c1 = 0, c2 = BB_INST_MAX-1; std::string in_path("BB_fea_pool"); pcl::console::parse_argument(argc, argv, "--p", in_path); if( exists_dir(in_path) == false ) return 0; bool xyz_flag = false; if( pcl::console::find_switch(argc, argv, "-xyz") == true ) xyz_flag = true; pcl::console::parse_argument(argc, argv, "--c1", c1); pcl::console::parse_argument(argc, argv, "--c2", c2); std::vector< std::vector<cv::Mat> > mean_vec(c2-c1+1); std::vector< std::vector<cv::Mat> > var_vec(c2-c1+1); int num_layer = 8; for( int i = c1 ; i <= c2 ; i++ ) { std::stringstream ss; ss << i; std::cerr << "Reading: " << in_path + "/train_"+ss.str()+"_L0.smat" << std::endl; cv::Mat cur_fea = readCvMatSparse(in_path + "/train_"+ss.str()+"_L0.smat"); mean_vec[i].resize(num_layer); var_vec[i].resize(num_layer); for( int j = 0 ; j < num_layer ; j++ ) { cv::Mat this_fea; switch(j) { case 0: this_fea = xyz_flag == false ? cur_fea.colRange(0,204800) : cur_fea.colRange(204800, 409600); break; case 1: this_fea = xyz_flag == false ? cur_fea.colRange(409600, 546800) : cur_fea.colRange(546800, 684000); break; case 2: this_fea = xyz_flag == false ? cur_fea.colRange(684000, 770400) : cur_fea.colRange(770400, 856800); break; case 3: this_fea = xyz_flag == false ? cur_fea.colRange(856800, 906800) : cur_fea.colRange(906800, 956800); break; case 4: this_fea = xyz_flag == false ? cur_fea.colRange(956800, 982400) : cur_fea.colRange(982400, 1008000); break; case 5: this_fea = xyz_flag == false ? cur_fea.colRange(1008000, 1018800): cur_fea.colRange(1018800, 1029600); break; case 6: this_fea = xyz_flag == false ? cur_fea.colRange(1029600, 1032800) : cur_fea.colRange(1032800, 1036000); break; case 7: this_fea = xyz_flag == false ? cur_fea.colRange(1036000, 1036400) : cur_fea.colRange(1036400, 1036800); break; default:exit(0); } double cur_var_total = StatOnePool(this_fea, mean_vec[i][j], var_vec[i][j]); std::cerr << "Var-"<<i+1<<"-"<<8-j<<": "<<cur_var_total<<std::endl; } } for( int j = 0 ; j < num_layer ; j++ ){ double sum_dist = 0; for( int p = 0 ; p <= c2-c1 ; p++ ){ for( int q = p+1 ; q <= c2-c1 ; q++ ){ double dist = distDistri(mean_vec[p][j], mean_vec[q][j], var_vec[p][j], var_vec[q][j], 1.0); sum_dist += dist; //std::cerr << dist << " "; } } std::cerr << std::endl; std::cerr << "Layer-"<<num_layer-j<<": "<<sum_dist<<std::endl; } return 0; } //*/ //* int main(int argc, char** argv) { int c1 = 0, c2 = BB_INST_MAX-1; std::string in_path("/home/chi/BigBIRD/processed"); std::string dict_path("BB_new_dict"); std::string out_path("BB_stat"); pcl::console::parse_argument(argc, argv, "--p", in_path); pcl::console::parse_argument(argc, argv, "--o", out_path); //if( exists_dir(out_path) == false ) // return 0; float radius = 0.03; int type = 0; pcl::console::parse_argument(argc, argv, "--c1", c1); pcl::console::parse_argument(argc, argv, "--c2", c2); pcl::console::parse_argument(argc, argv, "--r", radius); pcl::console::parse_argument(argc, argv, "--type", type); std::ostringstream rr; rr << (int)(radius*100); std::cerr << rr.str() << std::endl; std::vector< std::vector<cv::Mat> > mean_vec(c2-c1+1); std::vector< std::vector<cv::Mat> > var_vec(c2-c1+1); int num_layer = 20; Hier_Pooler hie_producer(radius); hie_producer.LoadDict_L0(dict_path, "200", "200"); std::vector<Pooler_L0> pooler_vec(num_layer); for( int i = 0 ; i < num_layer ; i++ ) pooler_vec[i].setHSIPoolingParams(i+1); int dataset_id = -1; if( pcl::console::find_switch(argc, argv, "-uw") == true ) dataset_id = 0; if( pcl::console::find_switch(argc, argv, "-bb") == true ) dataset_id = 1; if( pcl::console::find_switch(argc, argv, "-jhu") == true ) dataset_id = 2; for( int i = c1 ; i <= c2 ; i++ ) { std::stringstream ss; ss << i; ObjectSet train_objects, test_objects; switch(dataset_id) { case 0: readUWInst(in_path, train_objects, test_objects, i, i, true); break; case 1: readBB(in_path, train_objects, test_objects, i, i, true); break; case 2: readJHUInst(in_path, train_objects, test_objects, i, i, true); break; default: std::cerr << "No Corresponding Dataset!" << std::endl; exit(0); } getDistri(train_objects[0], pooler_vec, hie_producer, mean_vec[i-c1], var_vec[i-c1], "train_"+ss.str(), type); //std::vector<cv::Mat> temp_E, temp_V; //getDistri(test_objects[0], pooler_vec, hie_producer, temp_E, temp_V, "test_"+ss.str(), type); //mean_vec[i].resize(num_layer); //var_vec[i].resize(num_layer); std::ofstream fp_var; if( type == 0 ) fp_var.open((out_path+"/var_lab_"+ss.str()+"_"+rr.str()+"_.txt").c_str(), std::ios::out); else fp_var.open((out_path+"/var_xyz_"+ss.str()+"_"+rr.str()+"_.txt").c_str(), std::ios::out); for( int j = 0 ; j < var_vec[i-c1].size() ; j++ ) { //int sum_non_zero = 0; //for(int k = 0 ; k < var_vec[i-c1][j].cols; k++ ) //{ // if( var_vec[i-c1][j].at<float>(0, k) > 1e-6 ) // sum_non_zero++; //} //double var_score = cv::norm(var_vec[i-c1][j], cv::NORM_L1) / sum_non_zero; fp_var << j << " " << cv::norm(var_vec[i-c1][j], cv::NORM_L1) << std::endl; std::cerr << "Var-"<<i+1<<"-"<<j<<": "<<cv::norm(var_vec[i-c1][j], cv::NORM_L1) << std::endl; } fp_var.close(); /* for( int k = 0 ; k < mean_vec[i-c1].size() ; k++ ) { std::ostringstream kk; kk << k; if( exists_dir("BB_stat/"+ss.str()) == false ) boost::filesystem::create_directories("BB_stat/"+ss.str()); saveMat( "BB_stat/"+kk.str() + "/mean_"+ss.str()+"_L0.smat", mean_vec[i-c1][k]); saveMat( "BB_stat/"+kk.str() + "/var_" +ss.str()+"_L0.smat", var_vec[i-c1][k]); } * */ } //for( int j = 0 ; j < num_layer ; j++ ){ // double sum_dist = 0; // for( int p = 0 ; p <= c2-c1 ; p++ ){ // for( int q = p+1 ; q <= c2-c1 ; q++ ){ // double dist = distDistri(mean_vec[p][j], mean_vec[q][j], var_vec[p][j], var_vec[q][j], 1.0); // sum_dist += dist; // } // } // std::cerr << "Layer-"<<j<<": "<<sum_dist<<std::endl; //} return 0; } //*/ /* int main(int argc, char** argv) { int c1 = 0, c2 = BB_INST_MAX-1; float CC = 1; std::string in_path("BB_stat"); pcl::console::parse_argument(argc, argv, "--C", CC); pcl::console::parse_argument(argc, argv, "--p", in_path); if( exists_dir(in_path) == false ) return 0; pcl::console::parse_argument(argc, argv, "--c1", c1); pcl::console::parse_argument(argc, argv, "--c2", c2); int layer = 0; pcl::console::parse_argument(argc, argv, "--l", layer); size_t total_train, total_test; std::vector<problem> train_prob_set(c2-c1+1); for( int i = c1 ; i <= c2 ; i++ ) { std::stringstream ss; ss << i; std::vector<cv::Mat> cur_train_vec(layer); for( int j = 0 ; j < layer ; j++ ) { std::stringstream ll; ll << j; std::cerr << "Reading: " << in_path + "/" + ll.str() + "/train_"+ss.str()+"_L0.smat" << std::endl; cur_train_vec[j] = readCvMatSparse(in_path + "/" + ll.str() + "/train_"+ss.str()+"_L0.smat"); } cv::Mat final_train; cv::hconcat(cur_train_vec, final_train); cur_train_vec.clear(); int fea_dim = final_train.cols; std::vector<SparseDataOneClass> cur_train(1); sparseCvMat(final_train, cur_train[0].fea_vec); final_train.release(); cur_train[0].label = i+1; FormFeaSparseMat(cur_train, train_prob_set[i-c1], cur_train[0].fea_vec.size(), fea_dim); } problem train_prob; train_prob.l = 0; mergeProbs(train_prob_set, train_prob); total_train = train_prob.l; std::cerr<< "Fea Dim: " << train_prob.n << std::endl; parameter param; GenSVMParamter(param, CC); std::cerr<<std::endl<<"Starting Liblinear Training..."<<std::endl; model* cur_model = train(&train_prob, &param); int total_corr; // Computing traininig and testing accuracies free(train_prob.y); for( int i = 0 ; i < train_prob.l ; i++ ) free(train_prob.x[i]); free(train_prob.x); train_prob_set.clear(); std::vector<problem> test_prob_set(c2-c1+1); for( int i = c1 ; i <= c2 ; i++ ) { std::stringstream ss; ss << i; std::vector<cv::Mat> cur_test_vec(layer); for( int j = 0 ; j < layer ; j++ ) { std::stringstream ll; ll << j; std::cerr << "Reading: " << in_path + "/" + ll.str() + "/test_"+ss.str()+"_L0.smat" << std::endl; cur_test_vec[j] = readCvMatSparse(in_path + "/" + ll.str() + "/test_"+ss.str()+"_L0.smat"); } cv::Mat final_test; cv::hconcat(cur_test_vec, final_test); cur_test_vec.clear(); int fea_dim = final_test.cols; std::vector<SparseDataOneClass> cur_test(1); sparseCvMat(final_test, cur_test[0].fea_vec); final_test.release(); cur_test[0].label = i+1; FormFeaSparseMat(cur_test, test_prob_set[i-c1], cur_test[0].fea_vec.size(), fea_dim); } problem test_prob; test_prob.l = 0; mergeProbs(test_prob_set, test_prob); total_test = test_prob.l; int corr[OBJ_INST_MAX] = {0}, count[OBJ_INST_MAX] = {0}; for(int j = 0 ; j < test_prob.l ; j++ ) { int true_label = floor(test_prob.y[j]+0.001-1); count[true_label]++; double tmp_label = predict(cur_model, test_prob.x[j]); int pred_label = floor(tmp_label +0.001 - 1); if( pred_label == true_label ) corr[true_label]++; } total_corr = 0; for( int b1 = c1 ; b1 <= c2 ; b1++ ) total_corr += corr[b1]; std::cerr << "Total Train: "<< train_prob.l << std::endl; std::cerr << "Total Test: "<< test_prob.l << std::endl; std::cerr<<"Final Testing Accuracy: "<<(total_corr+0.0)/test_prob.l<<std::endl; free_and_destroy_model(&cur_model); //Deallocation destroy_param(&param); free(test_prob.y); for( int i = 0 ; i < test_prob.l ; i++ ) free(test_prob.x[i]); free(test_prob.x); cv::Mat final_E_1, final_E_2, final_V_1, final_V_2; std::vector<cv::Mat> cur_E_1(layer); std::vector<cv::Mat> cur_E_2(layer); std::vector<cv::Mat> cur_V_1(layer); std::vector<cv::Mat> cur_V_2(layer); std::ostringstream cc1, cc2; cc1 << c1; cc2 << c2; for( int j = 0 ; j < layer ; j++ ) { std::stringstream ll; ll << j; std::cerr << "Reading: " << in_path + "/" + ll.str() + "/mean_"+cc1.str()+"_L0.smat" << std::endl; readMat(in_path + "/" + ll.str() + "/mean_"+cc1.str()+"_L0.smat", cur_E_1[j]); std::cerr << "Reading: " << in_path + "/" + ll.str() + "/mean_"+cc2.str()+"_L0.smat" << std::endl; readMat(in_path + "/" + ll.str() + "/mean_"+cc2.str()+"_L0.smat", cur_E_2[j]); std::cerr << "Reading: " << in_path + "/" + ll.str() + "/var_"+cc1.str()+"_L0.smat" << std::endl; readMat(in_path + "/" + ll.str() + "/mean_"+cc1.str()+"_L0.smat", cur_V_1[j]); std::cerr << "Reading: " << in_path + "/" + ll.str() + "/var_"+cc2.str()+"_L0.smat" << std::endl; readMat(in_path + "/" + ll.str() + "/var_"+cc2.str()+"_L0.smat", cur_V_2[j]); } cv::hconcat(cur_E_1,final_E_1); cv::hconcat(cur_E_2,final_E_2); cv::hconcat(cur_V_1,final_V_1); cv::hconcat(cur_V_2,final_V_2); double dist = distDistri(final_E_1, final_E_2, final_V_1, final_V_2, 1.0); return 1; } //*/ /* int main(int argc, char** argv) { std::string in_path("/home/chi/BigBIRD/processed"); std::string out_path("BB_fea_pool"); std::string dict_path("BB_new_dict"); //std::string dict_path("dict"); int c1 = 0, c2 = 1; float radius = 0.03; int dataset_id = -1; int type = 0; float gamma = 1; pcl::console::parse_argument(argc, argv, "--p", in_path); pcl::console::parse_argument(argc, argv, "--o", out_path); pcl::console::parse_argument(argc, argv, "--c1", c1); pcl::console::parse_argument(argc, argv, "--c2", c2); pcl::console::parse_argument(argc, argv, "--r", radius); pcl::console::parse_argument(argc, argv, "--type", type); pcl::console::parse_argument(argc, argv, "--g", gamma); std::ostringstream tt; tt << type; int len = 20; pcl::console::parse_argument(argc, argv, "--l", len); if( pcl::console::find_switch(argc, argv, "-uw") == true ) dataset_id = 0; if( pcl::console::find_switch(argc, argv, "-bb") == true ) dataset_id = 1; if( pcl::console::find_switch(argc, argv, "-jhu") == true ) dataset_id = 2; Hier_Pooler hie_producer(radius); hie_producer.LoadDict_L0(dict_path, "200", "200"); std::vector<Pooler_L0> pooler_vec(len); for( int i = 0 ; i < len ; i++ ) pooler_vec[i].setHSIPoolingParams(i+1); if( exists_dir(out_path) == false ) boost::filesystem::create_directories(out_path); ObjectSet train_1, test_1; ObjectSet train_2, test_2; switch(dataset_id) { case 0: readUWInst(in_path, train_1, test_1, c1, c1); readUWInst(in_path, train_2, test_2, c2, c2); break; case 1: readBB(in_path, train_1, test_1, c1, c1); readBB(in_path, train_2, test_2, c2, c2); break; case 2: readJHUInst(in_path, train_1, test_1, c1, c1); readJHUInst(in_path, train_2, test_2, c2, c2); break; default: std::cerr << "No Corresponding Dataset!" << std::endl; exit(0); } std::cerr << "Loading Completed... " << std::endl; std::vector<cv::Mat> mean_1_vec, mean_2_vec, mean_3_vec, mean_4_vec; std::vector<cv::Mat> var_1_vec, var_2_vec, var_3_vec, var_4_vec; //* std::ostringstream ss1 , ss2; ss1 << c1; ss2 << c2; getDistri(train_1[0], pooler_vec, hie_producer, mean_1_vec, var_1_vec, "train_"+ss1.str(), type); train_1[0].clear(); std::cerr << "Train 1 Done!" << std::endl; getDistri(train_2[0], pooler_vec, hie_producer, mean_2_vec, var_2_vec, "train_"+ss2.str(), type); train_2[0].clear(); std::cerr << "Train 2 Done!" << std::endl; getDistri(test_1[0], pooler_vec, hie_producer, mean_3_vec, var_3_vec, "test_"+ss1.str(), type); test_1[0].clear(); std::cerr << "Test 1 Done!" << std::endl; getDistri(test_2[0], pooler_vec, hie_producer, mean_4_vec, var_4_vec, "test_"+ss2.str(), type); test_2[0].clear(); std::cerr << "Test 2 Done!" << std::endl; //std::ofstream fp_diff; //fp_diff.open((out_path+"/diff_t"+tt.str()+".txt").c_str(), std::ios::out); for( int i = 0 ; i < len ; i++ ) { std::cerr << "Pool-" << i+1 << std::endl; double dist = distDistri(mean_1_vec[i], mean_2_vec[i], var_1_vec[i], var_2_vec[i], gamma); //<<": "<<dist<<std::endl; //double dist1 = distDistri(mean_1_vec[i], mean_3_vec[i], var_1_vec[i], var_3_vec[i]); //double dist2 = distDistri(mean_2_vec[i], mean_3_vec[i], var_2_vec[i], var_3_vec[i]); //double dist3 = distDistri(mean_1_vec[i], mean_4_vec[i], var_1_vec[i], var_4_vec[i]); //double dist4 = distDistri(mean_2_vec[i], mean_4_vec[i], var_2_vec[i], var_4_vec[i]); //std::cerr << "Pool-"<<i+1<<": "<<dist2/dist1<<" "<<dist3/dist4<<std::endl; //fp_diff<<i+1<<" "<<dist2/dist1<<" "<<dist3/dist4<<std::endl; } //fp_diff.close(); return 1; } //*/ /* std::ofstream fp_var_2; fp_var_2.open((out_path+"/var_2.txt").c_str(), std::ios::out); std::ofstream fp_bound_diff; fp_bound_diff.open((out_path+"/bound_diff.txt").c_str(), std::ios::out); std::ofstream fp_diff; fp_diff.open((out_path+"/diff.txt").c_str(), std::ios::out); for( int i = 0 ; i < len ; i++ ) { cv::Mat cur_fea_2; cv::vconcat(fea_vec_2[i], cur_fea_2); double cur_var_total_2 = StatOnePool(cur_fea_2, mean_2_vec[i], var_2_vec[i]); cur_fea_2.release(); fp_var_2 << cur_var_total_2 << " "; std::cerr << "Var-"<<i+1<<": "<<cur_var_total_2<<std::endl; double cur_dist = distDistri(mean_1_vec[i], mean_2_vec[i], var_1_vec[i], var_2_vec[i]); fp_bound_diff << cur_dist << " "; std::cerr << "Pool-"<<i+1<<": "<<cur_dist<<std::endl; } fp_var_1.close(); fp_var_2.close(); fp_bound_diff.close(); fp_diff.close(); //*/
34.776298
199
0.522112
jhu-lcsr
e5ee79f313ccdb27df610145a293ce1cc49f2117
1,939
cpp
C++
src/plugin/utility/src/AFCTimerModule.cpp
overtalk/ARK
9d314e99dc13684fc672371a0c3fbaa6b9a46d97
[ "Apache-2.0" ]
1
2020-02-21T14:32:13.000Z
2020-02-21T14:32:13.000Z
src/plugin/utility/src/AFCTimerModule.cpp
overtalk/ARK
9d314e99dc13684fc672371a0c3fbaa6b9a46d97
[ "Apache-2.0" ]
null
null
null
src/plugin/utility/src/AFCTimerModule.cpp
overtalk/ARK
9d314e99dc13684fc672371a0c3fbaa6b9a46d97
[ "Apache-2.0" ]
null
null
null
/* * This source file is part of ARK * For the latest info, see https://github.com/ArkNX * * Copyright (c) 2013-2019 ArkNX 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. * */ #include "utility/include/AFCTimerModule.hpp" namespace ark { bool AFCTimerModule::Init() { mxTimerManager = std::make_shared<AFTimerManager>(); mxTimerManager->Init(GetPluginManager()->GetNowTime()); return true; } bool AFCTimerModule::PreShut() { mxTimerManager->Shut(); return true; } bool AFCTimerModule::Update() { mxTimerManager->Update(GetPluginManager()->GetNowTime()); return true; } bool AFCTimerModule::RemoveTimer(const std::string& name) { return mxTimerManager->RemoveTimer(name); } bool AFCTimerModule::RemoveTimer(const std::string& name, const AFGUID& entity_id) { return mxTimerManager->RemoveTimer(name, entity_id); } bool AFCTimerModule::AddSingleTimer(const std::string& name, const AFGUID& entity_id, const uint32_t interval_time, const uint32_t count, TIMER_FUNCTOR&& cb) { return mxTimerManager->AddSingleTimer(name, entity_id, interval_time, count, std::forward<TIMER_FUNCTOR>(cb)); } bool AFCTimerModule::AddForeverTimer( const std::string& name, const AFGUID& entity_id, const uint32_t interval_time, TIMER_FUNCTOR&& cb) { return mxTimerManager->AddForverTimer(name, entity_id, interval_time, std::forward<TIMER_FUNCTOR>(cb)); } } // namespace ark
28.514706
115
0.738009
overtalk
e5fb27252d6476db4959f32bb2cf291ac303af6d
2,388
cpp
C++
src/nakama-c/ClientFactoryC.cpp
azurepine/nakama-cpp
132d812d994284cc4c23aaece94a0fe4ef85c666
[ "Apache-2.0" ]
53
2019-03-08T07:39:44.000Z
2022-03-26T20:53:16.000Z
src/nakama-c/ClientFactoryC.cpp
azurepine/nakama-cpp
132d812d994284cc4c23aaece94a0fe4ef85c666
[ "Apache-2.0" ]
42
2019-03-22T12:05:51.000Z
2022-03-17T20:56:36.000Z
src/nakama-c/ClientFactoryC.cpp
azurepine/nakama-cpp
132d812d994284cc4c23aaece94a0fe4ef85c666
[ "Apache-2.0" ]
25
2019-03-13T09:01:36.000Z
2022-02-07T05:57:14.000Z
/* * Copyright 2019 The Nakama 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. */ #ifdef BUILD_C_API #include "nakama-c/ClientFactory.h" #include "nakama-cpp/ClientFactory.h" NAKAMA_NAMESPACE_BEGIN static std::vector<Nakama::NClientPtr> g_clients; static NClient createClient(const tNClientParameters* parameters, std::function<Nakama::NClientPtr (const Nakama::NClientParameters&)> creator) { Nakama::NClientParameters cppClientParams; cppClientParams.host = parameters->host; cppClientParams.port = parameters->port; cppClientParams.serverKey = parameters->serverKey; cppClientParams.ssl = parameters->ssl; auto cppClient = creator(cppClientParams); if (cppClient) { g_clients.push_back(cppClient); } return (NClient)cppClient.get(); } NAKAMA_NAMESPACE_END extern "C" { using namespace NAKAMA_NAMESPACE; NClient createDefaultNakamaClient(const tNClientParameters* parameters) { return createClient(parameters, [](const Nakama::NClientParameters& cppClientParams) { return Nakama::createDefaultClient(cppClientParams); }); } NClient createGrpcNakamaClient(const tNClientParameters* parameters) { return createClient(parameters, [](const Nakama::NClientParameters& cppClientParams) { return Nakama::createGrpcClient(cppClientParams); }); } NClient createRestNakamaClient(const tNClientParameters* parameters) { return createClient(parameters, [](const Nakama::NClientParameters& cppClientParams) { return Nakama::createRestClient(cppClientParams); }); } void destroyNakamaClient(NClient client) { if (client) { for (auto it = g_clients.begin(); it != g_clients.end(); ++it) { if ((NClient)it->get() == client) { g_clients.erase(it); break; } } } } } // extern "C" #endif // BUILD_C_API
28.428571
147
0.718174
azurepine
f9042e830a43e089561b6f00cd22d545e5ed9e43
1,849
cpp
C++
boost.asio/boostorg/buffer/reference_counted.cpp
pvthuyet/books
bac5f754a68243e463ec7b0d93610be8807b31ac
[ "BSL-1.0" ]
null
null
null
boost.asio/boostorg/buffer/reference_counted.cpp
pvthuyet/books
bac5f754a68243e463ec7b0d93610be8807b31ac
[ "BSL-1.0" ]
null
null
null
boost.asio/boostorg/buffer/reference_counted.cpp
pvthuyet/books
bac5f754a68243e463ec7b0d93610be8807b31ac
[ "BSL-1.0" ]
null
null
null
#include <boost/asio.hpp> #include <iostream> #include <memory> #include <utility> #include <vector> #include <ctime> using boost::asio::ip::tcp; class shared_const_buffer { public: explicit shared_const_buffer(const std::string& data) : data_(new std::vector<char>(data.begin(), data.end())), buffer_(boost::asio::buffer(*data_)) {} using value_type = boost::asio::const_buffer; using const_iterator = const boost::asio::const_buffer*; const boost::asio::const_buffer* begin() const { return &buffer_; } const boost::asio::const_buffer* end() const { return &buffer_ + 1; } private: std::shared_ptr<std::vector<char> > data_; boost::asio::const_buffer buffer_; }; class session : public std::enable_shared_from_this<session> { private: // The socket used to communicate with the client. tcp::socket socket_; public: session(tcp::socket socket) : socket_(std::move(socket)) {} void start() { do_write(); } private: void do_write() { std::time_t now = std::time(0); shared_const_buffer buffer(std::ctime(&now)); auto self(shared_from_this()); boost::asio::async_write(socket_, buffer, [self](boost::system::error_code /*ec*/, std::size_t /*length*/) { }); } }; class server { public: server(boost::asio::io_context& io_context, short port) : acceptor_(io_context, tcp::endpoint(tcp::v4(), port)) { do_accept(); } private: void do_accept() { acceptor_.async_accept( [this](boost::system::error_code ec, tcp::socket socket) { if (!ec) { std::make_shared<session>(std::move(socket))->start(); } do_accept(); }); } tcp::acceptor acceptor_; }; int main() { try { boost::asio::io_context io_context; server s(io_context, 3333); io_context.run(); } catch (const std::exception& ex) { std::cerr << ex.what() << std::endl; } return EXIT_SUCCESS; }
19.463158
70
0.670092
pvthuyet
f909dba27740cdf57c02314c4d4273c381e78196
2,813
hpp
C++
h2g_server/script_macros.hpp
Spayker/b2g-game-connector
f808fa6a67366952a483201507b955ca34b6580c
[ "MIT" ]
null
null
null
h2g_server/script_macros.hpp
Spayker/b2g-game-connector
f808fa6a67366952a483201507b955ca34b6580c
[ "MIT" ]
24
2021-12-06T17:41:08.000Z
2021-12-19T15:21:23.000Z
h2g_server/script_macros.hpp
Spayker/b2g-game-connector
f808fa6a67366952a483201507b955ca34b6580c
[ "MIT" ]
null
null
null
/*#define SYSTEM_TAG "life" #define ITEM_TAG format["%1%2",SYSTEM_TAG,"item_"] #define CASH life_cash #define BANK life_atmbank #define GANG_FUNDS group player getVariable ["gang_bank",0];*/ /* remoteExec Section When uncommented it enables proper testing via local testing Otherwise leave it commented out for "LIVE" servers */ /*#define DEBUG 1 #ifdef DEBUG #define RCLIENT 0 #else #define RCLIENT -2 #endif #define RSERV 2 #define RANY 0*/ //Namespace Macros #define SVAR_MNS missionNamespace setVariable #define SVAR_UINS uiNamespace setVariable #define SVAR_PNS parsingNamespace setVariable #define SVAR_PNAS profileNamespace setVariable #define GVAR_MNS missionNamespace getVariable #define GVAR_UINS uiNamespace getVariable #define GVAR_PNAS profileNamespace getVariable //Scripting Macros #define CONST(var1,var2) var1 = compileFinal (if (var2 isEqualType "") then {var2} else {str(var2)}) #define CONSTVAR(var) var = compileFinal (if (var isEqualType "") then {var} else {str(var)}) #define FETCH_CONST(var) (call var) #define PVAR_ALL(var) publicVariable var #define PVAR_SERV(var) publicVariableServer var #define PVAR_ID(var,id) id publicVariableClient var #define GVAR getVariable #define SVAR setVariable #define EXTDB "extDB3" callExtension #define EXTDB_SETTING(TYPE,SETTING) TYPE(missionConfigFile >> "CfgServer" >> SETTING) #define EXTDB_FAILED(MESSAGE) \ h2g_server_extDB_notLoaded = [true,##MESSAGE]; \ publicVariable "h2g_server_extDB_notLoaded"; \ diag_log MESSAGE; #define EXTDB_SUCCEED(MESSAGE) \ h2g_server_extDB_notLoaded = [false,##MESSAGE]; \ publicVariable "h2g_server_extDB_notLoaded"; \ diag_log MESSAGE; //Display Macros #define CONTROL(disp,ctrl) ((findDisplay ##disp) displayCtrl ##ctrl) #define CONTROL_DATA(ctrl) (lbData[##ctrl,(lbCurSel ##ctrl)]) #define CONTROL_DATAI(ctrl,index) ctrl lbData index //Condition Macros #define EQUAL(condition1,condition2) condition1 isEqualTo condition2 #define NOTINVEH(condition1) isNull objectParent condition1 #define KINDOF_ARRAY(a,b) [##a,##b] call {_veh = _this select 0;_types = _this select 1;_res = false; {if (_veh isKindOf _x) exitWith { _res = true };} forEach _types;_res} //Config Macros #define FETCH_CONFIG(TYPE,CFG,SECTION,CLASS,ENTRY) TYPE(configFile >> CFG >> SECTION >> CLASS >> ENTRY) #define FETCH_CONFIG2(TYPE,CFG,CLASS,ENTRY) TYPE(configFile >> CFG >> CLASS >> ENTRY) #define FETCH_CONFIG3(TYPE,CFG,SECTION,CLASS,ENTRY,SUB) TYPE(configFile >> CFG >> SECTION >> CLASS >> ENTRY >> SUB) #define FETCH_CONFIG4(TYPE,CFG,SECTION,CLASS,ENTRY,SUB,SUB2) TYPE(configFile >> CFG >> SECTION >> CLASS >> ENTRY >> SUB >> SUB2) #define M_CONFIG(TYPE,CFG,CLASS,ENTRY) TYPE(missionConfigFile >> CFG >> CLASS >> ENTRY) #define BASE_CONFIG(CFG,CLASS) inheritsFrom(configFile >> CFG >> CLASS)
40.768116
172
0.763242
Spayker
f90e720b892addd3f6f2a218e2e684facb3aeb3d
1,741
cpp
C++
src/lib/storage/fixed_string_dictionary_column/fixed_string_vector_iterator.cpp
IanJamesMcKay/InMemoryDB
a267d9522926eca9add2ad4512f8ce352daac879
[ "MIT" ]
1
2021-04-14T11:16:52.000Z
2021-04-14T11:16:52.000Z
src/lib/storage/fixed_string_dictionary_column/fixed_string_vector_iterator.cpp
IanJamesMcKay/InMemoryDB
a267d9522926eca9add2ad4512f8ce352daac879
[ "MIT" ]
null
null
null
src/lib/storage/fixed_string_dictionary_column/fixed_string_vector_iterator.cpp
IanJamesMcKay/InMemoryDB
a267d9522926eca9add2ad4512f8ce352daac879
[ "MIT" ]
1
2020-11-30T13:11:04.000Z
2020-11-30T13:11:04.000Z
#include "fixed_string_vector_iterator.hpp" #include <memory> #include <string> #include "resolve_type.hpp" #include "storage/fixed_string_dictionary_column.hpp" #include "storage/vector_compression/base_compressed_vector.hpp" #include "type_cast.hpp" #include "utils/assert.hpp" #include "utils/performance_warning.hpp" namespace opossum { using Facade = boost::iterator_facade<FixedStringIterator, FixedString, std::random_access_iterator_tag, FixedString>; FixedStringIterator::FixedStringIterator(size_t string_length, const pmr_vector<char>& vector, size_t pos = 0) : _string_length(string_length), _chars(vector), _pos(pos) {} FixedStringIterator& FixedStringIterator::operator=(const FixedStringIterator& other) { // NOLINT DebugAssert(_string_length == other._string_length && &_chars == &other._chars, "can't convert pointers from different vectors"); _pos = other._pos; return *this; } bool FixedStringIterator::equal(FixedStringIterator const& other) const { return this->_pos == other._pos; } // NOLINT typename Facade::difference_type FixedStringIterator::distance_to(FixedStringIterator const& other) const { // NOLINT if (_string_length == 0) return 0; return (std::intptr_t(other._pos) - std::intptr_t(this->_pos)) / std::intptr_t(_string_length); } void FixedStringIterator::advance(typename Facade::difference_type n) { _pos += n * _string_length; } // NOLINT void FixedStringIterator::increment() { _pos += _string_length; } // NOLINT void FixedStringIterator::decrement() { _pos -= _string_length; } // NOLINT FixedString FixedStringIterator::dereference() const { // NOLINT return FixedString(const_cast<char*>(&_chars[_pos]), _string_length); } } // namespace opossum
38.688889
119
0.762206
IanJamesMcKay
f910243b67fd8c39f314d95b92c1d4cce0e5b82b
958
cc
C++
src/code_jzc/quant_op.cc
achao2013/mxnet-quantify
ae77c896da6db35530390e3cf8e524d553bba112
[ "Apache-2.0" ]
4
2017-04-03T11:51:32.000Z
2019-01-16T03:57:47.000Z
src/code_jzc/quant_op.cc
achao2013/mxnet-quantify
ae77c896da6db35530390e3cf8e524d553bba112
[ "Apache-2.0" ]
null
null
null
src/code_jzc/quant_op.cc
achao2013/mxnet-quantify
ae77c896da6db35530390e3cf8e524d553bba112
[ "Apache-2.0" ]
null
null
null
#include "quant_op.h" #include <iostream> namespace mxnet { namespace op { template<> void print_check<cpu>(float * data, std::string s) { LOG(INFO)<<s<<": "<<data[0]<<" "<<data[1]<<" "<<data[2]<<" "<<data[3]<<" "<<data[4]<<" "<<data[5]<<" "<<data[6]; } template<> void print_check<cpu>(double * data, std::string s) { LOG(INFO)<<s<<": "<<data[0]<<" "<<data[1]<<" "<<data[2]<<" "<<data[3]<<" "<<data[4]<<" "<<data[5]<<" "<<data[6]; } template<> void print_check<cpu>(mshadow::half::half_t * data, std::string s) { LOG(INFO)<<s<<": "<<data[0]<<" "<<data[1]<<" "<<data[2]<<" "<<data[3]<<" "<<data[4]<<" "<<data[5]<<" "<<data[6]; } template<> void get_iter<cpu>(float* data, float& cpu_i) { cpu_i=*data; } template<> void get_iter<cpu>(double* data,double& cpu_i) { cpu_i=*data; } template<> void get_iter<cpu>(mshadow::half::half_t* data, mshadow::half::half_t& cpu_i) { cpu_i=*data; } } }
23.95
115
0.534447
achao2013
f91f7e862fab44240e30477b9b7b1f532fabd138
362
cpp
C++
codeforce3/600B. Queries about less or equal elements.cpp
khaled-farouk/My_problem_solving_solutions
46ed6481fc9b424d0714bc717cd0ba050a6638ef
[ "MIT" ]
null
null
null
codeforce3/600B. Queries about less or equal elements.cpp
khaled-farouk/My_problem_solving_solutions
46ed6481fc9b424d0714bc717cd0ba050a6638ef
[ "MIT" ]
null
null
null
codeforce3/600B. Queries about less or equal elements.cpp
khaled-farouk/My_problem_solving_solutions
46ed6481fc9b424d0714bc717cd0ba050a6638ef
[ "MIT" ]
null
null
null
#include <iostream> #include <algorithm> using namespace std; const int N = 2 * 1e5; int arr[N] = {0}; int main() { int n, m; cin >> n >> m; for(int i = 0; i < n; i++) cin >> arr[i]; sort(arr, arr+n); for(int i = 0; i < m; i++) { int tmp; cin >> tmp; cout << upper_bound(arr, arr+n, tmp) - arr << endl; } return 0; }
14.48
54
0.48895
khaled-farouk
234e798e0a6e220464998e9d650e25c72e124050
9,615
hpp
C++
src/delegate.hpp
gittiver/libexpatpp
269bbdd28221c8f8edb1625521d2e602aee739e6
[ "MIT" ]
10
2021-06-26T17:28:25.000Z
2022-02-27T12:12:04.000Z
src/delegate.hpp
gittiver/libexpatpp
269bbdd28221c8f8edb1625521d2e602aee739e6
[ "MIT" ]
5
2021-05-12T05:36:48.000Z
2022-03-02T04:07:28.000Z
src/delegate.hpp
gittiver/libexpatpp
269bbdd28221c8f8edb1625521d2e602aee739e6
[ "MIT" ]
2
2021-06-26T17:29:50.000Z
2022-01-03T15:36:34.000Z
/** * @file delegate.hpp * @author gulliver <gulliver@traumkristalle.net> * * @brief contains the xml parsers delegate interface * * See LICENSE for copyright information. */ #ifndef xmlpp_delegate_hpp #define xmlpp_delegate_hpp #include <string> #include "expat.h" namespace xmlpp { /** wrapper class type for expats XML_Error */ class Error { public: Error (XML_Error error) noexcept; std::string to_string() const; XML_Error errorcode() const; private: XML_Error error; }; /** definition of the parser delegate interface. * the parser delegate handles the different parser events */ class delegate { public: virtual ~delegate()=default; /** * this callback is called after parsing the starting tag of an xml element. * * @param fullname name of the started xml element * @param atts list of elements attributes as list of key and value strings */ virtual void onStartElement(const XML_Char *fullname, const XML_Char **atts) = 0; /** * callback is called after parsing the end tag of an xml element * * @param fullname name of the ended sml element */ virtual void onEndElement( const XML_Char *fullname) = 0; /** * callback is called with parsed character data inside of an xml element. * * it may called more than once if the text inside of an xml element does * not fit into the parse buffer. * * @param pBuf pointer to the text data * @param len len of the returned string */ virtual void onCharacterData(const char * pBuf, int len) = 0; /** * callback called on parsed xml comment * * @param data contains the content of the comment * @todo check if called more than once for one comment */ virtual void onComment( const XML_Char *data)= 0; /** * callback will be called if the begin of a PCDATA section was parsed * */ virtual void onStartCdataSection()= 0; /** * callback will be called after the end of a PCDATA section was parsed * */ virtual void onEndCdataSection()= 0; /** * delegate function is called after the (starting) xml declaration is parsed. * * @param version the xml version * @param encoding the encoding of the following xml content * @param standalone 1 for standalone xml file */virtual void onXmlDecl( const XML_Char *version, const XML_Char *encoding, int standalone)= 0; /** * function is called if on parsing a parse error is detected * * @param line line in xml file or string where the error is detected * @param column column in xml file or string where the error is detected * @param pos position of detected parse error in bytes from begin of parsing * @param error error code for type of parse error (wrapper for XML_Error from expat */ virtual void onParseError(size_t line, size_t column, size_t pos, Error error) = 0; /** * delegate function is called if an xml processing instruction was found * * @param target TODO * @param data TODO */ virtual void onProcessingInstruction(const XML_Char* target, const XML_Char* data) = 0; /** * delegate function is called when an xml namespace is started/ opened * * @param prefix prefix of the xml namespace * @param uri uri of namespace */ virtual void onStartNamespace(const XML_Char* prefix, const XML_Char* uri) = 0; /** * delegate function is called when an xml namespace is ended * * @param prefix prefix of the xml namespace */ virtual void onEndNamespace(const XML_Char* prefix) = 0; //@{ dtd AND DOCTYPE RELATED FUNCTIONS /** * delegate function is called when a DTD (document type definition) xml entry * is parsed. * * @param doctypeName name of the document type definition * @param sysid system Id * @param pubid public id * @param has_internal_subset dtd has an internal subset */ virtual void onStartDoctypeDecl(const XML_Char *doctypeName, const XML_Char *sysid, const XML_Char *pubid, int has_internal_subset) = 0; /** * delegate function is called if end of DTD is parsed from xml data */ virtual void onEndDoctypeDecl() = 0; /** * delegate function is called if an DTD element declaration is parsed * from xml data. * * for details of the model see expat library documentation * @param name name of the declared element * @param model the content model for the declared element */ virtual void onElementDecl( const XML_Char *name, XML_Content *model) = 0; /** * delegate function is called if an element attribute list declaration * is parsed. * * @param elname name of the declared element this attribute list refers to * @param attname name of the declared attribute * @param att_type type of the declared attribute * @param dflt * @param isrequired true if attribute is required, false if optional */ virtual void onAttlistDecl(const XML_Char *elname, const XML_Char *attname, const XML_Char *att_type, const XML_Char *dflt, bool isrequired) = 0; /** * delegate function is called if an entity declaration was parsed * * @param entityName name of the declared entity * @param is_parameter_entity * @param value * @param value_length * @param base * @param systemId * @param publicId * @param notationName */virtual void onEntityDecl(const XML_Char *entityName, int is_parameter_entity, const XML_Char *value, int value_length, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId, const XML_Char *notationName) = 0; /** * delegate function is called if an notation declaration * was parsed * * @param notationName name of the declared notation * @param base * @param systemId * @param publicId */virtual void onNotationDecl(const XML_Char* notationName, const XML_Char* base, const XML_Char* systemId, const XML_Char* publicId) = 0; virtual void onUnparsedEntityDecl(const XML_Char* entityName, const XML_Char* base, const XML_Char* systemId, const XML_Char* publicId, const XML_Char* notationName) = 0; virtual void onSkippedEntity(const XML_Char *entityName, int is_parameter_entity) = 0; //@} }; /** default base class for delegates. only needed methods needs to be overridden, all interface maethods have an empt default implementation */ class abstract_delegate : public delegate { public: abstract_delegate(); void onStartElement(const XML_Char *fullname, const XML_Char **atts) override; void onEndElement( const XML_Char *fullname) override; void onCharacterData(const char * pBuf, int len) override; void onProcessingInstruction(const XML_Char* target, const XML_Char* data) override; void onUnparsedEntityDecl(const XML_Char* entityName, const XML_Char* base, const XML_Char* systemId, const XML_Char* publicId, const XML_Char* notationName) override; void onNotationDecl(const XML_Char* notationName, const XML_Char* base, const XML_Char* systemId, const XML_Char* publicId) override; void onStartNamespace(const XML_Char* prefix, const XML_Char* uri) override; void onEndNamespace(const XML_Char*) override; void onAttlistDecl(const XML_Char *elname, const XML_Char *attname, const XML_Char *att_type, const XML_Char *dflt, bool isrequired) override; void onStartCdataSection() override; void onEndCdataSection() override; void onStartDoctypeDecl(const XML_Char *doctypeName, const XML_Char *sysid, const XML_Char *pubid, int has_internal_subset) override; void onEndDoctypeDecl() override; void onComment( const XML_Char *data) override; void onElementDecl( const XML_Char *name, XML_Content *model) override; void onEntityDecl(const XML_Char *entityName, int is_parameter_entity, const XML_Char *value, int value_length, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId, const XML_Char *notationName) override; void onSkippedEntity(const XML_Char *entityName, int is_parameter_entity) override; void onXmlDecl( const XML_Char *version, const XML_Char *encoding, int standalone) override; void onParseError(size_t line,size_t column, size_t pos, Error error) override; }; } #endif // #ifndef xmlpp_delegate_hpp
35.611111
106
0.619033
gittiver
2351b9c16e2cb8b2b5800e06decf38a8b679bbd2
2,080
cpp
C++
src/CandidateList.cpp
chen15959/crossme
67c50ab100ca04ba908c8be86f9ecff45843de92
[ "Apache-2.0" ]
null
null
null
src/CandidateList.cpp
chen15959/crossme
67c50ab100ca04ba908c8be86f9ecff45843de92
[ "Apache-2.0" ]
null
null
null
src/CandidateList.cpp
chen15959/crossme
67c50ab100ca04ba908c8be86f9ecff45843de92
[ "Apache-2.0" ]
null
null
null
#include "CandidateList.hpp" #include "Line.hpp" #include <assert.h> #include <stdlib.h> #include <string.h> using namespace std; CandidateList::CandidateList(LENGTH_T length) { assert(length > 0); _length = length; } CandidateList::CandidateList(const CandidateList & other) { copy(other); } CandidateList::~CandidateList() { free(); } CandidateList & CandidateList::operator=(const CandidateList & rhs) { if (&rhs != this) { free(); copy(rhs); } return *this; } void CandidateList::copy(const CandidateList & other) { _length = other._length; for (map<int, Candidate *>::const_iterator it1 = other._candidates.begin(); it1 != other._candidates.end(); ++it1) { addCandidate(new Candidate(*(it1->second))); } } void CandidateList::free() { for (map<int, Candidate *>::const_iterator it1 = _candidates.begin(); it1 != _candidates.end(); ++it1) { delete it1->second; } _candidates.clear(); } void CandidateList::addCandidate(Candidate * c) { assert(c->length() == _length); _candidates.insert(pair<int, Candidate *>(size(), c)); } bool CandidateList::ruleBy(const Line & line) { vector<int> to_del; //将和line不符合的可能性标记出来 for (map<int, Candidate *>::const_iterator it1 = _candidates.begin(); it1 != _candidates.end(); ++it1) { if (*(it1->second) != line) { to_del.push_back(it1->first); } } //删除这些被标记的 for (vector<int>::const_iterator it2 = to_del.begin(); it2 != to_del.end(); ++it2) { delete _candidates[*it2]; _candidates.erase(*it2); } return to_del.size() > 0; } VALUE_T CandidateList::getValue(LENGTH_T pos) const { WeightQueue result; getValues(pos, result); if (result.size() == 0) { return VAL_NONE; } else if (result.size() == 1) { return (VALUE_T)result.top(); } else { return VAL_UNKNOWN; } } void CandidateList::getValues(LENGTH_T pos, WeightQueue & result) const { assert(pos >= 0 && pos < _length); for (map<int, Candidate *>::const_iterator it = _candidates.begin(); it != _candidates.end(); ++it) { result.push(it->second->value(pos), 1); } }
14.751773
115
0.657692
chen15959
23529a5929d6d6750fa2dc96d28da5990dd805de
484
cpp
C++
exercise/src/unitTest/unitTest.cpp
softwarekid/crayon
72fe08eab4b4282ad729ee2719e75df2f02f1def
[ "MIT" ]
null
null
null
exercise/src/unitTest/unitTest.cpp
softwarekid/crayon
72fe08eab4b4282ad729ee2719e75df2f02f1def
[ "MIT" ]
null
null
null
exercise/src/unitTest/unitTest.cpp
softwarekid/crayon
72fe08eab4b4282ad729ee2719e75df2f02f1def
[ "MIT" ]
null
null
null
////#include <cppunit/TestResult.h> ////#include <cppunit/TestResultCollector.h> ////#include <cppunit/TextOutputter.h> ////#include <cppunit/TestRunner.h> ////#include <cppunit/extensions/TestFactoryRegistry.h> //#include <gtest/gtest.h> //#include "MatrixGtest.h" //#include "VectorGtest.h" //#include "CameraGtest.h" //#include "TransformGtest.h" //int main(int argc, char ** argv) // { // testing::InitGoogleTest(&argc, argv); // return RUN_ALL_TESTS(); //}
32.266667
56
0.667355
softwarekid
23540e9faa64e70472961fbbcbf4ce1444673390
1,221
cpp
C++
HXEngine/HXCore/src/HXGDICamera.cpp
huangx916/HXEngine
b7ec36572c4444113a35c9a6c65b127279c7360f
[ "MIT" ]
45
2018-07-21T12:14:44.000Z
2022-01-26T04:22:38.000Z
HXEngine/HXCore/src/HXGDICamera.cpp
huangx916/HXEngine
b7ec36572c4444113a35c9a6c65b127279c7360f
[ "MIT" ]
75
2017-08-11T03:06:03.000Z
2019-06-13T06:20:58.000Z
HXEngine/HXCore/src/HXGDICamera.cpp
huangx916/HXEngine
b7ec36572c4444113a35c9a6c65b127279c7360f
[ "MIT" ]
19
2018-11-26T08:41:56.000Z
2022-03-21T03:29:55.000Z
#include "..\include\HXGDICamera.h" #include "HXFrustum.h" #include "HXMath.h" #include "HXQuaternionS.h" #include "HXGDITransform.h" namespace HX3D { HXGDICamera::HXGDICamera():mFrustum(NULL) { transform = new HXGDITransform(); } HXGDICamera::~HXGDICamera() { if (mFrustum) { delete mFrustum; mFrustum = NULL; } delete transform; } void HXGDICamera::Initialize(const HXVector3D& position, const HXVector3D& rotate, float nearZ, float farZ) { transform->mLocalPostion = position; transform->mLocalEuler = rotate; mFrustum = new HXFrustum(transform , 90, nearZ, farZ, SCREEN_WIDTH, SCREEN_HEIGHT); } void HXGDICamera::Update() { if (mFrustum) { mFrustum->update(); } } void HXGDICamera::OnViewPortResize(int nScreenWidth, int nScreenHeight) { } void HXGDICamera::move(const HXVector3D& mov) { HXQuaternionS q; q.FromEulerDegree(transform->mLocalEuler.x, transform->mLocalEuler.y, transform->mLocalEuler.z); HXVector3D v = mov; v = q.Transform(v); transform->mLocalPostion += v; } void HXGDICamera::yaw(float fDegree) { transform->mLocalEuler.y += fDegree; } void HXGDICamera::pitch(float fDegree) { transform->mLocalEuler.x += fDegree; } }
19.078125
98
0.703522
huangx916
236013f141fd6e992506c0bc61dfb4023b7afbad
937
cc
C++
src/ast/files.cc
lbk2kgithub1/verona
5be07d3b71e5a4fa8da1493cf4c6248d75642f85
[ "MIT" ]
null
null
null
src/ast/files.cc
lbk2kgithub1/verona
5be07d3b71e5a4fa8da1493cf4c6248d75642f85
[ "MIT" ]
null
null
null
src/ast/files.cc
lbk2kgithub1/verona
5be07d3b71e5a4fa8da1493cf4c6248d75642f85
[ "MIT" ]
null
null
null
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "files.h" namespace files { std::vector<char> slurp(const std::string& file, bool optional) { std::ifstream f(file.c_str(), std::ios::binary | std::ios::ate); if (!f) { if (optional) { return {}; } else { std::cerr << "Could not open file " << file << std::endl; exit(-1); } } auto size = f.tellg(); f.seekg(0, std::ios::beg); std::vector<char> data(static_cast<std::vector<char>::size_type>(size)); f.read(data.data(), size); if (!optional && !f) { std::cerr << "Could not read file " << file << std::endl; exit(-1); } return data; } void write(const std::string& file, const std::string& content) { std::ofstream f(file.c_str(), std::ifstream::out); f << content; f.close(); } }
20.369565
76
0.54429
lbk2kgithub1
23659ef79928a3b08684f397c55ec0c9061fb766
326
cpp
C++
src/0_creational_patterns/abstract_factory/main.cpp
galudino/gof-designpatterns-cpp
0a1b63898ecde9868178aabd26d9f37a79bb47ee
[ "MIT" ]
2
2022-01-08T05:25:43.000Z
2022-02-21T03:02:28.000Z
src/0_creational_patterns/abstract_factory/main.cpp
galudino/gof-designpatterns-cpp
0a1b63898ecde9868178aabd26d9f37a79bb47ee
[ "MIT" ]
null
null
null
src/0_creational_patterns/abstract_factory/main.cpp
galudino/gof-designpatterns-cpp
0a1b63898ecde9868178aabd26d9f37a79bb47ee
[ "MIT" ]
null
null
null
#include "maze_game.h" #include "bombed_maze_factory.h" #include "enchanted_maze_factory.h" int main() { auto game = maze_game(); auto factory_bombed = bombed_maze_factory(); auto factory_enchanted = enchanted_maze_factory(); game.create_maze(factory_bombed); game.create_maze(factory_enchanted); }
23.285714
54
0.733129
galudino
236b9d6b4ac98935d3a5ce71cd1dc0ae8c7d33f9
339,352
hpp
C++
libraries/belle/Source/Fonts/Joie.hpp
jogawebb/Spaghettis
78f21ba3065ce316ef0cb84e94aecc9e8787343d
[ "Zlib", "BSD-2-Clause", "BSD-3-Clause" ]
47
2017-09-05T02:49:22.000Z
2022-01-20T08:11:47.000Z
libraries/belle/Source/Fonts/Joie.hpp
jogawebb/Spaghettis
78f21ba3065ce316ef0cb84e94aecc9e8787343d
[ "Zlib", "BSD-2-Clause", "BSD-3-Clause" ]
106
2018-05-16T14:58:52.000Z
2022-01-12T13:57:24.000Z
libraries/belle/Source/Fonts/Joie.hpp
jogawebb/Spaghettis
78f21ba3065ce316ef0cb84e94aecc9e8787343d
[ "Zlib", "BSD-2-Clause", "BSD-3-Clause" ]
11
2018-05-16T06:44:51.000Z
2021-11-10T07:04:46.000Z
/* Auto-generated file. */ // ==================================== namespace belle { extern const prim::byte* JoieBellefont; #ifdef BELLE_COMPILE_INLINE static const prim::byte JoieBellefontData[57454] = { 2, 9, 240, 2, 48, 0, 0, 0, 0, 0, 128, 64, 0, 0, 0, 64, 0, 0, 0, 192, 65, 0, 0, 0, 0, 64, 36, 63, 0, 0, 0, 0, 71, 0, 0, 0, 1, 0, 128, 174, 62, 0, 112, 141, 63, 3, 0, 0, 194, 62, 0, 208, 144, 63, 85, 213, 181, 62, 0, 176, 143, 63, 85, 85, 188, 62, 0, 208, 144, 63, 3, 0, 64, 230, 62, 0, 16, 132, 63, 0, 0, 203, 62, 0, 208, 144, 63, 85, 21, 215, 62, 0, 144, 140, 63, 3, 0, 64, 1, 63, 0, 96, 83, 63, 171, 106, 245, 62, 0, 32, 119, 63, 85, 213, 254, 62, 171, 138, 101, 63, 3, 0, 192, 251, 62, 0, 0, 39, 63, 85, 21, 3, 63, 85, 53, 65, 63, 85, 245, 1, 63, 171, 106, 50, 63, 3, 0, 128, 204, 62, 0, 64, 255, 62, 85, 149, 243, 62, 85, 149, 27, 63, 85, 213, 227, 62, 85, 117, 14, 63, 3, 0, 128, 167, 62, 0, 64, 211, 62, 0, 128, 191, 62, 0, 64, 238, 62, 171, 42, 179, 62, 85, 149, 223, 62, 2, 0, 0, 184, 62, 0, 128, 120, 62, 3, 0, 0, 197, 62, 0, 128, 126, 62, 85, 85, 188, 62, 0, 128, 122, 62, 171, 170, 192, 62, 0, 128, 124, 62, 3, 0, 96, 17, 63, 0, 0, 53, 62, 85, 85, 234, 62, 0, 64, 134, 62, 171, 202, 4, 63, 0, 0, 116, 62, 3, 0, 128, 31, 63, 0, 0, 140, 188, 85, 245, 29, 63, 0, 0, 236, 61, 171, 170, 34, 63, 85, 85, 79, 61, 3, 0, 0, 12, 63, 0, 128, 49, 190, 85, 85, 28, 63, 171, 170, 173, 189, 85, 213, 21, 63, 171, 42, 12, 190, 3, 0, 128, 230, 62, 0, 128, 115, 190, 85, 213, 4, 63, 85, 213, 76, 190, 171, 42, 249, 62, 85, 213, 98, 190, 3, 0, 64, 238, 62, 0, 128, 204, 190, 0, 128, 236, 62, 171, 106, 154, 190, 85, 21, 239, 62, 0, 0, 182, 190, 3, 0, 0, 218, 62, 0, 0, 8, 191, 171, 106, 237, 62, 0, 0, 227, 190, 171, 170, 230, 62, 0, 128, 249, 190, 3, 0, 192, 162, 62, 0, 0, 29, 191, 85, 85, 205, 62, 0, 64, 19, 191, 171, 234, 186, 62, 0, 64, 26, 191, 3, 0, 128, 64, 62, 0, 128, 23, 191, 85, 149, 138, 62, 0, 192, 31, 191, 85, 213, 104, 62, 171, 234, 29, 191, 3, 0, 0, 254, 61, 0, 0, 251, 190, 171, 42, 24, 62, 85, 21, 17, 191, 85, 85, 2, 62, 171, 106, 8, 191, 3, 0, 0, 27, 62, 0, 0, 203, 190, 85, 85, 247, 61, 171, 42, 229, 190, 0, 0, 5, 62, 171, 42, 213, 190, 3, 0, 0, 110, 62, 0, 128, 190, 190, 0, 0, 49, 62, 85, 213, 192, 190, 171, 170, 76, 62, 171, 170, 188, 190, 3, 0, 128, 156, 62, 0, 192, 209, 190, 171, 170, 135, 62, 85, 85, 192, 190, 171, 42, 148, 62, 0, 192, 198, 190, 3, 0, 0, 165, 62, 0, 64, 252, 190, 85, 213, 164, 62, 0, 192, 220, 190, 171, 170, 167, 62, 171, 234, 234, 190, 3, 0, 192, 141, 62, 0, 192, 15, 191, 85, 85, 162, 62, 171, 202, 6, 191, 85, 149, 154, 62, 171, 170, 12, 191, 3, 0, 0, 85, 62, 0, 160, 16, 191, 171, 234, 128, 62, 85, 213, 18, 191, 85, 85, 106, 62, 0, 32, 19, 191, 3, 0, 0, 116, 62, 0, 160, 23, 191, 171, 170, 89, 62, 85, 245, 18, 191, 0, 0, 100, 62, 171, 74, 21, 191, 3, 0, 0, 176, 62, 0, 96, 18, 191, 85, 85, 138, 62, 85, 117, 26, 191, 85, 85, 156, 62, 85, 181, 24, 191, 3, 0, 192, 211, 62, 0, 128, 242, 190, 171, 170, 195, 62, 171, 10, 12, 191, 85, 149, 207, 62, 171, 170, 3, 191, 3, 0, 128, 212, 62, 0, 192, 170, 190, 171, 234, 215, 62, 171, 170, 221, 190, 171, 42, 216, 62, 0, 192, 197, 190, 2, 0, 128, 205, 62, 0, 192, 130, 190, 3, 0, 0, 93, 62, 0, 128, 111, 190, 0, 128, 177, 62, 171, 106, 138, 190, 85, 213, 145, 62, 0, 192, 134, 190, 3, 0, 0, 108, 61, 0, 0, 224, 189, 0, 0, 21, 62, 171, 42, 80, 190, 0, 0, 190, 61, 171, 170, 37, 190, 3, 0, 0, 32, 59, 0, 0, 112, 61, 0, 0, 184, 60, 85, 85, 105, 189, 85, 85, 133, 59, 0, 0, 128, 186, 3, 0, 0, 172, 60, 0, 128, 104, 62, 85, 85, 85, 58, 0, 0, 242, 61, 85, 85, 229, 59, 0, 128, 50, 62, 3, 0, 0, 178, 61, 0, 128, 198, 62, 85, 85, 15, 61, 0, 64, 143, 62, 85, 85, 105, 61, 171, 170, 170, 62, 3, 0, 0, 96, 62, 0, 224, 10, 63, 85, 85, 239, 61, 85, 85, 226, 62, 171, 170, 36, 62, 0, 192, 252, 62, 3, 0, 128, 129, 62, 0, 160, 18, 63, 0, 0, 108, 62, 0, 96, 13, 63, 171, 170, 119, 62, 85, 245, 15, 63, 2, 0, 0, 114, 62, 0, 224, 40, 63, 3, 0, 0, 103, 62, 0, 96, 93, 63, 85, 85, 99, 62, 0, 96, 63, 63, 171, 170, 95, 62, 0, 224, 80, 63, 3, 0, 128, 131, 62, 0, 128, 122, 63, 85, 85, 110, 62, 0, 224, 105, 63, 0, 0, 121, 62, 85, 149, 115, 63, 3, 0, 192, 152, 62, 0, 64, 134, 63, 0, 128, 138, 62, 85, 181, 128, 63, 85, 149, 145, 62, 85, 181, 131, 63, 3, 0, 128, 174, 62, 0, 112, 141, 63, 171, 234, 159, 62, 171, 202, 136, 63, 171, 42, 167, 62, 0, 48, 139, 63, 1, 0, 0, 222, 62, 0, 128, 27, 190, 3, 0, 0, 237, 62, 0, 128, 12, 190, 0, 0, 227, 62, 85, 213, 22, 190, 0, 0, 232, 62, 85, 213, 17, 190, 3, 0, 0, 8, 63, 0, 0, 140, 188, 85, 213, 4, 63, 0, 0, 213, 189, 171, 170, 10, 63, 0, 0, 131, 189, 3, 0, 128, 238, 62, 0, 0, 191, 61, 85, 85, 5, 63, 0, 0, 244, 60, 0, 128, 255, 62, 85, 85, 136, 61, 3, 0, 128, 195, 62, 0, 0, 251, 61, 171, 42, 226, 62, 171, 170, 229, 61, 85, 213, 211, 62, 171, 170, 249, 61, 2, 0, 0, 222, 62, 0, 128, 27, 190, 1, 0, 128, 147, 62, 0, 64, 191, 62, 3, 0, 0, 143, 62, 0, 192, 187, 62, 171, 42, 146, 62, 171, 234, 189, 62, 171, 170, 144, 62, 0, 192, 188, 62, 3, 0, 0, 42, 62, 0, 0, 107, 62, 0, 0, 122, 62, 171, 106, 172, 62, 85, 85, 83, 62, 0, 0, 149, 62, 3, 0, 0, 216, 61, 0, 0, 122, 61, 171, 170, 0, 62, 0, 0, 44, 62, 0, 0, 216, 61, 0, 0, 229, 61, 3, 0, 0, 12, 62, 0, 0, 196, 189, 0, 0, 216, 61, 0, 0, 40, 60, 85, 85, 237, 61, 0, 0, 44, 189, 3, 0, 0, 140, 62, 0, 128, 57, 190, 85, 85, 33, 62, 0, 0, 25, 190, 0, 0, 80, 62, 171, 42, 54, 190, 3, 0, 128, 197, 62, 0, 128, 45, 190, 85, 85, 160, 62, 0, 128, 59, 190, 0, 128, 179, 62, 0, 128, 55, 190, 2, 0, 128, 171, 62, 0, 0, 237, 61, 3, 0, 0, 125, 62, 0, 0, 100, 61, 0, 128, 149, 62, 0, 0, 213, 61, 0, 128, 134, 62, 0, 0, 172, 61, 3, 0, 128, 128, 62, 0, 0, 168, 189, 0, 0, 109, 62, 0, 0, 224, 60, 85, 85, 110, 62, 0, 0, 152, 188, 3, 0, 128, 103, 62, 0, 0, 213, 189, 85, 213, 137, 62, 0, 0, 21, 190, 85, 149, 133, 62, 0, 128, 28, 190, 3, 0, 128, 53, 62, 0, 0, 66, 61, 85, 213, 67, 62, 0, 0, 98, 189, 171, 42, 51, 62, 171, 170, 154, 187, 3, 0, 0, 106, 62, 0, 128, 53, 62, 85, 213, 55, 62, 171, 170, 203, 61, 85, 85, 73, 62, 171, 42, 18, 62, 3, 0, 0, 161, 62, 0, 128, 107, 62, 171, 170, 126, 62, 0, 128, 75, 62, 0, 0, 142, 62, 0, 128, 93, 62, 2, 0, 128, 147, 62, 0, 64, 191, 62, 1, 0, 128, 148, 62, 0, 32, 28, 63, 3, 0, 0, 190, 62, 0, 96, 53, 63, 0, 128, 163, 62, 85, 245, 35, 63, 85, 85, 177, 62, 0, 96, 44, 63, 3, 0, 0, 226, 62, 0, 224, 94, 63, 85, 85, 212, 62, 171, 10, 69, 63, 85, 85, 224, 62, 0, 224, 82, 63, 3, 0, 0, 220, 62, 0, 32, 114, 63, 171, 170, 227, 62, 0, 224, 106, 63, 171, 170, 225, 62, 171, 74, 113, 63, 3, 0, 64, 202, 62, 0, 224, 113, 63, 85, 85, 214, 62, 85, 245, 114, 63, 171, 106, 208, 62, 0, 224, 114, 63, 3, 0, 64, 185, 62, 0, 64, 108, 63, 85, 21, 196, 62, 0, 224, 112, 63, 171, 106, 190, 62, 0, 0, 111, 63, 3, 0, 0, 164, 62, 0, 160, 88, 63, 85, 21, 180, 62, 0, 128, 105, 63, 0, 0, 173, 62, 85, 245, 98, 63, 3, 0, 128, 146, 62, 0, 96, 58, 63, 0, 0, 155, 62, 171, 74, 78, 63, 171, 42, 149, 62, 85, 53, 68, 63, 3, 0, 128, 148, 62, 0, 32, 28, 63, 85, 213, 143, 62, 171, 138, 48, 63, 0, 128, 144, 62, 85, 117, 38, 63, 66, 0, 0, 0, 0, 64, 56, 63, 0, 0, 0, 0, 56, 0, 0, 0, 1, 0, 128, 39, 63, 0, 0, 156, 189, 3, 0, 96, 51, 63, 0, 0, 196, 189, 171, 42, 44, 63, 0, 0, 156, 189, 0, 32, 48, 63, 85, 85, 169, 189, 3, 0, 64, 56, 63, 0, 0, 18, 190, 0, 160, 54, 63, 171, 170, 222, 189, 0, 64, 56, 63, 171, 170, 254, 189, 3, 0, 96, 51, 63, 0, 0, 65, 190, 0, 64, 56, 63, 0, 0, 36, 190, 0, 160, 54, 63, 171, 170, 51, 190, 3, 0, 128, 39, 63, 0, 0, 85, 190, 0, 32, 48, 63, 85, 85, 78, 190, 171, 42, 44, 63, 0, 0, 85, 190, 3, 0, 160, 27, 63, 0, 0, 65, 190, 85, 213, 34, 63, 0, 0, 85, 190, 0, 224, 30, 63, 85, 85, 78, 190, 3, 0, 192, 22, 63, 0, 0, 18, 190, 0, 96, 24, 63, 171, 170, 51, 190, 0, 192, 22, 63, 0, 0, 36, 190, 3, 0, 160, 27, 63, 0, 0, 196, 189, 0, 192, 22, 63, 171, 170, 254, 189, 0, 96, 24, 63, 171, 170, 222, 189, 3, 0, 128, 39, 63, 0, 0, 156, 189, 0, 224, 30, 63, 85, 85, 169, 189, 85, 213, 34, 63, 0, 0, 156, 189, 1, 0, 128, 39, 63, 0, 0, 53, 62, 3, 0, 96, 51, 63, 0, 128, 33, 62, 171, 42, 44, 63, 0, 0, 53, 62, 0, 32, 48, 63, 0, 128, 46, 62, 3, 0, 64, 56, 63, 0, 0, 228, 61, 0, 160, 54, 63, 0, 128, 20, 62, 0, 64, 56, 63, 171, 170, 4, 62, 3, 0, 96, 51, 63, 0, 0, 133, 61, 0, 64, 56, 63, 171, 170, 190, 61, 0, 160, 54, 63, 0, 0, 159, 61, 3, 0, 128, 39, 63, 0, 0, 60, 61, 0, 32, 48, 63, 0, 0, 86, 61, 171, 42, 44, 63, 0, 0, 60, 61, 3, 0, 160, 27, 63, 0, 0, 133, 61, 85, 213, 34, 63, 0, 0, 60, 61, 0, 224, 30, 63, 0, 0, 86, 61, 3, 0, 192, 22, 63, 0, 0, 228, 61, 0, 96, 24, 63, 0, 0, 159, 61, 0, 192, 22, 63, 171, 170, 190, 61, 3, 0, 160, 27, 63, 0, 128, 33, 62, 0, 192, 22, 63, 171, 170, 4, 62, 0, 96, 24, 63, 0, 128, 20, 62, 3, 0, 128, 39, 63, 0, 0, 53, 62, 0, 224, 30, 63, 0, 128, 46, 62, 85, 213, 34, 63, 0, 0, 53, 62, 1, 0, 0, 30, 61, 0, 0, 78, 189, 3, 0, 0, 148, 61, 0, 0, 200, 189, 171, 170, 52, 61, 171, 170, 131, 189, 171, 170, 98, 61, 0, 0, 164, 189, 3, 0, 0, 20, 62, 0, 0, 3, 190, 85, 85, 189, 61, 85, 85, 241, 189, 171, 170, 238, 61, 0, 0, 3, 190, 3, 0, 128, 93, 62, 0, 0, 201, 189, 171, 170, 48, 62, 0, 0, 3, 190, 171, 42, 73, 62, 171, 170, 241, 189, 3, 0, 0, 124, 62, 0, 0, 208, 188, 85, 213, 113, 62, 85, 85, 160, 189, 0, 0, 124, 62, 85, 85, 93, 189, 3, 0, 128, 93, 62, 0, 0, 62, 61, 0, 0, 124, 62, 171, 170, 42, 59, 85, 213, 113, 62, 85, 85, 217, 60, 3, 0, 0, 20, 62, 0, 0, 156, 61, 171, 42, 73, 62, 171, 170, 135, 61, 171, 170, 48, 62, 0, 0, 156, 61, 3, 0, 0, 194, 61, 0, 0, 130, 61, 85, 85, 1, 62, 0, 0, 156, 61, 171, 170, 224, 61, 85, 85, 147, 61, 3, 0, 0, 178, 61, 0, 0, 140, 61, 85, 85, 187, 61, 171, 170, 132, 61, 0, 0, 182, 61, 0, 0, 136, 61, 3, 0, 0, 160, 61, 0, 0, 203, 61, 171, 170, 164, 61, 85, 85, 153, 61, 171, 170, 158, 61, 85, 85, 174, 61, 3, 0, 0, 191, 61, 0, 128, 16, 62, 85, 85, 161, 61, 171, 170, 231, 61, 171, 170, 171, 61, 171, 42, 2, 62, 3, 0, 0, 13, 62, 0, 128, 60, 62, 85, 85, 210, 61, 85, 213, 30, 62, 171, 170, 240, 61, 0, 128, 45, 62, 3, 0, 0, 91, 62, 0, 128, 84, 62, 171, 170, 33, 62, 0, 128, 75, 62, 171, 170, 59, 62, 0, 128, 83, 62, 3, 0, 0, 152, 62, 0, 128, 69, 62, 85, 85, 122, 62, 0, 128, 85, 62, 85, 85, 139, 62, 0, 128, 80, 62, 3, 0, 192, 181, 62, 0, 0, 23, 62, 171, 170, 164, 62, 0, 128, 58, 62, 85, 149, 174, 62, 0, 0, 43, 62, 3, 0, 128, 196, 62, 0, 0, 166, 61, 171, 234, 188, 62, 0, 0, 3, 62, 85, 213, 193, 62, 171, 170, 216, 61, 3, 0, 128, 200, 62, 0, 0, 0, 0, 171, 42, 199, 62, 171, 170, 102, 61, 0, 128, 200, 62, 0, 0, 240, 60, 3, 0, 128, 195, 62, 0, 0, 199, 189, 0, 128, 200, 62, 0, 0, 240, 188, 85, 213, 198, 62, 171, 170, 124, 189, 3, 0, 64, 179, 62, 0, 128, 88, 190, 171, 42, 192, 62, 85, 213, 7, 190, 0, 192, 186, 62, 85, 213, 46, 190, 3, 0, 0, 148, 62, 0, 192, 169, 190, 0, 192, 171, 62, 85, 21, 129, 190, 85, 85, 161, 62, 85, 149, 149, 190, 3, 0, 128, 64, 62, 0, 192, 229, 190, 171, 170, 134, 62, 171, 234, 189, 190, 85, 213, 106, 62, 171, 234, 209, 190, 3, 0, 0, 135, 61, 0, 224, 10, 191, 171, 42, 22, 62, 85, 149, 249, 190, 0, 0, 217, 61, 171, 202, 4, 191, 3, 0, 0, 64, 59, 0, 96, 23, 191, 0, 0, 212, 60, 85, 245, 16, 191, 0, 0, 160, 59, 0, 32, 21, 191, 3, 0, 0, 48, 60, 0, 128, 27, 191, 0, 0, 128, 58, 0, 160, 25, 191, 171, 170, 106, 59, 0, 0, 27, 191, 3, 0, 0, 163, 61, 0, 96, 21, 191, 171, 170, 146, 60, 0, 0, 28, 191, 85, 85, 39, 61, 85, 245, 25, 191, 3, 0, 0, 103, 62, 0, 224, 0, 191, 85, 85, 242, 61, 171, 202, 16, 191, 0, 0, 43, 62, 85, 245, 9, 191, 3, 0, 192, 194, 62, 0, 64, 194, 190, 0, 128, 145, 62, 85, 149, 239, 190, 171, 234, 171, 62, 171, 106, 218, 190, 3, 0, 64, 250, 62, 0, 128, 123, 190, 85, 149, 217, 62, 85, 21, 170, 190, 85, 21, 236, 62, 0, 64, 147, 190, 3, 0, 192, 10, 63, 0, 128, 0, 190, 85, 53, 4, 63, 0, 128, 80, 190, 0, 192, 8, 63, 0, 128, 39, 190, 3, 0, 128, 12, 63, 0, 0, 160, 187, 0, 192, 12, 63, 0, 0, 179, 189, 85, 85, 13, 63, 85, 85, 65, 189, 3, 0, 0, 3, 63, 0, 0, 233, 61, 171, 170, 11, 63, 85, 85, 25, 61, 0, 128, 8, 63, 171, 170, 157, 61, 3, 0, 0, 219, 62, 0, 128, 78, 62, 0, 0, 251, 62, 171, 42, 26, 62, 171, 170, 236, 62, 171, 42, 56, 62, 3, 0, 192, 162, 62, 0, 128, 122, 62, 85, 85, 201, 62, 85, 213, 100, 62, 85, 149, 182, 62, 0, 128, 115, 62, 3, 0, 128, 78, 62, 0, 128, 122, 62, 171, 234, 142, 62, 0, 192, 128, 62, 171, 42, 118, 62, 0, 192, 128, 62, 3, 0, 0, 204, 61, 0, 0, 65, 62, 85, 213, 38, 62, 0, 128, 115, 62, 0, 0, 4, 62, 85, 85, 96, 62, 3, 0, 0, 30, 61, 0, 0, 159, 61, 0, 0, 144, 61, 171, 170, 33, 62, 171, 170, 76, 61, 171, 170, 247, 61, 3, 0, 0, 212, 60, 0, 0, 8, 188, 171, 170, 222, 60, 171, 170, 12, 61, 0, 0, 188, 60, 171, 170, 186, 59, 3, 0, 0, 30, 61, 0, 0, 78, 189, 0, 0, 236, 60, 171, 170, 182, 188, 85, 85, 7, 61, 171, 170, 20, 189, 67, 0, 0, 0, 0, 160, 57, 63, 0, 0, 0, 0, 75, 0, 0, 0, 1, 0, 128, 199, 62, 0, 0, 0, 0, 2, 0, 192, 223, 62, 0, 0, 206, 189, 3, 0, 32, 6, 63, 0, 0, 151, 189, 85, 149, 234, 62, 85, 85, 169, 189, 171, 106, 249, 62, 0, 0, 151, 189, 3, 0, 160, 45, 63, 0, 0, 254, 189, 85, 117, 24, 63, 0, 0, 151, 189, 0, 160, 37, 63, 85, 85, 185, 189, 3, 0, 160, 57, 63, 0, 0, 141, 190, 0, 160, 53, 63, 85, 85, 33, 190, 0, 160, 57, 63, 0, 0, 85, 190, 3, 0, 224, 55, 63, 0, 192, 176, 190, 0, 160, 57, 63, 171, 170, 153, 190, 171, 10, 57, 63, 85, 149, 165, 190, 3, 0, 64, 50, 63, 0, 0, 208, 190, 171, 202, 54, 63, 171, 234, 187, 190, 171, 234, 52, 63, 85, 85, 198, 190, 3, 0, 128, 40, 63, 0, 64, 233, 190, 171, 170, 47, 63, 85, 213, 217, 190, 171, 106, 44, 63, 0, 64, 226, 190, 3, 0, 0, 26, 63, 0, 192, 249, 190, 171, 170, 36, 63, 0, 64, 240, 190, 85, 213, 31, 63, 0, 192, 245, 190, 3, 0, 64, 6, 63, 0, 0, 0, 191, 171, 42, 20, 63, 171, 234, 253, 190, 85, 149, 13, 63, 0, 0, 0, 191, 3, 0, 0, 191, 62, 0, 128, 235, 190, 85, 85, 235, 62, 0, 0, 0, 191, 0, 128, 209, 62, 171, 42, 249, 190, 3, 0, 64, 163, 62, 0, 0, 189, 190, 0, 128, 172, 62, 85, 213, 221, 190, 0, 64, 163, 62, 85, 85, 206, 190, 3, 0, 64, 175, 62, 0, 64, 158, 190, 0, 64, 163, 62, 171, 170, 176, 190, 0, 64, 167, 62, 171, 106, 166, 190, 3, 0, 192, 202, 62, 0, 64, 146, 190, 0, 64, 183, 62, 0, 64, 150, 190, 171, 106, 192, 62, 0, 64, 146, 190, 3, 0, 0, 233, 62, 0, 0, 157, 190, 85, 21, 215, 62, 0, 64, 146, 190, 171, 42, 225, 62, 85, 213, 149, 190, 3, 0, 192, 244, 62, 0, 64, 185, 190, 85, 213, 240, 62, 171, 42, 164, 190, 0, 192, 244, 62, 85, 149, 173, 190, 3, 0, 0, 221, 62, 0, 192, 222, 190, 0, 192, 244, 62, 0, 192, 202, 190, 85, 213, 236, 62, 0, 64, 215, 190, 3, 0, 128, 237, 62, 0, 0, 232, 190, 171, 42, 225, 62, 85, 21, 227, 190, 171, 170, 230, 62, 171, 42, 230, 190, 3, 0, 64, 6, 63, 0, 192, 234, 190, 85, 85, 244, 62, 85, 213, 233, 190, 171, 170, 254, 62, 0, 192, 234, 190, 3, 0, 160, 30, 63, 0, 0, 141, 190, 0, 128, 22, 63, 0, 192, 234, 190, 0, 160, 30, 63, 0, 128, 203, 190, 3, 0, 96, 25, 63, 0, 0, 24, 190, 0, 160, 30, 63, 171, 170, 91, 190, 0, 224, 28, 63, 85, 85, 48, 190, 3, 0, 64, 6, 63, 0, 0, 231, 189, 0, 224, 21, 63, 85, 85, 255, 189, 0, 128, 15, 63, 0, 0, 231, 189, 3, 0, 0, 248, 62, 0, 0, 245, 189, 0, 128, 2, 63, 0, 0, 231, 189, 171, 42, 254, 62, 171, 170, 235, 189, 3, 0, 192, 231, 62, 0, 0, 16, 190, 0, 0, 242, 62, 85, 85, 254, 189, 85, 149, 236, 62, 85, 85, 6, 190, 3, 0, 192, 219, 62, 0, 0, 45, 190, 85, 21, 227, 62, 171, 170, 25, 190, 85, 21, 223, 62, 85, 85, 35, 190, 3, 0, 128, 208, 62, 0, 0, 83, 190, 171, 106, 216, 62, 0, 0, 55, 190, 171, 170, 212, 62, 171, 170, 67, 190, 3, 0, 64, 206, 62, 0, 128, 90, 190, 171, 170, 207, 62, 85, 85, 86, 190, 171, 234, 206, 62, 85, 213, 88, 190, 3, 0, 0, 203, 62, 0, 0, 95, 190, 85, 149, 205, 62, 171, 42, 92, 190, 0, 128, 204, 62, 171, 170, 93, 190, 3, 0, 64, 197, 62, 0, 128, 97, 190, 0, 128, 201, 62, 171, 170, 96, 190, 85, 149, 199, 62, 0, 128, 97, 190, 3, 0, 64, 187, 62, 0, 0, 69, 190, 171, 234, 194, 62, 0, 128, 97, 190, 85, 149, 191, 62, 0, 0, 88, 190, 3, 0, 0, 179, 62, 0, 128, 30, 190, 171, 234, 182, 62, 0, 0, 50, 190, 171, 42, 180, 62, 171, 42, 37, 190, 3, 0, 128, 159, 62, 0, 0, 155, 189, 0, 0, 171, 62, 0, 0, 247, 189, 0, 128, 164, 62, 0, 0, 193, 189, 3, 0, 64, 138, 62, 0, 0, 240, 187, 0, 128, 154, 62, 85, 85, 107, 189, 171, 106, 147, 62, 0, 0, 14, 189, 2, 0, 64, 138, 62, 0, 0, 0, 191, 2, 0, 128, 98, 62, 0, 0, 0, 191, 2, 0, 128, 98, 62, 0, 0, 0, 63, 2, 0, 64, 138, 62, 0, 0, 0, 63, 2, 0, 64, 138, 62, 0, 0, 240, 59, 3, 0, 128, 159, 62, 0, 0, 156, 61, 171, 106, 147, 62, 0, 0, 14, 61, 0, 128, 154, 62, 0, 0, 108, 61, 3, 0, 0, 179, 62, 0, 0, 31, 62, 0, 128, 164, 62, 0, 0, 194, 61, 0, 0, 171, 62, 0, 0, 248, 61, 3, 0, 64, 187, 62, 0, 128, 69, 62, 171, 42, 180, 62, 171, 170, 37, 62, 171, 234, 182, 62, 0, 128, 50, 62, 3, 0, 64, 197, 62, 0, 0, 98, 62, 85, 149, 191, 62, 0, 128, 88, 62, 171, 234, 194, 62, 0, 0, 98, 62, 3, 0, 0, 203, 62, 0, 128, 95, 62, 85, 149, 199, 62, 0, 0, 98, 62, 0, 128, 201, 62, 171, 42, 97, 62, 3, 0, 64, 206, 62, 0, 0, 91, 62, 0, 128, 204, 62, 171, 42, 94, 62, 85, 149, 205, 62, 171, 170, 92, 62, 3, 0, 128, 208, 62, 0, 128, 83, 62, 171, 234, 206, 62, 85, 85, 89, 62, 171, 170, 207, 62, 85, 213, 86, 62, 3, 0, 192, 219, 62, 0, 128, 45, 62, 171, 170, 212, 62, 171, 42, 68, 62, 171, 106, 216, 62, 0, 128, 55, 62, 3, 0, 192, 231, 62, 0, 0, 16, 62, 85, 21, 223, 62, 85, 213, 35, 62, 85, 21, 227, 62, 0, 0, 26, 62, 3, 0, 0, 248, 62, 0, 0, 245, 61, 85, 149, 236, 62, 85, 85, 6, 62, 0, 0, 242, 62, 85, 85, 254, 61, 3, 0, 64, 6, 63, 0, 0, 232, 61, 171, 42, 254, 62, 85, 85, 236, 61, 0, 128, 2, 63, 0, 0, 232, 61, 3, 0, 96, 25, 63, 0, 128, 24, 62, 0, 128, 15, 63, 0, 0, 232, 61, 0, 224, 21, 63, 171, 42, 0, 62, 3, 0, 160, 30, 63, 0, 0, 141, 62, 0, 224, 28, 63, 85, 213, 48, 62, 0, 160, 30, 63, 0, 0, 92, 62, 3, 0, 64, 6, 63, 0, 192, 234, 62, 0, 160, 30, 63, 0, 128, 203, 62, 0, 128, 22, 63, 0, 192, 234, 62, 3, 0, 128, 237, 62, 0, 0, 232, 62, 171, 170, 254, 62, 0, 192, 234, 62, 85, 85, 244, 62, 85, 213, 233, 62, 3, 0, 0, 221, 62, 0, 0, 223, 62, 171, 170, 230, 62, 85, 85, 230, 62, 171, 42, 225, 62, 85, 85, 227, 62, 3, 0, 192, 244, 62, 0, 128, 185, 62, 85, 213, 236, 62, 0, 128, 215, 62, 0, 192, 244, 62, 0, 0, 203, 62, 3, 0, 0, 233, 62, 0, 0, 157, 62, 0, 192, 244, 62, 85, 213, 173, 62, 85, 213, 240, 62, 85, 85, 164, 62, 3, 0, 192, 202, 62, 0, 64, 146, 62, 171, 42, 225, 62, 85, 213, 149, 62, 85, 21, 215, 62, 0, 64, 146, 62, 3, 0, 64, 175, 62, 0, 128, 158, 62, 171, 106, 192, 62, 0, 64, 146, 62, 0, 64, 183, 62, 85, 85, 150, 62, 3, 0, 64, 163, 62, 0, 64, 189, 62, 0, 64, 167, 62, 171, 170, 166, 62, 0, 64, 163, 62, 171, 234, 176, 62, 3, 0, 0, 191, 62, 0, 128, 235, 62, 0, 64, 163, 62, 171, 106, 206, 62, 0, 128, 172, 62, 85, 213, 221, 62, 3, 0, 64, 6, 63, 0, 0, 0, 63, 0, 128, 209, 62, 171, 42, 249, 62, 85, 85, 235, 62, 0, 0, 0, 63, 3, 0, 0, 26, 63, 0, 192, 249, 62, 85, 149, 13, 63, 0, 0, 0, 63, 171, 42, 20, 63, 171, 234, 253, 62, 3, 0, 128, 40, 63, 0, 64, 233, 62, 85, 213, 31, 63, 0, 192, 245, 62, 171, 170, 36, 63, 0, 64, 240, 62, 3, 0, 64, 50, 63, 0, 64, 208, 62, 171, 106, 44, 63, 171, 106, 226, 62, 171, 170, 47, 63, 85, 21, 218, 62, 3, 0, 224, 55, 63, 0, 192, 176, 62, 171, 234, 52, 63, 171, 106, 198, 62, 171, 202, 54, 63, 171, 234, 187, 62, 3, 0, 160, 57, 63, 0, 0, 141, 62, 171, 10, 57, 63, 85, 149, 165, 62, 0, 160, 57, 63, 171, 170, 153, 62, 3, 0, 160, 45, 63, 0, 0, 255, 61, 0, 160, 57, 63, 85, 85, 85, 62, 0, 160, 53, 63, 85, 213, 33, 62, 3, 0, 32, 6, 63, 0, 0, 152, 61, 0, 160, 37, 63, 85, 85, 186, 61, 85, 117, 24, 63, 0, 0, 152, 61, 3, 0, 192, 223, 62, 0, 0, 207, 61, 171, 106, 249, 62, 0, 0, 152, 61, 85, 149, 234, 62, 85, 85, 170, 61, 2, 0, 128, 199, 62, 0, 0, 0, 0, 1, 0, 0, 11, 62, 0, 0, 0, 63, 2, 0, 0, 11, 62, 0, 0, 0, 191, 2, 0, 0, 0, 0, 0, 0, 0, 191, 2, 0, 0, 0, 0, 0, 0, 0, 63, 2, 0, 0, 11, 62, 0, 0, 0, 63, 68, 0, 0, 0, 0, 192, 210, 62, 0, 0, 0, 0, 10, 0, 0, 0, 1, 0, 192, 210, 62, 0, 0, 131, 62, 2, 0, 192, 210, 62, 0, 0, 131, 190, 2, 0, 192, 140, 62, 0, 0, 131, 190, 2, 0, 192, 140, 62, 0, 0, 131, 62, 2, 0, 192, 210, 62, 0, 0, 131, 62, 1, 0, 0, 12, 62, 0, 0, 131, 62, 2, 0, 0, 12, 62, 0, 0, 131, 190, 2, 0, 0, 0, 0, 0, 0, 131, 190, 2, 0, 0, 0, 0, 0, 0, 131, 62, 2, 0, 0, 12, 62, 0, 0, 131, 62, 69, 0, 0, 0, 0, 64, 209, 62, 0, 0, 0, 0, 41, 0, 0, 0, 1, 0, 0, 169, 61, 0, 0, 160, 189, 3, 0, 0, 231, 61, 0, 0, 180, 188, 0, 0, 191, 61, 0, 0, 134, 189, 171, 170, 211, 61, 85, 85, 63, 189, 3, 0, 0, 253, 61, 0, 0, 22, 61, 85, 85, 250, 61, 85, 85, 53, 59, 85, 213, 0, 62, 171, 170, 182, 60, 3, 0, 0, 212, 61, 0, 0, 134, 61, 85, 85, 248, 61, 171, 170, 80, 61, 171, 170, 234, 61, 0, 0, 120, 61, 3, 0, 0, 143, 61, 0, 0, 118, 61, 85, 85, 189, 61, 0, 0, 144, 61, 85, 85, 166, 61, 85, 85, 140, 61, 3, 0, 0, 58, 61, 0, 0, 144, 60, 85, 85, 111, 61, 85, 85, 83, 61, 0, 0, 78, 61, 85, 85, 25, 61, 3, 0, 0, 30, 61, 0, 0, 126, 189, 0, 0, 38, 61, 85, 85, 21, 187, 171, 170, 28, 61, 0, 0, 236, 188, 3, 0, 0, 88, 61, 0, 0, 214, 189, 85, 85, 31, 61, 0, 0, 195, 189, 171, 170, 50, 61, 0, 0, 224, 189, 3, 0, 0, 169, 61, 0, 0, 160, 189, 85, 85, 125, 61, 0, 0, 204, 189, 0, 0, 147, 61, 0, 0, 186, 189, 1, 0, 128, 142, 62, 0, 0, 158, 189, 3, 0, 0, 158, 62, 0, 0, 172, 188, 0, 0, 148, 62, 0, 0, 132, 189, 171, 42, 153, 62, 85, 85, 59, 189, 3, 0, 128, 163, 62, 0, 0, 26, 61, 85, 213, 162, 62, 85, 85, 117, 59, 171, 170, 164, 62, 171, 170, 190, 60, 3, 0, 64, 153, 62, 0, 0, 136, 61, 85, 85, 162, 62, 171, 170, 84, 61, 171, 234, 158, 62, 0, 0, 124, 61, 3, 0, 0, 136, 62, 0, 0, 122, 61, 85, 149, 147, 62, 0, 0, 146, 61, 85, 213, 141, 62, 85, 85, 142, 61, 3, 0, 0, 119, 62, 0, 0, 152, 60, 171, 42, 130, 62, 85, 85, 87, 61, 0, 0, 124, 62, 85, 85, 29, 61, 3, 0, 0, 112, 62, 0, 0, 122, 189, 0, 0, 114, 62, 171, 170, 170, 186, 171, 170, 111, 62, 0, 0, 228, 188, 3, 0, 128, 126, 62, 0, 0, 212, 189, 85, 85, 112, 62, 0, 0, 193, 189, 171, 42, 117, 62, 0, 0, 222, 189, 3, 0, 128, 142, 62, 0, 0, 158, 189, 171, 234, 131, 62, 0, 0, 202, 189, 0, 0, 137, 62, 0, 0, 184, 189, 1, 0, 128, 72, 62, 0, 0, 184, 188, 3, 0, 0, 220, 61, 0, 0, 236, 189, 0, 128, 59, 62, 85, 85, 61, 189, 85, 85, 29, 62, 0, 0, 158, 189, 3, 0, 0, 80, 60, 0, 0, 58, 190, 0, 0, 88, 61, 85, 85, 36, 190, 85, 85, 173, 60, 0, 0, 59, 190, 3, 0, 0, 0, 0, 0, 128, 34, 190, 171, 170, 138, 59, 0, 0, 57, 190, 0, 0, 128, 33, 171, 42, 49, 190, 2, 0, 0, 0, 0, 0, 64, 194, 62, 3, 0, 0, 244, 60, 0, 64, 204, 62, 0, 0, 0, 0, 171, 234, 200, 62, 171, 170, 34, 60, 0, 64, 204, 62, 3, 0, 0, 116, 61, 0, 64, 194, 62, 85, 85, 75, 61, 0, 64, 204, 62, 0, 0, 116, 61, 171, 234, 200, 62, 2, 0, 0, 56, 61, 0, 0, 225, 61, 3, 0, 0, 174, 61, 0, 0, 231, 61, 85, 85, 69, 61, 0, 0, 209, 61, 0, 0, 124, 61, 0, 0, 211, 61, 3, 0, 128, 27, 62, 0, 0, 232, 61, 0, 0, 222, 61, 0, 0, 251, 61, 85, 213, 5, 62, 85, 85, 251, 61, 3, 0, 128, 72, 62, 0, 0, 141, 61, 0, 128, 47, 62, 0, 0, 214, 61, 0, 128, 62, 62, 171, 170, 183, 61, 2, 0, 128, 72, 62, 0, 192, 194, 62, 3, 0, 0, 103, 62, 0, 192, 204, 62, 0, 128, 72, 62, 171, 106, 201, 62, 171, 170, 82, 62, 0, 192, 204, 62, 3, 0, 192, 130, 62, 0, 192, 194, 62, 85, 85, 123, 62, 0, 192, 204, 62, 0, 192, 130, 62, 171, 106, 201, 62, 2, 0, 128, 118, 62, 0, 0, 227, 61, 3, 0, 192, 143, 62, 0, 0, 233, 61, 85, 213, 121, 62, 0, 0, 211, 61, 0, 192, 131, 62, 0, 0, 213, 61, 3, 0, 0, 178, 62, 0, 0, 234, 61, 0, 192, 155, 62, 0, 0, 253, 61, 171, 42, 167, 62, 85, 85, 253, 61, 3, 0, 192, 201, 62, 0, 0, 132, 61, 85, 213, 188, 62, 171, 170, 214, 61, 0, 192, 196, 62, 171, 170, 180, 61, 3, 0, 64, 203, 62, 0, 0, 16, 188, 0, 192, 206, 62, 171, 170, 38, 61, 0, 64, 207, 62, 85, 85, 133, 60, 3, 0, 64, 155, 62, 0, 0, 234, 189, 0, 64, 199, 62, 171, 170, 10, 189, 0, 64, 183, 62, 85, 85, 141, 189, 3, 0, 128, 85, 62, 0, 0, 57, 190, 0, 128, 126, 62, 85, 85, 35, 190, 171, 42, 94, 62, 0, 0, 58, 190, 3, 0, 128, 72, 62, 0, 128, 33, 190, 85, 213, 76, 62, 0, 0, 56, 190, 0, 128, 72, 62, 171, 42, 48, 190, 2, 0, 128, 72, 62, 0, 0, 184, 188, 70, 0, 0, 0, 0, 0, 90, 62, 0, 0, 0, 0, 21, 0, 0, 0, 1, 0, 0, 0, 0, 0, 64, 194, 62, 3, 0, 0, 244, 60, 0, 64, 204, 62, 0, 0, 0, 0, 171, 234, 200, 62, 171, 170, 34, 60, 0, 64, 204, 62, 3, 0, 0, 116, 61, 0, 64, 194, 62, 85, 85, 75, 61, 0, 64, 204, 62, 0, 0, 116, 61, 171, 234, 200, 62, 2, 0, 0, 56, 61, 0, 0, 225, 61, 3, 0, 0, 174, 61, 0, 0, 231, 61, 85, 85, 69, 61, 0, 0, 209, 61, 0, 0, 124, 61, 0, 0, 211, 61, 3, 0, 128, 27, 62, 0, 0, 232, 61, 0, 0, 222, 61, 0, 0, 251, 61, 85, 213, 5, 62, 85, 85, 251, 61, 3, 0, 0, 75, 62, 0, 0, 130, 61, 171, 42, 49, 62, 171, 170, 212, 61, 0, 0, 65, 62, 171, 170, 178, 61, 3, 0, 0, 78, 62, 0, 0, 32, 188, 0, 0, 85, 62, 171, 170, 34, 61, 0, 0, 86, 62, 171, 170, 122, 60, 3, 0, 0, 220, 61, 0, 0, 236, 189, 0, 0, 70, 62, 171, 170, 14, 189, 0, 0, 38, 62, 85, 85, 143, 189, 3, 0, 0, 80, 60, 0, 0, 58, 190, 0, 0, 88, 61, 85, 85, 36, 190, 85, 85, 173, 60, 0, 0, 59, 190, 3, 0, 0, 0, 0, 0, 128, 34, 190, 171, 170, 138, 59, 0, 0, 57, 190, 0, 0, 128, 33, 171, 42, 49, 190, 2, 0, 0, 0, 0, 0, 64, 194, 62, 1, 0, 0, 88, 61, 0, 0, 214, 189, 3, 0, 0, 169, 61, 0, 0, 160, 189, 85, 85, 125, 61, 0, 0, 204, 189, 0, 0, 147, 61, 0, 0, 186, 189, 3, 0, 0, 231, 61, 0, 0, 180, 188, 0, 0, 191, 61, 0, 0, 134, 189, 171, 170, 211, 61, 85, 85, 63, 189, 3, 0, 0, 253, 61, 0, 0, 22, 61, 85, 85, 250, 61, 85, 85, 53, 59, 85, 213, 0, 62, 171, 170, 182, 60, 3, 0, 0, 212, 61, 0, 0, 134, 61, 85, 85, 248, 61, 171, 170, 80, 61, 171, 170, 234, 61, 0, 0, 120, 61, 3, 0, 0, 143, 61, 0, 0, 118, 61, 85, 85, 189, 61, 0, 0, 144, 61, 85, 85, 166, 61, 85, 85, 140, 61, 3, 0, 0, 58, 61, 0, 0, 144, 60, 85, 85, 111, 61, 85, 85, 83, 61, 0, 0, 78, 61, 85, 85, 25, 61, 3, 0, 0, 30, 61, 0, 0, 126, 189, 0, 0, 38, 61, 85, 85, 21, 187, 171, 170, 28, 61, 0, 0, 236, 188, 3, 0, 0, 88, 61, 0, 0, 214, 189, 85, 85, 31, 61, 0, 0, 195, 189, 171, 170, 50, 61, 0, 0, 224, 189, 71, 0, 0, 0, 0, 0, 58, 62, 0, 0, 0, 0, 24, 0, 0, 0, 1, 0, 0, 8, 62, 0, 0, 70, 61, 3, 0, 0, 226, 61, 0, 0, 187, 61, 0, 0, 8, 62, 0, 0, 171, 61, 85, 85, 0, 62, 85, 85, 200, 61, 2, 0, 0, 152, 61, 0, 0, 147, 61, 3, 0, 0, 72, 61, 0, 0, 70, 61, 171, 170, 106, 61, 171, 170, 133, 61, 0, 0, 72, 61, 85, 85, 107, 61, 2, 0, 0, 72, 61, 0, 0, 74, 189, 3, 0, 0, 146, 61, 0, 0, 189, 189, 0, 0, 72, 61, 0, 0, 173, 189, 171, 170, 102, 61, 85, 85, 202, 189, 2, 0, 0, 220, 61, 0, 0, 149, 189, 3, 0, 0, 8, 62, 0, 0, 74, 189, 171, 170, 254, 61, 171, 170, 135, 189, 0, 0, 8, 62, 85, 85, 111, 189, 2, 0, 0, 8, 62, 0, 0, 70, 61, 1, 0, 0, 0, 0, 0, 64, 168, 62, 3, 0, 0, 200, 60, 0, 64, 182, 62, 0, 0, 0, 0, 85, 149, 177, 62, 85, 85, 5, 60, 0, 64, 182, 62, 3, 0, 0, 72, 61, 0, 64, 168, 62, 171, 170, 38, 61, 0, 64, 182, 62, 0, 0, 72, 61, 85, 149, 177, 62, 2, 0, 0, 72, 61, 0, 128, 43, 62, 3, 0, 0, 190, 61, 0, 128, 21, 62, 171, 170, 82, 61, 0, 128, 17, 62, 85, 85, 135, 61, 171, 42, 10, 62, 2, 0, 0, 41, 62, 0, 128, 64, 62, 3, 0, 0, 58, 62, 0, 128, 31, 62, 85, 85, 52, 62, 0, 128, 70, 62, 0, 0, 58, 62, 0, 128, 59, 62, 2, 0, 0, 58, 62, 0, 192, 168, 190, 3, 0, 0, 33, 62, 0, 192, 182, 190, 0, 0, 58, 62, 85, 21, 178, 190, 171, 170, 49, 62, 0, 192, 182, 190, 3, 0, 0, 8, 62, 0, 192, 168, 190, 85, 85, 16, 62, 0, 192, 182, 190, 0, 0, 8, 62, 85, 21, 178, 190, 2, 0, 0, 8, 62, 0, 128, 44, 190, 3, 0, 0, 182, 61, 0, 128, 22, 190, 85, 85, 5, 62, 0, 128, 18, 190, 171, 170, 236, 61, 171, 42, 11, 190, 2, 0, 0, 136, 60, 0, 128, 65, 190, 3, 0, 0, 0, 0, 0, 128, 32, 190, 85, 85, 181, 59, 0, 128, 71, 190, 0, 0, 64, 34, 0, 128, 60, 190, 2, 0, 0, 0, 0, 0, 64, 168, 62, 72, 0, 0, 0, 0, 0, 107, 62, 0, 0, 0, 0, 46, 0, 0, 0, 1, 0, 0, 16, 61, 0, 0, 151, 189, 3, 0, 0, 144, 60, 0, 0, 202, 189, 0, 0, 16, 61, 0, 0, 175, 189, 0, 0, 240, 60, 0, 0, 192, 189, 3, 0, 0, 0, 0, 0, 0, 23, 190, 0, 0, 192, 59, 0, 0, 212, 189, 0, 0, 0, 0, 85, 85, 245, 189, 3, 0, 0, 144, 60, 0, 0, 58, 190, 0, 0, 0, 0, 85, 85, 51, 190, 0, 0, 192, 59, 0, 0, 63, 190, 3, 0, 0, 16, 61, 0, 128, 69, 190, 0, 0, 240, 60, 0, 0, 53, 190, 0, 0, 16, 61, 85, 213, 56, 190, 2, 0, 0, 16, 61, 0, 64, 166, 190, 3, 0, 0, 116, 61, 0, 192, 174, 190, 0, 0, 16, 61, 171, 234, 171, 190, 85, 85, 49, 61, 0, 192, 174, 190, 3, 0, 0, 172, 61, 0, 64, 166, 190, 85, 85, 155, 61, 0, 192, 174, 190, 0, 0, 172, 61, 171, 234, 171, 190, 2, 0, 0, 172, 61, 0, 128, 55, 190, 3, 0, 0, 235, 61, 0, 128, 32, 190, 0, 0, 172, 61, 0, 128, 45, 190, 0, 0, 193, 61, 85, 213, 37, 190, 3, 0, 0, 21, 62, 0, 128, 39, 190, 0, 128, 10, 62, 171, 42, 27, 190, 0, 0, 21, 62, 0, 128, 29, 190, 2, 0, 0, 21, 62, 0, 192, 143, 190, 3, 0, 0, 46, 62, 0, 64, 152, 190, 0, 0, 21, 62, 171, 106, 149, 190, 85, 85, 29, 62, 0, 64, 152, 190, 3, 0, 0, 71, 62, 0, 192, 143, 190, 171, 170, 62, 62, 0, 64, 152, 190, 0, 0, 71, 62, 171, 106, 149, 190, 2, 0, 0, 71, 62, 0, 128, 24, 190, 3, 0, 0, 89, 62, 0, 0, 252, 189, 0, 0, 71, 62, 85, 213, 11, 190, 0, 0, 77, 62, 0, 0, 3, 190, 3, 0, 0, 107, 62, 0, 0, 152, 189, 0, 0, 101, 62, 0, 0, 242, 189, 0, 0, 107, 62, 171, 170, 208, 189, 3, 0, 0, 89, 62, 0, 0, 36, 189, 0, 0, 107, 62, 171, 170, 62, 189, 0, 0, 101, 62, 0, 0, 16, 189, 3, 0, 0, 71, 62, 0, 0, 244, 188, 0, 0, 77, 62, 0, 0, 56, 189, 0, 0, 71, 62, 0, 0, 42, 189, 2, 0, 0, 71, 62, 0, 0, 169, 61, 3, 0, 0, 89, 62, 0, 0, 220, 61, 0, 0, 71, 62, 0, 0, 193, 61, 0, 0, 77, 62, 0, 0, 210, 61, 3, 0, 0, 107, 62, 0, 0, 32, 62, 0, 0, 101, 62, 0, 0, 230, 61, 0, 0, 107, 62, 171, 170, 3, 62, 3, 0, 0, 89, 62, 0, 0, 67, 62, 0, 0, 107, 62, 85, 85, 60, 62, 0, 0, 101, 62, 0, 0, 72, 62, 3, 0, 0, 71, 62, 0, 128, 78, 62, 0, 0, 77, 62, 0, 0, 62, 62, 0, 0, 71, 62, 85, 213, 65, 62, 2, 0, 0, 71, 62, 0, 192, 170, 62, 3, 0, 0, 46, 62, 0, 64, 179, 62, 0, 0, 71, 62, 171, 106, 176, 62, 171, 170, 62, 62, 0, 64, 179, 62, 3, 0, 0, 21, 62, 0, 192, 170, 62, 85, 85, 29, 62, 0, 64, 179, 62, 0, 0, 21, 62, 171, 106, 176, 62, 2, 0, 0, 21, 62, 0, 128, 64, 62, 3, 0, 0, 235, 61, 0, 128, 41, 62, 0, 0, 21, 62, 0, 128, 54, 62, 0, 128, 10, 62, 85, 213, 46, 62, 3, 0, 0, 172, 61, 0, 128, 48, 62, 0, 0, 193, 61, 171, 42, 36, 62, 0, 0, 172, 61, 0, 128, 38, 62, 2, 0, 0, 172, 61, 0, 64, 148, 62, 3, 0, 0, 116, 61, 0, 192, 156, 62, 0, 0, 172, 61, 171, 234, 153, 62, 85, 85, 155, 61, 0, 192, 156, 62, 3, 0, 0, 16, 61, 0, 64, 148, 62, 85, 85, 49, 61, 0, 192, 156, 62, 0, 0, 16, 61, 171, 234, 153, 62, 2, 0, 0, 16, 61, 0, 128, 33, 62, 3, 0, 0, 144, 60, 0, 0, 7, 62, 0, 0, 16, 61, 85, 213, 20, 62, 0, 0, 240, 60, 0, 0, 12, 62, 3, 0, 0, 0, 0, 0, 0, 170, 61, 0, 0, 192, 59, 0, 0, 2, 62, 0, 0, 0, 0, 171, 170, 226, 61, 3, 0, 0, 144, 60, 0, 0, 72, 61, 0, 0, 0, 0, 171, 170, 98, 61, 0, 0, 192, 59, 0, 0, 52, 61, 3, 0, 0, 16, 61, 0, 0, 30, 61, 0, 0, 240, 60, 0, 0, 92, 61, 0, 0, 16, 61, 0, 0, 78, 61, 2, 0, 0, 16, 61, 0, 0, 151, 189, 1, 0, 0, 21, 62, 0, 0, 70, 189, 3, 0, 0, 235, 61, 0, 0, 145, 189, 0, 0, 21, 62, 0, 0, 110, 189, 0, 128, 10, 62, 85, 85, 134, 189, 3, 0, 0, 172, 61, 0, 0, 131, 189, 0, 0, 193, 61, 171, 170, 155, 189, 0, 0, 172, 61, 0, 0, 151, 189, 2, 0, 0, 172, 61, 0, 0, 106, 61, 3, 0, 0, 235, 61, 0, 0, 163, 61, 0, 0, 172, 61, 0, 0, 137, 61, 0, 0, 193, 61, 85, 85, 152, 61, 3, 0, 0, 21, 62, 0, 0, 149, 61, 0, 128, 10, 62, 171, 170, 173, 61, 0, 0, 21, 62, 0, 0, 169, 61, 2, 0, 0, 21, 62, 0, 0, 70, 189, 73, 0, 0, 0, 0, 192, 145, 62, 0, 0, 0, 0, 41, 0, 0, 0, 1, 0, 0, 182, 61, 0, 0, 244, 60, 3, 0, 0, 92, 61, 0, 0, 200, 60, 0, 0, 166, 61, 171, 170, 214, 60, 0, 0, 142, 61, 0, 0, 200, 60, 3, 0, 0, 224, 59, 0, 0, 36, 61, 0, 0, 224, 60, 0, 0, 200, 60, 0, 0, 64, 60, 171, 170, 242, 60, 3, 0, 0, 0, 0, 0, 0, 160, 61, 85, 85, 21, 59, 171, 170, 78, 61, 0, 0, 192, 33, 85, 85, 129, 61, 3, 0, 0, 144, 59, 0, 0, 233, 61, 0, 0, 0, 0, 171, 170, 190, 61, 0, 0, 192, 58, 0, 0, 215, 61, 3, 0, 0, 92, 61, 0, 0, 7, 62, 171, 170, 250, 59, 0, 0, 251, 61, 85, 85, 197, 60, 171, 170, 3, 62, 3, 0, 0, 214, 61, 0, 0, 235, 61, 0, 0, 176, 61, 85, 85, 5, 62, 171, 170, 210, 61, 0, 0, 255, 61, 3, 0, 0, 220, 61, 0, 0, 160, 61, 0, 0, 218, 61, 171, 170, 215, 61, 0, 0, 220, 61, 171, 170, 190, 61, 3, 0, 0, 211, 61, 0, 0, 66, 61, 0, 0, 220, 61, 0, 0, 136, 61, 0, 0, 217, 61, 0, 0, 102, 61, 3, 0, 128, 15, 62, 0, 0, 98, 61, 85, 85, 228, 61, 85, 85, 79, 61, 171, 170, 253, 61, 0, 0, 90, 61, 3, 0, 0, 59, 62, 0, 0, 66, 61, 171, 42, 36, 62, 0, 0, 94, 61, 171, 170, 50, 62, 85, 85, 83, 61, 3, 0, 128, 53, 62, 0, 0, 167, 61, 85, 85, 55, 62, 0, 0, 106, 61, 0, 128, 53, 62, 85, 85, 140, 61, 3, 0, 0, 58, 62, 0, 0, 240, 61, 0, 128, 53, 62, 171, 170, 197, 61, 0, 0, 55, 62, 0, 0, 222, 61, 3, 0, 128, 108, 62, 0, 128, 10, 62, 85, 85, 61, 62, 0, 0, 1, 62, 171, 42, 78, 62, 171, 42, 7, 62, 3, 0, 64, 144, 62, 0, 0, 242, 61, 0, 192, 134, 62, 85, 213, 8, 62, 171, 106, 143, 62, 0, 0, 3, 62, 3, 0, 192, 145, 62, 0, 0, 167, 61, 0, 64, 145, 62, 171, 170, 222, 61, 0, 192, 145, 62, 171, 170, 197, 61, 3, 0, 0, 142, 62, 0, 0, 50, 61, 0, 192, 145, 62, 85, 85, 136, 61, 0, 128, 144, 62, 171, 170, 92, 61, 3, 0, 128, 108, 62, 0, 0, 228, 60, 171, 170, 139, 62, 85, 85, 7, 61, 0, 192, 131, 62, 0, 0, 228, 60, 3, 0, 128, 68, 62, 0, 0, 16, 61, 85, 213, 89, 62, 0, 0, 228, 60, 0, 128, 76, 62, 0, 0, 248, 60, 3, 0, 128, 70, 62, 0, 0, 192, 58, 85, 213, 69, 62, 85, 85, 213, 60, 0, 128, 70, 62, 171, 170, 114, 60, 3, 0, 0, 66, 62, 0, 0, 244, 188, 0, 128, 70, 62, 0, 0, 40, 188, 0, 0, 69, 62, 85, 85, 169, 188, 3, 0, 128, 105, 62, 0, 0, 172, 188, 85, 85, 74, 62, 0, 0, 212, 188, 0, 128, 87, 62, 0, 0, 188, 188, 3, 0, 192, 142, 62, 0, 0, 26, 189, 0, 64, 133, 62, 85, 85, 185, 188, 171, 234, 141, 62, 171, 170, 230, 188, 3, 0, 64, 144, 62, 0, 0, 153, 189, 0, 192, 143, 62, 0, 0, 66, 189, 0, 64, 144, 62, 171, 170, 116, 189, 3, 0, 128, 140, 62, 0, 0, 231, 189, 0, 64, 144, 62, 171, 170, 183, 189, 0, 0, 143, 62, 171, 170, 209, 189, 3, 0, 128, 105, 62, 0, 128, 3, 190, 171, 42, 138, 62, 85, 85, 252, 189, 0, 64, 130, 62, 0, 128, 3, 190, 3, 0, 128, 57, 62, 0, 0, 231, 189, 0, 128, 78, 62, 0, 128, 3, 190, 0, 128, 62, 62, 85, 85, 252, 189, 3, 0, 128, 50, 62, 0, 0, 153, 189, 85, 213, 52, 62, 171, 170, 209, 189, 0, 128, 50, 62, 171, 170, 183, 189, 3, 0, 0, 53, 62, 0, 0, 60, 189, 0, 128, 50, 62, 171, 170, 129, 189, 85, 85, 51, 62, 0, 0, 92, 189, 3, 0, 128, 15, 62, 0, 0, 86, 189, 0, 0, 45, 62, 85, 85, 77, 189, 0, 128, 32, 62, 0, 0, 86, 189, 3, 0, 0, 217, 61, 0, 0, 66, 189, 0, 128, 0, 62, 0, 0, 86, 189, 171, 170, 233, 61, 85, 85, 79, 189, 3, 0, 0, 220, 61, 0, 0, 152, 189, 0, 0, 219, 61, 0, 0, 98, 189, 0, 0, 220, 61, 85, 85, 131, 189, 3, 0, 0, 205, 61, 0, 0, 230, 189, 0, 0, 220, 61, 171, 170, 182, 189, 0, 0, 215, 61, 171, 170, 208, 189, 3, 0, 0, 92, 61, 0, 0, 3, 190, 171, 170, 195, 61, 85, 85, 251, 189, 0, 0, 164, 61, 0, 0, 3, 190, 3, 0, 0, 224, 59, 0, 0, 230, 189, 0, 0, 224, 60, 0, 0, 3, 190, 0, 0, 64, 60, 85, 85, 251, 189, 3, 0, 0, 0, 0, 0, 0, 152, 189, 85, 85, 21, 59, 171, 170, 208, 189, 0, 0, 192, 33, 171, 170, 182, 189, 3, 0, 0, 144, 59, 0, 0, 30, 189, 0, 0, 0, 0, 171, 170, 114, 189, 0, 0, 192, 58, 0, 0, 66, 189, 3, 0, 0, 92, 61, 0, 0, 168, 188, 171, 170, 250, 59, 0, 0, 244, 188, 85, 85, 197, 60, 171, 170, 194, 188, 3, 0, 0, 184, 61, 0, 0, 208, 188, 0, 0, 142, 61, 85, 85, 173, 188, 171, 170, 166, 61, 171, 170, 186, 188, 3, 0, 0, 177, 61, 0, 0, 192, 58, 85, 85, 179, 61, 0, 0, 144, 188, 0, 0, 177, 61, 85, 85, 13, 188, 3, 0, 0, 182, 61, 0, 0, 244, 60, 0, 0, 177, 61, 85, 85, 77, 60, 171, 170, 178, 61, 0, 0, 180, 60, 74, 0, 0, 0, 0, 64, 49, 63, 0, 0, 0, 0, 93, 0, 0, 0, 1, 0, 0, 246, 61, 0, 0, 215, 189, 3, 0, 0, 134, 61, 0, 0, 23, 190, 85, 85, 199, 61, 171, 170, 237, 189, 0, 0, 162, 61, 85, 85, 5, 190, 3, 0, 0, 58, 61, 0, 0, 79, 190, 85, 85, 85, 61, 171, 170, 40, 190, 0, 0, 58, 61, 85, 85, 59, 190, 3, 0, 0, 144, 61, 0, 192, 139, 190, 0, 0, 58, 61, 0, 0, 112, 190, 0, 0, 92, 61, 85, 21, 132, 190, 3, 0, 128, 12, 62, 0, 64, 151, 190, 171, 170, 178, 61, 171, 106, 147, 190, 85, 85, 224, 61, 0, 64, 151, 190, 3, 0, 0, 81, 62, 0, 192, 139, 190, 85, 213, 40, 62, 0, 64, 151, 190, 171, 170, 63, 62, 171, 106, 147, 190, 3, 0, 128, 107, 62, 0, 0, 79, 190, 171, 170, 98, 62, 85, 21, 132, 190, 0, 128, 107, 62, 0, 0, 112, 190, 3, 0, 0, 246, 61, 0, 0, 215, 189, 0, 128, 107, 62, 85, 85, 43, 190, 0, 0, 70, 62, 171, 42, 10, 190, 1, 0, 0, 27, 62, 0, 0, 140, 189, 3, 0, 128, 79, 62, 0, 0, 20, 189, 171, 170, 51, 62, 0, 0, 112, 189, 171, 42, 69, 62, 0, 0, 68, 189, 3, 0, 0, 95, 62, 0, 0, 80, 60, 85, 213, 89, 62, 0, 0, 200, 188, 0, 0, 95, 62, 85, 85, 5, 188, 3, 0, 0, 71, 62, 0, 0, 136, 61, 0, 0, 95, 62, 85, 85, 17, 61, 0, 0, 87, 62, 171, 170, 90, 61, 3, 0, 128, 12, 62, 0, 0, 177, 61, 0, 0, 55, 62, 85, 85, 163, 61, 0, 128, 35, 62, 0, 0, 177, 61, 3, 0, 0, 165, 61, 0, 0, 136, 61, 171, 170, 235, 61, 0, 0, 177, 61, 0, 0, 197, 61, 85, 85, 163, 61, 3, 0, 0, 108, 61, 0, 0, 80, 60, 171, 170, 133, 61, 171, 170, 90, 61, 0, 0, 108, 61, 85, 85, 17, 61, 3, 0, 0, 132, 61, 0, 0, 164, 188, 0, 0, 108, 61, 0, 0, 0, 0, 85, 85, 117, 61, 171, 170, 50, 188, 3, 0, 0, 178, 61, 0, 0, 46, 189, 85, 85, 141, 61, 171, 170, 238, 188, 171, 170, 156, 61, 0, 0, 22, 189, 3, 0, 0, 236, 61, 0, 0, 104, 189, 85, 85, 199, 61, 85, 85, 71, 189, 171, 170, 218, 61, 171, 170, 90, 189, 3, 0, 0, 27, 62, 0, 0, 140, 189, 0, 0, 254, 61, 85, 85, 117, 189, 85, 85, 11, 62, 171, 170, 130, 189, 1, 0, 0, 62, 62, 0, 0, 168, 189, 3, 0, 128, 127, 62, 0, 128, 9, 190, 85, 85, 88, 62, 171, 170, 194, 189, 171, 42, 110, 62, 85, 85, 230, 189, 3, 0, 0, 141, 62, 0, 0, 79, 190, 85, 149, 136, 62, 171, 42, 32, 190, 0, 0, 141, 62, 85, 85, 55, 190, 3, 0, 128, 12, 62, 0, 128, 162, 190, 0, 0, 141, 62, 85, 213, 142, 190, 85, 213, 106, 62, 0, 128, 162, 190, 3, 0, 0, 0, 0, 0, 0, 79, 190, 85, 85, 59, 61, 0, 128, 162, 190, 0, 0, 192, 35, 85, 213, 142, 190, 3, 0, 0, 200, 60, 0, 0, 16, 190, 0, 0, 0, 0, 85, 85, 57, 190, 85, 85, 5, 60, 85, 85, 36, 190, 3, 0, 0, 180, 61, 0, 0, 189, 189, 0, 0, 40, 61, 0, 0, 248, 189, 171, 170, 126, 61, 0, 0, 215, 189, 3, 0, 0, 16, 61, 0, 0, 92, 189, 171, 170, 132, 61, 85, 85, 168, 189, 85, 85, 65, 61, 0, 0, 142, 189, 3, 0, 0, 140, 60, 0, 0, 80, 60, 85, 85, 189, 60, 85, 85, 29, 189, 0, 0, 140, 60, 85, 85, 133, 188, 3, 0, 0, 92, 61, 0, 0, 166, 61, 0, 0, 140, 60, 85, 85, 37, 61, 0, 0, 240, 60, 85, 85, 129, 61, 3, 0, 128, 12, 62, 0, 0, 222, 61, 0, 0, 160, 61, 85, 85, 203, 61, 0, 0, 217, 61, 0, 0, 222, 61, 3, 0, 0, 99, 62, 0, 0, 166, 61, 171, 42, 45, 62, 0, 0, 222, 61, 0, 0, 74, 62, 85, 85, 203, 61, 3, 0, 64, 132, 62, 0, 0, 80, 60, 0, 0, 124, 62, 85, 85, 129, 61, 0, 64, 132, 62, 85, 85, 37, 61, 3, 0, 128, 116, 62, 0, 0, 64, 189, 0, 64, 132, 62, 85, 85, 85, 188, 171, 234, 128, 62, 171, 170, 6, 189, 3, 0, 0, 62, 62, 0, 0, 168, 189, 0, 128, 103, 62, 171, 170, 122, 189, 85, 85, 85, 62, 85, 85, 149, 189, 1, 0, 96, 25, 63, 0, 0, 175, 61, 3, 0, 128, 15, 63, 0, 0, 131, 61, 0, 96, 21, 63, 0, 0, 175, 61, 85, 21, 18, 63, 85, 85, 160, 61, 3, 0, 96, 10, 63, 0, 0, 164, 60, 171, 234, 12, 63, 85, 85, 75, 61, 85, 53, 11, 63, 85, 85, 15, 61, 3, 0, 32, 9, 63, 0, 0, 180, 188, 171, 138, 9, 63, 85, 85, 165, 59, 0, 32, 9, 63, 171, 170, 18, 188, 3, 0, 192, 13, 63, 0, 0, 141, 189, 0, 32, 9, 63, 0, 0, 90, 189, 171, 170, 10, 63, 0, 0, 141, 189, 3, 0, 32, 18, 63, 0, 0, 135, 189, 0, 128, 15, 63, 0, 0, 141, 189, 85, 245, 16, 63, 0, 0, 139, 189, 3, 0, 96, 21, 63, 0, 0, 110, 189, 171, 74, 19, 63, 0, 0, 131, 189, 0, 96, 20, 63, 85, 85, 123, 189, 3, 0, 160, 21, 63, 0, 0, 84, 189, 0, 96, 21, 63, 0, 0, 98, 189, 85, 117, 21, 63, 85, 85, 89, 189, 2, 0, 0, 28, 63, 0, 0, 150, 61, 3, 0, 192, 27, 63, 0, 0, 170, 61, 171, 42, 28, 63, 0, 0, 160, 61, 85, 21, 28, 63, 171, 170, 166, 61, 3, 0, 96, 25, 63, 0, 0, 175, 61, 0, 128, 27, 63, 85, 85, 173, 61, 85, 181, 26, 63, 0, 0, 175, 61, 1, 0, 160, 22, 63, 0, 0, 160, 189, 3, 0, 0, 20, 63, 0, 0, 171, 189, 0, 160, 21, 63, 171, 170, 164, 189, 0, 192, 20, 63, 85, 85, 168, 189, 3, 0, 0, 17, 63, 0, 0, 178, 189, 0, 64, 19, 63, 171, 170, 173, 189, 0, 64, 18, 63, 0, 0, 176, 189, 3, 0, 64, 12, 63, 0, 0, 182, 189, 0, 192, 15, 63, 171, 170, 180, 189, 171, 42, 14, 63, 0, 0, 182, 189, 3, 0, 64, 251, 62, 0, 0, 160, 188, 0, 128, 2, 63, 0, 0, 182, 189, 0, 64, 251, 62, 171, 170, 134, 189, 3, 0, 160, 6, 63, 0, 0, 130, 61, 0, 64, 251, 62, 171, 170, 10, 60, 0, 160, 0, 63, 0, 0, 20, 61, 3, 0, 96, 26, 63, 0, 0, 215, 61, 85, 181, 12, 63, 171, 170, 186, 61, 171, 74, 19, 63, 0, 0, 215, 61, 3, 0, 224, 35, 63, 0, 0, 191, 61, 171, 10, 30, 63, 0, 0, 215, 61, 85, 53, 33, 63, 0, 0, 207, 61, 3, 0, 32, 39, 63, 0, 0, 129, 61, 0, 160, 38, 63, 0, 0, 175, 61, 85, 181, 39, 63, 85, 85, 154, 61, 2, 0, 64, 33, 63, 0, 0, 60, 189, 3, 0, 128, 34, 63, 0, 0, 104, 189, 85, 21, 33, 63, 85, 85, 89, 189, 0, 128, 33, 63, 0, 0, 104, 189, 3, 0, 0, 39, 63, 0, 0, 30, 189, 0, 128, 35, 63, 0, 0, 104, 189, 0, 0, 37, 63, 85, 85, 79, 189, 3, 0, 0, 45, 63, 0, 0, 72, 60, 0, 0, 41, 63, 0, 0, 220, 188, 0, 0, 43, 63, 171, 170, 34, 188, 2, 0, 64, 49, 63, 0, 0, 160, 59, 3, 0, 32, 45, 63, 0, 0, 4, 189, 171, 234, 47, 63, 171, 170, 10, 188, 171, 138, 46, 63, 171, 170, 170, 188, 3, 0, 32, 41, 63, 0, 0, 122, 189, 171, 202, 43, 63, 171, 170, 50, 189, 85, 117, 42, 63, 0, 0, 90, 189, 3, 0, 192, 35, 63, 0, 0, 164, 189, 171, 202, 39, 63, 171, 170, 141, 189, 0, 0, 38, 63, 171, 170, 154, 189, 3, 0, 0, 28, 63, 0, 0, 178, 189, 85, 149, 33, 63, 85, 85, 173, 189, 0, 0, 31, 63, 0, 0, 178, 189, 3, 0, 160, 22, 63, 0, 0, 160, 189, 171, 106, 25, 63, 0, 0, 178, 189, 0, 160, 23, 63, 0, 0, 172, 189, 1, 0, 192, 223, 62, 0, 0, 215, 61, 3, 0, 128, 238, 62, 0, 0, 50, 61, 85, 149, 233, 62, 0, 0, 215, 61, 0, 128, 238, 62, 0, 0, 173, 61, 3, 0, 64, 234, 62, 0, 0, 24, 188, 0, 128, 238, 62, 85, 85, 217, 60, 85, 21, 237, 62, 171, 170, 18, 60, 3, 0, 0, 218, 62, 0, 0, 126, 189, 171, 106, 231, 62, 0, 0, 228, 188, 0, 0, 226, 62, 0, 0, 58, 189, 3, 0, 128, 188, 62, 0, 0, 178, 189, 0, 0, 210, 62, 0, 0, 161, 189, 171, 42, 200, 62, 0, 0, 178, 189, 3, 0, 128, 162, 62, 0, 0, 148, 189, 171, 42, 177, 62, 0, 0, 178, 189, 0, 128, 168, 62, 0, 0, 168, 189, 3, 0, 192, 153, 62, 0, 0, 30, 189, 171, 170, 156, 62, 171, 170, 128, 189, 0, 192, 153, 62, 85, 85, 83, 189, 3, 0, 128, 154, 62, 0, 0, 160, 188, 0, 192, 153, 62, 85, 85, 241, 188, 0, 0, 154, 62, 85, 85, 189, 188, 2, 0, 128, 163, 62, 0, 0, 135, 61, 3, 0, 192, 162, 62, 0, 0, 148, 61, 171, 170, 163, 62, 171, 170, 139, 61, 171, 106, 163, 62, 0, 0, 144, 61, 3, 0, 0, 161, 62, 0, 0, 154, 61, 0, 64, 162, 62, 0, 0, 152, 61, 171, 170, 161, 62, 0, 0, 154, 61, 3, 0, 0, 152, 62, 0, 0, 104, 61, 85, 213, 158, 62, 0, 0, 154, 61, 85, 213, 155, 62, 85, 85, 141, 61, 2, 0, 128, 144, 62, 0, 0, 137, 61, 3, 0, 192, 173, 62, 0, 0, 215, 61, 0, 0, 153, 62, 0, 0, 189, 61, 0, 192, 162, 62, 0, 0, 215, 61, 3, 0, 192, 184, 62, 0, 0, 189, 61, 0, 192, 178, 62, 0, 0, 215, 61, 171, 106, 182, 62, 85, 85, 206, 61, 3, 0, 64, 186, 62, 0, 0, 129, 61, 85, 21, 187, 62, 85, 85, 172, 61, 85, 149, 187, 62, 85, 85, 152, 61, 2, 0, 64, 177, 62, 0, 0, 184, 188, 3, 0, 64, 176, 62, 0, 0, 48, 189, 85, 149, 176, 62, 85, 85, 9, 189, 0, 64, 176, 62, 85, 85, 37, 189, 2, 0, 64, 176, 62, 0, 0, 80, 189, 3, 0, 64, 179, 62, 0, 0, 124, 189, 0, 64, 176, 62, 0, 0, 96, 189, 0, 64, 177, 62, 171, 170, 110, 189, 3, 0, 64, 186, 62, 0, 0, 136, 189, 171, 106, 181, 62, 171, 170, 132, 189, 0, 192, 183, 62, 0, 0, 136, 189, 3, 0, 64, 208, 62, 0, 0, 86, 189, 85, 21, 195, 62, 0, 0, 136, 189, 171, 106, 202, 62, 171, 170, 124, 189, 3, 0, 64, 223, 62, 0, 0, 64, 187, 0, 64, 214, 62, 171, 170, 48, 189, 0, 64, 219, 62, 171, 170, 218, 188, 3, 0, 64, 227, 62, 0, 0, 42, 61, 171, 234, 225, 62, 171, 170, 90, 60, 0, 64, 227, 62, 171, 170, 230, 60, 3, 0, 192, 224, 62, 0, 0, 108, 61, 0, 64, 227, 62, 85, 85, 67, 61, 171, 106, 226, 62, 85, 85, 89, 61, 3, 0, 0, 220, 62, 0, 0, 132, 61, 0, 64, 223, 62, 171, 170, 126, 61, 171, 170, 221, 62, 0, 0, 132, 61, 3, 0, 0, 215, 62, 0, 0, 144, 61, 85, 85, 218, 62, 0, 0, 132, 61, 171, 170, 216, 62, 0, 0, 136, 61, 3, 0, 128, 212, 62, 0, 0, 175, 61, 85, 85, 213, 62, 0, 0, 152, 61, 0, 128, 212, 62, 85, 85, 162, 61, 3, 0, 192, 223, 62, 0, 0, 215, 61, 0, 128, 212, 62, 171, 170, 201, 61, 0, 64, 216, 62, 0, 0, 215, 61, 75, 0, 0, 0, 0, 128, 119, 63, 0, 0, 0, 0, 130, 0, 0, 0, 1, 0, 224, 52, 63, 0, 0, 168, 189, 3, 0, 32, 47, 63, 0, 0, 147, 189, 171, 10, 50, 63, 0, 0, 168, 189, 0, 32, 48, 63, 0, 0, 161, 189, 3, 0, 96, 46, 63, 0, 0, 66, 189, 85, 53, 46, 63, 0, 0, 133, 189, 85, 245, 45, 63, 171, 170, 104, 189, 2, 0, 224, 52, 63, 0, 0, 159, 61, 3, 0, 128, 52, 63, 0, 0, 178, 61, 171, 10, 53, 63, 85, 85, 168, 61, 171, 234, 52, 63, 171, 170, 174, 61, 3, 0, 224, 49, 63, 0, 0, 184, 61, 85, 21, 52, 63, 0, 0, 182, 61, 85, 53, 51, 63, 0, 0, 184, 61, 3, 0, 128, 40, 63, 0, 0, 104, 61, 0, 160, 44, 63, 0, 0, 184, 61, 0, 128, 41, 63, 85, 85, 161, 61, 2, 0, 64, 33, 63, 0, 0, 162, 189, 2, 0, 192, 21, 63, 0, 0, 162, 189, 2, 0, 224, 29, 63, 0, 0, 159, 61, 3, 0, 128, 29, 63, 0, 0, 178, 61, 171, 10, 30, 63, 85, 85, 168, 61, 171, 234, 29, 63, 171, 170, 174, 61, 3, 0, 224, 26, 63, 0, 0, 184, 61, 85, 21, 29, 63, 0, 0, 182, 61, 85, 53, 28, 63, 0, 0, 184, 61, 3, 0, 128, 17, 63, 0, 0, 104, 61, 85, 181, 21, 63, 0, 0, 184, 61, 85, 149, 18, 63, 85, 85, 161, 61, 2, 0, 96, 10, 63, 0, 0, 162, 189, 2, 0, 128, 253, 62, 0, 0, 162, 189, 2, 0, 96, 6, 63, 0, 0, 139, 61, 3, 0, 96, 5, 63, 0, 0, 162, 61, 0, 160, 6, 63, 85, 85, 154, 61, 171, 74, 6, 63, 0, 0, 162, 61, 3, 0, 192, 0, 63, 0, 0, 122, 61, 171, 74, 4, 63, 0, 0, 162, 61, 0, 192, 2, 63, 171, 170, 149, 61, 3, 0, 64, 245, 62, 0, 0, 40, 60, 0, 128, 253, 62, 0, 0, 74, 61, 171, 106, 249, 62, 171, 170, 4, 61, 2, 0, 0, 237, 62, 0, 0, 144, 60, 3, 0, 0, 245, 62, 0, 0, 96, 61, 171, 170, 239, 62, 85, 85, 253, 60, 85, 85, 242, 62, 85, 85, 49, 61, 3, 0, 64, 253, 62, 0, 0, 171, 61, 171, 170, 247, 62, 85, 85, 135, 61, 171, 106, 250, 62, 0, 0, 155, 61, 3, 0, 0, 4, 63, 0, 0, 209, 61, 171, 10, 0, 63, 171, 170, 187, 61, 85, 213, 1, 63, 85, 85, 200, 61, 3, 0, 224, 11, 63, 0, 0, 223, 61, 171, 42, 6, 63, 85, 85, 218, 61, 171, 202, 8, 63, 0, 0, 223, 61, 3, 0, 160, 17, 63, 0, 0, 184, 61, 85, 117, 15, 63, 0, 0, 223, 61, 0, 96, 17, 63, 0, 0, 210, 61, 3, 0, 64, 34, 63, 0, 0, 223, 61, 85, 245, 21, 63, 0, 0, 210, 61, 0, 128, 27, 63, 0, 0, 223, 61, 3, 0, 160, 40, 63, 0, 0, 184, 61, 85, 149, 37, 63, 0, 0, 223, 61, 85, 181, 39, 63, 0, 0, 210, 61, 3, 0, 160, 43, 63, 0, 0, 203, 61, 0, 224, 41, 63, 0, 0, 192, 61, 0, 224, 42, 63, 85, 85, 198, 61, 3, 0, 96, 46, 63, 0, 0, 215, 61, 85, 117, 44, 63, 85, 85, 208, 61, 0, 96, 45, 63, 85, 85, 212, 61, 3, 0, 96, 50, 63, 0, 0, 221, 61, 85, 117, 47, 63, 171, 170, 217, 61, 171, 202, 48, 63, 171, 170, 219, 61, 3, 0, 64, 57, 63, 0, 0, 223, 61, 171, 10, 52, 63, 85, 85, 222, 61, 85, 85, 54, 63, 0, 0, 223, 61, 3, 0, 160, 62, 63, 0, 0, 199, 61, 171, 106, 59, 63, 0, 0, 223, 61, 85, 53, 61, 63, 0, 0, 215, 61, 3, 0, 224, 63, 63, 0, 0, 138, 61, 0, 32, 64, 63, 171, 170, 183, 61, 171, 138, 64, 63, 85, 85, 163, 61, 2, 0, 64, 58, 63, 0, 0, 40, 189, 3, 0, 96, 59, 63, 0, 0, 86, 189, 85, 213, 57, 63, 171, 170, 70, 189, 85, 53, 58, 63, 0, 0, 86, 189, 3, 0, 32, 63, 63, 0, 0, 32, 189, 85, 53, 60, 63, 0, 0, 86, 189, 85, 117, 61, 63, 0, 0, 68, 189, 3, 0, 32, 68, 63, 0, 0, 128, 186, 171, 202, 64, 63, 0, 0, 248, 188, 85, 117, 66, 63, 0, 0, 144, 188, 3, 0, 96, 78, 63, 0, 0, 152, 61, 171, 74, 69, 63, 85, 85, 213, 60, 85, 181, 72, 63, 85, 85, 81, 61, 3, 0, 160, 96, 63, 0, 0, 223, 61, 0, 32, 84, 63, 85, 85, 199, 61, 85, 53, 90, 63, 0, 0, 223, 61, 3, 0, 64, 106, 63, 0, 0, 199, 61, 0, 96, 100, 63, 0, 0, 223, 61, 85, 149, 103, 63, 0, 0, 215, 61, 3, 0, 96, 109, 63, 0, 0, 138, 61, 0, 0, 109, 63, 171, 170, 183, 61, 171, 10, 110, 63, 85, 85, 163, 61, 2, 0, 160, 103, 63, 0, 0, 44, 189, 3, 0, 192, 104, 63, 0, 0, 86, 189, 0, 96, 103, 63, 0, 0, 72, 189, 0, 192, 103, 63, 0, 0, 86, 189, 3, 0, 64, 109, 63, 0, 0, 12, 189, 0, 192, 105, 63, 0, 0, 86, 189, 0, 64, 107, 63, 85, 85, 61, 189, 3, 0, 32, 115, 63, 0, 0, 132, 60, 85, 85, 111, 63, 0, 0, 184, 188, 171, 74, 113, 63, 171, 170, 186, 187, 2, 0, 128, 119, 63, 0, 0, 16, 60, 3, 0, 128, 115, 63, 0, 0, 228, 188, 171, 42, 118, 63, 85, 85, 149, 187, 85, 213, 116, 63, 85, 85, 137, 188, 3, 0, 96, 111, 63, 0, 0, 104, 189, 171, 42, 114, 63, 171, 170, 32, 189, 171, 202, 112, 63, 0, 0, 72, 189, 3, 0, 0, 106, 63, 0, 0, 154, 189, 85, 245, 109, 63, 171, 170, 132, 189, 171, 42, 108, 63, 85, 85, 145, 189, 3, 0, 32, 98, 63, 0, 0, 168, 189, 171, 234, 103, 63, 85, 85, 163, 189, 171, 74, 101, 63, 0, 0, 168, 189, 3, 0, 0, 93, 63, 0, 0, 151, 189, 0, 160, 95, 63, 0, 0, 168, 189, 171, 234, 93, 63, 85, 85, 162, 189, 3, 0, 96, 91, 63, 0, 0, 157, 189, 171, 170, 92, 63, 171, 170, 151, 189, 0, 32, 92, 63, 171, 170, 153, 189, 3, 0, 192, 89, 63, 0, 0, 164, 189, 85, 181, 90, 63, 85, 85, 160, 189, 171, 42, 90, 63, 171, 170, 162, 189, 3, 0, 0, 88, 63, 0, 0, 168, 189, 85, 85, 89, 63, 85, 85, 165, 189, 0, 192, 88, 63, 171, 170, 166, 189, 3, 0, 128, 85, 63, 0, 0, 172, 189, 0, 64, 87, 63, 0, 0, 170, 189, 171, 106, 86, 63, 85, 85, 171, 189, 3, 0, 96, 82, 63, 0, 0, 173, 189, 171, 170, 84, 63, 171, 170, 172, 189, 0, 160, 83, 63, 0, 0, 173, 189, 3, 0, 128, 68, 63, 0, 0, 38, 189, 171, 138, 74, 63, 0, 0, 173, 189, 171, 234, 69, 63, 0, 0, 143, 189, 3, 0, 32, 62, 63, 0, 0, 147, 189, 85, 149, 66, 63, 85, 85, 95, 189, 85, 117, 64, 63, 0, 0, 133, 189, 3, 0, 224, 52, 63, 0, 0, 168, 189, 171, 202, 59, 63, 0, 0, 161, 189, 85, 181, 56, 63, 0, 0, 168, 189, 1, 0, 128, 95, 63, 0, 0, 183, 61, 3, 0, 192, 87, 63, 0, 0, 158, 61, 85, 149, 92, 63, 0, 0, 183, 61, 0, 0, 90, 63, 171, 170, 174, 61, 3, 0, 160, 82, 63, 0, 0, 64, 61, 0, 128, 85, 63, 85, 85, 141, 61, 171, 202, 83, 63, 85, 85, 113, 61, 3, 0, 32, 80, 63, 0, 0, 72, 60, 171, 138, 81, 63, 171, 170, 14, 61, 85, 181, 80, 63, 171, 170, 190, 60, 3, 0, 96, 79, 63, 0, 0, 148, 188, 0, 160, 79, 63, 85, 85, 149, 58, 0, 96, 79, 63, 171, 170, 18, 188, 3, 0, 32, 84, 63, 0, 0, 133, 189, 0, 96, 79, 63, 0, 0, 74, 189, 85, 245, 80, 63, 0, 0, 133, 189, 3, 0, 96, 88, 63, 0, 0, 124, 189, 0, 224, 85, 63, 0, 0, 133, 189, 171, 74, 87, 63, 171, 170, 130, 189, 3, 0, 160, 91, 63, 0, 0, 90, 189, 171, 138, 89, 63, 171, 170, 114, 189, 0, 160, 90, 63, 85, 85, 103, 189, 3, 0, 224, 91, 63, 0, 0, 68, 189, 0, 160, 91, 63, 0, 0, 82, 189, 85, 181, 91, 63, 171, 170, 74, 189, 2, 0, 64, 98, 63, 0, 0, 158, 61, 3, 0, 0, 98, 63, 0, 0, 178, 61, 0, 128, 98, 63, 0, 0, 168, 61, 171, 106, 98, 63, 171, 170, 174, 61, 3, 0, 128, 95, 63, 0, 0, 183, 61, 171, 170, 97, 63, 85, 85, 181, 61, 85, 213, 96, 63, 0, 0, 183, 61, 1, 0, 0, 231, 62, 0, 0, 226, 61, 3, 0, 192, 226, 62, 0, 0, 191, 61, 0, 128, 229, 62, 85, 85, 211, 61, 85, 21, 228, 62, 171, 170, 199, 61, 3, 0, 0, 222, 62, 0, 0, 162, 61, 85, 149, 225, 62, 85, 85, 182, 61, 0, 0, 224, 62, 171, 170, 172, 61, 3, 0, 0, 215, 62, 0, 0, 137, 61, 0, 0, 220, 62, 85, 85, 151, 61, 171, 170, 217, 62, 0, 0, 143, 61, 3, 0, 64, 206, 62, 0, 0, 129, 61, 0, 128, 212, 62, 171, 170, 131, 61, 85, 149, 209, 62, 0, 0, 129, 61, 2, 0, 0, 154, 62, 0, 0, 129, 61, 2, 0, 64, 142, 62, 0, 0, 0, 189, 3, 0, 64, 215, 62, 0, 0, 156, 189, 0, 64, 171, 62, 0, 0, 0, 189, 85, 149, 195, 62, 85, 85, 61, 189, 3, 0, 0, 245, 62, 0, 0, 61, 190, 85, 21, 235, 62, 85, 85, 217, 189, 0, 0, 245, 62, 171, 170, 17, 190, 3, 0, 64, 234, 62, 0, 128, 133, 190, 0, 0, 245, 62, 0, 0, 92, 190, 171, 106, 241, 62, 0, 0, 118, 190, 3, 0, 0, 208, 62, 0, 0, 156, 190, 85, 21, 227, 62, 171, 42, 144, 190, 85, 85, 218, 62, 171, 170, 151, 190, 3, 0, 192, 174, 62, 0, 128, 162, 190, 85, 213, 197, 62, 85, 85, 160, 190, 0, 192, 186, 62, 0, 128, 162, 190, 3, 0, 64, 128, 62, 0, 128, 149, 190, 0, 192, 158, 62, 0, 128, 162, 190, 0, 64, 143, 62, 171, 42, 158, 190, 3, 0, 128, 99, 62, 0, 192, 139, 190, 85, 213, 115, 62, 171, 42, 146, 190, 171, 42, 106, 62, 171, 234, 142, 190, 3, 0, 0, 90, 62, 0, 0, 129, 190, 171, 42, 93, 62, 0, 192, 136, 190, 0, 0, 90, 62, 171, 42, 133, 190, 3, 0, 128, 107, 62, 0, 0, 115, 190, 0, 0, 90, 62, 0, 0, 120, 190, 85, 213, 95, 62, 0, 0, 115, 190, 3, 0, 0, 117, 62, 0, 128, 118, 190, 85, 213, 110, 62, 0, 0, 115, 190, 0, 0, 114, 62, 171, 42, 116, 190, 3, 0, 0, 126, 62, 0, 64, 128, 190, 0, 0, 120, 62, 85, 213, 120, 190, 0, 0, 123, 62, 171, 42, 124, 190, 3, 0, 64, 130, 62, 0, 128, 132, 190, 171, 170, 128, 62, 171, 106, 130, 190, 0, 192, 129, 62, 85, 213, 131, 190, 3, 0, 192, 149, 62, 0, 0, 147, 190, 171, 106, 137, 62, 0, 128, 139, 190, 171, 234, 143, 62, 85, 85, 144, 190, 3, 0, 192, 174, 62, 0, 64, 151, 190, 85, 149, 155, 62, 85, 213, 149, 190, 171, 234, 163, 62, 0, 64, 151, 190, 3, 0, 128, 208, 62, 0, 0, 136, 190, 0, 64, 188, 62, 0, 64, 151, 190, 0, 128, 199, 62, 171, 42, 146, 190, 3, 0, 0, 222, 62, 0, 0, 61, 190, 0, 128, 217, 62, 171, 170, 123, 190, 0, 0, 222, 62, 0, 0, 96, 190, 3, 0, 0, 197, 62, 0, 0, 207, 189, 0, 0, 222, 62, 171, 170, 30, 190, 171, 170, 213, 62, 171, 42, 2, 190, 3, 0, 192, 128, 62, 0, 0, 128, 189, 85, 85, 180, 62, 85, 85, 154, 189, 85, 149, 157, 62, 0, 0, 128, 189, 2, 0, 0, 147, 62, 0, 0, 216, 61, 2, 0, 128, 207, 62, 0, 0, 216, 61, 3, 0, 192, 227, 62, 0, 0, 3, 62, 0, 0, 216, 62, 0, 0, 216, 61, 0, 192, 222, 62, 85, 85, 231, 61, 3, 0, 0, 230, 62, 0, 128, 6, 62, 171, 234, 228, 62, 85, 85, 5, 62, 171, 170, 229, 62, 0, 128, 6, 62, 3, 0, 64, 232, 62, 0, 0, 1, 62, 0, 128, 231, 62, 0, 128, 6, 62, 0, 64, 232, 62, 171, 170, 4, 62, 3, 0, 0, 231, 62, 0, 0, 226, 61, 0, 64, 232, 62, 85, 85, 245, 61, 85, 213, 231, 62, 171, 170, 234, 61, 1, 0, 0, 59, 62, 0, 128, 160, 190, 2, 0, 0, 80, 60, 0, 128, 160, 190, 3, 0, 0, 0, 0, 0, 128, 155, 190, 171, 170, 138, 59, 0, 128, 160, 190, 0, 0, 128, 33, 85, 213, 158, 190, 3, 0, 0, 164, 60, 0, 0, 149, 190, 0, 0, 0, 0, 171, 42, 151, 190, 171, 170, 218, 59, 0, 0, 149, 190, 3, 0, 0, 38, 61, 0, 192, 148, 190, 171, 170, 238, 60, 0, 0, 149, 190, 85, 85, 19, 61, 171, 234, 148, 190, 3, 0, 0, 106, 61, 0, 128, 147, 190, 0, 0, 58, 61, 0, 192, 148, 190, 171, 170, 80, 61, 85, 85, 148, 190, 3, 0, 0, 145, 61, 0, 192, 143, 190, 171, 170, 129, 61, 85, 213, 146, 190, 0, 0, 139, 61, 85, 149, 145, 190, 3, 0, 0, 154, 61, 0, 192, 136, 190, 0, 0, 151, 61, 85, 21, 142, 190, 0, 0, 154, 61, 0, 192, 139, 190, 2, 0, 0, 154, 61, 0, 0, 10, 61, 3, 0, 0, 154, 61, 0, 0, 52, 61, 171, 170, 154, 61, 85, 85, 23, 61, 171, 170, 154, 61, 85, 85, 37, 61, 3, 0, 0, 145, 61, 0, 0, 84, 61, 85, 85, 153, 61, 171, 170, 66, 61, 85, 85, 150, 61, 85, 85, 77, 61, 3, 0, 0, 94, 61, 0, 0, 74, 61, 0, 0, 139, 61, 0, 0, 92, 61, 85, 85, 127, 61, 171, 170, 88, 61, 2, 0, 0, 224, 60, 0, 0, 10, 61, 3, 0, 0, 184, 60, 0, 0, 248, 60, 85, 85, 221, 60, 171, 170, 8, 61, 0, 0, 208, 60, 0, 0, 4, 61, 3, 0, 0, 120, 60, 0, 0, 228, 60, 171, 170, 162, 60, 0, 0, 232, 60, 171, 170, 142, 60, 85, 85, 225, 60, 3, 0, 0, 208, 59, 0, 0, 20, 61, 171, 170, 34, 60, 85, 85, 233, 60, 85, 85, 229, 59, 0, 0, 0, 61, 3, 0, 0, 104, 60, 0, 0, 86, 61, 0, 0, 208, 59, 171, 170, 46, 61, 171, 170, 18, 60, 171, 170, 68, 61, 2, 0, 0, 164, 61, 0, 0, 213, 61, 3, 0, 0, 203, 61, 0, 0, 223, 61, 85, 85, 171, 61, 171, 170, 219, 61, 85, 85, 184, 61, 0, 0, 223, 61, 3, 0, 0, 232, 61, 0, 0, 213, 61, 85, 85, 214, 61, 0, 0, 223, 61, 0, 0, 224, 61, 171, 170, 219, 61, 3, 0, 0, 245, 61, 0, 0, 188, 61, 171, 170, 240, 61, 0, 0, 207, 61, 0, 0, 245, 61, 171, 170, 198, 61, 2, 0, 0, 245, 61, 0, 192, 136, 190, 3, 0, 0, 254, 61, 0, 192, 143, 190, 0, 0, 245, 61, 0, 192, 139, 190, 0, 0, 248, 61, 85, 21, 142, 190, 3, 0, 128, 13, 62, 0, 128, 147, 190, 0, 0, 2, 62, 85, 149, 145, 190, 85, 213, 6, 62, 85, 213, 146, 190, 3, 0, 128, 30, 62, 0, 192, 148, 190, 171, 42, 20, 62, 85, 85, 148, 190, 85, 213, 25, 62, 0, 192, 148, 190, 3, 0, 128, 51, 62, 0, 0, 149, 190, 171, 42, 35, 62, 171, 234, 148, 190, 171, 42, 42, 62, 0, 0, 149, 190, 3, 0, 128, 71, 62, 0, 128, 155, 190, 85, 213, 64, 62, 0, 0, 149, 190, 0, 128, 71, 62, 171, 42, 151, 190, 3, 0, 0, 59, 62, 0, 128, 160, 190, 0, 128, 71, 62, 85, 213, 158, 190, 85, 85, 67, 62, 0, 128, 160, 190, 76, 0, 0, 0, 0, 128, 202, 62, 0, 0, 0, 0, 38, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 128, 58, 3, 0, 0, 112, 60, 0, 0, 178, 61, 0, 0, 0, 0, 85, 85, 245, 60, 0, 0, 160, 59, 0, 0, 112, 61, 3, 0, 0, 104, 61, 0, 128, 41, 62, 171, 170, 202, 60, 171, 170, 236, 61, 171, 170, 30, 61, 171, 42, 17, 62, 3, 0, 0, 1, 62, 0, 0, 101, 62, 171, 170, 152, 61, 85, 213, 65, 62, 0, 0, 200, 61, 171, 170, 85, 62, 3, 0, 128, 96, 62, 0, 0, 124, 62, 0, 0, 30, 62, 85, 85, 116, 62, 85, 213, 61, 62, 0, 0, 124, 62, 3, 0, 0, 176, 62, 0, 0, 82, 62, 171, 234, 139, 62, 0, 0, 124, 62, 171, 42, 161, 62, 0, 0, 110, 62, 3, 0, 128, 198, 62, 0, 0, 226, 61, 0, 0, 191, 62, 0, 0, 54, 62, 0, 128, 198, 62, 171, 170, 21, 62, 3, 0, 128, 185, 62, 0, 0, 168, 60, 0, 128, 198, 62, 0, 0, 138, 61, 171, 42, 194, 62, 85, 85, 25, 61, 3, 0, 128, 148, 62, 0, 0, 144, 187, 85, 213, 176, 62, 0, 0, 128, 59, 0, 128, 164, 62, 0, 0, 144, 187, 3, 0, 0, 109, 62, 0, 0, 168, 60, 171, 42, 135, 62, 0, 0, 144, 187, 85, 85, 122, 62, 0, 0, 128, 59, 3, 0, 0, 89, 62, 0, 0, 172, 61, 171, 170, 95, 62, 85, 85, 25, 61, 0, 0, 89, 62, 0, 0, 112, 61, 3, 0, 128, 112, 62, 0, 0, 13, 62, 0, 0, 89, 62, 85, 85, 217, 61, 85, 213, 96, 62, 0, 0, 254, 61, 3, 0, 128, 149, 62, 0, 128, 34, 62, 0, 64, 128, 62, 85, 85, 27, 62, 0, 0, 138, 62, 0, 128, 34, 62, 3, 0, 128, 167, 62, 0, 128, 27, 62, 171, 170, 155, 62, 0, 128, 34, 62, 171, 170, 161, 62, 171, 42, 32, 62, 3, 0, 64, 145, 62, 0, 128, 69, 62, 85, 85, 162, 62, 0, 128, 44, 62, 171, 234, 154, 62, 0, 128, 58, 62, 3, 0, 128, 93, 62, 0, 128, 86, 62, 85, 149, 135, 62, 85, 213, 80, 62, 171, 42, 120, 62, 0, 128, 86, 62, 3, 0, 0, 38, 62, 0, 128, 66, 62, 171, 42, 72, 62, 0, 128, 86, 62, 171, 170, 53, 62, 85, 213, 79, 62, 3, 0, 128, 2, 62, 0, 0, 13, 62, 85, 85, 22, 62, 171, 42, 53, 62, 0, 128, 10, 62, 85, 85, 35, 62, 3, 0, 0, 227, 61, 0, 0, 146, 61, 171, 170, 245, 61, 85, 85, 237, 61, 85, 85, 234, 61, 0, 0, 192, 61, 3, 0, 0, 216, 61, 0, 0, 128, 58, 171, 170, 219, 61, 0, 0, 72, 61, 0, 0, 216, 61, 0, 0, 208, 60, 3, 0, 0, 226, 61, 0, 0, 160, 189, 0, 0, 216, 61, 85, 85, 237, 188, 85, 85, 219, 61, 171, 170, 98, 189, 3, 0, 0, 2, 62, 0, 0, 18, 190, 171, 170, 232, 61, 171, 170, 206, 189, 0, 0, 244, 61, 171, 170, 250, 189, 3, 0, 0, 38, 62, 0, 0, 66, 190, 85, 85, 10, 62, 0, 0, 39, 190, 85, 85, 22, 62, 0, 0, 55, 190, 3, 0, 0, 97, 62, 0, 0, 83, 190, 0, 0, 54, 62, 85, 85, 77, 190, 171, 170, 73, 62, 0, 0, 83, 190, 3, 0, 192, 143, 62, 0, 128, 62, 190, 171, 170, 119, 62, 0, 0, 83, 190, 0, 64, 134, 62, 171, 42, 76, 190, 3, 0, 64, 165, 62, 0, 0, 18, 190, 171, 106, 153, 62, 85, 213, 48, 190, 85, 149, 160, 62, 0, 0, 34, 190, 3, 0, 128, 177, 62, 0, 0, 204, 189, 85, 21, 170, 62, 0, 0, 2, 190, 171, 42, 174, 62, 171, 170, 230, 189, 2, 0, 64, 182, 62, 0, 0, 163, 189, 3, 0, 128, 195, 62, 0, 0, 168, 189, 85, 149, 186, 62, 0, 0, 163, 189, 0, 0, 191, 62, 171, 170, 164, 189, 3, 0, 128, 202, 62, 0, 0, 178, 189, 171, 42, 200, 62, 0, 0, 172, 189, 0, 128, 202, 62, 85, 85, 175, 189, 3, 0, 192, 196, 62, 0, 0, 0, 190, 0, 128, 202, 62, 0, 0, 196, 189, 85, 149, 200, 62, 0, 0, 222, 189, 3, 0, 0, 181, 62, 0, 128, 53, 190, 85, 21, 193, 62, 0, 0, 17, 190, 85, 213, 187, 62, 85, 213, 34, 190, 3, 0, 192, 152, 62, 0, 128, 102, 190, 85, 85, 174, 62, 0, 128, 72, 190, 171, 234, 164, 62, 85, 213, 88, 190, 3, 0, 0, 97, 62, 0, 128, 123, 190, 85, 149, 140, 62, 0, 128, 116, 190, 85, 85, 126, 62, 0, 128, 123, 190, 3, 0, 0, 248, 61, 0, 0, 103, 190, 0, 0, 59, 62, 0, 128, 123, 190, 85, 85, 25, 62, 171, 170, 116, 190, 3, 0, 0, 86, 61, 0, 0, 47, 190, 85, 85, 189, 61, 171, 170, 89, 190, 85, 85, 142, 61, 0, 0, 71, 190, 3, 0, 0, 88, 60, 0, 0, 189, 189, 85, 85, 15, 61, 85, 85, 23, 190, 0, 0, 180, 60, 0, 0, 249, 189, 3, 0, 0, 0, 0, 0, 0, 128, 58, 0, 0, 144, 59, 171, 170, 129, 189, 0, 0, 0, 0, 0, 0, 4, 189, 77, 0, 0, 0, 0, 128, 202, 62, 0, 0, 0, 0, 42, 0, 0, 0, 1, 0, 128, 38, 62, 0, 128, 115, 62, 3, 0, 0, 48, 62, 0, 64, 190, 62, 0, 128, 38, 62, 85, 21, 164, 62, 171, 170, 41, 62, 171, 234, 186, 62, 3, 0, 128, 66, 62, 0, 64, 190, 62, 85, 85, 54, 62, 85, 149, 193, 62, 0, 128, 60, 62, 85, 149, 193, 62, 3, 0, 0, 76, 62, 0, 128, 122, 62, 85, 213, 72, 62, 171, 234, 186, 62, 0, 0, 76, 62, 0, 64, 165, 62, 3, 0, 128, 96, 62, 0, 0, 124, 62, 0, 0, 85, 62, 0, 128, 123, 62, 85, 213, 91, 62, 0, 0, 124, 62, 3, 0, 0, 176, 62, 0, 0, 82, 62, 171, 234, 139, 62, 0, 0, 124, 62, 171, 42, 161, 62, 0, 0, 110, 62, 3, 0, 128, 198, 62, 0, 0, 226, 61, 0, 0, 191, 62, 0, 0, 54, 62, 0, 128, 198, 62, 171, 170, 21, 62, 3, 0, 128, 185, 62, 0, 0, 168, 60, 0, 128, 198, 62, 0, 0, 138, 61, 171, 42, 194, 62, 85, 85, 25, 61, 3, 0, 128, 148, 62, 0, 0, 144, 187, 85, 213, 176, 62, 0, 0, 128, 59, 0, 128, 164, 62, 0, 0, 144, 187, 3, 0, 0, 109, 62, 0, 0, 168, 60, 171, 42, 135, 62, 0, 0, 144, 187, 85, 85, 122, 62, 0, 0, 128, 59, 3, 0, 0, 89, 62, 0, 0, 172, 61, 171, 170, 95, 62, 85, 85, 25, 61, 0, 0, 89, 62, 0, 0, 112, 61, 3, 0, 128, 112, 62, 0, 0, 13, 62, 0, 0, 89, 62, 85, 85, 217, 61, 85, 213, 96, 62, 0, 0, 254, 61, 3, 0, 128, 149, 62, 0, 128, 34, 62, 0, 64, 128, 62, 85, 85, 27, 62, 0, 0, 138, 62, 0, 128, 34, 62, 3, 0, 128, 167, 62, 0, 128, 27, 62, 171, 170, 155, 62, 0, 128, 34, 62, 171, 170, 161, 62, 171, 42, 32, 62, 3, 0, 64, 145, 62, 0, 128, 69, 62, 85, 85, 162, 62, 0, 128, 44, 62, 171, 234, 154, 62, 0, 128, 58, 62, 3, 0, 128, 93, 62, 0, 128, 86, 62, 85, 149, 135, 62, 85, 213, 80, 62, 171, 42, 120, 62, 0, 128, 86, 62, 3, 0, 0, 76, 62, 0, 128, 84, 62, 0, 128, 87, 62, 0, 128, 86, 62, 171, 170, 81, 62, 85, 213, 85, 62, 2, 0, 0, 76, 62, 0, 0, 81, 190, 3, 0, 0, 97, 62, 0, 0, 83, 190, 171, 170, 82, 62, 85, 85, 82, 190, 171, 170, 89, 62, 0, 0, 83, 190, 3, 0, 192, 143, 62, 0, 128, 62, 190, 171, 170, 119, 62, 0, 0, 83, 190, 0, 64, 134, 62, 171, 42, 76, 190, 3, 0, 64, 165, 62, 0, 0, 18, 190, 171, 106, 153, 62, 85, 213, 48, 190, 85, 149, 160, 62, 0, 0, 34, 190, 3, 0, 128, 177, 62, 0, 0, 204, 189, 85, 21, 170, 62, 0, 0, 2, 190, 171, 42, 174, 62, 171, 170, 230, 189, 2, 0, 64, 182, 62, 0, 0, 163, 189, 3, 0, 128, 195, 62, 0, 0, 168, 189, 85, 149, 186, 62, 0, 0, 163, 189, 0, 0, 191, 62, 171, 170, 164, 189, 3, 0, 128, 202, 62, 0, 0, 178, 189, 171, 42, 200, 62, 0, 0, 172, 189, 0, 128, 202, 62, 85, 85, 175, 189, 3, 0, 192, 196, 62, 0, 0, 0, 190, 0, 128, 202, 62, 0, 0, 196, 189, 85, 149, 200, 62, 0, 0, 222, 189, 3, 0, 0, 181, 62, 0, 128, 53, 190, 85, 21, 193, 62, 0, 0, 17, 190, 85, 213, 187, 62, 85, 213, 34, 190, 3, 0, 192, 152, 62, 0, 128, 102, 190, 85, 85, 174, 62, 0, 128, 72, 190, 171, 234, 164, 62, 85, 213, 88, 190, 3, 0, 0, 97, 62, 0, 128, 123, 190, 85, 149, 140, 62, 0, 128, 116, 190, 85, 85, 126, 62, 0, 128, 123, 190, 3, 0, 0, 76, 62, 0, 0, 123, 190, 85, 85, 87, 62, 0, 128, 123, 190, 85, 85, 80, 62, 85, 85, 123, 190, 3, 0, 0, 67, 62, 0, 0, 188, 190, 0, 0, 76, 62, 171, 42, 165, 190, 0, 0, 73, 62, 0, 0, 186, 190, 3, 0, 128, 48, 62, 0, 0, 188, 190, 85, 85, 61, 62, 171, 42, 190, 190, 171, 42, 55, 62, 171, 42, 190, 190, 3, 0, 128, 38, 62, 0, 0, 117, 190, 85, 213, 41, 62, 0, 0, 186, 190, 0, 128, 38, 62, 171, 42, 164, 190, 3, 0, 0, 40, 61, 0, 128, 30, 190, 0, 0, 223, 61, 171, 170, 104, 190, 0, 0, 140, 61, 85, 213, 75, 190, 3, 0, 0, 0, 0, 0, 0, 128, 58, 0, 0, 96, 60, 0, 0, 227, 189, 0, 0, 0, 0, 85, 85, 113, 189, 3, 0, 0, 52, 61, 0, 0, 23, 62, 0, 0, 0, 0, 171, 170, 86, 61, 0, 0, 112, 60, 85, 85, 207, 61, 3, 0, 128, 38, 62, 0, 128, 115, 62, 0, 0, 150, 61, 85, 85, 70, 62, 0, 0, 231, 61, 171, 42, 101, 62, 1, 0, 128, 38, 62, 0, 128, 65, 190, 2, 0, 128, 38, 62, 0, 128, 66, 62, 3, 0, 0, 243, 61, 0, 0, 228, 61, 85, 213, 17, 62, 0, 128, 48, 62, 85, 213, 2, 62, 171, 170, 21, 62, 3, 0, 0, 216, 61, 0, 0, 128, 58, 0, 0, 225, 61, 85, 85, 157, 61, 0, 0, 216, 61, 0, 0, 36, 61, 3, 0, 128, 38, 62, 0, 128, 65, 190, 0, 0, 216, 61, 85, 85, 201, 189, 0, 0, 255, 61, 0, 128, 37, 190, 78, 0, 0, 0, 0, 192, 25, 63, 0, 0, 0, 0, 13, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 133, 62, 2, 0, 192, 25, 63, 0, 0, 133, 62, 2, 0, 192, 25, 63, 0, 128, 121, 62, 2, 0, 128, 229, 62, 0, 128, 121, 62, 2, 0, 128, 229, 62, 0, 0, 24, 60, 2, 0, 192, 25, 63, 0, 0, 24, 60, 2, 0, 192, 25, 63, 0, 0, 32, 188, 2, 0, 0, 0, 0, 0, 0, 32, 188, 2, 0, 0, 0, 0, 0, 0, 24, 60, 2, 0, 128, 28, 62, 0, 0, 24, 60, 2, 0, 128, 28, 62, 0, 128, 121, 62, 2, 0, 0, 0, 0, 0, 128, 121, 62, 2, 0, 0, 0, 0, 0, 0, 133, 62, 79, 0, 0, 0, 0, 192, 25, 63, 0, 0, 0, 0, 10, 0, 0, 0, 1, 0, 0, 154, 62, 0, 0, 240, 61, 3, 0, 128, 28, 62, 0, 0, 32, 62, 0, 0, 79, 62, 0, 0, 238, 61, 0, 128, 28, 62, 85, 85, 4, 62, 2, 0, 128, 28, 62, 0, 128, 121, 62, 2, 0, 0, 0, 0, 0, 128, 121, 62, 2, 0, 0, 0, 0, 0, 192, 131, 62, 2, 0, 192, 25, 63, 0, 192, 131, 62, 2, 0, 192, 25, 63, 0, 128, 121, 62, 2, 0, 128, 229, 62, 0, 128, 121, 62, 2, 0, 128, 229, 62, 0, 0, 32, 62, 3, 0, 0, 154, 62, 0, 0, 240, 61, 0, 128, 229, 62, 85, 85, 4, 62, 85, 85, 204, 62, 0, 0, 238, 61, 80, 0, 0, 0, 0, 192, 25, 63, 0, 0, 0, 0, 10, 0, 0, 0, 1, 0, 0, 154, 62, 0, 0, 7, 62, 3, 0, 128, 229, 62, 0, 0, 200, 61, 85, 85, 204, 62, 171, 170, 10, 62, 0, 128, 229, 62, 0, 0, 254, 61, 2, 0, 128, 229, 62, 0, 0, 16, 60, 2, 0, 192, 25, 63, 0, 0, 16, 60, 2, 0, 192, 25, 63, 0, 0, 32, 188, 2, 0, 0, 0, 0, 0, 0, 32, 188, 2, 0, 0, 0, 0, 0, 0, 16, 60, 2, 0, 128, 28, 62, 0, 0, 16, 60, 2, 0, 128, 28, 62, 0, 0, 200, 61, 3, 0, 0, 154, 62, 0, 0, 7, 62, 0, 128, 28, 62, 0, 0, 254, 61, 0, 0, 79, 62, 171, 170, 10, 62, 81, 0, 0, 0, 0, 192, 129, 62, 0, 0, 0, 0, 37, 0, 0, 0, 1, 0, 0, 79, 62, 0, 0, 63, 190, 3, 0, 128, 52, 62, 0, 128, 56, 190, 171, 170, 78, 62, 0, 0, 63, 190, 85, 213, 69, 62, 85, 213, 60, 190, 3, 0, 128, 3, 62, 0, 128, 50, 190, 0, 128, 35, 62, 0, 128, 52, 190, 171, 42, 19, 62, 0, 128, 50, 190, 3, 0, 0, 203, 61, 0, 128, 61, 190, 85, 85, 238, 61, 0, 128, 50, 190, 85, 85, 218, 61, 171, 42, 54, 190, 3, 0, 0, 180, 61, 0, 0, 97, 190, 171, 170, 187, 61, 171, 42, 69, 190, 0, 0, 180, 61, 0, 0, 81, 190, 3, 0, 0, 206, 61, 0, 64, 133, 190, 0, 0, 180, 61, 0, 0, 111, 190, 171, 170, 188, 61, 85, 213, 124, 190, 3, 0, 128, 4, 62, 0, 64, 150, 190, 0, 0, 224, 61, 0, 64, 140, 190, 171, 170, 243, 61, 171, 234, 145, 190, 3, 0, 0, 34, 62, 0, 64, 162, 190, 0, 128, 15, 62, 85, 149, 154, 190, 85, 85, 25, 62, 85, 149, 158, 190, 3, 0, 0, 47, 62, 0, 64, 170, 190, 171, 170, 42, 62, 85, 21, 166, 190, 0, 0, 47, 62, 0, 192, 168, 190, 3, 0, 0, 37, 62, 0, 192, 175, 190, 0, 0, 47, 62, 0, 192, 171, 190, 171, 170, 43, 62, 85, 149, 173, 190, 3, 0, 0, 19, 62, 0, 64, 179, 190, 171, 170, 30, 62, 85, 21, 178, 190, 171, 170, 24, 62, 0, 64, 179, 190, 3, 0, 0, 233, 61, 0, 192, 172, 190, 0, 0, 14, 62, 0, 64, 179, 190, 85, 213, 3, 62, 85, 21, 177, 190, 3, 0, 0, 134, 61, 0, 128, 156, 190, 0, 0, 203, 61, 85, 149, 168, 190, 0, 0, 170, 61, 171, 42, 163, 190, 3, 0, 0, 160, 60, 0, 128, 131, 190, 85, 85, 69, 61, 85, 213, 149, 190, 171, 170, 6, 61, 0, 128, 141, 190, 3, 0, 0, 0, 0, 0, 128, 76, 190, 85, 85, 213, 59, 0, 0, 115, 190, 0, 0, 64, 34, 0, 128, 95, 190, 3, 0, 0, 172, 60, 0, 0, 249, 189, 0, 0, 0, 0, 0, 128, 42, 190, 85, 85, 229, 59, 85, 213, 15, 190, 3, 0, 0, 153, 61, 0, 0, 191, 189, 85, 85, 15, 61, 85, 85, 210, 189, 171, 170, 88, 61, 0, 0, 191, 189, 3, 0, 0, 21, 62, 0, 0, 229, 189, 171, 170, 209, 61, 0, 0, 191, 189, 0, 0, 1, 62, 171, 170, 203, 189, 3, 0, 0, 149, 61, 0, 0, 32, 188, 85, 85, 239, 61, 85, 85, 162, 189, 171, 170, 189, 61, 85, 85, 57, 189, 3, 0, 0, 48, 61, 0, 0, 133, 61, 171, 170, 88, 61, 0, 0, 208, 60, 0, 0, 48, 61, 0, 0, 78, 61, 3, 0, 0, 140, 61, 0, 0, 221, 61, 0, 0, 48, 61, 171, 170, 143, 61, 171, 170, 82, 61, 0, 0, 173, 61, 3, 0, 0, 245, 61, 0, 128, 60, 62, 85, 85, 175, 61, 85, 213, 6, 62, 85, 85, 210, 61, 85, 213, 32, 62, 3, 0, 0, 21, 62, 0, 128, 123, 62, 171, 42, 12, 62, 171, 42, 88, 62, 0, 0, 21, 62, 171, 42, 109, 62, 3, 0, 0, 253, 61, 0, 128, 148, 62, 0, 0, 21, 62, 171, 234, 130, 62, 0, 128, 13, 62, 0, 128, 138, 62, 3, 0, 0, 164, 61, 0, 0, 176, 62, 171, 170, 223, 61, 0, 128, 158, 62, 0, 0, 194, 61, 171, 170, 167, 62, 3, 0, 0, 112, 61, 0, 192, 190, 62, 171, 170, 134, 61, 0, 128, 184, 62, 0, 0, 112, 61, 171, 106, 189, 62, 3, 0, 0, 152, 61, 0, 192, 200, 62, 0, 0, 112, 61, 85, 21, 193, 62, 171, 170, 130, 61, 171, 106, 196, 62, 3, 0, 0, 198, 61, 0, 64, 207, 62, 85, 85, 173, 61, 85, 21, 205, 62, 171, 170, 188, 61, 0, 64, 207, 62, 3, 0, 128, 18, 62, 0, 64, 183, 62, 171, 170, 208, 61, 0, 64, 207, 62, 85, 85, 240, 61, 0, 64, 199, 62, 3, 0, 0, 95, 62, 0, 0, 132, 62, 171, 42, 45, 62, 171, 106, 167, 62, 171, 170, 70, 62, 85, 85, 150, 62, 3, 0, 192, 129, 62, 0, 128, 65, 62, 85, 85, 119, 62, 171, 170, 99, 62, 0, 192, 129, 62, 171, 42, 76, 62, 3, 0, 0, 75, 62, 0, 0, 170, 61, 0, 192, 129, 62, 171, 42, 53, 62, 171, 170, 112, 62, 0, 0, 17, 62, 3, 0, 0, 19, 62, 0, 0, 148, 188, 171, 170, 37, 62, 171, 170, 202, 60, 0, 0, 19, 62, 171, 170, 18, 188, 3, 0, 128, 66, 62, 0, 0, 195, 189, 0, 0, 19, 62, 171, 170, 222, 188, 85, 213, 34, 62, 171, 170, 88, 189, 3, 0, 128, 114, 62, 0, 0, 39, 190, 0, 128, 98, 62, 171, 42, 13, 190, 0, 128, 114, 62, 85, 85, 36, 190, 3, 0, 0, 102, 62, 0, 128, 55, 190, 0, 128, 114, 62, 0, 0, 45, 190, 85, 85, 110, 62, 0, 128, 50, 190, 3, 0, 0, 79, 62, 0, 0, 63, 190, 171, 170, 93, 62, 0, 128, 60, 190, 0, 0, 86, 62, 0, 0, 63, 190, 82, 0, 0, 0, 0, 128, 159, 62, 0, 0, 0, 0, 21, 0, 0, 0, 1, 0, 0, 129, 62, 0, 0, 69, 62, 3, 0, 64, 147, 62, 0, 128, 96, 62, 0, 0, 133, 62, 0, 0, 83, 62, 85, 21, 139, 62, 171, 42, 92, 62, 3, 0, 0, 156, 62, 0, 0, 72, 62, 171, 106, 155, 62, 85, 213, 100, 62, 85, 85, 158, 62, 171, 170, 92, 62, 2, 0, 0, 123, 62, 0, 0, 88, 190, 3, 0, 128, 85, 62, 0, 0, 103, 190, 171, 170, 115, 62, 171, 170, 104, 190, 171, 42, 103, 62, 171, 170, 109, 190, 3, 0, 0, 87, 62, 0, 0, 108, 189, 85, 213, 67, 62, 85, 85, 96, 190, 85, 85, 68, 62, 0, 0, 39, 190, 3, 0, 128, 110, 62, 0, 0, 223, 61, 171, 170, 105, 62, 0, 0, 68, 61, 0, 128, 113, 62, 171, 170, 211, 61, 3, 0, 128, 86, 62, 0, 0, 209, 61, 0, 128, 107, 62, 85, 85, 234, 61, 0, 128, 99, 62, 171, 170, 229, 61, 3, 0, 128, 44, 62, 0, 0, 153, 61, 0, 128, 73, 62, 85, 85, 188, 61, 0, 128, 59, 62, 171, 170, 169, 61, 3, 0, 0, 234, 61, 0, 0, 112, 61, 0, 128, 29, 62, 85, 85, 136, 61, 0, 0, 11, 62, 171, 170, 122, 61, 3, 0, 0, 88, 61, 0, 0, 136, 61, 0, 0, 190, 61, 85, 85, 101, 61, 0, 0, 148, 61, 0, 0, 112, 61, 3, 0, 0, 64, 60, 0, 0, 207, 61, 0, 0, 8, 61, 0, 0, 152, 61, 0, 0, 160, 60, 171, 170, 175, 61, 3, 0, 0, 32, 59, 0, 128, 24, 62, 0, 0, 128, 59, 85, 85, 238, 61, 85, 85, 85, 58, 0, 128, 7, 62, 3, 0, 0, 196, 60, 0, 0, 72, 62, 85, 85, 133, 59, 0, 128, 41, 62, 0, 0, 56, 60, 85, 85, 57, 62, 3, 0, 0, 139, 61, 0, 0, 101, 62, 0, 0, 22, 61, 171, 170, 86, 62, 0, 0, 82, 61, 85, 85, 96, 62, 3, 0, 0, 235, 61, 0, 0, 104, 62, 0, 0, 173, 61, 171, 170, 105, 62, 0, 0, 205, 61, 171, 170, 106, 62, 3, 0, 0, 29, 62, 0, 0, 79, 62, 0, 128, 4, 62, 85, 85, 101, 62, 171, 170, 17, 62, 0, 0, 93, 62, 3, 0, 128, 50, 62, 0, 0, 44, 62, 85, 85, 40, 62, 0, 0, 65, 62, 0, 128, 47, 62, 85, 85, 53, 62, 3, 0, 128, 64, 62, 0, 128, 28, 62, 0, 128, 53, 62, 171, 170, 34, 62, 171, 42, 58, 62, 0, 128, 29, 62, 3, 0, 0, 96, 62, 0, 128, 37, 62, 85, 213, 70, 62, 0, 128, 27, 62, 85, 85, 81, 62, 0, 128, 30, 62, 3, 0, 0, 129, 62, 0, 0, 69, 62, 171, 170, 110, 62, 0, 128, 44, 62, 0, 0, 122, 62, 0, 0, 55, 62, 83, 0, 0, 0, 0, 0, 176, 62, 0, 0, 0, 0, 35, 0, 0, 0, 1, 0, 0, 162, 61, 0, 128, 85, 62, 3, 0, 128, 9, 62, 0, 0, 92, 62, 85, 85, 191, 61, 171, 42, 93, 62, 0, 0, 229, 61, 85, 85, 95, 62, 3, 0, 128, 70, 62, 0, 0, 44, 62, 0, 128, 32, 62, 171, 170, 88, 62, 85, 213, 52, 62, 171, 170, 72, 62, 3, 0, 0, 110, 62, 0, 128, 7, 62, 171, 42, 88, 62, 85, 85, 15, 62, 85, 85, 101, 62, 171, 42, 3, 62, 3, 0, 0, 141, 62, 0, 128, 50, 62, 171, 170, 118, 62, 85, 213, 11, 62, 171, 170, 130, 62, 171, 42, 26, 62, 3, 0, 64, 166, 62, 0, 128, 93, 62, 85, 85, 151, 62, 85, 213, 74, 62, 0, 192, 159, 62, 171, 42, 89, 62, 3, 0, 128, 172, 62, 0, 0, 69, 62, 0, 192, 172, 62, 85, 213, 97, 62, 85, 213, 174, 62, 171, 170, 89, 62, 2, 0, 0, 123, 62, 0, 128, 237, 190, 3, 0, 128, 85, 62, 0, 0, 245, 190, 171, 170, 115, 62, 85, 213, 245, 190, 171, 42, 103, 62, 85, 85, 248, 190, 3, 0, 0, 87, 62, 0, 0, 159, 190, 85, 213, 67, 62, 171, 170, 241, 190, 85, 85, 68, 62, 0, 0, 213, 190, 3, 0, 128, 110, 62, 0, 128, 19, 190, 171, 170, 105, 62, 0, 0, 82, 190, 0, 128, 113, 62, 171, 42, 25, 190, 3, 0, 128, 86, 62, 0, 128, 26, 190, 0, 128, 107, 62, 85, 213, 13, 190, 0, 128, 99, 62, 171, 42, 16, 190, 3, 0, 128, 44, 62, 0, 128, 54, 190, 0, 128, 73, 62, 85, 213, 36, 190, 0, 128, 59, 62, 171, 42, 46, 190, 3, 0, 0, 234, 61, 0, 0, 71, 190, 0, 128, 29, 62, 85, 213, 62, 190, 0, 0, 11, 62, 85, 85, 68, 190, 3, 0, 0, 88, 61, 0, 0, 63, 190, 0, 0, 190, 61, 171, 170, 73, 190, 0, 0, 148, 61, 0, 0, 71, 190, 3, 0, 0, 64, 60, 0, 128, 27, 190, 0, 0, 8, 61, 0, 0, 55, 190, 0, 0, 160, 60, 171, 42, 43, 190, 3, 0, 0, 32, 59, 0, 0, 213, 189, 0, 0, 128, 59, 85, 213, 11, 190, 85, 85, 85, 58, 0, 0, 247, 189, 3, 0, 0, 196, 60, 0, 0, 108, 189, 85, 85, 133, 59, 0, 0, 179, 189, 0, 0, 56, 60, 85, 85, 147, 189, 3, 0, 0, 139, 61, 0, 0, 240, 188, 0, 0, 22, 61, 85, 85, 49, 189, 0, 0, 82, 61, 171, 170, 10, 189, 3, 0, 0, 235, 61, 0, 0, 216, 188, 0, 0, 173, 61, 171, 170, 202, 188, 0, 0, 205, 61, 171, 170, 194, 188, 3, 0, 0, 29, 62, 0, 0, 80, 189, 0, 128, 4, 62, 85, 85, 237, 188, 171, 170, 17, 62, 0, 0, 24, 189, 3, 0, 128, 50, 62, 0, 0, 174, 189, 85, 85, 40, 62, 0, 0, 132, 189, 0, 128, 47, 62, 85, 85, 155, 189, 3, 0, 128, 64, 62, 0, 0, 205, 189, 0, 128, 53, 62, 171, 170, 192, 189, 171, 42, 58, 62, 0, 0, 203, 189, 3, 0, 128, 95, 62, 0, 0, 154, 189, 85, 213, 70, 62, 0, 0, 207, 189, 171, 42, 81, 62, 0, 0, 190, 189, 3, 0, 128, 129, 62, 0, 0, 72, 188, 85, 213, 109, 62, 0, 0, 108, 189, 171, 170, 121, 62, 0, 0, 22, 189, 3, 0, 0, 139, 62, 0, 0, 126, 61, 171, 42, 134, 62, 0, 0, 72, 60, 85, 85, 137, 62, 85, 85, 23, 61, 3, 0, 64, 139, 62, 0, 0, 222, 61, 171, 170, 140, 62, 85, 85, 178, 61, 0, 192, 140, 62, 0, 0, 210, 61, 3, 0, 0, 119, 62, 0, 0, 186, 61, 0, 192, 137, 62, 0, 0, 234, 61, 0, 128, 132, 62, 0, 0, 222, 61, 3, 0, 0, 66, 62, 0, 0, 98, 61, 0, 0, 101, 62, 0, 0, 150, 61, 85, 85, 83, 62, 85, 85, 123, 61, 3, 0, 128, 9, 62, 0, 0, 62, 61, 171, 170, 48, 62, 171, 170, 72, 61, 85, 213, 29, 62, 171, 170, 60, 61, 3, 0, 0, 163, 61, 0, 0, 122, 61, 85, 85, 234, 61, 85, 85, 63, 61, 0, 0, 197, 61, 85, 85, 83, 61, 3, 0, 0, 46, 61, 0, 0, 208, 61, 0, 0, 129, 61, 85, 85, 144, 61, 85, 85, 79, 61, 0, 0, 172, 61, 3, 0, 0, 12, 61, 0, 128, 24, 62, 171, 170, 12, 61, 0, 0, 244, 61, 85, 85, 1, 61, 171, 42, 10, 62, 3, 0, 0, 68, 61, 0, 0, 60, 62, 171, 170, 22, 61, 85, 213, 38, 62, 85, 85, 41, 61, 171, 170, 50, 62, 3, 0, 0, 162, 61, 0, 128, 85, 62, 171, 170, 94, 61, 85, 85, 69, 62, 171, 170, 132, 61, 85, 213, 77, 62, 84, 0, 0, 0, 0, 192, 193, 62, 0, 0, 0, 0, 54, 0, 0, 0, 1, 0, 192, 136, 62, 0, 0, 205, 61, 3, 0, 0, 119, 62, 0, 0, 165, 61, 85, 21, 134, 62, 0, 0, 203, 61, 171, 170, 129, 62, 171, 170, 189, 61, 3, 0, 0, 66, 62, 0, 0, 56, 61, 0, 0, 101, 62, 0, 0, 129, 61, 85, 85, 83, 62, 85, 85, 81, 61, 3, 0, 128, 9, 62, 0, 0, 20, 61, 171, 170, 48, 62, 171, 170, 30, 61, 85, 213, 29, 62, 171, 170, 18, 61, 3, 0, 0, 163, 61, 0, 0, 80, 61, 85, 85, 234, 61, 85, 85, 21, 61, 0, 0, 197, 61, 85, 85, 41, 61, 3, 0, 0, 46, 61, 0, 0, 187, 61, 0, 0, 129, 61, 171, 170, 118, 61, 85, 85, 79, 61, 0, 0, 151, 61, 3, 0, 0, 12, 61, 0, 0, 14, 62, 171, 170, 12, 61, 0, 0, 223, 61, 85, 85, 1, 61, 85, 85, 255, 61, 3, 0, 0, 68, 61, 0, 128, 49, 62, 171, 170, 22, 61, 85, 85, 28, 62, 85, 85, 41, 61, 171, 42, 40, 62, 3, 0, 0, 162, 61, 0, 0, 75, 62, 171, 170, 94, 61, 85, 213, 58, 62, 171, 170, 132, 61, 85, 85, 67, 62, 3, 0, 128, 9, 62, 0, 128, 81, 62, 85, 85, 191, 61, 171, 170, 82, 62, 0, 0, 229, 61, 85, 213, 84, 62, 3, 0, 128, 70, 62, 0, 128, 33, 62, 0, 128, 32, 62, 171, 42, 78, 62, 85, 213, 52, 62, 171, 42, 62, 62, 3, 0, 0, 110, 62, 0, 0, 250, 61, 171, 42, 88, 62, 85, 213, 4, 62, 85, 85, 101, 62, 85, 85, 241, 61, 3, 0, 0, 141, 62, 0, 0, 40, 62, 171, 170, 118, 62, 85, 85, 1, 62, 171, 170, 130, 62, 171, 170, 15, 62, 3, 0, 192, 141, 62, 0, 128, 41, 62, 171, 42, 141, 62, 171, 170, 40, 62, 171, 106, 141, 62, 171, 42, 41, 62, 2, 0, 192, 141, 62, 0, 0, 42, 62, 3, 0, 128, 153, 62, 0, 64, 170, 62, 85, 21, 151, 62, 0, 0, 139, 62, 0, 0, 155, 62, 171, 106, 167, 62, 3, 0, 128, 141, 62, 0, 192, 166, 62, 0, 0, 152, 62, 85, 21, 173, 62, 0, 0, 148, 62, 171, 234, 171, 62, 3, 0, 0, 113, 62, 0, 192, 152, 62, 0, 0, 135, 62, 85, 149, 161, 62, 0, 0, 128, 62, 171, 234, 156, 62, 3, 0, 128, 57, 62, 0, 128, 144, 62, 0, 0, 98, 62, 85, 149, 148, 62, 0, 128, 79, 62, 85, 213, 145, 62, 3, 0, 0, 245, 61, 0, 128, 148, 62, 0, 128, 35, 62, 171, 42, 143, 62, 0, 128, 14, 62, 0, 128, 144, 62, 3, 0, 0, 161, 61, 0, 64, 166, 62, 0, 0, 205, 61, 0, 128, 152, 62, 0, 0, 177, 61, 171, 106, 158, 62, 3, 0, 0, 142, 61, 0, 192, 190, 62, 0, 0, 145, 61, 85, 21, 174, 62, 171, 170, 138, 61, 0, 64, 182, 62, 3, 0, 0, 186, 61, 0, 128, 214, 62, 85, 85, 145, 61, 0, 64, 199, 62, 0, 0, 160, 61, 171, 42, 207, 62, 3, 0, 0, 10, 62, 0, 0, 229, 62, 0, 0, 212, 61, 85, 213, 221, 62, 0, 0, 242, 61, 171, 170, 226, 62, 3, 0, 0, 58, 62, 0, 128, 230, 62, 0, 0, 27, 62, 85, 85, 231, 62, 0, 0, 43, 62, 85, 213, 231, 62, 3, 0, 128, 97, 62, 0, 0, 218, 62, 0, 0, 73, 62, 171, 42, 229, 62, 171, 42, 86, 62, 0, 0, 225, 62, 3, 0, 0, 119, 62, 0, 128, 200, 62, 85, 213, 108, 62, 0, 0, 211, 62, 0, 0, 116, 62, 171, 42, 205, 62, 3, 0, 128, 130, 62, 0, 192, 192, 62, 0, 0, 122, 62, 85, 213, 195, 62, 171, 170, 126, 62, 0, 64, 193, 62, 3, 0, 64, 146, 62, 0, 64, 197, 62, 171, 170, 133, 62, 0, 64, 192, 62, 171, 234, 138, 62, 0, 192, 193, 62, 3, 0, 64, 163, 62, 0, 0, 213, 62, 85, 149, 153, 62, 0, 192, 200, 62, 0, 64, 159, 62, 0, 0, 206, 62, 3, 0, 128, 181, 62, 0, 192, 226, 62, 0, 64, 167, 62, 0, 0, 220, 62, 85, 85, 173, 62, 85, 149, 224, 62, 3, 0, 64, 190, 62, 0, 128, 214, 62, 171, 170, 189, 62, 171, 234, 228, 62, 85, 149, 192, 62, 85, 213, 224, 62, 2, 0, 128, 173, 62, 0, 128, 71, 62, 3, 0, 128, 172, 62, 0, 128, 58, 62, 85, 85, 173, 62, 85, 213, 67, 62, 0, 0, 173, 62, 0, 128, 63, 62, 2, 0, 0, 123, 62, 0, 192, 242, 190, 3, 0, 128, 85, 62, 0, 64, 250, 190, 171, 170, 115, 62, 85, 21, 251, 190, 171, 42, 103, 62, 85, 149, 253, 190, 3, 0, 0, 87, 62, 0, 64, 164, 190, 85, 213, 67, 62, 171, 234, 246, 190, 85, 85, 68, 62, 0, 64, 218, 190, 3, 0, 128, 110, 62, 0, 0, 30, 190, 171, 170, 105, 62, 0, 128, 92, 190, 0, 128, 113, 62, 171, 170, 35, 190, 3, 0, 128, 86, 62, 0, 0, 37, 190, 0, 128, 107, 62, 85, 85, 24, 190, 0, 128, 99, 62, 171, 170, 26, 190, 3, 0, 128, 44, 62, 0, 0, 65, 190, 0, 128, 73, 62, 85, 85, 47, 190, 0, 128, 59, 62, 171, 170, 56, 190, 3, 0, 0, 234, 61, 0, 128, 81, 190, 0, 128, 29, 62, 85, 85, 73, 190, 0, 0, 11, 62, 85, 213, 78, 190, 3, 0, 0, 88, 61, 0, 128, 73, 190, 0, 0, 190, 61, 171, 42, 84, 190, 0, 0, 148, 61, 0, 128, 81, 190, 3, 0, 0, 64, 60, 0, 0, 38, 190, 0, 0, 8, 61, 0, 128, 65, 190, 0, 0, 160, 60, 171, 170, 53, 190, 3, 0, 0, 32, 59, 0, 0, 234, 189, 0, 0, 128, 59, 85, 85, 22, 190, 85, 85, 85, 58, 0, 0, 6, 190, 3, 0, 0, 196, 60, 0, 0, 139, 189, 85, 85, 133, 59, 0, 0, 200, 189, 0, 0, 56, 60, 85, 85, 168, 189, 3, 0, 0, 139, 61, 0, 0, 34, 189, 0, 0, 22, 61, 85, 85, 91, 189, 0, 0, 82, 61, 171, 170, 52, 189, 3, 0, 0, 235, 61, 0, 0, 22, 189, 0, 0, 173, 61, 85, 85, 15, 189, 0, 0, 205, 61, 85, 85, 11, 189, 3, 0, 0, 29, 62, 0, 0, 122, 189, 0, 128, 4, 62, 171, 170, 32, 189, 171, 170, 17, 62, 0, 0, 66, 189, 3, 0, 128, 50, 62, 0, 0, 195, 189, 85, 85, 40, 62, 0, 0, 153, 189, 0, 128, 47, 62, 85, 85, 176, 189, 3, 0, 128, 64, 62, 0, 0, 226, 189, 0, 128, 53, 62, 171, 170, 213, 189, 171, 42, 58, 62, 0, 0, 224, 189, 3, 0, 128, 95, 62, 0, 0, 175, 189, 85, 213, 70, 62, 0, 0, 228, 189, 171, 42, 81, 62, 0, 0, 211, 189, 3, 0, 128, 129, 62, 0, 0, 184, 188, 85, 213, 109, 62, 0, 0, 139, 189, 171, 170, 121, 62, 0, 0, 64, 189, 3, 0, 128, 132, 62, 0, 0, 132, 60, 171, 170, 130, 62, 171, 170, 74, 188, 171, 170, 131, 62, 0, 0, 0, 58, 3, 0, 192, 136, 62, 0, 0, 205, 61, 0, 128, 134, 62, 171, 170, 20, 61, 171, 234, 135, 62, 171, 170, 131, 61, 85, 0, 0, 0, 0, 128, 213, 62, 0, 0, 0, 0, 72, 0, 0, 0, 1, 0, 128, 178, 62, 0, 0, 64, 60, 2, 0, 128, 173, 62, 0, 0, 98, 189, 3, 0, 128, 172, 62, 0, 0, 139, 189, 85, 85, 173, 62, 171, 170, 112, 189, 0, 0, 173, 62, 0, 0, 129, 189, 2, 0, 0, 123, 62, 0, 96, 57, 191, 3, 0, 128, 85, 62, 0, 32, 61, 191, 171, 170, 115, 62, 171, 138, 61, 191, 171, 42, 103, 62, 171, 202, 62, 191, 3, 0, 0, 87, 62, 0, 32, 18, 191, 85, 213, 67, 62, 85, 117, 59, 191, 85, 85, 68, 62, 0, 32, 45, 191, 3, 0, 128, 110, 62, 0, 0, 207, 190, 171, 170, 105, 62, 0, 64, 238, 190, 0, 128, 113, 62, 85, 213, 209, 190, 3, 0, 128, 86, 62, 0, 128, 210, 190, 0, 128, 107, 62, 171, 42, 204, 190, 0, 128, 99, 62, 85, 85, 205, 190, 3, 0, 128, 44, 62, 0, 128, 224, 190, 0, 128, 73, 62, 171, 170, 215, 190, 0, 128, 59, 62, 85, 85, 220, 190, 3, 0, 0, 234, 61, 0, 192, 232, 190, 0, 128, 29, 62, 171, 170, 228, 190, 0, 0, 11, 62, 171, 106, 231, 190, 3, 0, 0, 88, 61, 0, 192, 228, 190, 0, 0, 190, 61, 85, 21, 234, 190, 0, 0, 148, 61, 0, 192, 232, 190, 3, 0, 0, 64, 60, 0, 0, 211, 190, 0, 0, 8, 61, 0, 192, 224, 190, 0, 0, 160, 60, 85, 213, 218, 190, 3, 0, 0, 32, 59, 0, 128, 186, 190, 0, 0, 128, 59, 171, 42, 203, 190, 85, 85, 85, 58, 0, 0, 195, 190, 3, 0, 0, 196, 60, 0, 192, 162, 190, 85, 85, 133, 59, 0, 0, 178, 190, 0, 0, 56, 60, 85, 21, 170, 190, 3, 0, 0, 139, 61, 0, 64, 148, 190, 0, 0, 22, 61, 171, 106, 155, 190, 0, 0, 82, 61, 85, 149, 150, 190, 3, 0, 0, 235, 61, 0, 192, 146, 190, 0, 0, 173, 61, 171, 234, 145, 190, 0, 0, 205, 61, 171, 106, 145, 190, 3, 0, 0, 29, 62, 0, 64, 159, 190, 0, 128, 4, 62, 85, 21, 148, 190, 171, 170, 17, 62, 0, 64, 152, 190, 3, 0, 128, 50, 62, 0, 192, 176, 190, 85, 85, 40, 62, 0, 64, 166, 190, 0, 128, 47, 62, 85, 21, 172, 190, 3, 0, 128, 64, 62, 0, 128, 184, 190, 0, 128, 53, 62, 171, 106, 181, 190, 171, 42, 58, 62, 0, 0, 184, 190, 3, 0, 128, 95, 62, 0, 192, 171, 190, 85, 213, 70, 62, 0, 0, 185, 190, 171, 42, 81, 62, 0, 192, 180, 190, 3, 0, 128, 129, 62, 0, 128, 139, 190, 85, 213, 109, 62, 0, 192, 162, 190, 171, 170, 121, 62, 0, 0, 152, 190, 3, 0, 128, 132, 62, 0, 128, 111, 190, 171, 170, 130, 62, 85, 85, 134, 190, 171, 170, 131, 62, 0, 128, 127, 190, 3, 0, 192, 136, 62, 0, 128, 25, 190, 0, 128, 134, 62, 85, 213, 90, 190, 171, 234, 135, 62, 171, 42, 62, 190, 3, 0, 0, 119, 62, 0, 128, 45, 190, 85, 21, 134, 62, 0, 128, 26, 190, 171, 170, 129, 62, 171, 42, 33, 190, 3, 0, 0, 66, 62, 0, 0, 82, 190, 0, 0, 101, 62, 0, 128, 63, 190, 85, 85, 83, 62, 171, 170, 75, 190, 3, 0, 128, 9, 62, 0, 0, 91, 190, 171, 170, 48, 62, 85, 85, 88, 190, 85, 213, 29, 62, 85, 85, 91, 190, 3, 0, 0, 163, 61, 0, 0, 76, 190, 85, 85, 234, 61, 171, 170, 90, 190, 0, 0, 197, 61, 171, 170, 85, 190, 3, 0, 0, 46, 61, 0, 128, 34, 190, 0, 0, 129, 61, 85, 85, 66, 190, 85, 85, 79, 61, 0, 128, 52, 190, 3, 0, 0, 12, 61, 0, 0, 228, 189, 171, 170, 12, 61, 0, 128, 16, 190, 85, 85, 1, 61, 85, 85, 0, 190, 3, 0, 0, 68, 61, 0, 0, 157, 189, 171, 170, 22, 61, 85, 85, 199, 189, 85, 85, 41, 61, 171, 170, 175, 189, 3, 0, 0, 162, 61, 0, 0, 84, 189, 171, 170, 94, 61, 85, 85, 138, 189, 171, 170, 132, 61, 171, 170, 114, 189, 3, 0, 128, 9, 62, 0, 0, 58, 189, 85, 85, 191, 61, 85, 85, 53, 189, 0, 0, 229, 61, 171, 170, 44, 189, 3, 0, 128, 70, 62, 0, 0, 189, 189, 0, 128, 32, 62, 85, 85, 71, 189, 85, 213, 52, 62, 171, 170, 131, 189, 3, 0, 0, 110, 62, 0, 0, 3, 190, 171, 42, 88, 62, 85, 85, 246, 189, 85, 85, 101, 62, 85, 85, 7, 190, 3, 0, 0, 141, 62, 0, 0, 176, 189, 171, 170, 118, 62, 85, 85, 253, 189, 171, 170, 130, 62, 171, 170, 224, 189, 3, 0, 192, 141, 62, 0, 0, 173, 189, 171, 42, 141, 62, 171, 170, 174, 189, 171, 106, 141, 62, 171, 170, 173, 189, 2, 0, 192, 141, 62, 0, 0, 172, 189, 3, 0, 128, 153, 62, 0, 0, 169, 61, 85, 21, 151, 62, 0, 0, 176, 60, 0, 0, 155, 62, 171, 170, 157, 61, 3, 0, 128, 141, 62, 0, 0, 155, 61, 0, 0, 152, 62, 85, 85, 180, 61, 0, 0, 148, 62, 171, 170, 175, 61, 3, 0, 0, 113, 62, 0, 0, 70, 61, 0, 0, 135, 62, 85, 85, 134, 61, 0, 0, 128, 62, 85, 85, 103, 61, 3, 0, 128, 57, 62, 0, 0, 4, 61, 0, 0, 98, 62, 171, 170, 36, 61, 0, 128, 79, 62, 171, 170, 14, 61, 3, 0, 0, 245, 61, 0, 0, 36, 61, 0, 128, 35, 62, 171, 170, 242, 60, 0, 128, 14, 62, 0, 0, 4, 61, 3, 0, 0, 161, 61, 0, 0, 153, 61, 0, 0, 205, 61, 0, 0, 68, 61, 0, 0, 177, 61, 85, 85, 115, 61, 3, 0, 0, 142, 61, 0, 0, 251, 61, 0, 0, 145, 61, 85, 85, 184, 61, 171, 170, 138, 61, 0, 0, 217, 61, 3, 0, 0, 186, 61, 0, 0, 45, 62, 85, 85, 145, 61, 0, 128, 14, 62, 0, 0, 160, 61, 85, 85, 30, 62, 3, 0, 0, 10, 62, 0, 0, 74, 62, 0, 0, 212, 61, 171, 170, 59, 62, 0, 0, 242, 61, 85, 85, 69, 62, 3, 0, 0, 58, 62, 0, 0, 77, 62, 0, 0, 27, 62, 171, 170, 78, 62, 0, 0, 43, 62, 171, 170, 79, 62, 3, 0, 128, 97, 62, 0, 0, 52, 62, 0, 0, 73, 62, 85, 85, 74, 62, 171, 42, 86, 62, 0, 0, 66, 62, 3, 0, 0, 119, 62, 0, 0, 17, 62, 85, 213, 108, 62, 0, 0, 38, 62, 0, 0, 116, 62, 85, 85, 26, 62, 3, 0, 128, 130, 62, 0, 128, 1, 62, 0, 0, 122, 62, 171, 170, 7, 62, 171, 170, 126, 62, 0, 128, 2, 62, 3, 0, 64, 146, 62, 0, 128, 10, 62, 171, 170, 133, 62, 0, 128, 0, 62, 171, 234, 138, 62, 0, 128, 3, 62, 3, 0, 0, 159, 62, 0, 128, 31, 62, 85, 21, 152, 62, 171, 42, 16, 62, 85, 85, 156, 62, 171, 42, 23, 62, 3, 0, 0, 168, 62, 0, 0, 112, 62, 171, 170, 162, 62, 171, 42, 52, 62, 171, 170, 165, 62, 0, 0, 79, 62, 3, 0, 64, 173, 62, 0, 192, 171, 62, 0, 0, 173, 62, 171, 170, 151, 62, 0, 192, 174, 62, 171, 234, 168, 62, 3, 0, 64, 161, 62, 0, 64, 168, 62, 0, 192, 171, 62, 85, 149, 174, 62, 0, 192, 167, 62, 171, 106, 173, 62, 3, 0, 64, 140, 62, 0, 64, 154, 62, 0, 192, 154, 62, 85, 21, 163, 62, 0, 192, 147, 62, 171, 106, 158, 62, 3, 0, 0, 97, 62, 0, 0, 146, 62, 0, 192, 132, 62, 85, 21, 150, 62, 0, 0, 119, 62, 85, 85, 147, 62, 3, 0, 0, 34, 62, 0, 0, 150, 62, 0, 0, 75, 62, 171, 170, 144, 62, 0, 0, 54, 62, 0, 0, 146, 62, 3, 0, 0, 240, 61, 0, 192, 167, 62, 0, 0, 14, 62, 0, 0, 154, 62, 0, 0, 0, 62, 171, 234, 159, 62, 3, 0, 0, 221, 61, 0, 64, 192, 62, 0, 0, 224, 61, 85, 149, 175, 62, 171, 170, 217, 61, 0, 192, 183, 62, 3, 0, 128, 4, 62, 0, 0, 216, 62, 85, 85, 224, 61, 0, 192, 200, 62, 0, 0, 239, 61, 171, 170, 208, 62, 3, 0, 128, 49, 62, 0, 128, 230, 62, 0, 128, 17, 62, 85, 85, 223, 62, 0, 128, 32, 62, 171, 42, 228, 62, 3, 0, 128, 97, 62, 0, 0, 232, 62, 0, 128, 66, 62, 85, 213, 232, 62, 0, 128, 82, 62, 85, 85, 233, 62, 3, 0, 128, 132, 62, 0, 128, 219, 62, 0, 128, 112, 62, 171, 170, 230, 62, 171, 170, 125, 62, 0, 128, 226, 62, 3, 0, 64, 143, 62, 0, 0, 202, 62, 171, 42, 138, 62, 0, 128, 212, 62, 0, 192, 141, 62, 171, 170, 206, 62, 3, 0, 64, 150, 62, 0, 64, 194, 62, 0, 192, 144, 62, 85, 85, 197, 62, 85, 21, 147, 62, 0, 192, 194, 62, 3, 0, 0, 166, 62, 0, 192, 198, 62, 171, 106, 153, 62, 0, 192, 193, 62, 171, 170, 158, 62, 0, 64, 195, 62, 3, 0, 0, 183, 62, 0, 128, 214, 62, 85, 85, 173, 62, 0, 64, 202, 62, 0, 0, 179, 62, 0, 128, 207, 62, 3, 0, 64, 201, 62, 0, 64, 228, 62, 0, 0, 187, 62, 0, 128, 221, 62, 85, 21, 193, 62, 85, 21, 226, 62, 3, 0, 0, 210, 62, 0, 0, 216, 62, 171, 106, 209, 62, 171, 106, 230, 62, 85, 85, 212, 62, 85, 85, 226, 62, 2, 0, 128, 179, 62, 0, 0, 128, 60, 3, 0, 128, 178, 62, 0, 0, 64, 60, 171, 42, 179, 62, 171, 170, 106, 60, 85, 213, 178, 62, 85, 85, 85, 60, 86, 0, 0, 0, 0, 0, 234, 62, 0, 0, 0, 0, 90, 0, 0, 0, 1, 0, 192, 210, 62, 0, 0, 221, 62, 3, 0, 0, 210, 62, 0, 0, 215, 62, 0, 192, 210, 62, 85, 85, 219, 62, 0, 128, 210, 62, 85, 85, 217, 62, 2, 0, 128, 179, 62, 0, 0, 96, 60, 3, 0, 128, 178, 62, 0, 0, 32, 60, 171, 42, 179, 62, 171, 170, 74, 60, 85, 213, 178, 62, 85, 85, 53, 60, 2, 0, 128, 173, 62, 0, 0, 106, 189, 3, 0, 128, 172, 62, 0, 0, 143, 189, 85, 85, 173, 62, 171, 170, 120, 189, 0, 0, 173, 62, 0, 0, 133, 189, 2, 0, 0, 123, 62, 0, 224, 57, 191, 3, 0, 128, 85, 62, 0, 160, 61, 191, 171, 170, 115, 62, 171, 10, 62, 191, 171, 42, 103, 62, 171, 74, 63, 191, 3, 0, 0, 87, 62, 0, 160, 18, 191, 85, 213, 67, 62, 85, 245, 59, 191, 85, 85, 68, 62, 0, 160, 45, 191, 3, 0, 128, 110, 62, 0, 0, 208, 190, 171, 170, 105, 62, 0, 64, 239, 190, 0, 128, 113, 62, 85, 213, 210, 190, 3, 0, 128, 86, 62, 0, 128, 211, 190, 0, 128, 107, 62, 171, 42, 205, 190, 0, 128, 99, 62, 85, 85, 206, 190, 3, 0, 128, 44, 62, 0, 128, 225, 190, 0, 128, 73, 62, 171, 170, 216, 190, 0, 128, 59, 62, 85, 85, 221, 190, 3, 0, 0, 234, 61, 0, 192, 233, 190, 0, 128, 29, 62, 171, 170, 229, 190, 0, 0, 11, 62, 171, 106, 232, 190, 3, 0, 0, 88, 61, 0, 192, 229, 190, 0, 0, 190, 61, 85, 21, 235, 190, 0, 0, 148, 61, 0, 192, 233, 190, 3, 0, 0, 64, 60, 0, 0, 212, 190, 0, 0, 8, 61, 0, 192, 225, 190, 0, 0, 160, 60, 85, 213, 219, 190, 3, 0, 0, 32, 59, 0, 128, 187, 190, 0, 0, 128, 59, 171, 42, 204, 190, 85, 85, 85, 58, 0, 0, 196, 190, 3, 0, 0, 196, 60, 0, 192, 163, 190, 85, 85, 133, 59, 0, 0, 179, 190, 0, 0, 56, 60, 85, 21, 171, 190, 3, 0, 0, 139, 61, 0, 64, 149, 190, 0, 0, 22, 61, 171, 106, 156, 190, 0, 0, 82, 61, 85, 149, 151, 190, 3, 0, 0, 235, 61, 0, 192, 147, 190, 0, 0, 173, 61, 171, 234, 146, 190, 0, 0, 205, 61, 171, 106, 146, 190, 3, 0, 0, 29, 62, 0, 64, 160, 190, 0, 128, 4, 62, 85, 21, 149, 190, 171, 170, 17, 62, 0, 64, 153, 190, 3, 0, 128, 50, 62, 0, 192, 177, 190, 85, 85, 40, 62, 0, 64, 167, 190, 0, 128, 47, 62, 85, 21, 173, 190, 3, 0, 128, 64, 62, 0, 128, 185, 190, 0, 128, 53, 62, 171, 106, 182, 190, 171, 42, 58, 62, 0, 0, 185, 190, 3, 0, 128, 95, 62, 0, 192, 172, 190, 85, 213, 70, 62, 0, 0, 186, 190, 171, 42, 81, 62, 0, 192, 181, 190, 3, 0, 128, 129, 62, 0, 128, 140, 190, 85, 213, 109, 62, 0, 192, 163, 190, 171, 170, 121, 62, 0, 0, 153, 190, 3, 0, 128, 132, 62, 0, 128, 113, 190, 171, 170, 130, 62, 85, 85, 135, 190, 171, 170, 131, 62, 0, 192, 128, 190, 3, 0, 192, 136, 62, 0, 128, 27, 190, 0, 128, 134, 62, 85, 213, 92, 190, 171, 234, 135, 62, 171, 42, 64, 190, 3, 0, 0, 119, 62, 0, 128, 47, 190, 85, 21, 134, 62, 0, 128, 28, 190, 171, 170, 129, 62, 171, 42, 35, 190, 3, 0, 0, 66, 62, 0, 0, 84, 190, 0, 0, 101, 62, 0, 128, 65, 190, 85, 85, 83, 62, 171, 170, 77, 190, 3, 0, 128, 9, 62, 0, 0, 93, 190, 171, 170, 48, 62, 85, 85, 90, 190, 85, 213, 29, 62, 85, 85, 93, 190, 3, 0, 0, 163, 61, 0, 0, 78, 190, 85, 85, 234, 61, 171, 170, 92, 190, 0, 0, 197, 61, 171, 170, 87, 190, 3, 0, 0, 46, 61, 0, 128, 36, 190, 0, 0, 129, 61, 85, 85, 68, 190, 85, 85, 79, 61, 0, 128, 54, 190, 3, 0, 0, 12, 61, 0, 0, 232, 189, 171, 170, 12, 61, 0, 128, 18, 190, 85, 85, 1, 61, 85, 85, 2, 190, 3, 0, 0, 68, 61, 0, 0, 161, 189, 171, 170, 22, 61, 85, 85, 203, 189, 85, 85, 41, 61, 171, 170, 179, 189, 3, 0, 0, 162, 61, 0, 0, 92, 189, 171, 170, 94, 61, 85, 85, 142, 189, 171, 170, 132, 61, 171, 170, 122, 189, 3, 0, 128, 9, 62, 0, 0, 66, 189, 85, 85, 191, 61, 85, 85, 61, 189, 0, 0, 229, 61, 171, 170, 52, 189, 3, 0, 128, 70, 62, 0, 0, 193, 189, 0, 128, 32, 62, 85, 85, 79, 189, 85, 213, 52, 62, 171, 170, 135, 189, 3, 0, 0, 110, 62, 0, 0, 5, 190, 171, 42, 88, 62, 85, 85, 250, 189, 85, 85, 101, 62, 85, 85, 9, 190, 3, 0, 0, 141, 62, 0, 0, 180, 189, 171, 170, 118, 62, 171, 170, 0, 190, 171, 170, 130, 62, 171, 170, 228, 189, 3, 0, 192, 141, 62, 0, 0, 177, 189, 171, 42, 141, 62, 171, 170, 178, 189, 171, 106, 141, 62, 171, 170, 177, 189, 2, 0, 192, 141, 62, 0, 0, 176, 189, 3, 0, 128, 153, 62, 0, 0, 165, 61, 85, 21, 151, 62, 0, 0, 160, 60, 0, 0, 155, 62, 171, 170, 153, 61, 3, 0, 128, 141, 62, 0, 0, 151, 61, 0, 0, 152, 62, 85, 85, 176, 61, 0, 0, 148, 62, 171, 170, 171, 61, 3, 0, 0, 113, 62, 0, 0, 62, 61, 0, 0, 135, 62, 85, 85, 130, 61, 0, 0, 128, 62, 85, 85, 95, 61, 3, 0, 128, 57, 62, 0, 0, 248, 60, 0, 0, 98, 62, 171, 170, 28, 61, 0, 128, 79, 62, 171, 170, 6, 61, 3, 0, 0, 245, 61, 0, 0, 28, 61, 0, 128, 35, 62, 171, 170, 226, 60, 0, 128, 14, 62, 0, 0, 248, 60, 3, 0, 0, 161, 61, 0, 0, 149, 61, 0, 0, 205, 61, 0, 0, 60, 61, 0, 0, 177, 61, 85, 85, 107, 61, 3, 0, 0, 142, 61, 0, 0, 247, 61, 0, 0, 145, 61, 85, 85, 180, 61, 171, 170, 138, 61, 0, 0, 213, 61, 3, 0, 0, 186, 61, 0, 0, 43, 62, 85, 85, 145, 61, 0, 128, 12, 62, 0, 0, 160, 61, 85, 85, 28, 62, 3, 0, 0, 10, 62, 0, 0, 72, 62, 0, 0, 212, 61, 171, 170, 57, 62, 0, 0, 242, 61, 85, 85, 67, 62, 3, 0, 0, 58, 62, 0, 0, 75, 62, 0, 0, 27, 62, 171, 170, 76, 62, 0, 0, 43, 62, 171, 170, 77, 62, 3, 0, 128, 97, 62, 0, 0, 50, 62, 0, 0, 73, 62, 85, 85, 72, 62, 171, 42, 86, 62, 0, 0, 64, 62, 3, 0, 0, 119, 62, 0, 0, 15, 62, 85, 213, 108, 62, 0, 0, 36, 62, 0, 0, 116, 62, 85, 85, 24, 62, 3, 0, 128, 130, 62, 0, 0, 255, 61, 0, 0, 122, 62, 171, 170, 5, 62, 171, 170, 126, 62, 0, 128, 0, 62, 3, 0, 64, 146, 62, 0, 128, 8, 62, 171, 170, 133, 62, 0, 0, 253, 61, 171, 234, 138, 62, 0, 128, 1, 62, 3, 0, 0, 159, 62, 0, 128, 29, 62, 85, 21, 152, 62, 171, 42, 14, 62, 85, 85, 156, 62, 171, 42, 21, 62, 3, 0, 0, 168, 62, 0, 0, 110, 62, 171, 170, 162, 62, 171, 42, 50, 62, 171, 170, 165, 62, 0, 0, 77, 62, 3, 0, 64, 173, 62, 0, 192, 170, 62, 0, 0, 173, 62, 171, 170, 150, 62, 0, 192, 174, 62, 171, 234, 167, 62, 3, 0, 64, 161, 62, 0, 64, 167, 62, 0, 192, 171, 62, 85, 149, 173, 62, 0, 192, 167, 62, 171, 106, 172, 62, 3, 0, 64, 140, 62, 0, 64, 153, 62, 0, 192, 154, 62, 85, 21, 162, 62, 0, 192, 147, 62, 171, 106, 157, 62, 3, 0, 0, 97, 62, 0, 0, 145, 62, 0, 192, 132, 62, 85, 21, 149, 62, 0, 0, 119, 62, 85, 85, 146, 62, 3, 0, 0, 34, 62, 0, 0, 149, 62, 0, 0, 75, 62, 171, 170, 143, 62, 0, 0, 54, 62, 0, 0, 145, 62, 3, 0, 0, 240, 61, 0, 192, 166, 62, 0, 0, 14, 62, 0, 0, 153, 62, 0, 0, 0, 62, 171, 234, 158, 62, 3, 0, 0, 221, 61, 0, 64, 191, 62, 0, 0, 224, 61, 85, 149, 174, 62, 171, 170, 217, 61, 0, 192, 182, 62, 3, 0, 128, 4, 62, 0, 0, 215, 62, 85, 85, 224, 61, 0, 192, 199, 62, 0, 0, 239, 61, 171, 170, 207, 62, 3, 0, 128, 49, 62, 0, 128, 229, 62, 0, 128, 17, 62, 85, 85, 222, 62, 0, 128, 32, 62, 171, 42, 227, 62, 3, 0, 128, 97, 62, 0, 0, 231, 62, 0, 128, 66, 62, 85, 213, 231, 62, 0, 128, 82, 62, 85, 85, 232, 62, 3, 0, 128, 132, 62, 0, 128, 218, 62, 0, 128, 112, 62, 171, 170, 229, 62, 171, 170, 125, 62, 0, 128, 225, 62, 3, 0, 64, 143, 62, 0, 0, 201, 62, 171, 42, 138, 62, 0, 128, 211, 62, 0, 192, 141, 62, 171, 170, 205, 62, 3, 0, 64, 150, 62, 0, 64, 193, 62, 0, 192, 144, 62, 85, 85, 196, 62, 85, 21, 147, 62, 0, 192, 193, 62, 3, 0, 0, 166, 62, 0, 192, 197, 62, 171, 106, 153, 62, 0, 192, 192, 62, 171, 170, 158, 62, 0, 64, 194, 62, 3, 0, 64, 177, 62, 0, 64, 206, 62, 171, 42, 171, 62, 0, 64, 200, 62, 171, 234, 174, 62, 85, 21, 203, 62, 3, 0, 0, 182, 62, 0, 0, 226, 62, 0, 64, 179, 62, 171, 234, 212, 62, 85, 213, 180, 62, 0, 128, 219, 62, 3, 0, 192, 193, 62, 0, 160, 27, 63, 85, 85, 191, 62, 0, 0, 12, 63, 0, 64, 195, 62, 85, 53, 26, 63, 3, 0, 192, 181, 62, 0, 224, 25, 63, 0, 64, 192, 62, 171, 10, 29, 63, 0, 64, 188, 62, 85, 117, 28, 63, 3, 0, 192, 160, 62, 0, 224, 18, 63, 0, 64, 175, 62, 171, 74, 23, 63, 0, 64, 168, 62, 85, 245, 20, 63, 3, 0, 0, 133, 62, 0, 192, 14, 63, 0, 64, 153, 62, 171, 202, 16, 63, 0, 0, 144, 62, 171, 106, 15, 63, 3, 0, 0, 75, 62, 0, 192, 16, 63, 0, 0, 116, 62, 85, 21, 14, 63, 0, 0, 95, 62, 0, 192, 14, 63, 3, 0, 0, 33, 62, 0, 160, 25, 63, 0, 0, 55, 62, 0, 192, 18, 63, 0, 0, 41, 62, 85, 181, 21, 63, 3, 0, 128, 23, 62, 0, 224, 37, 63, 0, 0, 25, 62, 171, 138, 29, 63, 85, 213, 21, 62, 0, 160, 33, 63, 3, 0, 128, 45, 62, 0, 192, 49, 63, 171, 42, 25, 62, 0, 32, 42, 63, 0, 128, 32, 62, 85, 21, 46, 63, 3, 0, 128, 90, 62, 0, 0, 57, 63, 0, 128, 58, 62, 171, 106, 53, 63, 0, 128, 73, 62, 85, 213, 55, 63, 3, 0, 64, 133, 62, 0, 192, 57, 63, 0, 128, 107, 62, 171, 42, 58, 63, 0, 128, 123, 62, 171, 106, 58, 63, 3, 0, 0, 153, 62, 0, 128, 51, 63, 0, 192, 140, 62, 85, 21, 57, 63, 85, 85, 147, 62, 0, 0, 55, 63, 3, 0, 192, 163, 62, 0, 192, 42, 63, 171, 170, 158, 62, 0, 0, 48, 63, 0, 64, 162, 62, 85, 21, 45, 63, 3, 0, 192, 170, 62, 0, 224, 38, 63, 0, 64, 165, 62, 171, 106, 40, 63, 85, 149, 167, 62, 0, 32, 39, 63, 3, 0, 128, 186, 62, 0, 32, 41, 63, 171, 234, 173, 62, 0, 160, 38, 63, 171, 42, 179, 62, 0, 96, 39, 63, 3, 0, 128, 203, 62, 0, 0, 49, 63, 85, 213, 193, 62, 0, 224, 42, 63, 0, 128, 199, 62, 0, 128, 45, 63, 3, 0, 192, 221, 62, 0, 224, 55, 63, 0, 128, 207, 62, 0, 128, 52, 63, 85, 149, 213, 62, 171, 202, 54, 63, 3, 0, 128, 230, 62, 0, 192, 49, 63, 171, 234, 229, 62, 85, 245, 56, 63, 85, 213, 232, 62, 171, 234, 54, 63, 2, 0, 192, 210, 62, 0, 0, 221, 62, 87, 0, 0, 0, 0, 128, 130, 62, 0, 0, 0, 0, 17, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 128, 190, 3, 0, 0, 195, 61, 0, 64, 146, 190, 85, 85, 181, 60, 85, 85, 123, 190, 171, 170, 92, 61, 0, 192, 131, 190, 3, 0, 0, 60, 62, 0, 128, 206, 190, 85, 213, 11, 62, 0, 192, 160, 190, 0, 0, 42, 62, 85, 213, 180, 190, 3, 0, 0, 86, 62, 0, 160, 12, 191, 0, 0, 78, 62, 171, 42, 232, 190, 171, 170, 86, 62, 171, 138, 0, 191, 3, 0, 128, 68, 62, 0, 64, 40, 191, 85, 85, 85, 62, 85, 181, 24, 191, 0, 128, 79, 62, 171, 234, 33, 191, 3, 0, 0, 52, 62, 0, 224, 54, 191, 0, 128, 57, 62, 85, 149, 46, 191, 0, 0, 52, 62, 85, 117, 51, 191, 3, 0, 128, 72, 62, 0, 64, 59, 191, 0, 0, 52, 62, 171, 74, 58, 191, 85, 213, 58, 62, 0, 192, 59, 191, 3, 0, 128, 106, 62, 0, 160, 48, 191, 171, 42, 86, 62, 0, 192, 58, 191, 0, 128, 97, 62, 85, 53, 55, 191, 3, 0, 128, 122, 62, 0, 128, 21, 191, 0, 128, 115, 62, 171, 10, 42, 191, 85, 213, 120, 62, 0, 0, 33, 191, 3, 0, 0, 115, 62, 0, 192, 230, 190, 171, 42, 124, 62, 0, 0, 10, 191, 171, 170, 121, 62, 0, 64, 253, 190, 3, 0, 128, 50, 62, 0, 64, 159, 190, 85, 85, 108, 62, 0, 64, 208, 190, 85, 213, 86, 62, 171, 106, 184, 190, 3, 0, 0, 160, 61, 0, 128, 56, 190, 171, 42, 14, 62, 85, 21, 134, 190, 171, 170, 218, 61, 0, 128, 95, 190, 3, 0, 0, 184, 60, 0, 0, 194, 189, 171, 170, 74, 61, 0, 128, 17, 190, 85, 85, 253, 60, 171, 170, 232, 189, 3, 0, 0, 0, 0, 0, 0, 0, 0, 85, 85, 101, 60, 85, 85, 155, 189, 85, 85, 213, 59, 85, 85, 53, 189, 2, 0, 0, 0, 188, 0, 0, 0, 0, 2, 0, 0, 0, 188, 0, 0, 128, 190, 2, 0, 0, 0, 0, 0, 0, 128, 190, 88, 0, 0, 0, 0, 224, 3, 63, 0, 0, 0, 0, 33, 0, 0, 0, 1, 0, 192, 177, 62, 0, 0, 54, 62, 3, 0, 128, 209, 62, 0, 0, 29, 62, 85, 21, 188, 62, 0, 0, 54, 62, 171, 170, 198, 62, 171, 170, 45, 62, 3, 0, 0, 222, 62, 0, 0, 189, 61, 85, 85, 220, 62, 85, 85, 12, 62, 0, 128, 224, 62, 0, 0, 239, 61, 2, 0, 192, 198, 62, 0, 128, 4, 190, 3, 0, 64, 203, 62, 0, 128, 27, 190, 0, 64, 197, 62, 85, 213, 19, 190, 0, 192, 198, 62, 0, 128, 27, 190, 3, 0, 0, 222, 62, 0, 0, 235, 189, 85, 149, 207, 62, 171, 42, 27, 190, 85, 213, 213, 62, 0, 128, 14, 190, 3, 0, 64, 246, 62, 0, 0, 56, 188, 85, 85, 230, 62, 171, 170, 185, 189, 171, 106, 238, 62, 0, 0, 102, 189, 2, 0, 224, 3, 63, 0, 0, 212, 188, 3, 0, 0, 247, 62, 0, 0, 208, 189, 171, 10, 1, 63, 85, 85, 91, 189, 0, 128, 252, 62, 85, 85, 161, 189, 3, 0, 128, 230, 62, 0, 128, 36, 190, 0, 128, 241, 62, 85, 85, 255, 189, 0, 0, 236, 62, 85, 213, 19, 190, 3, 0, 192, 208, 62, 0, 0, 76, 190, 0, 0, 225, 62, 0, 128, 53, 190, 0, 192, 217, 62, 171, 170, 66, 190, 3, 0, 128, 176, 62, 0, 0, 90, 190, 0, 192, 199, 62, 85, 85, 85, 190, 0, 0, 189, 62, 0, 0, 90, 190, 3, 0, 192, 153, 62, 0, 0, 68, 190, 85, 85, 165, 62, 0, 0, 90, 190, 0, 192, 157, 62, 171, 170, 82, 190, 3, 0, 192, 150, 62, 0, 0, 17, 190, 0, 192, 149, 62, 171, 170, 53, 190, 0, 192, 148, 62, 171, 170, 36, 190, 2, 0, 0, 177, 62, 0, 0, 232, 61, 3, 0, 192, 174, 62, 0, 0, 8, 62, 0, 0, 178, 62, 85, 85, 251, 61, 0, 64, 177, 62, 85, 85, 4, 62, 3, 0, 64, 160, 62, 0, 128, 13, 62, 171, 106, 172, 62, 171, 170, 11, 62, 85, 149, 167, 62, 0, 128, 13, 62, 3, 0, 128, 124, 62, 0, 0, 255, 61, 171, 234, 145, 62, 0, 128, 13, 62, 85, 149, 134, 62, 85, 213, 8, 62, 3, 0, 0, 92, 62, 0, 0, 145, 61, 171, 42, 108, 62, 85, 85, 236, 61, 85, 85, 97, 62, 171, 170, 199, 61, 2, 0, 128, 34, 62, 0, 0, 84, 190, 2, 0, 0, 136, 61, 0, 0, 84, 190, 2, 0, 0, 2, 62, 0, 0, 192, 61, 3, 0, 0, 243, 61, 0, 0, 239, 61, 0, 0, 5, 62, 85, 85, 223, 61, 171, 42, 2, 62, 0, 0, 239, 61, 3, 0, 0, 169, 61, 0, 0, 164, 61, 0, 0, 227, 61, 0, 0, 239, 61, 85, 85, 202, 61, 0, 0, 214, 61, 3, 0, 0, 12, 61, 0, 0, 200, 188, 171, 170, 135, 61, 85, 85, 101, 61, 85, 85, 77, 61, 85, 85, 173, 60, 2, 0, 0, 0, 0, 0, 0, 32, 188, 3, 0, 0, 6, 61, 0, 0, 135, 61, 85, 85, 53, 60, 171, 170, 146, 60, 0, 0, 180, 60, 171, 170, 48, 61, 3, 0, 0, 133, 61, 0, 128, 0, 62, 0, 0, 50, 61, 85, 85, 182, 61, 0, 0, 94, 61, 0, 0, 223, 61, 3, 0, 0, 220, 61, 0, 0, 40, 62, 0, 0, 155, 61, 0, 128, 17, 62, 0, 0, 184, 61, 171, 170, 30, 62, 3, 0, 128, 46, 62, 0, 0, 54, 62, 0, 0, 0, 62, 85, 85, 49, 62, 0, 128, 21, 62, 0, 0, 54, 62, 3, 0, 128, 94, 62, 0, 128, 13, 62, 0, 128, 75, 62, 0, 0, 54, 62, 0, 128, 91, 62, 0, 128, 40, 62, 3, 0, 128, 141, 62, 0, 0, 45, 62, 0, 128, 114, 62, 0, 128, 28, 62, 85, 85, 131, 62, 0, 0, 39, 62, 3, 0, 192, 177, 62, 0, 0, 54, 62, 85, 213, 151, 62, 0, 0, 51, 62, 171, 234, 163, 62, 0, 0, 54, 62, 89, 0, 0, 0, 0, 192, 156, 63, 0, 0, 0, 0, 116, 0, 0, 0, 1, 0, 96, 129, 63, 0, 0, 145, 61, 2, 0, 0, 123, 63, 0, 0, 168, 189, 3, 0, 224, 121, 63, 0, 0, 253, 189, 0, 64, 122, 63, 85, 85, 199, 189, 0, 224, 121, 63, 171, 170, 227, 189, 3, 0, 16, 129, 63, 0, 128, 47, 190, 0, 224, 121, 63, 171, 42, 31, 190, 0, 160, 124, 63, 0, 128, 47, 190, 3, 0, 96, 132, 63, 0, 0, 41, 190, 85, 37, 130, 63, 0, 128, 47, 190, 0, 64, 131, 63, 85, 85, 45, 190, 3, 0, 16, 136, 63, 0, 128, 19, 190, 171, 138, 133, 63, 171, 170, 36, 190, 85, 197, 134, 63, 0, 128, 29, 190, 3, 0, 208, 139, 63, 0, 0, 204, 189, 85, 101, 137, 63, 85, 213, 9, 190, 85, 165, 138, 63, 85, 85, 245, 189, 3, 0, 176, 142, 63, 0, 0, 232, 188, 85, 5, 141, 63, 85, 85, 163, 189, 171, 250, 141, 63, 85, 85, 101, 189, 3, 0, 64, 144, 63, 0, 0, 145, 61, 171, 186, 143, 63, 0, 0, 112, 60, 0, 64, 144, 63, 85, 85, 67, 61, 3, 0, 160, 138, 63, 0, 128, 13, 62, 0, 64, 144, 63, 0, 0, 237, 61, 0, 96, 142, 63, 0, 128, 13, 62, 3, 0, 48, 136, 63, 0, 0, 11, 62, 171, 202, 137, 63, 0, 128, 13, 62, 171, 250, 136, 63, 171, 170, 12, 62, 3, 0, 160, 133, 63, 0, 128, 1, 62, 0, 112, 135, 63, 85, 85, 9, 62, 85, 149, 134, 63, 171, 42, 6, 62, 3, 0, 16, 131, 63, 0, 0, 216, 61, 85, 181, 132, 63, 85, 85, 250, 61, 171, 218, 131, 63, 0, 0, 236, 61, 3, 0, 96, 129, 63, 0, 0, 145, 61, 0, 80, 130, 63, 171, 170, 196, 61, 0, 192, 129, 63, 0, 0, 173, 61, 1, 0, 192, 156, 63, 0, 0, 40, 61, 3, 0, 64, 156, 63, 0, 0, 0, 188, 0, 192, 156, 63, 0, 0, 208, 60, 85, 149, 156, 63, 85, 85, 21, 60, 3, 0, 208, 154, 63, 0, 0, 128, 189, 85, 245, 155, 63, 171, 170, 202, 188, 171, 122, 155, 63, 0, 0, 48, 189, 3, 0, 240, 151, 63, 0, 0, 242, 189, 85, 37, 154, 63, 171, 170, 168, 189, 0, 48, 153, 63, 171, 170, 206, 189, 3, 0, 128, 147, 63, 0, 128, 41, 190, 0, 176, 150, 63, 171, 170, 10, 190, 85, 53, 149, 63, 85, 213, 26, 190, 3, 0, 32, 141, 63, 0, 0, 77, 190, 171, 202, 145, 63, 0, 128, 56, 190, 171, 170, 143, 63, 85, 85, 68, 190, 3, 0, 176, 132, 63, 0, 0, 90, 190, 85, 149, 138, 63, 171, 170, 85, 190, 85, 197, 135, 63, 0, 0, 90, 190, 3, 0, 0, 118, 63, 0, 128, 56, 190, 0, 208, 128, 63, 0, 0, 90, 190, 171, 42, 123, 63, 85, 213, 78, 190, 2, 0, 224, 109, 63, 0, 64, 172, 190, 2, 0, 176, 128, 63, 0, 64, 172, 190, 2, 0, 176, 128, 63, 0, 0, 192, 190, 2, 0, 0, 66, 63, 0, 0, 192, 190, 2, 0, 0, 66, 63, 0, 64, 172, 190, 2, 0, 64, 86, 63, 0, 64, 172, 190, 2, 0, 64, 108, 63, 0, 0, 192, 61, 3, 0, 32, 106, 63, 0, 0, 239, 61, 0, 0, 109, 63, 85, 85, 223, 61, 171, 74, 108, 63, 0, 0, 239, 61, 3, 0, 96, 99, 63, 0, 0, 193, 61, 0, 160, 104, 63, 0, 0, 239, 61, 0, 96, 102, 63, 171, 170, 223, 61, 3, 0, 32, 90, 63, 0, 0, 248, 60, 85, 117, 96, 63, 85, 85, 162, 61, 0, 96, 93, 63, 85, 85, 109, 61, 3, 0, 224, 88, 63, 0, 0, 152, 188, 171, 10, 90, 63, 85, 85, 101, 60, 0, 160, 89, 63, 85, 85, 21, 187, 3, 0, 160, 85, 63, 0, 0, 147, 189, 85, 53, 88, 63, 0, 0, 16, 189, 0, 32, 87, 63, 171, 170, 88, 189, 3, 0, 160, 79, 63, 0, 0, 255, 189, 85, 53, 84, 63, 171, 170, 185, 189, 85, 53, 82, 63, 171, 170, 221, 189, 3, 0, 192, 70, 63, 0, 128, 45, 190, 171, 10, 77, 63, 171, 42, 16, 190, 85, 21, 74, 63, 0, 128, 31, 190, 3, 0, 64, 58, 63, 0, 0, 78, 190, 171, 106, 67, 63, 0, 128, 59, 190, 0, 64, 63, 63, 85, 85, 70, 190, 3, 0, 0, 42, 63, 0, 0, 90, 190, 0, 64, 53, 63, 0, 0, 86, 190, 85, 213, 47, 63, 0, 0, 90, 190, 3, 0, 160, 22, 63, 0, 128, 56, 190, 85, 85, 34, 63, 0, 0, 90, 190, 0, 224, 27, 63, 85, 213, 78, 190, 2, 0, 128, 14, 63, 0, 64, 172, 190, 2, 0, 32, 34, 63, 0, 64, 172, 190, 2, 0, 32, 34, 63, 0, 0, 192, 190, 2, 0, 64, 197, 62, 0, 0, 192, 190, 2, 0, 64, 197, 62, 0, 64, 172, 190, 2, 0, 192, 237, 62, 0, 64, 172, 190, 2, 0, 0, 13, 63, 0, 0, 192, 61, 3, 0, 192, 10, 63, 0, 0, 239, 61, 0, 192, 13, 63, 85, 85, 223, 61, 0, 0, 13, 63, 0, 0, 239, 61, 3, 0, 64, 2, 63, 0, 0, 172, 61, 0, 0, 9, 63, 0, 0, 239, 61, 171, 42, 6, 63, 171, 170, 216, 61, 3, 0, 128, 237, 62, 0, 0, 16, 188, 85, 213, 252, 62, 0, 0, 128, 61, 171, 42, 245, 62, 85, 85, 1, 61, 3, 0, 64, 231, 62, 0, 0, 131, 189, 0, 0, 236, 62, 171, 170, 226, 188, 171, 234, 233, 62, 171, 170, 60, 189, 3, 0, 192, 219, 62, 0, 0, 243, 189, 85, 149, 228, 62, 171, 170, 167, 189, 0, 192, 224, 62, 0, 0, 205, 189, 3, 0, 0, 202, 62, 0, 0, 43, 190, 0, 192, 214, 62, 0, 128, 12, 190, 85, 213, 208, 62, 0, 0, 29, 190, 3, 0, 128, 176, 62, 0, 0, 77, 190, 85, 85, 195, 62, 0, 0, 57, 190, 85, 213, 186, 62, 85, 85, 68, 190, 3, 0, 192, 142, 62, 0, 0, 90, 190, 85, 85, 166, 62, 171, 170, 85, 190, 85, 21, 155, 62, 0, 0, 90, 190, 3, 0, 0, 80, 62, 0, 128, 56, 190, 171, 42, 127, 62, 0, 0, 90, 190, 85, 85, 101, 62, 85, 213, 78, 190, 2, 0, 128, 48, 62, 0, 64, 172, 190, 2, 0, 0, 126, 62, 0, 64, 172, 190, 2, 0, 0, 126, 62, 0, 0, 192, 190, 2, 0, 0, 0, 0, 0, 0, 192, 190, 2, 0, 0, 0, 0, 0, 64, 172, 190, 2, 0, 0, 163, 61, 0, 64, 172, 190, 2, 0, 0, 42, 62, 0, 0, 192, 61, 3, 0, 128, 33, 62, 0, 0, 239, 61, 0, 0, 45, 62, 85, 85, 223, 61, 171, 42, 42, 62, 0, 0, 239, 61, 3, 0, 0, 249, 61, 0, 0, 164, 61, 0, 128, 25, 62, 0, 0, 239, 61, 171, 42, 13, 62, 0, 0, 214, 61, 3, 0, 0, 150, 61, 0, 0, 200, 188, 171, 170, 215, 61, 85, 85, 101, 61, 171, 170, 182, 61, 85, 85, 173, 60, 2, 0, 0, 32, 61, 0, 0, 32, 188, 3, 0, 0, 147, 61, 0, 0, 135, 61, 85, 85, 77, 61, 171, 170, 146, 60, 0, 0, 122, 61, 171, 170, 48, 61, 3, 0, 0, 213, 61, 0, 128, 0, 62, 0, 0, 169, 61, 85, 85, 182, 61, 0, 0, 191, 61, 0, 0, 223, 61, 3, 0, 0, 22, 62, 0, 0, 40, 62, 0, 0, 235, 61, 0, 128, 17, 62, 0, 0, 4, 62, 171, 170, 30, 62, 3, 0, 128, 86, 62, 0, 0, 54, 62, 0, 0, 40, 62, 85, 85, 49, 62, 0, 128, 61, 62, 0, 0, 54, 62, 3, 0, 64, 131, 62, 0, 128, 13, 62, 0, 128, 115, 62, 0, 0, 54, 62, 0, 192, 129, 62, 0, 128, 40, 62, 3, 0, 128, 158, 62, 0, 128, 45, 62, 171, 234, 141, 62, 171, 42, 29, 62, 0, 0, 151, 62, 85, 213, 39, 62, 3, 0, 0, 189, 62, 0, 0, 54, 62, 0, 0, 166, 62, 171, 42, 51, 62, 171, 42, 176, 62, 0, 0, 54, 62, 3, 0, 0, 222, 62, 0, 128, 27, 62, 0, 0, 203, 62, 0, 0, 54, 62, 0, 0, 214, 62, 171, 42, 45, 62, 3, 0, 192, 237, 62, 0, 0, 170, 61, 0, 0, 230, 62, 171, 42, 10, 62, 0, 64, 235, 62, 85, 85, 229, 61, 3, 0, 64, 4, 63, 0, 0, 30, 62, 0, 192, 245, 62, 0, 0, 236, 61, 171, 170, 254, 62, 85, 85, 14, 62, 3, 0, 64, 24, 63, 0, 0, 54, 62, 171, 42, 9, 63, 0, 0, 46, 62, 85, 213, 15, 63, 0, 0, 54, 62, 3, 0, 32, 36, 63, 0, 128, 13, 62, 0, 128, 31, 63, 0, 0, 54, 62, 85, 117, 35, 63, 0, 128, 40, 62, 3, 0, 192, 49, 63, 0, 128, 45, 62, 85, 117, 41, 63, 171, 42, 29, 62, 0, 0, 46, 63, 85, 213, 39, 62, 3, 0, 32, 65, 63, 0, 0, 54, 62, 85, 149, 53, 63, 171, 42, 51, 62, 85, 181, 58, 63, 0, 0, 54, 62, 3, 0, 128, 88, 63, 0, 0, 205, 61, 85, 53, 77, 63, 0, 0, 54, 62, 0, 0, 85, 63, 0, 128, 27, 62, 3, 0, 224, 100, 63, 0, 0, 34, 62, 85, 21, 92, 63, 171, 42, 1, 62, 85, 53, 96, 63, 0, 0, 21, 62, 3, 0, 128, 119, 63, 0, 0, 54, 62, 0, 160, 105, 63, 85, 85, 47, 62, 85, 213, 111, 63, 0, 0, 54, 62, 3, 0, 176, 129, 63, 0, 128, 13, 62, 85, 213, 126, 63, 0, 0, 54, 62, 85, 101, 129, 63, 0, 128, 40, 62, 3, 0, 144, 136, 63, 0, 128, 45, 62, 171, 90, 132, 63, 171, 42, 29, 62, 85, 165, 134, 63, 85, 213, 39, 62, 3, 0, 64, 144, 63, 0, 0, 54, 62, 171, 122, 138, 63, 171, 42, 51, 62, 171, 10, 141, 63, 0, 0, 54, 62, 3, 0, 16, 150, 63, 0, 128, 42, 62, 85, 117, 146, 63, 0, 0, 54, 62, 85, 101, 148, 63, 171, 42, 50, 62, 3, 0, 0, 154, 63, 0, 128, 11, 62, 171, 186, 151, 63, 171, 42, 35, 62, 171, 10, 153, 63, 85, 213, 24, 62, 3, 0, 16, 156, 63, 0, 0, 191, 61, 85, 245, 154, 63, 0, 0, 253, 61, 85, 165, 155, 63, 171, 170, 223, 61, 3, 0, 192, 156, 63, 0, 0, 40, 61, 85, 133, 156, 63, 85, 85, 158, 61, 0, 192, 156, 63, 85, 85, 117, 61, 1, 0, 128, 35, 63, 0, 0, 145, 61, 2, 0, 160, 27, 63, 0, 0, 168, 189, 3, 0, 160, 26, 63, 0, 0, 253, 189, 85, 245, 26, 63, 85, 85, 199, 189, 0, 160, 26, 63, 171, 170, 227, 189, 3, 0, 224, 34, 63, 0, 128, 47, 190, 0, 160, 26, 63, 171, 42, 31, 190, 0, 96, 29, 63, 0, 128, 47, 190, 3, 0, 96, 41, 63, 0, 0, 41, 190, 85, 245, 36, 63, 0, 128, 47, 190, 0, 32, 39, 63, 85, 85, 45, 190, 3, 0, 224, 48, 63, 0, 128, 19, 190, 85, 181, 43, 63, 171, 170, 36, 190, 85, 53, 46, 63, 0, 128, 29, 190, 3, 0, 96, 56, 63, 0, 0, 204, 189, 171, 138, 51, 63, 85, 213, 9, 190, 171, 10, 54, 63, 85, 85, 245, 189, 3, 0, 0, 62, 63, 0, 0, 232, 188, 85, 181, 58, 63, 85, 85, 163, 189, 85, 149, 60, 63, 85, 85, 101, 189, 3, 0, 32, 65, 63, 0, 0, 145, 61, 85, 21, 64, 63, 0, 0, 112, 60, 0, 32, 65, 63, 85, 85, 67, 61, 3, 0, 224, 53, 63, 0, 128, 13, 62, 0, 32, 65, 63, 0, 0, 237, 61, 0, 96, 61, 63, 0, 128, 13, 62, 3, 0, 0, 49, 63, 0, 0, 11, 62, 85, 53, 52, 63, 0, 128, 13, 62, 85, 149, 50, 63, 171, 170, 12, 62, 3, 0, 224, 43, 63, 0, 128, 1, 62, 0, 128, 47, 63, 85, 85, 9, 62, 171, 202, 45, 63, 171, 42, 6, 62, 3, 0, 224, 38, 63, 0, 0, 216, 61, 171, 10, 42, 63, 85, 85, 250, 61, 0, 96, 40, 63, 0, 0, 236, 61, 3, 0, 128, 35, 63, 0, 0, 145, 61, 0, 96, 37, 63, 171, 170, 196, 61, 0, 64, 36, 63, 0, 0, 173, 61, 1, 0, 0, 130, 62, 0, 0, 145, 61, 2, 0, 0, 101, 62, 0, 0, 168, 189, 3, 0, 0, 96, 62, 0, 0, 253, 189, 171, 170, 97, 62, 85, 85, 199, 189, 0, 0, 96, 62, 171, 170, 227, 189, 3, 0, 192, 128, 62, 0, 128, 47, 190, 0, 0, 96, 62, 171, 42, 31, 190, 171, 42, 107, 62, 0, 128, 47, 190, 3, 0, 0, 159, 62, 0, 0, 14, 190, 171, 106, 138, 62, 0, 128, 47, 190, 0, 128, 148, 62, 85, 85, 36, 190, 3, 0, 192, 182, 62, 0, 0, 232, 188, 171, 170, 169, 62, 0, 0, 240, 189, 85, 149, 177, 62, 171, 170, 164, 189, 3, 0, 0, 189, 62, 0, 0, 145, 61, 171, 234, 186, 62, 0, 0, 112, 60, 0, 0, 189, 62, 85, 85, 67, 61, 3, 0, 0, 167, 62, 0, 128, 13, 62, 0, 0, 189, 62, 0, 0, 237, 61, 171, 170, 181, 62, 0, 128, 13, 62, 3, 0, 0, 157, 62, 0, 0, 11, 62, 171, 170, 163, 62, 0, 128, 13, 62, 85, 85, 160, 62, 171, 170, 12, 62, 3, 0, 128, 146, 62, 0, 128, 1, 62, 85, 213, 153, 62, 85, 85, 9, 62, 85, 85, 150, 62, 171, 42, 6, 62, 3, 0, 128, 136, 62, 0, 0, 216, 61, 85, 213, 142, 62, 85, 85, 250, 61, 0, 128, 139, 62, 0, 0, 236, 61, 3, 0, 0, 130, 62, 0, 0, 145, 61, 171, 170, 133, 62, 171, 170, 196, 61, 0, 128, 131, 62, 0, 0, 173, 61, 90, 0, 0, 0, 0, 32, 90, 63, 0, 0, 0, 0, 79, 0, 0, 0, 1, 0, 0, 130, 62, 0, 0, 145, 61, 2, 0, 0, 101, 62, 0, 0, 168, 189, 3, 0, 0, 96, 62, 0, 0, 253, 189, 171, 170, 97, 62, 85, 85, 199, 189, 0, 0, 96, 62, 171, 170, 227, 189, 3, 0, 192, 128, 62, 0, 128, 47, 190, 0, 0, 96, 62, 171, 42, 31, 190, 171, 42, 107, 62, 0, 128, 47, 190, 3, 0, 0, 159, 62, 0, 0, 14, 190, 171, 106, 138, 62, 0, 128, 47, 190, 0, 128, 148, 62, 85, 85, 36, 190, 3, 0, 192, 182, 62, 0, 0, 232, 188, 171, 170, 169, 62, 0, 0, 240, 189, 85, 149, 177, 62, 171, 170, 164, 189, 3, 0, 0, 189, 62, 0, 0, 145, 61, 171, 234, 186, 62, 0, 0, 112, 60, 0, 0, 189, 62, 85, 85, 67, 61, 3, 0, 0, 167, 62, 0, 128, 13, 62, 0, 0, 189, 62, 0, 0, 237, 61, 171, 170, 181, 62, 0, 128, 13, 62, 3, 0, 0, 157, 62, 0, 0, 11, 62, 171, 170, 163, 62, 0, 128, 13, 62, 85, 85, 160, 62, 171, 170, 12, 62, 3, 0, 128, 146, 62, 0, 128, 1, 62, 85, 213, 153, 62, 85, 85, 9, 62, 85, 85, 150, 62, 171, 42, 6, 62, 3, 0, 128, 136, 62, 0, 0, 216, 61, 85, 213, 142, 62, 85, 85, 250, 61, 0, 128, 139, 62, 0, 0, 236, 61, 3, 0, 0, 130, 62, 0, 0, 145, 61, 171, 170, 133, 62, 171, 170, 196, 61, 0, 128, 131, 62, 0, 0, 173, 61, 1, 0, 128, 35, 63, 0, 0, 145, 61, 2, 0, 160, 27, 63, 0, 0, 168, 189, 3, 0, 160, 26, 63, 0, 0, 253, 189, 85, 245, 26, 63, 85, 85, 199, 189, 0, 160, 26, 63, 171, 170, 227, 189, 3, 0, 224, 34, 63, 0, 128, 47, 190, 0, 160, 26, 63, 171, 42, 31, 190, 0, 96, 29, 63, 0, 128, 47, 190, 3, 0, 96, 41, 63, 0, 0, 41, 190, 85, 245, 36, 63, 0, 128, 47, 190, 0, 32, 39, 63, 85, 85, 45, 190, 3, 0, 224, 48, 63, 0, 128, 19, 190, 85, 181, 43, 63, 171, 170, 36, 190, 85, 53, 46, 63, 0, 128, 29, 190, 3, 0, 96, 56, 63, 0, 0, 204, 189, 171, 138, 51, 63, 85, 213, 9, 190, 171, 10, 54, 63, 85, 85, 245, 189, 3, 0, 0, 62, 63, 0, 0, 232, 188, 85, 181, 58, 63, 85, 85, 163, 189, 85, 149, 60, 63, 85, 85, 101, 189, 3, 0, 32, 65, 63, 0, 0, 145, 61, 85, 21, 64, 63, 0, 0, 112, 60, 0, 32, 65, 63, 85, 85, 67, 61, 3, 0, 224, 53, 63, 0, 128, 13, 62, 0, 32, 65, 63, 0, 0, 237, 61, 0, 96, 61, 63, 0, 128, 13, 62, 3, 0, 0, 49, 63, 0, 0, 11, 62, 85, 53, 52, 63, 0, 128, 13, 62, 85, 149, 50, 63, 171, 170, 12, 62, 3, 0, 224, 43, 63, 0, 128, 1, 62, 0, 128, 47, 63, 85, 85, 9, 62, 171, 202, 45, 63, 171, 42, 6, 62, 3, 0, 224, 38, 63, 0, 0, 216, 61, 171, 10, 42, 63, 85, 85, 250, 61, 0, 96, 40, 63, 0, 0, 236, 61, 3, 0, 128, 35, 63, 0, 0, 145, 61, 0, 96, 37, 63, 171, 170, 196, 61, 0, 64, 36, 63, 0, 0, 173, 61, 1, 0, 32, 90, 63, 0, 0, 40, 61, 3, 0, 32, 89, 63, 0, 0, 0, 188, 0, 32, 90, 63, 0, 0, 208, 60, 171, 202, 89, 63, 85, 85, 21, 60, 3, 0, 64, 86, 63, 0, 0, 128, 189, 171, 138, 88, 63, 171, 170, 202, 188, 85, 149, 87, 63, 0, 0, 48, 189, 3, 0, 128, 80, 63, 0, 0, 242, 189, 171, 234, 84, 63, 171, 170, 168, 189, 0, 0, 83, 63, 171, 170, 206, 189, 3, 0, 160, 71, 63, 0, 128, 41, 190, 0, 0, 78, 63, 171, 170, 10, 190, 171, 10, 75, 63, 85, 213, 26, 190, 3, 0, 224, 58, 63, 0, 0, 77, 190, 171, 74, 68, 63, 0, 128, 56, 190, 171, 10, 64, 63, 85, 85, 68, 190, 3, 0, 0, 42, 63, 0, 0, 90, 190, 171, 202, 53, 63, 171, 170, 85, 190, 171, 42, 48, 63, 0, 0, 90, 190, 3, 0, 160, 22, 63, 0, 128, 56, 190, 85, 85, 34, 63, 0, 0, 90, 190, 0, 224, 27, 63, 85, 213, 78, 190, 2, 0, 128, 14, 63, 0, 64, 172, 190, 2, 0, 32, 34, 63, 0, 64, 172, 190, 2, 0, 32, 34, 63, 0, 0, 192, 190, 2, 0, 64, 197, 62, 0, 0, 192, 190, 2, 0, 64, 197, 62, 0, 64, 172, 190, 2, 0, 192, 237, 62, 0, 64, 172, 190, 2, 0, 0, 13, 63, 0, 0, 192, 61, 3, 0, 192, 10, 63, 0, 0, 239, 61, 0, 192, 13, 63, 85, 85, 223, 61, 0, 0, 13, 63, 0, 0, 239, 61, 3, 0, 64, 2, 63, 0, 0, 172, 61, 0, 0, 9, 63, 0, 0, 239, 61, 171, 42, 6, 63, 171, 170, 216, 61, 3, 0, 128, 237, 62, 0, 0, 16, 188, 85, 213, 252, 62, 0, 0, 128, 61, 171, 42, 245, 62, 85, 85, 1, 61, 3, 0, 64, 231, 62, 0, 0, 131, 189, 0, 0, 236, 62, 171, 170, 226, 188, 171, 234, 233, 62, 171, 170, 60, 189, 3, 0, 192, 219, 62, 0, 0, 243, 189, 85, 149, 228, 62, 171, 170, 167, 189, 0, 192, 224, 62, 0, 0, 205, 189, 3, 0, 0, 202, 62, 0, 0, 43, 190, 0, 192, 214, 62, 0, 128, 12, 190, 85, 213, 208, 62, 0, 0, 29, 190, 3, 0, 128, 176, 62, 0, 0, 77, 190, 85, 85, 195, 62, 0, 0, 57, 190, 85, 213, 186, 62, 85, 85, 68, 190, 3, 0, 192, 142, 62, 0, 0, 90, 190, 85, 85, 166, 62, 171, 170, 85, 190, 85, 21, 155, 62, 0, 0, 90, 190, 3, 0, 0, 80, 62, 0, 128, 56, 190, 171, 42, 127, 62, 0, 0, 90, 190, 85, 85, 101, 62, 85, 213, 78, 190, 2, 0, 128, 48, 62, 0, 64, 172, 190, 2, 0, 0, 126, 62, 0, 64, 172, 190, 2, 0, 0, 126, 62, 0, 0, 192, 190, 2, 0, 0, 0, 0, 0, 0, 192, 190, 2, 0, 0, 0, 0, 0, 64, 172, 190, 2, 0, 0, 163, 61, 0, 64, 172, 190, 2, 0, 0, 42, 62, 0, 0, 192, 61, 3, 0, 128, 33, 62, 0, 0, 239, 61, 0, 0, 45, 62, 85, 85, 223, 61, 171, 42, 42, 62, 0, 0, 239, 61, 3, 0, 0, 249, 61, 0, 0, 164, 61, 0, 128, 25, 62, 0, 0, 239, 61, 171, 42, 13, 62, 0, 0, 214, 61, 3, 0, 0, 150, 61, 0, 0, 200, 188, 171, 170, 215, 61, 85, 85, 101, 61, 171, 170, 182, 61, 85, 85, 173, 60, 2, 0, 0, 32, 61, 0, 0, 32, 188, 3, 0, 0, 147, 61, 0, 0, 135, 61, 85, 85, 77, 61, 171, 170, 146, 60, 0, 0, 122, 61, 171, 170, 48, 61, 3, 0, 0, 213, 61, 0, 128, 0, 62, 0, 0, 169, 61, 85, 85, 182, 61, 0, 0, 191, 61, 0, 0, 223, 61, 3, 0, 0, 22, 62, 0, 0, 40, 62, 0, 0, 235, 61, 0, 128, 17, 62, 0, 0, 4, 62, 171, 170, 30, 62, 3, 0, 128, 86, 62, 0, 0, 54, 62, 0, 0, 40, 62, 85, 85, 49, 62, 0, 128, 61, 62, 0, 0, 54, 62, 3, 0, 64, 131, 62, 0, 128, 13, 62, 0, 128, 115, 62, 0, 0, 54, 62, 0, 192, 129, 62, 0, 128, 40, 62, 3, 0, 128, 158, 62, 0, 128, 45, 62, 171, 234, 141, 62, 171, 42, 29, 62, 0, 0, 151, 62, 85, 213, 39, 62, 3, 0, 0, 189, 62, 0, 0, 54, 62, 0, 0, 166, 62, 171, 42, 51, 62, 171, 42, 176, 62, 0, 0, 54, 62, 3, 0, 0, 222, 62, 0, 128, 27, 62, 0, 0, 203, 62, 0, 0, 54, 62, 0, 0, 214, 62, 171, 42, 45, 62, 3, 0, 192, 237, 62, 0, 0, 170, 61, 0, 0, 230, 62, 171, 42, 10, 62, 0, 64, 235, 62, 85, 85, 229, 61, 3, 0, 64, 4, 63, 0, 0, 30, 62, 0, 192, 245, 62, 0, 0, 236, 61, 171, 170, 254, 62, 85, 85, 14, 62, 3, 0, 64, 24, 63, 0, 0, 54, 62, 171, 42, 9, 63, 0, 0, 46, 62, 85, 213, 15, 63, 0, 0, 54, 62, 3, 0, 32, 36, 63, 0, 128, 13, 62, 0, 128, 31, 63, 0, 0, 54, 62, 85, 117, 35, 63, 0, 128, 40, 62, 3, 0, 192, 49, 63, 0, 128, 45, 62, 85, 117, 41, 63, 171, 42, 29, 62, 0, 0, 46, 63, 85, 213, 39, 62, 3, 0, 32, 65, 63, 0, 0, 54, 62, 85, 149, 53, 63, 171, 42, 51, 62, 85, 181, 58, 63, 0, 0, 54, 62, 3, 0, 192, 76, 63, 0, 128, 42, 62, 171, 138, 69, 63, 0, 0, 54, 62, 171, 106, 73, 63, 171, 42, 50, 62, 3, 0, 160, 84, 63, 0, 128, 11, 62, 85, 21, 80, 63, 171, 42, 35, 62, 85, 181, 82, 63, 85, 213, 24, 62, 3, 0, 192, 88, 63, 0, 0, 191, 61, 171, 138, 86, 63, 0, 0, 253, 61, 171, 234, 87, 63, 171, 170, 223, 61, 3, 0, 32, 90, 63, 0, 0, 40, 61, 171, 170, 89, 63, 85, 85, 158, 61, 0, 32, 90, 63, 85, 85, 117, 61, 97, 0, 0, 0, 0, 0, 239, 62, 0, 0, 0, 0, 44, 0, 0, 0, 1, 0, 0, 239, 62, 0, 0, 40, 61, 3, 0, 0, 237, 62, 0, 0, 0, 188, 0, 0, 239, 62, 0, 0, 208, 60, 85, 85, 238, 62, 85, 85, 21, 60, 3, 0, 64, 231, 62, 0, 0, 128, 189, 85, 213, 235, 62, 171, 170, 202, 188, 171, 234, 233, 62, 0, 0, 48, 189, 3, 0, 192, 219, 62, 0, 0, 242, 189, 85, 149, 228, 62, 171, 170, 168, 189, 0, 192, 224, 62, 171, 170, 206, 189, 3, 0, 0, 202, 62, 0, 128, 41, 190, 0, 192, 214, 62, 171, 170, 10, 190, 85, 213, 208, 62, 85, 213, 26, 190, 3, 0, 128, 176, 62, 0, 0, 77, 190, 85, 85, 195, 62, 0, 128, 56, 190, 85, 213, 186, 62, 85, 85, 68, 190, 3, 0, 192, 142, 62, 0, 0, 90, 190, 85, 85, 166, 62, 171, 170, 85, 190, 85, 21, 155, 62, 0, 0, 90, 190, 3, 0, 0, 80, 62, 0, 128, 56, 190, 85, 213, 126, 62, 0, 0, 90, 190, 0, 0, 101, 62, 85, 213, 78, 190, 2, 0, 128, 47, 62, 0, 64, 172, 190, 2, 0, 0, 126, 62, 0, 64, 172, 190, 2, 0, 0, 126, 62, 0, 0, 192, 190, 2, 0, 0, 0, 0, 0, 0, 192, 190, 2, 0, 0, 0, 0, 0, 64, 172, 190, 2, 0, 0, 163, 61, 0, 64, 172, 190, 2, 0, 128, 41, 62, 0, 0, 192, 61, 3, 0, 128, 32, 62, 0, 0, 239, 61, 0, 128, 44, 62, 85, 85, 223, 61, 0, 128, 41, 62, 0, 0, 239, 61, 3, 0, 0, 248, 61, 0, 0, 164, 61, 85, 213, 24, 62, 0, 0, 239, 61, 171, 170, 12, 62, 0, 0, 214, 61, 3, 0, 0, 149, 61, 0, 0, 200, 188, 171, 170, 214, 61, 85, 85, 101, 61, 171, 170, 181, 61, 85, 85, 173, 60, 2, 0, 0, 30, 61, 0, 0, 32, 188, 3, 0, 0, 146, 61, 0, 0, 135, 61, 171, 170, 76, 61, 171, 170, 146, 60, 85, 85, 121, 61, 171, 170, 48, 61, 3, 0, 0, 212, 61, 0, 128, 0, 62, 0, 0, 168, 61, 85, 85, 182, 61, 0, 0, 190, 61, 0, 0, 223, 61, 3, 0, 128, 21, 62, 0, 0, 40, 62, 171, 170, 234, 61, 0, 128, 17, 62, 85, 213, 3, 62, 171, 170, 30, 62, 3, 0, 128, 86, 62, 0, 0, 54, 62, 0, 128, 39, 62, 85, 85, 49, 62, 171, 42, 61, 62, 0, 0, 54, 62, 3, 0, 0, 131, 62, 0, 128, 13, 62, 0, 128, 115, 62, 0, 0, 54, 62, 171, 170, 129, 62, 0, 128, 40, 62, 3, 0, 64, 158, 62, 0, 128, 45, 62, 171, 170, 141, 62, 171, 42, 29, 62, 0, 192, 150, 62, 85, 213, 39, 62, 3, 0, 0, 189, 62, 0, 0, 54, 62, 171, 234, 165, 62, 171, 42, 51, 62, 171, 42, 176, 62, 0, 0, 54, 62, 3, 0, 64, 212, 62, 0, 128, 42, 62, 85, 213, 197, 62, 0, 0, 54, 62, 85, 149, 205, 62, 171, 42, 50, 62, 3, 0, 0, 228, 62, 0, 128, 11, 62, 171, 234, 218, 62, 171, 42, 35, 62, 171, 42, 224, 62, 85, 213, 24, 62, 3, 0, 64, 236, 62, 0, 0, 191, 61, 85, 213, 231, 62, 0, 0, 253, 61, 85, 149, 234, 62, 171, 170, 223, 61, 3, 0, 0, 239, 62, 0, 0, 40, 61, 85, 21, 238, 62, 85, 85, 158, 61, 0, 0, 239, 62, 85, 85, 117, 61, 1, 0, 192, 129, 62, 0, 0, 145, 61, 2, 0, 0, 100, 62, 0, 0, 168, 189, 3, 0, 0, 96, 62, 0, 0, 253, 189, 85, 85, 97, 62, 85, 85, 199, 189, 0, 0, 96, 62, 171, 170, 227, 189, 3, 0, 128, 128, 62, 0, 128, 47, 190, 0, 0, 96, 62, 171, 42, 31, 190, 0, 0, 107, 62, 0, 128, 47, 190, 3, 0, 128, 141, 62, 0, 0, 41, 190, 171, 170, 132, 62, 0, 128, 47, 190, 0, 0, 137, 62, 85, 85, 45, 190, 3, 0, 128, 156, 62, 0, 128, 19, 190, 171, 42, 146, 62, 171, 170, 36, 190, 171, 42, 151, 62, 0, 128, 29, 190, 3, 0, 128, 171, 62, 0, 0, 204, 189, 85, 213, 161, 62, 85, 213, 9, 190, 85, 213, 166, 62, 85, 85, 245, 189, 3, 0, 192, 182, 62, 0, 0, 232, 188, 171, 42, 176, 62, 85, 85, 163, 189, 171, 234, 179, 62, 85, 85, 101, 189, 3, 0, 0, 189, 62, 0, 0, 145, 61, 171, 234, 186, 62, 0, 0, 112, 60, 0, 0, 189, 62, 85, 85, 67, 61, 3, 0, 128, 166, 62, 0, 128, 13, 62, 0, 0, 189, 62, 0, 0, 237, 61, 0, 128, 181, 62, 0, 128, 13, 62, 3, 0, 192, 156, 62, 0, 0, 11, 62, 171, 42, 163, 62, 0, 128, 13, 62, 171, 234, 159, 62, 171, 170, 12, 62, 3, 0, 128, 146, 62, 0, 128, 1, 62, 0, 192, 153, 62, 85, 85, 9, 62, 85, 85, 150, 62, 171, 42, 6, 62, 3, 0, 128, 136, 62, 0, 0, 216, 61, 85, 213, 142, 62, 85, 85, 250, 61, 0, 128, 139, 62, 0, 0, 236, 61, 3, 0, 192, 129, 62, 0, 0, 145, 61, 0, 128, 133, 62, 171, 170, 196, 61, 0, 64, 131, 62, 0, 0, 173, 61, 98, 0, 0, 0, 0, 16, 136, 63, 0, 0, 0, 0, 90, 0, 0, 0, 1, 0, 128, 254, 62, 0, 0, 90, 190, 3, 0, 128, 231, 62, 0, 0, 68, 190, 171, 42, 243, 62, 0, 0, 90, 190, 0, 128, 235, 62, 171, 170, 82, 190, 3, 0, 128, 228, 62, 0, 0, 17, 190, 171, 170, 227, 62, 171, 170, 53, 190, 171, 170, 226, 62, 171, 170, 36, 190, 2, 0, 192, 254, 62, 0, 0, 232, 61, 3, 0, 128, 253, 62, 0, 0, 8, 62, 85, 149, 255, 62, 85, 85, 251, 61, 171, 42, 255, 62, 85, 85, 4, 62, 3, 0, 128, 242, 62, 0, 128, 13, 62, 85, 213, 251, 62, 171, 170, 11, 62, 171, 42, 248, 62, 0, 128, 13, 62, 3, 0, 64, 232, 62, 0, 0, 11, 62, 171, 42, 239, 62, 0, 128, 13, 62, 0, 192, 235, 62, 171, 170, 12, 62, 3, 0, 64, 221, 62, 0, 128, 1, 62, 171, 234, 228, 62, 85, 85, 9, 62, 0, 64, 225, 62, 171, 42, 6, 62, 3, 0, 128, 210, 62, 0, 0, 216, 61, 0, 64, 217, 62, 85, 85, 250, 61, 171, 170, 213, 62, 0, 0, 236, 61, 3, 0, 192, 203, 62, 0, 0, 145, 61, 0, 128, 207, 62, 171, 170, 196, 61, 0, 64, 205, 62, 0, 0, 173, 61, 2, 0, 0, 175, 62, 0, 0, 84, 190, 2, 0, 128, 127, 62, 0, 0, 84, 190, 2, 0, 0, 161, 62, 0, 0, 232, 61, 3, 0, 192, 159, 62, 0, 0, 8, 62, 85, 213, 161, 62, 85, 85, 251, 61, 171, 106, 161, 62, 85, 85, 4, 62, 3, 0, 192, 148, 62, 0, 128, 13, 62, 85, 21, 158, 62, 171, 170, 11, 62, 171, 106, 154, 62, 0, 128, 13, 62, 3, 0, 128, 138, 62, 0, 0, 11, 62, 171, 106, 145, 62, 0, 128, 13, 62, 0, 0, 142, 62, 171, 170, 12, 62, 3, 0, 0, 127, 62, 0, 128, 1, 62, 171, 42, 135, 62, 85, 85, 9, 62, 0, 128, 131, 62, 171, 42, 6, 62, 3, 0, 128, 105, 62, 0, 0, 216, 61, 0, 0, 119, 62, 85, 85, 250, 61, 85, 213, 111, 62, 0, 0, 236, 61, 3, 0, 0, 92, 62, 0, 0, 145, 61, 0, 128, 99, 62, 171, 170, 196, 61, 0, 0, 95, 62, 0, 0, 173, 61, 2, 0, 128, 34, 62, 0, 0, 84, 190, 2, 0, 0, 136, 61, 0, 0, 84, 190, 2, 0, 0, 2, 62, 0, 0, 192, 61, 3, 0, 0, 243, 61, 0, 0, 239, 61, 0, 0, 5, 62, 85, 85, 223, 61, 171, 42, 2, 62, 0, 0, 239, 61, 3, 0, 0, 169, 61, 0, 0, 164, 61, 0, 0, 227, 61, 0, 0, 239, 61, 85, 85, 202, 61, 0, 0, 214, 61, 3, 0, 0, 12, 61, 0, 0, 200, 188, 171, 170, 135, 61, 85, 85, 101, 61, 85, 85, 77, 61, 85, 85, 173, 60, 2, 0, 0, 0, 0, 0, 0, 32, 188, 3, 0, 0, 6, 61, 0, 0, 135, 61, 85, 85, 53, 60, 171, 170, 146, 60, 0, 0, 180, 60, 171, 170, 48, 61, 3, 0, 0, 133, 61, 0, 128, 0, 62, 0, 0, 50, 61, 85, 85, 182, 61, 0, 0, 94, 61, 0, 0, 223, 61, 3, 0, 0, 220, 61, 0, 0, 40, 62, 0, 0, 155, 61, 0, 128, 17, 62, 0, 0, 184, 61, 171, 170, 30, 62, 3, 0, 128, 46, 62, 0, 0, 54, 62, 0, 0, 0, 62, 85, 85, 49, 62, 0, 128, 21, 62, 0, 0, 54, 62, 3, 0, 128, 94, 62, 0, 128, 13, 62, 0, 128, 75, 62, 0, 0, 54, 62, 0, 128, 91, 62, 0, 128, 40, 62, 3, 0, 192, 178, 62, 0, 0, 54, 62, 0, 64, 129, 62, 0, 128, 40, 62, 0, 192, 151, 62, 0, 0, 54, 62, 3, 0, 0, 205, 62, 0, 128, 13, 62, 0, 64, 192, 62, 0, 0, 54, 62, 0, 0, 201, 62, 0, 128, 40, 62, 3, 0, 128, 217, 62, 0, 0, 32, 62, 0, 0, 210, 62, 85, 213, 20, 62, 171, 42, 214, 62, 0, 0, 27, 62, 3, 0, 192, 228, 62, 0, 128, 44, 62, 85, 213, 220, 62, 85, 85, 37, 62, 85, 149, 224, 62, 0, 128, 41, 62, 3, 0, 0, 245, 62, 0, 128, 51, 62, 171, 234, 232, 62, 85, 213, 47, 62, 85, 85, 238, 62, 171, 42, 50, 62, 3, 0, 64, 8, 63, 0, 0, 54, 62, 171, 170, 251, 62, 171, 42, 53, 62, 171, 106, 2, 63, 0, 0, 54, 62, 3, 0, 96, 19, 63, 0, 0, 30, 62, 0, 192, 12, 63, 0, 0, 54, 62, 85, 117, 16, 63, 0, 0, 46, 62, 3, 0, 224, 21, 63, 0, 0, 189, 61, 0, 96, 22, 63, 0, 0, 14, 62, 85, 53, 23, 63, 171, 170, 241, 61, 2, 0, 96, 10, 63, 0, 128, 4, 190, 3, 0, 128, 12, 63, 0, 128, 27, 190, 0, 160, 9, 63, 85, 213, 19, 190, 85, 85, 10, 63, 0, 128, 27, 190, 3, 0, 224, 21, 63, 0, 0, 235, 189, 171, 170, 14, 63, 171, 42, 27, 190, 171, 202, 17, 63, 0, 128, 14, 190, 3, 0, 32, 34, 63, 0, 0, 56, 188, 171, 10, 26, 63, 171, 170, 185, 189, 0, 32, 30, 63, 0, 0, 102, 189, 2, 0, 224, 42, 63, 0, 0, 212, 188, 3, 0, 128, 34, 63, 0, 0, 208, 189, 171, 10, 40, 63, 85, 85, 91, 189, 0, 64, 37, 63, 85, 85, 161, 189, 3, 0, 32, 26, 63, 0, 128, 36, 190, 0, 192, 31, 63, 85, 85, 255, 189, 85, 245, 28, 63, 85, 213, 19, 190, 3, 0, 64, 15, 63, 0, 0, 76, 190, 0, 96, 23, 63, 0, 128, 53, 190, 0, 192, 19, 63, 171, 170, 66, 190, 3, 0, 128, 254, 62, 0, 0, 90, 190, 85, 213, 10, 63, 85, 85, 85, 190, 0, 128, 5, 63, 0, 0, 90, 190, 1, 0, 16, 136, 63, 0, 0, 40, 61, 3, 0, 144, 135, 63, 0, 0, 0, 188, 0, 16, 136, 63, 0, 0, 208, 60, 85, 229, 135, 63, 85, 85, 21, 60, 3, 0, 16, 134, 63, 0, 0, 128, 189, 85, 69, 135, 63, 171, 170, 202, 188, 85, 197, 134, 63, 0, 0, 48, 189, 3, 0, 48, 131, 63, 0, 0, 242, 189, 85, 101, 133, 63, 171, 170, 168, 189, 0, 112, 132, 63, 171, 170, 206, 189, 3, 0, 128, 125, 63, 0, 128, 41, 190, 0, 240, 129, 63, 171, 170, 10, 190, 85, 117, 128, 63, 85, 213, 26, 190, 3, 0, 192, 112, 63, 0, 0, 77, 190, 171, 42, 122, 63, 0, 128, 56, 190, 171, 234, 117, 63, 85, 85, 68, 190, 3, 0, 192, 95, 63, 0, 0, 90, 190, 85, 149, 107, 63, 171, 170, 85, 190, 171, 234, 101, 63, 0, 0, 90, 190, 3, 0, 96, 76, 63, 0, 128, 56, 190, 171, 42, 88, 63, 0, 0, 90, 190, 85, 181, 81, 63, 85, 213, 78, 190, 2, 0, 64, 68, 63, 0, 64, 172, 190, 2, 0, 0, 88, 63, 0, 64, 172, 190, 2, 0, 0, 88, 63, 0, 0, 192, 190, 2, 0, 128, 24, 63, 0, 0, 192, 190, 2, 0, 128, 24, 63, 0, 64, 172, 190, 2, 0, 192, 44, 63, 0, 64, 172, 190, 2, 0, 224, 66, 63, 0, 0, 192, 61, 3, 0, 192, 64, 63, 0, 0, 239, 61, 0, 160, 67, 63, 85, 85, 223, 61, 171, 234, 66, 63, 0, 0, 239, 61, 3, 0, 192, 49, 63, 0, 0, 30, 61, 0, 128, 61, 63, 0, 0, 239, 61, 0, 128, 56, 63, 171, 170, 185, 61, 2, 0, 0, 41, 63, 0, 0, 90, 61, 3, 0, 128, 44, 63, 0, 0, 166, 61, 171, 170, 41, 63, 85, 85, 107, 61, 85, 213, 42, 63, 171, 170, 136, 61, 3, 0, 64, 49, 63, 0, 0, 237, 61, 171, 42, 46, 63, 85, 85, 195, 61, 0, 192, 47, 63, 0, 0, 219, 61, 3, 0, 96, 55, 63, 0, 128, 20, 62, 85, 213, 50, 63, 0, 0, 255, 61, 0, 224, 52, 63, 0, 128, 9, 62, 3, 0, 224, 64, 63, 0, 128, 45, 62, 0, 224, 57, 63, 0, 128, 31, 62, 171, 10, 61, 63, 85, 213, 39, 62, 3, 0, 0, 78, 63, 0, 0, 54, 62, 85, 181, 68, 63, 171, 42, 51, 62, 85, 21, 73, 63, 0, 0, 54, 62, 3, 0, 0, 90, 63, 0, 128, 13, 62, 0, 64, 85, 63, 0, 0, 54, 62, 0, 64, 89, 63, 0, 128, 40, 62, 3, 0, 160, 103, 63, 0, 128, 45, 62, 85, 85, 95, 63, 171, 42, 29, 62, 0, 224, 99, 63, 85, 213, 39, 62, 3, 0, 224, 118, 63, 0, 0, 54, 62, 0, 96, 107, 63, 171, 42, 51, 62, 85, 117, 112, 63, 0, 0, 54, 62, 3, 0, 64, 129, 63, 0, 128, 42, 62, 0, 96, 123, 63, 0, 0, 54, 62, 0, 64, 127, 63, 171, 42, 50, 62, 3, 0, 48, 133, 63, 0, 128, 11, 62, 171, 234, 130, 63, 171, 42, 35, 62, 171, 58, 132, 63, 85, 213, 24, 62, 3, 0, 80, 135, 63, 0, 0, 191, 61, 85, 37, 134, 63, 0, 0, 253, 61, 171, 218, 134, 63, 171, 170, 223, 61, 3, 0, 16, 136, 63, 0, 0, 40, 61, 0, 208, 135, 63, 85, 85, 158, 61, 0, 16, 136, 63, 85, 85, 117, 61, 1, 0, 96, 89, 63, 0, 0, 145, 61, 2, 0, 160, 81, 63, 0, 0, 168, 189, 3, 0, 96, 80, 63, 0, 0, 253, 189, 171, 202, 80, 63, 85, 85, 199, 189, 0, 96, 80, 63, 171, 170, 227, 189, 3, 0, 160, 88, 63, 0, 128, 47, 190, 0, 96, 80, 63, 171, 42, 31, 190, 0, 32, 83, 63, 0, 128, 47, 190, 3, 0, 224, 103, 63, 0, 0, 14, 190, 171, 138, 93, 63, 0, 128, 47, 190, 0, 160, 98, 63, 85, 85, 36, 190, 3, 0, 192, 115, 63, 0, 0, 232, 188, 85, 53, 109, 63, 0, 0, 240, 189, 171, 42, 113, 63, 171, 170, 164, 189, 3, 0, 224, 118, 63, 0, 0, 145, 61, 85, 213, 117, 63, 0, 0, 112, 60, 0, 224, 118, 63, 85, 85, 67, 61, 3, 0, 224, 107, 63, 0, 128, 13, 62, 0, 224, 118, 63, 0, 0, 237, 61, 85, 53, 115, 63, 0, 128, 13, 62, 3, 0, 224, 102, 63, 0, 0, 11, 62, 85, 53, 106, 63, 0, 128, 13, 62, 171, 138, 104, 63, 171, 170, 12, 62, 3, 0, 160, 97, 63, 0, 128, 1, 62, 171, 74, 101, 63, 85, 85, 9, 62, 171, 138, 99, 63, 171, 42, 6, 62, 3, 0, 160, 92, 63, 0, 0, 216, 61, 171, 202, 95, 63, 85, 85, 250, 61, 0, 32, 94, 63, 0, 0, 236, 61, 3, 0, 96, 89, 63, 0, 0, 145, 61, 85, 53, 91, 63, 171, 170, 196, 61, 0, 32, 90, 63, 0, 0, 173, 61, 99, 0, 0, 0, 0, 80, 133, 63, 0, 0, 0, 0, 93, 0, 0, 0, 1, 0, 224, 114, 63, 0, 192, 195, 62, 3, 0, 96, 105, 63, 0, 128, 187, 62, 171, 74, 111, 63, 0, 192, 195, 62, 0, 32, 108, 63, 0, 0, 193, 62, 3, 0, 96, 98, 63, 0, 128, 163, 62, 85, 181, 102, 63, 171, 42, 182, 62, 0, 96, 100, 63, 171, 42, 174, 62, 3, 0, 96, 93, 63, 0, 128, 130, 62, 85, 117, 96, 63, 0, 0, 153, 62, 171, 202, 94, 63, 0, 0, 142, 62, 3, 0, 64, 89, 63, 0, 128, 48, 62, 85, 245, 91, 63, 0, 0, 110, 62, 85, 149, 90, 63, 85, 213, 81, 62, 2, 0, 128, 112, 63, 0, 128, 48, 62, 2, 0, 128, 112, 63, 0, 0, 9, 62, 2, 0, 160, 87, 63, 0, 0, 9, 62, 3, 0, 0, 83, 63, 0, 0, 164, 60, 85, 181, 84, 63, 171, 170, 122, 61, 171, 42, 83, 63, 171, 170, 190, 60, 3, 0, 32, 58, 63, 0, 64, 142, 190, 0, 128, 77, 63, 85, 85, 220, 189, 85, 53, 69, 63, 85, 213, 83, 190, 3, 0, 64, 23, 63, 0, 192, 196, 190, 0, 32, 47, 63, 85, 149, 178, 190, 0, 128, 35, 63, 0, 192, 196, 190, 3, 0, 160, 4, 63, 0, 192, 188, 190, 85, 85, 14, 63, 0, 192, 196, 190, 0, 32, 8, 63, 85, 21, 194, 190, 3, 0, 0, 255, 62, 0, 64, 161, 190, 85, 53, 1, 63, 171, 106, 183, 190, 0, 0, 255, 62, 0, 64, 174, 190, 3, 0, 32, 4, 63, 0, 192, 130, 190, 0, 0, 255, 62, 171, 234, 148, 190, 171, 10, 1, 63, 0, 192, 138, 190, 3, 0, 224, 14, 63, 0, 128, 109, 190, 171, 74, 7, 63, 0, 128, 117, 190, 0, 224, 10, 63, 0, 128, 109, 190, 3, 0, 32, 24, 63, 0, 128, 120, 190, 171, 138, 18, 63, 0, 128, 109, 190, 0, 160, 21, 63, 171, 42, 113, 190, 3, 0, 0, 28, 63, 0, 128, 139, 190, 85, 181, 26, 63, 85, 213, 127, 190, 0, 0, 28, 63, 0, 0, 133, 190, 3, 0, 0, 26, 63, 0, 64, 154, 190, 0, 0, 28, 63, 0, 128, 145, 190, 85, 85, 27, 63, 171, 106, 150, 190, 3, 0, 64, 21, 63, 0, 0, 160, 190, 0, 192, 24, 63, 85, 21, 158, 190, 171, 42, 23, 63, 0, 0, 160, 190, 3, 0, 128, 16, 63, 0, 128, 162, 190, 0, 0, 19, 63, 0, 0, 160, 190, 171, 106, 17, 63, 85, 213, 160, 190, 3, 0, 32, 15, 63, 0, 192, 169, 190, 85, 149, 15, 63, 171, 42, 164, 190, 0, 32, 15, 63, 85, 149, 166, 190, 3, 0, 64, 23, 63, 0, 192, 174, 190, 0, 32, 15, 63, 85, 21, 173, 190, 85, 213, 17, 63, 0, 192, 174, 190, 3, 0, 160, 35, 63, 0, 0, 158, 190, 0, 0, 28, 63, 0, 192, 174, 190, 0, 32, 32, 63, 171, 42, 169, 190, 3, 0, 224, 43, 63, 0, 128, 101, 190, 85, 53, 39, 63, 0, 0, 147, 190, 85, 245, 41, 63, 85, 149, 132, 190, 3, 0, 160, 49, 63, 0, 0, 217, 189, 0, 224, 45, 63, 171, 42, 66, 190, 171, 202, 47, 63, 85, 213, 25, 190, 3, 0, 128, 54, 63, 0, 0, 224, 60, 85, 117, 51, 63, 171, 170, 124, 189, 85, 21, 53, 63, 85, 85, 141, 188, 3, 0, 32, 60, 63, 0, 0, 9, 62, 171, 234, 55, 63, 171, 170, 128, 61, 171, 202, 57, 63, 85, 85, 201, 61, 2, 0, 96, 39, 63, 0, 0, 9, 62, 2, 0, 96, 39, 63, 0, 128, 48, 62, 2, 0, 0, 63, 63, 0, 128, 48, 62, 3, 0, 160, 76, 63, 0, 0, 153, 62, 171, 234, 66, 63, 171, 42, 97, 62, 85, 117, 71, 63, 171, 42, 134, 62, 3, 0, 96, 94, 63, 0, 128, 199, 62, 171, 202, 81, 63, 0, 0, 172, 62, 85, 181, 87, 63, 0, 128, 187, 62, 3, 0, 224, 114, 63, 0, 128, 217, 62, 171, 10, 101, 63, 0, 128, 211, 62, 0, 224, 107, 63, 0, 128, 217, 62, 3, 0, 192, 129, 63, 0, 128, 208, 62, 171, 74, 121, 63, 0, 128, 217, 62, 85, 213, 126, 63, 0, 128, 214, 62, 3, 0, 80, 133, 63, 0, 0, 182, 62, 0, 32, 132, 63, 171, 170, 202, 62, 0, 80, 133, 63, 85, 213, 193, 62, 3, 0, 240, 130, 63, 0, 192, 151, 62, 0, 80, 133, 63, 85, 213, 169, 62, 85, 133, 132, 63, 0, 192, 159, 62, 3, 0, 0, 123, 63, 0, 192, 139, 62, 171, 90, 129, 63, 0, 192, 143, 62, 85, 21, 127, 63, 0, 192, 139, 62, 3, 0, 192, 113, 63, 0, 64, 145, 62, 171, 106, 119, 63, 0, 192, 139, 62, 85, 85, 116, 63, 85, 149, 141, 62, 3, 0, 0, 110, 63, 0, 64, 160, 62, 0, 64, 111, 63, 171, 234, 148, 62, 0, 0, 110, 63, 171, 234, 153, 62, 3, 0, 224, 111, 63, 0, 0, 175, 62, 0, 0, 110, 63, 85, 21, 166, 62, 0, 160, 110, 63, 0, 0, 171, 62, 3, 0, 192, 116, 63, 0, 0, 181, 62, 85, 53, 113, 63, 0, 0, 179, 62, 85, 213, 114, 63, 0, 0, 181, 62, 3, 0, 96, 121, 63, 0, 128, 183, 62, 0, 0, 119, 63, 0, 0, 181, 62, 171, 138, 120, 63, 85, 213, 181, 62, 3, 0, 160, 122, 63, 0, 192, 190, 62, 85, 53, 122, 63, 171, 42, 185, 62, 0, 160, 122, 63, 85, 149, 187, 62, 3, 0, 32, 120, 63, 0, 64, 194, 62, 0, 160, 122, 63, 85, 21, 192, 62, 171, 202, 121, 63, 0, 64, 193, 62, 3, 0, 224, 114, 63, 0, 192, 195, 62, 85, 117, 118, 63, 0, 64, 195, 62, 85, 181, 116, 63, 0, 192, 195, 62, 1, 0, 128, 254, 62, 0, 0, 90, 190, 3, 0, 128, 231, 62, 0, 0, 68, 190, 171, 42, 243, 62, 0, 0, 90, 190, 0, 128, 235, 62, 171, 170, 82, 190, 3, 0, 128, 228, 62, 0, 0, 17, 190, 171, 170, 227, 62, 171, 170, 53, 190, 171, 170, 226, 62, 171, 170, 36, 190, 2, 0, 192, 254, 62, 0, 0, 232, 61, 3, 0, 128, 253, 62, 0, 0, 8, 62, 85, 149, 255, 62, 85, 85, 251, 61, 171, 42, 255, 62, 85, 85, 4, 62, 3, 0, 128, 242, 62, 0, 128, 13, 62, 85, 213, 251, 62, 171, 170, 11, 62, 171, 42, 248, 62, 0, 128, 13, 62, 3, 0, 64, 232, 62, 0, 0, 11, 62, 171, 42, 239, 62, 0, 128, 13, 62, 0, 192, 235, 62, 171, 170, 12, 62, 3, 0, 64, 221, 62, 0, 128, 1, 62, 171, 234, 228, 62, 85, 85, 9, 62, 0, 64, 225, 62, 171, 42, 6, 62, 3, 0, 128, 210, 62, 0, 0, 216, 61, 0, 64, 217, 62, 85, 85, 250, 61, 171, 170, 213, 62, 0, 0, 236, 61, 3, 0, 192, 203, 62, 0, 0, 145, 61, 0, 128, 207, 62, 171, 170, 196, 61, 0, 64, 205, 62, 0, 0, 173, 61, 2, 0, 0, 175, 62, 0, 0, 84, 190, 2, 0, 128, 127, 62, 0, 0, 84, 190, 2, 0, 0, 161, 62, 0, 0, 232, 61, 3, 0, 192, 159, 62, 0, 0, 8, 62, 85, 213, 161, 62, 85, 85, 251, 61, 171, 106, 161, 62, 85, 85, 4, 62, 3, 0, 192, 148, 62, 0, 128, 13, 62, 85, 21, 158, 62, 171, 170, 11, 62, 171, 106, 154, 62, 0, 128, 13, 62, 3, 0, 128, 138, 62, 0, 0, 11, 62, 171, 106, 145, 62, 0, 128, 13, 62, 0, 0, 142, 62, 171, 170, 12, 62, 3, 0, 0, 127, 62, 0, 128, 1, 62, 171, 42, 135, 62, 85, 85, 9, 62, 0, 128, 131, 62, 171, 42, 6, 62, 3, 0, 128, 105, 62, 0, 0, 216, 61, 0, 0, 119, 62, 85, 85, 250, 61, 85, 213, 111, 62, 0, 0, 236, 61, 3, 0, 0, 92, 62, 0, 0, 145, 61, 0, 128, 99, 62, 171, 170, 196, 61, 0, 0, 95, 62, 0, 0, 173, 61, 2, 0, 128, 34, 62, 0, 0, 84, 190, 2, 0, 0, 136, 61, 0, 0, 84, 190, 2, 0, 0, 2, 62, 0, 0, 192, 61, 3, 0, 0, 243, 61, 0, 0, 239, 61, 0, 0, 5, 62, 85, 85, 223, 61, 171, 42, 2, 62, 0, 0, 239, 61, 3, 0, 0, 169, 61, 0, 0, 164, 61, 0, 0, 227, 61, 0, 0, 239, 61, 85, 85, 202, 61, 0, 0, 214, 61, 3, 0, 0, 12, 61, 0, 0, 200, 188, 171, 170, 135, 61, 85, 85, 101, 61, 85, 85, 77, 61, 85, 85, 173, 60, 2, 0, 0, 0, 0, 0, 0, 32, 188, 3, 0, 0, 6, 61, 0, 0, 135, 61, 85, 85, 53, 60, 171, 170, 146, 60, 0, 0, 180, 60, 171, 170, 48, 61, 3, 0, 0, 133, 61, 0, 128, 0, 62, 0, 0, 50, 61, 85, 85, 182, 61, 0, 0, 94, 61, 0, 0, 223, 61, 3, 0, 0, 220, 61, 0, 0, 40, 62, 0, 0, 155, 61, 0, 128, 17, 62, 0, 0, 184, 61, 171, 170, 30, 62, 3, 0, 128, 46, 62, 0, 0, 54, 62, 0, 0, 0, 62, 85, 85, 49, 62, 0, 128, 21, 62, 0, 0, 54, 62, 3, 0, 128, 94, 62, 0, 128, 13, 62, 0, 128, 75, 62, 0, 0, 54, 62, 0, 128, 91, 62, 0, 128, 40, 62, 3, 0, 192, 178, 62, 0, 0, 54, 62, 0, 64, 129, 62, 0, 128, 40, 62, 0, 192, 151, 62, 0, 0, 54, 62, 3, 0, 0, 205, 62, 0, 128, 13, 62, 0, 64, 192, 62, 0, 0, 54, 62, 0, 0, 201, 62, 0, 128, 40, 62, 3, 0, 128, 217, 62, 0, 0, 32, 62, 0, 0, 210, 62, 85, 213, 20, 62, 171, 42, 214, 62, 0, 0, 27, 62, 3, 0, 192, 228, 62, 0, 128, 44, 62, 85, 213, 220, 62, 85, 85, 37, 62, 85, 149, 224, 62, 0, 128, 41, 62, 3, 0, 0, 245, 62, 0, 128, 51, 62, 171, 234, 232, 62, 85, 213, 47, 62, 85, 85, 238, 62, 171, 42, 50, 62, 3, 0, 64, 8, 63, 0, 0, 54, 62, 171, 170, 251, 62, 171, 42, 53, 62, 171, 106, 2, 63, 0, 0, 54, 62, 3, 0, 96, 19, 63, 0, 0, 30, 62, 0, 192, 12, 63, 0, 0, 54, 62, 85, 117, 16, 63, 0, 0, 46, 62, 3, 0, 224, 21, 63, 0, 0, 189, 61, 0, 96, 22, 63, 0, 0, 14, 62, 85, 53, 23, 63, 171, 170, 241, 61, 2, 0, 96, 10, 63, 0, 128, 4, 190, 3, 0, 128, 12, 63, 0, 128, 27, 190, 0, 160, 9, 63, 85, 213, 19, 190, 85, 85, 10, 63, 0, 128, 27, 190, 3, 0, 224, 21, 63, 0, 0, 235, 189, 171, 170, 14, 63, 171, 42, 27, 190, 171, 202, 17, 63, 0, 128, 14, 190, 3, 0, 32, 34, 63, 0, 0, 56, 188, 171, 10, 26, 63, 171, 170, 185, 189, 0, 32, 30, 63, 0, 0, 102, 189, 2, 0, 224, 42, 63, 0, 0, 212, 188, 3, 0, 128, 34, 63, 0, 0, 208, 189, 171, 10, 40, 63, 85, 85, 91, 189, 0, 64, 37, 63, 85, 85, 161, 189, 3, 0, 32, 26, 63, 0, 128, 36, 190, 0, 192, 31, 63, 85, 85, 255, 189, 85, 245, 28, 63, 85, 213, 19, 190, 3, 0, 64, 15, 63, 0, 0, 76, 190, 0, 96, 23, 63, 0, 128, 53, 190, 0, 192, 19, 63, 171, 170, 66, 190, 3, 0, 128, 254, 62, 0, 0, 90, 190, 85, 213, 10, 63, 85, 85, 85, 190, 0, 128, 5, 63, 0, 0, 90, 190, 100, 0, 0, 0, 0, 32, 11, 63, 0, 0, 0, 0, 44, 0, 0, 0, 1, 0, 192, 230, 62, 0, 192, 195, 62, 3, 0, 0, 212, 62, 0, 128, 187, 62, 0, 192, 223, 62, 0, 192, 195, 62, 0, 128, 217, 62, 0, 0, 193, 62, 3, 0, 0, 198, 62, 0, 128, 163, 62, 171, 170, 206, 62, 171, 42, 182, 62, 0, 0, 202, 62, 171, 42, 174, 62, 3, 0, 192, 187, 62, 0, 128, 130, 62, 0, 0, 194, 62, 0, 0, 153, 62, 85, 149, 190, 62, 0, 0, 142, 62, 3, 0, 128, 179, 62, 0, 128, 48, 62, 85, 21, 185, 62, 0, 0, 110, 62, 85, 85, 182, 62, 85, 213, 81, 62, 2, 0, 0, 226, 62, 0, 128, 48, 62, 2, 0, 0, 226, 62, 0, 0, 9, 62, 2, 0, 64, 176, 62, 0, 0, 9, 62, 3, 0, 64, 167, 62, 0, 0, 164, 60, 171, 106, 170, 62, 0, 0, 124, 61, 171, 106, 167, 62, 85, 85, 193, 60, 3, 0, 128, 106, 62, 0, 64, 142, 190, 0, 64, 156, 62, 85, 85, 220, 189, 85, 149, 139, 62, 85, 213, 83, 190, 3, 0, 0, 190, 61, 0, 192, 196, 190, 171, 42, 62, 62, 85, 149, 178, 190, 171, 170, 15, 62, 0, 192, 196, 190, 3, 0, 0, 168, 60, 0, 192, 188, 190, 171, 170, 110, 61, 0, 192, 196, 190, 0, 0, 12, 61, 85, 21, 194, 190, 3, 0, 0, 0, 0, 0, 64, 161, 190, 0, 0, 224, 59, 171, 106, 183, 190, 0, 0, 0, 0, 0, 64, 174, 190, 3, 0, 0, 148, 60, 0, 192, 130, 190, 0, 0, 0, 0, 171, 234, 148, 190, 85, 85, 197, 59, 0, 192, 138, 190, 3, 0, 0, 120, 61, 0, 128, 109, 190, 85, 85, 249, 60, 0, 128, 117, 190, 171, 170, 54, 61, 0, 128, 109, 190, 3, 0, 0, 197, 61, 0, 128, 120, 190, 0, 0, 152, 61, 0, 128, 109, 190, 85, 85, 176, 61, 171, 42, 113, 190, 3, 0, 0, 229, 61, 0, 128, 139, 190, 85, 85, 218, 61, 85, 213, 127, 190, 0, 0, 229, 61, 0, 0, 133, 190, 3, 0, 0, 213, 61, 0, 64, 154, 190, 0, 0, 229, 61, 0, 128, 145, 190, 171, 170, 223, 61, 171, 106, 150, 190, 3, 0, 0, 174, 61, 0, 0, 160, 190, 0, 0, 203, 61, 85, 21, 158, 190, 0, 0, 190, 61, 0, 0, 160, 190, 3, 0, 0, 137, 61, 0, 128, 162, 190, 171, 170, 156, 61, 0, 0, 160, 190, 85, 85, 144, 61, 85, 213, 160, 190, 3, 0, 0, 124, 61, 0, 192, 169, 190, 171, 170, 129, 61, 171, 42, 164, 190, 0, 0, 124, 61, 85, 149, 166, 190, 3, 0, 0, 190, 61, 0, 192, 174, 190, 0, 0, 124, 61, 85, 21, 173, 190, 85, 85, 147, 61, 0, 192, 174, 190, 3, 0, 128, 16, 62, 0, 0, 158, 190, 171, 170, 228, 61, 0, 192, 174, 190, 85, 213, 2, 62, 171, 42, 169, 190, 3, 0, 128, 49, 62, 0, 128, 101, 190, 0, 128, 30, 62, 0, 0, 147, 190, 0, 128, 41, 62, 85, 149, 132, 190, 3, 0, 128, 72, 62, 0, 0, 217, 189, 0, 128, 57, 62, 171, 42, 66, 190, 171, 42, 65, 62, 85, 213, 25, 190, 3, 0, 128, 92, 62, 0, 0, 224, 60, 171, 42, 80, 62, 171, 170, 124, 189, 85, 213, 86, 62, 85, 85, 141, 188, 3, 0, 0, 115, 62, 0, 0, 9, 62, 0, 128, 97, 62, 171, 170, 128, 61, 0, 0, 105, 62, 85, 85, 201, 61, 2, 0, 128, 31, 62, 0, 0, 9, 62, 2, 0, 128, 31, 62, 0, 128, 48, 62, 2, 0, 128, 126, 62, 0, 128, 48, 62, 3, 0, 64, 154, 62, 0, 0, 153, 62, 171, 234, 134, 62, 171, 42, 97, 62, 171, 234, 143, 62, 171, 42, 134, 62, 3, 0, 192, 189, 62, 0, 128, 199, 62, 85, 149, 164, 62, 0, 0, 172, 62, 171, 106, 176, 62, 0, 128, 187, 62, 3, 0, 192, 230, 62, 0, 128, 217, 62, 0, 64, 203, 62, 0, 128, 211, 62, 171, 234, 216, 62, 0, 128, 217, 62, 3, 0, 32, 4, 63, 0, 128, 208, 62, 0, 192, 243, 62, 0, 128, 217, 62, 171, 234, 254, 62, 0, 128, 214, 62, 3, 0, 32, 11, 63, 0, 0, 182, 62, 171, 202, 8, 63, 171, 170, 202, 62, 0, 32, 11, 63, 85, 213, 193, 62, 3, 0, 96, 6, 63, 0, 192, 151, 62, 0, 32, 11, 63, 85, 213, 169, 62, 171, 138, 9, 63, 0, 192, 159, 62, 3, 0, 64, 247, 62, 0, 192, 139, 62, 171, 74, 3, 63, 0, 192, 143, 62, 171, 106, 255, 62, 0, 192, 139, 62, 3, 0, 192, 228, 62, 0, 64, 145, 62, 85, 21, 240, 62, 0, 192, 139, 62, 171, 234, 233, 62, 85, 149, 141, 62, 3, 0, 0, 221, 62, 0, 64, 160, 62, 85, 149, 223, 62, 171, 234, 148, 62, 0, 0, 221, 62, 171, 234, 153, 62, 3, 0, 192, 224, 62, 0, 0, 175, 62, 0, 0, 221, 62, 85, 21, 166, 62, 0, 64, 222, 62, 0, 0, 171, 62, 3, 0, 192, 234, 62, 0, 0, 181, 62, 171, 106, 227, 62, 0, 0, 179, 62, 0, 192, 230, 62, 0, 0, 181, 62, 3, 0, 128, 246, 62, 0, 192, 190, 62, 85, 149, 242, 62, 0, 0, 181, 62, 0, 128, 246, 62, 0, 64, 184, 62, 3, 0, 64, 241, 62, 0, 64, 194, 62, 0, 128, 246, 62, 85, 21, 192, 62, 0, 192, 244, 62, 0, 64, 193, 62, 3, 0, 192, 230, 62, 0, 192, 195, 62, 171, 234, 237, 62, 0, 64, 195, 62, 171, 106, 234, 62, 0, 192, 195, 62, 101, 0, 0, 0, 0, 192, 84, 63, 0, 0, 0, 0, 84, 0, 0, 0, 1, 0, 64, 176, 62, 0, 0, 9, 62, 3, 0, 64, 167, 62, 0, 0, 164, 60, 171, 106, 170, 62, 0, 0, 124, 61, 171, 106, 167, 62, 85, 85, 193, 60, 3, 0, 128, 106, 62, 0, 64, 142, 190, 0, 64, 156, 62, 85, 85, 220, 189, 85, 149, 139, 62, 85, 213, 83, 190, 3, 0, 0, 190, 61, 0, 192, 196, 190, 171, 42, 62, 62, 85, 149, 178, 190, 171, 170, 15, 62, 0, 192, 196, 190, 3, 0, 0, 168, 60, 0, 192, 188, 190, 171, 170, 110, 61, 0, 192, 196, 190, 0, 0, 12, 61, 85, 21, 194, 190, 3, 0, 0, 0, 0, 0, 64, 161, 190, 0, 0, 224, 59, 171, 106, 183, 190, 0, 0, 0, 0, 0, 64, 174, 190, 3, 0, 0, 148, 60, 0, 192, 130, 190, 0, 0, 0, 0, 171, 234, 148, 190, 85, 85, 197, 59, 0, 192, 138, 190, 3, 0, 0, 120, 61, 0, 128, 109, 190, 85, 85, 249, 60, 0, 128, 117, 190, 171, 170, 54, 61, 0, 128, 109, 190, 3, 0, 0, 197, 61, 0, 128, 120, 190, 0, 0, 152, 61, 0, 128, 109, 190, 85, 85, 176, 61, 171, 42, 113, 190, 3, 0, 0, 229, 61, 0, 128, 139, 190, 85, 85, 218, 61, 85, 213, 127, 190, 0, 0, 229, 61, 0, 0, 133, 190, 3, 0, 0, 213, 61, 0, 64, 154, 190, 0, 0, 229, 61, 0, 128, 145, 190, 171, 170, 223, 61, 171, 106, 150, 190, 3, 0, 0, 174, 61, 0, 0, 160, 190, 0, 0, 203, 61, 85, 21, 158, 190, 0, 0, 190, 61, 0, 0, 160, 190, 3, 0, 0, 137, 61, 0, 128, 162, 190, 171, 170, 156, 61, 0, 0, 160, 190, 85, 85, 144, 61, 85, 213, 160, 190, 3, 0, 0, 124, 61, 0, 192, 169, 190, 171, 170, 129, 61, 171, 42, 164, 190, 0, 0, 124, 61, 85, 149, 166, 190, 3, 0, 0, 190, 61, 0, 192, 174, 190, 0, 0, 124, 61, 85, 21, 173, 190, 85, 85, 147, 61, 0, 192, 174, 190, 3, 0, 128, 16, 62, 0, 0, 158, 190, 171, 170, 228, 61, 0, 192, 174, 190, 85, 213, 2, 62, 171, 42, 169, 190, 3, 0, 128, 49, 62, 0, 128, 101, 190, 0, 128, 30, 62, 0, 0, 147, 190, 0, 128, 41, 62, 85, 149, 132, 190, 3, 0, 128, 72, 62, 0, 0, 217, 189, 0, 128, 57, 62, 171, 42, 66, 190, 171, 42, 65, 62, 85, 213, 25, 190, 3, 0, 128, 92, 62, 0, 0, 224, 60, 171, 42, 80, 62, 171, 170, 124, 189, 85, 213, 86, 62, 85, 85, 141, 188, 3, 0, 0, 115, 62, 0, 0, 9, 62, 0, 128, 97, 62, 171, 170, 128, 61, 0, 0, 105, 62, 85, 85, 201, 61, 2, 0, 128, 31, 62, 0, 0, 9, 62, 2, 0, 128, 31, 62, 0, 128, 48, 62, 2, 0, 128, 126, 62, 0, 128, 48, 62, 3, 0, 64, 154, 62, 0, 0, 153, 62, 171, 234, 134, 62, 171, 42, 97, 62, 171, 234, 143, 62, 171, 42, 134, 62, 3, 0, 192, 189, 62, 0, 128, 199, 62, 85, 149, 164, 62, 0, 0, 172, 62, 171, 106, 176, 62, 0, 128, 187, 62, 3, 0, 192, 230, 62, 0, 128, 217, 62, 0, 64, 203, 62, 0, 128, 211, 62, 171, 234, 216, 62, 0, 128, 217, 62, 3, 0, 32, 4, 63, 0, 128, 208, 62, 0, 192, 243, 62, 0, 128, 217, 62, 171, 234, 254, 62, 0, 128, 214, 62, 3, 0, 32, 11, 63, 0, 0, 182, 62, 171, 202, 8, 63, 171, 170, 202, 62, 0, 32, 11, 63, 85, 213, 193, 62, 3, 0, 96, 6, 63, 0, 192, 151, 62, 0, 32, 11, 63, 85, 213, 169, 62, 171, 138, 9, 63, 0, 192, 159, 62, 3, 0, 64, 247, 62, 0, 192, 139, 62, 171, 74, 3, 63, 0, 192, 143, 62, 171, 106, 255, 62, 0, 192, 139, 62, 3, 0, 192, 228, 62, 0, 64, 145, 62, 85, 21, 240, 62, 0, 192, 139, 62, 171, 234, 233, 62, 85, 149, 141, 62, 3, 0, 0, 221, 62, 0, 64, 160, 62, 85, 149, 223, 62, 171, 234, 148, 62, 0, 0, 221, 62, 171, 234, 153, 62, 3, 0, 192, 224, 62, 0, 0, 175, 62, 0, 0, 221, 62, 85, 21, 166, 62, 0, 64, 222, 62, 0, 0, 171, 62, 3, 0, 192, 234, 62, 0, 0, 181, 62, 171, 106, 227, 62, 0, 0, 179, 62, 0, 192, 230, 62, 0, 0, 181, 62, 3, 0, 128, 246, 62, 0, 192, 190, 62, 85, 149, 242, 62, 0, 0, 181, 62, 0, 128, 246, 62, 0, 64, 184, 62, 3, 0, 64, 241, 62, 0, 64, 194, 62, 0, 128, 246, 62, 85, 21, 192, 62, 0, 192, 244, 62, 0, 64, 193, 62, 3, 0, 192, 230, 62, 0, 192, 195, 62, 171, 234, 237, 62, 0, 64, 195, 62, 171, 106, 234, 62, 0, 192, 195, 62, 3, 0, 0, 212, 62, 0, 128, 187, 62, 0, 192, 223, 62, 0, 192, 195, 62, 0, 128, 217, 62, 0, 0, 193, 62, 3, 0, 0, 198, 62, 0, 128, 163, 62, 171, 170, 206, 62, 171, 42, 182, 62, 0, 0, 202, 62, 171, 42, 174, 62, 3, 0, 192, 187, 62, 0, 128, 130, 62, 0, 0, 194, 62, 0, 0, 153, 62, 85, 149, 190, 62, 0, 0, 142, 62, 3, 0, 128, 179, 62, 0, 128, 48, 62, 85, 21, 185, 62, 0, 0, 110, 62, 85, 85, 182, 62, 85, 213, 81, 62, 2, 0, 32, 9, 63, 0, 128, 48, 62, 3, 0, 192, 22, 63, 0, 0, 153, 62, 171, 10, 13, 63, 171, 42, 97, 62, 85, 149, 17, 63, 171, 42, 134, 62, 3, 0, 128, 40, 63, 0, 128, 199, 62, 171, 234, 27, 63, 0, 0, 172, 62, 85, 213, 33, 63, 0, 128, 187, 62, 3, 0, 0, 61, 63, 0, 128, 217, 62, 171, 42, 47, 63, 0, 128, 211, 62, 0, 0, 54, 63, 0, 128, 217, 62, 3, 0, 160, 77, 63, 0, 128, 208, 62, 171, 106, 67, 63, 0, 128, 217, 62, 85, 245, 72, 63, 0, 128, 214, 62, 3, 0, 192, 84, 63, 0, 0, 182, 62, 0, 96, 82, 63, 171, 170, 202, 62, 0, 192, 84, 63, 85, 213, 193, 62, 3, 0, 224, 79, 63, 0, 192, 151, 62, 0, 192, 84, 63, 85, 213, 169, 62, 0, 32, 83, 63, 0, 192, 159, 62, 3, 0, 32, 69, 63, 0, 192, 139, 62, 85, 181, 76, 63, 0, 192, 143, 62, 0, 32, 73, 63, 0, 192, 139, 62, 3, 0, 224, 59, 63, 0, 64, 145, 62, 171, 138, 65, 63, 0, 192, 139, 62, 85, 117, 62, 63, 85, 149, 141, 62, 3, 0, 32, 56, 63, 0, 64, 160, 62, 0, 96, 57, 63, 171, 234, 148, 62, 0, 32, 56, 63, 171, 234, 153, 62, 3, 0, 0, 58, 63, 0, 0, 175, 62, 0, 32, 56, 63, 85, 21, 166, 62, 0, 192, 56, 63, 0, 0, 171, 62, 3, 0, 224, 62, 63, 0, 0, 181, 62, 85, 85, 59, 63, 0, 0, 179, 62, 85, 245, 60, 63, 0, 0, 181, 62, 3, 0, 128, 67, 63, 0, 128, 183, 62, 0, 32, 65, 63, 0, 0, 181, 62, 171, 170, 66, 63, 85, 213, 181, 62, 3, 0, 192, 68, 63, 0, 192, 190, 62, 85, 85, 68, 63, 171, 42, 185, 62, 0, 192, 68, 63, 85, 149, 187, 62, 3, 0, 64, 66, 63, 0, 64, 194, 62, 0, 192, 68, 63, 85, 21, 192, 62, 171, 234, 67, 63, 0, 64, 193, 62, 3, 0, 0, 61, 63, 0, 192, 195, 62, 85, 149, 64, 63, 0, 64, 195, 62, 85, 213, 62, 63, 0, 192, 195, 62, 3, 0, 128, 51, 63, 0, 128, 187, 62, 171, 106, 57, 63, 0, 192, 195, 62, 0, 64, 54, 63, 0, 0, 193, 62, 3, 0, 128, 44, 63, 0, 128, 163, 62, 85, 213, 48, 63, 171, 42, 182, 62, 0, 128, 46, 63, 171, 42, 174, 62, 3, 0, 128, 39, 63, 0, 128, 130, 62, 85, 149, 42, 63, 0, 0, 153, 62, 171, 234, 40, 63, 0, 0, 142, 62, 3, 0, 96, 35, 63, 0, 128, 48, 62, 85, 21, 38, 63, 0, 0, 110, 62, 85, 181, 36, 63, 85, 213, 81, 62, 2, 0, 160, 58, 63, 0, 128, 48, 62, 2, 0, 160, 58, 63, 0, 0, 9, 62, 2, 0, 192, 33, 63, 0, 0, 9, 62, 3, 0, 32, 29, 63, 0, 0, 164, 60, 85, 213, 30, 63, 171, 170, 122, 61, 171, 74, 29, 63, 171, 170, 190, 60, 3, 0, 32, 4, 63, 0, 64, 142, 190, 171, 138, 23, 63, 85, 85, 220, 189, 85, 53, 15, 63, 85, 213, 83, 190, 3, 0, 192, 194, 62, 0, 192, 196, 190, 0, 64, 242, 62, 85, 149, 178, 190, 85, 21, 219, 62, 0, 192, 196, 190, 3, 0, 128, 157, 62, 0, 192, 188, 190, 0, 192, 176, 62, 0, 192, 196, 190, 85, 85, 164, 62, 85, 21, 194, 190, 3, 0, 64, 147, 62, 0, 64, 161, 190, 171, 170, 150, 62, 171, 106, 183, 190, 0, 64, 147, 62, 0, 64, 174, 190, 3, 0, 128, 156, 62, 0, 192, 130, 190, 0, 64, 147, 62, 171, 234, 148, 190, 85, 85, 150, 62, 0, 192, 138, 190, 3, 0, 192, 177, 62, 0, 128, 109, 190, 85, 213, 162, 62, 0, 128, 117, 190, 171, 234, 169, 62, 0, 128, 109, 190, 3, 0, 64, 196, 62, 0, 128, 120, 190, 85, 21, 185, 62, 0, 128, 109, 190, 0, 64, 191, 62, 171, 42, 113, 190, 3, 0, 0, 204, 62, 0, 128, 139, 190, 171, 106, 201, 62, 85, 213, 127, 190, 0, 0, 204, 62, 0, 0, 133, 190, 3, 0, 0, 200, 62, 0, 64, 154, 190, 0, 0, 204, 62, 0, 128, 145, 190, 171, 170, 202, 62, 171, 106, 150, 190, 3, 0, 192, 190, 62, 0, 0, 160, 190, 0, 128, 197, 62, 85, 21, 158, 190, 171, 106, 194, 62, 0, 0, 160, 190, 3, 0, 0, 181, 62, 0, 128, 162, 190, 85, 21, 186, 62, 0, 0, 160, 190, 85, 213, 182, 62, 85, 213, 160, 190, 3, 0, 128, 178, 62, 0, 192, 169, 190, 85, 85, 179, 62, 171, 42, 164, 190, 0, 128, 178, 62, 85, 149, 166, 190, 3, 0, 192, 194, 62, 0, 192, 174, 190, 0, 128, 178, 62, 85, 21, 173, 190, 171, 234, 183, 62, 0, 192, 174, 190, 3, 0, 64, 219, 62, 0, 0, 158, 190, 85, 21, 204, 62, 0, 192, 174, 190, 0, 64, 212, 62, 171, 42, 169, 190, 3, 0, 0, 236, 62, 0, 128, 101, 190, 171, 106, 226, 62, 0, 0, 147, 190, 0, 0, 232, 62, 85, 149, 132, 190, 3, 0, 64, 247, 62, 0, 0, 217, 189, 0, 0, 240, 62, 171, 42, 66, 190, 0, 192, 243, 62, 85, 213, 25, 190, 3, 0, 160, 0, 63, 0, 0, 224, 60, 171, 234, 250, 62, 171, 170, 124, 189, 0, 64, 254, 62, 85, 85, 141, 188, 3, 0, 64, 6, 63, 0, 0, 9, 62, 85, 245, 1, 63, 171, 170, 128, 61, 85, 213, 3, 63, 85, 85, 201, 61, 2, 0, 64, 176, 62, 0, 0, 9, 62, 102, 0, 0, 0, 0, 16, 143, 63, 0, 0, 0, 0, 123, 0, 0, 0, 1, 0, 64, 107, 63, 0, 0, 9, 62, 3, 0, 160, 102, 63, 0, 0, 164, 60, 85, 85, 104, 63, 171, 170, 122, 61, 171, 202, 102, 63, 171, 170, 190, 60, 3, 0, 192, 77, 63, 0, 64, 142, 190, 0, 32, 97, 63, 85, 85, 220, 189, 85, 213, 88, 63, 85, 213, 83, 190, 3, 0, 224, 42, 63, 0, 192, 196, 190, 171, 170, 66, 63, 85, 149, 178, 190, 171, 10, 55, 63, 0, 192, 196, 190, 3, 0, 64, 24, 63, 0, 192, 188, 190, 85, 245, 33, 63, 0, 192, 196, 190, 0, 192, 27, 63, 85, 21, 194, 190, 3, 0, 32, 19, 63, 0, 64, 161, 190, 85, 213, 20, 63, 171, 106, 183, 190, 0, 32, 19, 63, 0, 64, 174, 190, 3, 0, 192, 23, 63, 0, 192, 130, 190, 0, 32, 19, 63, 171, 234, 148, 190, 171, 170, 20, 63, 0, 192, 138, 190, 3, 0, 128, 34, 63, 0, 128, 109, 190, 171, 234, 26, 63, 0, 128, 117, 190, 0, 128, 30, 63, 0, 128, 109, 190, 3, 0, 160, 43, 63, 0, 128, 120, 190, 85, 21, 38, 63, 0, 128, 109, 190, 0, 32, 41, 63, 171, 42, 113, 190, 3, 0, 128, 47, 63, 0, 128, 139, 190, 85, 53, 46, 63, 85, 213, 127, 190, 0, 128, 47, 63, 0, 0, 133, 190, 3, 0, 160, 45, 63, 0, 64, 154, 190, 0, 128, 47, 63, 0, 128, 145, 190, 0, 224, 46, 63, 171, 106, 150, 190, 3, 0, 0, 41, 63, 0, 0, 160, 190, 0, 96, 44, 63, 85, 21, 158, 190, 85, 213, 42, 63, 0, 0, 160, 190, 3, 0, 32, 36, 63, 0, 128, 162, 190, 171, 170, 38, 63, 0, 0, 160, 190, 171, 10, 37, 63, 85, 213, 160, 190, 3, 0, 224, 34, 63, 0, 192, 169, 190, 171, 74, 35, 63, 171, 42, 164, 190, 0, 224, 34, 63, 85, 149, 166, 190, 3, 0, 224, 42, 63, 0, 192, 174, 190, 0, 224, 34, 63, 85, 21, 173, 190, 171, 138, 37, 63, 0, 192, 174, 190, 3, 0, 64, 55, 63, 0, 0, 158, 190, 0, 160, 47, 63, 0, 192, 174, 190, 0, 192, 51, 63, 171, 42, 169, 190, 3, 0, 96, 63, 63, 0, 128, 101, 190, 0, 192, 58, 63, 0, 0, 147, 190, 85, 117, 61, 63, 85, 149, 132, 190, 3, 0, 32, 69, 63, 0, 0, 217, 189, 0, 96, 65, 63, 171, 42, 66, 190, 171, 74, 67, 63, 85, 213, 25, 190, 3, 0, 64, 74, 63, 0, 0, 224, 60, 171, 10, 71, 63, 171, 170, 124, 189, 0, 192, 72, 63, 85, 85, 141, 188, 3, 0, 224, 79, 63, 0, 0, 9, 62, 0, 128, 75, 63, 171, 170, 128, 61, 0, 96, 77, 63, 85, 85, 201, 61, 2, 0, 192, 33, 63, 0, 0, 9, 62, 3, 0, 32, 29, 63, 0, 0, 164, 60, 85, 213, 30, 63, 171, 170, 122, 61, 171, 74, 29, 63, 171, 170, 190, 60, 3, 0, 32, 4, 63, 0, 64, 142, 190, 171, 138, 23, 63, 85, 85, 220, 189, 85, 53, 15, 63, 85, 213, 83, 190, 3, 0, 192, 194, 62, 0, 192, 196, 190, 0, 64, 242, 62, 85, 149, 178, 190, 85, 21, 219, 62, 0, 192, 196, 190, 3, 0, 128, 157, 62, 0, 192, 188, 190, 0, 192, 176, 62, 0, 192, 196, 190, 85, 85, 164, 62, 85, 21, 194, 190, 3, 0, 64, 147, 62, 0, 64, 161, 190, 171, 170, 150, 62, 171, 106, 183, 190, 0, 64, 147, 62, 0, 64, 174, 190, 3, 0, 128, 156, 62, 0, 192, 130, 190, 0, 64, 147, 62, 171, 234, 148, 190, 85, 85, 150, 62, 0, 192, 138, 190, 3, 0, 192, 177, 62, 0, 128, 109, 190, 85, 213, 162, 62, 0, 128, 117, 190, 171, 234, 169, 62, 0, 128, 109, 190, 3, 0, 64, 196, 62, 0, 128, 120, 190, 85, 21, 185, 62, 0, 128, 109, 190, 0, 64, 191, 62, 171, 42, 113, 190, 3, 0, 0, 204, 62, 0, 128, 139, 190, 171, 106, 201, 62, 85, 213, 127, 190, 0, 0, 204, 62, 0, 0, 133, 190, 3, 0, 0, 200, 62, 0, 64, 154, 190, 0, 0, 204, 62, 0, 128, 145, 190, 171, 170, 202, 62, 171, 106, 150, 190, 3, 0, 192, 190, 62, 0, 0, 160, 190, 0, 128, 197, 62, 85, 21, 158, 190, 171, 106, 194, 62, 0, 0, 160, 190, 3, 0, 0, 181, 62, 0, 128, 162, 190, 85, 21, 186, 62, 0, 0, 160, 190, 85, 213, 182, 62, 85, 213, 160, 190, 3, 0, 128, 178, 62, 0, 192, 169, 190, 85, 85, 179, 62, 171, 42, 164, 190, 0, 128, 178, 62, 85, 149, 166, 190, 3, 0, 192, 194, 62, 0, 192, 174, 190, 0, 128, 178, 62, 85, 21, 173, 190, 171, 234, 183, 62, 0, 192, 174, 190, 3, 0, 64, 219, 62, 0, 0, 158, 190, 85, 21, 204, 62, 0, 192, 174, 190, 0, 64, 212, 62, 171, 42, 169, 190, 3, 0, 0, 236, 62, 0, 128, 101, 190, 171, 106, 226, 62, 0, 0, 147, 190, 0, 0, 232, 62, 85, 149, 132, 190, 3, 0, 64, 247, 62, 0, 0, 217, 189, 0, 0, 240, 62, 171, 42, 66, 190, 0, 192, 243, 62, 85, 213, 25, 190, 3, 0, 160, 0, 63, 0, 0, 224, 60, 171, 234, 250, 62, 171, 170, 124, 189, 0, 64, 254, 62, 85, 85, 141, 188, 3, 0, 64, 6, 63, 0, 0, 9, 62, 85, 245, 1, 63, 171, 170, 128, 61, 85, 213, 3, 63, 85, 85, 201, 61, 2, 0, 64, 176, 62, 0, 0, 9, 62, 3, 0, 64, 167, 62, 0, 0, 164, 60, 171, 106, 170, 62, 0, 0, 124, 61, 171, 106, 167, 62, 85, 85, 193, 60, 3, 0, 128, 106, 62, 0, 64, 142, 190, 0, 64, 156, 62, 85, 85, 220, 189, 85, 149, 139, 62, 85, 213, 83, 190, 3, 0, 0, 190, 61, 0, 192, 196, 190, 171, 42, 62, 62, 85, 149, 178, 190, 171, 170, 15, 62, 0, 192, 196, 190, 3, 0, 0, 168, 60, 0, 192, 188, 190, 171, 170, 110, 61, 0, 192, 196, 190, 0, 0, 12, 61, 85, 21, 194, 190, 3, 0, 0, 0, 0, 0, 64, 161, 190, 0, 0, 224, 59, 171, 106, 183, 190, 0, 0, 0, 0, 0, 64, 174, 190, 3, 0, 0, 148, 60, 0, 192, 130, 190, 0, 0, 0, 0, 171, 234, 148, 190, 85, 85, 197, 59, 0, 192, 138, 190, 3, 0, 0, 120, 61, 0, 128, 109, 190, 85, 85, 249, 60, 0, 128, 117, 190, 171, 170, 54, 61, 0, 128, 109, 190, 3, 0, 0, 197, 61, 0, 128, 120, 190, 0, 0, 152, 61, 0, 128, 109, 190, 85, 85, 176, 61, 171, 42, 113, 190, 3, 0, 0, 229, 61, 0, 128, 139, 190, 85, 85, 218, 61, 85, 213, 127, 190, 0, 0, 229, 61, 0, 0, 133, 190, 3, 0, 0, 213, 61, 0, 64, 154, 190, 0, 0, 229, 61, 0, 128, 145, 190, 171, 170, 223, 61, 171, 106, 150, 190, 3, 0, 0, 174, 61, 0, 0, 160, 190, 0, 0, 203, 61, 85, 21, 158, 190, 0, 0, 190, 61, 0, 0, 160, 190, 3, 0, 0, 137, 61, 0, 128, 162, 190, 171, 170, 156, 61, 0, 0, 160, 190, 85, 85, 144, 61, 85, 213, 160, 190, 3, 0, 0, 124, 61, 0, 192, 169, 190, 171, 170, 129, 61, 171, 42, 164, 190, 0, 0, 124, 61, 85, 149, 166, 190, 3, 0, 0, 190, 61, 0, 192, 174, 190, 0, 0, 124, 61, 85, 21, 173, 190, 85, 85, 147, 61, 0, 192, 174, 190, 3, 0, 128, 16, 62, 0, 0, 158, 190, 171, 170, 228, 61, 0, 192, 174, 190, 85, 213, 2, 62, 171, 42, 169, 190, 3, 0, 128, 49, 62, 0, 128, 101, 190, 0, 128, 30, 62, 0, 0, 147, 190, 0, 128, 41, 62, 85, 149, 132, 190, 3, 0, 128, 72, 62, 0, 0, 217, 189, 0, 128, 57, 62, 171, 42, 66, 190, 171, 42, 65, 62, 85, 213, 25, 190, 3, 0, 128, 92, 62, 0, 0, 224, 60, 171, 42, 80, 62, 171, 170, 124, 189, 85, 213, 86, 62, 85, 85, 141, 188, 3, 0, 0, 115, 62, 0, 0, 9, 62, 0, 128, 97, 62, 171, 170, 128, 61, 0, 0, 105, 62, 85, 85, 201, 61, 2, 0, 128, 31, 62, 0, 0, 9, 62, 2, 0, 128, 31, 62, 0, 128, 48, 62, 2, 0, 128, 126, 62, 0, 128, 48, 62, 3, 0, 64, 154, 62, 0, 0, 153, 62, 171, 234, 134, 62, 171, 42, 97, 62, 171, 234, 143, 62, 171, 42, 134, 62, 3, 0, 192, 189, 62, 0, 128, 199, 62, 85, 149, 164, 62, 0, 0, 172, 62, 171, 106, 176, 62, 0, 128, 187, 62, 3, 0, 192, 230, 62, 0, 128, 217, 62, 0, 64, 203, 62, 0, 128, 211, 62, 171, 234, 216, 62, 0, 128, 217, 62, 3, 0, 32, 4, 63, 0, 128, 208, 62, 0, 192, 243, 62, 0, 128, 217, 62, 171, 234, 254, 62, 0, 128, 214, 62, 3, 0, 32, 11, 63, 0, 0, 182, 62, 171, 202, 8, 63, 171, 170, 202, 62, 0, 32, 11, 63, 85, 213, 193, 62, 3, 0, 96, 6, 63, 0, 192, 151, 62, 0, 32, 11, 63, 85, 213, 169, 62, 171, 138, 9, 63, 0, 192, 159, 62, 3, 0, 64, 247, 62, 0, 192, 139, 62, 171, 74, 3, 63, 0, 192, 143, 62, 171, 106, 255, 62, 0, 192, 139, 62, 3, 0, 192, 228, 62, 0, 64, 145, 62, 85, 21, 240, 62, 0, 192, 139, 62, 171, 234, 233, 62, 85, 149, 141, 62, 3, 0, 0, 221, 62, 0, 64, 160, 62, 85, 149, 223, 62, 171, 234, 148, 62, 0, 0, 221, 62, 171, 234, 153, 62, 3, 0, 192, 224, 62, 0, 0, 175, 62, 0, 0, 221, 62, 85, 21, 166, 62, 0, 64, 222, 62, 0, 0, 171, 62, 3, 0, 192, 234, 62, 0, 0, 181, 62, 171, 106, 227, 62, 0, 0, 179, 62, 0, 192, 230, 62, 0, 0, 181, 62, 3, 0, 128, 246, 62, 0, 192, 190, 62, 85, 149, 242, 62, 0, 0, 181, 62, 0, 128, 246, 62, 0, 64, 184, 62, 3, 0, 64, 241, 62, 0, 64, 194, 62, 0, 128, 246, 62, 85, 21, 192, 62, 0, 192, 244, 62, 0, 64, 193, 62, 3, 0, 192, 230, 62, 0, 192, 195, 62, 171, 234, 237, 62, 0, 64, 195, 62, 171, 106, 234, 62, 0, 192, 195, 62, 3, 0, 0, 212, 62, 0, 128, 187, 62, 0, 192, 223, 62, 0, 192, 195, 62, 0, 128, 217, 62, 0, 0, 193, 62, 3, 0, 0, 198, 62, 0, 128, 163, 62, 171, 170, 206, 62, 171, 42, 182, 62, 0, 0, 202, 62, 171, 42, 174, 62, 3, 0, 192, 187, 62, 0, 128, 130, 62, 0, 0, 194, 62, 0, 0, 153, 62, 85, 149, 190, 62, 0, 0, 142, 62, 3, 0, 128, 179, 62, 0, 128, 48, 62, 85, 21, 185, 62, 0, 0, 110, 62, 85, 85, 182, 62, 85, 213, 81, 62, 2, 0, 32, 9, 63, 0, 128, 48, 62, 3, 0, 192, 22, 63, 0, 0, 153, 62, 171, 10, 13, 63, 171, 42, 97, 62, 85, 149, 17, 63, 171, 42, 134, 62, 3, 0, 128, 40, 63, 0, 128, 199, 62, 171, 234, 27, 63, 0, 0, 172, 62, 85, 213, 33, 63, 0, 128, 187, 62, 3, 0, 0, 61, 63, 0, 128, 217, 62, 171, 42, 47, 63, 0, 128, 211, 62, 0, 0, 54, 63, 0, 128, 217, 62, 3, 0, 160, 77, 63, 0, 128, 208, 62, 171, 106, 67, 63, 0, 128, 217, 62, 85, 245, 72, 63, 0, 128, 214, 62, 3, 0, 192, 84, 63, 0, 0, 182, 62, 0, 96, 82, 63, 171, 170, 202, 62, 0, 192, 84, 63, 85, 213, 193, 62, 3, 0, 224, 79, 63, 0, 192, 151, 62, 0, 192, 84, 63, 85, 213, 169, 62, 0, 32, 83, 63, 0, 192, 159, 62, 3, 0, 32, 69, 63, 0, 192, 139, 62, 85, 181, 76, 63, 0, 192, 143, 62, 0, 32, 73, 63, 0, 192, 139, 62, 3, 0, 224, 59, 63, 0, 64, 145, 62, 171, 138, 65, 63, 0, 192, 139, 62, 85, 117, 62, 63, 85, 149, 141, 62, 3, 0, 32, 56, 63, 0, 64, 160, 62, 0, 96, 57, 63, 171, 234, 148, 62, 0, 32, 56, 63, 171, 234, 153, 62, 3, 0, 0, 58, 63, 0, 0, 175, 62, 0, 32, 56, 63, 85, 21, 166, 62, 0, 192, 56, 63, 0, 0, 171, 62, 3, 0, 224, 62, 63, 0, 0, 181, 62, 85, 85, 59, 63, 0, 0, 179, 62, 85, 245, 60, 63, 0, 0, 181, 62, 3, 0, 128, 67, 63, 0, 128, 183, 62, 0, 32, 65, 63, 0, 0, 181, 62, 171, 170, 66, 63, 85, 213, 181, 62, 3, 0, 192, 68, 63, 0, 192, 190, 62, 85, 85, 68, 63, 171, 42, 185, 62, 0, 192, 68, 63, 85, 149, 187, 62, 3, 0, 64, 66, 63, 0, 64, 194, 62, 0, 192, 68, 63, 85, 21, 192, 62, 171, 234, 67, 63, 0, 64, 193, 62, 3, 0, 0, 61, 63, 0, 192, 195, 62, 85, 149, 64, 63, 0, 64, 195, 62, 85, 213, 62, 63, 0, 192, 195, 62, 3, 0, 128, 51, 63, 0, 128, 187, 62, 171, 106, 57, 63, 0, 192, 195, 62, 0, 64, 54, 63, 0, 0, 193, 62, 3, 0, 128, 44, 63, 0, 128, 163, 62, 85, 213, 48, 63, 171, 42, 182, 62, 0, 128, 46, 63, 171, 42, 174, 62, 3, 0, 128, 39, 63, 0, 128, 130, 62, 85, 149, 42, 63, 0, 0, 153, 62, 171, 234, 40, 63, 0, 0, 142, 62, 3, 0, 96, 35, 63, 0, 128, 48, 62, 85, 21, 38, 63, 0, 0, 110, 62, 85, 181, 36, 63, 85, 213, 81, 62, 2, 0, 160, 82, 63, 0, 128, 48, 62, 3, 0, 32, 96, 63, 0, 0, 153, 62, 171, 138, 86, 63, 171, 42, 97, 62, 171, 10, 91, 63, 171, 42, 134, 62, 3, 0, 0, 114, 63, 0, 128, 199, 62, 171, 74, 101, 63, 0, 0, 172, 62, 0, 64, 107, 63, 0, 128, 187, 62, 3, 0, 48, 131, 63, 0, 128, 217, 62, 0, 192, 120, 63, 0, 128, 211, 62, 171, 138, 127, 63, 0, 128, 217, 62, 3, 0, 144, 139, 63, 0, 128, 208, 62, 171, 122, 134, 63, 0, 128, 217, 62, 85, 69, 137, 63, 0, 128, 214, 62, 3, 0, 16, 143, 63, 0, 0, 182, 62, 85, 229, 141, 63, 171, 170, 202, 62, 0, 16, 143, 63, 85, 213, 193, 62, 3, 0, 176, 140, 63, 0, 192, 151, 62, 0, 16, 143, 63, 85, 213, 169, 62, 85, 69, 142, 63, 0, 192, 159, 62, 3, 0, 96, 135, 63, 0, 192, 139, 62, 85, 37, 139, 63, 0, 192, 143, 62, 0, 96, 137, 63, 0, 192, 139, 62, 3, 0, 192, 130, 63, 0, 64, 145, 62, 85, 149, 133, 63, 0, 192, 139, 62, 171, 10, 132, 63, 85, 149, 141, 62, 3, 0, 224, 128, 63, 0, 64, 160, 62, 0, 128, 129, 63, 171, 234, 148, 62, 0, 224, 128, 63, 171, 234, 153, 62, 3, 0, 208, 129, 63, 0, 0, 175, 62, 0, 224, 128, 63, 85, 21, 166, 62, 0, 48, 129, 63, 0, 0, 171, 62, 3, 0, 32, 132, 63, 0, 0, 181, 62, 0, 112, 130, 63, 0, 0, 179, 62, 85, 53, 131, 63, 0, 0, 181, 62, 3, 0, 48, 135, 63, 0, 192, 190, 62, 171, 42, 134, 63, 0, 0, 181, 62, 0, 48, 135, 63, 0, 64, 184, 62, 3, 0, 224, 133, 63, 0, 64, 194, 62, 0, 48, 135, 63, 85, 21, 192, 62, 0, 192, 134, 63, 0, 64, 193, 62, 3, 0, 48, 131, 63, 0, 192, 195, 62, 171, 10, 133, 63, 0, 64, 195, 62, 85, 37, 132, 63, 0, 192, 195, 62, 3, 0, 32, 125, 63, 0, 128, 187, 62, 171, 122, 129, 63, 0, 192, 195, 62, 0, 224, 127, 63, 0, 0, 193, 62, 3, 0, 0, 118, 63, 0, 128, 163, 62, 85, 117, 122, 63, 171, 42, 182, 62, 85, 21, 120, 63, 171, 42, 174, 62, 3, 0, 0, 113, 63, 0, 128, 130, 62, 0, 0, 116, 63, 0, 0, 153, 62, 85, 85, 114, 63, 0, 0, 142, 62, 3, 0, 192, 108, 63, 0, 128, 48, 62, 171, 170, 111, 63, 0, 0, 110, 62, 0, 64, 110, 63, 85, 213, 81, 62, 2, 0, 32, 130, 63, 0, 128, 48, 62, 2, 0, 32, 130, 63, 0, 0, 9, 62, 2, 0, 64, 107, 63, 0, 0, 9, 62, 103, 0, 0, 0, 0, 224, 64, 63, 0, 0, 0, 0, 86, 0, 0, 0, 1, 0, 32, 41, 63, 0, 192, 195, 62, 3, 0, 224, 31, 63, 0, 128, 187, 62, 85, 181, 37, 63, 0, 192, 195, 62, 0, 160, 34, 63, 0, 0, 193, 62, 3, 0, 224, 24, 63, 0, 128, 163, 62, 85, 53, 29, 63, 171, 42, 182, 62, 0, 224, 26, 63, 171, 42, 174, 62, 3, 0, 192, 19, 63, 0, 128, 130, 62, 0, 224, 22, 63, 0, 0, 153, 62, 171, 42, 21, 63, 0, 0, 142, 62, 3, 0, 160, 15, 63, 0, 128, 48, 62, 85, 85, 18, 63, 0, 0, 110, 62, 85, 245, 16, 63, 85, 213, 81, 62, 2, 0, 224, 38, 63, 0, 128, 48, 62, 2, 0, 224, 38, 63, 0, 0, 9, 62, 2, 0, 32, 14, 63, 0, 0, 9, 62, 3, 0, 96, 9, 63, 0, 0, 164, 60, 85, 53, 11, 63, 171, 170, 122, 61, 0, 160, 9, 63, 171, 170, 190, 60, 3, 0, 0, 225, 62, 0, 64, 142, 190, 0, 224, 3, 63, 85, 85, 220, 189, 171, 42, 247, 62, 85, 213, 83, 190, 3, 0, 0, 155, 62, 0, 192, 196, 190, 0, 0, 203, 62, 85, 149, 178, 190, 171, 170, 179, 62, 0, 192, 196, 190, 3, 0, 0, 108, 62, 0, 192, 188, 190, 85, 85, 137, 62, 0, 192, 196, 190, 0, 0, 122, 62, 85, 21, 194, 190, 3, 0, 0, 87, 62, 0, 64, 161, 190, 0, 0, 94, 62, 171, 106, 183, 190, 0, 0, 87, 62, 0, 64, 174, 190, 3, 0, 0, 106, 62, 0, 192, 130, 190, 0, 0, 87, 62, 171, 234, 148, 190, 85, 85, 93, 62, 0, 192, 138, 190, 3, 0, 192, 138, 62, 0, 128, 109, 190, 171, 170, 118, 62, 0, 128, 117, 190, 85, 149, 130, 62, 0, 128, 109, 190, 3, 0, 0, 157, 62, 0, 128, 120, 190, 171, 234, 145, 62, 0, 128, 109, 190, 0, 0, 152, 62, 171, 42, 113, 190, 3, 0, 192, 164, 62, 0, 128, 139, 190, 171, 42, 162, 62, 85, 213, 127, 190, 0, 192, 164, 62, 0, 0, 133, 190, 3, 0, 192, 160, 62, 0, 64, 154, 190, 0, 192, 164, 62, 0, 128, 145, 190, 171, 106, 163, 62, 171, 106, 150, 190, 3, 0, 64, 151, 62, 0, 0, 160, 190, 0, 64, 158, 62, 85, 21, 158, 190, 85, 21, 155, 62, 0, 0, 160, 190, 3, 0, 0, 142, 62, 0, 128, 162, 190, 0, 192, 146, 62, 0, 0, 160, 190, 171, 170, 143, 62, 85, 213, 160, 190, 3, 0, 128, 139, 62, 0, 192, 169, 190, 85, 85, 140, 62, 171, 42, 164, 190, 0, 128, 139, 62, 85, 149, 166, 190, 3, 0, 0, 155, 62, 0, 192, 174, 190, 0, 128, 139, 62, 85, 21, 173, 190, 171, 170, 144, 62, 0, 192, 174, 190, 3, 0, 0, 180, 62, 0, 0, 158, 190, 171, 170, 164, 62, 0, 192, 174, 190, 0, 0, 173, 62, 171, 42, 169, 190, 3, 0, 128, 196, 62, 0, 128, 101, 190, 171, 42, 187, 62, 0, 0, 147, 190, 171, 170, 192, 62, 85, 149, 132, 190, 3, 0, 0, 208, 62, 0, 0, 217, 189, 0, 128, 200, 62, 171, 42, 66, 190, 85, 85, 204, 62, 85, 213, 25, 190, 3, 0, 192, 217, 62, 0, 0, 224, 60, 171, 170, 211, 62, 171, 170, 124, 189, 171, 234, 214, 62, 85, 85, 141, 188, 3, 0, 0, 229, 62, 0, 0, 9, 62, 85, 149, 220, 62, 171, 170, 128, 61, 85, 85, 224, 62, 85, 85, 201, 61, 2, 0, 128, 187, 62, 0, 0, 9, 62, 2, 0, 128, 187, 62, 0, 128, 48, 62, 2, 0, 0, 235, 62, 0, 128, 48, 62, 3, 0, 0, 3, 63, 0, 0, 153, 62, 171, 170, 242, 62, 171, 42, 97, 62, 171, 170, 251, 62, 171, 42, 134, 62, 3, 0, 192, 20, 63, 0, 128, 199, 62, 171, 42, 8, 63, 0, 0, 172, 62, 85, 21, 14, 63, 0, 128, 187, 62, 3, 0, 32, 41, 63, 0, 128, 217, 62, 171, 106, 27, 63, 0, 128, 211, 62, 85, 53, 34, 63, 0, 128, 217, 62, 3, 0, 224, 57, 63, 0, 128, 208, 62, 85, 181, 47, 63, 0, 128, 217, 62, 171, 74, 53, 63, 0, 128, 214, 62, 3, 0, 224, 64, 63, 0, 0, 182, 62, 171, 138, 62, 63, 171, 170, 202, 62, 0, 224, 64, 63, 85, 213, 193, 62, 3, 0, 32, 60, 63, 0, 192, 151, 62, 0, 224, 64, 63, 85, 213, 169, 62, 171, 74, 63, 63, 0, 192, 159, 62, 3, 0, 128, 49, 63, 0, 192, 139, 62, 171, 10, 57, 63, 0, 192, 143, 62, 0, 128, 53, 63, 0, 192, 139, 62, 3, 0, 64, 40, 63, 0, 64, 145, 62, 171, 234, 45, 63, 0, 192, 139, 62, 85, 213, 42, 63, 85, 149, 141, 62, 3, 0, 96, 36, 63, 0, 64, 160, 62, 171, 170, 37, 63, 171, 234, 148, 62, 0, 96, 36, 63, 171, 234, 153, 62, 3, 0, 96, 38, 63, 0, 0, 175, 62, 0, 96, 36, 63, 85, 21, 166, 62, 171, 10, 37, 63, 0, 0, 171, 62, 3, 0, 32, 43, 63, 0, 0, 181, 62, 85, 181, 39, 63, 0, 0, 179, 62, 171, 74, 41, 63, 0, 0, 181, 62, 3, 0, 224, 47, 63, 0, 128, 183, 62, 85, 117, 45, 63, 0, 0, 181, 62, 171, 10, 47, 63, 85, 213, 181, 62, 3, 0, 64, 49, 63, 0, 192, 190, 62, 171, 202, 48, 63, 171, 42, 185, 62, 0, 64, 49, 63, 85, 149, 187, 62, 3, 0, 160, 46, 63, 0, 64, 194, 62, 0, 64, 49, 63, 85, 21, 192, 62, 0, 96, 48, 63, 0, 64, 193, 62, 3, 0, 32, 41, 63, 0, 192, 195, 62, 85, 245, 44, 63, 0, 64, 195, 62, 0, 32, 43, 63, 0, 192, 195, 62, 1, 0, 128, 112, 62, 0, 0, 217, 61, 3, 0, 128, 101, 62, 0, 128, 2, 62, 0, 128, 112, 62, 171, 170, 231, 61, 85, 213, 108, 62, 85, 85, 246, 61, 3, 0, 128, 71, 62, 0, 0, 14, 62, 0, 128, 94, 62, 171, 42, 10, 62, 0, 128, 84, 62, 0, 0, 14, 62, 3, 0, 128, 22, 62, 0, 0, 3, 62, 171, 42, 48, 62, 0, 0, 14, 62, 85, 213, 31, 62, 85, 85, 10, 62, 3, 0, 0, 9, 62, 0, 0, 179, 61, 0, 128, 13, 62, 85, 85, 247, 61, 0, 0, 9, 62, 171, 170, 219, 61, 3, 0, 128, 20, 62, 0, 0, 102, 61, 0, 0, 9, 62, 85, 85, 156, 61, 85, 213, 12, 62, 0, 0, 135, 61, 3, 0, 128, 50, 62, 0, 0, 0, 61, 0, 128, 28, 62, 0, 0, 62, 61, 0, 128, 38, 62, 0, 0, 28, 61, 3, 0, 0, 90, 62, 0, 0, 224, 59, 85, 213, 62, 62, 171, 170, 202, 60, 0, 0, 76, 62, 0, 0, 136, 60, 3, 0, 128, 128, 62, 0, 0, 180, 188, 0, 0, 104, 62, 171, 170, 42, 187, 0, 0, 117, 62, 0, 0, 72, 188, 3, 0, 128, 143, 62, 0, 0, 122, 189, 0, 128, 134, 62, 0, 0, 2, 189, 0, 128, 139, 62, 85, 85, 55, 189, 3, 0, 128, 149, 62, 0, 0, 239, 189, 0, 128, 147, 62, 0, 0, 159, 189, 0, 128, 149, 62, 0, 0, 197, 189, 3, 0, 128, 121, 62, 0, 128, 68, 190, 0, 128, 149, 62, 171, 42, 26, 190, 0, 64, 141, 62, 85, 213, 51, 190, 3, 0, 0, 255, 61, 0, 0, 94, 190, 0, 128, 88, 62, 0, 128, 85, 190, 85, 213, 47, 62, 0, 0, 94, 190, 3, 0, 0, 14, 61, 0, 128, 71, 190, 85, 85, 180, 61, 0, 0, 94, 190, 0, 0, 110, 61, 0, 128, 86, 190, 3, 0, 0, 0, 0, 0, 0, 7, 190, 85, 85, 61, 60, 0, 128, 56, 190, 0, 0, 192, 34, 0, 0, 35, 190, 3, 0, 0, 112, 60, 0, 0, 177, 189, 0, 0, 0, 0, 85, 85, 229, 189, 0, 0, 160, 59, 85, 85, 198, 189, 3, 0, 0, 72, 61, 0, 0, 146, 189, 0, 0, 200, 60, 85, 85, 156, 189, 171, 170, 18, 61, 0, 0, 146, 189, 3, 0, 0, 157, 61, 0, 0, 168, 189, 85, 85, 117, 61, 0, 0, 146, 189, 171, 170, 141, 61, 85, 85, 153, 189, 3, 0, 0, 180, 61, 0, 0, 218, 189, 85, 85, 172, 61, 171, 170, 182, 189, 0, 0, 180, 61, 85, 85, 199, 189, 3, 0, 0, 169, 61, 0, 0, 253, 189, 0, 0, 180, 61, 85, 85, 231, 189, 85, 85, 176, 61, 0, 0, 243, 189, 3, 0, 0, 158, 61, 0, 128, 12, 190, 171, 170, 161, 61, 0, 128, 3, 190, 0, 0, 158, 61, 171, 42, 8, 190, 3, 0, 0, 194, 61, 0, 0, 43, 190, 0, 0, 158, 61, 0, 128, 25, 190, 0, 0, 170, 61, 171, 170, 35, 190, 3, 0, 128, 12, 62, 0, 0, 54, 190, 0, 0, 218, 61, 85, 85, 50, 190, 0, 0, 247, 61, 0, 0, 54, 190, 3, 0, 0, 58, 62, 0, 0, 38, 190, 85, 213, 30, 62, 0, 0, 54, 190, 0, 0, 46, 62, 171, 170, 48, 190, 3, 0, 128, 76, 62, 0, 0, 251, 189, 85, 85, 70, 62, 85, 85, 27, 190, 0, 128, 76, 62, 85, 213, 13, 190, 3, 0, 0, 65, 62, 0, 0, 170, 189, 0, 128, 76, 62, 85, 85, 220, 189, 171, 170, 72, 62, 85, 85, 193, 189, 3, 0, 0, 36, 62, 0, 0, 104, 189, 85, 85, 57, 62, 85, 85, 147, 189, 171, 170, 47, 62, 85, 85, 129, 189, 3, 0, 0, 253, 61, 0, 0, 16, 189, 85, 85, 24, 62, 85, 85, 77, 189, 85, 213, 11, 62, 0, 0, 48, 189, 3, 0, 0, 178, 61, 0, 0, 56, 188, 85, 85, 226, 61, 0, 0, 224, 188, 85, 85, 201, 61, 171, 170, 158, 188, 3, 0, 0, 110, 61, 0, 0, 188, 60, 171, 170, 154, 61, 171, 170, 74, 187, 0, 0, 135, 61, 0, 0, 8, 60, 3, 0, 0, 64, 61, 0, 0, 152, 61, 85, 85, 79, 61, 0, 0, 26, 61, 0, 0, 64, 61, 0, 0, 96, 61, 3, 0, 0, 178, 61, 0, 0, 26, 62, 0, 0, 64, 61, 171, 170, 218, 61, 171, 170, 118, 61, 85, 85, 7, 62, 3, 0, 128, 72, 62, 0, 0, 54, 62, 171, 170, 232, 61, 171, 170, 44, 62, 0, 128, 25, 62, 0, 0, 54, 62, 3, 0, 192, 142, 62, 0, 128, 27, 62, 171, 42, 108, 62, 0, 0, 54, 62, 0, 64, 132, 62, 171, 42, 45, 62, 3, 0, 192, 158, 62, 0, 0, 182, 61, 171, 106, 153, 62, 85, 213, 9, 62, 0, 192, 158, 62, 171, 170, 232, 61, 3, 0, 128, 152, 62, 0, 0, 132, 61, 0, 192, 158, 62, 0, 0, 162, 61, 171, 170, 156, 62, 85, 85, 145, 61, 3, 0, 64, 138, 62, 0, 0, 96, 61, 85, 85, 148, 62, 85, 85, 109, 61, 85, 149, 143, 62, 0, 0, 96, 61, 3, 0, 128, 118, 62, 0, 0, 131, 61, 85, 149, 131, 62, 0, 0, 96, 61, 171, 42, 125, 62, 171, 170, 108, 61, 3, 0, 128, 108, 62, 0, 0, 177, 61, 85, 213, 111, 62, 85, 85, 144, 61, 0, 128, 108, 62, 171, 170, 159, 61, 3, 0, 128, 110, 62, 0, 0, 198, 61, 0, 128, 108, 62, 0, 0, 183, 61, 171, 42, 109, 62, 0, 0, 190, 61, 3, 0, 128, 112, 62, 0, 0, 217, 61, 85, 213, 111, 62, 0, 0, 206, 61, 0, 128, 112, 62, 85, 85, 212, 61, 104, 0, 0, 0, 0, 128, 73, 63, 0, 0, 0, 0, 75, 0, 0, 0, 1, 0, 32, 44, 63, 0, 128, 44, 190, 3, 0, 32, 51, 63, 0, 0, 36, 190, 85, 181, 46, 63, 0, 128, 44, 190, 171, 10, 49, 63, 171, 170, 41, 190, 3, 0, 96, 54, 63, 0, 0, 20, 190, 171, 74, 53, 63, 85, 85, 30, 190, 0, 96, 54, 63, 0, 0, 25, 190, 3, 0, 32, 49, 63, 0, 128, 9, 190, 0, 96, 54, 63, 0, 0, 13, 190, 0, 160, 52, 63, 0, 128, 9, 190, 3, 0, 0, 40, 63, 0, 0, 249, 189, 0, 96, 45, 63, 0, 128, 9, 190, 85, 85, 42, 63, 171, 42, 5, 190, 3, 0, 160, 36, 63, 0, 0, 185, 189, 0, 192, 37, 63, 85, 85, 232, 189, 0, 160, 36, 63, 0, 0, 211, 189, 3, 0, 192, 39, 63, 0, 0, 104, 189, 0, 160, 36, 63, 85, 85, 154, 189, 171, 170, 37, 63, 85, 85, 131, 189, 3, 0, 0, 50, 63, 0, 0, 58, 189, 85, 213, 41, 63, 85, 85, 73, 189, 0, 64, 45, 63, 0, 0, 58, 189, 3, 0, 64, 61, 63, 0, 0, 143, 189, 85, 21, 55, 63, 0, 0, 58, 189, 85, 213, 58, 63, 85, 85, 91, 189, 3, 0, 0, 65, 63, 0, 0, 6, 190, 0, 192, 63, 63, 85, 85, 176, 189, 0, 0, 65, 63, 0, 0, 218, 189, 3, 0, 0, 36, 63, 0, 128, 108, 190, 0, 0, 65, 63, 85, 85, 74, 190, 85, 85, 55, 63, 0, 128, 108, 190, 3, 0, 32, 22, 63, 0, 0, 83, 190, 0, 192, 32, 63, 0, 128, 108, 190, 0, 32, 28, 63, 0, 0, 100, 190, 3, 0, 160, 6, 63, 0, 128, 57, 190, 0, 32, 16, 63, 0, 0, 66, 190, 85, 245, 10, 63, 0, 128, 57, 190, 3, 0, 0, 246, 62, 0, 0, 63, 190, 0, 224, 1, 63, 0, 128, 57, 190, 0, 0, 252, 62, 85, 85, 59, 190, 3, 0, 64, 227, 62, 0, 0, 84, 190, 171, 42, 240, 62, 171, 170, 66, 190, 171, 234, 233, 62, 171, 170, 73, 190, 2, 0, 192, 202, 62, 0, 0, 84, 190, 2, 0, 192, 202, 62, 0, 0, 66, 190, 2, 0, 0, 40, 63, 0, 0, 181, 61, 2, 0, 0, 20, 63, 0, 0, 181, 61, 3, 0, 64, 7, 63, 0, 0, 155, 61, 85, 21, 15, 63, 0, 0, 181, 61, 85, 213, 10, 63, 85, 85, 172, 61, 3, 0, 224, 2, 63, 0, 0, 76, 61, 85, 149, 5, 63, 85, 85, 148, 61, 0, 32, 4, 63, 171, 170, 130, 61, 2, 0, 0, 246, 62, 0, 0, 76, 61, 2, 0, 64, 1, 63, 0, 128, 48, 62, 2, 0, 128, 73, 63, 0, 128, 48, 62, 2, 0, 128, 73, 63, 0, 0, 239, 61, 2, 0, 96, 10, 63, 0, 0, 239, 189, 3, 0, 224, 17, 63, 0, 0, 235, 189, 0, 160, 12, 63, 85, 85, 236, 189, 0, 32, 15, 63, 0, 0, 235, 189, 3, 0, 64, 26, 63, 0, 0, 252, 189, 85, 245, 20, 63, 0, 0, 235, 189, 0, 192, 23, 63, 171, 170, 240, 189, 3, 0, 224, 31, 63, 0, 0, 17, 190, 0, 192, 28, 63, 0, 0, 4, 190, 0, 160, 30, 63, 85, 85, 10, 190, 3, 0, 0, 37, 63, 0, 128, 35, 190, 85, 53, 33, 63, 171, 170, 23, 190, 171, 234, 34, 63, 85, 213, 29, 190, 3, 0, 32, 44, 63, 0, 128, 44, 190, 85, 21, 39, 63, 0, 128, 41, 190, 85, 117, 41, 63, 0, 128, 44, 190, 1, 0, 192, 230, 62, 0, 192, 195, 62, 3, 0, 0, 212, 62, 0, 128, 187, 62, 0, 192, 223, 62, 0, 192, 195, 62, 0, 128, 217, 62, 0, 0, 193, 62, 3, 0, 0, 198, 62, 0, 128, 163, 62, 171, 170, 206, 62, 171, 42, 182, 62, 0, 0, 202, 62, 171, 42, 174, 62, 3, 0, 192, 187, 62, 0, 128, 130, 62, 0, 0, 194, 62, 0, 0, 153, 62, 85, 149, 190, 62, 0, 0, 142, 62, 3, 0, 128, 179, 62, 0, 128, 48, 62, 85, 21, 185, 62, 0, 0, 110, 62, 85, 85, 182, 62, 85, 213, 81, 62, 2, 0, 0, 226, 62, 0, 128, 48, 62, 2, 0, 0, 226, 62, 0, 0, 9, 62, 2, 0, 64, 176, 62, 0, 0, 9, 62, 3, 0, 64, 167, 62, 0, 0, 164, 60, 171, 106, 170, 62, 0, 0, 124, 61, 171, 106, 167, 62, 85, 85, 193, 60, 3, 0, 128, 106, 62, 0, 64, 142, 190, 0, 64, 156, 62, 85, 85, 220, 189, 85, 149, 139, 62, 85, 213, 83, 190, 3, 0, 0, 190, 61, 0, 192, 196, 190, 171, 42, 62, 62, 85, 149, 178, 190, 171, 170, 15, 62, 0, 192, 196, 190, 3, 0, 0, 168, 60, 0, 192, 188, 190, 171, 170, 110, 61, 0, 192, 196, 190, 0, 0, 12, 61, 85, 21, 194, 190, 3, 0, 0, 0, 0, 0, 64, 161, 190, 0, 0, 224, 59, 171, 106, 183, 190, 0, 0, 0, 0, 0, 64, 174, 190, 3, 0, 0, 148, 60, 0, 192, 130, 190, 0, 0, 0, 0, 171, 234, 148, 190, 85, 85, 197, 59, 0, 192, 138, 190, 3, 0, 0, 120, 61, 0, 128, 109, 190, 85, 85, 249, 60, 0, 128, 117, 190, 171, 170, 54, 61, 0, 128, 109, 190, 3, 0, 0, 197, 61, 0, 128, 120, 190, 0, 0, 152, 61, 0, 128, 109, 190, 85, 85, 176, 61, 171, 42, 113, 190, 3, 0, 0, 229, 61, 0, 128, 139, 190, 85, 85, 218, 61, 85, 213, 127, 190, 0, 0, 229, 61, 0, 0, 133, 190, 3, 0, 0, 213, 61, 0, 64, 154, 190, 0, 0, 229, 61, 0, 128, 145, 190, 171, 170, 223, 61, 171, 106, 150, 190, 3, 0, 0, 174, 61, 0, 0, 160, 190, 0, 0, 203, 61, 85, 21, 158, 190, 0, 0, 190, 61, 0, 0, 160, 190, 3, 0, 0, 137, 61, 0, 128, 162, 190, 171, 170, 156, 61, 0, 0, 160, 190, 85, 85, 144, 61, 85, 213, 160, 190, 3, 0, 0, 124, 61, 0, 192, 169, 190, 171, 170, 129, 61, 171, 42, 164, 190, 0, 0, 124, 61, 85, 149, 166, 190, 3, 0, 0, 190, 61, 0, 192, 174, 190, 0, 0, 124, 61, 85, 21, 173, 190, 85, 85, 147, 61, 0, 192, 174, 190, 3, 0, 128, 16, 62, 0, 0, 158, 190, 171, 170, 228, 61, 0, 192, 174, 190, 85, 213, 2, 62, 171, 42, 169, 190, 3, 0, 128, 49, 62, 0, 128, 101, 190, 0, 128, 30, 62, 0, 0, 147, 190, 0, 128, 41, 62, 85, 149, 132, 190, 3, 0, 128, 72, 62, 0, 0, 217, 189, 0, 128, 57, 62, 171, 42, 66, 190, 171, 42, 65, 62, 85, 213, 25, 190, 3, 0, 128, 92, 62, 0, 0, 224, 60, 171, 42, 80, 62, 171, 170, 124, 189, 85, 213, 86, 62, 85, 85, 141, 188, 3, 0, 0, 115, 62, 0, 0, 9, 62, 0, 128, 97, 62, 171, 170, 128, 61, 0, 0, 105, 62, 85, 85, 201, 61, 2, 0, 128, 31, 62, 0, 0, 9, 62, 2, 0, 128, 31, 62, 0, 128, 48, 62, 2, 0, 128, 126, 62, 0, 128, 48, 62, 3, 0, 64, 154, 62, 0, 0, 153, 62, 171, 234, 134, 62, 171, 42, 97, 62, 171, 234, 143, 62, 171, 42, 134, 62, 3, 0, 192, 189, 62, 0, 128, 199, 62, 85, 149, 164, 62, 0, 0, 172, 62, 171, 106, 176, 62, 0, 128, 187, 62, 3, 0, 192, 230, 62, 0, 128, 217, 62, 0, 64, 203, 62, 0, 128, 211, 62, 171, 234, 216, 62, 0, 128, 217, 62, 3, 0, 32, 4, 63, 0, 128, 208, 62, 0, 192, 243, 62, 0, 128, 217, 62, 171, 234, 254, 62, 0, 128, 214, 62, 3, 0, 32, 11, 63, 0, 0, 182, 62, 171, 202, 8, 63, 171, 170, 202, 62, 0, 32, 11, 63, 85, 213, 193, 62, 3, 0, 96, 6, 63, 0, 192, 151, 62, 0, 32, 11, 63, 85, 213, 169, 62, 171, 138, 9, 63, 0, 192, 159, 62, 3, 0, 64, 247, 62, 0, 192, 139, 62, 171, 74, 3, 63, 0, 192, 143, 62, 171, 106, 255, 62, 0, 192, 139, 62, 3, 0, 192, 228, 62, 0, 64, 145, 62, 85, 21, 240, 62, 0, 192, 139, 62, 171, 234, 233, 62, 85, 149, 141, 62, 3, 0, 0, 221, 62, 0, 64, 160, 62, 85, 149, 223, 62, 171, 234, 148, 62, 0, 0, 221, 62, 171, 234, 153, 62, 3, 0, 192, 224, 62, 0, 0, 175, 62, 0, 0, 221, 62, 85, 21, 166, 62, 0, 64, 222, 62, 0, 0, 171, 62, 3, 0, 192, 234, 62, 0, 0, 181, 62, 171, 106, 227, 62, 0, 0, 179, 62, 0, 192, 230, 62, 0, 0, 181, 62, 3, 0, 128, 246, 62, 0, 192, 190, 62, 85, 149, 242, 62, 0, 0, 181, 62, 0, 128, 246, 62, 0, 64, 184, 62, 3, 0, 64, 241, 62, 0, 64, 194, 62, 0, 128, 246, 62, 85, 21, 192, 62, 0, 192, 244, 62, 0, 64, 193, 62, 3, 0, 192, 230, 62, 0, 192, 195, 62, 171, 234, 237, 62, 0, 64, 195, 62, 171, 106, 234, 62, 0, 192, 195, 62, 105, 0, 0, 0, 0, 96, 127, 63, 0, 0, 0, 0, 118, 0, 0, 0, 1, 0, 224, 97, 63, 0, 128, 44, 190, 3, 0, 0, 105, 63, 0, 0, 36, 190, 85, 117, 100, 63, 0, 128, 44, 190, 85, 213, 102, 63, 171, 170, 41, 190, 3, 0, 64, 108, 63, 0, 0, 20, 190, 171, 42, 107, 63, 85, 85, 30, 190, 0, 64, 108, 63, 0, 0, 25, 190, 3, 0, 224, 102, 63, 0, 128, 9, 190, 0, 64, 108, 63, 0, 0, 13, 190, 85, 117, 106, 63, 0, 128, 9, 190, 3, 0, 192, 93, 63, 0, 0, 249, 189, 0, 32, 99, 63, 0, 128, 9, 190, 85, 21, 96, 63, 171, 42, 5, 190, 3, 0, 96, 90, 63, 0, 0, 185, 189, 0, 128, 91, 63, 85, 85, 232, 189, 0, 96, 90, 63, 0, 0, 211, 189, 3, 0, 128, 93, 63, 0, 0, 104, 189, 0, 96, 90, 63, 85, 85, 154, 189, 171, 106, 91, 63, 85, 85, 131, 189, 3, 0, 224, 103, 63, 0, 0, 58, 189, 85, 149, 95, 63, 85, 85, 73, 189, 171, 10, 99, 63, 0, 0, 58, 189, 3, 0, 0, 115, 63, 0, 0, 143, 189, 0, 224, 108, 63, 0, 0, 58, 189, 85, 149, 112, 63, 85, 85, 91, 189, 3, 0, 192, 118, 63, 0, 0, 6, 190, 0, 128, 117, 63, 85, 85, 176, 189, 0, 192, 118, 63, 0, 0, 218, 189, 3, 0, 224, 89, 63, 0, 128, 108, 190, 0, 192, 118, 63, 85, 85, 74, 190, 0, 32, 109, 63, 0, 128, 108, 190, 3, 0, 224, 80, 63, 0, 0, 96, 190, 171, 10, 87, 63, 0, 128, 108, 190, 171, 10, 84, 63, 85, 85, 104, 190, 3, 0, 224, 70, 63, 0, 128, 70, 190, 85, 181, 77, 63, 171, 170, 87, 190, 0, 96, 74, 63, 171, 42, 79, 190, 3, 0, 128, 60, 63, 0, 128, 57, 190, 85, 117, 67, 63, 85, 213, 61, 190, 0, 0, 64, 63, 0, 128, 57, 190, 3, 0, 224, 48, 63, 0, 0, 63, 190, 85, 213, 55, 63, 0, 128, 57, 190, 85, 245, 51, 63, 85, 85, 59, 190, 3, 0, 128, 39, 63, 0, 0, 84, 190, 0, 224, 45, 63, 171, 170, 66, 190, 0, 192, 42, 63, 171, 170, 73, 190, 2, 0, 96, 27, 63, 0, 0, 84, 190, 2, 0, 96, 27, 63, 0, 0, 66, 190, 2, 0, 224, 93, 63, 0, 0, 181, 61, 2, 0, 224, 73, 63, 0, 0, 181, 61, 3, 0, 0, 61, 63, 0, 0, 155, 61, 171, 10, 69, 63, 0, 0, 181, 61, 0, 192, 64, 63, 85, 85, 172, 61, 3, 0, 160, 56, 63, 0, 0, 76, 61, 85, 85, 59, 63, 85, 85, 148, 61, 0, 224, 57, 63, 171, 170, 130, 61, 2, 0, 224, 48, 63, 0, 0, 76, 61, 2, 0, 32, 55, 63, 0, 128, 48, 62, 2, 0, 96, 127, 63, 0, 128, 48, 62, 2, 0, 96, 127, 63, 0, 0, 239, 61, 2, 0, 32, 64, 63, 0, 0, 239, 189, 3, 0, 160, 71, 63, 0, 0, 235, 189, 85, 117, 66, 63, 85, 85, 236, 189, 85, 245, 68, 63, 0, 0, 235, 189, 3, 0, 0, 80, 63, 0, 0, 252, 189, 171, 202, 74, 63, 0, 0, 235, 189, 85, 149, 77, 63, 171, 170, 240, 189, 3, 0, 160, 85, 63, 0, 0, 17, 190, 0, 128, 82, 63, 0, 0, 4, 190, 0, 96, 84, 63, 85, 85, 10, 190, 3, 0, 224, 90, 63, 0, 128, 35, 190, 85, 245, 86, 63, 171, 170, 23, 190, 85, 181, 88, 63, 85, 213, 29, 190, 3, 0, 224, 97, 63, 0, 128, 44, 190, 171, 10, 93, 63, 0, 128, 41, 190, 0, 96, 95, 63, 0, 128, 44, 190, 1, 0, 32, 41, 63, 0, 192, 195, 62, 3, 0, 224, 31, 63, 0, 128, 187, 62, 85, 181, 37, 63, 0, 192, 195, 62, 0, 160, 34, 63, 0, 0, 193, 62, 3, 0, 224, 24, 63, 0, 128, 163, 62, 85, 53, 29, 63, 171, 42, 182, 62, 0, 224, 26, 63, 171, 42, 174, 62, 3, 0, 192, 19, 63, 0, 128, 130, 62, 0, 224, 22, 63, 0, 0, 153, 62, 171, 42, 21, 63, 0, 0, 142, 62, 3, 0, 160, 15, 63, 0, 128, 48, 62, 85, 85, 18, 63, 0, 0, 110, 62, 85, 245, 16, 63, 85, 213, 81, 62, 2, 0, 224, 38, 63, 0, 128, 48, 62, 2, 0, 224, 38, 63, 0, 0, 9, 62, 2, 0, 32, 14, 63, 0, 0, 9, 62, 3, 0, 96, 9, 63, 0, 0, 164, 60, 85, 53, 11, 63, 171, 170, 122, 61, 0, 160, 9, 63, 171, 170, 190, 60, 3, 0, 0, 225, 62, 0, 64, 142, 190, 0, 224, 3, 63, 85, 85, 220, 189, 171, 42, 247, 62, 85, 213, 83, 190, 3, 0, 0, 155, 62, 0, 192, 196, 190, 0, 0, 203, 62, 85, 149, 178, 190, 171, 170, 179, 62, 0, 192, 196, 190, 3, 0, 0, 108, 62, 0, 192, 188, 190, 85, 85, 137, 62, 0, 192, 196, 190, 0, 0, 122, 62, 85, 21, 194, 190, 3, 0, 0, 87, 62, 0, 64, 161, 190, 0, 0, 94, 62, 171, 106, 183, 190, 0, 0, 87, 62, 0, 64, 174, 190, 3, 0, 0, 106, 62, 0, 192, 130, 190, 0, 0, 87, 62, 171, 234, 148, 190, 85, 85, 93, 62, 0, 192, 138, 190, 3, 0, 192, 138, 62, 0, 128, 109, 190, 171, 170, 118, 62, 0, 128, 117, 190, 85, 149, 130, 62, 0, 128, 109, 190, 3, 0, 0, 157, 62, 0, 128, 120, 190, 171, 234, 145, 62, 0, 128, 109, 190, 0, 0, 152, 62, 171, 42, 113, 190, 3, 0, 192, 164, 62, 0, 128, 139, 190, 171, 42, 162, 62, 85, 213, 127, 190, 0, 192, 164, 62, 0, 0, 133, 190, 3, 0, 192, 160, 62, 0, 64, 154, 190, 0, 192, 164, 62, 0, 128, 145, 190, 171, 106, 163, 62, 171, 106, 150, 190, 3, 0, 64, 151, 62, 0, 0, 160, 190, 0, 64, 158, 62, 85, 21, 158, 190, 85, 21, 155, 62, 0, 0, 160, 190, 3, 0, 0, 142, 62, 0, 128, 162, 190, 0, 192, 146, 62, 0, 0, 160, 190, 171, 170, 143, 62, 85, 213, 160, 190, 3, 0, 128, 139, 62, 0, 192, 169, 190, 85, 85, 140, 62, 171, 42, 164, 190, 0, 128, 139, 62, 85, 149, 166, 190, 3, 0, 0, 155, 62, 0, 192, 174, 190, 0, 128, 139, 62, 85, 21, 173, 190, 171, 170, 144, 62, 0, 192, 174, 190, 3, 0, 0, 180, 62, 0, 0, 158, 190, 171, 170, 164, 62, 0, 192, 174, 190, 0, 0, 173, 62, 171, 42, 169, 190, 3, 0, 128, 196, 62, 0, 128, 101, 190, 171, 42, 187, 62, 0, 0, 147, 190, 171, 170, 192, 62, 85, 149, 132, 190, 3, 0, 0, 208, 62, 0, 0, 217, 189, 0, 128, 200, 62, 171, 42, 66, 190, 85, 85, 204, 62, 85, 213, 25, 190, 3, 0, 192, 217, 62, 0, 0, 224, 60, 171, 170, 211, 62, 171, 170, 124, 189, 171, 234, 214, 62, 85, 85, 141, 188, 3, 0, 0, 229, 62, 0, 0, 9, 62, 85, 149, 220, 62, 171, 170, 128, 61, 85, 85, 224, 62, 85, 85, 201, 61, 2, 0, 128, 187, 62, 0, 0, 9, 62, 2, 0, 128, 187, 62, 0, 128, 48, 62, 2, 0, 0, 235, 62, 0, 128, 48, 62, 3, 0, 0, 3, 63, 0, 0, 153, 62, 171, 170, 242, 62, 171, 42, 97, 62, 171, 170, 251, 62, 171, 42, 134, 62, 3, 0, 192, 20, 63, 0, 128, 199, 62, 171, 42, 8, 63, 0, 0, 172, 62, 85, 21, 14, 63, 0, 128, 187, 62, 3, 0, 32, 41, 63, 0, 128, 217, 62, 171, 106, 27, 63, 0, 128, 211, 62, 85, 53, 34, 63, 0, 128, 217, 62, 3, 0, 224, 57, 63, 0, 128, 208, 62, 85, 181, 47, 63, 0, 128, 217, 62, 171, 74, 53, 63, 0, 128, 214, 62, 3, 0, 224, 64, 63, 0, 0, 182, 62, 171, 138, 62, 63, 171, 170, 202, 62, 0, 224, 64, 63, 85, 213, 193, 62, 3, 0, 32, 60, 63, 0, 192, 151, 62, 0, 224, 64, 63, 85, 213, 169, 62, 171, 74, 63, 63, 0, 192, 159, 62, 3, 0, 128, 49, 63, 0, 192, 139, 62, 171, 10, 57, 63, 0, 192, 143, 62, 0, 128, 53, 63, 0, 192, 139, 62, 3, 0, 64, 40, 63, 0, 64, 145, 62, 171, 234, 45, 63, 0, 192, 139, 62, 85, 213, 42, 63, 85, 149, 141, 62, 3, 0, 96, 36, 63, 0, 64, 160, 62, 171, 170, 37, 63, 171, 234, 148, 62, 0, 96, 36, 63, 171, 234, 153, 62, 3, 0, 96, 38, 63, 0, 0, 175, 62, 0, 96, 36, 63, 85, 21, 166, 62, 171, 10, 37, 63, 0, 0, 171, 62, 3, 0, 32, 43, 63, 0, 0, 181, 62, 85, 181, 39, 63, 0, 0, 179, 62, 171, 74, 41, 63, 0, 0, 181, 62, 3, 0, 224, 47, 63, 0, 128, 183, 62, 85, 117, 45, 63, 0, 0, 181, 62, 171, 10, 47, 63, 85, 213, 181, 62, 3, 0, 64, 49, 63, 0, 192, 190, 62, 171, 202, 48, 63, 171, 42, 185, 62, 0, 64, 49, 63, 85, 149, 187, 62, 3, 0, 160, 46, 63, 0, 64, 194, 62, 0, 64, 49, 63, 85, 21, 192, 62, 0, 96, 48, 63, 0, 64, 193, 62, 3, 0, 32, 41, 63, 0, 192, 195, 62, 85, 245, 44, 63, 0, 64, 195, 62, 0, 32, 43, 63, 0, 192, 195, 62, 1, 0, 128, 112, 62, 0, 0, 217, 61, 3, 0, 128, 101, 62, 0, 128, 2, 62, 0, 128, 112, 62, 171, 170, 231, 61, 85, 213, 108, 62, 85, 85, 246, 61, 3, 0, 128, 71, 62, 0, 0, 14, 62, 0, 128, 94, 62, 171, 42, 10, 62, 0, 128, 84, 62, 0, 0, 14, 62, 3, 0, 128, 22, 62, 0, 0, 3, 62, 171, 42, 48, 62, 0, 0, 14, 62, 85, 213, 31, 62, 85, 85, 10, 62, 3, 0, 0, 9, 62, 0, 0, 179, 61, 0, 128, 13, 62, 85, 85, 247, 61, 0, 0, 9, 62, 171, 170, 219, 61, 3, 0, 128, 20, 62, 0, 0, 102, 61, 0, 0, 9, 62, 85, 85, 156, 61, 85, 213, 12, 62, 0, 0, 135, 61, 3, 0, 128, 50, 62, 0, 0, 0, 61, 0, 128, 28, 62, 0, 0, 62, 61, 0, 128, 38, 62, 0, 0, 28, 61, 3, 0, 0, 90, 62, 0, 0, 224, 59, 85, 213, 62, 62, 171, 170, 202, 60, 0, 0, 76, 62, 0, 0, 136, 60, 3, 0, 128, 128, 62, 0, 0, 180, 188, 0, 0, 104, 62, 171, 170, 42, 187, 0, 0, 117, 62, 0, 0, 72, 188, 3, 0, 128, 143, 62, 0, 0, 122, 189, 0, 128, 134, 62, 0, 0, 2, 189, 0, 128, 139, 62, 85, 85, 55, 189, 3, 0, 128, 149, 62, 0, 0, 239, 189, 0, 128, 147, 62, 0, 0, 159, 189, 0, 128, 149, 62, 0, 0, 197, 189, 3, 0, 128, 121, 62, 0, 128, 68, 190, 0, 128, 149, 62, 171, 42, 26, 190, 0, 64, 141, 62, 85, 213, 51, 190, 3, 0, 0, 255, 61, 0, 0, 94, 190, 0, 128, 88, 62, 0, 128, 85, 190, 85, 213, 47, 62, 0, 0, 94, 190, 3, 0, 0, 14, 61, 0, 128, 71, 190, 85, 85, 180, 61, 0, 0, 94, 190, 0, 0, 110, 61, 0, 128, 86, 190, 3, 0, 0, 0, 0, 0, 0, 7, 190, 85, 85, 61, 60, 0, 128, 56, 190, 0, 0, 192, 34, 0, 0, 35, 190, 3, 0, 0, 112, 60, 0, 0, 177, 189, 0, 0, 0, 0, 85, 85, 229, 189, 0, 0, 160, 59, 85, 85, 198, 189, 3, 0, 0, 72, 61, 0, 0, 146, 189, 0, 0, 200, 60, 85, 85, 156, 189, 171, 170, 18, 61, 0, 0, 146, 189, 3, 0, 0, 157, 61, 0, 0, 168, 189, 85, 85, 117, 61, 0, 0, 146, 189, 171, 170, 141, 61, 85, 85, 153, 189, 3, 0, 0, 180, 61, 0, 0, 218, 189, 85, 85, 172, 61, 171, 170, 182, 189, 0, 0, 180, 61, 85, 85, 199, 189, 3, 0, 0, 169, 61, 0, 0, 253, 189, 0, 0, 180, 61, 85, 85, 231, 189, 85, 85, 176, 61, 0, 0, 243, 189, 3, 0, 0, 158, 61, 0, 128, 12, 190, 171, 170, 161, 61, 0, 128, 3, 190, 0, 0, 158, 61, 171, 42, 8, 190, 3, 0, 0, 194, 61, 0, 0, 43, 190, 0, 0, 158, 61, 0, 128, 25, 190, 0, 0, 170, 61, 171, 170, 35, 190, 3, 0, 128, 12, 62, 0, 0, 54, 190, 0, 0, 218, 61, 85, 85, 50, 190, 0, 0, 247, 61, 0, 0, 54, 190, 3, 0, 0, 58, 62, 0, 0, 38, 190, 85, 213, 30, 62, 0, 0, 54, 190, 0, 0, 46, 62, 171, 170, 48, 190, 3, 0, 128, 76, 62, 0, 0, 251, 189, 85, 85, 70, 62, 85, 85, 27, 190, 0, 128, 76, 62, 85, 213, 13, 190, 3, 0, 0, 65, 62, 0, 0, 170, 189, 0, 128, 76, 62, 85, 85, 220, 189, 171, 170, 72, 62, 85, 85, 193, 189, 3, 0, 0, 36, 62, 0, 0, 104, 189, 85, 85, 57, 62, 85, 85, 147, 189, 171, 170, 47, 62, 85, 85, 129, 189, 3, 0, 0, 253, 61, 0, 0, 16, 189, 85, 85, 24, 62, 85, 85, 77, 189, 85, 213, 11, 62, 0, 0, 48, 189, 3, 0, 0, 178, 61, 0, 0, 56, 188, 85, 85, 226, 61, 0, 0, 224, 188, 85, 85, 201, 61, 171, 170, 158, 188, 3, 0, 0, 110, 61, 0, 0, 188, 60, 171, 170, 154, 61, 171, 170, 74, 187, 0, 0, 135, 61, 0, 0, 8, 60, 3, 0, 0, 64, 61, 0, 0, 152, 61, 85, 85, 79, 61, 0, 0, 26, 61, 0, 0, 64, 61, 0, 0, 96, 61, 3, 0, 0, 178, 61, 0, 0, 26, 62, 0, 0, 64, 61, 171, 170, 218, 61, 171, 170, 118, 61, 85, 85, 7, 62, 3, 0, 128, 72, 62, 0, 0, 54, 62, 171, 170, 232, 61, 171, 170, 44, 62, 0, 128, 25, 62, 0, 0, 54, 62, 3, 0, 192, 142, 62, 0, 128, 27, 62, 171, 42, 108, 62, 0, 0, 54, 62, 0, 64, 132, 62, 171, 42, 45, 62, 3, 0, 192, 158, 62, 0, 0, 182, 61, 171, 106, 153, 62, 85, 213, 9, 62, 0, 192, 158, 62, 171, 170, 232, 61, 3, 0, 128, 152, 62, 0, 0, 132, 61, 0, 192, 158, 62, 0, 0, 162, 61, 171, 170, 156, 62, 85, 85, 145, 61, 3, 0, 64, 138, 62, 0, 0, 96, 61, 85, 85, 148, 62, 85, 85, 109, 61, 85, 149, 143, 62, 0, 0, 96, 61, 3, 0, 128, 118, 62, 0, 0, 131, 61, 85, 149, 131, 62, 0, 0, 96, 61, 171, 42, 125, 62, 171, 170, 108, 61, 3, 0, 128, 108, 62, 0, 0, 177, 61, 85, 213, 111, 62, 85, 85, 144, 61, 0, 128, 108, 62, 171, 170, 159, 61, 3, 0, 128, 110, 62, 0, 0, 198, 61, 0, 128, 108, 62, 0, 0, 183, 61, 171, 42, 109, 62, 0, 0, 190, 61, 3, 0, 128, 112, 62, 0, 0, 217, 61, 85, 213, 111, 62, 0, 0, 206, 61, 0, 128, 112, 62, 85, 85, 212, 61, 106, 0, 0, 0, 0, 0, 26, 63, 0, 0, 0, 0, 8, 0, 0, 0, 1, 0, 160, 18, 63, 0, 0, 9, 62, 2, 0, 0, 18, 61, 0, 0, 0, 0, 3, 0, 0, 196, 60, 0, 0, 150, 61, 0, 0, 72, 60, 0, 0, 176, 60, 0, 0, 8, 60, 0, 0, 60, 61, 2, 0, 192, 197, 62, 0, 0, 33, 62, 2, 0, 0, 120, 60, 0, 0, 121, 62, 3, 0, 0, 212, 60, 0, 0, 162, 62, 85, 85, 197, 59, 0, 128, 138, 62, 85, 85, 29, 60, 0, 0, 151, 62, 2, 0, 224, 18, 63, 0, 0, 59, 62, 3, 0, 160, 18, 63, 0, 0, 9, 62, 85, 181, 23, 63, 85, 85, 42, 62, 0, 160, 23, 63, 171, 170, 25, 62, 107, 0, 0, 0, 0, 0, 26, 63, 0, 0, 0, 0, 17, 0, 0, 0, 1, 0, 192, 131, 62, 0, 64, 180, 62, 3, 0, 0, 121, 62, 0, 0, 198, 62, 85, 213, 125, 62, 0, 64, 185, 62, 0, 0, 121, 62, 171, 42, 191, 62, 3, 0, 192, 131, 62, 0, 128, 215, 62, 0, 0, 121, 62, 85, 213, 204, 62, 85, 213, 125, 62, 171, 170, 210, 62, 3, 0, 128, 149, 62, 0, 0, 223, 62, 0, 192, 136, 62, 0, 128, 220, 62, 171, 170, 142, 62, 0, 0, 223, 62, 3, 0, 64, 167, 62, 0, 128, 215, 62, 0, 128, 156, 62, 0, 0, 223, 62, 171, 106, 162, 62, 0, 128, 220, 62, 3, 0, 128, 174, 62, 0, 0, 198, 62, 85, 21, 172, 62, 171, 170, 210, 62, 0, 128, 174, 62, 85, 213, 204, 62, 3, 0, 64, 167, 62, 0, 64, 180, 62, 0, 128, 174, 62, 171, 42, 191, 62, 85, 21, 172, 62, 0, 64, 185, 62, 3, 0, 128, 149, 62, 0, 0, 173, 62, 171, 106, 162, 62, 171, 106, 175, 62, 0, 128, 156, 62, 0, 0, 173, 62, 3, 0, 192, 131, 62, 0, 64, 180, 62, 171, 170, 142, 62, 0, 0, 173, 62, 0, 192, 136, 62, 171, 106, 175, 62, 1, 0, 160, 18, 63, 0, 0, 9, 62, 2, 0, 0, 18, 61, 0, 0, 0, 0, 3, 0, 0, 196, 60, 0, 0, 150, 61, 0, 0, 72, 60, 0, 0, 176, 60, 0, 0, 8, 60, 0, 0, 60, 61, 2, 0, 192, 197, 62, 0, 0, 33, 62, 2, 0, 0, 120, 60, 0, 0, 121, 62, 3, 0, 0, 212, 60, 0, 0, 162, 62, 85, 85, 197, 59, 0, 128, 138, 62, 85, 85, 29, 60, 0, 0, 151, 62, 2, 0, 224, 18, 63, 0, 0, 59, 62, 3, 0, 160, 18, 63, 0, 0, 9, 62, 85, 181, 23, 63, 85, 85, 42, 62, 0, 160, 23, 63, 171, 170, 25, 62, 108, 0, 0, 0, 0, 0, 200, 61, 0, 0, 0, 0, 9, 0, 0, 0, 1, 0, 0, 104, 60, 0, 0, 104, 60, 3, 0, 0, 0, 0, 0, 0, 72, 61, 171, 170, 154, 59, 0, 0, 196, 60, 0, 0, 128, 33, 85, 85, 17, 61, 3, 0, 0, 104, 60, 0, 0, 171, 61, 0, 0, 0, 0, 0, 0, 128, 61, 171, 170, 154, 59, 171, 170, 151, 61, 3, 0, 0, 72, 61, 0, 0, 200, 61, 0, 0, 196, 60, 85, 85, 190, 61, 85, 85, 17, 61, 0, 0, 200, 61, 3, 0, 0, 170, 61, 0, 0, 171, 61, 171, 170, 126, 61, 0, 0, 200, 61, 171, 170, 150, 61, 85, 85, 190, 61, 3, 0, 0, 200, 61, 0, 0, 72, 61, 0, 0, 190, 61, 171, 170, 151, 61, 0, 0, 200, 61, 0, 0, 128, 61, 3, 0, 0, 170, 61, 0, 0, 104, 60, 0, 0, 200, 61, 85, 85, 17, 61, 0, 0, 190, 61, 0, 0, 196, 60, 3, 0, 0, 72, 61, 0, 0, 0, 0, 171, 170, 150, 61, 171, 170, 154, 59, 171, 170, 126, 61, 0, 0, 128, 33, 3, 0, 0, 104, 60, 0, 0, 104, 60, 85, 85, 17, 61, 0, 0, 0, 0, 0, 0, 196, 60, 171, 170, 154, 59, 109, 0, 0, 0, 0, 0, 204, 62, 0, 0, 0, 0, 16, 0, 0, 0, 1, 0, 128, 38, 62, 0, 128, 33, 62, 3, 0, 0, 24, 62, 0, 0, 69, 62, 85, 213, 28, 62, 0, 128, 43, 62, 0, 0, 24, 62, 85, 85, 55, 62, 3, 0, 128, 38, 62, 0, 128, 104, 62, 0, 0, 24, 62, 0, 0, 83, 62, 85, 213, 28, 62, 85, 213, 94, 62, 3, 0, 0, 74, 62, 0, 0, 119, 62, 0, 128, 48, 62, 171, 42, 114, 62, 85, 85, 60, 62, 0, 0, 119, 62, 3, 0, 0, 109, 62, 0, 128, 104, 62, 171, 170, 87, 62, 0, 0, 119, 62, 85, 85, 99, 62, 171, 42, 114, 62, 3, 0, 0, 124, 62, 0, 0, 69, 62, 0, 0, 119, 62, 85, 213, 94, 62, 0, 0, 124, 62, 0, 0, 83, 62, 3, 0, 0, 109, 62, 0, 128, 33, 62, 0, 0, 124, 62, 85, 85, 55, 62, 0, 0, 119, 62, 0, 128, 43, 62, 3, 0, 0, 74, 62, 0, 0, 19, 62, 85, 85, 99, 62, 85, 213, 23, 62, 171, 170, 87, 62, 0, 0, 19, 62, 3, 0, 128, 38, 62, 0, 128, 33, 62, 85, 85, 60, 62, 0, 0, 19, 62, 0, 128, 48, 62, 85, 213, 23, 62, 1, 0, 0, 195, 62, 0, 0, 160, 61, 3, 0, 0, 204, 62, 0, 0, 32, 61, 0, 0, 201, 62, 171, 170, 146, 61, 0, 0, 204, 62, 0, 0, 112, 61, 3, 0, 0, 195, 62, 0, 0, 0, 0, 0, 0, 204, 62, 0, 0, 160, 60, 0, 0, 201, 62, 85, 85, 213, 59, 2, 0, 0, 144, 60, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 32, 61, 0, 0, 192, 59, 85, 85, 213, 59, 0, 0, 0, 0, 0, 0, 160, 60, 3, 0, 0, 144, 60, 0, 0, 160, 61, 0, 0, 0, 0, 0, 0, 112, 61, 0, 0, 192, 59, 171, 170, 146, 61, 2, 0, 0, 195, 62, 0, 0, 160, 61, 110, 0, 0, 0, 0, 128, 203, 62, 0, 0, 0, 0, 7, 0, 0, 0, 1, 0, 0, 195, 62, 0, 0, 160, 61, 3, 0, 0, 204, 62, 0, 0, 32, 61, 0, 0, 201, 62, 171, 170, 146, 61, 0, 0, 204, 62, 0, 0, 112, 61, 3, 0, 0, 195, 62, 0, 0, 0, 0, 0, 0, 204, 62, 0, 0, 160, 60, 0, 0, 201, 62, 85, 85, 213, 59, 2, 0, 0, 144, 60, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 32, 61, 0, 0, 192, 59, 85, 85, 213, 59, 0, 0, 0, 0, 0, 0, 160, 60, 3, 0, 0, 144, 60, 0, 0, 160, 61, 0, 0, 0, 0, 0, 0, 112, 61, 0, 0, 192, 59, 171, 170, 146, 61, 2, 0, 0, 195, 62, 0, 0, 160, 61, 111, 0, 0, 0, 0, 224, 26, 63, 0, 0, 0, 0, 57, 0, 0, 0, 1, 0, 64, 238, 62, 0, 128, 155, 62, 2, 0, 64, 207, 62, 0, 0, 144, 59, 2, 0, 0, 160, 62, 0, 0, 144, 59, 2, 0, 64, 193, 62, 0, 64, 166, 62, 3, 0, 128, 192, 62, 0, 64, 174, 62, 0, 192, 193, 62, 0, 64, 169, 62, 0, 128, 193, 62, 171, 234, 171, 62, 3, 0, 0, 187, 62, 0, 0, 178, 62, 0, 128, 191, 62, 0, 192, 176, 62, 171, 170, 189, 62, 0, 0, 178, 62, 3, 0, 192, 170, 62, 0, 64, 174, 62, 0, 0, 183, 62, 0, 0, 178, 62, 85, 149, 177, 62, 0, 192, 176, 62, 3, 0, 192, 152, 62, 0, 192, 166, 62, 85, 21, 164, 62, 171, 234, 171, 62, 85, 21, 158, 62, 171, 106, 169, 62, 3, 0, 192, 128, 62, 0, 0, 155, 62, 171, 106, 147, 62, 0, 64, 164, 62, 171, 106, 139, 62, 85, 85, 160, 62, 2, 0, 0, 116, 62, 0, 128, 111, 62, 3, 0, 192, 138, 62, 0, 0, 38, 62, 0, 0, 129, 62, 85, 213, 86, 62, 85, 149, 134, 62, 85, 85, 62, 62, 3, 0, 0, 145, 62, 0, 0, 207, 61, 171, 234, 142, 62, 171, 170, 13, 62, 0, 0, 145, 62, 171, 170, 241, 61, 3, 0, 0, 133, 62, 0, 0, 236, 60, 0, 0, 145, 62, 85, 85, 148, 61, 0, 0, 141, 62, 0, 0, 70, 61, 3, 0, 128, 74, 62, 0, 0, 0, 0, 0, 0, 122, 62, 85, 85, 29, 60, 85, 213, 100, 62, 0, 0, 192, 34, 3, 0, 0, 7, 62, 0, 0, 14, 61, 0, 128, 42, 62, 0, 0, 0, 0, 0, 0, 20, 62, 85, 85, 61, 60, 3, 0, 128, 2, 62, 0, 128, 14, 62, 0, 0, 244, 61, 171, 170, 108, 61, 0, 0, 241, 61, 171, 170, 189, 61, 2, 0, 0, 26, 62, 0, 0, 131, 62, 3, 0, 0, 134, 61, 0, 0, 114, 62, 0, 0, 238, 61, 171, 170, 120, 62, 0, 0, 180, 61, 0, 0, 114, 62, 3, 0, 0, 0, 0, 0, 0, 152, 62, 171, 170, 178, 60, 0, 0, 114, 62, 0, 0, 128, 34, 85, 85, 131, 62, 3, 0, 0, 216, 60, 0, 0, 177, 62, 0, 0, 0, 0, 171, 170, 162, 62, 0, 0, 16, 60, 0, 0, 171, 62, 3, 0, 0, 175, 61, 0, 0, 186, 62, 85, 85, 53, 61, 0, 0, 183, 62, 0, 0, 131, 61, 0, 0, 186, 62, 3, 0, 0, 40, 62, 0, 128, 167, 62, 171, 170, 225, 61, 0, 0, 186, 62, 171, 170, 11, 62, 85, 213, 179, 62, 2, 0, 128, 92, 62, 0, 128, 23, 63, 2, 0, 64, 160, 62, 0, 128, 30, 63, 2, 0, 64, 132, 62, 0, 0, 174, 62, 3, 0, 192, 176, 62, 0, 128, 192, 62, 85, 21, 149, 62, 0, 0, 182, 62, 171, 234, 163, 62, 171, 42, 188, 62, 3, 0, 64, 213, 62, 0, 64, 199, 62, 85, 149, 189, 62, 0, 0, 197, 62, 0, 192, 201, 62, 0, 64, 199, 62, 3, 0, 128, 225, 62, 0, 0, 195, 62, 0, 192, 218, 62, 0, 64, 199, 62, 85, 213, 222, 62, 85, 213, 197, 62, 3, 0, 64, 232, 62, 0, 64, 182, 62, 171, 42, 228, 62, 171, 42, 192, 62, 171, 106, 230, 62, 171, 234, 187, 62, 3, 0, 64, 242, 62, 0, 64, 191, 62, 85, 21, 237, 62, 171, 234, 186, 62, 171, 106, 240, 62, 171, 234, 189, 62, 3, 0, 64, 252, 62, 0, 64, 196, 62, 85, 21, 244, 62, 0, 192, 192, 62, 171, 106, 247, 62, 171, 106, 194, 62, 3, 0, 192, 6, 63, 0, 64, 199, 62, 0, 160, 0, 63, 0, 64, 198, 62, 0, 128, 3, 63, 0, 64, 199, 62, 3, 0, 160, 20, 63, 0, 192, 187, 62, 171, 234, 11, 63, 0, 64, 199, 62, 171, 138, 16, 63, 171, 106, 195, 62, 3, 0, 224, 26, 63, 0, 192, 159, 62, 171, 202, 24, 63, 0, 64, 180, 62, 0, 224, 26, 63, 171, 234, 170, 62, 3, 0, 64, 23, 63, 0, 128, 128, 62, 0, 224, 26, 63, 0, 64, 147, 62, 171, 170, 25, 63, 85, 213, 136, 62, 3, 0, 0, 12, 63, 0, 0, 104, 62, 171, 234, 20, 63, 85, 85, 112, 62, 171, 42, 17, 63, 0, 0, 104, 62, 3, 0, 128, 1, 63, 0, 128, 115, 62, 171, 42, 7, 63, 0, 0, 104, 62, 171, 170, 3, 63, 85, 213, 107, 62, 3, 0, 192, 252, 62, 0, 64, 139, 62, 85, 213, 254, 62, 171, 42, 123, 62, 0, 192, 252, 62, 171, 106, 131, 62, 3, 0, 224, 1, 63, 0, 64, 155, 62, 0, 192, 252, 62, 85, 149, 145, 62, 85, 21, 255, 62, 171, 234, 150, 62, 3, 0, 0, 11, 63, 0, 192, 161, 62, 85, 53, 4, 63, 85, 149, 159, 62, 0, 64, 7, 63, 0, 192, 161, 62, 3, 0, 96, 16, 63, 0, 0, 167, 62, 85, 149, 14, 63, 0, 192, 161, 62, 0, 96, 16, 63, 0, 128, 163, 62, 3, 0, 32, 13, 63, 0, 0, 175, 62, 0, 96, 16, 63, 0, 128, 169, 62, 171, 74, 15, 63, 171, 42, 172, 62, 3, 0, 0, 6, 63, 0, 64, 179, 62, 85, 245, 10, 63, 85, 213, 177, 62, 85, 149, 8, 63, 0, 64, 179, 62, 3, 0, 64, 238, 62, 0, 128, 155, 62, 171, 42, 251, 62, 0, 64, 179, 62, 0, 64, 241, 62, 85, 85, 171, 62, 1, 0, 128, 32, 62, 0, 128, 149, 62, 3, 0, 0, 178, 61, 0, 128, 170, 62, 0, 128, 6, 62, 0, 128, 163, 62, 85, 85, 221, 61, 0, 128, 170, 62, 3, 0, 0, 62, 61, 0, 192, 165, 62, 171, 170, 144, 61, 0, 128, 170, 62, 0, 0, 106, 61, 171, 234, 168, 62, 3, 0, 0, 252, 60, 0, 0, 152, 62, 85, 85, 19, 61, 85, 149, 162, 62, 0, 0, 252, 60, 0, 0, 158, 62, 3, 0, 0, 28, 61, 0, 64, 141, 62, 0, 0, 252, 60, 85, 85, 147, 62, 0, 0, 8, 61, 0, 192, 143, 62, 3, 0, 0, 134, 61, 0, 128, 137, 62, 0, 0, 48, 61, 0, 192, 138, 62, 85, 85, 85, 61, 0, 128, 137, 62, 3, 0, 128, 32, 62, 0, 128, 149, 62, 85, 85, 183, 61, 0, 128, 137, 62, 171, 170, 245, 61, 0, 128, 141, 62, 1, 0, 0, 105, 62, 0, 128, 58, 62, 2, 0, 128, 82, 62, 0, 0, 140, 61, 3, 0, 128, 92, 62, 0, 0, 6, 61, 171, 42, 78, 62, 171, 170, 54, 61, 0, 128, 81, 62, 0, 0, 6, 61, 3, 0, 0, 119, 62, 0, 0, 96, 61, 0, 128, 102, 62, 0, 0, 6, 61, 85, 85, 111, 62, 0, 0, 36, 61, 3, 0, 128, 129, 62, 0, 0, 213, 61, 0, 0, 127, 62, 0, 0, 142, 61, 0, 128, 129, 62, 171, 170, 175, 61, 3, 0, 0, 105, 62, 0, 128, 58, 62, 0, 128, 129, 62, 0, 0, 247, 61, 85, 85, 122, 62, 171, 42, 22, 62, 112, 0, 0, 0, 0, 64, 38, 63, 0, 0, 0, 0, 45, 0, 0, 0, 1, 0, 192, 240, 62, 0, 0, 0, 0, 3, 0, 64, 196, 62, 0, 0, 188, 60, 0, 64, 225, 62, 0, 0, 0, 0, 171, 106, 210, 62, 171, 170, 250, 59, 3, 0, 192, 158, 62, 0, 0, 162, 61, 85, 21, 182, 62, 0, 0, 30, 61, 85, 149, 169, 62, 171, 170, 106, 61, 3, 0, 0, 128, 62, 0, 128, 20, 62, 85, 21, 148, 62, 85, 85, 207, 61, 85, 213, 137, 62, 85, 85, 252, 61, 3, 0, 0, 66, 62, 0, 0, 78, 62, 85, 85, 108, 62, 171, 42, 43, 62, 171, 170, 87, 62, 85, 85, 62, 62, 3, 0, 128, 3, 62, 0, 0, 102, 62, 171, 170, 44, 62, 0, 0, 94, 62, 85, 213, 23, 62, 0, 0, 102, 62, 3, 0, 0, 151, 61, 0, 0, 82, 62, 85, 85, 220, 61, 0, 0, 102, 62, 0, 0, 183, 61, 85, 85, 95, 62, 3, 0, 0, 80, 61, 0, 0, 34, 62, 85, 85, 111, 61, 0, 0, 69, 62, 0, 0, 80, 61, 0, 0, 53, 62, 3, 0, 0, 98, 61, 0, 0, 14, 62, 0, 0, 80, 61, 0, 0, 24, 62, 0, 0, 86, 61, 85, 85, 17, 62, 3, 0, 0, 139, 61, 0, 0, 9, 62, 85, 85, 111, 61, 171, 170, 10, 62, 85, 85, 128, 61, 0, 0, 9, 62, 3, 0, 0, 165, 61, 0, 128, 9, 62, 171, 170, 143, 61, 0, 0, 9, 62, 85, 85, 152, 61, 171, 42, 9, 62, 3, 0, 0, 198, 61, 0, 0, 10, 62, 85, 85, 178, 61, 85, 213, 9, 62, 85, 85, 189, 61, 0, 0, 10, 62, 3, 0, 0, 27, 62, 0, 0, 233, 61, 85, 85, 249, 61, 0, 0, 10, 62, 85, 85, 15, 62, 85, 213, 2, 62, 3, 0, 128, 44, 62, 0, 0, 147, 61, 171, 170, 38, 62, 0, 0, 205, 61, 0, 128, 44, 62, 85, 85, 176, 61, 3, 0, 0, 22, 62, 0, 0, 168, 60, 0, 128, 44, 62, 85, 85, 83, 61, 0, 0, 37, 62, 85, 85, 13, 61, 3, 0, 0, 203, 61, 0, 0, 0, 0, 0, 0, 7, 62, 0, 0, 224, 59, 171, 170, 237, 61, 0, 0, 0, 0, 3, 0, 0, 220, 60, 0, 0, 20, 61, 171, 170, 141, 61, 0, 0, 0, 0, 171, 170, 56, 61, 85, 85, 69, 60, 3, 0, 0, 0, 0, 0, 0, 28, 62, 171, 170, 18, 60, 0, 0, 120, 61, 0, 0, 0, 34, 85, 85, 203, 61, 3, 0, 0, 88, 60, 0, 128, 90, 62, 0, 0, 0, 0, 85, 85, 51, 62, 0, 0, 144, 59, 171, 42, 72, 62, 3, 0, 0, 62, 61, 0, 64, 131, 62, 171, 170, 182, 60, 85, 213, 108, 62, 171, 170, 8, 61, 0, 128, 123, 62, 3, 0, 0, 188, 61, 0, 0, 145, 62, 171, 170, 116, 61, 171, 234, 136, 62, 85, 85, 153, 61, 0, 128, 141, 62, 3, 0, 128, 14, 62, 0, 64, 152, 62, 85, 85, 223, 61, 0, 128, 148, 62, 171, 170, 255, 61, 171, 234, 150, 62, 3, 0, 0, 56, 62, 0, 128, 154, 62, 171, 42, 29, 62, 0, 192, 153, 62, 0, 0, 43, 62, 0, 128, 154, 62, 3, 0, 64, 131, 62, 0, 192, 145, 62, 0, 0, 83, 62, 0, 128, 154, 62, 171, 42, 109, 62, 85, 149, 151, 62, 3, 0, 0, 164, 62, 0, 0, 121, 62, 171, 234, 143, 62, 85, 21, 140, 62, 85, 213, 154, 62, 0, 0, 133, 62, 3, 0, 192, 191, 62, 0, 128, 65, 62, 171, 42, 173, 62, 0, 0, 104, 62, 171, 106, 182, 62, 0, 128, 85, 62, 3, 0, 0, 217, 62, 0, 0, 10, 62, 0, 64, 201, 62, 0, 128, 45, 62, 171, 170, 209, 62, 0, 0, 27, 62, 3, 0, 64, 241, 62, 0, 0, 191, 61, 0, 128, 224, 62, 171, 170, 242, 61, 85, 149, 232, 62, 85, 85, 214, 61, 3, 0, 128, 5, 63, 0, 0, 157, 61, 85, 21, 250, 62, 85, 85, 168, 61, 85, 85, 1, 63, 0, 0, 157, 61, 3, 0, 32, 19, 63, 0, 0, 196, 61, 0, 128, 10, 63, 0, 0, 157, 61, 171, 10, 15, 63, 0, 0, 170, 61, 3, 0, 96, 25, 63, 0, 0, 18, 62, 171, 74, 23, 63, 171, 170, 222, 61, 0, 96, 25, 63, 171, 170, 254, 61, 3, 0, 64, 24, 63, 0, 128, 38, 62, 0, 96, 25, 63, 171, 170, 28, 62, 0, 0, 25, 63, 0, 128, 35, 62, 3, 0, 0, 21, 63, 0, 0, 43, 62, 0, 128, 23, 63, 0, 128, 41, 62, 171, 106, 22, 63, 0, 0, 43, 62, 3, 0, 160, 17, 63, 0, 128, 42, 62, 171, 106, 20, 63, 0, 0, 43, 62, 171, 74, 19, 63, 85, 213, 42, 62, 3, 0, 160, 13, 63, 0, 0, 42, 62, 85, 245, 15, 63, 171, 42, 42, 62, 0, 160, 14, 63, 0, 0, 42, 62, 3, 0, 0, 255, 62, 0, 0, 63, 62, 0, 32, 7, 63, 0, 0, 42, 62, 171, 106, 2, 63, 0, 0, 49, 62, 3, 0, 64, 246, 62, 0, 0, 107, 62, 171, 42, 249, 62, 85, 85, 77, 62, 0, 64, 246, 62, 0, 0, 92, 62, 3, 0, 192, 0, 63, 0, 192, 143, 62, 0, 64, 246, 62, 171, 170, 127, 62, 0, 0, 250, 62, 85, 149, 136, 62, 3, 0, 0, 13, 63, 0, 128, 154, 62, 0, 128, 4, 63, 171, 234, 150, 62, 85, 149, 8, 63, 0, 128, 154, 62, 3, 0, 64, 31, 63, 0, 192, 135, 62, 85, 149, 20, 63, 0, 128, 154, 62, 171, 170, 26, 63, 0, 64, 148, 62, 3, 0, 64, 38, 63, 0, 128, 24, 62, 171, 234, 35, 63, 85, 213, 118, 62, 0, 64, 38, 63, 171, 42, 79, 62, 3, 0, 64, 33, 63, 0, 0, 155, 61, 0, 64, 38, 63, 171, 170, 247, 61, 85, 149, 36, 63, 171, 170, 197, 61, 3, 0, 160, 20, 63, 0, 0, 240, 60, 171, 234, 29, 63, 171, 170, 96, 61, 85, 181, 25, 63, 85, 85, 33, 61, 3, 0, 224, 5, 63, 0, 0, 224, 59, 171, 138, 15, 63, 85, 85, 157, 60, 0, 160, 10, 63, 0, 0, 64, 60, 3, 0, 192, 240, 62, 0, 0, 0, 0, 0, 32, 1, 63, 85, 85, 21, 59, 0, 64, 249, 62, 0, 0, 192, 33, 113, 0, 0, 0, 0, 64, 38, 63, 0, 0, 0, 0, 47, 0, 0, 0, 1, 0, 0, 56, 62, 0, 0, 0, 0, 3, 0, 128, 1, 62, 0, 0, 224, 59, 171, 170, 38, 62, 0, 0, 0, 0, 0, 128, 20, 62, 85, 85, 21, 59, 3, 0, 0, 141, 61, 0, 0, 240, 60, 171, 170, 221, 61, 0, 0, 64, 60, 85, 85, 182, 61, 85, 85, 157, 60, 3, 0, 0, 160, 60, 0, 0, 155, 61, 171, 170, 72, 61, 85, 85, 33, 61, 85, 85, 5, 61, 171, 170, 96, 61, 3, 0, 0, 0, 0, 0, 128, 24, 62, 85, 85, 213, 59, 171, 170, 197, 61, 0, 0, 64, 34, 171, 170, 247, 61, 3, 0, 0, 220, 60, 0, 192, 135, 62, 0, 0, 0, 0, 171, 42, 79, 62, 171, 170, 18, 60, 85, 213, 118, 62, 3, 0, 0, 203, 61, 0, 128, 154, 62, 171, 170, 56, 61, 0, 64, 148, 62, 171, 170, 141, 61, 0, 128, 154, 62, 3, 0, 0, 22, 62, 0, 192, 143, 62, 171, 170, 237, 61, 0, 128, 154, 62, 0, 0, 7, 62, 171, 234, 150, 62, 3, 0, 128, 44, 62, 0, 0, 107, 62, 0, 0, 37, 62, 85, 149, 136, 62, 0, 128, 44, 62, 171, 170, 127, 62, 3, 0, 0, 27, 62, 0, 0, 63, 62, 0, 128, 44, 62, 0, 0, 92, 62, 171, 170, 38, 62, 85, 85, 77, 62, 3, 0, 0, 198, 61, 0, 0, 42, 62, 85, 85, 15, 62, 0, 0, 49, 62, 85, 85, 249, 61, 0, 0, 42, 62, 3, 0, 0, 165, 61, 0, 128, 42, 62, 85, 85, 189, 61, 0, 0, 42, 62, 85, 85, 178, 61, 171, 42, 42, 62, 3, 0, 0, 139, 61, 0, 0, 43, 62, 171, 170, 151, 61, 85, 213, 42, 62, 0, 0, 143, 61, 0, 0, 43, 62, 3, 0, 0, 114, 61, 0, 128, 41, 62, 171, 170, 131, 61, 0, 0, 43, 62, 85, 85, 123, 61, 0, 128, 42, 62, 3, 0, 0, 90, 61, 0, 128, 34, 62, 0, 0, 106, 61, 85, 213, 40, 62, 0, 0, 98, 61, 0, 128, 38, 62, 3, 0, 0, 80, 61, 0, 0, 18, 62, 85, 85, 83, 61, 85, 213, 30, 62, 0, 0, 80, 61, 85, 85, 25, 62, 3, 0, 0, 153, 61, 0, 0, 196, 61, 0, 0, 80, 61, 171, 170, 254, 61, 171, 170, 112, 61, 171, 170, 222, 61, 3, 0, 128, 3, 62, 0, 0, 157, 61, 85, 85, 186, 61, 0, 0, 170, 61, 0, 0, 223, 61, 0, 0, 157, 61, 3, 0, 128, 54, 62, 0, 0, 191, 61, 171, 42, 20, 62, 0, 0, 157, 61, 171, 42, 37, 62, 85, 85, 168, 61, 3, 0, 0, 103, 62, 0, 0, 10, 62, 171, 42, 72, 62, 85, 85, 214, 61, 85, 85, 88, 62, 171, 170, 242, 61, 3, 0, 128, 140, 62, 0, 128, 65, 62, 171, 170, 117, 62, 0, 0, 27, 62, 171, 42, 131, 62, 0, 128, 45, 62, 3, 0, 128, 168, 62, 0, 0, 121, 62, 0, 0, 150, 62, 0, 128, 85, 62, 85, 85, 159, 62, 0, 0, 104, 62, 3, 0, 64, 201, 62, 0, 192, 145, 62, 171, 170, 177, 62, 0, 0, 133, 62, 85, 149, 188, 62, 85, 21, 140, 62, 3, 0, 192, 240, 62, 0, 128, 154, 62, 171, 234, 213, 62, 85, 149, 151, 62, 85, 21, 227, 62, 0, 128, 154, 62, 3, 0, 160, 2, 63, 0, 64, 152, 62, 85, 21, 247, 62, 0, 128, 154, 62, 171, 234, 253, 62, 0, 192, 153, 62, 3, 0, 160, 14, 63, 0, 0, 145, 62, 171, 74, 6, 63, 171, 234, 150, 62, 171, 74, 10, 63, 0, 128, 148, 62, 3, 0, 64, 26, 63, 0, 64, 131, 62, 171, 10, 19, 63, 0, 128, 141, 62, 171, 234, 22, 63, 171, 234, 136, 62, 3, 0, 192, 34, 63, 0, 128, 90, 62, 171, 170, 29, 63, 0, 128, 123, 62, 0, 128, 32, 63, 85, 213, 108, 62, 3, 0, 64, 38, 63, 0, 0, 28, 62, 85, 21, 37, 63, 171, 42, 72, 62, 0, 64, 38, 63, 85, 85, 51, 62, 3, 0, 64, 31, 63, 0, 0, 20, 61, 0, 64, 38, 63, 85, 85, 203, 61, 171, 234, 35, 63, 0, 0, 120, 61, 3, 0, 0, 13, 63, 0, 0, 0, 0, 171, 170, 26, 63, 85, 85, 69, 60, 85, 149, 20, 63, 0, 0, 192, 34, 3, 0, 192, 0, 63, 0, 0, 168, 60, 85, 149, 8, 63, 0, 0, 0, 0, 0, 128, 4, 63, 0, 0, 224, 59, 3, 0, 64, 246, 62, 0, 0, 147, 61, 0, 0, 250, 62, 85, 85, 13, 61, 0, 64, 246, 62, 85, 85, 83, 61, 3, 0, 0, 255, 62, 0, 0, 233, 61, 0, 64, 246, 62, 85, 85, 176, 61, 171, 42, 249, 62, 0, 0, 205, 61, 3, 0, 160, 13, 63, 0, 0, 10, 62, 171, 106, 2, 63, 85, 213, 2, 62, 0, 32, 7, 63, 0, 0, 10, 62, 3, 0, 128, 17, 63, 0, 128, 9, 62, 0, 160, 14, 63, 0, 0, 10, 62, 171, 234, 15, 63, 85, 213, 9, 62, 3, 0, 0, 21, 63, 0, 0, 9, 62, 171, 42, 19, 63, 171, 42, 9, 62, 85, 85, 20, 63, 0, 0, 9, 62, 3, 0, 0, 23, 63, 0, 0, 10, 62, 85, 213, 21, 63, 0, 0, 9, 62, 0, 128, 22, 63, 85, 85, 9, 62, 3, 0, 160, 24, 63, 0, 0, 17, 62, 85, 149, 23, 63, 0, 0, 11, 62, 0, 32, 24, 63, 85, 85, 13, 62, 3, 0, 96, 25, 63, 0, 0, 34, 62, 0, 32, 25, 63, 0, 0, 21, 62, 0, 96, 25, 63, 171, 170, 26, 62, 3, 0, 96, 19, 63, 0, 0, 82, 62, 0, 96, 25, 63, 0, 0, 53, 62, 0, 96, 23, 63, 0, 0, 69, 62, 3, 0, 128, 5, 63, 0, 0, 102, 62, 85, 117, 15, 63, 85, 85, 95, 62, 85, 213, 10, 63, 0, 0, 102, 62, 3, 0, 128, 235, 62, 0, 0, 78, 62, 85, 85, 0, 63, 0, 0, 102, 62, 171, 42, 246, 62, 0, 0, 94, 62, 3, 0, 128, 204, 62, 0, 128, 20, 62, 85, 213, 224, 62, 85, 85, 62, 62, 0, 128, 214, 62, 171, 42, 43, 62, 3, 0, 128, 173, 62, 0, 0, 162, 61, 171, 170, 194, 62, 85, 85, 252, 61, 85, 85, 184, 62, 85, 85, 207, 61, 3, 0, 64, 136, 62, 0, 0, 188, 60, 85, 213, 162, 62, 171, 170, 106, 61, 171, 106, 150, 62, 0, 0, 30, 61, 3, 0, 0, 56, 62, 0, 0, 0, 0, 171, 42, 116, 62, 171, 170, 250, 59, 171, 170, 86, 62, 0, 0, 128, 33, 114, 0, 0, 0, 0, 0, 134, 62, 0, 0, 0, 0, 18, 0, 0, 0, 1, 0, 0, 43, 62, 0, 0, 210, 189, 3, 0, 0, 234, 61, 0, 0, 224, 189, 0, 0, 31, 62, 171, 170, 224, 189, 0, 0, 13, 62, 85, 85, 229, 189, 3, 0, 0, 54, 61, 0, 0, 153, 189, 0, 0, 186, 61, 171, 170, 218, 189, 85, 85, 138, 61, 0, 0, 195, 189, 3, 0, 0, 32, 60, 0, 0, 0, 0, 171, 170, 174, 60, 0, 0, 94, 189, 0, 0, 32, 60, 0, 0, 240, 188, 3, 0, 0, 54, 61, 0, 0, 151, 61, 0, 0, 32, 60, 171, 170, 234, 60, 171, 170, 174, 60, 0, 0, 90, 61, 3, 0, 0, 4, 62, 0, 0, 214, 61, 85, 85, 138, 61, 0, 0, 193, 61, 0, 0, 196, 61, 0, 0, 214, 61, 3, 0, 0, 89, 62, 0, 0, 158, 61, 85, 85, 37, 62, 0, 0, 214, 61, 171, 170, 65, 62, 85, 85, 195, 61, 3, 0, 192, 128, 62, 0, 0, 216, 60, 85, 85, 106, 62, 85, 85, 121, 61, 85, 213, 119, 62, 0, 0, 52, 61, 3, 0, 192, 133, 62, 0, 0, 54, 189, 85, 149, 133, 62, 0, 0, 16, 60, 0, 64, 135, 62, 171, 170, 114, 188, 3, 0, 0, 111, 62, 0, 0, 11, 190, 0, 64, 132, 62, 171, 170, 151, 189, 0, 0, 127, 62, 0, 0, 214, 189, 3, 0, 128, 41, 62, 0, 0, 99, 190, 0, 0, 95, 62, 0, 0, 43, 190, 85, 213, 71, 62, 85, 85, 72, 190, 3, 0, 0, 140, 61, 0, 0, 141, 190, 171, 42, 11, 62, 171, 170, 125, 190, 0, 0, 212, 61, 0, 0, 136, 190, 3, 0, 0, 0, 60, 0, 128, 146, 190, 0, 0, 8, 61, 0, 0, 146, 190, 85, 85, 85, 60, 85, 213, 147, 190, 3, 0, 0, 176, 59, 0, 64, 140, 190, 171, 170, 42, 59, 171, 42, 145, 190, 171, 170, 234, 58, 85, 21, 143, 190, 3, 0, 0, 32, 61, 0, 0, 132, 190, 171, 170, 18, 60, 171, 106, 137, 190, 85, 85, 165, 60, 171, 170, 134, 190, 3, 0, 0, 185, 61, 0, 128, 108, 190, 85, 85, 109, 61, 85, 85, 129, 190, 171, 170, 153, 61, 0, 128, 121, 190, 3, 0, 128, 8, 62, 0, 0, 63, 190, 85, 85, 216, 61, 0, 128, 95, 190, 171, 170, 245, 61, 85, 85, 80, 190, 3, 0, 0, 43, 62, 0, 0, 210, 189, 171, 42, 22, 62, 171, 170, 45, 190, 171, 170, 33, 62, 0, 0, 17, 190, 115, 0, 0, 0, 0, 0, 251, 62, 0, 0, 0, 0, 24, 0, 0, 0, 1, 0, 128, 60, 62, 0, 0, 122, 61, 3, 0, 0, 79, 62, 0, 0, 213, 61, 0, 128, 60, 62, 171, 170, 159, 61, 171, 170, 66, 62, 0, 0, 189, 61, 3, 0, 0, 123, 62, 0, 0, 250, 61, 85, 85, 91, 62, 171, 170, 237, 61, 0, 0, 106, 62, 0, 0, 250, 61, 3, 0, 128, 147, 62, 0, 0, 213, 61, 171, 42, 134, 62, 0, 0, 250, 61, 0, 128, 141, 62, 171, 170, 237, 61, 3, 0, 192, 156, 62, 0, 0, 122, 61, 171, 170, 153, 62, 0, 0, 189, 61, 0, 192, 156, 62, 171, 170, 159, 61, 3, 0, 128, 147, 62, 0, 0, 144, 60, 0, 192, 156, 62, 171, 170, 52, 61, 171, 170, 153, 62, 171, 170, 242, 60, 3, 0, 0, 123, 62, 0, 0, 0, 0, 0, 128, 141, 62, 0, 0, 192, 59, 171, 42, 134, 62, 0, 0, 0, 0, 3, 0, 0, 79, 62, 0, 0, 144, 60, 0, 0, 106, 62, 0, 0, 0, 0, 85, 85, 91, 62, 0, 0, 192, 59, 3, 0, 128, 60, 62, 0, 0, 122, 61, 171, 170, 66, 62, 171, 170, 242, 60, 0, 128, 60, 62, 171, 170, 52, 61, 1, 0, 0, 123, 62, 0, 128, 151, 62, 3, 0, 64, 206, 62, 0, 128, 107, 62, 171, 42, 160, 62, 0, 0, 150, 62, 85, 21, 187, 62, 0, 192, 138, 62, 3, 0, 0, 243, 62, 0, 0, 218, 61, 171, 106, 225, 62, 0, 128, 65, 62, 171, 170, 237, 62, 85, 85, 23, 62, 3, 0, 192, 245, 62, 0, 0, 208, 60, 85, 85, 248, 62, 0, 0, 134, 61, 0, 64, 249, 62, 85, 85, 29, 61, 3, 0, 192, 231, 62, 0, 0, 132, 60, 0, 64, 242, 62, 0, 0, 80, 60, 85, 149, 237, 62, 85, 85, 29, 60, 3, 0, 128, 216, 62, 0, 0, 145, 61, 171, 234, 225, 62, 0, 0, 188, 60, 85, 213, 220, 62, 171, 170, 40, 61, 3, 0, 0, 188, 62, 0, 128, 34, 62, 85, 85, 212, 62, 171, 170, 205, 61, 85, 213, 202, 62, 85, 213, 4, 62, 3, 0, 0, 123, 62, 0, 128, 84, 62, 85, 85, 173, 62, 171, 42, 64, 62, 0, 128, 152, 62, 85, 213, 80, 62, 3, 0, 0, 251, 61, 0, 128, 34, 62, 0, 0, 69, 62, 85, 213, 80, 62, 171, 42, 27, 62, 171, 42, 64, 62, 3, 0, 0, 137, 61, 0, 0, 145, 61, 85, 85, 192, 61, 85, 213, 4, 62, 85, 85, 154, 61, 171, 170, 205, 61, 3, 0, 0, 26, 61, 0, 0, 132, 60, 171, 170, 112, 61, 171, 170, 40, 61, 171, 170, 72, 61, 0, 0, 188, 60, 3, 0, 0, 40, 60, 0, 0, 208, 60, 171, 170, 214, 60, 85, 85, 29, 60, 0, 0, 140, 60, 0, 0, 80, 60, 3, 0, 0, 128, 60, 0, 0, 218, 61, 0, 0, 96, 59, 85, 85, 29, 61, 171, 170, 170, 59, 0, 0, 134, 61, 3, 0, 0, 179, 61, 0, 128, 107, 62, 85, 85, 213, 60, 85, 85, 23, 62, 171, 170, 76, 61, 0, 128, 65, 62, 3, 0, 0, 123, 62, 0, 128, 151, 62, 171, 170, 255, 61, 0, 192, 138, 62, 171, 170, 53, 62, 0, 0, 150, 62, 116, 0, 0, 0, 0, 64, 114, 63, 0, 0, 0, 0, 110, 0, 0, 0, 1, 0, 128, 247, 62, 0, 128, 30, 62, 3, 0, 224, 1, 63, 0, 0, 36, 62, 85, 213, 251, 62, 0, 128, 27, 62, 171, 234, 255, 62, 85, 85, 29, 62, 3, 0, 160, 1, 63, 0, 0, 78, 62, 171, 202, 3, 63, 171, 170, 42, 62, 85, 181, 3, 63, 171, 170, 56, 62, 3, 0, 0, 247, 62, 0, 0, 110, 62, 85, 21, 255, 62, 85, 85, 99, 62, 0, 0, 251, 62, 0, 0, 110, 62, 3, 0, 128, 238, 62, 0, 128, 95, 62, 0, 0, 243, 62, 0, 0, 110, 62, 171, 42, 240, 62, 171, 42, 105, 62, 3, 0, 128, 238, 62, 0, 0, 58, 62, 85, 213, 236, 62, 85, 213, 85, 62, 85, 213, 236, 62, 85, 85, 73, 62, 3, 0, 128, 247, 62, 0, 128, 30, 62, 171, 42, 240, 62, 171, 170, 42, 62, 171, 42, 243, 62, 0, 128, 33, 62, 1, 0, 64, 52, 63, 0, 0, 170, 61, 3, 0, 192, 66, 63, 0, 0, 28, 61, 0, 64, 58, 63, 171, 170, 38, 61, 85, 21, 63, 63, 171, 170, 210, 60, 3, 0, 32, 72, 63, 0, 0, 195, 61, 171, 106, 70, 63, 171, 170, 78, 61, 85, 53, 72, 63, 85, 85, 142, 61, 3, 0, 64, 61, 63, 0, 128, 85, 62, 171, 10, 72, 63, 171, 170, 247, 61, 171, 106, 68, 63, 0, 128, 34, 62, 3, 0, 224, 46, 63, 0, 0, 92, 62, 85, 21, 54, 63, 0, 64, 132, 62, 171, 74, 49, 63, 85, 85, 133, 62, 3, 0, 64, 52, 63, 0, 0, 170, 61, 85, 117, 44, 63, 85, 85, 45, 62, 0, 64, 46, 63, 85, 85, 0, 62, 1, 0, 0, 111, 63, 0, 0, 152, 61, 3, 0, 64, 114, 63, 0, 0, 48, 61, 171, 42, 113, 63, 171, 170, 134, 61, 0, 64, 114, 63, 171, 170, 98, 61, 3, 0, 0, 111, 63, 0, 0, 80, 60, 0, 64, 114, 63, 0, 0, 0, 61, 171, 42, 113, 63, 85, 85, 173, 60, 3, 0, 64, 103, 63, 0, 0, 0, 0, 85, 213, 108, 63, 171, 170, 138, 59, 0, 64, 106, 63, 0, 0, 128, 33, 3, 0, 128, 95, 63, 0, 0, 80, 60, 0, 64, 100, 63, 0, 0, 0, 0, 171, 170, 97, 63, 171, 170, 138, 59, 3, 0, 64, 92, 63, 0, 0, 48, 61, 85, 85, 93, 63, 85, 85, 173, 60, 0, 64, 92, 63, 0, 0, 0, 61, 3, 0, 128, 95, 63, 0, 0, 152, 61, 0, 64, 92, 63, 171, 170, 98, 61, 85, 85, 93, 63, 171, 170, 134, 61, 3, 0, 64, 103, 63, 0, 0, 178, 61, 171, 170, 97, 63, 85, 85, 169, 61, 0, 64, 100, 63, 0, 0, 178, 61, 3, 0, 0, 111, 63, 0, 0, 152, 61, 0, 64, 106, 63, 0, 0, 178, 61, 85, 213, 108, 63, 85, 85, 169, 61, 1, 0, 128, 194, 62, 0, 0, 239, 62, 3, 0, 0, 184, 62, 0, 0, 0, 63, 0, 128, 195, 62, 0, 0, 244, 62, 0, 0, 192, 62, 171, 170, 249, 62, 3, 0, 192, 160, 62, 0, 160, 4, 63, 0, 0, 176, 62, 171, 42, 3, 63, 0, 64, 168, 62, 85, 181, 4, 63, 3, 0, 0, 144, 62, 0, 192, 255, 62, 0, 64, 153, 62, 171, 138, 4, 63, 171, 170, 147, 62, 85, 245, 2, 63, 3, 0, 192, 160, 62, 0, 192, 192, 62, 85, 85, 140, 62, 85, 149, 249, 62, 171, 234, 145, 62, 85, 149, 228, 62, 3, 0, 0, 180, 62, 0, 128, 116, 62, 85, 149, 175, 62, 171, 234, 156, 62, 0, 0, 182, 62, 171, 106, 133, 62, 3, 0, 64, 166, 62, 0, 0, 40, 62, 0, 0, 178, 62, 171, 42, 94, 62, 171, 106, 173, 62, 171, 170, 68, 62, 3, 0, 0, 172, 62, 0, 0, 208, 61, 85, 21, 159, 62, 85, 85, 11, 62, 0, 0, 161, 62, 0, 0, 236, 61, 3, 0, 192, 200, 62, 0, 0, 174, 61, 0, 0, 183, 62, 0, 0, 180, 61, 85, 149, 192, 62, 171, 170, 168, 61, 3, 0, 0, 211, 62, 0, 0, 247, 61, 171, 234, 208, 62, 85, 85, 179, 61, 85, 85, 212, 62, 171, 170, 203, 61, 3, 0, 64, 210, 62, 0, 0, 55, 62, 171, 170, 209, 62, 171, 42, 17, 62, 171, 106, 209, 62, 0, 0, 37, 62, 3, 0, 64, 222, 62, 0, 0, 115, 62, 85, 21, 211, 62, 0, 0, 73, 62, 85, 21, 215, 62, 0, 0, 93, 62, 3, 0, 128, 254, 62, 0, 64, 139, 62, 171, 106, 229, 62, 0, 128, 132, 62, 171, 42, 240, 62, 171, 106, 138, 62, 3, 0, 192, 14, 63, 0, 128, 128, 62, 171, 106, 6, 63, 85, 21, 140, 62, 85, 149, 11, 63, 0, 128, 136, 62, 3, 0, 0, 18, 63, 0, 128, 69, 62, 171, 234, 17, 63, 0, 0, 113, 62, 0, 0, 19, 63, 171, 42, 93, 62, 3, 0, 32, 9, 63, 0, 128, 0, 62, 0, 0, 17, 63, 85, 213, 45, 62, 171, 10, 14, 63, 85, 213, 22, 62, 3, 0, 128, 3, 63, 0, 0, 152, 61, 85, 53, 4, 63, 85, 85, 212, 61, 85, 85, 2, 63, 85, 85, 177, 61, 3, 0, 96, 10, 63, 0, 0, 92, 61, 171, 170, 4, 63, 85, 85, 125, 61, 85, 245, 6, 63, 85, 85, 97, 61, 3, 0, 96, 19, 63, 0, 0, 154, 61, 171, 202, 13, 63, 171, 170, 86, 61, 171, 202, 16, 63, 0, 0, 116, 61, 3, 0, 192, 24, 63, 0, 0, 249, 61, 85, 245, 21, 63, 0, 0, 186, 61, 0, 192, 23, 63, 171, 170, 217, 61, 3, 0, 224, 29, 63, 0, 0, 49, 62, 0, 192, 25, 63, 171, 42, 12, 62, 85, 117, 27, 63, 171, 170, 29, 62, 3, 0, 224, 39, 63, 0, 0, 110, 62, 171, 74, 32, 63, 85, 85, 68, 62, 0, 160, 35, 63, 171, 170, 88, 62, 3, 0, 224, 47, 63, 0, 64, 139, 62, 0, 32, 44, 63, 171, 170, 129, 62, 171, 202, 46, 63, 171, 106, 136, 62, 3, 0, 0, 44, 63, 0, 64, 157, 62, 85, 245, 48, 63, 85, 21, 142, 62, 171, 170, 47, 63, 85, 21, 148, 62, 3, 0, 32, 29, 63, 0, 128, 179, 62, 85, 85, 40, 63, 171, 106, 166, 62, 0, 96, 35, 63, 85, 213, 173, 62, 3, 0, 160, 11, 63, 0, 64, 189, 62, 0, 224, 22, 63, 171, 42, 185, 62, 171, 10, 17, 63, 171, 106, 188, 62, 3, 0, 192, 0, 63, 0, 128, 196, 62, 85, 53, 6, 63, 85, 21, 190, 62, 85, 149, 2, 63, 0, 128, 192, 62, 3, 0, 64, 254, 62, 0, 192, 207, 62, 85, 213, 253, 62, 0, 128, 200, 62, 0, 192, 252, 62, 0, 64, 204, 62, 3, 0, 96, 15, 63, 0, 0, 210, 62, 0, 192, 255, 62, 0, 64, 211, 62, 171, 74, 5, 63, 0, 0, 212, 62, 3, 0, 64, 45, 63, 0, 64, 191, 62, 85, 117, 25, 63, 0, 0, 208, 62, 171, 106, 35, 63, 0, 192, 201, 62, 3, 0, 128, 68, 63, 0, 0, 153, 62, 85, 21, 55, 63, 0, 192, 180, 62, 85, 213, 62, 63, 0, 0, 168, 62, 3, 0, 160, 81, 63, 0, 128, 79, 62, 171, 42, 74, 63, 0, 0, 138, 62, 171, 138, 78, 63, 171, 42, 115, 62, 3, 0, 32, 86, 63, 0, 0, 243, 61, 85, 181, 84, 63, 85, 213, 43, 62, 85, 53, 86, 63, 171, 42, 15, 62, 3, 0, 32, 82, 63, 0, 0, 118, 61, 171, 10, 86, 63, 171, 170, 199, 61, 85, 181, 84, 63, 171, 170, 159, 61, 3, 0, 192, 72, 63, 0, 0, 156, 60, 171, 138, 79, 63, 171, 170, 44, 61, 171, 106, 76, 63, 85, 85, 233, 60, 3, 0, 32, 59, 63, 0, 0, 0, 59, 85, 21, 69, 63, 85, 85, 29, 60, 171, 138, 64, 63, 0, 0, 128, 59, 3, 0, 160, 44, 63, 0, 0, 96, 60, 85, 181, 53, 63, 0, 0, 0, 0, 0, 224, 48, 63, 0, 0, 128, 59, 3, 0, 160, 33, 63, 0, 0, 40, 61, 0, 96, 40, 63, 0, 0, 192, 60, 85, 181, 36, 63, 85, 85, 5, 61, 3, 0, 32, 25, 63, 0, 0, 28, 61, 171, 138, 30, 63, 171, 170, 74, 61, 85, 181, 27, 63, 171, 170, 70, 61, 3, 0, 224, 15, 63, 0, 0, 56, 60, 171, 138, 22, 63, 171, 170, 226, 60, 85, 117, 19, 63, 85, 85, 153, 60, 3, 0, 224, 2, 63, 0, 0, 0, 58, 171, 74, 12, 63, 85, 85, 117, 59, 85, 245, 7, 63, 171, 170, 42, 57, 3, 0, 128, 231, 62, 0, 0, 160, 60, 85, 149, 251, 62, 85, 85, 85, 58, 0, 128, 241, 62, 171, 170, 234, 59, 3, 0, 192, 211, 62, 0, 0, 42, 61, 0, 128, 221, 62, 171, 170, 2, 61, 171, 234, 214, 62, 171, 170, 32, 61, 3, 0, 64, 200, 62, 0, 0, 252, 60, 85, 149, 208, 62, 85, 85, 51, 61, 0, 192, 204, 62, 171, 170, 36, 61, 3, 0, 64, 184, 62, 0, 0, 32, 60, 0, 192, 195, 62, 171, 170, 174, 60, 171, 106, 190, 62, 171, 170, 106, 60, 3, 0, 64, 165, 62, 0, 0, 96, 59, 85, 21, 178, 62, 171, 170, 170, 59, 0, 192, 171, 62, 171, 170, 74, 59, 3, 0, 128, 145, 62, 0, 0, 248, 60, 0, 192, 158, 62, 85, 85, 117, 59, 171, 42, 152, 62, 0, 0, 80, 60, 3, 0, 128, 129, 62, 0, 0, 116, 61, 85, 213, 138, 62, 0, 0, 68, 61, 0, 128, 133, 62, 0, 0, 108, 61, 3, 0, 128, 90, 62, 0, 0, 22, 61, 0, 0, 123, 62, 0, 0, 124, 61, 0, 128, 109, 62, 171, 170, 92, 61, 3, 0, 128, 40, 62, 0, 0, 160, 59, 0, 128, 71, 62, 171, 170, 158, 60, 85, 213, 54, 62, 0, 0, 16, 60, 3, 0, 128, 1, 62, 0, 0, 64, 59, 171, 42, 26, 62, 0, 0, 128, 58, 171, 42, 13, 62, 171, 170, 170, 57, 3, 0, 0, 223, 61, 0, 0, 204, 60, 171, 170, 235, 61, 85, 85, 181, 59, 171, 170, 223, 61, 171, 170, 82, 60, 3, 0, 128, 5, 62, 0, 0, 137, 61, 85, 85, 222, 61, 85, 85, 23, 61, 0, 0, 237, 61, 171, 170, 80, 61, 3, 0, 0, 55, 62, 0, 0, 210, 61, 0, 128, 20, 62, 171, 170, 169, 61, 0, 0, 37, 62, 0, 0, 194, 61, 3, 0, 0, 98, 62, 0, 0, 239, 61, 0, 0, 73, 62, 0, 0, 226, 61, 85, 85, 87, 62, 171, 170, 235, 61, 3, 0, 0, 130, 62, 0, 0, 25, 62, 171, 170, 108, 62, 85, 85, 242, 61, 0, 0, 120, 62, 85, 85, 4, 62, 3, 0, 192, 139, 62, 0, 0, 69, 62, 0, 0, 136, 62, 171, 170, 45, 62, 0, 64, 139, 62, 85, 85, 60, 62, 3, 0, 128, 109, 62, 0, 128, 140, 62, 0, 64, 140, 62, 171, 170, 77, 62, 0, 64, 133, 62, 171, 170, 105, 62, 3, 0, 128, 63, 62, 0, 0, 182, 62, 0, 128, 80, 62, 171, 42, 164, 62, 171, 42, 65, 62, 0, 0, 178, 62, 3, 0, 0, 66, 62, 0, 0, 193, 62, 85, 213, 61, 62, 0, 0, 186, 62, 171, 170, 62, 62, 171, 170, 189, 62, 3, 0, 128, 82, 62, 0, 0, 215, 62, 85, 85, 69, 62, 85, 85, 196, 62, 85, 213, 74, 62, 171, 170, 203, 62, 3, 0, 128, 100, 62, 0, 128, 252, 62, 171, 42, 90, 62, 85, 85, 226, 62, 171, 42, 96, 62, 85, 213, 238, 62, 3, 0, 128, 85, 62, 0, 160, 8, 63, 85, 213, 104, 62, 85, 21, 5, 63, 85, 213, 99, 62, 171, 138, 8, 63, 3, 0, 0, 44, 62, 0, 224, 4, 63, 171, 42, 71, 62, 85, 181, 8, 63, 85, 85, 57, 62, 85, 117, 7, 63, 3, 0, 128, 11, 62, 0, 192, 248, 62, 171, 170, 30, 62, 171, 74, 2, 63, 85, 213, 19, 62, 171, 234, 254, 62, 3, 0, 0, 241, 61, 0, 0, 228, 62, 171, 42, 3, 62, 85, 149, 242, 62, 171, 170, 249, 61, 171, 170, 235, 62, 3, 0, 0, 251, 61, 0, 0, 214, 62, 85, 85, 232, 61, 85, 85, 220, 62, 171, 170, 235, 61, 171, 170, 215, 62, 3, 0, 128, 22, 62, 0, 192, 224, 62, 171, 42, 5, 62, 85, 85, 212, 62, 0, 128, 13, 62, 171, 234, 215, 62, 3, 0, 0, 50, 62, 0, 192, 235, 62, 0, 128, 31, 62, 85, 149, 233, 62, 171, 170, 40, 62, 0, 64, 237, 62, 3, 0, 128, 69, 62, 0, 0, 226, 62, 85, 85, 59, 62, 0, 64, 234, 62, 85, 213, 65, 62, 0, 0, 231, 62, 3, 0, 128, 58, 62, 0, 0, 200, 62, 171, 42, 73, 62, 0, 0, 221, 62, 0, 128, 69, 62, 85, 85, 212, 62, 3, 0, 128, 13, 62, 0, 0, 166, 62, 0, 128, 47, 62, 171, 170, 187, 62, 0, 128, 32, 62, 85, 85, 176, 62, 3, 0, 0, 146, 61, 0, 0, 155, 62, 0, 0, 245, 61, 171, 170, 155, 62, 85, 85, 199, 61, 0, 0, 152, 62, 3, 0, 0, 132, 60, 0, 64, 177, 62, 85, 85, 57, 61, 0, 0, 158, 62, 0, 0, 220, 60, 171, 106, 165, 62, 3, 0, 0, 128, 60, 0, 128, 216, 62, 0, 0, 176, 59, 85, 21, 189, 62, 171, 170, 170, 59, 171, 42, 202, 62, 3, 0, 0, 96, 61, 0, 64, 251, 62, 85, 85, 213, 60, 85, 213, 230, 62, 0, 0, 32, 61, 171, 106, 242, 62, 3, 0, 0, 252, 61, 0, 224, 8, 63, 0, 0, 144, 61, 171, 10, 2, 63, 171, 170, 190, 61, 171, 202, 5, 63, 3, 0, 0, 98, 62, 0, 128, 15, 63, 171, 170, 28, 62, 85, 245, 11, 63, 0, 0, 62, 62, 171, 42, 14, 63, 3, 0, 128, 165, 62, 0, 32, 15, 63, 0, 0, 131, 62, 85, 213, 16, 63, 0, 128, 148, 62, 85, 181, 16, 63, 3, 0, 0, 208, 62, 0, 64, 5, 63, 0, 128, 182, 62, 171, 138, 13, 63, 171, 170, 196, 62, 0, 64, 10, 63, 3, 0, 128, 233, 62, 0, 64, 236, 62, 85, 85, 219, 62, 0, 64, 0, 63, 85, 213, 227, 62, 171, 106, 246, 62, 3, 0, 192, 237, 62, 0, 64, 203, 62, 171, 42, 239, 62, 85, 21, 226, 62, 85, 149, 240, 62, 85, 21, 215, 62, 3, 0, 64, 225, 62, 0, 192, 179, 62, 171, 234, 234, 62, 171, 106, 191, 62, 0, 192, 230, 62, 85, 149, 183, 62, 3, 0, 0, 202, 62, 0, 192, 174, 62, 0, 192, 219, 62, 171, 234, 175, 62, 0, 0, 212, 62, 0, 64, 174, 62, 3, 0, 128, 178, 62, 0, 128, 181, 62, 0, 0, 192, 62, 0, 64, 175, 62, 171, 42, 184, 62, 0, 128, 177, 62, 3, 0, 0, 170, 62, 0, 0, 219, 62, 85, 213, 172, 62, 0, 128, 185, 62, 0, 0, 170, 62, 0, 0, 198, 62, 3, 0, 128, 181, 62, 0, 0, 241, 62, 0, 0, 170, 62, 0, 0, 240, 62, 85, 213, 173, 62, 85, 85, 247, 62, 3, 0, 128, 194, 62, 0, 0, 239, 62, 171, 42, 189, 62, 171, 170, 234, 62, 0, 128, 193, 62, 0, 0, 234, 62, 117, 0, 0, 0, 0, 32, 51, 63, 0, 0, 0, 0, 122, 0, 0, 0, 1, 0, 0, 107, 62, 0, 128, 131, 62, 3, 0, 128, 87, 62, 0, 0, 127, 62, 171, 170, 99, 62, 0, 128, 131, 62, 171, 42, 93, 62, 171, 42, 130, 62, 3, 0, 0, 79, 62, 0, 0, 107, 62, 85, 213, 81, 62, 171, 170, 121, 62, 0, 0, 79, 62, 0, 0, 115, 62, 3, 0, 128, 87, 62, 0, 0, 87, 62, 0, 0, 79, 62, 0, 0, 99, 62, 85, 213, 81, 62, 85, 85, 92, 62, 3, 0, 0, 107, 62, 0, 0, 79, 62, 171, 42, 93, 62, 171, 170, 81, 62, 171, 170, 99, 62, 0, 0, 79, 62, 3, 0, 0, 127, 62, 0, 0, 87, 62, 0, 0, 115, 62, 0, 0, 79, 62, 171, 170, 121, 62, 171, 170, 81, 62, 3, 0, 128, 131, 62, 0, 0, 107, 62, 171, 42, 130, 62, 85, 85, 92, 62, 0, 128, 131, 62, 0, 0, 99, 62, 3, 0, 0, 127, 62, 0, 0, 127, 62, 0, 128, 131, 62, 0, 0, 115, 62, 171, 42, 130, 62, 171, 170, 121, 62, 3, 0, 0, 107, 62, 0, 128, 131, 62, 171, 170, 121, 62, 171, 42, 130, 62, 0, 0, 115, 62, 0, 128, 131, 62, 1, 0, 0, 81, 62, 0, 0, 152, 62, 3, 0, 0, 90, 62, 0, 128, 158, 62, 0, 0, 87, 62, 171, 170, 153, 62, 0, 0, 90, 62, 85, 213, 155, 62, 3, 0, 128, 88, 62, 0, 128, 171, 62, 0, 0, 90, 62, 85, 213, 161, 62, 0, 128, 89, 62, 171, 42, 166, 62, 3, 0, 128, 83, 62, 0, 0, 184, 62, 0, 128, 87, 62, 85, 213, 176, 62, 85, 213, 85, 62, 0, 0, 181, 62, 3, 0, 0, 65, 62, 0, 128, 192, 62, 171, 42, 81, 62, 0, 0, 187, 62, 0, 0, 75, 62, 85, 213, 189, 62, 3, 0, 0, 48, 62, 0, 0, 210, 62, 171, 170, 53, 62, 171, 42, 197, 62, 0, 0, 48, 62, 0, 0, 203, 62, 3, 0, 128, 65, 62, 0, 192, 227, 62, 0, 0, 48, 62, 0, 0, 217, 62, 85, 213, 53, 62, 171, 234, 222, 62, 3, 0, 0, 107, 62, 0, 0, 235, 62, 171, 42, 77, 62, 85, 149, 232, 62, 0, 0, 91, 62, 0, 0, 235, 62, 3, 0, 64, 138, 62, 0, 192, 227, 62, 0, 0, 123, 62, 0, 0, 235, 62, 171, 106, 132, 62, 85, 149, 232, 62, 3, 0, 0, 147, 62, 0, 0, 210, 62, 85, 21, 144, 62, 171, 234, 222, 62, 0, 0, 147, 62, 0, 0, 217, 62, 3, 0, 128, 138, 62, 0, 128, 192, 62, 0, 0, 147, 62, 0, 0, 203, 62, 171, 42, 144, 62, 171, 42, 197, 62, 3, 0, 64, 129, 62, 0, 0, 184, 62, 0, 128, 133, 62, 85, 213, 189, 62, 171, 106, 130, 62, 0, 0, 187, 62, 3, 0, 128, 125, 62, 0, 128, 171, 62, 85, 21, 128, 62, 0, 0, 181, 62, 0, 128, 126, 62, 85, 213, 176, 62, 3, 0, 0, 126, 62, 0, 128, 158, 62, 0, 128, 124, 62, 171, 42, 166, 62, 171, 170, 124, 62, 85, 213, 161, 62, 3, 0, 128, 133, 62, 0, 0, 151, 62, 171, 170, 126, 62, 0, 128, 155, 62, 0, 128, 129, 62, 0, 0, 153, 62, 3, 0, 0, 140, 62, 0, 128, 152, 62, 171, 42, 136, 62, 171, 170, 150, 62, 85, 85, 138, 62, 171, 42, 151, 62, 3, 0, 64, 149, 62, 0, 64, 162, 62, 171, 170, 142, 62, 85, 213, 154, 62, 0, 192, 145, 62, 85, 21, 158, 62, 3, 0, 64, 156, 62, 0, 0, 173, 62, 0, 192, 152, 62, 171, 106, 166, 62, 85, 21, 155, 62, 0, 0, 170, 62, 3, 0, 128, 155, 62, 0, 128, 185, 62, 171, 106, 157, 62, 0, 0, 176, 62, 171, 42, 157, 62, 171, 42, 180, 62, 3, 0, 0, 162, 62, 0, 0, 204, 62, 85, 213, 154, 62, 85, 213, 192, 62, 0, 0, 157, 62, 0, 0, 199, 62, 3, 0, 192, 180, 62, 0, 0, 210, 62, 0, 0, 167, 62, 171, 170, 208, 62, 0, 64, 173, 62, 171, 170, 210, 62, 3, 0, 128, 200, 62, 0, 128, 200, 62, 0, 64, 188, 62, 85, 85, 209, 62, 85, 213, 194, 62, 171, 42, 206, 62, 3, 0, 0, 210, 62, 0, 192, 180, 62, 171, 42, 206, 62, 85, 213, 194, 62, 85, 85, 209, 62, 0, 64, 188, 62, 3, 0, 0, 204, 62, 0, 0, 162, 62, 171, 170, 210, 62, 0, 64, 173, 62, 171, 170, 208, 62, 0, 0, 167, 62, 3, 0, 0, 185, 62, 0, 0, 156, 62, 0, 0, 199, 62, 0, 0, 157, 62, 171, 170, 192, 62, 0, 0, 155, 62, 3, 0, 0, 173, 62, 0, 64, 156, 62, 0, 0, 180, 62, 85, 85, 157, 62, 0, 0, 176, 62, 171, 106, 157, 62, 3, 0, 64, 162, 62, 0, 64, 149, 62, 0, 0, 170, 62, 85, 21, 155, 62, 171, 106, 166, 62, 0, 192, 152, 62, 3, 0, 0, 153, 62, 0, 0, 140, 62, 85, 21, 158, 62, 0, 192, 145, 62, 0, 0, 155, 62, 171, 170, 142, 62, 3, 0, 0, 152, 62, 0, 128, 131, 62, 85, 85, 151, 62, 171, 170, 137, 62, 0, 0, 151, 62, 85, 213, 134, 62, 3, 0, 128, 158, 62, 0, 0, 125, 62, 171, 170, 153, 62, 171, 42, 128, 62, 85, 213, 155, 62, 0, 0, 125, 62, 3, 0, 128, 171, 62, 0, 128, 125, 62, 85, 213, 161, 62, 85, 85, 124, 62, 171, 42, 166, 62, 0, 128, 124, 62, 3, 0, 0, 184, 62, 0, 64, 129, 62, 85, 213, 176, 62, 0, 128, 126, 62, 0, 0, 181, 62, 85, 21, 128, 62, 3, 0, 128, 192, 62, 0, 128, 138, 62, 0, 0, 187, 62, 171, 106, 130, 62, 85, 213, 189, 62, 0, 128, 133, 62, 3, 0, 0, 210, 62, 0, 0, 147, 62, 171, 42, 197, 62, 171, 42, 144, 62, 0, 0, 203, 62, 0, 0, 147, 62, 3, 0, 192, 227, 62, 0, 64, 138, 62, 0, 0, 217, 62, 0, 0, 147, 62, 171, 234, 222, 62, 85, 21, 144, 62, 3, 0, 0, 235, 62, 0, 0, 107, 62, 85, 149, 232, 62, 171, 106, 132, 62, 0, 0, 235, 62, 0, 0, 123, 62, 3, 0, 192, 227, 62, 0, 128, 65, 62, 0, 0, 235, 62, 0, 0, 91, 62, 85, 149, 232, 62, 171, 42, 77, 62, 3, 0, 0, 210, 62, 0, 0, 48, 62, 171, 234, 222, 62, 85, 213, 53, 62, 0, 0, 217, 62, 0, 0, 48, 62, 3, 0, 128, 192, 62, 0, 0, 66, 62, 0, 0, 203, 62, 0, 0, 48, 62, 171, 42, 197, 62, 0, 0, 54, 62, 3, 0, 0, 184, 62, 0, 128, 83, 62, 85, 213, 189, 62, 85, 85, 75, 62, 0, 0, 187, 62, 171, 42, 81, 62, 3, 0, 128, 171, 62, 0, 128, 88, 62, 0, 0, 181, 62, 85, 213, 85, 62, 85, 213, 176, 62, 0, 128, 87, 62, 3, 0, 128, 158, 62, 0, 0, 89, 62, 171, 42, 166, 62, 0, 128, 89, 62, 85, 213, 161, 62, 171, 170, 89, 62, 3, 0, 128, 151, 62, 0, 0, 76, 62, 0, 128, 155, 62, 171, 170, 87, 62, 171, 42, 153, 62, 85, 85, 83, 62, 3, 0, 128, 152, 62, 0, 0, 62, 62, 0, 128, 150, 62, 0, 0, 70, 62, 85, 213, 150, 62, 85, 85, 65, 62, 3, 0, 64, 162, 62, 0, 128, 43, 62, 85, 213, 154, 62, 171, 170, 56, 62, 85, 21, 158, 62, 0, 128, 50, 62, 3, 0, 0, 173, 62, 0, 128, 29, 62, 171, 106, 166, 62, 0, 128, 36, 62, 0, 0, 170, 62, 85, 213, 31, 62, 3, 0, 128, 185, 62, 0, 0, 31, 62, 0, 0, 176, 62, 171, 42, 27, 62, 171, 42, 180, 62, 171, 170, 27, 62, 3, 0, 0, 204, 62, 0, 0, 18, 62, 85, 213, 192, 62, 85, 85, 32, 62, 0, 0, 199, 62, 0, 0, 28, 62, 3, 0, 0, 210, 62, 0, 0, 217, 61, 171, 170, 208, 62, 0, 0, 8, 62, 171, 170, 210, 62, 0, 0, 247, 61, 3, 0, 128, 200, 62, 0, 0, 138, 61, 85, 85, 209, 62, 0, 0, 187, 61, 171, 42, 206, 62, 171, 170, 160, 61, 3, 0, 192, 180, 62, 0, 0, 72, 61, 85, 213, 194, 62, 171, 170, 102, 61, 0, 64, 188, 62, 85, 85, 77, 61, 3, 0, 0, 162, 62, 0, 0, 120, 61, 0, 64, 173, 62, 171, 170, 66, 61, 0, 0, 167, 62, 171, 170, 82, 61, 3, 0, 128, 155, 62, 0, 0, 202, 61, 0, 0, 157, 62, 0, 0, 144, 61, 85, 213, 154, 62, 0, 0, 170, 61, 3, 0, 64, 156, 62, 0, 0, 248, 61, 171, 42, 157, 62, 171, 170, 220, 61, 171, 106, 157, 62, 0, 0, 236, 61, 3, 0, 64, 149, 62, 0, 128, 17, 62, 85, 21, 155, 62, 0, 0, 2, 62, 0, 192, 152, 62, 171, 42, 9, 62, 3, 0, 0, 140, 62, 0, 0, 37, 62, 0, 192, 145, 62, 85, 213, 25, 62, 171, 170, 142, 62, 85, 85, 32, 62, 3, 0, 128, 131, 62, 0, 0, 38, 62, 171, 170, 137, 62, 171, 170, 39, 62, 85, 213, 134, 62, 0, 0, 40, 62, 3, 0, 0, 125, 62, 0, 0, 26, 62, 171, 42, 128, 62, 171, 170, 34, 62, 0, 0, 125, 62, 171, 170, 30, 62, 3, 0, 128, 125, 62, 0, 0, 254, 61, 85, 85, 124, 62, 171, 170, 18, 62, 0, 128, 124, 62, 171, 170, 9, 62, 3, 0, 64, 129, 62, 0, 0, 204, 61, 0, 128, 126, 62, 171, 170, 232, 61, 85, 21, 128, 62, 0, 0, 216, 61, 3, 0, 128, 138, 62, 0, 0, 170, 61, 171, 106, 130, 62, 0, 0, 192, 61, 0, 128, 133, 62, 171, 170, 180, 61, 3, 0, 0, 147, 62, 0, 0, 72, 61, 171, 42, 144, 62, 85, 85, 151, 61, 0, 0, 147, 62, 0, 0, 128, 61, 3, 0, 64, 138, 62, 0, 0, 104, 60, 0, 0, 147, 62, 0, 0, 16, 61, 85, 21, 144, 62, 85, 85, 193, 60, 3, 0, 0, 107, 62, 0, 0, 0, 0, 171, 106, 132, 62, 171, 170, 154, 59, 0, 0, 123, 62, 0, 0, 128, 33, 3, 0, 128, 65, 62, 0, 0, 104, 60, 0, 0, 91, 62, 0, 0, 0, 0, 171, 42, 77, 62, 171, 170, 154, 59, 3, 0, 0, 48, 62, 0, 0, 72, 61, 85, 213, 53, 62, 85, 85, 193, 60, 0, 0, 48, 62, 0, 0, 16, 61, 3, 0, 0, 66, 62, 0, 0, 172, 61, 0, 0, 48, 62, 0, 0, 128, 61, 0, 0, 54, 62, 0, 0, 152, 61, 3, 0, 128, 83, 62, 0, 0, 204, 61, 85, 85, 75, 62, 85, 85, 181, 61, 171, 42, 81, 62, 0, 0, 192, 61, 3, 0, 128, 88, 62, 0, 0, 254, 61, 85, 213, 85, 62, 0, 0, 216, 61, 0, 128, 87, 62, 171, 170, 232, 61, 3, 0, 0, 89, 62, 0, 0, 26, 62, 0, 128, 89, 62, 171, 170, 9, 62, 171, 170, 89, 62, 171, 170, 18, 62, 3, 0, 0, 77, 62, 0, 0, 39, 62, 85, 85, 88, 62, 85, 85, 31, 62, 85, 85, 84, 62, 171, 170, 35, 62, 3, 0, 0, 62, 62, 0, 0, 37, 62, 0, 0, 71, 62, 0, 0, 41, 62, 0, 0, 66, 62, 85, 85, 40, 62, 3, 0, 0, 44, 62, 0, 128, 17, 62, 171, 170, 56, 62, 85, 85, 32, 62, 171, 170, 50, 62, 85, 213, 25, 62, 3, 0, 0, 30, 62, 0, 0, 248, 61, 85, 85, 37, 62, 171, 42, 9, 62, 171, 170, 32, 62, 0, 0, 2, 62, 3, 0, 0, 31, 62, 0, 0, 198, 61, 85, 85, 27, 62, 0, 0, 236, 61, 171, 170, 27, 62, 85, 85, 219, 61, 3, 0, 0, 18, 62, 0, 0, 120, 61, 85, 85, 32, 62, 171, 170, 168, 61, 0, 0, 28, 62, 0, 0, 144, 61, 3, 0, 0, 218, 61, 0, 0, 72, 61, 171, 170, 8, 62, 171, 170, 82, 61, 171, 170, 248, 61, 171, 170, 66, 61, 3, 0, 0, 138, 61, 0, 0, 138, 61, 85, 85, 187, 61, 85, 85, 77, 61, 171, 170, 160, 61, 171, 170, 102, 61, 3, 0, 0, 72, 61, 0, 0, 217, 61, 171, 170, 102, 61, 171, 170, 160, 61, 85, 85, 77, 61, 0, 0, 187, 61, 3, 0, 0, 124, 61, 0, 0, 18, 62, 171, 170, 66, 61, 0, 0, 247, 61, 0, 0, 84, 61, 0, 0, 8, 62, 3, 0, 0, 200, 61, 0, 0, 31, 62, 0, 0, 146, 61, 0, 0, 28, 62, 171, 170, 170, 61, 85, 85, 32, 62, 3, 0, 0, 250, 61, 0, 128, 29, 62, 85, 85, 221, 61, 171, 170, 27, 62, 0, 0, 238, 61, 171, 42, 27, 62, 3, 0, 0, 18, 62, 0, 128, 43, 62, 0, 0, 3, 62, 85, 213, 31, 62, 0, 0, 10, 62, 0, 128, 36, 62, 3, 0, 0, 37, 62, 0, 0, 63, 62, 0, 0, 26, 62, 0, 128, 50, 62, 85, 85, 32, 62, 0, 0, 57, 62, 3, 0, 0, 39, 62, 0, 0, 80, 62, 85, 85, 40, 62, 0, 0, 67, 62, 0, 0, 41, 62, 171, 170, 72, 62, 3, 0, 0, 26, 62, 0, 0, 90, 62, 0, 0, 35, 62, 0, 0, 86, 62, 171, 170, 30, 62, 85, 85, 89, 62, 3, 0, 0, 254, 61, 0, 128, 88, 62, 171, 170, 18, 62, 0, 0, 90, 62, 171, 170, 9, 62, 0, 128, 89, 62, 3, 0, 0, 204, 61, 0, 128, 83, 62, 171, 170, 232, 61, 0, 128, 87, 62, 0, 0, 216, 61, 85, 213, 85, 62, 3, 0, 0, 170, 61, 0, 0, 65, 62, 0, 0, 192, 61, 171, 42, 81, 62, 171, 170, 180, 61, 0, 0, 75, 62, 3, 0, 0, 72, 61, 0, 0, 48, 62, 85, 85, 151, 61, 171, 170, 53, 62, 0, 0, 128, 61, 0, 0, 48, 62, 3, 0, 0, 104, 60, 0, 128, 65, 62, 0, 0, 16, 61, 0, 0, 48, 62, 85, 85, 193, 60, 85, 213, 53, 62, 3, 0, 0, 0, 0, 0, 0, 107, 62, 171, 170, 154, 59, 171, 42, 77, 62, 0, 0, 128, 33, 0, 0, 91, 62, 3, 0, 0, 104, 60, 0, 64, 138, 62, 0, 0, 0, 0, 0, 0, 123, 62, 171, 170, 154, 59, 171, 106, 132, 62, 3, 0, 0, 72, 61, 0, 0, 147, 62, 85, 85, 193, 60, 85, 21, 144, 62, 0, 0, 16, 61, 0, 0, 147, 62, 3, 0, 0, 172, 61, 0, 128, 138, 62, 0, 0, 128, 61, 0, 0, 147, 62, 0, 0, 152, 61, 171, 42, 144, 62, 3, 0, 0, 204, 61, 0, 64, 129, 62, 85, 85, 181, 61, 0, 128, 133, 62, 0, 0, 192, 61, 171, 106, 130, 62, 3, 0, 0, 254, 61, 0, 128, 125, 62, 0, 0, 216, 61, 85, 21, 128, 62, 171, 170, 232, 61, 0, 128, 126, 62, 3, 0, 0, 26, 62, 0, 0, 126, 62, 171, 170, 9, 62, 0, 128, 124, 62, 171, 170, 18, 62, 171, 170, 124, 62, 3, 0, 0, 41, 62, 0, 0, 135, 62, 171, 170, 32, 62, 171, 170, 126, 62, 171, 170, 37, 62, 0, 0, 130, 62, 3, 0, 0, 38, 62, 0, 0, 140, 62, 171, 170, 41, 62, 0, 0, 137, 62, 171, 170, 40, 62, 171, 170, 138, 62, 3, 0, 0, 18, 62, 0, 64, 149, 62, 171, 170, 32, 62, 171, 170, 142, 62, 0, 0, 26, 62, 0, 192, 145, 62, 3, 0, 0, 250, 61, 0, 64, 156, 62, 0, 0, 10, 62, 0, 192, 152, 62, 0, 0, 3, 62, 85, 21, 155, 62, 3, 0, 0, 200, 61, 0, 128, 155, 62, 0, 0, 238, 61, 171, 106, 157, 62, 85, 85, 221, 61, 171, 42, 157, 62, 3, 0, 0, 124, 61, 0, 0, 162, 62, 171, 170, 170, 61, 85, 213, 154, 62, 0, 0, 146, 61, 0, 0, 157, 62, 3, 0, 0, 72, 61, 0, 192, 180, 62, 0, 0, 84, 61, 0, 0, 167, 62, 171, 170, 66, 61, 0, 64, 173, 62, 3, 0, 0, 138, 61, 0, 128, 200, 62, 85, 85, 77, 61, 0, 64, 188, 62, 171, 170, 102, 61, 85, 213, 194, 62, 3, 0, 0, 218, 61, 0, 0, 210, 62, 171, 170, 160, 61, 171, 42, 206, 62, 85, 85, 187, 61, 85, 85, 209, 62, 3, 0, 0, 18, 62, 0, 0, 204, 62, 171, 170, 248, 61, 171, 170, 210, 62, 171, 170, 8, 62, 171, 170, 208, 62, 3, 0, 0, 31, 62, 0, 128, 185, 62, 0, 0, 28, 62, 0, 0, 199, 62, 85, 85, 32, 62, 85, 213, 192, 62, 3, 0, 0, 30, 62, 0, 0, 173, 62, 171, 170, 27, 62, 171, 42, 180, 62, 85, 85, 27, 62, 0, 0, 176, 62, 3, 0, 0, 44, 62, 0, 64, 162, 62, 171, 170, 32, 62, 0, 0, 170, 62, 85, 85, 37, 62, 171, 106, 166, 62, 3, 0, 0, 63, 62, 0, 0, 153, 62, 171, 170, 50, 62, 85, 21, 158, 62, 0, 0, 57, 62, 0, 0, 155, 62, 3, 0, 0, 81, 62, 0, 0, 152, 62, 0, 0, 67, 62, 85, 85, 151, 62, 0, 0, 73, 62, 0, 0, 151, 62, 118, 0, 0, 0, 0, 64, 9, 63, 0, 0, 0, 0, 10, 0, 0, 0, 1, 0, 0, 162, 62, 0, 128, 149, 62, 3, 0, 128, 193, 62, 0, 0, 131, 62, 85, 85, 179, 62, 171, 42, 155, 62, 85, 213, 189, 62, 0, 0, 149, 62, 2, 0, 0, 124, 61, 0, 128, 149, 190, 3, 0, 0, 0, 0, 0, 128, 131, 190, 171, 170, 226, 60, 171, 42, 155, 190, 171, 170, 234, 59, 171, 42, 149, 190, 2, 0, 0, 162, 62, 0, 128, 149, 62, 1, 0, 0, 243, 62, 0, 128, 149, 62, 3, 0, 64, 9, 63, 0, 0, 131, 62, 171, 42, 2, 63, 171, 42, 155, 62, 171, 106, 7, 63, 0, 0, 149, 62, 2, 0, 0, 97, 62, 0, 128, 149, 190, 3, 0, 0, 34, 62, 0, 128, 131, 190, 85, 85, 62, 62, 171, 42, 155, 190, 85, 85, 41, 62, 171, 42, 149, 190, 2, 0, 0, 243, 62, 0, 128, 149, 62 }; const prim::byte* JoieBellefont = static_cast < const prim::byte* > (JoieBellefontData); #endif // BELLE_COMPILE_INLINE } // namespace belle
58.833564
88
0.343652
jogawebb
237489d1b2b70911309245d0ce297a782cc5b9bf
2,906
cpp
C++
src/anim_utils.cpp
Josh-MB/Information-Theory-Vicsek-Model
a6befb4878be5519cbb0515130d9a101ee90f5fa
[ "MIT" ]
null
null
null
src/anim_utils.cpp
Josh-MB/Information-Theory-Vicsek-Model
a6befb4878be5519cbb0515130d9a101ee90f5fa
[ "MIT" ]
null
null
null
src/anim_utils.cpp
Josh-MB/Information-Theory-Vicsek-Model
a6befb4878be5519cbb0515130d9a101ee90f5fa
[ "MIT" ]
1
2020-06-26T11:32:40.000Z
2020-06-26T11:32:40.000Z
#include "../include/anim_utils.hpp" #include "../include/defs.hpp" #include <fmt/format.h> #include <algorithm> double hue2rgb(double p, double q, double t) { if(t < 0) t += 1; if(t > 1) t -= 1; if(t < 1.0f / 6) return p + (q - p) * 6 * t; if(t < 1.0f / 2) return q; if(t < 2.0f / 3) return p + (q - p) * (2.0f / 3 - t) * 6; return p; } //hRad = [0,1] void hslToRgb(double hRad, double s, double l, int & r, int & g, int &b) { double rd, gd, bd; double h = RADTODEG(hRad * TWOPI) / 360.0; if(s == 0) { rd = gd = bd = l; // achromatic } else { double q = l < 0.5 ? l * (1 + s) : l + s - l * s; double p = 2 * l - q; rd = hue2rgb(p, q, h + 1.0f / 3); gd = hue2rgb(p, q, h); bd = hue2rgb(p, q, h - 1.0f / 3); } r = (int)(rd * 255); g = (int)(gd * 255); b = (int)(bd * 255); } void rgbToHsl(int r, int g, int b, double & h, double &s, double &l) { float rf = (float)r / 255.0f; float gf = (float)g / 255.0f; float bf = (float)b / 255.0f; float max = std::max(rf, std::max(gf, bf)); float min = std::min(rf, std::min(gf, bf)); h = (max + min) * 0.5f; s = (max + min) * 0.5f; l = (max + min) * 0.5f; if(max == min) { h = s = 0; // achromatic } else { float d = max - min; s = l > 0.5 ? d / (2 - max - min) : d / (max + min); if(max == rf) h = (gf - bf) / d + (gf < bf ? 6 : 0); else if(max == gf) h = (bf - rf) / d + 2; else //if(max == rgb.b) h = (rf - gf) / d + 4; h /= 6; } } void fprintv ( FILE* stream, // output stream // model parameters const size_t N, // number of particles // variables/buffers const double* const h, // angles, in range [-pi,pi] const double* const x, // x coords, in range [0,L] const double* const y // y coords, in range [0,L] ) { for (size_t i = 0; i < N; ++i) { // for each particle fmt::print(stream, "{:<20.16} {:<20.16} {:<20.16}\n", h[i], x[i], y[i]); } } void fprintv ( FILE* stream, // output stream // model parameters const size_t N, // number of particles // variables/buffers const double* const h, // angles, in range [-pi,pi] const double* const x, // x coords, in range [0,L] const double* const y, // y coords, in range [0,L] const int* const r, const int* const g, const int* const b ) { for (size_t i = 0; i < N; ++i) { // for each particle fmt::print(stream, "{:<20.16} {:<20.16} {:<20.16} {} {} {}\n", h[i], x[i], y[i], r[i], g[i], b[i]); } } void fprintv ( FILE* stream, // output stream // model parameters const size_t N, // number of particles // variables/buffers const double* const x, // x coords, in range [0,L] const double* const y // y coords, in range [0,L] ) { for (size_t i = 0; i < N; ++i) { // for each particle fmt::print(stream, "{:<20.16} {:<20.16}\n", x[i], y[i]); } }
24.627119
101
0.507226
Josh-MB
237a9eba56fa0947bba486919666c23bc33b116b
43
hpp
C++
src/boost_mpl_multiset_aux__tag.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
10
2018-03-17T00:58:42.000Z
2021-07-06T02:48:49.000Z
src/boost_mpl_multiset_aux__tag.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
2
2021-03-26T15:17:35.000Z
2021-05-20T23:55:08.000Z
src/boost_mpl_multiset_aux__tag.hpp
miathedev/BoostForArduino
919621dcd0c157094bed4df752b583ba6ea6409e
[ "BSL-1.0" ]
4
2019-05-28T21:06:37.000Z
2021-07-06T03:06:52.000Z
#include <boost/mpl/multiset/aux_/tag.hpp>
21.5
42
0.767442
miathedev
237acad154fb83f327fb706301b39a56109435aa
2,860
hpp
C++
src/backends/opengl/OpenglSurface.hpp
AntonHakansson/KvantEngine
f101fc771a8e9eca8ced59a084b9be0169e95649
[ "MIT" ]
null
null
null
src/backends/opengl/OpenglSurface.hpp
AntonHakansson/KvantEngine
f101fc771a8e9eca8ced59a084b9be0169e95649
[ "MIT" ]
2
2017-04-05T01:50:13.000Z
2017-08-10T00:58:26.000Z
src/backends/opengl/OpenglSurface.hpp
AntonHakansson/KvantEngine
f101fc771a8e9eca8ced59a084b9be0169e95649
[ "MIT" ]
null
null
null
#ifndef OpenglSurface_HPP_INCLUDED #define OpenglSurface_HPP_INCLUDED #include <glm/glm.hpp> #include "utils/Checks.hpp" #include "utils/Logger.hpp" namespace Kvant::graphics::opengl { using namespace glm; template <typename GRAPHICS> struct OpenglSurface : blueprints::graphics::Surface<GRAPHICS, OpenglSurface<GRAPHICS>> { GLuint vertex_vbo; GLuint triangle_vbo; GLuint transform_vbo; GLuint world_vbo; OpenglSurface(const GraphicsContext<typename GRAPHICS::Backend> &ctx, Mesh *m) : Kvant::blueprints::graphics::Surface<GRAPHICS, OpenglSurface<GRAPHICS>>( ctx, m) { int vertex_size = m->is_rigged ? 24 : 18; Kvant::Vertex test; this->calc_bounds(m); glGenBuffers(1, &vertex_vbo); glGenBuffers(1, &triangle_vbo); glGenBuffers(1, &transform_vbo); glGenBuffers(1, &world_vbo); this->n_vertices = m->vertices.size(); this->n_triangles = m->triangles.size() / 3; const int vb_size = sizeof(GLfloat) * this->n_vertices * vertex_size; float *vb_data = (float *)malloc(vb_size); for (int i = 0; i < this->n_vertices; i++) { m->vertices[i].to_array(&vb_data[i * vertex_size]); if (m->is_rigged) { std::runtime_error("Rigged not implemented"); } } glBindBuffer(GL_ARRAY_BUFFER, this->vertex_vbo); glBufferData(GL_ARRAY_BUFFER, vb_size, vb_data, GL_STATIC_DRAW); free(vb_data); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, this->triangle_vbo); glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(uint32_t) * this->n_triangles * 3, &m->triangles[0], GL_STATIC_DRAW); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); glBindBuffer(GL_ARRAY_BUFFER, 0); } virtual ~OpenglSurface() { glDeleteBuffers(1, &vertex_vbo); glDeleteBuffers(1, &triangle_vbo); glDeleteBuffers(1, &transform_vbo); glDeleteBuffers(1, &world_vbo); } template <typename PIPELINE> void draw_instanced(const GRAPHICS &backend, const PIPELINE &shader, const glm::mat4 *transform, int count) const { GL_CHECK(glBindBuffer(GL_ARRAY_BUFFER, transform_vbo)); shader.bind_instances(); GL_CHECK(glBufferData(GL_ARRAY_BUFFER, sizeof(glm::mat4) * count, transform, GL_DYNAMIC_DRAW)); GL_CHECK(glBindBuffer(GL_ARRAY_BUFFER, this->vertex_vbo)); shader.enable_vertex_attributes(); GL_CHECK(glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, this->triangle_vbo)); GL_CHECK(glDrawElementsInstanced(GL_TRIANGLES, this->n_triangles * 3, GL_UNSIGNED_INT, (void *)0, count)); shader.disable_all_vertex_attribs(); // Imgui GL_CHECK(glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0)); GL_CHECK(glBindBuffer(GL_ARRAY_BUFFER, 0)); // Imgui } }; } // namespace Kvant::graphics::opengl #endif // OpenglSurface_HPP_INCLUDED
32.5
80
0.687413
AntonHakansson
237b415bf330948156cbbc8c9d217aa47b9ca870
1,453
cpp
C++
cp3/chp2/lds/borrowers.cpp
Binary-bug/CP
f9f356d36bd252c71ee3ed2d0585cc372f2baf5e
[ "MIT" ]
null
null
null
cp3/chp2/lds/borrowers.cpp
Binary-bug/CP
f9f356d36bd252c71ee3ed2d0585cc372f2baf5e
[ "MIT" ]
null
null
null
cp3/chp2/lds/borrowers.cpp
Binary-bug/CP
f9f356d36bd252c71ee3ed2d0585cc372f2baf5e
[ "MIT" ]
null
null
null
#include<iostream> #include<utility> #include<algorithm> #include<vector> #include<string> #include<map> using namespace std; int main(){ string s; vector< pair<string,string> > shelf; map <string,int> bookorder; while(getline(cin,s) && s !="END"){ string title,author; size_t s_len = s.size(); size_t found = s.find(" by "); title = s.substr(1,(found-2)); found += 4; author = s.substr(found); shelf.push_back(make_pair(author,title)); } int shelfsize = shelf.size(); sort(shelf.begin(),shelf.end()); vector<bool> borrowed(shelfsize); vector<bool> returned(shelfsize); for(int i=0; i < shelfsize; ++i) bookorder[shelf[i].second] = i; while(cin >> s && s != "END"){ string title; int first = -1; if(s != "SHELVE"){ getchar(); getline(cin,title); title = title.substr(1,title.size()-2); } if(s == "BORROW"){ borrowed[bookorder[title]] = true; returned[bookorder[title]] = false; } if(s == "RETURN") returned[bookorder[title]] = true; if(s == "SHELVE"){ for(int i = 0; i < shelf.size(); ++i){ if(returned[i]){ if(first == -1) cout << "Put \"" << shelf[i].second << "\" first" << endl; else cout << "Put \"" << shelf[i].second << "\" after " << "\""<<shelf[first].second<<"\"" << endl; first = i; returned[i] = borrowed[i] = false; } else if(!borrowed[i]) first = i; } cout << "END" << endl; } } return 0; }
20.757143
105
0.567791
Binary-bug
237e83babccdab463cede35ff21ba6824170fbfb
2,348
cpp
C++
docs/online/2018-ICPC-Shenyang-Online/solutions/f.cpp
Dup4/TI1050
4534909ef9a3b925d556d341ea5e2629357f68e6
[ "MIT" ]
null
null
null
docs/online/2018-ICPC-Shenyang-Online/solutions/f.cpp
Dup4/TI1050
4534909ef9a3b925d556d341ea5e2629357f68e6
[ "MIT" ]
null
null
null
docs/online/2018-ICPC-Shenyang-Online/solutions/f.cpp
Dup4/TI1050
4534909ef9a3b925d556d341ea5e2629357f68e6
[ "MIT" ]
1
2022-03-03T13:33:48.000Z
2022-03-03T13:33:48.000Z
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int MOD = 1e9 + 7; const int INF = 0x3f3f3f3f; const int maxn = 1e4 + 10; const ll INFLL = 0x3f3f3f3f3f3f3f3f; struct node { int l, r; inline node() {} inline node(int l, int r) : l(l), r(r) {} } arr[maxn]; bool flag = false; int n, m, k; int sum; int res_L; int res_R; int L, R; int du_left[maxn]; int du_right[maxn]; inline void Init() { memset(du_left, 0, sizeof du_left); memset(du_right, 0, sizeof du_right); } inline void DFS(int idx, int cnt) { if (sum == n + m) { flag = true; return; } if (idx > k) return; if (k - idx + 1 + cnt < res_L) return; if (cnt >= res_R) return; if (flag) return; // do if (du_left[arr[idx].l] < R && du_right[arr[idx].r] < R) { du_left[arr[idx].l]++; du_right[arr[idx].r]++; if (du_left[arr[idx].l] == L) sum++; if (du_right[arr[idx].r] == L) sum++; DFS(idx + 1, cnt + 1); if (flag) return; if (du_left[arr[idx].l] == L) sum--; if (du_right[arr[idx].r] == L) sum--; du_left[arr[idx].l]--; du_right[arr[idx].r]--; } // not do DFS(idx + 1, cnt); if (flag) return; } inline void RUN() { int cas = 0; while (~scanf("%d %d %d", &n, &m, &k)) { printf("Case %d: ", ++cas); Init(); scanf("%d %d", &L, &R); int cnt = 0; for (int i = 1; i <= k; ++i) { scanf("%d %d", &arr[i].l, &arr[i].r); du_left[arr[i].l]++; du_right[arr[i].r]++; if (du_left[arr[i].l] == L) cnt++; if (du_right[arr[i].r] == L) cnt++; } if (L == 0) { puts("Yes"); continue; } if (cnt != n + m) { puts("No"); continue; } sum = 0; res_L = ((n + m) * L + 1) / 2; res_R = ((n + m) * R) / 2; Init(); flag = false; DFS(1, 0); puts(flag ? "Yes" : "No"); } } int main() { #ifdef LOCAL_JUDGE freopen("Text.txt", "r", stdin); #endif // LOCAL_JUDGE RUN(); #ifdef LOCAL_JUDGE fclose(stdin); #endif // LOCAL_JUDGE }
20.778761
62
0.43569
Dup4
2385db98a9ba294491710b396935bb81baed023d
2,781
cpp
C++
test/uri/parsers/rules/uri/character.test.cpp
ledocc/uri
0767d923f7d1690e495ddca8a84352746b572904
[ "BSL-1.0" ]
null
null
null
test/uri/parsers/rules/uri/character.test.cpp
ledocc/uri
0767d923f7d1690e495ddca8a84352746b572904
[ "BSL-1.0" ]
null
null
null
test/uri/parsers/rules/uri/character.test.cpp
ledocc/uri
0767d923f7d1690e495ddca8a84352746b572904
[ "BSL-1.0" ]
null
null
null
#define BOOST_TEST_MODULE uri__parsers__rules__uri__character_hpp #include <boost/test/unit_test.hpp> #include "../../test_parser.hpp" #include "../make_char_map.hpp" #include <uri/parsers/rules/uri/character.hpp> #include <boost/range/irange.hpp> #include <vector> namespace uri { namespace parsers { namespace rules { namespace uri { namespace test { BOOST_AUTO_TEST_CASE( pchar ) { character< std::string::const_iterator > character; auto map = rules::test::make_uri_pchar_map(); for ( auto v : map ) { parsers::test::test_char_parser( v.first, character.pchar(), v.second ); } parsers::test::test_string_parser( "%00", character.pchar(), true ); } //--------------------------------------------------------------------------------------------------------------------// BOOST_AUTO_TEST_CASE( percent_encoded ) { character< std::string::const_iterator > character; parsers::test::test_string_parser( "%0", character.percent_encoded(), false ); parsers::test::test_string_parser( "%00", character.percent_encoded(), true ); parsers::test::test_string_parser( "%000", character.percent_encoded(), false ); } //--------------------------------------------------------------------------------------------------------------------// BOOST_AUTO_TEST_CASE( unreserved ) { character< std::string::const_iterator > character; auto map = rules::test::make_uri_unreserved_map(); for ( auto v : map ) { parsers::test::test_char_parser( v.first, character.unreserved(), v.second ); } } //--------------------------------------------------------------------------------------------------------------------// BOOST_AUTO_TEST_CASE( reserved ) { character< std::string::const_iterator > character; auto map = rules::test::make_uri_reserved_map(); for ( auto v : map ) { parsers::test::test_char_parser( v.first, character.reserved(), v.second ); } } //--------------------------------------------------------------------------------------------------------------------// BOOST_AUTO_TEST_CASE( gen_delims ) { character< std::string::const_iterator > character; auto map = rules::test::make_uri_gen_delims_map(); for ( auto v : map ) { parsers::test::test_char_parser( v.first, character.gen_delims(), v.second ); } } //--------------------------------------------------------------------------------------------------------------------// BOOST_AUTO_TEST_CASE( sub_delims ) { character< std::string::const_iterator > character; auto map = rules::test::make_uri_sub_delims_map(); for ( auto v : map ) { parsers::test::test_char_parser( v.first, character.sub_delims(), v.second ); } } } // namespace test } // namespace uri } // namespace rules } // namespace parsers } // namespace uri
29.585106
120
0.549083
ledocc
2386fbdb9f6a4d768d447ad839bc5038bb27ed5e
440
hpp
C++
ODFAEG/include/odfaeg/Driver/frameBuffer.hpp
Cwc-Test/ODFAEG
5e5bd13e3145764c3d0182225aad591040691481
[ "Zlib" ]
5
2015-06-13T13:11:59.000Z
2020-04-17T23:10:23.000Z
ODFAEG/include/odfaeg/Driver/frameBuffer.hpp
Cwc-Test/ODFAEG
5e5bd13e3145764c3d0182225aad591040691481
[ "Zlib" ]
4
2019-01-07T11:46:21.000Z
2020-02-14T15:04:15.000Z
ODFAEG/include/odfaeg/Driver/frameBuffer.hpp
Cwc-Test/ODFAEG
5e5bd13e3145764c3d0182225aad591040691481
[ "Zlib" ]
4
2016-01-05T09:54:57.000Z
2021-01-06T18:52:26.000Z
#ifndef ODFAEG_FRAMEBUFFER_HPP #define ODFAEG_FRAMEBUFFER_HPP #include "../../../include/odfaeg/Core/erreur.h" namespace odfaeg { namespace driver { class FrameBuffer { public : FrameBuffer (unsigned int width, unsigned int height); sf::Color& operator[](unsigned int index); private : std::vector<sf::Color> pixels; } } } #endif // ODFAEG_FRAMEBUFFER_HPP
27.5
66
0.613636
Cwc-Test
23890a9b45be36e67181907e7af41daec2c87cc8
314
cpp
C++
Arrays/q9.cpp
Shantanu-verma-sys/Leetcode
13985d6b5a54f1addc5ff97d18238a0af901732c
[ "MIT" ]
null
null
null
Arrays/q9.cpp
Shantanu-verma-sys/Leetcode
13985d6b5a54f1addc5ff97d18238a0af901732c
[ "MIT" ]
null
null
null
Arrays/q9.cpp
Shantanu-verma-sys/Leetcode
13985d6b5a54f1addc5ff97d18238a0af901732c
[ "MIT" ]
null
null
null
//https://leetcode.com/problems/shuffle-string/ string restoreString(string s, vector<int>& indices) { vector<char> v(s.length()); string res; for(int i=0;i<indices.size();++i) v[indices[i]] = s[i]; for(const auto& i:v) res += i; return res; }
28.545455
56
0.525478
Shantanu-verma-sys
238bd95e29816179e03181b0feae4bb9b667a183
497
hpp
C++
Adapters/FileReader.hpp
thulefog/ImageBrowser
16e16fd1af04215c76af8cc5c166cd58ea71bdb8
[ "MIT" ]
null
null
null
Adapters/FileReader.hpp
thulefog/ImageBrowser
16e16fd1af04215c76af8cc5c166cd58ea71bdb8
[ "MIT" ]
null
null
null
Adapters/FileReader.hpp
thulefog/ImageBrowser
16e16fd1af04215c76af8cc5c166cd58ea71bdb8
[ "MIT" ]
null
null
null
// // FileReader.hpp // ImageBrowser // // Created by John Matthew Weston on 6/27/18. // #ifndef FileReader_hpp #define FileReader_hpp #include <stdio.h> #include <iomanip> #include <iostream> #include <fstream> #include <string> #import "../Adapters/dcmlite/dcmlite.h" class FileReader { public: FileReader(); void Read( const std::string fileName ); void Dump( std::string fileName ); void ReadPixelData(const std::string& file_path); }; #endif /* FileReader_hpp */
16.566667
53
0.686117
thulefog
2390f5fe80598426fceff443ce167414c4babe54
3,572
cpp
C++
3DRasterizer/Src/Vector2.cpp
QuadDeva/SoftwareRasterizer
4c2738d9601230a146a8b724700cf0a4fb89eca2
[ "MIT" ]
1
2016-04-07T05:02:52.000Z
2016-04-07T05:02:52.000Z
3DRasterizer/Src/Vector2.cpp
QuadDeva/SoftwareRasterizer
4c2738d9601230a146a8b724700cf0a4fb89eca2
[ "MIT" ]
null
null
null
3DRasterizer/Src/Vector2.cpp
QuadDeva/SoftwareRasterizer
4c2738d9601230a146a8b724700cf0a4fb89eca2
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "MathUtils.h" #include "Vector.h" Vector2 Vector2::Zero(0.0f, 0.0f); Vector2 Vector2::One(1.0f, 1.0f); Vector2 Vector2::Right(1.0f, 0.0f); Vector2 Vector2::Up(0.0f, 1.0f); Vector2::Vector2(float InF) : X(InF), Y(InF) { } Vector2::Vector2(float InX, float InY) : X(InX), Y(InY) { } Vector2::Vector2(const Vector2& InV) : X(InV.X), Y(InV.Y) { } float& Vector2::operator[](int ElementIndex) { switch (ElementIndex) { case 0: return X; case 1: return Y; default: if (ElementIndex < 0) { return X; } else { return Y; } } } float Vector2::operator[](int ElementIndex) const { switch (ElementIndex) { case 0: return X; case 1: return Y; default: if (ElementIndex < 0) { return X; } else { return Y; } } } Vector2& Vector2::operator=(float InF) { X = InF; Y = InF; return *this; } Vector2& Vector2::operator=(const Vector2& InV) { X = InV.X; Y = InV.Y; return *this; } Vector2 Vector2::operator-() const { return Vector2(-X, -Y); } bool Vector2::operator==(const Vector2& InV) const { return (X == InV.X) && (Y == InV.Y); } bool Vector2::operator!=(const Vector2& InV) const { return (X != InV.X) || (Y != InV.Y); } Vector2 Vector2::operator+(float Bias) const { return Vector2(X + Bias, Y + Bias); } Vector2 Vector2::operator+(const Vector2& InV) const { return Vector2(X + InV.X, Y + InV.Y); } Vector2 Vector2::operator-(float Bias) const { return Vector2(X - Bias, Y - Bias); } Vector2 Vector2::operator-(const Vector2& InV) const { return Vector2(X - InV.X, Y - InV.Y); } Vector2 Vector2::operator*(float Scale) const { return Vector2(X * Scale, Y * Scale); } Vector2 Vector2::operator*(const Vector2& InV) const { return Vector2(X * InV.X, Y * InV.Y); } Vector2 Vector2::operator/(float Scale) const { if (Scale != 0.0f) { return Vector2(X / Scale, Y / Scale); } return Vector2(); } Vector2 Vector2::operator/(const Vector2& InV) const { Vector2 Vector(0.0f, 0.0f); if (InV.X != 0.0f && InV.Y != 0.0f) { Vector.X = X / InV.X; Vector.Y = Y / InV.Y; } return Vector; } float Vector2::operator|(const Vector2& InV) const { //||A|| * ||B|| * cos(t) return (X * InV.X) + (Y * InV.Y); } float Vector2::operator^(const Vector2& InV) const { return (X * InV.Y) - (Y * InV.X); } float Vector2::DotProduct(const Vector2& A, const Vector2& B) { return (A | B); } float Vector2::CrossProduct(const Vector2& A, const Vector2& B) { return (A ^ B); } float Vector2::Size() const { float SquareSum = (X * X) + (Y * Y); return std::sqrtf(SquareSum); } float Vector2::SizeSquared() const { // Same with Dot Product Self return (X * X) + (Y * Y); } void Vector2::Normalize() { float SizeInverse = 1.0f / Size(); X *= SizeInverse; Y *= SizeInverse; } float Vector2::AngleBetween(const Vector2& A, const Vector2& B) { float ASize = A.Size(); float BSize = B.Size(); float ABSize = (ASize * BSize); float ABDot = A | B; if (ABSize != 0.0f) { return std::acosf(ABDot / ABSize); } return 0.0f; } bool Vector2::IsZero() const { return (X == 0.0f) && (Y == 0.0f); } std::ostream& ::operator<<(std::ostream& Os, const Vector2& InV) { Os << "(" << InV.X << ", " << InV.Y << ")"; return Os; } std::string Vector2::ToString() const { return '(' + std::to_string(X) + ", " + std::to_string(Y) + ")"; } Vector3 Vector2::ToVector3() const { return Vector3(X, Y, 0.0f); } Vector4 Vector2::ToVector4(bool bIsPoint) const { if (bIsPoint) { return Vector4(X, Y, 0.0f, 0.0f); } else { return Vector4(X, Y); } }
14.639344
65
0.613102
QuadDeva
2393618e2ebec6698ec9435f534330cd72c8472e
2,509
cpp
C++
Code/Libraries/3D/src/irradiancevolumes.cpp
kas1e/Eldritch
032b4ac52f7508c89efa407d6fe60f40c6281fd9
[ "Zlib" ]
null
null
null
Code/Libraries/3D/src/irradiancevolumes.cpp
kas1e/Eldritch
032b4ac52f7508c89efa407d6fe60f40c6281fd9
[ "Zlib" ]
null
null
null
Code/Libraries/3D/src/irradiancevolumes.cpp
kas1e/Eldritch
032b4ac52f7508c89efa407d6fe60f40c6281fd9
[ "Zlib" ]
null
null
null
#include "core.h" #include "3d.h" #include "irradiancevolumes.h" #include "mathcore.h" IrradianceVolumes::IrradianceVolumes() : m_Extents(), m_NumVolumesX(0), m_NumVolumesY(0), m_NumVolumesZ(0), m_VolumeResolution(), m_Volumes(nullptr) {} IrradianceVolumes::~IrradianceVolumes() { SafeDeleteArray(m_Volumes); } const SIrradianceVolume& IrradianceVolumes::GetNearestVolume( const Vector& Location) const { Vector Indices = ((Location + m_VolumeResolution * 0.5f) - m_Extents.m_Min) / m_VolumeResolution; int IndexX = Clamp((int)Indices.x, 0, (int)m_NumVolumesX - 1); int IndexY = Clamp((int)Indices.y, 0, (int)m_NumVolumesY - 1); int IndexZ = Clamp((int)Indices.z, 0, (int)m_NumVolumesZ - 1); return GetIndexedVolume(IndexX, IndexY, IndexZ); } const SIrradianceVolume& IrradianceVolumes::GetIndexedVolume(uint X, uint Y, uint Z) const { ASSERT(X < m_NumVolumesX); ASSERT(Y < m_NumVolumesY); ASSERT(Z < m_NumVolumesZ); return *(m_Volumes + Z * m_NumVolumesX * m_NumVolumesY + Y * m_NumVolumesX + X); } Vector IrradianceVolumes::GetLocationOfIndexedVolume(uint X, uint Y, uint Z) const { return m_Extents.m_Min + Vector((float)X, (float)Y, (float)Z) * m_VolumeResolution; } /*static*/ Vector4 IrradianceVolumes::GetColor(const SIrradianceVolume& Volume, const Vector& Direction) { Vector DirectionSquared = Direction * Direction; int XNegative = Direction.x < 0.0f; int YNegative = Direction.y < 0.0f; int ZNegative = Direction.z < 0.0f; return DirectionSquared.x * Volume.m_Light[XNegative] + DirectionSquared.y * Volume.m_Light[YNegative + 2] + DirectionSquared.z * Volume.m_Light[ZNegative + 4]; } /*static*/ Vector4 IrradianceVolumes::GetSum(const SIrradianceVolume& Volume) { Vector4 Sum; for (auto & elem : Volume.m_Light) { Sum += elem; } return Sum; } /*static*/ Vector4 IrradianceVolumes::GetAverage( const SIrradianceVolume& Volume) { return (0.1666666f * GetSum(Volume)); } /*static*/ float IrradianceVolumes::GetLuminance( const SIrradianceVolume& Volume) { Vector4 Average = GetAverage(Volume); float MinComponent = Min(Min(Average.x, Average.y), Average.z); float MaxComponent = Max(Max(Average.x, Average.y), Average.z); return (0.5f * (MinComponent + MaxComponent)); }
33.905405
79
0.65564
kas1e
2394e17ecebf71620d1c9a59208aaa8a6e894766
2,386
cpp
C++
integration_test/driver.cpp
HongshiTan/circt
5590855b46eac4b902cf1319347ab19a6dee8f1b
[ "Apache-2.0" ]
null
null
null
integration_test/driver.cpp
HongshiTan/circt
5590855b46eac4b902cf1319347ab19a6dee8f1b
[ "Apache-2.0" ]
null
null
null
integration_test/driver.cpp
HongshiTan/circt
5590855b46eac4b902cf1319347ab19a6dee8f1b
[ "Apache-2.0" ]
null
null
null
//===- driver.cpp - Verilator software driver -----------------------------===// // // A fairly standard, boilerplate Verilator C++ simulation driver. Assumes the // top level exposes just two signals: 'clk' and 'rstn'. // //===----------------------------------------------------------------------===// #include "Vmain.h" #ifdef DEBUG #include "verilated_vcd_c.h" #endif #include "signal.h" #include <iostream> vluint64_t timeStamp; // Stop the simulation gracefully on ctrl-c. volatile bool stopSimulation = false; void handle_sigint(int) { stopSimulation = true; } // Called by $time in Verilog. double sc_time_stamp() { return timeStamp; } int main(int argc, char **argv) { // Register graceful exit handler. signal(SIGINT, handle_sigint); Verilated::commandArgs(argc, argv); size_t numCyclesToRun = 0; // Search the command line args for those we are sensitive to. for (int i = 1; i < argc; ++i) { if (std::string(argv[i]) == "--cycles") { if (i + 1 < argc) { numCyclesToRun = std::strtoull(argv[++i], nullptr, 10); } else { std::cerr << "--cycles must be followed by number of cycles." << std::endl; return 1; } } } // Construct the simulated module's C++ model. auto &dut = *new Vmain(); #ifdef DEBUG VerilatedVcdC *tfp = new VerilatedVcdC; Verilated::traceEverOn(true); dut.trace(tfp, 99); // Trace 99 levels of hierarchy tfp->open("main.vcd"); #endif std::cout << "[driver] Starting simulation" << std::endl; // Reset. dut.rstn = 0; dut.clk = 0; // Run for a few cycles with reset held. for (timeStamp = 0; timeStamp < 10 && !Verilated::gotFinish(); timeStamp++) { dut.eval(); dut.clk = !dut.clk; #ifdef DEBUG tfp->dump(timeStamp); #endif } // Take simulation out of reset. dut.rstn = 1; // Run for the specified number of cycles out of reset. for (; timeStamp <= (numCyclesToRun * 2) && !Verilated::gotFinish() && !stopSimulation; timeStamp++) { dut.eval(); dut.clk = !dut.clk; #ifdef DEBUG tfp->dump(timeStamp); #endif } // Tell the simulator that we're going to exit. This flushes the output(s) and // frees whatever memory may have been allocated. dut.final(); #ifdef DEBUG tfp->close(); #endif std::cout << "[driver] Ending simulation at tick #" << timeStamp << std::endl; return 0; }
25.382979
80
0.604778
HongshiTan
2399cc17eebbe15e5ae279a5d1f195aee135b6be
19,328
cpp
C++
Bison x86 Assembler Source/main.cpp
kpatel122/Bison-x86-Assembler
34d997306a5bf483ee3633126565017d1e2a5f92
[ "MIT" ]
null
null
null
Bison x86 Assembler Source/main.cpp
kpatel122/Bison-x86-Assembler
34d997306a5bf483ee3633126565017d1e2a5f92
[ "MIT" ]
null
null
null
Bison x86 Assembler Source/main.cpp
kpatel122/Bison-x86-Assembler
34d997306a5bf483ee3633126565017d1e2a5f92
[ "MIT" ]
null
null
null
#include <iostream.h> #include <stdlib.h> #include <stdio.h> #include <malloc.h> #include <string.h> #include "token.h" #include "instructions.h" #include "file.h" #include "log.h" #include "String.h" #include "lexer.h" #include "functions.h" #include "symbol.h" #include "strings.h" #include "label.h" #include "script.h" #include "parser.h" #include "ASMParser.h" #define ASM_FILE_IN "bspLoad.basm" #define BXE_FILE_OUT "exes\\bspLoad.bxe" CInstrTable instrTable; void AddAllInstructions(); void PrintToken(int tok); int numInvalidTokens = 0; void main() { int instrIndex =0; AddAllInstructions(); CLog log; log.Init("log.txt"); /* char *t = "\" abc \""; char *k = (char*)malloc((sizeof(char)) * strlen(t)); strcpy(k,t); cout<<"k before: "<<k<<"\n"; CStringInfo::RemoveStringQuotes(k); cout<<"k After: "<<k<<"\n"; */ CLexer lexer; ASMParser parser; lexer.InitLogFile(&log); parser.InitLogFile(&log); lexer.LoadASMFile(ASM_FILE_IN); lexer.PrepFile(); lexer.AssignInstrTable(&instrTable); parser.AssignLexer(&lexer); char *lex; int tok; /* cout<<"LEXEMES" <<"\n\n"; while(!(lexer.IsFileFinished())) { tok = lexer.GetNextToken(); lex = (char*)lexer.GetLexeme(); if(tok!=TOKEN_TYPE_NEWLINE) { cout <<"Lexeme: " <<lex<< " Token: "; PrintToken(tok); cout<<"\n"; } else { cout<<"Token: "; PrintToken(tok); cout<<"\n"; } } */ parser.Parse(); cout <<"\nlex errors: "<<numInvalidTokens<<" parse errors: "<<parser.GetErrors()<<endl; parser.log->Msg("\nlex errors: %d parse errors: %d ",numInvalidTokens,parser.GetErrors() ); parser.PrintStats(); if (parser.GetErrors()==0) { parser.WriteASMFile(BXE_FILE_OUT); } cout<<"\npress any key then enter to quit."<<endl; /* to stop this demo from being just a flash on the screen in release mode get some dummy input when everythings finished */ char dummy[10]; cin>>dummy; } /* TOKEN_TYPE_QUOTE, TOKEN_TYPE_NEWLINE, */ void PrintToken(int tok) { switch (tok) { case TOKEN_TYPE_NEWLINE: { cout<<"TOKEN_TYPE_NEWLINE"; }break; case TOKEN_TYPE_INT: { cout<<"TOKEN_TYPE_INT"; }break; case TOKEN_TYPE_FLOAT: { cout<<"TOKEN_TYPE_FLOAT"; }break; case TOKEN_TYPE_STRING: { cout<<"TOKEN_TYPE_STRING"; }break; case TOKEN_TYPE_IDENT: { cout<<"TOKEN_TYPE_IDENT"; }break; case TOKEN_TYPE_COLON: { cout<<"TOKEN_TYPE_COLON"; }break; case TOKEN_TYPE_OPEN_BRACKET: { cout<<"TOKEN_TYPE_OPEN_BRACKET"; }break; case TOKEN_TYPE_CLOSE_BRACKET: { cout<<"TOKEN_TYPE_CLOSE_BRACKET"; }break; case TOKEN_TYPE_COMMA: { cout<<"TOKEN_TYPE_COMMA"; }break; case TOKEN_TYPE_OPEN_BRACE: { cout<<"TOKEN_TYPE_OPEN_BRACE"; }break; case TOKEN_TYPE_CLOSE_BRACE: { cout<<"TOKEN_TYPE_CLOSE_BRACE"; }break; case TOKEN_TYPE_INSTR: { cout<<"TOKEN_TYPE_INSTR"; }break; case TOKEN_TYPE_SETSTACKSIZE: { cout<<"TOKEN_TYPE_SETSTACKSIZE"; }break; case TOKEN_TYPE_VAR: { cout<<"TOKEN_TYPE_VAR"; }break; case TOKEN_TYPE_FUNC: { cout<<"TOKEN_TYPE_FUNC"; }break; case TOKEN_TYPE_PARAM: { cout<<"TOKEN_TYPE_PARAM"; }break; case TOKEN_TYPE_INVALID: { cout<<"*************Tis is bad************"; numInvalidTokens++; }break; case TOKEN_TYPE_REG_RETVAL: { cout<<"TOKEN_TYPE_REG_RETVAL"; }break; default: cout<<"This really shouldnt happen"; } } void AddAllInstructions() { int instrIndex = 0; instrIndex = instrTable.AddInstr("MOV",INSTR_MOV,2); instrTable.SetInstrOp(instrIndex,0,OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp(instrIndex,1,OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrIndex = instrTable.AddInstr("ADD", INSTR_ADD, 2 ); instrTable.SetInstrOp(instrIndex, 0, OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp(instrIndex, 1, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); // Sub Destination, Source instrIndex = instrTable.AddInstr( "SUB", INSTR_SUB, 2 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp( instrIndex, 1, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); //////////////////////////////////////////////////////////////////////////////// // Mul Destination, Source instrIndex = instrTable.AddInstr ( "MUL", INSTR_MUL, 2 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp( instrIndex, 1, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); // Div Destination, Source instrIndex = instrTable.AddInstr ( "DIV", INSTR_DIV, 2 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp( instrIndex, 1, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); // Mod Destination, Source instrIndex = instrTable.AddInstr ( "MOD", INSTR_MOD, 2 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp( instrIndex, 1, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); // Exp Destination, Source instrIndex = instrTable.AddInstr ( "EXP", INSTR_EXP, 2 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp( instrIndex, 1, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); // Neg Destination instrIndex = instrTable.AddInstr ( "NEG", INSTR_NEG, 1 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); // Inc Destination instrIndex = instrTable.AddInstr ( "INC", INSTR_INC, 1 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); // Dec Destination instrIndex = instrTable.AddInstr ( "DEC", INSTR_DEC, 1 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); // ---- Bitwise // And Destination, Source instrIndex = instrTable.AddInstr ( "AND", INSTR_AND, 2 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp( instrIndex, 1, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); // Or Destination, Source instrIndex = instrTable.AddInstr ( "OR", INSTR_OR, 2 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp( instrIndex, 1, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); // XOr Destination, Source instrIndex = instrTable.AddInstr ( "XOR", INSTR_XOR, 2 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp( instrIndex, 1, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); // Not Destination instrIndex = instrTable.AddInstr ( "NOT", INSTR_NOT, 1 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); // ShL Destination, Source instrIndex = instrTable.AddInstr ( "SHL", INSTR_SHL, 2 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp( instrIndex, 1, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); // ShR Destination, Source instrIndex = instrTable.AddInstr ( "SHR", INSTR_SHR, 2 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp( instrIndex, 1, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); // ---- String Manipulation // Concat String0, String1 instrIndex = instrTable.AddInstr ( "CONCAT", INSTR_CONCAT, 2 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp( instrIndex, 1, OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG | OP_FLAG_TYPE_STRING ); // GetChar Destination, Source, Index instrIndex = instrTable.AddInstr ( "GETCHAR", INSTR_GETCHAR, 3 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp( instrIndex, 1, OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG | OP_FLAG_TYPE_STRING ); instrTable.SetInstrOp( instrIndex, 2, OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG | OP_FLAG_TYPE_INT ); // SetChar Destination, Index, Source instrIndex = instrTable.AddInstr ( "SETCHAR", INSTR_SETCHAR, 3 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp( instrIndex, 1, OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG | OP_FLAG_TYPE_INT ); instrTable.SetInstrOp( instrIndex, 2, OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG | OP_FLAG_TYPE_STRING ); // ---- Conditional Branching // Jmp Label instrIndex = instrTable.AddInstr ( "JMP", INSTR_JMP, 1 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_LINE_LABEL ); // JE Op0, Op1, Label instrIndex = instrTable.AddInstr ( "JE", INSTR_JE, 3 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp( instrIndex, 1, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp( instrIndex, 2, OP_FLAG_TYPE_LINE_LABEL ); // JNE Op0, Op1, Label instrIndex = instrTable.AddInstr ( "JNE", INSTR_JNE, 3 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp( instrIndex, 1, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp( instrIndex, 2, OP_FLAG_TYPE_LINE_LABEL ); // JG Op0, Op1, Label instrIndex = instrTable.AddInstr ( "JG", INSTR_JG, 3 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp( instrIndex, 1, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp( instrIndex, 2, OP_FLAG_TYPE_LINE_LABEL ); // JL Op0, Op1, Label instrIndex = instrTable.AddInstr ( "JL", INSTR_JL, 3 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp( instrIndex, 1, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp( instrIndex, 2, OP_FLAG_TYPE_LINE_LABEL ); // JGE Op0, Op1, Label instrIndex = instrTable.AddInstr ( "JGE", INSTR_JGE, 3 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp( instrIndex, 1, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp( instrIndex, 2, OP_FLAG_TYPE_LINE_LABEL ); // JLE Op0, Op1, Label instrIndex = instrTable.AddInstr ( "JLE", INSTR_JLE, 3 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp( instrIndex, 1, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); instrTable.SetInstrOp( instrIndex, 2, OP_FLAG_TYPE_LINE_LABEL ); // ---- The Stack Interface // Push Source instrIndex = instrTable.AddInstr ( "PUSH", INSTR_PUSH, 1 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); // Pop Destination instrIndex = instrTable.AddInstr ( "POP", INSTR_POP, 1 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); // ---- The Function Interface // Call FunctionName instrIndex = instrTable.AddInstr ( "CALL", INSTR_CALL, 1 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_FUNC_NAME ); // Ret instrIndex = instrTable.AddInstr ( "RET", INSTR_RET, 0 ); // CallHost FunctionName instrIndex = instrTable.AddInstr ( "CALLHOST", INSTR_CALLHOST, 1 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_HOST_API_CALL ); // ---- Miscellaneous // Pause Duration instrIndex = instrTable.AddInstr ( "PAUSE", INSTR_PAUSE, 1 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); // Exit Code instrIndex = instrTable.AddInstr ( "EXIT", INSTR_EXIT, 1 ); instrTable.SetInstrOp( instrIndex, 0, OP_FLAG_TYPE_INT | OP_FLAG_TYPE_FLOAT | OP_FLAG_TYPE_STRING | OP_FLAG_TYPE_MEM_REF | OP_FLAG_TYPE_REG ); }
34.269504
92
0.505019
kpatel122
239ee0fadee646b7f353de292e7792c4d1d4c681
2,541
cpp
C++
source/lennaplugins/crop/crop.cpp
FalseCAM/lenna
5a649627a90b459ab369f1ac602f1c37b1db9c92
[ "MIT" ]
2
2021-09-21T18:38:36.000Z
2021-09-23T23:12:28.000Z
source/lennaplugins/crop/crop.cpp
FalseCAM/lenna
5a649627a90b459ab369f1ac602f1c37b1db9c92
[ "MIT" ]
null
null
null
source/lennaplugins/crop/crop.cpp
FalseCAM/lenna
5a649627a90b459ab369f1ac602f1c37b1db9c92
[ "MIT" ]
2
2016-07-04T18:27:31.000Z
2017-05-09T02:10:35.000Z
/** This file is part of program Lenna Copyright (C) 2016 FalseCAM This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "crop.h" #include "widget.h" #include <chrono> #include <thread> #include <QtGui/QPainter> #include <opencv2/calib3d/calib3d.hpp> using namespace lenna; using namespace lenna::plugin::crop; Crop::Crop() {} Crop::~Crop() { if (this->widget) { // delete this->widget; this->widget = nullptr; } } std::string Crop::getName() { return std::string("crop"); } std::string Crop::getTitle() { return tr("Crop").toStdString(); } std::string Crop::getVersion() { return std::string("0.1"); } std::string Crop::getAuthor() { return std::string("FalseCAM"); } std::string Crop::getDescription() { return tr("Plugin to crop images").toStdString(); } QIcon Crop::getIcon() { return QIcon(":/plugins/crop/crop"); } QWidget *Crop::getWidget() { if (!this->widget) { this->widget = new Widget(); } return this->widget; } void Crop::edit(std::shared_ptr<LennaImage> img) { cv::Mat image = img->getImage(); widget->setImage(image); while (!widget->isActionDone()) { std::this_thread::sleep_for(std::chrono::seconds(1)); } // 4 corners of image std::vector<cv::Point2f> image_points; image_points.push_back(cv::Point2f(float(0), float(0))); image_points.push_back(cv::Point2f(float(0), float(image.rows))); image_points.push_back(cv::Point2f(float(image.cols), float(image.rows))); image_points.push_back(cv::Point2f(float(image.cols), float(0))); std::vector<cv::Point2f> points = widget->getPoints(); cv::Mat h = cv::findHomography(points, image_points); cv::Size s; s.width = image.cols; s.height = image.rows; cv::warpPerspective(image, image, h, s); img->setMat(image); } std::shared_ptr<plugin::Plugin> Crop::getInstance(QString uid) { std::shared_ptr<Plugin> plugin = std::shared_ptr<Plugin>(new Crop()); plugin->setUID(uid); return plugin; }
27.923077
76
0.689099
FalseCAM
23a83ed58e6a8c89f69764fc4f46ae7de84e980b
1,540
cpp
C++
US3D/vtkFlRender.cpp
berardino/haptic
8cb2bec3566e25baed903cb6159503c20663fb30
[ "MIT" ]
null
null
null
US3D/vtkFlRender.cpp
berardino/haptic
8cb2bec3566e25baed903cb6159503c20663fb30
[ "MIT" ]
null
null
null
US3D/vtkFlRender.cpp
berardino/haptic
8cb2bec3566e25baed903cb6159503c20663fb30
[ "MIT" ]
null
null
null
// vtkFlRender.cpp: implementation of the vtkFlRender class. // ////////////////////////////////////////////////////////////////////// #include "vtkFlRender.h" ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// vtkFlRender::vtkFlRender(int x, int y, int w, int h) : vtkFlRenderWindowInteractor(x,y,w,h) { this->m_JPGReader=vtkJPEGReader::New(); this->m_Texture=vtkTexture::New(); this->m_Renderer = vtkRenderer::New(); this->m_Actor=vtkActor::New(); this->m_DataSetMapper=vtkDataSetMapper::New(); this->m_RenderWindow = vtkRenderWindow::New(); this->m_JPGReader->SetFileName("texture.jpg"); this->m_Texture->SetInput(this->m_JPGReader->GetOutput()); this->m_Texture->InterpolateOn(); this->m_Texture->RepeatOn(); this->m_RenderWindow->AddRenderer(this->m_Renderer); this->SetRenderWindow(this->m_RenderWindow); this->m_Actor->SetMapper(this->m_DataSetMapper); // this->m_Actor->SetTexture(this->m_Texture); this->m_Renderer->AddActor(this->m_Actor); this->m_Renderer->SetBackground(0.5,0.5,0.7); this->m_Renderer->SetAmbient(0.7,0,0); this->m_Actor->GetProperty()->SetAmbient(0.2); } vtkFlRender::~vtkFlRender() { this->m_Renderer->Delete(); this->m_Actor->Delete(); this->m_DataSetMapper->Delete(); this->m_RenderWindow->Delete(); } void vtkFlRender::SetInput(vtkDataSet *Input) { this->m_DataSetMapper->SetInput(Input); }
30.8
71
0.602597
berardino
23aff98f759970379069c5133903dbfdb0c21167
2,414
cpp
C++
Samples/ExtendedExecution/cpp/SampleConfiguration.cpp
dujianxin/Windows-universal-samples
d4e95ff0ac408c5d4d980bb18d53fb2c6556a273
[ "MIT" ]
2,504
2019-05-07T06:56:42.000Z
2022-03-31T19:37:59.000Z
Samples/ExtendedExecution/cpp/SampleConfiguration.cpp
dujianxin/Windows-universal-samples
d4e95ff0ac408c5d4d980bb18d53fb2c6556a273
[ "MIT" ]
314
2019-05-08T16:56:30.000Z
2022-03-21T07:13:45.000Z
Samples/ExtendedExecution/cpp/SampleConfiguration.cpp
dujianxin/Windows-universal-samples
d4e95ff0ac408c5d4d980bb18d53fb2c6556a273
[ "MIT" ]
2,219
2019-05-07T00:47:26.000Z
2022-03-30T21:12:31.000Z
//********************************************************* // // Copyright (c) Microsoft. All rights reserved. // This code is licensed under the MIT License (MIT). // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. // //********************************************************* #include "pch.h" #include "MainPage.xaml.h" #include "SampleConfiguration.h" using namespace Concurrency; using namespace Platform; using namespace SDKTemplate; using namespace Windows::Data::Xml::Dom; using namespace Windows::Foundation; using namespace Windows::System::Threading; using namespace Windows::UI::Notifications; Platform::Array<Scenario>^ MainPage::scenariosInner = ref new Platform::Array<Scenario> { { "Unspecified Reason", "SDKTemplate.UnspecifiedReason" }, { "Saving Data Reason", "SDKTemplate.SavingDataReason" }, { "Location Tracking Reason", "SDKTemplate.LocationTrackingReason" }, { "Using Multiple Tasks", "SDKTemplate.MultipleTasks" }, }; ToastNotification^ MainPage::DisplayToast(String^ content) { String^ xml = "<toast activationType='foreground'>" "<visual>" "<binding template='ToastGeneric'>" "<text>Extended Execution</text>" "</binding>" "</visual>" "</toast>"; XmlDocument^ doc = ref new XmlDocument(); doc->LoadXml(xml); auto binding = doc->SelectSingleNode("//binding"); auto el = doc->CreateElement("text"); el->InnerText = content; binding->AppendChild(el); // Add content to notification auto toast = ref new ToastNotification(doc); ToastNotificationManager::CreateToastNotifier()->Show(toast); // Show the toast return toast; } TimeSpan Helpers::TimeSpanFromSeconds(int seconds) { TimeSpan timeSpan; timeSpan.Duration = seconds * 1000LL * 10000LL; // convert seconds to TimeSpan units return timeSpan; } task<void> Helpers::DelayAsync(TimeSpan duration, Concurrency::cancellation_token cancel) { task_completion_event<void> tce; ThreadPoolTimer^ timer = ThreadPoolTimer::CreateTimer(ref new TimerElapsedHandler([tce](ThreadPoolTimer^) { tce.set(); }), duration); return task<void>(tce, cancel); }
32.621622
110
0.648302
dujianxin
23b1e3e0bd7df011973d0f5394ab0730a1a3bc1c
7,724
cpp
C++
Engine/Network/EntityHashing.cpp
openlastchaos/lastchaos-source-client
3d88594dba7347b1bb45378136605e31f73a8555
[ "Apache-2.0" ]
1
2022-02-14T15:46:44.000Z
2022-02-14T15:46:44.000Z
Engine/Network/EntityHashing.cpp
openlastchaos/lastchaos-source-client
3d88594dba7347b1bb45378136605e31f73a8555
[ "Apache-2.0" ]
null
null
null
Engine/Network/EntityHashing.cpp
openlastchaos/lastchaos-source-client
3d88594dba7347b1bb45378136605e31f73a8555
[ "Apache-2.0" ]
2
2022-01-10T22:17:06.000Z
2022-01-17T09:34:08.000Z
#include "stdh.h" #include <Engine/Entities/InternalClasses.h> #include <Engine/Entities/EntityClass.h> #include <Engine/Network/CNetwork.h> #include <Engine/Network/EntityHashing.h> #define VALUE_TYPE ULONG #define TYPE CEntityHashItem #define CHashTableSlot_TYPE CEntityHashTableSlot #define CHashTable_TYPE CEntityHashTable #include <Engine\Templates\HashTableTemplate.cpp> #undef VALUE_TYPE #undef TYPE #undef CHashTableSlot_TYPE #undef CHashTable_TYPE #include <Engine\Network\EMsgBuffer.h> #include <Engine\Base\Timer.h> extern FLOAT ser_fPositionTreshold; extern FLOAT ser_fOrientationTreshold; CEntityHashItem::CEntityHashItem(CEntity* penEntity) { ASSERT (penEntity != NULL); ehi_ulEntityID = penEntity->en_ulID; }; BOOL CEntityHashItem::ClientNeedsUpdate(INDEX iClient,TIME tmNow,FLOAT3D &vBasePosition) { ASSERT ((iClient>=0 && iClient<SERVER_CLIENTS) || (iClient==DEMO_CLIENT)); // get the entry for specified client CClientEntry &ceEntry = ehi_ceClientEntries[iClient]; // get the extrapolation factor FLOAT fLerpFactor = (tmNow - ceEntry.ce_tmLastUpdated) / _pTimer->TickQuantum; CEntity* penEntity = _pNetwork->ga_World.EntityFromID(ehi_ulEntityID); ASSERT(penEntity!=NULL); if (penEntity == NULL) { return FALSE; } // get the current real placement of the entity and the extraplated position from the last sent position CPlacement3D &plPlacement = penEntity->en_plPlacement; CPlacement3D plLastPlacement,plSpeed; plSpeed.pl_OrientationAngle = ceEntry.ce_plLastSentSpeed.pl_OrientationAngle * _pTimer->TickQuantum; plSpeed.pl_PositionVector = ceEntry.ce_plLastSentSpeed.pl_PositionVector * _pTimer->TickQuantum; plLastPlacement.Extrapolate(ceEntry.ce_plLastSentPlacement,plSpeed,fLerpFactor); FLOAT fPositionDelta; FLOAT fOrientationDelta; // calculate the dead reckoning error fPositionDelta = (plLastPlacement.pl_PositionVector - plPlacement.pl_PositionVector).Length(); fOrientationDelta = (plLastPlacement.pl_OrientationAngle - plPlacement.pl_OrientationAngle).ManhattanNorm(); // calculate the distance factor - Log2 of distance, '+ 1' is there so Log2 would never return a negative result FLOAT fDistanceFactor = (plPlacement.pl_PositionVector - vBasePosition).Length() + 1; fDistanceFactor = Log2(fDistanceFactor); // 3*ser_fPositionTreshold is temporary until replaced with a value dependant on the distance from the player BOOL bSendNow = (fPositionDelta >= (fDistanceFactor*ser_fPositionTreshold)) || (fOrientationDelta >= (fDistanceFactor*ser_fOrientationTreshold)); return bSendNow; }; void CEntityHashItem::UpdateClient(INDEX iClient,CEntityMessage &emEMessage,FLOAT3D &vBasePosition) { ASSERT ((iClient>=0 && iClient<SERVER_CLIENTS) || (iClient==DEMO_CLIENT)); CMovableEntity* pmenEntity = (CMovableEntity*)_pNetwork->ga_World.EntityFromID(ehi_ulEntityID); ASSERT(pmenEntity!=NULL); if (pmenEntity == NULL) { return; } // get the entry for specified client CClientEntry &ceEntry = ehi_ceClientEntries[iClient]; ceEntry.ce_tmLastUpdated = _pTimer->GetLerpedCurrentTick(); ceEntry.ce_plLastSentPlacement = pmenEntity->en_plPlacement; ceEntry.ce_plLastSentSpeed.pl_PositionVector = pmenEntity->en_vCurrentTranslationAbsolute; ceEntry.ce_plLastSentSpeed.pl_OrientationAngle = pmenEntity->en_aCurrentRotationAbsolute; if (pmenEntity->en_penParent != NULL && pmenEntity->en_penParent->GetPhysicsFlags()&EPF_MOVABLE) { ceEntry.ce_plLastSentSpeed.pl_PositionVector += ((CMovableEntity*)(pmenEntity->en_penParent))->en_vCurrentTranslationAbsolute; ceEntry.ce_plLastSentSpeed.pl_OrientationAngle += ((CMovableEntity*)(pmenEntity->en_penParent))->en_aCurrentRotationAbsolute; } // if the speed is very low, clamp it to zero because very low speeds may cause the next placement change // not to qualify for an update - the entity might keep sliding forever if (fabs(ceEntry.ce_plLastSentSpeed.pl_PositionVector(1))<ser_fPositionTreshold) ceEntry.ce_plLastSentSpeed.pl_PositionVector(1)= 0.0f; if (fabs(ceEntry.ce_plLastSentSpeed.pl_PositionVector(2))<ser_fPositionTreshold) ceEntry.ce_plLastSentSpeed.pl_PositionVector(2)= 0.0f; if (fabs(ceEntry.ce_plLastSentSpeed.pl_PositionVector(3))<ser_fPositionTreshold) ceEntry.ce_plLastSentSpeed.pl_PositionVector(3)= 0.0f; if (fabs(ceEntry.ce_plLastSentSpeed.pl_OrientationAngle(1))<ser_fPositionTreshold) ceEntry.ce_plLastSentSpeed.pl_OrientationAngle(1)= 0.0f; if (fabs(ceEntry.ce_plLastSentSpeed.pl_OrientationAngle(2))<ser_fPositionTreshold) ceEntry.ce_plLastSentSpeed.pl_OrientationAngle(2)= 0.0f; if (fabs(ceEntry.ce_plLastSentSpeed.pl_OrientationAngle(3))<ser_fPositionTreshold) ceEntry.ce_plLastSentSpeed.pl_OrientationAngle(3)= 0.0f; CPlacement3D plPlacement = ceEntry.ce_plLastSentPlacement; plPlacement.pl_PositionVector -= vBasePosition; emEMessage.WritePlacement(ehi_ulEntityID,plPlacement,ceEntry.ce_plLastSentSpeed); }; CEntityHash::CEntityHash() { extern INDEX net_iHashCompartments; extern INDEX net_iHashSlotsPerComp; extern INDEX net_iHashStep; eh_ehtHashTable.Clear(); eh_ehtHashTable.SetAllocationParameters(net_iHashCompartments,net_iHashSlotsPerComp,net_iHashStep); eh_ehtHashTable.SetCallbacks(GetItemKey,GetItemValue); }; CEntityHash::~CEntityHash() { RemoveAll(); eh_ehtHashTable.Clear(); }; void CEntityHash::AddEntity(CEntity* penEntity) { INDEX iEntityIndex = eh_ehtHashTable.FindIndex(penEntity->en_ulID); //ASSERT (iEntityIndex == -1); if (iEntityIndex == -1) { CEntityHashItem* ehiNewItem = new CEntityHashItem((CEntity*)penEntity); eh_ehtHashTable.Add(ehiNewItem); } }; void CEntityHash::RemoveEntity(CEntity* penEntity) { CEntityHashItem* ehiRemovedItem = eh_ehtHashTable.Find(penEntity->en_ulID); //ASSERT (ehiRemovedItem != NULL); if (ehiRemovedItem != NULL) { eh_ehtHashTable.Remove(ehiRemovedItem); delete ehiRemovedItem; } }; // does a client need an update for this entity? If so, create a seplacement message BOOL CEntityHash::ClientNeedsUpdate(INDEX iClient,TIME tmNow,ULONG ulEntityID,CEntityMessage &emEMessage,FLOAT3D &vBasePosition) { CEntityHashItem* ehiHashItem = eh_ehtHashTable.Find(ulEntityID); // if the entity has been destroyed , it is no longer in the hash table if (ehiHashItem==NULL) { return FALSE; } if (ehiHashItem->ClientNeedsUpdate(iClient,tmNow,vBasePosition)) { ehiHashItem->UpdateClient(iClient,emEMessage,vBasePosition); return TRUE; } return FALSE; }; // update a client's dead reckoning info for a specific entity BOOL CEntityHash::UpdateClient(INDEX iClient,ULONG ulEntityID,CEntityMessage &emEMessage,FLOAT3D &vBasePosition) { CEntityHashItem* ehiHashItem = eh_ehtHashTable.Find(ulEntityID); // if the entity has been destroyed , it is no longer in the hash table if (ehiHashItem==NULL) { return FALSE; } ehiHashItem->UpdateClient(iClient,emEMessage,vBasePosition); return TRUE; }; void CEntityHash::ReportEfficiency() { eh_ehtHashTable.ReportEfficiency(); }; void CEntityHash::Clear() { RemoveAll(); eh_ehtHashTable.Clear(); }; void CEntityHash::RemoveAll() { ASSERT(eh_ehtHashTable.ht_ctCompartments>0 && eh_ehtHashTable.ht_ctSlotsPerComp>0); for (INDEX iComp=0;iComp<eh_ehtHashTable.ht_ctCompartments;iComp++) { // for each slot in the compartment INDEX iSlot = iComp*eh_ehtHashTable.ht_ctSlotsPerComp; for(INDEX iSlotInComp=0; iSlotInComp<eh_ehtHashTable.ht_ctSlotsPerComp; iSlotInComp++, iSlot++) { // if it is not empty CEntityHashTableSlot &hts = eh_ehtHashTable.ht_ahtsSlots[iSlot]; if (eh_ehtHashTable.ht_ahtsSlots[iSlot].hts_ptElement!=NULL) { delete eh_ehtHashTable.ht_ahtsSlots[iSlot].hts_ptElement; eh_ehtHashTable.ht_ahtsSlots[iSlot].hts_ptElement = NULL; } } } return; };
36.093458
146
0.795184
openlastchaos
23c01bc012a1c5185e8af4b945383b5263654313
1,538
cpp
C++
src/win32/PropertyGridListBox.cpp
NullPopPoLab/Play--Framework
ab4594f9ef548f1476c9017e122a05dfb91cc9d3
[ "BSD-2-Clause" ]
35
2015-02-19T20:11:05.000Z
2021-11-05T12:55:07.000Z
src/win32/PropertyGridListBox.cpp
NullPopPoLab/Play--Framework
ab4594f9ef548f1476c9017e122a05dfb91cc9d3
[ "BSD-2-Clause" ]
24
2015-07-19T04:51:29.000Z
2022-03-31T00:36:45.000Z
src/win32/PropertyGridListBox.cpp
Thunder07/Play--Framework
b0c8487656492f237f6613fccadbb8011b61bd4d
[ "BSD-2-Clause" ]
22
2015-02-16T03:36:00.000Z
2022-01-23T13:15:00.000Z
#include <windowsx.h> #include "win32/PropertyGridListBox.h" using namespace Framework; using namespace Framework::Win32; #define LISTBOX_STYLE (WS_CLIPCHILDREN | WS_CLIPSIBLINGS | LBS_NOTIFY | LBS_OWNERDRAWFIXED | LBS_NOINTEGRALHEIGHT | LBS_WANTKEYBOARDINPUT) CPropertyGridListBox::CPropertyGridListBox(HWND parentWnd) : CListBox(parentWnd, CRect(0, 0, 1, 1), LISTBOX_STYLE) { SubClass(); // SetWindowTheme(m_hWnd, _T(""), _T("")); } CPropertyGridListBox::~CPropertyGridListBox() { } LRESULT CPropertyGridListBox::OnWndProc(UINT msg, WPARAM wparam, LPARAM lparam) { switch(msg) { case WM_GETDLGCODE: return (DLGC_WANTALLKEYS | CallWindowProc(m_baseWndProc, m_hWnd, msg, wparam, lparam)); break; case WM_LBUTTONDOWN: return OnLeftButtonDown(GET_X_LPARAM(lparam), GET_Y_LPARAM(lparam)); break; case WM_LBUTTONUP: return OnLeftButtonUp(GET_X_LPARAM(lparam), GET_Y_LPARAM(lparam)); break; } return CallWindowProc(m_baseWndProc, m_hWnd, msg, wparam, lparam); } long CPropertyGridListBox::OnLeftButtonDown(int x, int y) { return FALSE; } long CPropertyGridListBox::OnLeftButtonUp(int x, int y) { auto itemFromPointInfo = SendMessage(m_hWnd, LB_ITEMFROMPOINT, 0, MAKELPARAM(x, y)); bool outside = HIWORD(itemFromPointInfo) != 0; if(outside) return FALSE; unsigned int itemIndex = LOWORD(itemFromPointInfo); if(GetCurrentSelection() != itemIndex) { SetCurrentSelection(itemIndex); } SetFocus(); StartEdition(itemIndex); return FALSE; }
24.412698
139
0.73407
NullPopPoLab
23c70f4de5f3c9e87e67e4e62d04da156b742db7
5,015
cpp
C++
GamePlay/Source/GameLogicTutorFractions.cpp
TaylorClark/PrimeTime
3c62f6c53e0494146a95be1412273de3cf05bcd2
[ "MIT" ]
null
null
null
GamePlay/Source/GameLogicTutorFractions.cpp
TaylorClark/PrimeTime
3c62f6c53e0494146a95be1412273de3cf05bcd2
[ "MIT" ]
null
null
null
GamePlay/Source/GameLogicTutorFractions.cpp
TaylorClark/PrimeTime
3c62f6c53e0494146a95be1412273de3cf05bcd2
[ "MIT" ]
null
null
null
//================================================================================================= /*! \file GameLogicTutorFractions.cpp Game Play Library Fraction Mode Tutorial Game Logic Source \author Taylor Clark \date January 30, 2010 This source file contains the definition for the Prime Time fraction mode tutorial logic. */ //================================================================================================= #include "../GameLogicTutorFractions.h" #include "../GameFieldFractions.h" #include "../GameFieldBlockFraction.h" static const uint32 NUM_ROWS = 5; /////////////////////////////////////////////////////////////////////////////////////////////////// // GameLogicTutorFractions::SubclassInit Protected /// \param frameTime The elapsed frame time /// /// Initialize a derived class's data. /////////////////////////////////////////////////////////////////////////////////////////////////// bool GameLogicTutorFractions::SubclassInit() { m_Steps.resize( 6 ); int stpIdx = 0; m_Steps[stpIdx++] = Step( L"On the left you will see the fraction for which you must find an equivalent fraction.", 0, Goal( GT_CloseMsgBox ) ); m_Steps[stpIdx++] = Step( L"We need to find a fraction that is eqaul to one third. Four twelfths is equivalent so let's clear that.", 0, Goal( GT_CloseMsgBox ) ); m_Steps[stpIdx++] = Step( L"By default you select the numerator first. So let's select the 4.", L"Select the 4", Goal( GT_SelectBlock, 4 ) ); m_Steps[stpIdx++] = Step( L"Now let's select the denominator.", L"Select the 12", Goal( GT_SelectBlock, 12 ) ); m_Steps[stpIdx++] = Step( L"Great job! Now the 4 and 12 will be removed and you will get a new fraction for which you must find an equivalent. Go give it a try. One more tip...", 0, Goal( GT_CloseMsgBox ) ); m_Steps[stpIdx++] = Step( L"If you would rather select the denominator first, you can click on the denominator block to the right of the field, then the number block you want. Good luck!", 0, Goal( GT_CloseMsgBox ) ); // Start at the first step m_CurStepIndex = 0; // Initialize the base class bool retVal = GameLogicFractions::SubclassInit(); // Add the rest of the lines to numbers for( int32 rowIndex = 3; rowIndex < NUM_ROWS; ++rowIndex ) _pGameFieldFractions->DropNewBlocks( GenerateBlocksToFieldWidth() ); // Update the interface OnNewStep(); return retVal; } /// A message handler for when a block is selected that contains the mode-specific logic GameLogic::EBlockSelAction GameLogicTutorFractions::OnBlockSelect( GameFieldBlock* pBlock ) { return GameLogicTutorBase< GameLogicFractions >::OnBlockSelect( pBlock ); } /////////////////////////////////////////////////////////////////////////////////////////////////// // GenerateRow Global /// \param vals The values to use for the block values /// \param pFieldBlocks The array of field blocks to fill in. /// /// Generate a row of blocks. /////////////////////////////////////////////////////////////////////////////////////////////////// void GenerateRow( const int32 vals[5], GameFieldBlockMultBase** pFieldBlocks ) { //int32 vals[5] = { val0, val1, val2, val3, val4 }; for( int32 blockIndex = 0; blockIndex < 5; ++blockIndex ) { pFieldBlocks[blockIndex] = new GameFieldBlockFraction( vals[blockIndex] ); if( !pFieldBlocks[blockIndex] ) break; pFieldBlocks[blockIndex]->sprite = ResourceMgr::Get().GetRefSprite( RESID_SPRITE_PRODUCT_BLOCK ); pFieldBlocks[blockIndex]->colIndex = blockIndex; } } /// Get the next fraction for the player to solve Fraction GameLogicTutorFractions::GetNextFraction() const { return Fraction( 1, 3 ); } /////////////////////////////////////////////////////////////////////////////////////////////////// // // GameLogicTutorFractions::GenerateBlocksToFieldWidth Public /// /// \returns An array of field blocks representing the generated row /// /// Generate blocks up to the field width. /// /////////////////////////////////////////////////////////////////////////////////////////////////// GameFieldBlockMultBase** GameLogicTutorFractions::GenerateBlocksToFieldWidth() { static GameFieldBlockMultBase* s_FieldBlocks[ GameFieldMultBase::FIELD_WIDTH + 1 ] = {0}; // The rows are in reverse order, last row first const int32 BLOCKS[NUM_ROWS][5] = {{10, 2, 3, 5, 2}, {15, 5, 2, 18, 2}, {6, 2, 2, 5, 2}, {3, 4, 15, 2, 2}, {9, 3, 12, 2, 5} }; if( m_RowsGenerated < NUM_ROWS ) GenerateRow( BLOCKS[m_RowsGenerated], s_FieldBlocks ); else s_FieldBlocks[0] = 0; s_FieldBlocks[5] = 0; // Increment the number of rows generated m_RowsGenerated++; // If the current step is a row generate step if( m_CurStepIndex < m_Steps.size() && m_Steps[ m_CurStepIndex ].goal.goalType == GT_GenerateRows ) { // If the correct number is generated then mark completed if( m_RowsGenerated >= m_Steps[ m_CurStepIndex ].goal.data.rowsGenerated ) m_Steps[ m_CurStepIndex ].goal.isCompleted = true; } // Return the array return s_FieldBlocks; }
37.425373
218
0.605982
TaylorClark
23ccad84aa35300891e884edfd6c69856e3426c4
2,563
hpp
C++
modules/scene_manager/include/lifecycle_msgs/msg/transition__rosidl_typesupport_opensplice_cpp.hpp
Omnirobotic/godot
d50b5d047bbf6c68fc458c1ad097321ca627185d
[ "CC-BY-3.0", "Apache-2.0", "MIT" ]
null
null
null
modules/scene_manager/include/lifecycle_msgs/msg/transition__rosidl_typesupport_opensplice_cpp.hpp
Omnirobotic/godot
d50b5d047bbf6c68fc458c1ad097321ca627185d
[ "CC-BY-3.0", "Apache-2.0", "MIT" ]
3
2019-11-14T12:20:06.000Z
2020-08-07T13:51:10.000Z
modules/scene_manager/include/lifecycle_msgs/msg/transition__rosidl_typesupport_opensplice_cpp.hpp
Omnirobotic/godot
d50b5d047bbf6c68fc458c1ad097321ca627185d
[ "CC-BY-3.0", "Apache-2.0", "MIT" ]
null
null
null
// generated from // rosidl_typesupport_opensplice_cpp/resource/msg__rosidl_typesupport_opensplice_cpp.hpp.em // generated code does not contain a copyright notice #ifndef LIFECYCLE_MSGS__MSG__TRANSITION__ROSIDL_TYPESUPPORT_OPENSPLICE_CPP_HPP_ #define LIFECYCLE_MSGS__MSG__TRANSITION__ROSIDL_TYPESUPPORT_OPENSPLICE_CPP_HPP_ #include "lifecycle_msgs/msg/transition__struct.hpp" #include "lifecycle_msgs/msg/dds_opensplice/ccpp_Transition_.h" #include "rosidl_generator_c/message_type_support_struct.h" #include "rosidl_typesupport_interface/macros.h" #include "lifecycle_msgs/msg/rosidl_typesupport_opensplice_cpp__visibility_control.h" namespace DDS { class DomainParticipant; class DataReader; class DataWriter; } // namespace DDS namespace lifecycle_msgs { namespace msg { namespace typesupport_opensplice_cpp { ROSIDL_TYPESUPPORT_OPENSPLICE_CPP_PUBLIC_lifecycle_msgs extern void register_type__Transition( DDS::DomainParticipant * participant, const char * type_name); ROSIDL_TYPESUPPORT_OPENSPLICE_CPP_PUBLIC_lifecycle_msgs extern void convert_ros_message_to_dds( const lifecycle_msgs::msg::Transition & ros_message, lifecycle_msgs::msg::dds_::Transition_ & dds_message); ROSIDL_TYPESUPPORT_OPENSPLICE_CPP_PUBLIC_lifecycle_msgs extern void publish__Transition( DDS::DataWriter * topic_writer, const void * untyped_ros_message); ROSIDL_TYPESUPPORT_OPENSPLICE_CPP_PUBLIC_lifecycle_msgs extern void convert_dds_message_to_ros( const lifecycle_msgs::msg::dds_::Transition_ & dds_message, lifecycle_msgs::msg::Transition & ros_message); ROSIDL_TYPESUPPORT_OPENSPLICE_CPP_PUBLIC_lifecycle_msgs extern bool take__Transition( DDS::DataReader * topic_reader, bool ignore_local_publications, void * untyped_ros_message, bool * taken); ROSIDL_TYPESUPPORT_OPENSPLICE_CPP_EXPORT_lifecycle_msgs const char * serialize__Transition( const void * untyped_ros_message, void * serialized_data); ROSIDL_TYPESUPPORT_OPENSPLICE_CPP_EXPORT_lifecycle_msgs const char * deserialize__Transition( const uint8_t * buffer, unsigned length, void * untyped_ros_message); } // namespace typesupport_opensplice_cpp } // namespace msg } // namespace lifecycle_msgs #ifdef __cplusplus extern "C" { #endif ROSIDL_TYPESUPPORT_OPENSPLICE_CPP_PUBLIC_lifecycle_msgs const rosidl_message_type_support_t * ROSIDL_TYPESUPPORT_INTERFACE__MESSAGE_SYMBOL_NAME(rosidl_typesupport_opensplice_cpp, lifecycle_msgs, msg, Transition)(); #ifdef __cplusplus } #endif #endif // LIFECYCLE_MSGS__MSG__TRANSITION__ROSIDL_TYPESUPPORT_OPENSPLICE_CPP_HPP_
27.55914
122
0.849395
Omnirobotic
23d0c46473c07a6109fd6a96698d5be25ccf566c
112
cpp
C++
libtooling/tests/lambda.cpp
abdarker/facebook-clang-plugins
7d55695bb0cbd821ae0acc33db5a6982abd2da3a
[ "BSD-3-Clause" ]
null
null
null
libtooling/tests/lambda.cpp
abdarker/facebook-clang-plugins
7d55695bb0cbd821ae0acc33db5a6982abd2da3a
[ "BSD-3-Clause" ]
null
null
null
libtooling/tests/lambda.cpp
abdarker/facebook-clang-plugins
7d55695bb0cbd821ae0acc33db5a6982abd2da3a
[ "BSD-3-Clause" ]
null
null
null
int main (){ int m,n; auto f = [](){return 1;}; auto bar = [&m, n] (int a) { return m; }; return 0; }
12.444444
45
0.455357
abdarker
23d949efe79b959a7ba9b3b3133b8b61d83ccab3
999
cpp
C++
thirdparty/source/nu/tests/error_or_example.cpp
TomatoYoung/beegfs
edf287940175ecded493183209719d2d90d45374
[ "BSD-3-Clause" ]
null
null
null
thirdparty/source/nu/tests/error_or_example.cpp
TomatoYoung/beegfs
edf287940175ecded493183209719d2d90d45374
[ "BSD-3-Clause" ]
null
null
null
thirdparty/source/nu/tests/error_or_example.cpp
TomatoYoung/beegfs
edf287940175ecded493183209719d2d90d45374
[ "BSD-3-Clause" ]
null
null
null
using nu::error_or; using nu::make_error_or; // default-constructed objects contain Err(), which by default is std::error_code error_or<int> e; error_or<int> i(1); // et will still contain Err() error_or<int> et = e / [] (int i) { return i+1; }; ASSERT_EQ(et.error(), std::error_code()); // it will contain 2 error_or<int> it = i / [] (int i) { return i+1; }; ASSERT_EQ(it.value(), 2); // er will be set to -1 int er = e.reduce( [] (int i) { return i; }, [] (std::error_code) { return -1; }); ASSERT_EQ(er, -1); // ir will be set to 1 int ir = i.reduce( [] (int i) { return i; }, [] (std::error_code) { return -1; }); ASSERT_EQ(ir, 1); // % can be used to chain operations that may themselves fail error_or<double> d = make_error_or<int>(1) / [] (int i) { return i - 1; } % [] (int i) -> error_or<double> { if (i != 0) return i * 3.14; else return {std::make_error_code(std::errc::invalid_argument)}; }; ASSERT_FALSE(d);
25.615385
81
0.582583
TomatoYoung
23dc8ce85a9d52ad52155110a606d79522981997
343
cpp
C++
core/src/DebouncerImpuseRepeatStrategy.cpp
perimeno/LIO
62578bdee261735afa23f7c0c8437e927425aef6
[ "MIT" ]
25
2019-08-07T02:38:39.000Z
2022-01-14T03:13:58.000Z
core/src/DebouncerImpuseRepeatStrategy.cpp
perimeno/LIO
62578bdee261735afa23f7c0c8437e927425aef6
[ "MIT" ]
6
2020-01-17T20:51:15.000Z
2021-03-11T12:38:29.000Z
core/src/DebouncerImpuseRepeatStrategy.cpp
perimeno/LIO
62578bdee261735afa23f7c0c8437e927425aef6
[ "MIT" ]
2
2019-08-24T19:02:12.000Z
2020-06-11T06:14:34.000Z
#include "DebouncerImpuseRepeatStrategy.h" using namespace LIO; DebouncerImpulseRepeatStrategy::DebouncerImpulseRepeatStrategy():onCb([]{}),offCb([]{}){ } void DebouncerImpulseRepeatStrategy::setOnCallback(std::function<void()>cb){ onCb=cb; } void DebouncerImpulseRepeatStrategy::setOffCallback(std::function<void()>cb){ offCb=cb; }
26.384615
88
0.772595
perimeno
23ec57f327f16dbd276c7596fa06b02910ba5018
3,147
cpp
C++
Street Fighter II/ModuleParticles.cpp
mtorres5254/Arial--Comic-Sans--Dealers
2c668e0980c80e141fa1a43726fdf6f6149f299a
[ "CC0-1.0" ]
2
2019-02-28T17:43:05.000Z
2019-06-09T17:45:17.000Z
Street Fighter II/ModuleParticles.cpp
mtorres5254/Arial--Comic-Sans--Dealers
2c668e0980c80e141fa1a43726fdf6f6149f299a
[ "CC0-1.0" ]
1
2019-05-03T07:38:50.000Z
2019-05-03T07:38:50.000Z
Street Fighter II/ModuleParticles.cpp
mtorres5254/Arial--Comic-Sans--Dealers
2c668e0980c80e141fa1a43726fdf6f6149f299a
[ "CC0-1.0" ]
2
2019-02-28T17:43:15.000Z
2019-12-28T17:25:42.000Z
#include <math.h> #include "Globals.h" #include "Application.h" #include "ModuleTextures.h" #include "ModuleRender.h" #include "ModuleParticles.h" #include "ModuleAudio.h" #include "ModuleCollision.h" #include "SDL/include/SDL_timer.h" ModuleParticles::ModuleParticles() { for(uint i = 0; i < MAX_ACTIVE_PARTICLES; ++i) active[i] = nullptr; } ModuleParticles::~ModuleParticles() {} // Load assets bool ModuleParticles::Start() { LOG("Loading particles"); graphics = App->textures->Load("Assets/Images/SFX.png"); hit.anim.PushBack1({ 71, 95, 13, 17 }, { 31,2 }, 0, {}, {}, {}, {}); hit.anim.PushBack1({ 85, 93, 22, 19 }, { 31,2 }, 0, {}, {}, {}, {}); hit.anim.PushBack1({ 109, 87, 27, 26 }, { 31,2 }, 0, {}, {}, {}, {}); hit.anim.loop = true; hit.anim.speed = 0.2f; hit.speed.x = 0; hit.life = 500; return true; } // Unload assets bool ModuleParticles::CleanUp() { LOG("Unloading particles"); for(uint i = 0; i < MAX_ACTIVE_PARTICLES; ++i) { if(active[i] != nullptr) { delete active[i]; active[i] = nullptr; } } App->textures->Unload(graphics); return true; } // Update: draw background update_status ModuleParticles::Update() { for(uint i = 0; i < MAX_ACTIVE_PARTICLES; ++i) { Particle* p = active[i]; if(p == nullptr) continue; if(p->Update() == false) { delete p; active[i] = nullptr; } else if(SDL_GetTicks() >= p->born) { App->render->Blit(graphics, p->position.x, p->position.y, &(p->anim.GetCurrentFrame())); if(p->fx_played == false) { p->fx_played = true; // } } } return UPDATE_CONTINUE; } void ModuleParticles::AddParticle(const Particle& particle, int x, int y, COLLIDER_TYPE collider_type, Uint32 delay) { for (uint i = 0; i < MAX_ACTIVE_PARTICLES; ++i) { if (active[i] == nullptr) { Particle* p = new Particle(particle); p->born = SDL_GetTicks() + delay; p->position.x = x; p->position.y = y; p->damage = particle.damage; if (collider_type != COLLIDER_NONE) p->collider = App->collision->AddCollider(p->anim.GetCurrentFrame(), collider_type, this, p->damage); active[i] = p; break; } } } void ModuleParticles::OnCollision(Collider* c1, Collider* c2) { for (uint i = 0; i < MAX_ACTIVE_PARTICLES; ++i) { // Always destroy particles that collide if (active[i] != nullptr && active[i]->collider == c1) { delete active[i]; active[i] = nullptr; break; } } } // ------------------------------------------------------------- // ------------------------------------------------------------- Particle::Particle() { position.SetToZero(); speed.SetToZero(); } Particle::Particle(const Particle& p) : anim(p.anim), position(p.position), speed(p.speed), fx(p.fx), born(p.born), life(p.life) {} Particle::~Particle() { if (collider != nullptr) collider->to_delete = true; } bool Particle::Update() { bool ret = true; if (life > 0) { if ((SDL_GetTicks() - born) > life) ret = false; } else if (anim.Finished()) ret = false; position.x += speed.x; position.y += speed.y; if (collider != nullptr) collider->SetPos(position.x, position.y); return ret; }
19.425926
116
0.598983
mtorres5254
23f173eaa9228274fdf49ff2f793994aad3693a6
220
cpp
C++
qr-state.cpp
nnm-t/m5stickc-visiting-card
858a11ffa48c6d7e76d19c84cb9529a3ef3754da
[ "MIT" ]
3
2020-03-08T07:15:04.000Z
2020-07-20T17:28:28.000Z
qr-state.cpp
nnm-t/m5stickc-visiting-card
858a11ffa48c6d7e76d19c84cb9529a3ef3754da
[ "MIT" ]
null
null
null
qr-state.cpp
nnm-t/m5stickc-visiting-card
858a11ffa48c6d7e76d19c84cb9529a3ef3754da
[ "MIT" ]
null
null
null
#include "qr-state.h" constexpr const Vector2<uint16_t> QRState::qr_pos; void QRState::DrawQRCode() { LCD::DrawQRCode(url, qr_pos, 64, 2); } void QRState::Begin() { DrawQRCode(); } void QRState::Update() { }
12.222222
50
0.663636
nnm-t
23f6723c1cba7f49f1e0d966824f675f1093af6c
21,403
hpp
C++
include/zisa/experiments/mpi_numerical_experiment.hpp
1uc/ZisaFVM
75fcedb3bece66499e011228a39d8a364b50fd74
[ "MIT" ]
null
null
null
include/zisa/experiments/mpi_numerical_experiment.hpp
1uc/ZisaFVM
75fcedb3bece66499e011228a39d8a364b50fd74
[ "MIT" ]
null
null
null
include/zisa/experiments/mpi_numerical_experiment.hpp
1uc/ZisaFVM
75fcedb3bece66499e011228a39d8a364b50fd74
[ "MIT" ]
1
2021-08-24T11:52:51.000Z
2021-08-24T11:52:51.000Z
// SPDX-License-Identifier: MIT // Copyright (c) 2021 ETH Zurich, Luc Grosheintz-Laval #ifndef ZISA_MPI_NUMERICAL_EXPERIMENT_HPP #define ZISA_MPI_NUMERICAL_EXPERIMENT_HPP #if ZISA_HAS_MPI == 1 #include <zisa/boundary/halo_exchange_bc.hpp> #include <zisa/cli/input_parameters.hpp> #include <zisa/grid/grid.hpp> #include <zisa/io/backtrace.hpp> #include <zisa/io/gathered_visualization.hpp> #include <zisa/io/parallel_dump_snapshot.hpp> #include <zisa/model/distributed_cfl_condition.hpp> #include <zisa/mpi/io/gathered_vis_info.hpp> #include <zisa/mpi/io/gathered_visualization_factory.hpp> #include <zisa/mpi/io/hdf5_unstructured_writer.hpp> #include <zisa/mpi/io/mpi_progress_bar.hpp> #include <zisa/mpi/io/parallel_load_snapshot.hpp> #include <zisa/mpi/io/scattered_data_source_factory.hpp> #include <zisa/mpi/math/distributed_reference_solution.hpp> #include <zisa/mpi/parallelization/mpi_all_reduce.hpp> #include <zisa/mpi/parallelization/mpi_all_variables_gatherer.hpp> #include <zisa/mpi/parallelization/mpi_halo_exchange.hpp> #include <zisa/mpi/parallelization/mpi_single_node_array_gatherer.hpp> #include <zisa/mpi/parallelization/mpi_single_node_array_scatterer.hpp> #include <zisa/ode/simulation_clock.hpp> #include <zisa/ode/time_keeper_factory.hpp> #include <zisa/parallelization/all_variables_gatherer.hpp> #include <zisa/parallelization/all_variables_scatterer.hpp> #include <zisa/parallelization/distributed_grid.hpp> #include <zisa/parallelization/domain_decomposition.hpp> #include <zisa/parallelization/local_grid.hpp> namespace zisa { template <class NMExp> class MPINumericalExperiment : public NMExp { private: using super = NMExp; public: explicit MPINumericalExperiment(const InputParameters &params) : super(params), mpi_rank(zisa::mpi::rank(mpi_comm)), mpi_comm_size(zisa::mpi::size(mpi_comm)) {} protected: GMSHElementType deduce_element_type(int_t max_neighbours) const { return max_neighbours == 3 ? GMSHElementType::triangle : GMSHElementType::tetrahedron; } std::string parallel_visualization_strategy() const { return this->params["io"].value("parallel_strategy", std::string("split")); } bool is_unstructured_visualization() const { return parallel_visualization_strategy() == "unstructured"; } bool is_gathered_visualization() const { return parallel_visualization_strategy() == "gathered"; } bool is_split_visualization() const { return parallel_visualization_strategy() == "split"; } void write_grid() override { auto grid = this->choose_grid(); auto fng = this->choose_file_name_generator(); if (is_gathered_visualization()) { auto vis_info = choose_gathered_vis_info(); auto gatherer_factory = choose_gatherer_factory(); auto gatherer = gatherer_factory->template create_object<CellFlags, 1>(); if (vis_info->h5_comm != MPI_COMM_NULL) { auto cell_flags = array<CellFlags, 1>(vis_info->n_vis_cells()); gatherer.copy_local_patch( array_view(cell_flags), const_slice(array_const_view(grid->cell_flags), 0, vis_info->n_local_cells)); gatherer.receive(array_view(cell_flags)); apply_permutation(array_view(cell_flags), *vis_info->permutation); auto flags_name = std::filesystem::path(fng->dirname) / "cell_flags.h5"; auto file_dims = choose_gathered_file_info(); auto writer = HDF5UnstructuredWriter( flags_name, file_dims, HDF5Access::overwrite); save(writer, cell_flags, "cell_flags"); } else { gatherer.send(const_slice( array_const_view(grid->cell_flags), 0, vis_info->n_local_cells)); } } else if (is_split_visualization()) { auto dir = string_format("part-%04d/", mpi_rank); create_directory(dir); auto writer = HDF5SerialWriter(dir + "cell_flags.h5"); save(writer, grid->cell_flags, "cell_flags"); } else if (is_unstructured_visualization()) { auto flags_name = std::filesystem::path(fng->dirname) / "cell_flags.h5"; auto file_dims = choose_file_dimensions(); auto writer = HDF5UnstructuredWriter( flags_name, file_dims, HDF5Access::overwrite); save(writer, grid->cell_flags, "cell_flags"); } else { LOG_ERR("Broken logic."); } } void print_grid_info() override { if (mpi_rank == 0) { super::print_grid_info(); } } void do_post_run(const std::shared_ptr<AllVariables> &u1) override { if (!has_key(this->params, "reference")) { // Post processing the reference solution is not requested. return; } auto u1_ref = this->deduce_reference_solution(*u1); down_sample(u1_ref, "reference.h5"); auto fng = this->choose_file_name_generator(); auto steady_state_filename = fng->steady_state_filename; auto u_delta = load_all_vars(steady_state_filename); auto halo_exchange = choose_halo_exchange(); (*halo_exchange)(*u_delta); (*halo_exchange).wait(); for (int_t i = 0; i < u_delta->size(); ++i) { (*u_delta)[i] = (*u1)[i] - (*u_delta)[i]; } auto grid = this->choose_grid(); auto local_eos = this->choose_local_eos(); auto weno_params = this->choose_weno_reference_params(); auto local_rc_params = this->choose_local_rc_params(); auto rc = make_reconstruction_array<NoEquilibrium, CWENO_AO, UnityScaling, typename super::eos_t, typename super::gravity_t>( grid, weno_params, *local_eos, this->gravity, local_rc_params); auto grc = std::make_shared< EulerGlobalReconstruction<NoEquilibrium, CWENO_AO, UnityScaling>>( weno_params, std::move(rc)); auto u_delta_ref = this->deduce_reference_solution_eq(*u_delta, grc); down_sample(u_delta_ref, "delta.h5"); } std::shared_ptr<AllVariables> load_all_vars(const std::string &filename) { if (is_gathered_visualization()) { auto grid = this->choose_grid(); auto vis_info = choose_gathered_vis_info(); auto scatter_tag = ZISA_MPI_TAG_LOAD_ALL_VARS; if (vis_info->h5_comm != MPI_COMM_NULL) { auto file_dims = choose_gathered_file_info(); auto reader = HDF5UnstructuredReader(filename, file_dims); auto all_vars_patch = AllVariables::load(reader, all_labels<euler_var_t>()); reverse_permutation(array_view(all_vars_patch.cvars), *vis_info->permutation); auto darray_info = make_distributed_array_info(vis_info->vis_boundaries); auto cvars_scatterer = std::make_unique<MPISingleNodeArrayScatterer<double, 2>>( darray_info, vis_info->vis_comm, scatter_tag); auto avars_scatterer = std::make_unique<MPISingleNodeArrayScatterer<double, 2>>( darray_info, vis_info->vis_comm, scatter_tag + 1); auto scatterer = AllVariablesScatterer(std::move(cvars_scatterer), std::move(avars_scatterer), vis_info->n_local_cells, grid->n_cells); return std::make_shared<AllVariables>( scatterer.scatter(all_vars_patch)); } else { auto cvars_scatterer = std::make_unique<MPISingleNodeArrayScatterer<double, 2>>( nullptr, vis_info->vis_comm, scatter_tag); auto avars_scatterer = std::make_unique<MPISingleNodeArrayScatterer<double, 2>>( nullptr, vis_info->vis_comm, scatter_tag + 1); auto scatterer = AllVariablesScatterer(std::move(cvars_scatterer), std::move(avars_scatterer), vis_info->n_local_cells, grid->n_cells); return std::make_shared<AllVariables>(scatterer.scatter(5, 0)); } } if (is_unstructured_visualization()) { auto file_dims = choose_file_dimensions(); auto reader = HDF5UnstructuredReader(filename, file_dims); return std::make_shared<AllVariables>( AllVariables::load(reader, all_labels<euler_var_t>())); } LOG_ERR("Implement missing case."); } void down_sample(const std::shared_ptr<ReferenceSolution> &ref_soln, const std::string &filename) { std::vector<std::string> coarse_grid_paths = this->params["reference"]["coarse_grids"]; auto serialize = [this](const std::string &filename, MPI_Comm small_comm, const DistributedGrid &small_dgrid, const AllVariables &all_vars) { auto vis_info = this->compute_gathered_vis_info(small_comm, small_dgrid); auto gatherer_factory = this->compute_gatherer_factory(*vis_info); auto all_var_dims = this->choose_all_variable_dims(); auto simulation_clock = this->choose_simulation_clock(); auto fng = std::make_shared<SingleFileNameGenerator>(filename); auto file_dims = compute_gathered_file_info(*vis_info); auto local_eos = this->compute_local_eos(file_dims->n_cells_local); auto dump_snapshot = std::make_shared<ParallelDumpSnapshot<typename super::eos_t>>( local_eos, fng, file_dims); auto vis = make_gathered_visualization(std::move(vis_info), std::move(gatherer_factory), std::move(dump_snapshot), all_var_dims); (*vis)(all_vars, *simulation_clock); }; auto fine_grid = this->choose_grid(); auto mask = super::boundary_mask(); auto interpolation = [&ref_soln](int_t i, const XYZ &x, int_t k) { return ref_soln->q_ref(x, k, i); }; auto dref = DistributedReferenceSolution( serialize, fine_grid, interpolation, euler_var_t::size()); for (const auto &coarse_base_folder : coarse_grid_paths) { auto coarse_folder = std::filesystem::path(coarse_base_folder) / "partitioned"; dref.compute_and_save( filename, coarse_folder, small_comm_size(coarse_folder), mask); } } int small_comm_size(const std::string &coarse_folder) { auto sizes = std::vector<int>(); for (auto &p : std::filesystem::directory_iterator(coarse_folder)) { if (p.is_directory()) { auto b = p.path().filename().string(); auto s = stoi(b); if (string_format("%d", s) == b) { if (s <= mpi_comm_size) { sizes.push_back(s); } } } } LOG_ERR_IF(sizes.empty(), "Failed to deduce any valid `small_comm_size`."); return *std::max_element(sizes.begin(), sizes.end()); } std::shared_ptr<array<StencilFamily, 1>> choose_stencils() const override { LOG_ERR_IF(this->stencils_ == nullptr, "Trying to use stencils before they were computed."); return this->stencils_; } std::shared_ptr<DistributedGrid> choose_distributed_grid() const { LOG_ERR_IF(this->distributed_grid_ == nullptr, "Trying to use stencils before they were computed."); return this->distributed_grid_; } std::string subgrid_name() const { std::string dirname = this->params["grid"]["file"]; return string_format("%s/partitioned/%d/subgrid-%04d.msh.h5", dirname.c_str(), mpi_comm_size, mpi_rank); } std::shared_ptr<Grid> compute_grid() const override { // 1. Load in a oversized chunk. // 2. Decide how much we really need based on the stencil. // 3. Generate correctly sized grid. // Side effect: - store the stencils. // - store distributed grid info. auto stencil_params = this->choose_stencil_params(); auto qr_degrees = this->choose_qr_degrees(); auto [stencils, dgrid, grid] = zisa::load_local_grid(subgrid_name(), super::boundary_mask(), stencil_params, qr_degrees, mpi_rank); this->stencils_ = stencils; this->distributed_grid_ = dgrid; this->enforce_cell_flags(*grid); { auto p = this->distributed_grid_->partition; auto k = zisa::mpi::rank(); auto n_local_cells = std::count_if(p.begin(), p.end(), [k](int_t i) { return i == integer_cast<int_t>(k); }); auto n_non_local_cells = p.size() - n_local_cells; auto lc = string_format("local_cells-%d.txt", k); write_string_to_file(string_format("%d", n_local_cells), lc); auto nlc = string_format("non_local_cells-%d.txt", k); write_string_to_file(string_format("%d", n_non_local_cells), nlc); } return grid; } std::function<bool(const Grid &, int_t i)> boundary_mask() const override { auto physical_mask = super::boundary_mask(); auto dgrid = choose_distributed_grid(); return [physical_mask, dgrid, mpi_rank = this->mpi_rank](const Grid &grid, int_t i) { return dgrid->partition[i] != integer_cast<int_t>(mpi_rank) || physical_mask(grid, i); }; } std::shared_ptr<DataSource> compute_data_source(std::shared_ptr<FNG> fng) override { auto all_var_dims = this->choose_all_variable_dims(); auto vis_info = choose_gathered_vis_info(); auto file_dims = make_hdf5_unstructured_file_dimensions(*vis_info); auto scatterer_factory = make_mpi_single_node_array_scatterer_factory(*vis_info); auto load_snapshot = std::make_shared<ParallelLoadSnapshot>(fng, file_dims); auto halo_exchange = choose_halo_exchange(); return make_scattered_data_source(vis_info, scatterer_factory, load_snapshot, halo_exchange, all_var_dims); } std::shared_ptr<StepRejection> choose_step_rejection() override { // Only RejectNothing works without implementing more. return std::dynamic_pointer_cast<RejectNothing>( super::choose_step_rejection()); } std::shared_ptr<Visualization> compute_visualization() override { if (is_gathered_visualization()) { return compute_gathered_visualization(); } if (is_unstructured_visualization()) { return compute_unstructured_visualization(); } if (is_split_visualization()) { return super::compute_visualization(); } LOG_ERR("Invalid config for visualization."); } std::shared_ptr<HDF5UnstructuredFileDimensions> choose_file_dimensions() const { return compute_file_dimensions(); } std::shared_ptr<HDF5UnstructuredFileDimensions> compute_file_dimensions() const { auto dgrid = choose_distributed_grid(); auto global_ids = std::vector<hsize_t>(); for (int_t i = 0; i < dgrid->global_cell_indices.size(); ++i) { if (dgrid->partition[i] == integer_cast<int_t>(mpi_rank)) { global_ids.push_back(dgrid->global_cell_indices[i]); } } return make_hdf5_unstructured_file_dimensions( dgrid->partition.shape(0), global_ids, mpi_comm); } std::shared_ptr<Visualization> compute_unstructured_visualization() { const auto &fng = this->choose_file_name_generator(); auto file_dims = choose_file_dimensions(); auto local_eos = this->compute_local_eos(file_dims->n_cells_local); // TODO here we just made this only work for Euler. return std::make_shared<ParallelDumpSnapshot<typename super::eos_t>>( local_eos, fng, file_dims); } std::shared_ptr<GatheredVisInfo> choose_gathered_vis_info() { if (gathered_vis_info_ == nullptr) { gathered_vis_info_ = compute_gathered_vis_info(); } return gathered_vis_info_; } std::shared_ptr<GatheredVisInfo> compute_gathered_vis_info() { auto dgrid = choose_distributed_grid(); return compute_gathered_vis_info(mpi_comm, *dgrid); } std::shared_ptr<GatheredVisInfo> compute_gathered_vis_info(MPI_Comm world_comm, const DistributedGrid &dgrid) { auto n_writers = int(this->params["io"]["n_writers"]); return make_gathered_vis_info(world_comm, dgrid, n_writers); } std::shared_ptr<HDF5UnstructuredFileDimensions> choose_gathered_file_info() { if (gathered_file_info_ == nullptr) { gathered_file_info_ = compute_gathered_file_info(); } return gathered_file_info_; } std::shared_ptr<HDF5UnstructuredFileDimensions> compute_gathered_file_info() { auto vis_info = choose_gathered_vis_info(); return compute_gathered_file_info(*vis_info); } std::shared_ptr<HDF5UnstructuredFileDimensions> compute_gathered_file_info(const GatheredVisInfo &vis_info) { return make_hdf5_unstructured_file_dimensions(vis_info); } std::shared_ptr<MPISingleNodeArrayGathererFactory> choose_gatherer_factory() { if (gatherer_factory_ == nullptr) { gatherer_factory_ = compute_gatherer_factory(); } return gatherer_factory_; } std::shared_ptr<MPISingleNodeArrayGathererFactory> compute_gatherer_factory() { auto vis_info = choose_gathered_vis_info(); return compute_gatherer_factory(*vis_info); } std::shared_ptr<MPISingleNodeArrayGathererFactory> compute_gatherer_factory(const GatheredVisInfo &vis_info) { return make_mpi_single_node_array_gatherer_factory(vis_info); } std::shared_ptr<Visualization> compute_gathered_visualization() { auto vis_info = choose_gathered_vis_info(); auto gatherer_factory = choose_gatherer_factory(); auto all_var_dims = this->choose_all_variable_dims(); auto fng = this->choose_file_name_generator(); auto file_dims = choose_gathered_file_info(); auto local_eos = this->compute_local_eos(file_dims->n_cells_local); auto dump_snapshot = std::make_shared<ParallelDumpSnapshot<typename super::eos_t>>( local_eos, fng, file_dims); return make_gathered_visualization(std::move(vis_info), std::move(gatherer_factory), std::move(dump_snapshot), all_var_dims); } std::shared_ptr<SimulationClock> compute_simulation_clock() override { auto time_keeper_params = TimeKeeperParameters(this->params); auto plotting_params = PlottingStepsParameters(this->params); auto time_keeper = make_time_keeper(time_keeper_params); auto plotting_steps = make_plotting_steps(plotting_params, time_keeper_params); return std::make_shared<MPISimulationClock>( time_keeper, plotting_steps, mpi_comm); } std::shared_ptr<CFLCondition> choose_cfl_condition() override { auto cfl = super::choose_cfl_condition(); auto op = ReductionOperation::min; auto all_reduce = std::make_shared<MPIAllReduce>(op, mpi_comm); return std::make_shared<DistributedCFLCondition>(cfl, all_reduce); } std::shared_ptr<HaloExchange> choose_halo_exchange() { if (halo_exchange_ == nullptr) { halo_exchange_ = compute_halo_exchange(); } return halo_exchange_; } std::shared_ptr<HaloExchange> compute_halo_exchange() { auto dgrid = choose_distributed_grid(); return make_mpi_halo_exchange(*dgrid, mpi_comm); } std::shared_ptr<ProgressBar> choose_progress_bar() override { auto serial_bar = super::choose_progress_bar(); return std::make_shared<MPIProgressBar>(serial_bar, mpi_comm); } std::shared_ptr<FileNameGenerator> compute_file_name_generator() override { const auto &fn_params = this->params["io"]["filename"]; std::string stem = fn_params["stem"]; std::string dir = (is_split_visualization() ? string_format("part-%04d/", mpi_rank) : std::string("./")); return make_file_name_generator( dir, stem, fn_params["pattern"], fn_params["suffix"]); } void write_debug_output() override { if (mpi_rank == 0) { super::write_debug_output(); } } protected: MPI_Comm mpi_comm = MPI_COMM_WORLD; int mpi_rank; int mpi_comm_size; mutable std::shared_ptr<DistributedGrid> distributed_grid_ = nullptr; mutable std::shared_ptr<HaloExchange> halo_exchange_ = nullptr; mutable std::shared_ptr<GatheredVisInfo> gathered_vis_info_ = nullptr; mutable std::shared_ptr<HDF5UnstructuredFileDimensions> gathered_file_info_ = nullptr; mutable std::shared_ptr<MPISingleNodeArrayGathererFactory> gatherer_factory_ = nullptr; }; } #else #include <zisa/cli/input_parameters.hpp> namespace zisa { template <class NMExp> class MPINumericalExperiment : public NMExp { private: using super = NMExp; public: explicit MPINumericalExperiment(const InputParameters &) { LOG_ERR("MPI requested, but not build with `-DZISA_HAS_MPI=1`."); } }; } #endif #endif // ZISA_MPI_NUMERICAL_EXPERIMENT_HPP
35.494196
80
0.662431
1uc
23f779de6bf80b0bd611c535aff8d96fc5ba0ccd
1,655
cpp
C++
Origin/src/Origin/Renderer/Primitives/Buffers.cpp
UnNabbo/OriginEngine
d4b51f8cf0e716e2b5dee739de20d49f0e24872a
[ "Apache-2.0" ]
2
2022-02-04T09:26:47.000Z
2022-02-04T20:31:12.000Z
Origin/src/Origin/Renderer/Primitives/Buffers.cpp
UnNabbo/OriginEngine
d4b51f8cf0e716e2b5dee739de20d49f0e24872a
[ "Apache-2.0" ]
null
null
null
Origin/src/Origin/Renderer/Primitives/Buffers.cpp
UnNabbo/OriginEngine
d4b51f8cf0e716e2b5dee739de20d49f0e24872a
[ "Apache-2.0" ]
null
null
null
#include "OGpch.h" #include "Origin/Renderer/Renderer.h" #include "Platform/Opengl/OpenGLBuffers.h" namespace Origin { Reference<VertexBuffer> VertexBuffer::Create(uint32_t size) { switch (Renderer::GetAPI()) { case RendererAPI::API::None: ORIGIN_ASSERT(false, "RendererAPI::None is currently not supported!"); return nullptr; case RendererAPI::API::OpenGL: return MakeReference<OpenGLVertexBuffer>(size); } ORIGIN_ASSERT(false, "Unknown RendererAPI!"); return nullptr; } Reference<VertexBuffer> VertexBuffer::Create(float* data, uint32_t size) { switch (Renderer::GetAPI()) { case RendererAPI::API::None: ORIGIN_ASSERT(false, "RendererAPI::None is currently not supported!"); return nullptr; case RendererAPI::API::OpenGL: return MakeReference<OpenGLVertexBuffer>(data, size); } ORIGIN_ASSERT(false, "Unknown RendererAPI!"); return nullptr; } Reference<IndexBuffer> IndexBuffer::Create(uint32_t size) { switch (Renderer::GetAPI()) { case RendererAPI::API::None: ORIGIN_ASSERT(false, "RendererAPI::None is currently not supported!"); return nullptr; case RendererAPI::API::OpenGL: return MakeReference<OpenGLIndexBuffer>(size); } ORIGIN_ASSERT(false, "Unknown RendererAPI!"); return nullptr; } Reference<IndexBuffer> IndexBuffer::Create(uint32_t* data, uint32_t size) { switch (Renderer::GetAPI()) { case RendererAPI::API::None: ORIGIN_ASSERT(false, "RendererAPI::None is currently not supported!"); return nullptr; case RendererAPI::API::OpenGL: return MakeReference<OpenGLIndexBuffer>(data, size); } ORIGIN_ASSERT(false, "Unknown RendererAPI!"); return nullptr; } }
33.77551
121
0.73716
UnNabbo
23f77d30cf539b491632bc61da774d0a1f7b2713
1,961
cpp
C++
DataStructures/SegTreeLazyPropagation.cpp
ThiagoGMF/Algorithms
1c20c88a1858bcef596e652808ef61f5d20defe4
[ "MIT" ]
null
null
null
DataStructures/SegTreeLazyPropagation.cpp
ThiagoGMF/Algorithms
1c20c88a1858bcef596e652808ef61f5d20defe4
[ "MIT" ]
null
null
null
DataStructures/SegTreeLazyPropagation.cpp
ThiagoGMF/Algorithms
1c20c88a1858bcef596e652808ef61f5d20defe4
[ "MIT" ]
null
null
null
struct SegTreeLazy{ vector<int> seg; vector<int> lazy; vector<int> a; int N; int null_val = 0; SegTreeLazy(const vector<int> &v){ N = (int) v.size(); seg.resize(4*N,null_val); lazy.resize(4*N,null_val); a = v; build(1, 0, N-1); } int calc(int x,int y){ return x+y; } void build(int node, int left, int right){ if(left > right){ return; } if(left == right){ seg[node] = a[left]; return; } int mid = left + (right - left) / 2; build(2 * node, left, mid); build(2 * node + 1, mid + 1, right); seg[node] = calc(seg[2*node], seg[2*node+1]); } void push(int node,int l,int r){ if(lazy[node]){ seg[node] = calc(seg[node],lazy[node] * (r-l+1)); if(l != r){ lazy[2*node] = calc(lazy[2*node], lazy[node]); lazy[2*node+1] = calc(lazy[2*node+1], lazy[node]); } lazy[node] = 0; } } void update(int node, int l, int r, int ql, int qr, int x){ push(node, l, r); if(ql>r || qr<l){ return; } if(ql <= l && r <= qr){ lazy[node] = calc(lazy[node],x); push(node,l,r); } else{ int mid = l + (r-l)/2; update(2*node,l,mid,ql,qr,x); update(2*node+1,mid+1,r,ql,qr,x); seg[node] = calc(seg[2*node],seg[2*node+1]); } } int query(int node,int l,int r,int ql,int qr){ push(node,l,r); if(ql>r || qr<l){ return null_val; } if(ql <= l && r <= qr){ return seg[node]; } int mid = l + (r-l)/2; return calc(query(2*node,l,mid,ql,qr), query(2*node+1,mid+1,r,ql,qr)); } };
25.802632
67
0.410505
ThiagoGMF
23f8501596cdbc5e113c7f6f47e6ce1f31f1883b
2,265
cc
C++
core/globals.cc
jnschulze/foxglove
6d5cb37b33ec4a4cfb2b7d9f13355670fdad18ab
[ "BSD-3-Clause" ]
2
2022-02-01T02:27:42.000Z
2022-02-23T15:36:57.000Z
core/globals.cc
jnschulze/foxglove
6d5cb37b33ec4a4cfb2b7d9f13355670fdad18ab
[ "BSD-3-Clause" ]
null
null
null
core/globals.cc
jnschulze/foxglove
6d5cb37b33ec4a4cfb2b7d9f13355670fdad18ab
[ "BSD-3-Clause" ]
1
2022-02-23T15:36:58.000Z
2022-02-23T15:36:58.000Z
#include "globals.h" #include "player_environment.h" #include "vlc/vlc_environment.h" namespace foxglove { EnvironmentRegistry::EnvironmentRegistry() {} std::shared_ptr<PlayerEnvironment> EnvironmentRegistry::CreateEnvironment( std::vector<std::string> args) { auto environment = std::make_shared<VlcEnvironment>(args); { std::lock_guard<std::mutex> lock(map_mutex_); items_[environment->id()] = environment; } return environment; } std::shared_ptr<PlayerEnvironment> EnvironmentRegistry::GetEnvironment( int64_t id) { { std::lock_guard<std::mutex> lock(map_mutex_); auto it = items_.find(id); if (it != items_.end()) { return it->second; } } return {}; } void EnvironmentRegistry::RegisterEnvironment( int64_t id, std::shared_ptr<PlayerEnvironment> env) { std::lock_guard<std::mutex> lock(map_mutex_); items_[id] = env; } std::shared_ptr<PlayerEnvironment> EnvironmentRegistry::RemoveEnvironment( int64_t id) { std::lock_guard<std::mutex> lock(map_mutex_); auto p = items_.extract(id); if (!p.empty()) { return std::move(p.mapped()); } return {}; } void EnvironmentRegistry::Clear() { std::lock_guard<std::mutex> lock(map_mutex_); items_.clear(); } PlayerRegistry::PlayerRegistry() {} void PlayerRegistry::InsertPlayer(int64_t player_id, std::unique_ptr<Player> player) { std::lock_guard<std::mutex> lock(map_mutex_); items_[player->id()] = std::move(player); } std::unique_ptr<Player> PlayerRegistry::RemovePlayer(int64_t player_id) { std::unique_ptr<Player> player; { std::lock_guard<std::mutex> lock(map_mutex_); auto p = items_.extract(player_id); if (!p.empty()) { player = std::move(p.mapped()); } } return player; } size_t PlayerRegistry::Count() { std::lock_guard<std::mutex> lock(map_mutex_); return items_.size(); } void PlayerRegistry::Clear() { std::lock_guard<std::mutex> lock(map_mutex_); items_.clear(); } ObjectRegistry::ObjectRegistry() : environment_registry_(std::make_unique<EnvironmentRegistry>()), player_registry_(std::make_unique<PlayerRegistry>()) {} std::unique_ptr<ObjectRegistry> g_registry = std::make_unique<ObjectRegistry>(); } // namespace foxglove
25.738636
80
0.691832
jnschulze
67111a15d413ce720e81b345ecb82f5a07252c49
3,519
cpp
C++
rclcpp/src/rclcpp/executors/single_threaded_executor.cpp
Micrified/rclcpp
8006ed21e5d93aa215cbb96080cc5a429fecc49f
[ "Apache-2.0" ]
1
2021-07-19T09:22:12.000Z
2021-07-19T09:22:12.000Z
rclcpp/src/rclcpp/executors/single_threaded_executor.cpp
Micrified/rclcpp
8006ed21e5d93aa215cbb96080cc5a429fecc49f
[ "Apache-2.0" ]
null
null
null
rclcpp/src/rclcpp/executors/single_threaded_executor.cpp
Micrified/rclcpp
8006ed21e5d93aa215cbb96080cc5a429fecc49f
[ "Apache-2.0" ]
null
null
null
// Copyright 2015 Open Source Robotics Foundation, 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. #include "rclcpp/executors/single_threaded_executor.hpp" #include "rclcpp/any_executable.hpp" #include "rclcpp/scope_exit.hpp" using rclcpp::executors::SingleThreadedExecutor; SingleThreadedExecutor::SingleThreadedExecutor(const rclcpp::ExecutorOptions & options) : rclcpp::Executor(options) {} SingleThreadedExecutor::~SingleThreadedExecutor() {} void SingleThreadedExecutor::spin() { if (spinning.exchange(true)) { throw std::runtime_error("spin() called while already spinning"); } RCLCPP_SCOPE_EXIT(this->spinning.store(false); ); while (rclcpp::ok(this->context_) && spinning.load()) { rclcpp::AnyExecutable any_executable; if (get_next_executable(any_executable)) { execute_any_executable(any_executable); } } } // Debugging flag #define DEBUG // Profiling flag //#define PROFILE #ifdef DEBUG #include <thread> #include <pthread.h> #include <sched.h> #include <cstring> #endif #ifdef PROFILE #include <chrono> extern "C" { #include <syslog.h> } // Total processed callbacks long g_n_processed_callbacks_; // Cumulative processing time (ns) long long g_cumulative_processing_time_ns_; #endif void SingleThreadedExecutor::spin_some(std::chrono::nanoseconds max_duration) { // Fetch and store current timestamp auto start = std::chrono::steady_clock::now(); #ifdef DEBUG cpu_set_t cpu_set; std::cout << std::string("\033[1;33m") + "SingleThreadedExecutor: Pinned to cores {0}" + std::string("\033[0m\n"); CPU_ZERO(&cpu_set); CPU_SET(0, &cpu_set); if (0 != pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpu_set)) { throw std::runtime_error(std::string("pthread_setaffinity_np: ") + std::string(std::strerror(errno))); } #endif // Create callback auto callback_should_still_spin = [max_duration, start]() { // Case: Spin forever if (std::chrono::nanoseconds(0) == max_duration) { return true; } // Case: Spin for duration return ((std::chrono::steady_clock::now() - start) < max_duration); }; // Check if already spinning if (true == spinning.exchange(true)) { throw std::runtime_error("spin_some() called while already spinning!"); } RCLCPP_SCOPE_EXIT(this->spinning.store(false); ); while (rclcpp::ok(context_) && (true == spinning.load()) && true == callback_should_still_spin()) { AnyExecutable any_exec; // Non-preemptable call #ifdef PROFILE long long overhead_ns; if (get_next_executable(any_exec, &overhead_ns)) { #else if (get_next_executable(any_exec)) { #endif #ifdef PROFILE g_n_processed_callbacks_++; g_cumulative_processing_time_ns_ += overhead_ns; #endif execute_any_executable(any_exec); } } #ifdef PROFILE long long avg_processing_time = g_cumulative_processing_time_ns_ / g_n_processed_callbacks_; syslog(LOG_INFO, "{.value: %lld, .mode: 0}", avg_processing_time); #endif }
26.066667
94
0.717533
Micrified
6715e92c6edb8abb9394bd40c724aca490bbe345
1,409
cpp
C++
e_removedup.cpp
skyera/myleetcode
c3524e73b320afb863d0c04d40b1b660ff9fec8c
[ "MIT" ]
null
null
null
e_removedup.cpp
skyera/myleetcode
c3524e73b320afb863d0c04d40b1b660ff9fec8c
[ "MIT" ]
null
null
null
e_removedup.cpp
skyera/myleetcode
c3524e73b320afb863d0c04d40b1b660ff9fec8c
[ "MIT" ]
null
null
null
// 8.30.2017 #include <iostream> #include <vector> #include <algorithm> #include <iterator> #include <cassert> using namespace std; int removedup(vector<int> &nums) { if (nums.empty()) return 0; int index = 0; for (int i = 1; i < nums.size(); i++) if (nums[i] != nums[index]) nums[++index] = nums[i]; return index + 1; } int removedup2(vector<int> &nums) { return distance(nums.begin(), unique(nums.begin(), nums.end())); } template<typename InIt, typename OutIt> OutIt removedupx(InIt first, InIt last, OutIt out) { while (first != last) { *out++ = *first; first = upper_bound(first, last, *first); } return out; } int removedup3(vector<int> &nums) { //return distance(nums.begin(), removedup3(nums.begin(), nums.end(), nums.begin())); vector<int>::iterator first = nums.begin(), last = nums.end(); return distance(nums.begin(), removedupx(first, last, first)); } int main() { { int A[] = {1, 1, 2}; vector<int> nums(A, A + 3); int len = removedup(nums); assert(len == 2); } { int A[] = {1, 1, 2}; vector<int> nums(A, A + 3); int len = removedup2(nums); assert(len == 2); } { int A[] = {1, 1, 2}; vector<int> nums(A, A + 3); int len = removedup3(nums); assert(len == 2); } return 0; }
20.128571
88
0.53868
skyera
671a425f8c0d54fec0c90762a22fd02390155cdf
1,139
cpp
C++
projects/biogears/libBiogears/src/pybwrappers/cdm/scenario/requests/pybSELiquidCompartmentDataRequest.cpp
vybhavramachandran/mophy
7271c12b85a324a4f1494e0ce15942dc25bc4931
[ "Apache-2.0" ]
null
null
null
projects/biogears/libBiogears/src/pybwrappers/cdm/scenario/requests/pybSELiquidCompartmentDataRequest.cpp
vybhavramachandran/mophy
7271c12b85a324a4f1494e0ce15942dc25bc4931
[ "Apache-2.0" ]
5
2020-12-23T00:19:32.000Z
2020-12-29T20:53:58.000Z
projects/biogears/libBiogears/src/pybwrappers/cdm/scenario/requests/pybSELiquidCompartmentDataRequest.cpp
vybhavramachandran/biogears-vybhav
7271c12b85a324a4f1494e0ce15942dc25bc4931
[ "Apache-2.0" ]
null
null
null
#include <biogears/cdm/scenario/requests/SELiquidCompartmentDataRequest.h> #include <biogears/schema/cdm/Compartment.hxx> #include <biogears/cdm/substance/SESubstance.h> #include <biogears/cdm/substance/SESubstanceManager.h> #include <biogears/cdm/scenario/requests/SEDataRequestManager.h> #include <biogears/cdm/scenario/requests/SECompartmentSubstanceDataRequest.h> #include <biogears/schema/cdm/Scenario.hxx> // #include <biogears/cdm/substance/SESubstanceManager.h> // #include <biogears/cdm/utils/DataTrack.h> // #include <biogears/cdm/scenario/requests/SEDataRequest.h> #include <string> #include <pybind11/pybind11.h> namespace py = pybind11; PYBIND11_MODULE(pybSELiquidCompartmentDataRequest, m) { py::class_<biogears::SELiquidCompartmentDataRequest,biogears::SECompartmentSubstanceDataRequest>(m, "SELiquidCompartmentDataRequest") .def("Load",&biogears::SELiquidCompartmentDataRequest::Load) .def("Unload",py::overload_cast<>(&biogears::SELiquidCompartmentDataRequest::Unload,py::const_)); #ifdef VERSION_INFO m.attr("__version__") = VERSION_INFO; #else m.attr("__version__") = "dev"; #endif }
33.5
137
0.784899
vybhavramachandran
671c881a042cd9409c8cfddec684afcd5e7ea593
6,949
cpp
C++
Sources/Tools/EPI/GUI/GuiDocumentManager.cpp
benkaraban/anima-games-engine
8aa7a5368933f1b82c90f24814f1447119346c3b
[ "BSD-3-Clause" ]
2
2015-04-16T01:05:53.000Z
2019-08-26T07:38:43.000Z
Sources/Tools/EPI/GUI/GuiDocumentManager.cpp
benkaraban/anima-games-engine
8aa7a5368933f1b82c90f24814f1447119346c3b
[ "BSD-3-Clause" ]
null
null
null
Sources/Tools/EPI/GUI/GuiDocumentManager.cpp
benkaraban/anima-games-engine
8aa7a5368933f1b82c90f24814f1447119346c3b
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (c) 2010, Anima Games, Benjamin Karaban, Laurent Schneider, * Jérémie Comarmond, Didier Colin. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * - Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - Neither the name of the copyright holder nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "GuiDocumentManager.h" #include <EPI/Document/DocumentFactory.h> #include <EPI/Document/Properties/PtyDocInformation.moc.h> #include <EPI/DocumentRenderer.h> #include <EPI/RendererManager.h> #include <EPI/ApplicationBase.moc.h> #include <EPI/Gui/GuiContext.moc.h> namespace EPI { const int32 NO_GDOC_ID = -1; //----------------------------------------------------------------------------- GuiDocumentManager::GuiDocumentManager(): _idCurrentGDoc(NO_GDOC_ID) { } //----------------------------------------------------------------------------- GuiDocumentManager::~GuiDocumentManager() { } //----------------------------------------------------------------------------- const Ptr<GuiDocument>& GuiDocumentManager::createGuiDocument(const DocumentType type, const Core::String& title, const Ptr<DocumentRenderer>& pDocRdr) { Ptr<DocumentBase> pDoc; Ptr<GuiDocument> pGuiDoc (new GuiDocument ()); pDoc = DocumentFactory::factoryCreateDocument(*pGuiDoc.get(), type, pDocRdr, title); pGuiDoc->setDocument(pDoc); getAllGuiDocument().push_back(pGuiDoc); connect(pDoc.get(), SIGNAL(generate(const Ptr<ImportInfo> &)), pGuiDoc.get(), SLOT(generateInfo(const Ptr<ImportInfo> &))); return getAllGuiDocument().back(); } //----------------------------------------------------------------------------- const Ptr<GuiDocument>& GuiDocumentManager::loadGuiDocument(const Ptr<ImportInfo> & pImportInfo, bool & docAlreadyOpened, const Ptr<DocumentRenderer>& pDocRdr) { Ptr<GuiDocument> pGuiDoc (new GuiDocument ()); Ptr<DocumentBase> pDoc = DocumentFactory::factoryLoadDocument(*pGuiDoc.get(), pImportInfo, pDocRdr); pGuiDoc->setDocument(pDoc); Core::String docTitle = LM_DEBUG_PTR_CAST<PyDocumentInformation> (pDoc->getPyDocumentInformation())->getTitle(); Core::List<Ptr<GuiDocument> >::const_iterator iDocument = getAllGuiDocument().begin(); while(iDocument != getAllGuiDocument().end() && LM_DEBUG_PTR_CAST<PyDocumentInformation> ((*iDocument)->getDocument()->getPyDocumentInformation())->getTitle() != docTitle) { ++iDocument; } if(iDocument == getAllGuiDocument().end()) { docAlreadyOpened = false; connect(pDoc.get(), SIGNAL(generate(const Ptr<ImportInfo> &)), pGuiDoc.get(), SLOT(generateInfo(const Ptr<ImportInfo> &))); getAllGuiDocument().push_back(pGuiDoc); return getAllGuiDocument().back(); } else { docAlreadyOpened = true; return *iDocument; } } //----------------------------------------------------------------------------- Ptr<GuiDocument> GuiDocumentManager::destroyGuiDocument(int32 id) { Ptr<GuiDocument> pGDoc = getGuiDocument(id); if (pGDoc!=null) { bool docIsFind = false; Core::List<Ptr<GuiDocument> >::iterator iGDoc = getAllGuiDocument().begin(); Core::List<Ptr<GuiDocument> >::iterator iGDocEnd = getAllGuiDocument().end(); for (; (iGDoc!=iGDocEnd); ++iGDoc) { if ((*iGDoc) == pGDoc) { getAllGuiDocument().erase(iGDoc); break; } } if (_idCurrentGDoc == pGDoc->getID()) { if (getAllGuiDocument().size() == 0) { _idCurrentGDoc = -1; } else { _idCurrentGDoc = getAllGuiDocument().back()->getID(); } } } return pGDoc; } //----------------------------------------------------------------------------- Ptr<GuiDocument> GuiDocumentManager::getGuiDocument(int32 id) const { Ptr<GuiDocument> ret; if (id != NO_GDOC_ID) { bool docIsFind = false; Core::List<Ptr<GuiDocument> >::const_iterator iDocGui = getAllGuiDocument().begin(); Core::List<Ptr<GuiDocument> >::const_iterator iDocGuiEnd = getAllGuiDocument().end(); for (; (iDocGui!=iDocGuiEnd) && (docIsFind==false); ++iDocGui) { if ((*iDocGui)->getID() == id) { docIsFind = true; break; } } if (docIsFind == false) { throw Core::Exception(L"ApplicationBase::getDocument(const int32 id) : Document does'nt exist"); } ret = *iDocGui; } return ret; } //----------------------------------------------------------------------------- Ptr<GuiDocument> GuiDocumentManager::selectGuiDocument(int32 id) { Ptr<GuiDocument> pOldGDoc = getCurrentGuiDocument(); if (pOldGDoc != null) { pOldGDoc->stopAnimate(); pOldGDoc->getGuiContext()->setCurrentViewport(NULL, null); } _idCurrentGDoc = id; Ptr<GuiDocument> pGDoc = getCurrentGuiDocument(); if(pGDoc != null) { pGDoc->startAnimate(); } return pGDoc; } //----------------------------------------------------------------------------- bool GuiDocumentManager::isEmpty() const { return getAllGuiDocument().size() == 0; } //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- } //namespace EPI
36.005181
160
0.580515
benkaraban
671d13c9822cfa26de1831c9c1b436872fd23de0
1,184
hpp
C++
include/hash.hpp
dashasheveleva/lab_06-multithreads
0377238b9024da7927e5345a4811ec1e33d57d04
[ "MIT" ]
null
null
null
include/hash.hpp
dashasheveleva/lab_06-multithreads
0377238b9024da7927e5345a4811ec1e33d57d04
[ "MIT" ]
null
null
null
include/hash.hpp
dashasheveleva/lab_06-multithreads
0377238b9024da7927e5345a4811ec1e33d57d04
[ "MIT" ]
null
null
null
// Copyright 2022 Shevelyova Darya photodoshfy@gmail.com #ifndef INCLUDE_HASH_HPP_ #define INCLUDE_HASH_HPP_ #include <boost/log/expressions.hpp> #include <boost/log/sinks.hpp> #include <boost/log/trivial.hpp> #include <boost/log/utility/setup.hpp> #include <ctime> #include <fstream> #include <iomanip> #include <mutex> #include <nlohmann/json.hpp> #include <sstream> #include <string> using json = nlohmann::json; const char Ending[] = "0000"; // На что будет заканчиваться хэш const size_t NumZeroes = 4; // Сколько нулей в конце void SetUpLogging(); // Логгирование class JsonFiler { public: // Создание нового элемента файла void NewElement(const std::string& randString, const std::string& hash, std::time_t timestamp); // Ввод элемента файла friend std::ostream& operator<<(std::ostream& out, const JsonFiler& j); private: // mutable показывает, что член класса является изменяемым, // и его можно изменять в функциях, у которых указан модификатор const, // а также у константных объектов. mutable std::mutex mut; // Обеспечиваем потокобезопасность данных json JsonArray; // json-массив }; #endif // INCLUDE_HASH_HPP_
29.6
75
0.726351
dashasheveleva
671e5886239831c0c7c51bf98947cd252a5e762e
2,348
cpp
C++
Round-Robin/UI.cpp
MichelDequick/mbed-round-robin
dbdcf88ac30be2e64c2de286b99f3bebe8f3a2e1
[ "Apache-2.0" ]
null
null
null
Round-Robin/UI.cpp
MichelDequick/mbed-round-robin
dbdcf88ac30be2e64c2de286b99f3bebe8f3a2e1
[ "Apache-2.0" ]
null
null
null
Round-Robin/UI.cpp
MichelDequick/mbed-round-robin
dbdcf88ac30be2e64c2de286b99f3bebe8f3a2e1
[ "Apache-2.0" ]
null
null
null
#include "UI.h" #include "mbed.h" #include "C12832.h" #include "joystick.h" UI::UI(C12832 * lcd) { this->lcd = lcd; dark_theme = false; } UI::~UI(void) { } void UI::darkTheme(bool dark) { this->dark_theme = dark; lcd->invert(dark); } void UI::background() { lcd->cls(); lcd->rect(1,1,126,30,true); } void UI::title(char * title) { background(); lcd->locate(64-(strlen(title)*5/2), 11); // Center text lcd->printf(title); } void UI::temperature(char * title, float temp) { background(); lcd->locate(64-(strlen(title)*5/2), 11); // Center text lcd->printf(title, temp); } void UI::alert(void) { for(int i = 0; i <= 5; i++){ dark_theme = !dark_theme; lcd->invert(dark_theme); ThisThread::sleep_for(250); } } void UI::promptNextHop(Joystick * joystick, char * next_hop_ip) { bool update = true; int8_t unsigned next_hop[4] = {192,168,0,109}; // Todo: Get current next hop ip int8_t n_octet = 3; background(); lcd->locate(20, 4); lcd->printf("Next hop IP address"); while(!joystick->center){ if(joystick->up){ next_hop[n_octet]++; update = true; } if(joystick->down){ next_hop[n_octet]--; update = true; } if(joystick->left){ n_octet--; update = true; } if(joystick->right){ n_octet++; update = true; } if(n_octet > 3){n_octet = 0;} if(n_octet < 0){n_octet = 3;} if(update){ lcd->fillrect(31,16,99,26,false); lcd->locate(32, 17); lcd->printf("%.3i.%.3i.%.3i.%.3i", (int) next_hop[0], (int) next_hop[1], (int) next_hop[2], (int) next_hop[3]); switch(n_octet) { case 0 : lcd->rect(31,16,48,26,true); break; case 1 : lcd->rect(48,16,65,26,true); break; case 2 : lcd->rect(65,16,82,26,true); break; case 3 : lcd->rect(82,16,99,26,true); break; } update = false; sprintf(next_hop_ip, "%i.%i.%i.%i", next_hop[0], next_hop[1], next_hop[2], next_hop[3]); ThisThread::sleep_for(150); } } }
21.541284
123
0.495315
MichelDequick
6722087d0e5f9f496aab36920650cbb4c7ceab6a
3,881
cpp
C++
src/file_linux.cpp
ricky26/netlib
f4d86475220ae32f0ab25e83fb8dc004f5f1af60
[ "BSD-2-Clause" ]
1
2020-07-04T01:11:38.000Z
2020-07-04T01:11:38.000Z
src/file_linux.cpp
ricky26/netlib
f4d86475220ae32f0ab25e83fb8dc004f5f1af60
[ "BSD-2-Clause" ]
null
null
null
src/file_linux.cpp
ricky26/netlib
f4d86475220ae32f0ab25e83fb8dc004f5f1af60
[ "BSD-2-Clause" ]
null
null
null
#include "netlib/file.h" #include "netlib_linux.h" #include <iostream> #include <fcntl.h> #include <unistd.h> namespace netlib { // // file_internal // struct file_internal: public ref_counted { int handle; off_t position; aio_struct aio; file_internal(int _hdl=-1) { handle = _hdl; position = 0; acquire(); } ~file_internal() { if(handle != -1) ::close(handle); } static inline file_internal *get(void *_ptr) { return static_cast<file_internal*>(_ptr); } }; // // file // file::file() { mInternal = new file_internal(); } file::file(file const& _f) { file_internal *fi = file_internal::get(_f.mInternal); fi->acquire(); mInternal = fi; } file::file(file &&_f) { file_internal *fi = file_internal::get(_f.mInternal); mInternal = fi; _f.mInternal = nullptr; } file::file(std::string const& _path, int _mode) { mInternal = new file_internal(); open(_path, _mode); } file::~file() { if(file_internal *fi = file_internal::get(mInternal)) fi->release(); } bool file::valid() const { return mInternal && file_internal::get(mInternal)->handle != -1; } bool file::open(std::string const& _path, int _mode) { file_internal *fi = file_internal::get(mInternal); if(!fi || fi->handle != -1) return false; int flags = O_NONBLOCK; bool r = _mode & mode_read; bool w = _mode & mode_write; if(r && w) flags |= O_RDWR; else if(r) flags |= O_RDONLY; else if(w) flags |= O_WRONLY; int creat; switch(_mode & open_mask) { case mode_create: flags |= O_CREAT; break; case mode_append: flags |= O_APPEND; break; default: break; } int fd = ::open(_path.c_str(), flags, 0664); if(fd == -1) return false; fi->aio.make_nonblocking(fd); fi->handle = fd; fi->position = 0; return true; } void file::close() { file_internal *fi = file_internal::get(mInternal); if(!fi || fi->handle == -1) return; ::close(fi->handle); fi->handle = -1; fi->position = 0; } uint64_t file::size() { file_internal *fi = file_internal::get(mInternal); if(!fi || fi->handle == -1) return 0; uint64_t pos = ::lseek(fi->handle, 0, SEEK_CUR); uint64_t ret = ::lseek(fi->handle, 0, SEEK_END); ::lseek(fi->handle, pos, SEEK_SET); return ret; } size_t file::read(void *_buffer, size_t _amt) { file_internal *fi = file_internal::get(mInternal); if(fi && fi->handle != -1) { fi->aio.begin_in(); int ret = pread(fi->handle, _buffer, _amt, fi->position); if(ret == -1 && errno == EAGAIN) { uthread::current()->suspend(); ret = pread(fi->handle, _buffer, _amt, fi->position); } fi->aio.end_in(); if(ret == -1) { close(); return 0; } fi->position += ret; return ret; } return 0; } size_t file::write(const void *_buffer, size_t _amt) { file_internal *fi = file_internal::get(mInternal); if(fi && fi->handle != -1) { fi->aio.begin_out(); int ret = pwrite(fi->handle, _buffer, _amt, fi->position); if(ret == -1 && errno == EAGAIN) { uthread::current()->suspend(); ret = pwrite(fi->handle, _buffer, _amt, fi->position); } fi->aio.end_out(); if(ret == -1) { close(); return 0; } fi->position += ret; return ret; } return 0; } bool file::seek(seek_pos_t _pos, seek_t _mode) { file_internal *fi = file_internal::get(mInternal); if(!fi || fi->handle == -1) return false; int mode; switch(_mode) { case from_start: mode = SEEK_SET; break; case from_end: mode = SEEK_END; break; case relative: mode = SEEK_CUR; break; }; fi->position = lseek(fi->handle, _pos, mode); return true; } void file::flush() { if(!valid()) return; } bool file::init() { return true; } void file::think() { } void file::shutdown() { } }
15.971193
61
0.595723
ricky26
6724b5b5ebb610afb9123e097d1958977ed6149c
1,761
cpp
C++
src/renderer/direct12/mxgpuarray.cpp
goulart81/mewa
3211ebd966e18e6bec4a3469e9cc41ed2b31244e
[ "MIT" ]
5
2021-04-21T20:38:30.000Z
2022-03-20T06:55:30.000Z
src/renderer/direct12/mxgpuarray.cpp
goulart81/mewa
3211ebd966e18e6bec4a3469e9cc41ed2b31244e
[ "MIT" ]
3
2021-12-27T01:20:22.000Z
2022-02-25T15:24:41.000Z
src/renderer/direct12/mxgpuarray.cpp
goulart81/mewa
3211ebd966e18e6bec4a3469e9cc41ed2b31244e
[ "MIT" ]
3
2021-04-22T23:27:21.000Z
2022-01-09T12:45:33.000Z
/**************************************************************************** ** Copyright (C) 2020-2021 Mewatools <hugo@mewatools.com> ** SPDX-License-Identifier: MIT License ****************************************************************************/ #include "mxgpuarray.h" #include "mxdebug.h" MxGpuArray::MxGpuArray() { pBuffer = nullptr; pType = MxGpuArray::Undefined; pTaken = false; } unsigned int MxGpuArray::size() const { switch (pType) { case IndexUInt16: return pView.indexBufferView.SizeInBytes; case VertexFloat: return pView.vertexBufferView.SizeInBytes; default: qDebug("TODO"); } return 0; } MxGpuArray::ArrayType MxGpuArray::type() const { return pType; } bool MxGpuArray::isTaken() const { return pTaken; } void MxGpuArray::setIndexData(char* bytes, UINT length) { Q_ASSERT(pType == Undefined || pType == IndexUInt16); pType = IndexUInt16; setData( bytes, length); D3D12_INDEX_BUFFER_VIEW &ibView = pView.indexBufferView; Q_ASSERT( NULL != pBuffer ); ibView.BufferLocation = pBuffer->GetGPUVirtualAddress(); ibView.Format = DXGI_FORMAT_R16_UINT; ibView.SizeInBytes = length; } void MxGpuArray::setVertexData(char* bytes, UINT length, int stride ) { Q_ASSERT(pType == Undefined || pType == VertexFloat); pType = VertexFloat; setData(bytes, length); D3D12_VERTEX_BUFFER_VIEW &vbView = pView.vertexBufferView; Q_ASSERT(NULL != pBuffer); vbView.BufferLocation = pBuffer->GetGPUVirtualAddress(); vbView.SizeInBytes = length; vbView.StrideInBytes = stride; } void MxGpuArray::setData(char* bytes, UINT64 length) { Q_ASSERT(NULL != pBuffer); char* writePtr = nullptr; HRESULT result = pBuffer->Map(0, nullptr, (void**)&writePtr); memcpy(writePtr, bytes, length); pBuffer->Unmap(0, nullptr); }
22.291139
77
0.670074
goulart81
6724e68797dc9d8718ffefb157e242b9bcb73029
5,766
cc
C++
lib/util/util.cc
MUCZ/Starfish
4960b7f6001264731c1aea0b8171d187f5ec8ed8
[ "Apache-2.0" ]
8
2021-02-22T01:10:06.000Z
2022-02-28T13:30:26.000Z
lib/util/util.cc
MUCZ/Starfish
4960b7f6001264731c1aea0b8171d187f5ec8ed8
[ "Apache-2.0" ]
2
2021-12-20T04:29:06.000Z
2022-03-21T01:00:19.000Z
lib/util/util.cc
MUCZ/Starfish
4960b7f6001264731c1aea0b8171d187f5ec8ed8
[ "Apache-2.0" ]
7
2021-02-22T01:10:16.000Z
2022-02-18T11:49:15.000Z
#include "util.hh" #include <array> #include <cctype> #include <chrono> #include <iomanip> #include <iostream> #include <sstream> #include <sys/socket.h> using namespace std; //! \returns the number of milliseconds since the program started uint64_t timestamp_ms() { using time_point = std::chrono::steady_clock::time_point; static const time_point program_start = std::chrono::steady_clock::now(); const time_point now = std::chrono::steady_clock::now(); return std::chrono::duration_cast<std::chrono::milliseconds>(now - program_start).count(); } //! \param[in] attempt is the name of the syscall to try (for error reporting) //! \param[in] return_value is the return value of the syscall //! \param[in] errno_mask is any errno value that is acceptable, e.g., `EAGAIN` when reading a non-blocking fd //! \details This function works for any syscall that returns less than 0 on error and sets errno: //! //! For example, to wrap a call to [open(2)](\ref man2::open), you might say: //! //! ~~~{.cc} //! const int foo_fd = SystemCall("open", ::open("/tmp/foo", O_RDWR)); //! ~~~ //! //! If you don't have permission to open the file, SystemCall will throw a std::runtime_error. //! If you don't want to throw in that case, you can pass `EACCESS` in `errno_mask`: //! //! ~~~{.cc} //! // open a file, or print an error if permission was denied //! const int foo_fd = SystemCall("open", ::open("/tmp/foo", O_RDWR), EACCESS); //! if (foo_fd < 0) { //! std::cerr << "Access to /tmp/foo was denied." << std::endl; //! } //! ~~~ int SystemCall(const char *attempt, const int return_value, const int errno_mask) { if (return_value >= 0 || errno == errno_mask) { return return_value; } throw unix_error(attempt); } //! \param[in] attempt is the name of the syscall to try (for error reporting) //! \param[in] return_value is the return value of the syscall //! \param[in] errno_mask is any errno value that is acceptable, e.g., `EAGAIN` when reading a non-blocking fd //! \details see the other SystemCall() documentation for more details int SystemCall(const string &attempt, const int return_value, const int errno_mask) { return SystemCall(attempt.c_str(), return_value, errno_mask); } //! \details A properly seeded mt19937 generator takes a lot of entropy! //! //! This code borrows from the following: //! //! - https://kristerw.blogspot.com/2017/05/seeding-stdmt19937-random-number-engine.html //! - http://www.pcg-random.org/posts/cpps-random_device.html mt19937 get_random_generator() { auto rd = random_device(); array<uint32_t, mt19937::state_size> seed_data{}; generate(seed_data.begin(), seed_data.end(), [&] { return rd(); }); seed_seq seed(seed_data.begin(), seed_data.end()); return mt19937(seed); } //! \note This class returns the checksum in host byte order. //! See https://commandcenter.blogspot.com/2012/04/byte-order-fallacy.html for rationale //! \details This class can be used to either check or compute an Internet checksum //! (e.g., for an IP datagram header or a TCP segment). //! //! The Internet checksum is defined such that evaluating inet_cksum() on a TCP segment (IP datagram, etc) //! containing a correct checksum header will return zero. In other words, if you read a correct TCP segment //! off the wire and pass it untouched to inet_cksum(), the return value will be 0. //! //! Meanwhile, to compute the checksum for an outgoing TCP segment (IP datagram, etc.), you must first set //! the checksum header to zero, then call inet_cksum(), and finally set the checksum header to the return //! value. //! //! For more information, see the [Wikipedia page](https://en.wikipedia.org/wiki/IPv4_header_checksum) //! on the Internet checksum, and consult the [IP](\ref rfc::rfc791) and [TCP](\ref rfc::rfc793) RFCs. InternetChecksum::InternetChecksum(const uint32_t initial_sum) : _sum(initial_sum) {} void InternetChecksum::add(std::string_view data) { for (size_t i = 0; i < data.size(); i++) { uint16_t val = uint8_t(data[i]); if (not _parity) { val <<= 8; } _sum += val; _parity = !_parity; } } uint16_t InternetChecksum::value() const { uint32_t ret = _sum; while (ret > 0xffff) { ret = (ret >> 16) + (ret & 0xffff); } return ~ret; } //! \param[in] data is a pointer to the bytes to show //! \param[in] len is the number of bytes to show //! \param[in] indent is the number of spaces to indent void hexdump(const uint8_t *data, const size_t len, const size_t indent) { const auto flags(cout.flags()); const string indent_string(indent, ' '); int printed = 0; stringstream pchars(" "); cout << hex << setfill('0'); for (unsigned i = 0; i < len; ++i) { if ((printed & 0xf) == 0) { if (printed != 0) { cout << " " << pchars.str() << "\n"; pchars.str(" "); } cout << indent_string << setw(8) << printed << ": "; } else if ((printed & 1) == 0) { cout << ' '; } cout << setw(2) << +data[i]; pchars << (static_cast<bool>(isprint(data[i])) ? static_cast<char>(data[i]) : '.'); printed += 1; } const int print_rem = (16 - (printed & 0xf)) % 16; // extra spacing before final chars cout << string(2 * print_rem + print_rem / 2 + 4, ' ') << pchars.str(); cout << '\n' << endl; cout.flags(flags); } //! \param[in] data is a pointer to the bytes to show //! \param[in] len is the number of bytes to show //! \param[in] indent is the number of spaces to indent void hexdump(const char *data, const size_t len, const size_t indent) { hexdump(reinterpret_cast<const uint8_t *>(data), len, indent); }
39.765517
110
0.651925
MUCZ
672555ffe725650cf18a34188c5fdd51ccabcc31
22,241
hpp
C++
include/util_automated_driving_msgs/util_automated_driving_msgs.hpp
coincar-sim/util_automated_driving_msgs
c10c90392a1aebcbaf74f6a93a18022298583b1e
[ "BSD-3-Clause" ]
null
null
null
include/util_automated_driving_msgs/util_automated_driving_msgs.hpp
coincar-sim/util_automated_driving_msgs
c10c90392a1aebcbaf74f6a93a18022298583b1e
[ "BSD-3-Clause" ]
null
null
null
include/util_automated_driving_msgs/util_automated_driving_msgs.hpp
coincar-sim/util_automated_driving_msgs
c10c90392a1aebcbaf74f6a93a18022298583b1e
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (c) 2017 * FZI Forschungszentrum Informatik, Karlsruhe, Germany (www.fzi.de) * KIT, Institute of Measurement and Control, Karlsruhe, Germany (www.mrt.kit.edu) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. Neither the name of the copyright holder nor the names of its contributors * may be used to endorse or promote products derived from this software without * specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #pragma once #include <ros/console.h> #include <boost/array.hpp> #include <automated_driving_msgs/MotionState.h> #include <automated_driving_msgs/ObjectState.h> #include <automated_driving_msgs/ObjectStateArray.h> #include <geometry_msgs/Accel.h> #include <geometry_msgs/Pose.h> #include <geometry_msgs/Twist.h> #include <tf2_eigen/tf2_eigen.h> #include <util_geometry_msgs/util_geometry_msgs.hpp> namespace { constexpr double QuaternionTolerance = 0.1f; /** Mapping from the classification of an object to the probability of this classification */ using ProbabilityMap = std::map<int, double>; /** @brief Calculating the componentwise sum of boost::array * @param[in] The first Array * @param[in] The second Array * @param[out] Array with componentwise sum. * @return void */ template <typename Scalar, std::size_t Size> inline void cWiseAdd(const boost::array<Scalar, Size>& array0, const boost::array<Scalar, Size>& array1, boost::array<Scalar, Size>& result) { std::transform(array0.begin(), array0.end(), array1.begin(), result.begin(), std::plus<Scalar>()); } /** @brief Calculating the componentwise division of boost::array * numerator[i] / denominator[i] = result[i] * @param[in] The first Array, numerator * @param[in] The second Array, denominator * @param[out] Array with componentwise division. * @return void */ template <typename Scalar, std::size_t Size> inline void cWiseDivide(const boost::array<Scalar, Size>& numerator, const boost::array<Scalar, Size>& denominator, boost::array<Scalar, Size>& result) { if (std::any_of(denominator.begin(), denominator.end(), [](Scalar i) { return i == 0; })) { throw std::runtime_error("Division by zero."); } std::transform(numerator.begin(), numerator.end(), denominator.begin(), result.begin(), std::divides<Scalar>()); } /** @brief Calculating the componentwise division of boost::array with constant denominator * numerator[i] / denominator = result[i] * @param[in] The first Array, numerator * @param[in] A scalar, denominator * @param[out] Array with componentwise division. * @return void */ template <typename Scalar, std::size_t Size> inline void cWiseDivide(const boost::array<Scalar, Size>& numerator, const Scalar& denominator, boost::array<Scalar, Size>& result) { if (denominator == 0) { throw std::runtime_error("Division by zero."); } std::transform(numerator.begin(), numerator.end(), result.begin(), std::bind(std::divides<Scalar>(), std::placeholders::_1, denominator)); } /** @brief Calculating the componentwise difference of 3D Vectors. x/y/z component-by-component * FirstParamIn - SecondParamIn = ParamOut * @param[in] The first 3D Vector. * @param[in] The second 3D Vector that is subtracted from the first. Componentwise. Must be of same Type than first * Vector. * @param[out] 3D Vectors with componentwise difference. * @return void */ template <typename Tin, typename Tout> inline void cWiseDiffXYZ(const Tin& xyzVector0, const Tin& xyzVector1, Tout& result) { result.x = xyzVector0.x - xyzVector1.x; result.y = xyzVector0.y - xyzVector1.y; result.z = xyzVector0.z - xyzVector1.z; } /** @brief Calculating the differential quotient of 3D Vectors. x/y/z component-by-component * (FirstParamIn - SecondParamIn) / DeltaTime = ParamOut * @param[in] The first/preceding (older) 3D Vector. * @param[in] The second/subsequent (newer) 3D Vector. Must be of same Type as first Vector. * @param[in] The time difference between the first and second vector. * @param[out] Differential quotient of 3D Vectors. x/y/z component-by-component. * @return void */ template <typename Tin, typename Tout> inline void diffQuotientXYZ(const Tin& xyzVector0, const Tin& xyzVector1, const double deltaTime, Tout& result) { if (deltaTime == 0) { throw std::runtime_error("Division by zero."); } result.x = (xyzVector1.x - xyzVector0.x) / deltaTime; result.y = (xyzVector1.y - xyzVector0.y) / deltaTime; result.z = (xyzVector1.z - xyzVector0.z) / deltaTime; } /** @brief Calculating the "differential quotient of rotation" * by taking the rotational difference between the orientations (as Quaternion), * converting to RollPitchYaw(RPY) representation * and dividing the RPY values by deltaTime. * Keep in mind: The angular velocity is not unambiguous assignable when calculated as difference from two * orientations * only. * @param[in] The first/preceding (older) orientation * @param[in] The second/subsequent (newer) orientation * @param[in] The time difference between the first and second orientation * @param[out] RPY-Representation of the rotational difference divided by the time difference. * @return void */ inline void diffQuotientOrientation(const geometry_msgs::Pose::_orientation_type& orientation0, const geometry_msgs::Pose::_orientation_type& orientation1, const double deltaTime, geometry_msgs::Twist::_angular_type& result) { Eigen::Quaternion<double> orientation0EQ; Eigen::Quaternion<double> orientation1EQ; tf2::fromMsg(orientation0, orientation0EQ); tf2::fromMsg(orientation1, orientation1EQ); // util_geometry_msgs::conversions::fromMsg(orientation0, orientation0EQ); // util_geometry_msgs::conversions::fromMsg(orientation1, orientation1EQ); // calculate rotational difference Eigen::Quaternion<double> rot0to1EQ = (orientation0EQ.inverse() * orientation1EQ); rot0to1EQ.normalize(); // There is no direct transformation to RPY (Euler X-Y-Z) therefore a detour via Matrix3x3 is used Eigen::Vector3d rpy = rot0to1EQ.toRotationMatrix().eulerAngles(0, 1, 2); rpy = rpy / deltaTime; // tf2::fromMsg(rpy, result); result = util_geometry_msgs::conversions::toMsg<geometry_msgs::Vector3>(rpy); } } // namespace namespace util_automated_driving_msgs { namespace conversions { /** @brief Searches for an ObjectState defined by its object_id in an ObjectStateArray. * @param[in] The ObjectStateArray in which the ObjectState is searched. * @param[in] The object_id by which the searched ObjectState is defined. * @param[out] IndicatorValue: True if the ObjectState is found once (and only once) in the ObjectStateArray, false * otherwise. * @return the ObjectState from the ObjectStateArray defined by the object_id*/ automated_driving_msgs::ObjectState objectStateFromObjectStateArray( const automated_driving_msgs::ObjectStateArray& inputObjectArray, uint32_t objectId, bool& foundAndUnique); /** @brief Searches for an ObjectState defined by its object_id in an ObjectStateArray. * @param[in] A boost::shared_pointer to the ObjectStateArray in which the ObjectState is searched. * @param[in] The object_id by which the searched ObjectState is defined. * @return the ObjectState from the ObjectStateArray defined by the object_id*/ automated_driving_msgs::ObjectState objectStateFromObjectStateArray( const boost::shared_ptr<const automated_driving_msgs::ObjectStateArray>& inputObjectArray, uint32_t objectId, bool& foundAndUnique); /** @brief Searches for an ObjectState defined by its object_id and deletes it from an ObjectStateArray. * @param[in] The ObjectStateArray in which the ObjectState will be removed. !This ObjectStateArray is modified! * @param[in] The object_id by which the searched ObjectState is defined. * @return the ObjectStateArray with the removed ObjectState defined by the object_id*/ automated_driving_msgs::ObjectStateArray removeObjectFromObjectStateArray( const automated_driving_msgs::ObjectStateArray& inputObjectArray, uint32_t objectId); /** * @brief convert * @param[in] classification the ObjectClassification to be converted. * @return a ProbabilityMap which map the classification to a probability. All available classes are set. */ ProbabilityMap convertObjectClassification(const automated_driving_msgs::ObjectClassification& classification); } // namespace conversions namespace checks { /** @brief Checks if the entries for the position in a motionState are marked as reliable. * This is done by checking if the diagonal values in the covariance matrix for the position are >= 0 * If you want to mark entries unreliable it is advisable to set the diagonal elements of the covariance matrix to * "-1". * @param[in] motionState to be checked. * @return true if the diagonal elements of the covariance matrix for the position are >=0, false otherwise.*/ bool positionValid(const automated_driving_msgs::MotionState& motionState); /** @brief Checks if the entries for the orientation in a motionState are marked as reliable. * This is done by checking if the diagonal values in the covariance matrix for the orientation are >= 0 * If you want to mark entries unreliable it is advisable to set the diagonal elements of the covariance matrix to * "-1". * @param[in] motionState to be checked. * @return true if the diagonal elements of the covariance matrix for the orientation are >=0, false otherwise.*/ bool orientationValid(const automated_driving_msgs::MotionState& motionState); /** @brief Checks if pose in a motionState is valid. * This is done by checking if the position, the orientation and the related covariance matrix is valid. * @param[in] motionState to be checked. * @return true if the pose is valid, false otherwise.*/ bool poseValid(const automated_driving_msgs::MotionState& motionState); /** @brief Checks if the entries for the linear twist in a motionState are marked as reliable. * This is done by checking if the diagonal values in the covariance matrix for the linear twist are >= 0 * If you want to mark entries unreliable it is advisable to set the diagonal elements of the covariance matrix to * "-1". * @param[in] motionState to be checked. * @return true if the diagonal elements of the covariance matrix for the linear twist are >=0, false otherwise.*/ bool linearTwistValid(const automated_driving_msgs::MotionState& motionState); /** @brief Checks if the entries for the angular twist in a motionState are marked as reliable. * This is done by checking if the diagonal values in the covariance matrix for the angular twist are >= 0 * If you want to mark entries unreliable it is advisable to set the diagonal elements of the covariance matrix to * "-1". * @param[in] motionState to be checked. * @return true if the diagonal elements of the covariance matrix for the angular twist are >=0, false otherwise.*/ bool angularTwistValid(const automated_driving_msgs::MotionState& motionState); /** @brief Checks if twist in a motionState is valid. * This is done by checking if the linear twist, the angular twist and the related covariance matrix is valid. * @param[in] motionState to be checked. * @return true if the twist is valid, false otherwise.*/ bool twistValid(const automated_driving_msgs::MotionState& motionState); /** @brief Checks if the entries for the linear acceleration in a motionState are marked as reliable. * This is done by checking if the diagonal values in the covariance matrix for the linear acceleration are >= 0 * If you want to mark entries unreliable it is advisable to set the diagonal elements of the covariance matrix to * "-1". * @param[in] motionState to be checked. * @return true if the diagonal elements of the covariance matrix for the linear acceleration are >=0, false * otherwise.*/ bool linearAccelValid(const automated_driving_msgs::MotionState& motionState); /** @brief Checks if the entries for the angular acceleration in a motionState are marked as reliable. * This is done by checking if the diagonal values in the covariance matrix for the angular acceleration are >= 0 * If you want to mark entries unreliable it is advisable to set the diagonal elements of the covariance matrix to * "-1". * @param[in] motionState to be checked. * @return true if the diagonal elements of the covariance matrix for the angular acceleration are >=0, false * otherwise.*/ bool angularAccelValid(const automated_driving_msgs::MotionState& motionState); /** @brief Checks if accel in a motionState is valid. * This is done by checking if the linear acceleration, the angular acceleration and the related covariance matrix * is * valid. * @param[in] motionState to be checked. * @return true if the accel is valid, false otherwise.*/ bool accelValid(const automated_driving_msgs::MotionState& motionState); /** * @brief frameIdsSet Checks if all frameIds in an objectStateArray are set (non-empty). * @param objectStateArray objectStateArray to be checked. * @param missingInformation String containing information about which frameIds are missing. * @return true if all frameIds are set, false otherwise. */ bool frameIdsSet(const automated_driving_msgs::ObjectStateArray& objectStateArray, std::string& missingInformation); /** * @brief frameIdsValid Checks if all frameIds in an objectStateArray coincide. * @param objectStateArray objectStateArray to be checked. * @param missingInformation String containing information about which frameIds are missing. * @return true if all frameIds are valid, i.e. coincide, false otherwise. */ bool frameIdsValid(const automated_driving_msgs::ObjectStateArray& objectStateArray, std::string& missingInformation); /** * @brief firstStampsAreEqual Checks if the first stamp of every submessage is the same. * @param objectStateArray objectStateArray to be checked. * @param missingInformation String containing information about which stamps are inconsistent. * @return true if all first stamps are the same, i.e. coincide, false otherwise. */ bool firstStampsAreEqual(const automated_driving_msgs::ObjectStateArray& objectStateArray, std::string& missingInformation); /** * @brief stampdsValid Checks if all stamps are within a windows of timeRangeSecs seconds. * @param objectStateArray objectStateArray to be checked. * @param timeRangeSecs allowed time range in seconds. * @param missingInformation String containing information about why stamps are not within rangeg. * @return true if all stampds are valid, i.e. within a range of 60 seconds, false otherwise. */ bool stampsWithinTimeRange(const automated_driving_msgs::ObjectStateArray& objectStateArray, const double& timeRangeSecs, std::string& missingInformation); /** * @brief predictionSynchroniyzed Checks if of all time stamps of all predictions of objects are equal. * @param objectStateArray objectStateArray to be checked. * @param predictionTimeStepMilliseconds desired time between two motion states within the predicted trajectory * @param missingInformation String containing information about which frameIds are missing. * @return true if all time stamps are syncronized, false otherwise. */ bool predictionStampsSynchronized(const automated_driving_msgs::ObjectStateArray& objectStateArray, const int64_t& predictionTimeStepMilliseconds, const double& predictionHorizonSeconds, std::string& missingInformation); } // namespace checks namespace computations { /** @brief Incorporate the Data of a preceding MotionState to a more recent MotionState. * If the Twist or Acceleration of the more recent MotionState is unavailable or unreliable (checking the covariance * matrix) * the Data of the preceding MotionState is used to complement the data of the more recent MotionState * by using the differential quotient of the pose (the twist respective). * If no improvement of the data is possible the MotionState remains unchanged. * @param[in] The first/preceding (older) MotionState. This MotionState is never changed. * @param[in,out] The second (present, more recent, newer) MotionState. This MotionState is changed, complemented by * the * Data in the preceding Motionstate * @return true if the second MotionState has been changed, false if not or on failure. */ bool incorporatePrecedingDataToMotionstate(const automated_driving_msgs::MotionState& precedingMS, automated_driving_msgs::MotionState& presentMS); /** * @brief getInterpolationIndexAndScale * @param traj Current trajectory where interpolation is done. * @param interpolationTimestamp Time stamp that should be interpolated. * @param searchStartIndex Index where the previous result was found, makes search faster. * @param index Resulting index (of the motion state), that is right ahead of the interpolationTimestamp. * @param scale Resulting scale, telling relative time between index and the next motion state * @param valid Returns true, if all computations could be done without problems. * @param errorMsg Contains a error string, in case any errors occur. */ void getInterpolationIndexAndScale(const automated_driving_msgs::Trajectory& traj, const ros::Time& interpolationTimestamp, const size_t& searchStartIndex, size_t& index, double& scale, bool& valid, std::string& errorMsg); /** * @brief interpolateAlongTrajectory !!assuming constant velocity!! * @param traj Current trajectory where interpolation is done. * @param interpolationTimestamp Time stamp that should be interpolated. * @param searchStartIndex Index where the previous result was found, makes search faster. * @param interpolatedMotionState Resulting interpolated motion state. * @param index Index where the result was found, serves as searchStartIndex for the next interpolation. * @param valid Returns true, if all computations could be done without problems. * @param errorMsg Contains a error string, in case any errors occur. */ void interpolateAlongTrajectory(const automated_driving_msgs::Trajectory& traj, const ros::Time& interpolationTimestamp, const size_t& searchStartIndex, automated_driving_msgs::MotionState& interpolatedMotionState, size_t& index, bool& valid, std::string& errorMsg); /** * @brief generateSynchronizedHeaders * @param first_header * @param timeStepMilliseconds * @param predictionHorizonSeconds * @return */ std::vector<std_msgs::Header> generateSynchronizedHeaders(const std_msgs::Header& firstHeader, const int32_t& timeStepMilliseconds, const double& predictionHorizonSeconds); /** * @brief synchronizePredictionTimestamps !!assuming constant velocity!! * @param unsyncedTrajectory * @param timeStepMilliseconds * @param predictionHorizonSeconds * @param syncedTrajectory * @param valid * @param errorMsg */ void synchronizePredictionTimestamps(const automated_driving_msgs::Trajectory& unsyncedTrajectory, const int32_t& timeStepMilliseconds, const double& predictionHorizonSeconds, automated_driving_msgs::Trajectory& syncedTrajectory, bool& valid, std::string& errorMsg); /** * @brief synchronizePredictionTimestamps !!assuming constant velocity!! * @param unsyncedObjectStates * @param timeStepMilliseconds * @param predictionHorizonSeconds * @param syncedObjectStates * @param valid * @param errorMsg */ void synchronizePredictionTimestamps(const automated_driving_msgs::ObjectStateArray& unsyncedObjectStates, const int32_t& timeStepMilliseconds, const double& predictionHorizonSeconds, automated_driving_msgs::ObjectStateArray& syncedObjectStates, bool& valid, std::string& errorMsg); } // namespace computations } // namespace util_automated_driving_msgs
51.964953
118
0.725867
coincar-sim
672c241ab6b127f406a6d59aed97859c84118141
988
cpp
C++
Library/OldOSs/LibWin2K/ToString.cpp
rrvt/ICS-214a
939d63466aa9dc6d71fb78765ff37aff0b667ea9
[ "MIT" ]
null
null
null
Library/OldOSs/LibWin2K/ToString.cpp
rrvt/ICS-214a
939d63466aa9dc6d71fb78765ff37aff0b667ea9
[ "MIT" ]
null
null
null
Library/OldOSs/LibWin2K/ToString.cpp
rrvt/ICS-214a
939d63466aa9dc6d71fb78765ff37aff0b667ea9
[ "MIT" ]
null
null
null
// Win2000 to_string replacement // BobK6RWY #include "stdafx.h" #include "ToString.h" static char buf[25]; string to_string(int Val) {sprintf_s(buf, sizeof(buf), "%i", Val); return buf;} string to_string(unsigned int Val) {sprintf_s(buf, sizeof(buf), "%u", Val); return buf;} string to_string(long Val) {sprintf_s(buf, sizeof(buf), "%li", Val); return buf;} string to_string(unsigned long Val) {sprintf_s(buf, sizeof(buf), "%lu", Val); return buf;} string to_string(long long Val) {sprintf_s(buf, sizeof(buf), "%lli", Val); return buf;} string to_string(unsigned long long Val) {sprintf_s(buf, sizeof(buf), "%llu", Val); return buf;} string to_string(float Val) {sprintf_s(buf, sizeof(buf), "%f", Val); return buf;} string to_string(double Val) {sprintf_s(buf, sizeof(buf), "%Lf", Val); return buf;} string to_string(long double Val) {sprintf_s(buf, sizeof(buf), "%LLf", Val); return buf;}
44.909091
96
0.639676
rrvt
6731868520392c3b4be84833566cca6359fb7679
6,261
hh
C++
src/xmlcsp/ExpressionParser.hh
kad15/SandBoxToulbar2
31430ec5e6c6cec1eabe6f5d04bfb8134777821c
[ "MIT" ]
33
2018-08-16T18:14:35.000Z
2022-03-14T10:26:18.000Z
src/xmlcsp/ExpressionParser.hh
kad15/SandBoxToulbar2
31430ec5e6c6cec1eabe6f5d04bfb8134777821c
[ "MIT" ]
13
2018-08-09T06:53:08.000Z
2022-03-28T10:26:24.000Z
src/xmlcsp/ExpressionParser.hh
kad15/SandBoxToulbar2
31430ec5e6c6cec1eabe6f5d04bfb8134777821c
[ "MIT" ]
12
2018-06-06T15:19:46.000Z
2022-02-11T17:09:27.000Z
/*============================================================================= * parser for CSP instances represented in XML format * * Copyright (c) 2008 Olivier ROUSSEL (olivier.roussel <at> cril.univ-artois.fr) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. *============================================================================= */ #ifndef _ExpressionParser_hh_ #define _ExpressionParser_hh_ #include <iostream> #include <iomanip> #include <sstream> #include <exception> #include <stdexcept> #include <string> #include <map> #include <deque> #include <cctype> #include "AST.hh" /** * @file ExpressionParser.hh * @brief Defines a parser for prefix/infix/postfix expressions. */ namespace CSPXMLParser { using namespace std; template <class ASTFactory> class ExpressionParser { private: deque<ASTAbstractFunction*> functionList; const VariableInfo* varInfo; // an optional map which provides some // information on the variables that // may occur in the expression public: ExpressionParser() { varInfo = NULL; functionList.push_back(new FunctionNeg); functionList.push_back(new FunctionAbs); functionList.push_back(new FunctionAdd); functionList.push_back(new FunctionSub); functionList.push_back(new FunctionMul); functionList.push_back(new FunctionDiv); functionList.push_back(new FunctionMod); functionList.push_back(new FunctionPow); functionList.push_back(new FunctionIf); functionList.push_back(new FunctionMin); functionList.push_back(new FunctionMax); functionList.push_back(new FunctionEQ); functionList.push_back(new FunctionNE); functionList.push_back(new FunctionGE); functionList.push_back(new FunctionGT); functionList.push_back(new FunctionLE); functionList.push_back(new FunctionLT); functionList.push_back(new FunctionNot); functionList.push_back(new FunctionAnd); functionList.push_back(new FunctionOr); functionList.push_back(new FunctionXor); functionList.push_back(new FunctionIff); } ~ExpressionParser() { for (deque<ASTAbstractFunction*>::iterator it = functionList.begin(); it != functionList.end(); ++it) delete *it; } void setVarInfo(const VariableInfo* varInfo = NULL) { this->varInfo = varInfo; } void unsetVarInfo() { this->varInfo = NULL; } AST* prefixParser(const string& expr) { string s; // remove spaces for (unsigned int i = 0; i < expr.length(); ++i) if (!isspace(expr[i])) s += expr[i]; return recursivePrefixParser(s); } AST* infixParser(const string& expr) { return ASTFactory::mkVar("infix parser unimplemented"); } AST* postfixParser(const string& expr) { return ASTFactory::mkVar("postfix parser unimplemented"); } private: AST* recursivePrefixParser(const string& f) { int level = 0; int argNum = 0; int subExprStart = 0; AST* node = NULL; for (unsigned int i = 0; i < f.length(); ++i) { if (f[i] == '(') { if (level == 0) { node = findPrefixFunction(f.substr(0, i)); subExprStart = i + 1; } ++level; } else { if (level == 1 && (f[i] == ',' || f[i] == ')')) { node->setArg(argNum, prefixParser(f.substr(subExprStart, i - subExprStart))); ++argNum; subExprStart = i + 1; } if (f[i] == ')') --level; } } if (level != 0) throw runtime_error("unbalanced parentheses"); if (node == NULL) { // no opening parenthese found, this is a constant or a variable if (isalpha(f[0])) { if (f == "true") node = ASTFactory::mkBoolean(true); else if (f == "false") node = ASTFactory::mkBoolean(false); else { // a variable if (varInfo == NULL) node = ASTFactory::mkVar(f); else { VariableInfo::const_iterator it = varInfo->find(f); if (it == varInfo->end()) throw runtime_error("undefined variable found in expression"); node = ASTFactory::mkVar(f, (*it).second.id); } } } else { // an int node = ASTFactory::mkInteger(f); } } return node; } AST* findPrefixFunction(const string& name) { for (unsigned int i = 0; i < functionList.size(); ++i) if (functionList[i]->getPrefixSymbol() == name) return functionList[i]->makeNode(); throw runtime_error("unknown function symbol"); } }; } // namespace #endif
31.305
90
0.569877
kad15
6732f6687343a2981c66eb1746a2cd6cd542d654
234
hpp
C++
include/Shader/ShaderLoader.hpp
olesgedz/Cube
12f0b48cc89a8fbb381e3e47e482bb6f3fcf04d6
[ "Apache-2.0" ]
2
2020-12-21T18:31:02.000Z
2020-12-27T14:36:03.000Z
include/Shader/ShaderLoader.hpp
olesgedz/Cube
12f0b48cc89a8fbb381e3e47e482bb6f3fcf04d6
[ "Apache-2.0" ]
1
2021-01-08T20:49:43.000Z
2021-01-08T20:49:43.000Z
include/Shader/ShaderLoader.hpp
olesgedz/Cube
12f0b48cc89a8fbb381e3e47e482bb6f3fcf04d6
[ "Apache-2.0" ]
1
2021-01-08T20:45:19.000Z
2021-01-08T20:45:19.000Z
#ifndef SHADERLOADER_HPP #define SHADERLOADER_HPP #include "vox.hpp" #include <string> namespace Shader { GLuint loadShader(const std::string& vertexShaderFile, const std::string& fragmentShaderFile); } #endif
21.272727
59
0.717949
olesgedz
673647cd0505bf0d215dc6360a41ccc6bd099cb6
5,045
cpp
C++
Sources/Core/cpp/SemanticAnalyzer/LexemType.cpp
elzin/SentimentAnalysisService
41fba2ef49746473535196e89a5e49250439fd83
[ "MIT" ]
2
2021-07-07T19:39:11.000Z
2021-12-02T15:54:15.000Z
Sources/Core/cpp/SemanticAnalyzer/LexemType.cpp
elzin/SentimentAnalysisService
41fba2ef49746473535196e89a5e49250439fd83
[ "MIT" ]
null
null
null
Sources/Core/cpp/SemanticAnalyzer/LexemType.cpp
elzin/SentimentAnalysisService
41fba2ef49746473535196e89a5e49250439fd83
[ "MIT" ]
1
2021-12-01T17:48:20.000Z
2021-12-01T17:48:20.000Z
#include "StdAfx.h" #include ".\lexemtype.h" #include "..\ASSInterface\TDictionaryNames.h" namespace SS { namespace Semantic { CLexemType::CLexemType(void) : m_ppCurentUnit(NULL) { } CLexemType::~CLexemType(void) { } bool CLexemType::WordEqualsTo(const TCharType pcWord,SS::Interface::Core::BlackBox::IUnit* pUnit) { if(pUnit==NULL) pUnit=*m_ppCurentUnit; if (pUnit==NULL) return false; return m_StringService.StrEqual(pUnit->GetWord(),pcWord); } bool CLexemType::IsWord(UINT uiLessOrEqual,SS::Interface::Core::BlackBox::IUnit* pUnit) { if(pUnit==NULL) pUnit=*m_ppCurentUnit; if (pUnit==NULL) return false; SS::Interface::Core::BlackBox::IIndex * pIndex=pUnit->GetFirstIndex(); if(!pIndex) return false; do{ if(pIndex->GetDictionaryIndex()) switch(/*(*/pIndex->GetDictionaryIndex()->GetFirst().GetDictionaryNumber()/*GetFirst())>>24*/) { case SS::Dictionary::DATA_TYPE::NAMES::ednNumeric: case SS::Dictionary::DATA_TYPE::NAMES::ednSymbols: case SS::Dictionary::DATA_TYPE::NAMES::ednUnknown: return false; case SS::Dictionary::DATA_TYPE::NAMES::ednSemantic: case SS::Dictionary::DATA_TYPE::NAMES::ednSyntax: case SS::Dictionary::DATA_TYPE::NAMES::ednDates: break; default: return true; } }while(pIndex=pUnit->GetNextIndex()); return false; } bool CLexemType::IsUpperCase(SS::Interface::Core::BlackBox::IUnit* pUnit) { if(pUnit==NULL) pUnit=*m_ppCurentUnit; if (pUnit==NULL) return false; TCHAR * pStr=(TCHAR *)pUnit->GetWord(); return (_istupper(*pStr)!=0); } bool CLexemType::IsDigits(UINT uiLessOrEqual,SS::Interface::Core::BlackBox::IUnit* pUnit) { if(pUnit==NULL) pUnit=*m_ppCurentUnit; if (pUnit==NULL) return false; SS::Interface::Core::BlackBox::IIndex * pIndex=pUnit->GetFirstIndex(); if(!pIndex) return false; do{ if(pIndex->GetDictionaryIndex()) switch(/*(*/pIndex->GetDictionaryIndex()->GetFirst().GetDictionaryNumber()/*GetFirst())>>24*/) { case SS::Dictionary::DATA_TYPE::NAMES::ednNumeric: return true; case SS::Dictionary::DATA_TYPE::NAMES::ednSemantic: case SS::Dictionary::DATA_TYPE::NAMES::ednSyntax: case SS::Dictionary::DATA_TYPE::NAMES::ednDates: case SS::Dictionary::DATA_TYPE::NAMES::ednSymbols: break; default: return false; } }while(pIndex=pUnit->GetNextIndex()); return false; return false; } bool CLexemType::IsSQuotes(SS::Interface::Core::BlackBox::IUnit* pUnit) { if(pUnit==NULL) pUnit=*m_ppCurentUnit; if (pUnit==NULL) return false; TCHAR * pStr=(TCHAR *)pUnit->GetWord(); if(*pStr) return (*pStr==_T('\"')); return false; } bool CLexemType::IsSTire(SS::Interface::Core::BlackBox::IUnit* pUnit) { if(pUnit==NULL) pUnit=*m_ppCurentUnit; if (pUnit==NULL) return false; TCHAR * pStr=(TCHAR *)pUnit->GetWord(); if(*pStr) return (*pStr==_T('-')); return false; } bool CLexemType::IsSDefis(SS::Interface::Core::BlackBox::IUnit* pUnit) { if(pUnit==NULL) pUnit=*m_ppCurentUnit; if (pUnit==NULL) return false; TCHAR * pStr=(TCHAR *)pUnit->GetWord(); if(*pStr) return (*pStr==_T('-')); return false; } bool CLexemType::IsSComma(SS::Interface::Core::BlackBox::IUnit* pUnit) { if(pUnit==NULL) pUnit=*m_ppCurentUnit; if (pUnit==NULL) return false; TCHAR * pStr=(TCHAR *)pUnit->GetWord(); if(*pStr) return (*pStr==_T(',')); return false; } bool CLexemType::IsSDot(SS::Interface::Core::BlackBox::IUnit* pUnit) { if(pUnit==NULL) pUnit=*m_ppCurentUnit; if (pUnit==NULL) return false; TCHAR * pStr=(TCHAR *)pUnit->GetWord(); if(*pStr) return (*pStr==_T('.')); return false; } bool CLexemType::IsSApostrophe(SS::Interface::Core::BlackBox::IUnit* pUnit) { if(pUnit==NULL) pUnit=*m_ppCurentUnit; if (pUnit==NULL) return false; TCHAR * pStr=(TCHAR *)pUnit->GetWord(); if(*pStr) return (*pStr==_T('\'')); return false; } bool CLexemType::IsSymbol(SS::Interface::Core::BlackBox::IUnit* pUnit) { if(pUnit==NULL) pUnit=*m_ppCurentUnit; if (pUnit==NULL) return false; SS::Interface::Core::BlackBox::IIndex * pIndex=pUnit->GetFirstIndex(); if(!pIndex) return false; do{ if(pIndex->GetDictionaryIndex()) switch(/*(*/pIndex->GetDictionaryIndex()->GetFirst().GetDictionaryNumber()/*GetFirst())>>24*/) { case SS::Dictionary::DATA_TYPE::NAMES::ednSymbols: return true; case SS::Dictionary::DATA_TYPE::NAMES::ednSemantic: case SS::Dictionary::DATA_TYPE::NAMES::ednSyntax: case SS::Dictionary::DATA_TYPE::NAMES::ednDates: break; default: return false; } }while(pIndex=pUnit->GetNextIndex()); return false; } bool CLexemType::SymbolEqualsTo(TCharType pcSymbol,SS::Interface::Core::BlackBox::IUnit* pUnit) { if(pUnit==NULL) pUnit=*m_ppCurentUnit; if (pUnit==NULL) return false; TCHAR * pStr=(TCHAR *)pUnit->GetWord(); if(*pStr) return (*pStr==*pcSymbol); return false; } UINT CLexemType::GetLexemLength(SS::Interface::Core::BlackBox::IUnit* pUnit) { if(pUnit==NULL) pUnit=*m_ppCurentUnit; if (pUnit==NULL) return false; TCHAR * pStr=(TCHAR *)pUnit->GetWord(); UINT i=0; while(pStr[i]) i++; return i; } } }
26.835106
99
0.693558
elzin
6736e5688df99821436f76cdb6b1318fe423a0ea
1,994
cpp
C++
src/GBuffer.cpp
Hyiker/OGLab
7fef68c1996398aaf7a0434e5e821e788d3a4ee1
[ "MIT" ]
null
null
null
src/GBuffer.cpp
Hyiker/OGLab
7fef68c1996398aaf7a0434e5e821e788d3a4ee1
[ "MIT" ]
null
null
null
src/GBuffer.cpp
Hyiker/OGLab
7fef68c1996398aaf7a0434e5e821e788d3a4ee1
[ "MIT" ]
null
null
null
#include "GBuffer.hpp" #include <glError.hpp> #include <glm/gtc/matrix_transform.hpp> #include <iostream> using namespace std; void GBuffer::init() { m_framebuffer.init(); m_depth.init(); m_depth.setup(m_width, m_height, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT, GL_FLOAT, 0); m_depth.setSizeFilter(GL_NEAREST, GL_NEAREST); m_framebuffer.attachTexture(m_depth, GL_DEPTH_ATTACHMENT, 0); m_position.init(); m_position.setup(m_width, m_height, GL_RGB32F, GL_RGB, GL_FLOAT, 0); m_position.setSizeFilter(GL_NEAREST, GL_NEAREST); m_framebuffer.attachTexture(m_position, GL_COLOR_ATTACHMENT0, 0); m_normal.init(); m_normal.setup(m_width, m_height, GL_RGB8_SNORM, GL_RGB, GL_FLOAT, 0); m_normal.setSizeFilter(GL_NEAREST, GL_NEAREST); m_framebuffer.attachTexture(m_normal, GL_COLOR_ATTACHMENT1, 0); m_albedo.init(); m_albedo.setup(m_width, m_height, GL_RGBA, GL_RGBA, GL_FLOAT, 0); m_albedo.setSizeFilter(GL_NEAREST, GL_NEAREST); m_framebuffer.attachTexture(m_albedo, GL_COLOR_ATTACHMENT2, 0); m_framebuffer.bind(); GLenum attachments[3] = {GL_COLOR_ATTACHMENT0, GL_COLOR_ATTACHMENT1, GL_COLOR_ATTACHMENT2}; glDrawBuffers(3, attachments); m_framebuffer.unbind(); glCheckError(__FILE__, __LINE__); } void GBuffer::render(const Scene& scene, const Camera& cam) { m_framebuffer.bind(); glClearColor(0, 0, 0, 1); glEnable(GL_DEPTH_TEST); glClear(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT); m_shader.use(); m_shader.setUniform("uModel", scene.getModelMatrix()); m_shader.setUniform("uView", cam.getViewMatrix()); m_shader.setUniform("uNormalTransform", glm::transpose(glm::inverse(scene.getModelMatrix()))); m_shader.setUniform("uProjection", cam.getProjectionMatrix()); glCheckError(__FILE__, __LINE__); scene.draw(m_shader); glCheckError(__FILE__, __LINE__); m_framebuffer.unbind(); }
33.233333
78
0.712136
Hyiker
674570149410fd445b2f91347c113821bfcbcca9
1,521
hxx
C++
include/moneta/traits/is_container.hxx
madera/Moneta
4c0da911bceb511d7d1133699b0d85216bb63d74
[ "BSL-1.0" ]
2
2015-10-09T12:11:54.000Z
2016-01-20T15:34:33.000Z
include/moneta/traits/is_container.hxx
madera/Moneta
4c0da911bceb511d7d1133699b0d85216bb63d74
[ "BSL-1.0" ]
5
2015-07-04T20:31:32.000Z
2015-07-04T20:44:58.000Z
include/moneta/traits/is_container.hxx
madera/Moneta
4c0da911bceb511d7d1133699b0d85216bb63d74
[ "BSL-1.0" ]
null
null
null
// [===========================================================================] // [ M o n e t a ] // [---------------------------------------------------------------------------] // [ ] // [ Copyright (C) 2005-2015 ] // [ Rodrigo Madera <madera@acm.org> ] // [ ] // [---------------------------------------------------------------------------] // [ Distributed under the Boost Software License, Version 1.0 ] // [ Read accompanying LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt ] // [===========================================================================] #pragma once // // TODO: Will this stand the test of time? // // Currently we borrow the code from Boost Spirit. In the future, we may need to reimplement it. // #include <boost/spirit/home/support/container.hpp> namespace moneta { namespace traits { template <typename T> struct is_container : boost::spirit::traits::is_container<T> {}; // // For our purposes, std::string is NOT a container. // This differs with the Boost Spirit definition. // template <> struct is_container<std::string> : boost::false_type {}; // template <typename T> struct isnt_container : boost::mpl::not_< is_container<T> > {}; }}
37.097561
96
0.391847
madera
6746e82c20a93d1fe859d8c92991ab3d6a3976ca
6,055
hpp
C++
src/json.hpp
ysakasin/yslang
199e7dbbb960adcb09e33445e74ef8349aa2f795
[ "MIT" ]
1
2019-05-28T14:58:09.000Z
2019-05-28T14:58:09.000Z
src/json.hpp
ysakasin/yslang
199e7dbbb960adcb09e33445e74ef8349aa2f795
[ "MIT" ]
null
null
null
src/json.hpp
ysakasin/yslang
199e7dbbb960adcb09e33445e74ef8349aa2f795
[ "MIT" ]
null
null
null
#pragma once #include <cassert> #include <sstream> #include <string> #include <vector> namespace yslang { class json_array; class json_object; class json { public: static json array() { return json(new json_array()); } public: using json_array = std::vector<json>; using json_object = std::vector<std::pair<std::string, json>>; json() { kind = Kind::Nothing; element.array = nullptr; } json(int64_t number) { kind = Kind::Number; element.number = number; } json(const std::string &str) { kind = Kind::String; element.string = new std::string(str); } json(const json &j) { copy_from(j); } json(json_array *array) { assert(array != nullptr); kind = Kind::Array; element.array = array; } ~json() { safe_delete(); } int64_t operator=(int64_t number) { safe_delete(); kind = Kind::Number; return element.number = number; } std::string operator=(const std::string &str) { safe_delete(); kind = Kind::String; element.string = new std::string(str); return *element.string; } json operator=(const json &j) { safe_delete(); copy_from(j); return j; } json &operator[](int64_t i) { if (kind == Kind::Array) { throw "hoge"; } return (*element.array)[i]; } json &operator[](std::string key) { if (kind == Kind::Nothing) { kind = Kind::Object; element.object = new json_object(); } else if (kind != Kind::Object) { throw "hoge"; } for (auto &item : *element.object) { if (item.first == key) { return item.second; } } element.object->emplace_back(key, json()); return element.object->back().second; } void push_back(int64_t number) { if (kind != Kind::Array) { throw "hoge"; } assert(element.array != nullptr); return element.array->emplace_back(number); } void push_back(const std::string &str) { if (kind != Kind::Array) { throw "hoge"; } assert(element.array != nullptr); element.array->emplace_back(str); } void push_back(const json &j) { if (kind != Kind::Array) { throw "hoge"; } assert(element.array != nullptr); element.array->push_back(j); } int64_t get_number() const { if (kind != Kind::Number) { return 0; } return element.number; } std::string get_string() const { if (kind != Kind::String) { return ""; } return *element.string; } std::string to_string() const { return to_string(0); } std::string to_string(int depth) const { if (kind == Kind::Array) { return dump_array(depth); } else if (kind == Kind::Object) { return dump_object(depth); } else if (kind == Kind::String) { return dump_string(); } else { return dump_number(); } } void init_array() { kind = Kind::Array; element.array = new json_array(); assert(element.array != nullptr); } private: void safe_delete() { if (kind == Kind::Array) { delete element.array; } else if (kind == Kind::Object) { delete element.object; } else if (kind == Kind::String) { delete element.string; } kind = Kind::Nothing; element.array = nullptr; } void copy_from(const json &dest) { safe_delete(); kind = dest.kind; if (kind == Kind::Array) { element.array = new json_array(*dest.element.array); } else if (kind == Kind::Object) { element.object = new json_object(*dest.element.object); } else if (kind == Kind::String) { element.string = new std::string(*dest.element.string); } else { element = dest.element; } } std::string dump_number() const { return std::to_string(element.number); } std::string dump_array(int depth) const { std::vector<std::string> v; v.reserve(element.array->size()); for (const auto &item : *element.array) { v.emplace_back(item.to_string(depth + 1)); } std::stringstream ss; ss << "[" << join(depth, v) << "]"; return ss.str(); } std::string dump_object(int depth) const { std::vector<std::string> v; v.reserve(element.object->size()); for (const auto &item : *element.object) { v.emplace_back(escapeJsonString(item.first) + ": " + item.second.to_string(depth + 1)); } std::stringstream ss; ss << "{" << join(depth, v) << "}"; return ss.str(); } std::string dump_string() const { return escapeJsonString(*element.string); } static std::string escapeJsonString(const std::string &input) { std::ostringstream ss; ss << '"'; for (auto iter = input.cbegin(); iter != input.cend(); iter++) { switch (*iter) { case '\\': ss << "\\\\"; break; case '"': ss << "\\\""; break; case '/': ss << "\\/"; break; case '\b': ss << "\\b"; break; case '\f': ss << "\\f"; break; case '\n': ss << "\\n"; break; case '\r': ss << "\\r"; break; case '\t': ss << "\\t"; break; default: ss << *iter; break; } } ss << '"'; return ss.str(); } std::string join(int depth, std::vector<std::string> v) const { if (v.size() == 0) { return ""; } std::stringstream ss; ss << std::endl; int i; for (i = 0; i < v.size() - 1; i++) { ss << indent(depth + 1) << v[i] << "," << std::endl; } ss << indent(depth + 1) << v[i] << std::endl; ss << indent(depth); return ss.str(); } std::string indent(int depth) const { return std::string(depth * 2, ' '); } private: enum class Kind { Array, Object, String, Number, Nothing, }; union Element { json_array *array; json_object *object; std::string *string; int64_t number; }; Kind kind = Kind::Nothing; Element element; }; } // namespace yslang
19.595469
68
0.545665
ysakasin
674ab7c49337d6e867bceac7311a8d1fde676897
3,551
cc
C++
src/code/modulo.cc
robin92/jftt2014-compiler
65c7c23e272ce082a6bfb5de81ac1c075489bb74
[ "MIT" ]
null
null
null
src/code/modulo.cc
robin92/jftt2014-compiler
65c7c23e272ce082a6bfb5de81ac1c075489bb74
[ "MIT" ]
3
2015-01-05T11:00:56.000Z
2015-09-05T06:29:52.000Z
src/code/modulo.cc
robin92/jftt2014-compiler
65c7c23e272ce082a6bfb5de81ac1c075489bb74
[ "MIT" ]
null
null
null
/* * Copyright 2014 Rafał Bolanowski * All rights reserved. * * For licensing information please see the LICENSE file. */ #include <algorithm> #include <iostream> #include <sstream> #include <string> #include <gmpxx.h> #include "config.hh" #include "code.hh" static inline std::string get_modulo_code(std::uint32_t *length, const std::uint32_t& offset = 0); using namespace code::cmd; std::string code::modulo( const ISymbolTable::Entry& a, const ISymbolTable::Entry& b, const std::uint32_t offset) { std::ostringstream machine_code; if (F_CONST_EXPR and (a.has_value and b.has_value)) // obie stałe { // optymalizacja: a % b std::cerr << ">> optymalizacja: a % b\n"; mpz_class av(a.value), bv(b.value), res = av % bv; if (av == mpz_class("0") or bv == mpz_class("0") or bv == mpz_class("1")) res = mpz_class("0"); machine_code << generate_number(res.get_str()); return machine_code.str(); } bool bIsZero = b.has_value and (std::int32_t) b.value.find_first_not_of('0') == -1, bIsTwo = b.has_value and b.value == "2"; if (F_MODULO_ZERO and bIsZero) { // optymalizacja: x mod 0 std::cerr << ">> optymalizacja: mod 0\n"; machine_code << ZERO << " " << "\n"; } else if (F_MODULO_TWO and bIsTwo) { // optymalizacja: x mod 2 std::cerr << ">> optymalizacja: mod 2\n"; machine_code << LOAD << " " << a.current_addr << "\n" << JODD << " " << offset + 4 << "\n" << ZERO << "\n" << JUMP << " " << offset + 6 << "\n" << ZERO << "\n" << INC << "\n"; } else { std::uint32_t padLen = 0, modLen = 0; std::string padding = helper::pad_left(&padLen, offset + 6); std::string mod = get_modulo_code(&modLen, offset + 6 + padLen); machine_code << LOAD << " " << a.current_addr << "\n" << STORE << " " << 0 << "\n" << LOAD << " " << b.current_addr << "\n" << STORE << " " << 1 << "\n" << LOAD << " " << 1 << "\n" // jeśli b == 0 to wynikiem jest 0 << JZ << " " << offset + padLen + modLen + 1 << "\n" << padding << mod << LOAD << " " << 0 << "\n"; } return machine_code.str(); } std::string get_modulo_code(std::uint32_t *length, const std::uint32_t& offset) { std::ostringstream machine_code; machine_code << LOAD << " " << 2 << "\n" // while d > 0 do << JZ << " " << offset + 15 << "\n" << LOAD << " " << 1 << "\n" // if b <= a then << SUB << " " << 0 << "\n" << JG << " " << offset + 8 << "\n" << LOAD << " " << 0 << "\n" // a -= b; << SUB << " " << 1 << "\n" << STORE << " " << 0 << "\n" // end << LOAD << " " << 1 << "\n" // b >>= 1; << SHR << "\n" << STORE << " " << 1 << "\n" << LOAD << " " << 2 << "\n" // d >>= 1; << SHR << "\n" << STORE << " " << 2 << "\n" << JUMP << " " << offset << "\n"; // end std::string str = machine_code.str(); *length = std::count(str.begin(), str.end(), '\n'); return str; }
29.106557
105
0.424387
robin92
674ad5f328e075ae7e2a07e332e371f6baab27b5
111
cpp
C++
docs/mfc/codesnippet/CPP/gray-and-dithered-bitmap-functions_2.cpp
bobbrow/cpp-docs
769b186399141c4ea93400863a7d8463987bf667
[ "CC-BY-4.0", "MIT" ]
965
2017-06-25T23:57:11.000Z
2022-03-31T14:17:32.000Z
docs/mfc/codesnippet/CPP/gray-and-dithered-bitmap-functions_2.cpp
bobbrow/cpp-docs
769b186399141c4ea93400863a7d8463987bf667
[ "CC-BY-4.0", "MIT" ]
3,272
2017-06-24T00:26:34.000Z
2022-03-31T22:14:07.000Z
docs/mfc/codesnippet/CPP/gray-and-dithered-bitmap-functions_2.cpp
bobbrow/cpp-docs
769b186399141c4ea93400863a7d8463987bf667
[ "CC-BY-4.0", "MIT" ]
951
2017-06-25T12:36:14.000Z
2022-03-26T22:49:06.000Z
CBitmap bm; bm.LoadBitmap(IDB_BITMAP1); CBitmap bmGray; AfxGetGrayBitmap(bm, &bmGray, GetSysColor(COLOR_MENU));
27.75
55
0.810811
bobbrow
674b2fca55e1d7322960e0a16430f7164a2383d0
2,481
cpp
C++
Practica5/main.cpp
Adry2317/Estructuras-de-datos-Universidad-de-Ja-n-2020-2021
86ff92b54ca39689e2e6e9057246d91b34e09b47
[ "Apache-2.0" ]
null
null
null
Practica5/main.cpp
Adry2317/Estructuras-de-datos-Universidad-de-Ja-n-2020-2021
86ff92b54ca39689e2e6e9057246d91b34e09b47
[ "Apache-2.0" ]
null
null
null
Practica5/main.cpp
Adry2317/Estructuras-de-datos-Universidad-de-Ja-n-2020-2021
86ff92b54ca39689e2e6e9057246d91b34e09b47
[ "Apache-2.0" ]
null
null
null
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /* * File: main.cpp * Author: Adrian * * Created on 15 de noviembre de 2020, 13:52 */ #include <cstdlib> #include "Documento.h" #include "GestorTextos.h" #include <string> #include "THashPalabra.h" #include <vector> using namespace std; /* * */ int main(int argc, char** argv) { string documento = "quijote.txt"; string diccionario = "dicc-espanol.txt"; string diccVerbos = "verbos_conjugados_desordenados.txt"; GestorTextos gestor (documento, diccionario, diccVerbos, 0.71, 607462); string termino = "wifi"; Palabra palInsert(termino, 0); unsigned int colAntes = gestor.colisiones(); if(gestor.insertarTabla(palInsert)){ cout<<"La palabra se ha insertado correctamente"<<endl; } else { cout<<"La palabra no se ha podido insertar"<<endl; } cout<<"El número de colisiones al insertar la palabra es: "<<gestor.colisiones() - colAntes<<endl; /****************************Añadir palabras con W a un vector*****************************/ vector<Palabra> palabrasW; string palabras_empiezanConW = "Letras_empiezan_con_W.txt"; string palabra; ifstream fe(palabras_empiezanConW); while(fe){ fe >> palabra; Palabra aux (palabra, 0); string palabraLimpia = aux.limpiar( aux ); Palabra palLimpia( palabraLimpia, 0 ); palabrasW.push_back( palLimpia ); } /******************************************************************************************/ for (int i = 0; i < palabrasW.size(); i++){ Palabra borraPalabra = palabrasW[i]; string termino = borraPalabra.getPalabra(); if(gestor.borraPalabra( termino )){ cout <<"Palabra "<<palabrasW[i].getPalabra()<<" eliminada."<<endl; } } string waterpolo = "waterpolo"; Palabra Pal1(waterpolo,0); string windsurf = "windsurf"; Palabra Pal2 (windsurf, 0); if(gestor.insertarTabla(Pal1) && gestor.insertarTabla(Pal2)){ cout<<"Palabra "<<waterpolo<<" insertada correctamente"<<endl; cout<<"Palabra "<<windsurf<<" insertada correctamente"<<endl; }else{ cout<<"Error al insertar las palabras"; } return 0; }
25.57732
102
0.582426
Adry2317
674b8c97e8f531a4515d22037f97960af8b7d26c
1,311
cpp
C++
source/chord.cpp
atg/kenny
0082e2fe5e6693de0d749f95a18cdb3e4733c78f
[ "WTFPL" ]
1
2017-02-20T13:30:36.000Z
2017-02-20T13:30:36.000Z
source/chord.cpp
atg/kenny
0082e2fe5e6693de0d749f95a18cdb3e4733c78f
[ "WTFPL" ]
null
null
null
source/chord.cpp
atg/kenny
0082e2fe5e6693de0d749f95a18cdb3e4733c78f
[ "WTFPL" ]
null
null
null
#import "chord.hpp" Chord Chord::build(Scale scale, Qualities q) { Chord ch; ch.scale = scale; #define add_note(n, k) do { \ int t = int(scale.tones[n - 1].pitch); \ if (q . k == Quality::Flat) t -= 1; \ else if (q . k == Quality::Sharp) t += 1; \ else if (q . k == Quality::Missing) break; \ ch.tones.push_back(Note(sanemod(t, 12))); \ } while (0) ch.tones.push_back(scale.tones[0]); add_note(2, second); add_note(3, third); add_note(4, fourth); add_note(5, fifth); add_note(6, sixth); add_note(7, seventh); add_note(2, ninth); add_note(4, eleventh); add_note(6, thirteenth); return ch; } static uint64_t mask_fromNoteIndex(int i) { return 1 << i; } uint64_t Chord::bitmask() { // The rule is that the root is always the lowest note uint64_t mask = 0; int mini = -1; for (Note note : tones) { int i = note.pitch; while (i <= mini) i += 12; mini = i; mask |= mask_fromNoteIndex(i); } return mask; } void Chord::print() { const char* sep = ""; printf("{"); for (Note n : tones) { printf("%s", sep); sep = ", "; n.print(); } printf("}"); }
20.809524
58
0.504195
atg
6753cd060383cad6870de4cb25f5bab09cd22e46
33,152
cpp
C++
source/emulator/src/Graphics/Tile.cpp
InoriRus/Kyty
1aa7cf72ce598ee4ca31edc63f5b9708d629c69d
[ "MIT" ]
76
2021-11-13T13:07:59.000Z
2022-03-22T11:35:29.000Z
source/emulator/src/Graphics/Tile.cpp
InoriRus/Kyty
1aa7cf72ce598ee4ca31edc63f5b9708d629c69d
[ "MIT" ]
7
2021-12-01T18:45:13.000Z
2022-03-26T18:34:33.000Z
source/emulator/src/Graphics/Tile.cpp
InoriRus/Kyty
1aa7cf72ce598ee4ca31edc63f5b9708d629c69d
[ "MIT" ]
9
2021-11-24T08:38:13.000Z
2022-03-24T13:25:04.000Z
#include "Emulator/Graphics/Tile.h" #include "Kyty/Core/DbgAssert.h" #include "Kyty/Core/String.h" #include "Kyty/Core/Threads.h" #include "Emulator/Graphics/AsyncJob.h" #include "Emulator/Profiler.h" #if KYTY_COMPILER != KYTY_COMPILER_CLANG #include <intrin.h> #endif #include <algorithm> #include <iterator> #ifdef KYTY_EMU_ENABLED namespace Kyty::Libs::Graphics { static uint32_t IntLog2(uint32_t i) { #if KYTY_COMPILER == KYTY_COMPILER_CLANG return 31 - __builtin_clz(i | 1u); #else unsigned long temp; _BitScanReverse(&temp, i | 1u); return temp; #endif } static bool IsPowerOfTwo(uint32_t x) { return (x != 0) && ((x & (x - 1)) == 0); } struct Uint128 { uint64_t n[2]; }; struct Uint256 { Uint128 n[2]; }; class Tiler { public: Tiler(): m_job1(nullptr), m_job2(nullptr) /*, m_job3(nullptr), m_job4(nullptr)*/ { EXIT_NOT_IMPLEMENTED(!Core::Thread::IsMainThread()); } virtual ~Tiler() { KYTY_NOT_IMPLEMENTED; } KYTY_CLASS_NO_COPY(Tiler); Core::Mutex m_mutex; AsyncJob m_job1; AsyncJob m_job2; // AsyncJob m_job3; // AsyncJob m_job4; }; class Tiler32 { public: uint32_t m_macro_tile_height = 0; uint32_t m_bank_height = 0; uint32_t m_num_banks = 0; uint32_t m_num_pipes = 0; uint32_t m_padded_width = 0; uint32_t m_padded_height = 0; uint32_t m_pipe_bits = 0; uint32_t m_bank_bits = 0; void Init(uint32_t width, uint32_t height, bool neo) { m_macro_tile_height = (neo ? 128 : 64); m_bank_height = neo ? 2 : 1; m_num_banks = neo ? 8 : 16; m_num_pipes = neo ? 16 : 8; m_padded_width = width; if (height == 1080) { m_padded_height = neo ? 1152 : 1088; } if (height == 720) { m_padded_height = 768; } m_pipe_bits = neo ? 4 : 3; m_bank_bits = neo ? 3 : 4; } static uint32_t GetElementIndex(uint32_t x, uint32_t y) { uint32_t elem = 0; elem |= ((x >> 0u) & 0x1u) << 0u; elem |= ((x >> 1u) & 0x1u) << 1u; elem |= ((y >> 0u) & 0x1u) << 2u; elem |= ((x >> 2u) & 0x1u) << 3u; elem |= ((y >> 1u) & 0x1u) << 4u; elem |= ((y >> 2u) & 0x1u) << 5u; return elem; } static uint32_t GetPipeIndex(uint32_t x, uint32_t y, bool neo) { uint32_t pipe = 0; if (!neo) { pipe |= (((x >> 3u) ^ (y >> 3u) ^ (x >> 4u)) & 0x1u) << 0u; pipe |= (((x >> 4u) ^ (y >> 4u)) & 0x1u) << 1u; pipe |= (((x >> 5u) ^ (y >> 5u)) & 0x1u) << 2u; } else { pipe |= (((x >> 3u) ^ (y >> 3u) ^ (x >> 4u)) & 0x1u) << 0u; pipe |= (((x >> 4u) ^ (y >> 4u)) & 0x1u) << 1u; pipe |= (((x >> 5u) ^ (y >> 5u)) & 0x1u) << 2u; pipe |= (((x >> 6u) ^ (y >> 5u)) & 0x1u) << 3u; } return pipe; } static uint32_t GetBankIndex(uint32_t x, uint32_t y, uint32_t bank_width, uint32_t bank_height, uint32_t num_banks, uint32_t num_pipes) { const uint32_t x_shift_offset = IntLog2(bank_width * num_pipes); const uint32_t y_shift_offset = IntLog2(bank_height); const uint32_t xs = x >> x_shift_offset; const uint32_t ys = y >> y_shift_offset; uint32_t bank = 0; switch (num_banks) { case 8: bank |= (((xs >> 3u) ^ (ys >> 5u)) & 0x1u) << 0u; bank |= (((xs >> 4u) ^ (ys >> 4u) ^ (ys >> 5u)) & 0x1u) << 1u; bank |= (((xs >> 5u) ^ (ys >> 3u)) & 0x1u) << 2u; break; case 16: bank |= (((xs >> 3u) ^ (ys >> 6u)) & 0x1u) << 0u; bank |= (((xs >> 4u) ^ (ys >> 5u) ^ (ys >> 6u)) & 0x1u) << 1u; bank |= (((xs >> 5u) ^ (ys >> 4u)) & 0x1u) << 2u; bank |= (((xs >> 6u) ^ (ys >> 3u)) & 0x1u) << 3u; break; default:; } return bank; } [[nodiscard]] uint64_t GetTiledOffset(uint32_t x, uint32_t y, bool neo) const { uint64_t element_index = GetElementIndex(x, y); uint32_t xh = x; uint32_t yh = y; uint64_t pipe = GetPipeIndex(xh, yh, neo); uint64_t bank = GetBankIndex(xh, yh, 1, m_bank_height, m_num_banks, m_num_pipes); uint32_t tile_bytes = (8 * 8 * 32 + 7) / 8; uint64_t element_offset = (element_index * 32); uint64_t tile_split_slice = 0; if (tile_bytes > 512) { tile_split_slice = element_offset / (static_cast<uint64_t>(512) * 8); element_offset %= (static_cast<uint64_t>(512) * 8); tile_bytes = 512; } uint64_t macro_tile_bytes = (128 / 8) * (m_macro_tile_height / 8) * tile_bytes / (m_num_pipes * m_num_banks); uint64_t macro_tiles_per_row = m_padded_width / 128; uint64_t macro_tile_row_index = y / m_macro_tile_height; uint64_t macro_tile_column_index = x / 128; uint64_t macro_tile_index = (macro_tile_row_index * macro_tiles_per_row) + macro_tile_column_index; uint64_t macro_tile_offset = macro_tile_index * macro_tile_bytes; uint64_t macro_tiles_per_slice = macro_tiles_per_row * (m_padded_height / m_macro_tile_height); uint64_t slice_bytes = macro_tiles_per_slice * macro_tile_bytes; uint64_t slice_offset = tile_split_slice * slice_bytes; uint64_t tile_row_index = (y / 8) % m_bank_height; uint64_t tile_index = tile_row_index; uint64_t tile_offset = tile_index * tile_bytes; uint64_t tile_split_slice_rotation = ((m_num_banks / 2) + 1) * tile_split_slice; bank ^= tile_split_slice_rotation; bank &= (m_num_banks - 1); uint64_t total_offset = (slice_offset + macro_tile_offset + tile_offset) * 8 + element_offset; uint64_t bit_offset = total_offset & 0x7u; total_offset /= 8; uint64_t pipe_interleave_offset = total_offset & 0xffu; uint64_t offset = total_offset >> 8u; uint64_t byte_offset = pipe_interleave_offset | (pipe << (8u)) | (bank << (8u + m_pipe_bits)) | (offset << (8u + m_pipe_bits + m_bank_bits)); return ((byte_offset << 3u) | bit_offset) / 8; } }; class Tiler1d { public: uint32_t m_width = 0; uint32_t m_height = 0; uint32_t m_pitch = 0; uint32_t m_bits_per_element = 0; uint32_t m_tile_bytes = 0; uint32_t m_tiles_per_row = 0; void Init(uint32_t dfmt, uint32_t nfmt, uint32_t width, uint32_t height, uint32_t pitch, uint32_t padded_width, uint32_t /*padded_height*/, bool /*neo*/) { m_width = width; m_height = height; m_pitch = pitch; if ((nfmt == 9 && dfmt == 10) || (nfmt == 0 && dfmt == 10)) { // R8G8B8A8 m_bits_per_element = 32; } else if ((nfmt == 9 && dfmt == 37) || (nfmt == 0 && dfmt == 37) || (nfmt == 0 && dfmt == 36)) { // BC2 or BC3 m_bits_per_element = 128; m_width = std::max((m_width + 3) / 4, 1U); m_height = std::max((m_height + 3) / 4, 1U); m_pitch = std::max((m_pitch + 3) / 4, 1U); } else if ((nfmt == 0 && dfmt == 35)) { // BC1 m_bits_per_element = 64; m_width = std::max((m_width + 3) / 4, 1U); m_height = std::max((m_height + 3) / 4, 1U); m_pitch = std::max((m_pitch + 3) / 4, 1U); } else { EXIT("unknown format: nfmt = %u, dfmt = %u\n", nfmt, dfmt); } m_tile_bytes = (8 * 8 * 1 * m_bits_per_element + 7) / 8; m_tiles_per_row = padded_width / 8; } static uint32_t GetElementIndex(uint32_t x, uint32_t y) { uint32_t elem = 0; elem |= ((x >> 0u) & 0x1u) << 0u; elem |= ((y >> 0u) & 0x1u) << 1u; elem |= ((x >> 1u) & 0x1u) << 2u; elem |= ((y >> 1u) & 0x1u) << 3u; elem |= ((x >> 2u) & 0x1u) << 4u; elem |= ((y >> 2u) & 0x1u) << 5u; return elem; } [[nodiscard]] uint64_t GetTiledOffset(uint32_t x, uint32_t y, bool /*neo*/) const { uint64_t element_index = GetElementIndex(x, y); uint64_t tile_row_index = y / 8; uint64_t tile_column_index = x / 8; uint64_t tile_offset = ((tile_row_index * m_tiles_per_row) + tile_column_index) * m_tile_bytes; uint64_t element_offset = element_index * m_bits_per_element; uint64_t offset = tile_offset * 8 + element_offset; return offset / 8; } }; static Tiler* g_tiler = nullptr; static void init_maps(); void TileInit() { EXIT_IF(g_tiler != nullptr); g_tiler = new Tiler; init_maps(); } // NOLINTNEXTLINE(readability-non-const-parameter) static void Detile32(const Tiler32* t, uint32_t width, uint32_t height, uint32_t dst_pitch, uint8_t* dst, const uint8_t* src, bool neo) { EXIT_IF(g_tiler == nullptr); Core::LockGuard lock(g_tiler->m_mutex); struct DetileParams { const Tiler32* t; uint32_t start_y; uint32_t width; uint32_t height; uint32_t dst_pitch; uint8_t* dst; const uint8_t* src; bool neo; }; auto func = [](void* args) { auto* p = static_cast<DetileParams*>(args); auto* dst = p->dst; const auto* src = p->src; const Tiler32* t = p->t; uint32_t start_y = p->start_y; uint32_t width = p->width; uint32_t height = p->height; uint64_t dst_pitch = p->dst_pitch; bool neo = p->neo; for (uint32_t y = start_y; y < height; y++) { uint32_t x = 0; uint64_t linear_offset = y * dst_pitch * 4; for (; x + 1 < width; x += 2) { auto tiled_offset = t->GetTiledOffset(x, y, neo); *reinterpret_cast<uint64_t*>(dst + linear_offset) = *reinterpret_cast<const uint64_t*>(src + tiled_offset); linear_offset += 8; } if (x < width) { auto tiled_offset = t->GetTiledOffset(x, y, neo); *reinterpret_cast<uint32_t*>(dst + linear_offset) = *reinterpret_cast<const uint32_t*>(src + tiled_offset); } } }; DetileParams p1 {t, 0, width, height / 4, dst_pitch, dst, src, neo}; DetileParams p2 {t, p1.height, width, /*(height * 2) / 4*/ height, dst_pitch, dst, src, neo}; // DetileParams p3 {t, p2.height, width, (height * 3) / 4, dst_pitch, dst, src, neo}; // DetileParams p4 {t, p3.height, width, height, dst_pitch, dst, src, neo}; g_tiler->m_job1.Execute(func, &p1); g_tiler->m_job2.Execute(func, &p2); // g_tiler->m_job3.Execute(func, &p3); // g_tiler->m_job4.Execute(func, &p4); g_tiler->m_job1.Wait(); g_tiler->m_job2.Wait(); // g_tiler->m_job3.Wait(); // g_tiler->m_job4.Wait(); // Core::Thread t1(func, &p1); // Core::Thread t2(func, &p2); // Core::Thread t3(func, &p3); // Core::Thread t4(func, &p4); // // t1.Join(); // t2.Join(); // t3.Join(); // t4.Join(); } static void Detile32(const Tiler1d* t, uint32_t width, uint32_t height, uint32_t dst_pitch, uint8_t* dst, const uint8_t* src, bool neo) { for (uint32_t y = 0; y < height; y++) { uint32_t x = 0; uint64_t linear_offset = y * static_cast<uint64_t>(dst_pitch) * 4; for (; x + 1 < width; x += 2) { auto tiled_offset = t->GetTiledOffset(x, y, neo); *reinterpret_cast<uint64_t*>(dst + linear_offset) = *reinterpret_cast<const uint64_t*>(src + tiled_offset); linear_offset += 8; } if (x < width) { auto tiled_offset = t->GetTiledOffset(x, y, neo); *reinterpret_cast<uint32_t*>(dst + linear_offset) = *reinterpret_cast<const uint32_t*>(src + tiled_offset); } } } static void Detile64(const Tiler1d* t, uint32_t width, uint32_t height, uint32_t dst_pitch, uint8_t* dst, const uint8_t* src, bool neo) { for (uint32_t y = 0; y < height; y++) { uint32_t x = 0; uint64_t linear_offset = y * static_cast<uint64_t>(dst_pitch) * 8; for (; x + 1 < width; x += 2) { auto tiled_offset = t->GetTiledOffset(x, y, neo); *reinterpret_cast<Uint128*>(dst + linear_offset) = *reinterpret_cast<const Uint128*>(src + tiled_offset); linear_offset += 16; } if (x < width) { auto tiled_offset = t->GetTiledOffset(x, y, neo); *reinterpret_cast<uint64_t*>(dst + linear_offset) = *reinterpret_cast<const uint64_t*>(src + tiled_offset); } } } static void Detile128(const Tiler1d* t, uint32_t width, uint32_t height, uint32_t dst_pitch, uint8_t* dst, const uint8_t* src, bool neo) { for (uint32_t y = 0; y < height; y++) { uint32_t x = 0; uint64_t linear_offset = y * static_cast<uint64_t>(dst_pitch) * 16; for (; x + 1 < width; x += 2) { auto tiled_offset = t->GetTiledOffset(x, y, neo); *reinterpret_cast<Uint256*>(dst + linear_offset) = *reinterpret_cast<const Uint256*>(src + tiled_offset); linear_offset += 32; } if (x < width) { auto tiled_offset = t->GetTiledOffset(x, y, neo); *reinterpret_cast<Uint128*>(dst + linear_offset) = *reinterpret_cast<const Uint128*>(src + tiled_offset); } } } static void Detile1d(const Tiler1d* t, uint8_t* dst, const uint8_t* src, bool neo) { if (t->m_bits_per_element == 32) { Detile32(t, t->m_width, t->m_height, t->m_pitch, dst, src, neo); } else if (t->m_bits_per_element == 64) { Detile64(t, t->m_width, t->m_height, t->m_pitch, dst, src, neo); } else if (t->m_bits_per_element == 128) { Detile128(t, t->m_width, t->m_height, t->m_pitch, dst, src, neo); } else { EXIT("Unknown size"); } } void TileConvertTiledToLinear(void* dst, const void* src, TileMode mode, uint32_t width, uint32_t height, bool neo) { KYTY_PROFILER_FUNCTION(); EXIT_NOT_IMPLEMENTED(mode != TileMode::VideoOutTiled); Tiler32 t; t.Init(width, height, neo); Detile32(&t, width, height, width, static_cast<uint8_t*>(dst), static_cast<const uint8_t*>(src), neo); } void TileConvertTiledToLinear(void* dst, const void* src, TileMode mode, uint32_t dfmt, uint32_t nfmt, uint32_t width, uint32_t height, uint32_t pitch, uint32_t levels, bool neo) { EXIT_NOT_IMPLEMENTED(mode != TileMode::TextureTiled); TilePaddedSize padded_sizes[16]; TileSizeOffset level_sizes[16]; TileGetTextureSize(dfmt, nfmt, width, height, pitch, levels, 13, neo, nullptr, level_sizes, padded_sizes); uint32_t mip_width = width; uint32_t mip_height = height; uint32_t mip_pitch = pitch; auto* dstptr = static_cast<uint8_t*>(dst); const auto* srcptr = static_cast<const uint8_t*>(src); for (uint32_t l = 0; l < levels; l++) { Tiler1d t; t.Init(dfmt, nfmt, mip_width, mip_height, mip_pitch, padded_sizes[l].width, padded_sizes[l].height, neo); Detile1d(&t, dstptr + level_sizes[l].offset, srcptr + level_sizes[l].offset, neo); if (mip_width > 1) { mip_width /= 2; } if (mip_height > 1) { mip_height /= 2; } if (mip_pitch > 1) { mip_pitch /= 2; } } } bool TileGetDepthSize(uint32_t width, uint32_t height, uint32_t pitch, uint32_t z_format, uint32_t stencil_format, bool htile, bool neo, TileSizeAlign* stencil_size, TileSizeAlign* htile_size, TileSizeAlign* depth_size) { struct DepthInfo { uint32_t width = 0; uint32_t height = 0; uint32_t z_format = 0; uint32_t stencil_format = 0; bool tile = false; bool neo = false; uint32_t pitch = 0; TileSizeAlign stencil = {}; TileSizeAlign htile = {}; TileSizeAlign depth = {}; }; static const DepthInfo infos_base[] = { {3840, 2160, 3, 0, true, false, 3840, {0, 0}, {655360, 2048}, {33423360, 32768}}, {3840, 2160, 3, 0, false, false, 3840, {0, 0}, {0, 0}, {33423360, 32768}}, {1920, 1080, 3, 0, true, false, 2048, {0, 0}, {196608, 2048}, {9437184, 32768}}, {1920, 1080, 3, 0, false, false, 2048, {0, 0}, {0, 0}, {9437184, 32768}}, {1280, 720, 3, 0, true, false, 1280, {0, 0}, {98304, 2048}, {3932160, 32768}}, {1280, 720, 3, 0, false, false, 1280, {0, 0}, {0, 0}, {3932160, 32768}}, {3840, 2160, 1, 0, true, false, 3840, {0, 0}, {655360, 2048}, {16711680, 32768}}, {3840, 2160, 1, 0, false, false, 3840, {0, 0}, {0, 0}, {16711680, 32768}}, {1920, 1080, 1, 0, true, false, 2048, {0, 0}, {196608, 2048}, {4718592, 32768}}, {1920, 1080, 1, 0, false, false, 2048, {0, 0}, {0, 0}, {4718592, 32768}}, {1280, 720, 1, 0, true, false, 1280, {0, 0}, {98304, 2048}, {1966080, 32768}}, {1280, 720, 1, 0, false, false, 1280, {0, 0}, {0, 0}, {1966080, 32768}}, {3840, 2160, 0, 1, true, false, 3840, {8355840, 32768}, {655360, 2048}, {0, 0}}, {3840, 2160, 0, 1, false, false, 3840, {8355840, 32768}, {0, 0}, {0, 0}}, {1920, 1080, 0, 1, true, false, 2048, {2359296, 32768}, {196608, 2048}, {0, 0}}, {1920, 1080, 0, 1, false, false, 2048, {2359296, 32768}, {0, 0}, {0, 0}}, {1280, 720, 0, 1, true, false, 1280, {983040, 32768}, {98304, 2048}, {0, 0}}, {1280, 720, 0, 1, false, false, 1280, {983040, 32768}, {0, 0}, {0, 0}}, {3840, 2160, 3, 1, true, false, 3840, {8355840, 32768}, {655360, 2048}, {33423360, 32768}}, {3840, 2160, 3, 1, false, false, 3840, {8355840, 32768}, {0, 0}, {33423360, 32768}}, {1920, 1080, 3, 1, true, false, 2048, {2359296, 32768}, {196608, 2048}, {9437184, 32768}}, {1920, 1080, 3, 1, false, false, 2048, {2359296, 32768}, {0, 0}, {9437184, 32768}}, {1280, 720, 3, 1, true, false, 1280, {983040, 32768}, {98304, 2048}, {3932160, 32768}}, {1280, 720, 3, 1, false, false, 1280, {983040, 32768}, {0, 0}, {3932160, 32768}}, {3840, 2160, 1, 1, true, false, 3840, {8355840, 32768}, {655360, 2048}, {16711680, 32768}}, {3840, 2160, 1, 1, false, false, 3840, {8355840, 32768}, {0, 0}, {16711680, 32768}}, {1920, 1080, 1, 1, true, false, 2048, {2359296, 32768}, {196608, 2048}, {4718592, 32768}}, {1920, 1080, 1, 1, false, false, 2048, {2359296, 32768}, {0, 0}, {4718592, 32768}}, {1280, 720, 1, 1, true, false, 1280, {983040, 32768}, {98304, 2048}, {1966080, 32768}}, {1280, 720, 1, 1, false, false, 1280, {983040, 32768}, {0, 0}, {1966080, 32768}}, }; static const DepthInfo infos_neo[] = { {3840, 2160, 3, 0, true, true, 3840, {0, 0}, {655360, 4096}, {33423360, 65536}}, {3840, 2160, 3, 0, false, true, 3840, {0, 0}, {0, 0}, {33423360, 65536}}, {1920, 1080, 3, 0, true, true, 1920, {0, 0}, {196608, 4096}, {8847360, 65536}}, {1920, 1080, 3, 0, false, true, 1920, {0, 0}, {0, 0}, {8847360, 65536}}, {1920, 1080, 3, 0, true, true, 2048, {0, 0}, {196608, 4096}, {9437184, 65536}}, {1920, 1080, 3, 0, false, true, 2048, {0, 0}, {0, 0}, {9437184, 65536}}, {1280, 720, 3, 0, true, true, 1280, {0, 0}, {131072, 4096}, {3932160, 65536}}, {1280, 720, 3, 0, false, true, 1280, {0, 0}, {0, 0}, {3932160, 65536}}, {3840, 2160, 1, 0, true, true, 3840, {0, 0}, {655360, 4096}, {16711680, 65536}}, {3840, 2160, 1, 0, false, true, 3840, {0, 0}, {0, 0}, {16711680, 65536}}, {1920, 1080, 1, 0, true, true, 2048, {0, 0}, {196608, 4096}, {4718592, 65536}}, {1920, 1080, 1, 0, false, true, 2048, {0, 0}, {0, 0}, {4718592, 65536}}, {1280, 720, 1, 0, true, true, 1280, {0, 0}, {131072, 4096}, {1966080, 65536}}, {1280, 720, 1, 0, false, true, 1280, {0, 0}, {0, 0}, {1966080, 65536}}, {3840, 2160, 0, 1, true, true, 3840, {8355840, 32768}, {655360, 4096}, {0, 0}}, {3840, 2160, 0, 1, false, true, 3840, {8355840, 32768}, {0, 0}, {0, 0}}, {1920, 1080, 0, 1, true, true, 2048, {2359296, 32768}, {196608, 4096}, {0, 0}}, {1920, 1080, 0, 1, false, true, 2048, {2359296, 32768}, {0, 0}, {0, 0}}, {1280, 720, 0, 1, true, true, 1280, {983040, 32768}, {131072, 4096}, {0, 0}}, {1280, 720, 0, 1, false, true, 1280, {983040, 32768}, {0, 0}, {0, 0}}, {3840, 2160, 3, 1, true, true, 3840, {8355840, 32768}, {655360, 4096}, {33423360, 65536}}, {3840, 2160, 3, 1, false, true, 3840, {8355840, 32768}, {0, 0}, {33423360, 65536}}, {1920, 1080, 3, 1, true, true, 2048, {2359296, 32768}, {196608, 4096}, {9437184, 65536}}, {1920, 1080, 3, 1, false, true, 2048, {2359296, 32768}, {0, 0}, {9437184, 65536}}, {1280, 720, 3, 1, true, true, 1280, {983040, 32768}, {131072, 4096}, {3932160, 65536}}, {1280, 720, 3, 1, false, true, 1280, {983040, 32768}, {0, 0}, {3932160, 65536}}, {3840, 2160, 1, 1, true, true, 3840, {8355840, 32768}, {655360, 4096}, {16711680, 65536}}, {3840, 2160, 1, 1, false, true, 3840, {8355840, 32768}, {0, 0}, {16711680, 65536}}, {1920, 1080, 1, 1, true, true, 2048, {2359296, 32768}, {196608, 4096}, {4718592, 65536}}, {1920, 1080, 1, 1, false, true, 2048, {2359296, 32768}, {0, 0}, {4718592, 65536}}, {1280, 720, 1, 1, true, true, 1280, {983040, 32768}, {131072, 4096}, {1966080, 65536}}, {1280, 720, 1, 1, false, true, 1280, {983040, 32768}, {0, 0}, {1966080, 65536}}, }; EXIT_IF(depth_size == nullptr); EXIT_IF(htile_size == nullptr); EXIT_IF(stencil_size == nullptr); if (neo) { for (const auto& i: infos_neo) { if (i.width == width && i.height == height && i.pitch == pitch && i.tile == htile && i.z_format == z_format && i.stencil_format == stencil_format) { *depth_size = i.depth; *htile_size = i.htile; *stencil_size = i.stencil; return true; } } } else { for (const auto& i: infos_base) { if (i.width == width && i.height == height && i.pitch == pitch && i.tile == htile && i.z_format == z_format && i.stencil_format == stencil_format) { *depth_size = i.depth; *htile_size = i.htile; *stencil_size = i.stencil; return true; } } } *depth_size = TileSizeAlign(); *htile_size = TileSizeAlign(); *stencil_size = TileSizeAlign(); return false; } void TileGetVideoOutSize(uint32_t width, uint32_t height, uint32_t pitch, bool tile, bool neo, TileSizeAlign* size) { EXIT_IF(size == nullptr); uint32_t ret_size = 0; uint32_t ret_align = 0; if (pitch == 3840) { if (width == 3840 && height == 2160 && tile && !neo) { ret_size = 33423360; ret_align = 32768; } if (width == 3840 && height == 2160 && tile && neo) { ret_size = 33423360; ret_align = 65536; } if (width == 3840 && height == 2160 && !tile && !neo) { ret_size = 33177600; ret_align = 256; } if (width == 3840 && height == 2160 && !tile && neo) { ret_size = 33177600; ret_align = 256; } } if (pitch == 1920) { if (width == 1920 && height == 1080 && tile && !neo) { ret_size = 8355840; ret_align = 32768; } if (width == 1920 && height == 1080 && tile && neo) { ret_size = 8847360; ret_align = 65536; } if (width == 1920 && height == 1080 && !tile && !neo) { ret_size = 8294400; ret_align = 256; } if (width == 1920 && height == 1080 && !tile && neo) { ret_size = 8294400; ret_align = 256; } } if (pitch == 1280) { if (width == 1280 && height == 720 && tile && !neo) { ret_size = 3932160; ret_align = 32768; } if (width == 1280 && height == 720 && tile && neo) { ret_size = 3932160; ret_align = 65536; } if (width == 1280 && height == 720 && !tile && !neo) { ret_size = 3686400; ret_align = 256; } if (width == 1280 && height == 720 && !tile && neo) { ret_size = 3686400; ret_align = 256; } } size->size = ret_size; size->align = ret_align; } struct TextureInfoPadded { uint32_t width = 0; uint32_t height = 0; }; struct TextureInfoSize { uint32_t total_size = 0; uint32_t total_align = 0; uint32_t mipmap_offset = 0; uint32_t mipmap_size = 0; }; struct TextureInfo { uint32_t dfmt = 0; uint32_t nfmt = 0; uint32_t width = 0; uint32_t height = 0; uint32_t pitch = 0; uint32_t levels = 0; uint32_t tile = 0; bool neo = false; TextureInfoSize size[16]; TextureInfoPadded padded[16]; }; #include "Tables/TileTextureInfo_10_10_0.inc" #include "Tables/TileTextureInfo_13_10_0.inc" #include "Tables/TileTextureInfo_13_10_9.inc" #include "Tables/TileTextureInfo_13_35_0.inc" #include "Tables/TileTextureInfo_13_36_0.inc" #include "Tables/TileTextureInfo_13_37_0.inc" #include "Tables/TileTextureInfo_13_37_9.inc" #include "Tables/TileTextureInfo_14_10_0.inc" #include "Tables/TileTextureInfo_2_4_7.inc" #include "Tables/TileTextureInfo_8_10_0.inc" #include "Tables/TileTextureInfo_8_10_9.inc" #include "Tables/TileTextureInfo_8_1_0.inc" static const TextureInfo* g_info_map_10_10_0[16][16][16][2] = {}; static const TextureInfo* g_info_map_13_10_0[16][16][16][2] = {}; static const TextureInfo* g_info_map_13_10_9[16][16][16][2] = {}; static const TextureInfo* g_info_map_13_35_0[16][16][16][2] = {}; static const TextureInfo* g_info_map_13_36_0[16][16][16][2] = {}; static const TextureInfo* g_info_map_13_37_0[16][16][16][2] = {}; static const TextureInfo* g_info_map_13_37_9[16][16][16][2] = {}; static const TextureInfo* g_info_map_14_10_0[16][16][16][2] = {}; static const TextureInfo* g_info_map_2_4_7[16][16][16][2] = {}; static const TextureInfo* g_info_map_8_1_0[16][16][16][2] = {}; static const TextureInfo* g_info_map_8_10_0[16][16][16][2] = {}; static const TextureInfo* g_info_map_8_10_9[16][16][16][2] = {}; template <class Map> static void init_map(Map& map, const TextureInfo* info, int num) { for (int w = 0; w < 16; w++) { for (int h = 0; h < 16; h++) { for (int p = 0; p < 16; p++) { for (int n = 0; n < 2; n++) { map[w][h][p][n] = nullptr; } } } } for (int index = 0; index < num; index++) { const auto& i = info[index]; if (!(i.width == 0 && i.height == 0 && i.pitch == 0)) { EXIT_IF(!(IsPowerOfTwo(i.width) && IsPowerOfTwo(i.height) && IsPowerOfTwo(i.pitch))); auto w = IntLog2(i.width); auto h = IntLog2(i.height); auto p = IntLog2(i.pitch); auto n = i.neo ? 1 : 0; EXIT_IF(w > 16 || h > 16 || p > 16 || n > 2); EXIT_IF(map[w][h][p][n] != nullptr); map[w][h][p][n] = &i; } } } template <class Map> static const TextureInfo* check_map(Map& map, uint32_t width, uint32_t height, uint32_t pitch, bool neo) { // if (IsPowerOfTwo(width) && IsPowerOfTwo(height) && IsPowerOfTwo(pitch)) { auto w = IntLog2(width); auto h = IntLog2(height); auto p = IntLog2(pitch); auto n = neo ? 1 : 0; return map[w][h][p][n]; } // return nullptr; } static void init_maps() { init_map(g_info_map_10_10_0, infos_10_10_0_pow2, std::size(infos_10_10_0_pow2)); init_map(g_info_map_13_10_0, infos_13_10_0_pow2, std::size(infos_13_10_0_pow2)); init_map(g_info_map_13_10_9, infos_13_10_9_pow2, std::size(infos_13_10_9_pow2)); init_map(g_info_map_13_35_0, infos_13_35_0_pow2, std::size(infos_13_35_0_pow2)); init_map(g_info_map_13_36_0, infos_13_36_0_pow2, std::size(infos_13_36_0_pow2)); init_map(g_info_map_13_37_0, infos_13_37_0_pow2, std::size(infos_13_37_0_pow2)); init_map(g_info_map_13_37_9, infos_13_37_9_pow2, std::size(infos_13_37_9_pow2)); init_map(g_info_map_14_10_0, infos_14_10_0_pow2, std::size(infos_14_10_0_pow2)); init_map(g_info_map_2_4_7, infos_2_4_7_pow2, std::size(infos_2_4_7_pow2)); init_map(g_info_map_8_1_0, infos_8_1_0_pow2, std::size(infos_8_1_0_pow2)); init_map(g_info_map_8_10_0, infos_8_10_0_pow2, std::size(infos_8_10_0_pow2)); init_map(g_info_map_8_10_9, infos_8_10_9_pow2, std::size(infos_8_10_9_pow2)); } #define KYTY_TEXTURE_CHECK(n) \ if (pow2) \ { \ if (const auto* i = check_map(g_info_map_##n, width, height, pitch, neo); i != nullptr) \ { \ *info = i; \ *num = 1; \ } else \ { \ *info = nullptr; \ *num = 0; \ } \ } else \ { \ *info = infos_##n; \ *num = std::size(infos_##n); \ } // NOLINTNEXTLINE(readability-function-cognitive-complexity) static void FindTextureInfo(uint32_t dfmt, uint32_t nfmt, uint32_t width, uint32_t height, uint32_t pitch, uint32_t tile, bool neo, const TextureInfo** info, int* num, bool pow2) { EXIT_IF(info == nullptr); EXIT_IF(num == nullptr); switch (tile) { case 8: if (dfmt == 1 && nfmt == 0) { KYTY_TEXTURE_CHECK(8_1_0); } else if (dfmt == 10 && nfmt == 0) { KYTY_TEXTURE_CHECK(8_10_0); } else if (dfmt == 10 && nfmt == 9) { KYTY_TEXTURE_CHECK(8_10_9); } break; case 13: if (dfmt == 10 && nfmt == 0) { KYTY_TEXTURE_CHECK(13_10_0); } else if (dfmt == 10 && nfmt == 9) { KYTY_TEXTURE_CHECK(13_10_9); } else if (dfmt == 35 && nfmt == 0) { KYTY_TEXTURE_CHECK(13_35_0); } else if (dfmt == 36 && nfmt == 0) { KYTY_TEXTURE_CHECK(13_36_0); } else if (dfmt == 37 && nfmt == 0) { KYTY_TEXTURE_CHECK(13_37_0); } else if (dfmt == 37 && nfmt == 9) { KYTY_TEXTURE_CHECK(13_37_9); } break; case 14: if (dfmt == 10 && nfmt == 0) { KYTY_TEXTURE_CHECK(14_10_0); } break; case 10: if (dfmt == 10 && nfmt == 0) { KYTY_TEXTURE_CHECK(10_10_0); } break; case 2: if (dfmt == 4 && nfmt == 7) { KYTY_TEXTURE_CHECK(2_4_7); } break; default: *info = nullptr; *num = 0; } } // NOLINTNEXTLINE(readability-function-cognitive-complexity) void TileGetTextureSize(uint32_t dfmt, uint32_t nfmt, uint32_t width, uint32_t height, uint32_t pitch, uint32_t levels, uint32_t tile, bool neo, TileSizeAlign* total_size, TileSizeOffset* level_sizes, TilePaddedSize* padded_size) { KYTY_PROFILER_FUNCTION(); const TextureInfo* infos = nullptr; int num = 0; bool pow2 = (IsPowerOfTwo(width) && IsPowerOfTwo(height) && IsPowerOfTwo(pitch)); FindTextureInfo(dfmt, nfmt, width, height, pitch, tile, neo, &infos, &num, pow2); EXIT_NOT_IMPLEMENTED(tile != 31 && tile != 8 && infos == nullptr); EXIT_IF(levels == 0 || levels > 16); for (int index = 0; index < num; index++) { const auto& i = infos[index]; if (i.dfmt == dfmt && i.nfmt == nfmt && i.width == width && i.pitch == pitch && i.height == height && i.levels >= levels && i.tile == tile && i.neo == neo) { if (total_size != nullptr) { total_size->size = i.size[levels - 1].total_size; total_size->align = i.size[levels - 1].total_align; } if (level_sizes != nullptr) { if (levels == 1) { level_sizes[0].size = i.size[0].total_size; level_sizes[0].offset = 0; } else { for (uint32_t l = 0; l < levels; l++) { level_sizes[l].size = i.size[l].mipmap_size; level_sizes[l].offset = i.size[l].mipmap_offset; } } } if (padded_size != nullptr) { for (uint32_t l = 0; l < levels; l++) { padded_size[l].width = i.padded[l].width; padded_size[l].height = i.padded[l].height; } } return; } } if ((tile == 8 || tile == 31) && levels == 1) { uint32_t size = 0; if ((dfmt == 10 && nfmt == 9) || (dfmt == 10 && nfmt == 0)) { size = pitch * height * 4; } else if ((dfmt == 3 && nfmt == 0)) { size = pitch * height * 2; } else if ((dfmt == 1 && nfmt == 0)) { size = pitch * height; } if (total_size != nullptr) { total_size->size = size; total_size->align = 256; } if (level_sizes != nullptr) { level_sizes[0].size = size; level_sizes[0].offset = 0; } } if (total_size != nullptr && total_size->size == 0) { Core::StringList list; list.Add(String::FromPrintf("dfmt = %u", dfmt)); list.Add(String::FromPrintf("nfmt = %u", nfmt)); list.Add(String::FromPrintf("width = %u", width)); list.Add(String::FromPrintf("height = %u", height)); list.Add(String::FromPrintf("pitch = %u", pitch)); list.Add(String::FromPrintf("levels = %u", levels)); list.Add(String::FromPrintf("tile = %u", tile)); list.Add(String::FromPrintf("neo = %s", neo ? "true" : "false")); EXIT("unknown format:\n%s\n", list.Concat(U'\n').C_Str()); } } } // namespace Kyty::Libs::Graphics #endif // KYTY_EMU_ENABLED
32.823762
140
0.569136
InoriRus
67553c5056626f21c0e8ecae013cbdbebcaa9581
8,999
cpp
C++
thread_pool.cpp
sakky016/ThreadPool
f8c3410c9fa3a57a08eaf906ff2011d2af79488c
[ "Apache-2.0" ]
1
2019-03-19T06:20:26.000Z
2019-03-19T06:20:26.000Z
thread_pool.cpp
sakky016/ThreadPool
f8c3410c9fa3a57a08eaf906ff2011d2af79488c
[ "Apache-2.0" ]
null
null
null
thread_pool.cpp
sakky016/ThreadPool
f8c3410c9fa3a57a08eaf906ff2011d2af79488c
[ "Apache-2.0" ]
null
null
null
#include "thread_pool.h" #include "job.h" #include <Windows.h> //****************************************************************************************** // @name : staticEntryPoint // // @description : This is the static thread entry point. This is used as a wrapper // to call the ThreadPool member function entryPoint(). // // @returns : Null //****************************************************************************************** void * ThreadPool::staticEntryPoint(void * threadPoolObj) { ((ThreadPool *)threadPoolObj)->entryPoint(); return NULL; } //****************************************************************************************** // @name : entryPoint // // @description : This is the thread entry point. This is responsible for // execution of the tasks getting assigned to the work queue // of ThreadPool. It waits for job to get assigned to // m_readyJobPool. On receiving it, moves into from IDLE to // RUNNING state. Executes the function pointer registred for // this task. It is to be noted that the function that is // to be executed using this thread of execution should be // independent of each other (so as not to introduce any // deadlock condition. // // // @returns : Nothing //****************************************************************************************** void ThreadPool::entryPoint() { thread::id threadId = std::this_thread::get_id(); // Thread executes continuosly while (1) { // This thread will wait till we have a job // ready for execution. long long idleStart = getCurrentTimestampInMilliseconds(); cout << "Thread " << threadId << " waiting...\n"; m_threadStates[threadId] = THREAD_STATE_IDLE; unique_lock<std::mutex> lck(m_mtx); m_conditionVar.wait(lck, [&]() { return (m_readyJobPool.size() > 0); }); // Thread wakes up, do the job of the thread. long long idleEnd = getCurrentTimestampInMilliseconds(); Job *job = m_readyJobPool.front(); printf("Thread #%u started executing Job [ %lu ].\n", threadId, job->getJobId()); totalJobTime m_threadStates[threadId] = THREAD_STATE_RUNNING; long long executionStart = getCurrentTimestampInMilliseconds(); if (!m_bExecutionStarted) { m_bExecutionStarted = true; m_tsExecutionStart = executionStart; } job->executeJob(); long long executionEnd = getCurrentTimestampInMilliseconds(); m_threadDetails[threadId].totalJobTime += executionEnd - executionStart; m_threadDetails[threadId].jobsCompleted++; m_threadDetails[threadId].idleTime += (idleEnd - idleStart); m_readyJobPool.pop_front(); } // End of while (1) } //****************************************************************************************** // @name : ThreadPool // // @description : Constructor // // @returns : Nothing //****************************************************************************************** ThreadPool::ThreadPool(int numThreads) { printf("\nCreating Thread Pool with %d threads\n", numThreads); m_numThreads = numThreads; m_totalJobsInflow = 0; m_tsExecutionStart = getCurrentTimestampInMilliseconds(); m_bExecutionStarted = false; } ThreadPool::~ThreadPool() { } //****************************************************************************************** // @name : addToReadyQueue // // @param job : Job that needs to be added. // // @description : Adds the specified job to the ready queue of the ThreadPool. // Jobs get added to the queue via this API continuously from // the job creater into the pending jobs list. // // @returns : Nothing //******************************************************************************************** bool ThreadPool::addToReadyQueue(Job* job) { m_mtx.lock(); m_readyJobPool.push_back(job); m_totalJobsInflow++; // Notify to all the threads that an event is waiting // to be processed. m_conditionVar.notify_all(); m_mtx.unlock(); return true; } //****************************************************************************************** // @name : startThreads // // @description : Creates number of threads as specified in the constructor. // The threads are created and they start in IDLE mode waiting // for jobs to arrive in the ready queue. // // @returns : 0 on SUCCESS //******************************************************************************************** int ThreadPool::startThreads() { thread* th = nullptr; // Spawn threads long long threadCreationStartTime = getCurrentTimestampInMilliseconds(); for (int i = 0; i < getNumThreads(); i++) { th = new thread(ThreadPool::staticEntryPoint, this); thread::id threadId = th->get_id(); printf("Spawned thread #%u\n", threadId); // Initialize thread details m_threadData[threadId] = th; m_threadDetails[threadId].jobsCompleted = 0; m_threadDetails[threadId].startTime = threadCreationStartTime; m_threadDetails[threadId].idleTime = 0; m_threadDetails[threadId].totalJobTime = 0; } long long threadCreationEndTime = getCurrentTimestampInMilliseconds(); printf("Time taken to spawn %d threads: %lld ms.\n", getNumThreads(), (threadCreationEndTime - threadCreationStartTime)); // Wait for joining for (auto it = m_threadData.begin(); it != m_threadData.end(); it++) { thread *th = it->second; th->join(); } return 0; } //****************************************************************************************** // @name : displayStats // // @description : Displays statistics for the Thread Pool. // // @returns : Nothing //******************************************************************************************** void ThreadPool::displayStats() { printf("+---------------------------------------------------------------------------+\n"); printf("| Job completion statistics (using ThreadPool) |\n"); printf("+---------------------------------------------------------------------------+\n"); // Global details long long totalTimeElapsed = getCurrentTimestampInMilliseconds() - m_tsExecutionStart; double globalThroughput = 0; if (m_totalJobsInflow != 0) { globalThroughput = ((double)m_totalJobsInflow) / totalTimeElapsed; } printf(">> Global details:\n\n"); printf("Threads used : %d\n", m_numThreads); printf("Total jobs completed : %llu\n", m_totalJobsInflow); printf("Total time elapsed : %lld ms\n", totalTimeElapsed); printf("Global Throughput : %lf per ms.\n", globalThroughput); printf("+---------------------------------------------------------------------------+\n"); printf(">> Thread level details:\n\n"); for (auto it = m_threadDetails.begin(); it != m_threadDetails.end(); it++) { // Calculations threadDetails_t threadDetails = it->second; long long elapsedTime = getCurrentTimestampInMilliseconds() - threadDetails.startTime; double throughput = 0; if (threadDetails.jobsCompleted != 0) { throughput = ((double)threadDetails.jobsCompleted) / (elapsedTime - threadDetails.idleTime); } double avgTimeRequiredByJob = 0; if (threadDetails.jobsCompleted != 0) { avgTimeRequiredByJob = ((double)(threadDetails.totalJobTime)) / threadDetails.jobsCompleted; } // Thread level details printf("Thread ID : TID_%u\n", it->first); printf("Jobs Completed : %llu\n", threadDetails.jobsCompleted); printf("Elapsed time : %lld ms.\n", elapsedTime); printf("Idle time : %lld ms.\n", threadDetails.jobsCompleted ? threadDetails.idleTime: elapsedTime); printf("Running time : %lld ms.\n", threadDetails.totalJobTime); printf("Avg time requred by job : %lf ms.\n", avgTimeRequiredByJob), printf("Throughput : %lf per ms.\n", throughput); printf("\n"); } printf("+---------------------------------------------------------------------------+\n"); }
40.35426
125
0.495277
sakky016
67596fbd2bdb4ad39e776ab7575d298f5a97f3fa
552
cpp
C++
ARRAY/subarray_with_given_Sum.cpp
geeky01adarsh/DSA-Self-Paced-Course
e13902f47df0cb10b90e26d285aa97a9c6c03d97
[ "MIT" ]
null
null
null
ARRAY/subarray_with_given_Sum.cpp
geeky01adarsh/DSA-Self-Paced-Course
e13902f47df0cb10b90e26d285aa97a9c6c03d97
[ "MIT" ]
null
null
null
ARRAY/subarray_with_given_Sum.cpp
geeky01adarsh/DSA-Self-Paced-Course
e13902f47df0cb10b90e26d285aa97a9c6c03d97
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main() { int n, x; cin >> n >> x; int arr[n]; for (int i = 0; i < n; i++) cin >> arr[i]; int k = 0, sum = 0; for (int i = 0; i < n; i++) { sum += arr[i]; if (sum == x) { cout << k << " " << i << endl; return 0; } while (sum > x) { sum -= arr[k++]; } } if (sum == x) { cout << k << " " << n - 1 << endl; return 0; } cout << -1 << endl; }
17.25
42
0.315217
geeky01adarsh
675d9aafab7fc5cd4f9f01340a86760cbf122b54
10,717
cpp
C++
LabProject07/Player.cpp
GameForPeople/KPU_3DGP_DirectX12
f2a8320d9b796a531aebc40d23b660f889e86033
[ "Apache-2.0" ]
null
null
null
LabProject07/Player.cpp
GameForPeople/KPU_3DGP_DirectX12
f2a8320d9b796a531aebc40d23b660f889e86033
[ "Apache-2.0" ]
null
null
null
LabProject07/Player.cpp
GameForPeople/KPU_3DGP_DirectX12
f2a8320d9b796a531aebc40d23b660f889e86033
[ "Apache-2.0" ]
null
null
null
//----------------------------------------------------------------------------- // File: CPlayer.cpp //----------------------------------------------------------------------------- #include "stdafx.h" #include "Player.h" #include "Shader.h" /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // CPlayer CPlayer::CPlayer() { m_pCamera = NULL; m_xmf3Position = XMFLOAT3(0.0f, 0.0f, 0.0f); m_xmf3Right = XMFLOAT3(1.0f, 0.0f, 0.0f); m_xmf3Up = XMFLOAT3(0.0f, 1.0f, 0.0f); m_xmf3Look = XMFLOAT3(0.0f, 0.0f, 1.0f); m_xmf3Velocity = XMFLOAT3(0.0f, 0.0f, 0.0f); m_xmf3Gravity = XMFLOAT3(0.0f, 0.0f, 0.0f); m_fMaxVelocityXZ = 0.0f; m_fMaxVelocityY = 0.0f; m_fFriction = 0.0f; m_fPitch = 0.0f; m_fRoll = 0.0f; m_fYaw = 0.0f; m_pPlayerUpdatedContext = NULL; m_pCameraUpdatedContext = NULL; } CPlayer::~CPlayer() { ReleaseShaderVariables(); if (m_pCamera) delete m_pCamera; } void CPlayer::CreateShaderVariables(ID3D12Device *pd3dDevice, ID3D12GraphicsCommandList *pd3dCommandList) { if (m_pCamera) m_pCamera->CreateShaderVariables(pd3dDevice, pd3dCommandList); } void CPlayer::UpdateShaderVariables(ID3D12GraphicsCommandList *pd3dCommandList) { if (m_pCamera) m_pCamera->UpdateShaderVariables(pd3dCommandList); } void CPlayer::ReleaseShaderVariables() { if (m_pCamera) m_pCamera->ReleaseShaderVariables(); } void CPlayer::Move(DWORD dwDirection, float fDistance, bool bUpdateVelocity) { if (dwDirection) { XMFLOAT3 xmf3Shift = XMFLOAT3(0, 0, 0); if (dwDirection & DIR_FORWARD) xmf3Shift = Vector3::Add(xmf3Shift, m_xmf3Look, fDistance); if (dwDirection & DIR_BACKWARD) xmf3Shift = Vector3::Add(xmf3Shift, m_xmf3Look, -fDistance); if (dwDirection & DIR_RIGHT) xmf3Shift = Vector3::Add(xmf3Shift, m_xmf3Right, fDistance); if (dwDirection & DIR_LEFT) xmf3Shift = Vector3::Add(xmf3Shift, m_xmf3Right, -fDistance); if (dwDirection & DIR_UP) xmf3Shift = Vector3::Add(xmf3Shift, m_xmf3Up, fDistance); if (dwDirection & DIR_DOWN) xmf3Shift = Vector3::Add(xmf3Shift, m_xmf3Up, -fDistance); Move(xmf3Shift, bUpdateVelocity); } } void CPlayer::Move(const XMFLOAT3& xmf3Shift, bool bUpdateVelocity) { if (bUpdateVelocity) { m_xmf3Velocity = Vector3::Add(m_xmf3Velocity, xmf3Shift); } else { m_xmf3Position = Vector3::Add(m_xmf3Position, xmf3Shift); m_pCamera->Move(xmf3Shift); } } void CPlayer::Rotate(float x, float y, float z) { DWORD nCurrentCameraMode = m_pCamera->GetMode(); if ((nCurrentCameraMode == FIRST_PERSON_CAMERA) || (nCurrentCameraMode == THIRD_PERSON_CAMERA)) { if (x != 0.0f) { m_fPitch += x; if (m_fPitch > +89.0f) { x -= (m_fPitch - 89.0f); m_fPitch = +89.0f; } if (m_fPitch < -89.0f) { x -= (m_fPitch + 89.0f); m_fPitch = -89.0f; } } if (y != 0.0f) { m_fYaw += y; if (m_fYaw > 360.0f) m_fYaw -= 360.0f; if (m_fYaw < 0.0f) m_fYaw += 360.0f; } if (z != 0.0f) { m_fRoll += z; if (m_fRoll > +20.0f) { z -= (m_fRoll - 20.0f); m_fRoll = +20.0f; } if (m_fRoll < -20.0f) { z -= (m_fRoll + 20.0f); m_fRoll = -20.0f; } } m_pCamera->Rotate(x, y, z); if (y != 0.0f) { XMMATRIX xmmtxRotate = XMMatrixRotationAxis(XMLoadFloat3(&m_xmf3Up), XMConvertToRadians(y)); m_xmf3Look = Vector3::TransformNormal(m_xmf3Look, xmmtxRotate); m_xmf3Right = Vector3::TransformNormal(m_xmf3Right, xmmtxRotate); } } else if (nCurrentCameraMode == SPACESHIP_CAMERA) { m_pCamera->Rotate(x, y, z); if (x != 0.0f) { XMMATRIX xmmtxRotate = XMMatrixRotationAxis(XMLoadFloat3(&m_xmf3Right), XMConvertToRadians(x)); m_xmf3Look = Vector3::TransformNormal(m_xmf3Look, xmmtxRotate); m_xmf3Up = Vector3::TransformNormal(m_xmf3Up, xmmtxRotate); } if (y != 0.0f) { XMMATRIX xmmtxRotate = XMMatrixRotationAxis(XMLoadFloat3(&m_xmf3Up), XMConvertToRadians(y)); m_xmf3Look = Vector3::TransformNormal(m_xmf3Look, xmmtxRotate); m_xmf3Right = Vector3::TransformNormal(m_xmf3Right, xmmtxRotate); } if (z != 0.0f) { XMMATRIX xmmtxRotate = XMMatrixRotationAxis(XMLoadFloat3(&m_xmf3Look), XMConvertToRadians(z)); m_xmf3Up = Vector3::TransformNormal(m_xmf3Up, xmmtxRotate); m_xmf3Right = Vector3::TransformNormal(m_xmf3Right, xmmtxRotate); } } m_xmf3Look = Vector3::Normalize(m_xmf3Look); m_xmf3Right = Vector3::CrossProduct(m_xmf3Up, m_xmf3Look, true); m_xmf3Up = Vector3::CrossProduct(m_xmf3Look, m_xmf3Right, true); } void CPlayer::Update(float fTimeElapsed) { m_xmf3Velocity = Vector3::Add(m_xmf3Velocity, Vector3::ScalarProduct(m_xmf3Gravity, fTimeElapsed, false)); float fLength = sqrtf(m_xmf3Velocity.x * m_xmf3Velocity.x + m_xmf3Velocity.z * m_xmf3Velocity.z); float fMaxVelocityXZ = m_fMaxVelocityXZ * fTimeElapsed; if (fLength > m_fMaxVelocityXZ) { m_xmf3Velocity.x *= (fMaxVelocityXZ / fLength); m_xmf3Velocity.z *= (fMaxVelocityXZ / fLength); } float fMaxVelocityY = m_fMaxVelocityY * fTimeElapsed; fLength = sqrtf(m_xmf3Velocity.y * m_xmf3Velocity.y); if (fLength > m_fMaxVelocityY) m_xmf3Velocity.y *= (fMaxVelocityY / fLength); Move(m_xmf3Velocity, false); if (m_pPlayerUpdatedContext) OnPlayerUpdateCallback(fTimeElapsed); DWORD nCurrentCameraMode = m_pCamera->GetMode(); if (nCurrentCameraMode == THIRD_PERSON_CAMERA) m_pCamera->Update(m_xmf3Position, fTimeElapsed); if (m_pCameraUpdatedContext) OnCameraUpdateCallback(fTimeElapsed); if (nCurrentCameraMode == THIRD_PERSON_CAMERA) m_pCamera->SetLookAt(m_xmf3Position); m_pCamera->RegenerateViewMatrix(); fLength = Vector3::Length(m_xmf3Velocity); float fDeceleration = (m_fFriction * fTimeElapsed); if (fDeceleration > fLength) fDeceleration = fLength; m_xmf3Velocity = Vector3::Add(m_xmf3Velocity, Vector3::ScalarProduct(m_xmf3Velocity, -fDeceleration, true)); } CCamera *CPlayer::OnChangeCamera(DWORD nNewCameraMode, DWORD nCurrentCameraMode) { CCamera *pNewCamera = NULL; switch (nNewCameraMode) { case FIRST_PERSON_CAMERA: pNewCamera = new CFirstPersonCamera(m_pCamera); break; case THIRD_PERSON_CAMERA: pNewCamera = new CThirdPersonCamera(m_pCamera); break; case SPACESHIP_CAMERA: pNewCamera = new CSpaceShipCamera(m_pCamera); break; } if (nCurrentCameraMode == SPACESHIP_CAMERA) { m_xmf3Right = Vector3::Normalize(XMFLOAT3(m_xmf3Right.x, 0.0f, m_xmf3Right.z)); m_xmf3Up = Vector3::Normalize(XMFLOAT3(0.0f, 1.0f, 0.0f)); m_xmf3Look = Vector3::Normalize(XMFLOAT3(m_xmf3Look.x, 0.0f, m_xmf3Look.z)); m_fPitch = 0.0f; m_fRoll = 0.0f; m_fYaw = Vector3::Angle(XMFLOAT3(0.0f, 0.0f, 1.0f), m_xmf3Look); if (m_xmf3Look.x < 0.0f) m_fYaw = -m_fYaw; } else if ((nNewCameraMode == SPACESHIP_CAMERA) && m_pCamera) { m_xmf3Right = m_pCamera->GetRightVector(); m_xmf3Up = m_pCamera->GetUpVector(); m_xmf3Look = m_pCamera->GetLookVector(); } if (pNewCamera) { pNewCamera->SetMode(nNewCameraMode); pNewCamera->SetPlayer(this); } if (m_pCamera) delete m_pCamera; return(pNewCamera); } void CPlayer::OnPrepareRender() { m_xmf4x4World._11 = m_xmf3Right.x; m_xmf4x4World._12 = m_xmf3Right.y; m_xmf4x4World._13 = m_xmf3Right.z; m_xmf4x4World._21 = m_xmf3Up.x; m_xmf4x4World._22 = m_xmf3Up.y; m_xmf4x4World._23 = m_xmf3Up.z; m_xmf4x4World._31 = m_xmf3Look.x; m_xmf4x4World._32 = m_xmf3Look.y; m_xmf4x4World._33 = m_xmf3Look.z; m_xmf4x4World._41 = m_xmf3Position.x; m_xmf4x4World._42 = m_xmf3Position.y; m_xmf4x4World._43 = m_xmf3Position.z; } void CPlayer::Render(ID3D12GraphicsCommandList *pd3dCommandList, CCamera *pCamera) { DWORD nCameraMode = (pCamera) ? pCamera->GetMode() : 0x00; if (nCameraMode == THIRD_PERSON_CAMERA) CGameObject::Render(pd3dCommandList, pCamera); } /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // CAirplanePlayer CAirplanePlayer::CAirplanePlayer(ID3D12Device *pd3dDevice, ID3D12GraphicsCommandList *pd3dCommandList, ID3D12RootSignature *pd3dGraphicsRootSignature) { CAirplaneMeshDiffused *pAirplaneMesh = new CAirplaneMeshDiffused(pd3dDevice, pd3dCommandList, 20.0f, 20.0f, 4.0f, XMFLOAT4(0.0f, 0.5f, 0.0f, 0.0f)); SetMesh(pAirplaneMesh); m_pCamera = ChangeCamera(SPACESHIP_CAMERA/*THIRD_PERSON_CAMERA*/, 0.0f); SetPosition(XMFLOAT3(0.0f, 0.0f, -50.0f)); CreateShaderVariables(pd3dDevice, pd3dCommandList); CPlayerShader *pShader = new CPlayerShader(); pShader->CreateShader(pd3dDevice, pd3dGraphicsRootSignature); pShader->CreateShaderVariables(pd3dDevice, pd3dCommandList); SetShader(pShader); } CAirplanePlayer::~CAirplanePlayer() { } void CAirplanePlayer::OnPrepareRender() { CPlayer::OnPrepareRender(); XMMATRIX mtxRotate = XMMatrixRotationRollPitchYaw(XMConvertToRadians(90.0f), 0.0f, 0.0f); m_xmf4x4World = Matrix4x4::Multiply(mtxRotate, m_xmf4x4World); } CCamera *CAirplanePlayer::ChangeCamera(DWORD nNewCameraMode, float fTimeElapsed) { DWORD nCurrentCameraMode = (m_pCamera) ? m_pCamera->GetMode() : 0x00; if (nCurrentCameraMode == nNewCameraMode) return(m_pCamera); switch (nNewCameraMode) { case FIRST_PERSON_CAMERA: SetFriction(200.0f); SetGravity(XMFLOAT3(0.0f, 0.0f, 0.0f)); SetMaxVelocityXZ(125.0f); SetMaxVelocityY(400.0f); m_pCamera = OnChangeCamera(FIRST_PERSON_CAMERA, nCurrentCameraMode); m_pCamera->SetTimeLag(0.0f); m_pCamera->SetOffset(XMFLOAT3(0.0f, 20.0f, 0.0f)); m_pCamera->GenerateProjectionMatrix(1.01f, 5000.0f, ASPECT_RATIO, 60.0f); m_pCamera->SetViewport(0, 0, FRAME_BUFFER_WIDTH, FRAME_BUFFER_HEIGHT, 0.0f, 1.0f); m_pCamera->SetScissorRect(0, 0, FRAME_BUFFER_WIDTH, FRAME_BUFFER_HEIGHT); break; case SPACESHIP_CAMERA: SetFriction(125.0f); SetGravity(XMFLOAT3(0.0f, 0.0f, 0.0f)); SetMaxVelocityXZ(400.0f); SetMaxVelocityY(400.0f); m_pCamera = OnChangeCamera(SPACESHIP_CAMERA, nCurrentCameraMode); m_pCamera->SetTimeLag(0.0f); m_pCamera->SetOffset(XMFLOAT3(0.0f, 0.0f, 0.0f)); m_pCamera->GenerateProjectionMatrix(1.01f, 5000.0f, ASPECT_RATIO, 60.0f); m_pCamera->SetViewport(0, 0, FRAME_BUFFER_WIDTH, FRAME_BUFFER_HEIGHT, 0.0f, 1.0f); m_pCamera->SetScissorRect(0, 0, FRAME_BUFFER_WIDTH, FRAME_BUFFER_HEIGHT); break; case THIRD_PERSON_CAMERA: SetFriction(250.0f); SetGravity(XMFLOAT3(0.0f, 0.0f, 0.0f)); SetMaxVelocityXZ(125.0f); SetMaxVelocityY(400.0f); m_pCamera = OnChangeCamera(THIRD_PERSON_CAMERA, nCurrentCameraMode); m_pCamera->SetTimeLag(0.25f); m_pCamera->SetOffset(XMFLOAT3(0.0f, 20.0f, -50.0f)); m_pCamera->GenerateProjectionMatrix(1.01f, 5000.0f, ASPECT_RATIO, 60.0f); m_pCamera->SetViewport(0, 0, FRAME_BUFFER_WIDTH, FRAME_BUFFER_HEIGHT, 0.0f, 1.0f); m_pCamera->SetScissorRect(0, 0, FRAME_BUFFER_WIDTH, FRAME_BUFFER_HEIGHT); break; default: break; } Update(fTimeElapsed); return(m_pCamera); }
34.130573
150
0.712979
GameForPeople
67694745465d727862e3e4932699eabb98dabe59
4,376
cpp
C++
BaseLib/StringTools.cpp
norihiro-w/ogs
ac990b1aa06a583dba3e32efa3009ef0c6f46ae4
[ "BSD-4-Clause" ]
null
null
null
BaseLib/StringTools.cpp
norihiro-w/ogs
ac990b1aa06a583dba3e32efa3009ef0c6f46ae4
[ "BSD-4-Clause" ]
25
2015-02-04T20:34:21.000Z
2018-12-10T20:19:57.000Z
BaseLib/StringTools.cpp
norihiro-w/ogs
ac990b1aa06a583dba3e32efa3009ef0c6f46ae4
[ "BSD-4-Clause" ]
null
null
null
/** * \file * \author Thomas Fischer * \date 2010-06-16 * \brief Implementation of string helper functions. * * \copyright * Copyright (c) 2012-2016, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * http://www.opengeosys.org/project/license * */ #include "StringTools.h" #include <algorithm> #include <cctype> #include <cstdarg> #include <cstdio> #include <iomanip> #include <logog/include/logog.hpp> #include <boost/algorithm/string/replace.hpp> namespace BaseLib { std::list<std::string> splitString(const std::string &str, char delim) { std::list<std::string> strList; std::stringstream ss(str); std::string item; while(getline(ss, item, delim)) strList.push_back(item); return strList; } std::string replaceString(const std::string &searchString, const std::string &replaceString, std::string stringToReplace) { boost::replace_all(stringToReplace, searchString, replaceString); return stringToReplace; } void trim(std::string &str, char ch) { std::string::size_type pos = str.find_last_not_of(ch); if(pos != std::string::npos) { str.erase(pos + 1); pos = str.find_first_not_of(ch); if(pos != std::string::npos) str.erase(0, pos); } else str.erase(str.begin(), str.end()); } void simplify(std::string &str) { trim (str); str.erase( std::unique(str.begin(), str.end(), [](char a, char b) { return a == ' ' && b == ' '; }), str.end() ); } std::string padLeft(std::string const& str, int maxlen, char ch) { std::stringstream ss(str); ss << std::right << std::setw(maxlen) << std::setfill(ch) << str; return ss.str(); } std::string const& tostring(std::string const& value) { return value; } std::string format(const char* format_str, ... ) { va_list args; va_start(args, format_str); // get the number of chars to write va_list args_tmp; va_copy(args_tmp, args); int char_length = std::vsnprintf(nullptr, 0, format_str, args_tmp); va_end(args_tmp); // allocate buffer and store formatted output there std::vector<char> buffer(char_length + 1); // note +1 for null terminator vsnprintf(buffer.data(), buffer.size(), format_str, args); va_end(args); return std::string(buffer.data()); } } // end namespace BaseLib #ifdef MSVC void correctScientificNotation(std::string filename, std::size_t precision) { std::ifstream stream; std::ofstream outputStream; stream.open(filename.c_str()); std::string tmpFilename = filename + ".tmp"; outputStream.open(tmpFilename.c_str()); if (!stream) { WARN("correctScientificNotation: fstream is not open."); return; } std::string line; // Iterate over lines in stream while (getline(stream, line)) { std::string word; std::istringstream iss(line); // Iterate over all words in line while (iss >> word) { // Search for e+0 std::size_t exponentPosition = word.find("e+0", precision); if (exponentPosition == std::string::npos) // If not found search for e-0 exponentPosition = word.find("e-0", precision); if (exponentPosition != std::string::npos) { std::size_t wordSize = word.size(); std::size_t exponentSize = wordSize - exponentPosition; if(exponentSize > 4) { // Erase the leading zero considering trailing characters int i = wordSize - 1; while (!isdigit(word[i])) --i; std::size_t erasePos = wordSize - 3 - (wordSize - 1 - i); std::string eraseString = word.substr(erasePos, 1); if (eraseString.find("0") != std::string::npos) word.erase(erasePos, 1); } } outputStream << word << " "; } outputStream << "\n"; } stream.close(); outputStream.close(); remove(filename.c_str()); rename(tmpFilename.c_str(), filename.c_str()); } #endif
27.012346
97
0.58021
norihiro-w
676d1993049f84d0cf9e4ef3d4a2a1ba6dc99650
1,659
cpp
C++
Medium/211_Design_Add_And_Search_Words_Data_Structure.cpp
ShehabMMohamed/LeetCodeCPP
684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780
[ "MIT" ]
1
2021-03-15T10:02:10.000Z
2021-03-15T10:02:10.000Z
Medium/211_Design_Add_And_Search_Words_Data_Structure.cpp
ShehabMMohamed/LeetCodeCPP
684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780
[ "MIT" ]
null
null
null
Medium/211_Design_Add_And_Search_Words_Data_Structure.cpp
ShehabMMohamed/LeetCodeCPP
684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780
[ "MIT" ]
null
null
null
class WordDictionary { private: struct TrieNode { TrieNode* children[26]; bool IsEnd; TrieNode() : IsEnd(false) { for(int i = 0; i < 26; i++) children[i] = nullptr; } }; TrieNode* root; public: /** Initialize your data structure here. */ WordDictionary() { root = new TrieNode(); } /** Adds a word into the data structure. */ void addWord(string word) { TrieNode* curr = root; for(int i = 0; i < word.length(); i++) { if(!curr->children[word[i]-'a']) curr->children[word[i]-'a'] = new TrieNode(); curr = curr->children[word[i]-'a']; } curr->IsEnd = true; } /** Returns if the word is in the data structure. A word could contain the dot character '.' to represent any one letter. */ bool DFS(TrieNode* curr, const string& word, int index) { if(index == word.length()) return curr->IsEnd; if(word[index] == '.') { for(int i = 0; i < 26; i++) if(curr->children[i] && DFS(curr->children[i], word, index+1)) return true; } else if(curr->children[word[index]-'a'] && DFS(curr->children[word[index]-'a'], word, index+1)) return true; return false; } bool search(string word) { TrieNode* curr = root; return DFS(curr, word, 0); } }; /** * Your WordDictionary object will be instantiated and called as such: * WordDictionary* obj = new WordDictionary(); * obj->addWord(word); * bool param_2 = obj->search(word); */
31.301887
128
0.522604
ShehabMMohamed
6775c63674c6685892670e6aba5e868bf2eb156d
13,313
cpp
C++
src/simu/environment.cpp
dubkois/ReusWorld
15ccf4dbde20d6b600b6e5dc706435d6dd4eb620
[ "MIT" ]
null
null
null
src/simu/environment.cpp
dubkois/ReusWorld
15ccf4dbde20d6b600b6e5dc706435d6dd4eb620
[ "MIT" ]
null
null
null
src/simu/environment.cpp
dubkois/ReusWorld
15ccf4dbde20d6b600b6e5dc706435d6dd4eb620
[ "MIT" ]
null
null
null
#include "environment.h" #include "tiniestphysicsengine.h" #include "../config/simuconfig.h" namespace simu { static constexpr int debugEnvCTRL = 0; static constexpr auto DURATION_FORMAT = "Format is [+|=]<years>"; using UL_EU = EnumUtils<UndergroundLayers>; // ============================================================================= Environment::Environment(void) : _physics(std::make_unique<physics::TinyPhysicsEngine>()) {} Environment::~Environment(void) {} void Environment::init (const Genome &genome) { _genomes = {genome}; updateInternals(); initInternal(); _noTopology = false; } void Environment::initFrom(const std::vector<Environment *> &these, bool noTopology, float totalWidth) { _noTopology = noTopology; // Prepare genomes container uint t = 0; for (const Environment *e: these) { assert(e->genomes().size() == 1); _genomes.push_back(e->genomes().front()); t = std::max(t, e->time().toTimestamp()); } // Prepare internal variables updateInternals(); initInternal(); if (totalWidth != -1) _totalWidth = totalWidth; _startTime = _currTime = _endTime = Time::fromTimestamp(t); // Copy contents (i.e. voxels) uint offset = 0; for (uint i=0; i<these.size(); i++) { const Environment &e = *these[i]; bool first = (i==0), last = (i+1==these.size()); uint stride = _genomes[i].voxels; const auto copyInto = [&offset, &stride, &first, &last] (const auto &src, auto &dst) { auto beg = src.begin(), end = src.end(); // Left-most voxel is shared, handle manually if (!first) beg = std::next(beg); // Right-most voxel is shared, handle manually if (!last) end = std::prev(end); // std::cout << "Copying [" << !first << ":" << src.size()-!last-1 // << "] into [" << offset+!first << ":" // << offset+std::distance(beg, end) << "]" << std::endl; std::copy(beg, end, std::begin(dst)+offset+!first); if (!first) dst[offset] += .5 * src.front(); if (!last) dst[offset+stride] = .5 * src.back(); }; if (!_noTopology) copyInto(e._topology, _topology); copyInto(e._temperature, _temperature); copyInto(e._hygrometry[SHALLOW], _hygrometry[SHALLOW]); copyInto(e._grazing, _grazing); offset += stride; } } void Environment::updateInternals(void) { _totalWidth = 0; _depth = 0; _minTemperature = std::numeric_limits<float>::max(); _maxTemperature = -std::numeric_limits<float>::max(); _voxels = 0; for (Genome &g: _genomes) { _totalWidth += g.width; _depth = std::max(_depth, g.depth); _minTemperature = std::min(_minTemperature, g.minT); _maxTemperature = std::max(_maxTemperature, g.maxT); _voxels += g.voxels; g.controller.prepare(); } // if (_genomes.size() > 1) // _voxels = _voxels + 1 - _genomes.size(); } void Environment::initInternal(void) { _topology.resize(_voxels+1, 0.f); _temperature.resize(_voxels+1, .5 * (_maxTemperature + _minTemperature)); _hygrometry[UndergroundLayers::SHALLOW].resize(_voxels+1, config::Simulation::baselineShallowWater()); _hygrometry[UndergroundLayers::DEEP].resize(_voxels+1, 1.f); _grazing.resize(_voxels+1, 0.f); _dice.reset(_genomes.front().rngSeed); /// TODO Really okay? _updatedTopology = false; _startTime = _currTime = _endTime = Time(); } void Environment::destroy (void) { _physics->reset(); } void Environment::stepStart(void) { #ifdef DEBUG_COLLISIONS for (auto &p: _physics->collisionsDebugData) p.second.clear(); #endif } void Environment::stepEnd (void) { cgpStep(); #if 0 #warning debugging physics _physics->debug(); #endif _currTime.next(); } void Environment::setDuration(DurationSetType type, uint years) { _startTime = _currTime; switch (type) { case APPEND: _endTime = _currTime + years; break; case SET: _endTime.set(years, 0, 0); break; default: utils::doThrow<std::invalid_argument>( "Invalid duration specifier '", type, "'."); } } void Environment::cgpStep (void) { using CGP = Genome::CGP; using I = genotype::cgp::Inputs; using Inputs = CGP::Inputs; Inputs inputs (Genome::config_t::activeInputs(), 0); using O = genotype::cgp::Outputs; using Outputs = CGP::Outputs; Outputs outputs (Genome::config_t::activeOutputs(), 0); const auto baselineWater = config::Simulation::baselineShallowWater(); _updatedTopology = !_noTopology && (_currTime.toTimestamp() % config::Simulation::updateTopologyEvery()) == 0; inputs[I::D] = sin(2 * M_PI * _currTime.timeOfYear()); const auto S = _startTime.toTimestamp(), E = _endTime.toTimestamp(); inputs[I::Y] = sin(2 * M_PI * (1. - (E - _currTime.toTimestamp()) / (E - S))); for (I i: {I::D, I::Y}) utils::iclip(-1., inputs[i], 1.); uint offset = 0; std::array<float, 4> junctions; junctions.fill(NAN); for (uint i=0; i<_genomes.size(); i++) { Genome &g = _genomes[i]; for (uint j=0; j<=g.voxels; j++) { uint j_ = j+offset; float &A = _topology[j_]; float &T = _temperature[j_]; float &H = _hygrometry[SHALLOW][j_]; float &G = _grazing[j_]; auto rangeT = g.maxT - g.minT; inputs[I::X] = 2 * float(j) / g.voxels - 1; inputs[I::T] = A / g.depth; inputs[I::H] = 2 * (T - g.minT) / rangeT - 1; inputs[I::W] = H / config::Simulation::baselineShallowWater() - 1; inputs[I::G] = G; for (I i: {I::X, I::T, I::H, I::W, I::G}) utils::iclip(-1., inputs[i], 1.); g.controller.evaluate(inputs, outputs); float A_ = .9 * outputs[O::T] * g.depth, T_ = .5 * (outputs[O::H] + 1) * rangeT + g.minT, H_ = (1 + outputs[O::W]) * baselineWater, G_ = std::fabs(outputs[O::G]); bool isRight = (i+1 < _genomes.size() && j == g.voxels); if (isRight) { junctions[0] = .5 * A_; junctions[1] = .5 * T_; junctions[2] = .5 * H_; junctions[3] = .5 * G_; } else { bool isLeft = (i > 0 && j == 0); if (isLeft) { A_ = .5 * A_ + junctions[0]; T_ = .5 * T_ + junctions[1]; H_ = .5 * H_ + junctions[2]; G_ = .5 * G_ + junctions[3]; } // Keep 10% of space if (_updatedTopology) updateVoxel(g, A, A_); updateVoxel(g, T, T_); updateVoxel(g, H, H_); updateVoxel(g, G, G_); } } offset += g.voxels; } if (debugEnvCTRL) showVoxelsContents(); } float Environment::heightAt(float x) const { if (!insideXRange(x)) return 0; return interpolate(_topology, x); } float Environment::temperatureAt(float x) const { if (!insideXRange(x)) return 0; return interpolate(_temperature, x); } float Environment::waterAt(const Point &p) const { if (!inside(p)) return 0; // No water outside world float h = heightAt(p.x); if (h < p.y) return 0; // No water above ground float d = (h - p.y) / (h + yextent()); assert(0 <= d && d <= 1); return interpolate(_hygrometry[SHALLOW], p.x) * (1.f - uint(d)) + interpolate(_hygrometry[DEEP], p.x) * d; } float Environment::lightAt(float) const { return config::Simulation::baselineLight(); } void Environment::updateVoxel (const Genome &g, float &voxel, float newValue) { voxel = g.inertia * voxel + (1.f - g.inertia) * newValue; } float Environment::interpolate(const Voxels &voxels, float x) const { float v = (x + xextent()) * float(_voxels) / width(); uint v0 = uint(v); float d = v - v0; assert(v0 <= voxels.size()); if (v0 == _voxels) return voxels[v0]; else return voxels[v0] * (1.f - d) + voxels[v0+1] * d; } const physics::UpperLayer::Items& Environment::canopy(const Plant *p) const { return _physics->canopy(p); } bool Environment::addCollisionData(Plant *p) { return _physics->addCollisionData(*this, p); } void Environment::updateCollisionData(Plant *p) { _physics->updateCollisions(p); } void Environment::updateCollisionDataFinal(Plant *p) { _physics->updateFinal(*this, p); } void Environment::removeCollisionData(Plant *p) { _physics->removeCollisionData(p); } physics::CollisionResult Environment::initialCollisionTest (const Plant *plant) const { return _physics->initialCollisionTest(plant); } physics::CollisionResult Environment::collisionTest (const Plant *plant, const Branch &self, const Branch &branch, const std::set<Organ*> &newOrgans) const { return _physics->collisionTest(plant, self, branch, newOrgans); } void Environment::disseminateGeneticMaterial(Organ *f) { _physics->addPistil(f); } void Environment::updateGeneticMaterial(Organ *f, const Point &oldPos) { _physics->updatePistil(f, oldPos); } void Environment::removeGeneticMaterial(Organ *f) { _physics->delPistil(f); } physics::Pistil Environment::collectGeneticMaterial(Organ *f) { auto itP = _physics->sporesInRange(f); if (std::distance(itP.first, itP.second) >= 1) return *dice()(itP.first, itP.second); else return physics::Pistil(); } void Environment::processNewObjects(void) { _physics->processNewObjects(); } // ============================================================================= // == Binary serialization void Environment::clone (const Environment &e, const std::map<const Plant *, Plant *> &plookup, const std::map<const Plant*, std::map<const Organ*, Organ*>> &olookups) { _genomes = e._genomes; _totalWidth = e._totalWidth; _depth = e._depth; _minTemperature = e._minTemperature; _maxTemperature = e._maxTemperature; _voxels = e._voxels; _dice = e._dice; _topology = e._topology; _temperature = e._temperature; _hygrometry = e._hygrometry; _grazing = e._grazing; _updatedTopology = false; _startTime = e._startTime; _currTime = e._currTime; _endTime = e._endTime; _physics->clone(*e._physics, plookup, olookups); } void Environment::save (nlohmann::json &j, const Environment &e) { nlohmann::json jd, jc; simu::save(jd, e._dice); if (e._genomes.size() > 1) { // Multigenomes save for (uint i=0; i<e._genomes.size(); i++) Genome::CGP::save(jc[i], e._genomes[i].controller); j = { e._genomes, jd, e._topology, e._temperature, e._hygrometry, e._grazing, e._startTime, e._currTime, e._endTime, jc }; uint totalWidth = 0; for (const Genome &g: e._genomes) totalWidth += g.width; if (totalWidth != e._totalWidth) j[j.size()] = e._totalWidth; } else { Genome::CGP::save(jc, e._genomes.front().controller); j = { e._genomes.front(), jd, e._topology, e._temperature, e._hygrometry, e._grazing, e._startTime, e._currTime, e._endTime, jc }; } } void Environment::postLoad(void) { _physics->postLoad(); } void Environment::load (const nlohmann::json &j, Environment &e) { float totalWidth = -1; uint i=0; if (j[0].is_array()) { // got multiple genomes to load e._genomes = j[i++].get<std::vector<Genome>>(); simu::load(j[i++], e._dice); e._topology = j[i++].get<Voxels>(); e._temperature = j[i++].get<Voxels>(); e._hygrometry = j[i++]; e._grazing = j[i++].get<Voxels>(); e._startTime = j[i++]; e._currTime = j[i++]; e._endTime = j[i++]; nlohmann::json jc = j[i++]; for (uint j=0; j<e._genomes.size(); j++) Genome::CGP::load(jc[j], e._genomes[j].controller); if (j.size() >= i) // got a total width -> use it totalWidth = j[i++]; } else { e._genomes.push_back(j[i++]); simu::load(j[i++], e._dice); e._topology = j[i++].get<Voxels>(); e._temperature = j[i++].get<Voxels>(); e._hygrometry = j[i++]; e._grazing = j[i++].get<Voxels>(); e._startTime = j[i++]; e._currTime = j[i++]; e._endTime = j[i++]; Genome::CGP::load(j[i++], e._genomes.front().controller); } e.updateInternals(); e._updatedTopology = false; if (totalWidth != -1) e._totalWidth = totalWidth; if (debugEnvCTRL) e.showVoxelsContents(); } void assertEqual (const Environment &lhs, const Environment &rhs, bool deepcopy) { using utils::assertEqual; assertEqual(lhs._genomes, rhs._genomes, deepcopy); assertEqual(lhs._dice, rhs._dice, deepcopy); assertEqual(lhs._topology, rhs._topology, deepcopy); assertEqual(lhs._temperature, rhs._temperature, deepcopy); assertEqual(lhs._hygrometry, rhs._hygrometry, deepcopy); assertEqual(lhs._grazing, rhs._grazing, deepcopy); assertEqual(*lhs._physics, *rhs._physics, deepcopy); } void Environment::showVoxelsContents(void) const { std::cerr << "\tTopology:"; for (uint i=0; i<=_voxels; i++) std::cerr << " " << _topology[i]; std::cerr << "\n\tTemperature:"; for (uint i=0; i<=_voxels; i++) std::cerr << " " << _temperature[i]; std::cerr << "\n\tHygrometry:"; for (uint i=0; i<=_voxels; i++) std::cerr << " " << _hygrometry[SHALLOW][i]; std::cerr << "\n\tGrazing:"; for (uint i=0; i<=_voxels; i++) std::cerr << " " << _grazing[i]; std::cerr << std::endl; } } // end of namespace simu
27.677755
93
0.605348
dubkois
6777266e243f05122f09c8b35b705971e000a75e
2,524
cpp
C++
digitanks/src/digitanks/units/scout.cpp
BSVino/Digitanks
1bd1ed115493bce22001ae6684b70b8fcf135db0
[ "BSD-4-Clause" ]
5
2015-07-03T18:42:32.000Z
2017-08-25T10:28:12.000Z
digitanks/src/digitanks/units/scout.cpp
BSVino/Digitanks
1bd1ed115493bce22001ae6684b70b8fcf135db0
[ "BSD-4-Clause" ]
null
null
null
digitanks/src/digitanks/units/scout.cpp
BSVino/Digitanks
1bd1ed115493bce22001ae6684b70b8fcf135db0
[ "BSD-4-Clause" ]
null
null
null
#include "scout.h" #include <network/network.h> #include <mtrand.h> #include "ui/digitankswindow.h" #include "ui/hud.h" #include <digitanksgame.h> #include <weapons/projectile.h> REGISTER_ENTITY(CScout); NETVAR_TABLE_BEGIN(CScout); NETVAR_TABLE_END(); SAVEDATA_TABLE_BEGIN(CScout); SAVEDATA_TABLE_END(); INPUTS_TABLE_BEGIN(CScout); INPUTS_TABLE_END(); #define _T(x) x void CScout::Precache() { PrecacheModel(_T("models/digitanks/scout.toy")); PrecacheSound(_T("sound/torpedo-drop.wav")); } void CScout::Spawn() { BaseClass::Spawn(); SetModel(_T("models/digitanks/scout.toy")); m_flMaxShieldStrength = m_flShieldStrength = 0; m_bFortified = false; m_aeWeapons.push_back(PROJECTILE_TORPEDO); m_eWeapon = PROJECTILE_TORPEDO; } bool CScout::AllowControlMode(controlmode_t eMode) const { return BaseClass::AllowControlMode(eMode); } void CScout::Move() { BaseClass::Move(); } CSupplyLine* CScout::FindClosestEnemySupplyLine(bool bInRange) { CSupplyLine* pClosest = NULL; while (true) { pClosest = CBaseEntity::FindClosest<CSupplyLine>(GetGlobalOrigin(), pClosest); if (!pClosest) return NULL; if (pClosest->GetPlayerOwner() == GetPlayerOwner()) continue; if (!pClosest->GetPlayerOwner()) continue; if (!pClosest->GetSupplier() || !pClosest->GetEntity()) continue; if (pClosest->GetIntegrity() < 0.25f) continue; if (bInRange) { if (!IsInsideMaxRange(pClosest->GetGlobalOrigin())) return NULL; } else { if (pClosest->Distance(GetGlobalOrigin()) > VisibleRange()) return NULL; } // This one will do. return pClosest; } } void CScout::Fire() { BaseClass::Fire(); } void CScout::FireWeapon(CNetworkParameters* p) { CProjectile* pTorpedo = CEntityHandle<CProjectile>(p->ui2); if (!pTorpedo) return; Vector vecLandingSpot = Vector(p->fl3, p->fl4, p->fl5); float flGravity = DigitanksGame()->GetGravity(); // FIRE PROTON TORPEDO NUMBER ONE NUMBER TWO pTorpedo->SetOwner(this); pTorpedo->SetGlobalVelocity(Vector(0,0,0)); pTorpedo->SetGlobalGravity(Vector(0, 0, flGravity)); pTorpedo->SetLandingSpot(vecLandingSpot); if (GetVisibility() > 0) EmitSound(_T("sound/torpedo-drop.wav")); m_flNextIdle = GameServer()->GetGameTime() + RandomFloat(10, 20); } float CScout::FindHoverHeight(Vector vecPosition) const { float flHeight = BaseClass::FindHoverHeight(vecPosition); return flHeight + 9; } float CScout::BaseShieldRechargeRate() const { return 0; } float CScout::BaseHealthRechargeRate() const { return 7.0f; }
18.558824
80
0.719889
BSVino
6777d8a28ffd0337900c17c557e676065f0d140a
351
cpp
C++
CodeForces/Colorful Stones (Simplified).cpp
abdelrahman0123/Problem-Solving
9d40ed9adb6e6d519dc53f676b6dd44ca15ee70b
[ "MIT" ]
null
null
null
CodeForces/Colorful Stones (Simplified).cpp
abdelrahman0123/Problem-Solving
9d40ed9adb6e6d519dc53f676b6dd44ca15ee70b
[ "MIT" ]
null
null
null
CodeForces/Colorful Stones (Simplified).cpp
abdelrahman0123/Problem-Solving
9d40ed9adb6e6d519dc53f676b6dd44ca15ee70b
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define init ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); typedef long long ll; using namespace std; int main() { init; // Code string s, t; cin >> s >> t; int i = 0, j = 0; while (i < s.size()) { if (j >= t.size()) break; else if (s[i] == t[j]) i++; j++; } cout << i + 1 << endl; return 0; }
15.954545
67
0.532764
abdelrahman0123
67789ecd3da09edae784391943e6f9cf6ec9e161
149
cpp
C++
source/mc_touch.cpp
PaulSlocum/magic-carpet
7bcbfffc11caa4fd4d4aaccd9031f3c138b4744b
[ "MIT" ]
2
2020-01-10T01:31:51.000Z
2021-01-24T23:30:57.000Z
source/mc_touch.cpp
PaulSlocum/magic-carpet
7bcbfffc11caa4fd4d4aaccd9031f3c138b4744b
[ "MIT" ]
null
null
null
source/mc_touch.cpp
PaulSlocum/magic-carpet
7bcbfffc11caa4fd4d4aaccd9031f3c138b4744b
[ "MIT" ]
null
null
null
// mc_touch.cpp /////////////////////////////////////////////////////////////////////////////////////// #include <math.h> #include "mc_touch.hpp"
18.625
87
0.275168
PaulSlocum
6779b7a064b3d93da6dc4628e7933b2610df4a60
916
hpp
C++
engine/lib/base-utils/include/noob/bitpack/bitpack.hpp
ColinGilbert/noobwerkz-engine
f5670e98ca0dada8865be9ab82d25d3acf549ebe
[ "Apache-2.0" ]
23
2015-03-02T10:56:40.000Z
2021-01-27T03:32:49.000Z
engine/lib/base-utils/include/noob/bitpack/bitpack.hpp
ColinGilbert/noobwerkz-engine-borked
f5670e98ca0dada8865be9ab82d25d3acf549ebe
[ "Apache-2.0" ]
73
2015-04-14T09:39:05.000Z
2020-11-11T21:49:10.000Z
engine/lib/base-utils/include/noob/bitpack/bitpack.hpp
ColinGilbert/noobwerkz-engine-borked
f5670e98ca0dada8865be9ab82d25d3acf549ebe
[ "Apache-2.0" ]
3
2016-02-22T01:29:32.000Z
2018-01-02T06:07:12.000Z
#pragma once #include <tuple> #include <cstdint> namespace noob { // TODO: // static uint32_t pack_8_to_32(uint8_t a, uint8_t b, uint8_t c, uint8_t d) // { // } static uint64_t pack_32_to_64(uint32_t x, uint32_t y) noexcept(true) { return static_cast<uint64_t>(x) << 32 | y; } static std::tuple<uint32_t, uint32_t> pack_64_to_32(uint64_t arg) noexcept(true) { uint32_t x = static_cast<uint32_t>(arg >> 32); uint32_t y = static_cast<uint32_t>(arg); return std::make_tuple(x,y); } // http://stackoverflow.com/questions/1322510/given-an-integer-how-do-i-find-the-next-largest-power-of-two-using-bit-twiddlin static uint32_t next_power_of_two(uint32_t arg) noexcept(true) { uint32_t n = arg; n--; n |= n >> 1; // Divide by 2^k for consecutive doublings of k up to 32, n |= n >> 2; // and then or the results. n |= n >> 4; n |= n >> 8; n |= n >> 16; n++; return n; } }
22.341463
126
0.655022
ColinGilbert
677af183ebc9345c275b46648127644ff7e279d5
8,037
cpp
C++
test/TestDoublyLinkedList.cpp
Jon-edge/esp-rgb-led-matrix
0eec32d71996096318bc8e529bda7f5f41612146
[ "MIT" ]
null
null
null
test/TestDoublyLinkedList.cpp
Jon-edge/esp-rgb-led-matrix
0eec32d71996096318bc8e529bda7f5f41612146
[ "MIT" ]
null
null
null
test/TestDoublyLinkedList.cpp
Jon-edge/esp-rgb-led-matrix
0eec32d71996096318bc8e529bda7f5f41612146
[ "MIT" ]
null
null
null
/* MIT License * * Copyright (c) 2019 - 2022 Andreas Merkle <web@blue-andi.de> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ /******************************************************************************* DESCRIPTION *******************************************************************************/ /** * @brief Doubly linked list tests. * @author Andreas Merkle <web@blue-andi.de> */ /****************************************************************************** * Includes *****************************************************************************/ #include "TestDoublyLinkedList.h" #include <unity.h> #include <LinkedList.hpp> /****************************************************************************** * Compiler Switches *****************************************************************************/ /****************************************************************************** * Macros *****************************************************************************/ /****************************************************************************** * Types and classes *****************************************************************************/ /****************************************************************************** * Prototypes *****************************************************************************/ /****************************************************************************** * Local Variables *****************************************************************************/ /****************************************************************************** * Public Methods *****************************************************************************/ /****************************************************************************** * Protected Methods *****************************************************************************/ /****************************************************************************** * Private Methods *****************************************************************************/ /****************************************************************************** * External Functions *****************************************************************************/ /** * Doubly linked list tests. */ extern void testDoublyLinkedList() { DLinkedList<uint32_t> list; DLinkedListIterator<uint32_t> it(list); uint32_t value = 1U; uint32_t index = 0U; const uint32_t max = 3U; /* List is empty. */ TEST_ASSERT_FALSE(it.first()); TEST_ASSERT_FALSE(it.last()); TEST_ASSERT_NULL(it.current()); TEST_ASSERT_FALSE(it.next()); TEST_ASSERT_FALSE(it.prev()); TEST_ASSERT_EQUAL_UINT32(0u, list.getNumOfElements()); /* Add one element. */ TEST_ASSERT_TRUE(list.append(value)); TEST_ASSERT_EQUAL_UINT32(1u, list.getNumOfElements()); TEST_ASSERT_TRUE(it.first()); TEST_ASSERT_NOT_NULL(it.current()); TEST_ASSERT_EQUAL_INT(value, *it.current()); TEST_ASSERT_TRUE(it.last()); TEST_ASSERT_NOT_NULL(it.current()); TEST_ASSERT_EQUAL_INT(value, *it.current()); /* Remove element from list. List is now empty. */ it.remove(); TEST_ASSERT_EQUAL_UINT32(0u, list.getNumOfElements()); TEST_ASSERT_FALSE(it.first()); TEST_ASSERT_FALSE(it.last()); TEST_ASSERT_FALSE(it.current()); TEST_ASSERT_FALSE(it.next()); TEST_ASSERT_FALSE(it.prev()); /* Add more elements */ for(index = 1U; index <= max; ++index) { TEST_ASSERT_TRUE(list.append(index)); TEST_ASSERT_EQUAL_UINT32(index, list.getNumOfElements()); } TEST_ASSERT_TRUE(it.first()); TEST_ASSERT_EQUAL_INT(1u, *it.current()); TEST_ASSERT_TRUE(it.last()); TEST_ASSERT_EQUAL_INT(max, *it.current()); /* Select element for element, from head to tail. */ TEST_ASSERT_TRUE(it.first()); for(index = 1U; index <= max; ++index) { TEST_ASSERT_NOT_NULL(it.current()); TEST_ASSERT_EQUAL_INT(index, *it.current()); if (index < max) { TEST_ASSERT_TRUE(it.next()); } else { TEST_ASSERT_FALSE(it.next()); } } /* Select element for element, from tail to head. */ TEST_ASSERT_TRUE(it.last()); for(index = max; index > 0U; --index) { TEST_ASSERT_NOT_NULL(it.current()); TEST_ASSERT_EQUAL_INT(index, *it.current()); if (index > 1U) { TEST_ASSERT_TRUE(it.prev()); } else { TEST_ASSERT_FALSE(it.prev()); } } /* Remove all elements */ for(index = 1; index <= max; ++index) { it.remove(); TEST_ASSERT_EQUAL_UINT32(max - index, list.getNumOfElements()); } TEST_ASSERT_FALSE(it.first()); TEST_ASSERT_FALSE(it.last()); TEST_ASSERT_NULL(it.current()); TEST_ASSERT_FALSE(it.next()); TEST_ASSERT_FALSE(it.prev()); /* Insert elements again */ for(index = 1U; index <= max; ++index) { TEST_ASSERT_TRUE(list.append(index)); TEST_ASSERT_EQUAL_UINT32(index, list.getNumOfElements()); } /* Copy it via copy constructor */ { DLinkedList<uint32_t> copyOfList = list; DLinkedListIterator<uint32_t> itListCopy(copyOfList); TEST_ASSERT_TRUE(it.first()); for(index = 1U; index <= max; ++index) { TEST_ASSERT_NOT_NULL(itListCopy.current()); TEST_ASSERT_NOT_NULL(it.current()); TEST_ASSERT_NOT_EQUAL(itListCopy.current(), it.current()); TEST_ASSERT_EQUAL_INT(*itListCopy.current(), *it.current()); (void)itListCopy.next(); (void)it.next(); } } /* Copy it via assignment */ { DLinkedList<uint32_t> copyOfList; DLinkedListIterator<uint32_t> itListCopy(copyOfList); copyOfList = list; TEST_ASSERT_TRUE(it.first()); for(index = 1U; index <= max; ++index) { TEST_ASSERT_NOT_NULL(itListCopy.current()); TEST_ASSERT_NOT_NULL(it.current()); TEST_ASSERT_NOT_EQUAL(itListCopy.current(), it.current()); TEST_ASSERT_EQUAL_INT(*itListCopy.current(), *it.current()); (void)itListCopy.next(); (void)it.next(); } } /* Find not existing element */ TEST_ASSERT_TRUE(it.first()); TEST_ASSERT_FALSE(it.find(max + 1)); /* Find existing element */ TEST_ASSERT_TRUE(it.first()); TEST_ASSERT_TRUE(it.find(1U)); TEST_ASSERT_EQUAL(1U, *it.current()); TEST_ASSERT_TRUE(it.first()); TEST_ASSERT_TRUE(it.find(max)); TEST_ASSERT_EQUAL(max, *it.current()); return; } /****************************************************************************** * Local Functions *****************************************************************************/
33.911392
81
0.480403
Jon-edge
677da7efc2c9325a7587bed1e3b10205a01088fe
1,588
cpp
C++
cs256/project2/tthurlow-proj2.cpp
taylorthurlow/school-code
c801c2c5cbff0c8b6743b9cdefc6802382d3549f
[ "WTFPL" ]
null
null
null
cs256/project2/tthurlow-proj2.cpp
taylorthurlow/school-code
c801c2c5cbff0c8b6743b9cdefc6802382d3549f
[ "WTFPL" ]
null
null
null
cs256/project2/tthurlow-proj2.cpp
taylorthurlow/school-code
c801c2c5cbff0c8b6743b9cdefc6802382d3549f
[ "WTFPL" ]
null
null
null
// // Name: Thurlow, Taylor // Project: 2 // Due: 10/26/2016 // Course: cs25602 // // Description: // A guessing game. Generates a random number between 1 and 100, and asks the user // to guess the right value. It will tell you higher or lower. To quit, give the // number 0. After 8 incorrect answers, the game will quit and give you the correct // answer. // #include <iostream> #include <cmath> #include <cstdlib> using namespace std; int getGuess() { bool validGuess = false; while (!validGuess) { string guess; cout << "Please enter your guess? "; cin >> guess; int guessInt = stoi(guess); if (guessInt <= 100 && guessInt >= 0) return guessInt; } return 0; } int main(int argc, char *argv[]) { cout << "T. Thurlow's Guess-my-Number" << endl << endl; cout << "A secret number between 1-100 generated..." << endl << endl; bool win = false, quit = false; int incorrectGuesses = 0; srand(time(NULL)); int secret = 1 + (rand() % 100); while (!win && !quit && incorrectGuesses != 8) { int guess = getGuess(); if (guess == secret) { win = true; } else { if (guess > secret && guess != 0) cout << "Guess is high..." << endl; if (guess < secret && guess != 0) cout << "Guess is low..." << endl; if (guess == 0) quit = true; incorrectGuesses++; } } if (win) cout << "Correct in " << incorrectGuesses + 1 << " guesses." << endl; if (quit) cout << "The secret number is " << secret << "." << endl; if (incorrectGuesses == 8) cout << "Too many guesses, the secret number is " << secret << "." << endl; return 0; }
28.872727
103
0.606423
taylorthurlow
67806769f92107dd5b5a24684ca88f20c3f99247
571
hpp
C++
include/sliding_window/search/load_ibf.hpp
eaasna/sliding-window
ffd69e361dbf639ba5fa0154785b6f9e53fa5db5
[ "BSD-3-Clause" ]
null
null
null
include/sliding_window/search/load_ibf.hpp
eaasna/sliding-window
ffd69e361dbf639ba5fa0154785b6f9e53fa5db5
[ "BSD-3-Clause" ]
27
2021-08-13T14:56:21.000Z
2022-01-28T12:13:47.000Z
include/sliding_window/search/load_ibf.hpp
eaasna/new-sliding-window
921405288ecb163d451798f9eaa4553ba22e8d65
[ "BSD-3-Clause" ]
1
2021-11-01T14:22:21.000Z
2021-11-01T14:22:21.000Z
#pragma once #include <seqan3/std/filesystem> #include <seqan3/search/dream_index/interleaved_bloom_filter.hpp> namespace sliding_window { template <seqan3::data_layout ibf_data_layout> void load_ibf(seqan3::interleaved_bloom_filter<ibf_data_layout> & ibf, std::filesystem::path const & ibf_file) { static uint8_t kmer_size{}; static uint32_t window_size{}; std::ifstream is{ibf_file, std::ios::binary}; cereal::BinaryInputArchive iarchive{is}; iarchive(kmer_size); iarchive(window_size); iarchive(ibf); } } // namespace sliding_window
22.84
110
0.753065
eaasna
6782bcfd748a8957eca554e0bb8c8c5bd2bd4d9c
3,149
cpp
C++
src/emulator/ops/cb/ops_6x.cpp
rizTaak/dmg-emulator
9e91f1db98b3c7d7ee028a270e0454745c915019
[ "Apache-2.0" ]
1
2020-07-10T17:56:00.000Z
2020-07-10T17:56:00.000Z
src/emulator/ops/cb/ops_6x.cpp
rizTaak/dmg-emulator
9e91f1db98b3c7d7ee028a270e0454745c915019
[ "Apache-2.0" ]
null
null
null
src/emulator/ops/cb/ops_6x.cpp
rizTaak/dmg-emulator
9e91f1db98b3c7d7ee028a270e0454745c915019
[ "Apache-2.0" ]
null
null
null
#include <emulator/cpu.h> #include <spdlog/fmt/fmt.h> #include <emulator/ops/common.h> namespace emulator { void Cpu::add_cb6x() { add_bc_op(0x60, +[](Cpu &cpu) -> clock_t { //BIT 4,B //2 8 //Z 0 1 - bit_4(cpu, cpu.m_b); return 8; }); add_bc_op(0x61, +[](Cpu &cpu) -> clock_t { //BIT 4,C //2 8 //Z 0 1 - bit_4(cpu, cpu.m_c); return 8; }); add_bc_op(0x62, +[](Cpu &cpu) -> clock_t { //BIT 4,D //2 8 //Z 0 1 - bit_4(cpu, cpu.m_d); return 8; }); add_bc_op(0x63, +[](Cpu &cpu) -> clock_t { //BIT 4,E //2 8 //Z 0 1 - bit_4(cpu, cpu.m_e); return 8; }); add_bc_op(0x64, +[](Cpu &cpu) -> clock_t { //BIT 4,H //2 8 //Z 0 1 - bit_4(cpu, cpu.m_h); return 8; }); add_bc_op(0x65, +[](Cpu &cpu) -> clock_t { //BIT 4,L //2 8 //Z 0 1 - bit_4(cpu, cpu.m_l); return 8; }); add_bc_op(0x66, +[](Cpu &cpu) -> clock_t { //BIT 4,(HL) //2 16 //Z 0 1 - auto imm = cpu.m_mem.read_byte(cpu.m_hl); bit_4(cpu, imm); return 12; }); add_bc_op(0x67, +[](Cpu &cpu) -> clock_t { //BIT 4,A //2 8 //Z 0 1 - bit_4(cpu, cpu.m_a); return 8; }); add_bc_op(0x68, +[](Cpu &cpu) -> clock_t { //BIT 5,B //2 8 //Z 0 1 - bit_5(cpu, cpu.m_b); return 8; }); add_bc_op(0x69, +[](Cpu &cpu) -> clock_t { //BIT 5,C //2 8 //Z 0 1 - bit_5(cpu, cpu.m_c); return 8; }); add_bc_op(0x6a, +[](Cpu &cpu) -> clock_t { //BIT 5,D //2 8 //Z 0 1 - bit_5(cpu, cpu.m_d); return 8; }); add_bc_op(0x6b, +[](Cpu &cpu) -> clock_t { //BIT 5,E //2 8 //Z 0 1 - bit_5(cpu, cpu.m_e); return 8; }); add_bc_op(0x6c, +[](Cpu &cpu) -> clock_t { //BIT 5,H //2 8 //Z 0 1 - bit_5(cpu, cpu.m_h); return 8; }); add_bc_op(0x6d, +[](Cpu &cpu) -> clock_t { //BIT 5,L //2 8 //Z 0 1 - bit_5(cpu, cpu.m_l); return 8; }); add_bc_op(0x6e, +[](Cpu &cpu) -> clock_t { //BIT 5,(HL) //2 16 //Z 0 1 - auto imm = cpu.m_mem.read_byte(cpu.m_hl); bit_5(cpu, imm); return 12; }); add_bc_op(0x6f, +[](Cpu &cpu) -> clock_t { //BIT 5,A //2 8 //Z 0 1 - bit_5(cpu, cpu.m_a); return 8; }); } }
25.811475
53
0.33979
rizTaak
6786838e529c9f9d83ff393067f36a2708812a8b
579
cpp
C++
Source/BattleRoyale/core/GameMode/BattleRoyale/FSM/States/Synchronize.cpp
homeguatlla/BattleRoyale
9d68a4a902c9b0052788769ae6b963d65ef060a4
[ "Unlicense" ]
2
2022-02-11T07:25:49.000Z
2022-03-14T23:00:28.000Z
Source/BattleRoyale/core/GameMode/BattleRoyale/FSM/States/Synchronize.cpp
homeguatlla/BattleRoyale
9d68a4a902c9b0052788769ae6b963d65ef060a4
[ "Unlicense" ]
null
null
null
Source/BattleRoyale/core/GameMode/BattleRoyale/FSM/States/Synchronize.cpp
homeguatlla/BattleRoyale
9d68a4a902c9b0052788769ae6b963d65ef060a4
[ "Unlicense" ]
null
null
null
#include "BattleRoyale/core/GameMode/BattleRoyale/FSM/States/Synchronize.h" #include "BattleRoyale/BattleRoyale.h" #include "BattleRoyale/core/GameMode/BattleRoyale/FSM/BattleRoyaleContext.h" namespace BRModeFSM { Synchronize::Synchronize() { } void Synchronize::OnEnter(float deltaTime) { UE_LOG(LogFSM, Log, TEXT("Synchronize::OnEnter")); } void Synchronize::OnExit(float deltaTime) { GetContext()->GetGameState()->NotifyGameModeConfigurationInfo(GetContext()->GetGameMode()->GetGameModeConfiguration()); UE_LOG(LogFSM, Log, TEXT("Synchronize::OnExit")); } };
27.571429
121
0.766839
homeguatlla
6789afa2abadf860a7c0000c49675417812afb11
13,092
cpp
C++
lib/src/Hotel.cpp
glbwsk/oop
7856a909bfdd197dc13c0f6945ef9c6e00aaa889
[ "MIT" ]
1
2020-07-02T17:16:29.000Z
2020-07-02T17:16:29.000Z
lib/src/Hotel.cpp
glbwsk/oop
7856a909bfdd197dc13c0f6945ef9c6e00aaa889
[ "MIT" ]
null
null
null
lib/src/Hotel.cpp
glbwsk/oop
7856a909bfdd197dc13c0f6945ef9c6e00aaa889
[ "MIT" ]
1
2021-05-28T13:13:19.000Z
2021-05-28T13:13:19.000Z
#include "Hotel.hpp" #include "Address.hpp" #include "Equipment.hpp" #define MANAGER 1 #define RECEPTIONIST 2 #define CLEANER 3 #define CUSTOMER 4 Hotel::Hotel( IHotel* iHotel ) { this->iHotel = iHotel; Manager defaultManager( Employee( Person( "Jan", "Janowicz", "abc@hotel.com", "555-555-100", Address( "Lodzka 315", "Lodz", "93-333", 15 ) ) ) ); getManagers().push_back( defaultManager ); logged = false; } void Hotel::menu() { while ( !logged ) { logType = iHotel->printLoginScreen(); logID = iHotel->printAuthScreen(); logged = true; checkAuth(); } switch( logType ) { case MANAGER: switch( iHotel->printManagerMenu( getManagers().at( logID ) ) ) { case 1: printManagers(); break; case 2: printReceptionists(); break; case 3: printCleaners(); break; case 4: printCustomers(); break; case 5: printBookings( bookings ); break; case 6: printFloors(); break; case 7: printHireMenu(); break; case 8: printFireMenu(); break; case 9: addFloor(); break; case 10: addRoom(); break; case 11: logged = false; break; default: break; } break; case RECEPTIONIST: switch( iHotel->printReceptionistMenu( getReceptionists().at( logID ) ) ) { case 1: printCustomers(); break; case 2: printBookings( bookings ); break; case 3: printBookings( unconfirmedBookings ); break; case 4: getReceptionists().at( logID ).bookUnconfirmed( unconfirmedBookings, bookings ); iHotel->printOK(); break; case 5: addEquipment( getReceptionists().at( logID ) ); break; case 6: logged = false; break; default: break; } break; case CLEANER: switch( iHotel->printCleanerMenu( getCleaners().at( logID ) ) ) { case 1: printFloors(); break; case 2: addClean( getCleaners().at( logID ), false ); break; case 3: addClean( getCleaners().at( logID ), true ); break; case 4: logged = false; break; default: break; } break; case CUSTOMER: { auto it = getCustomers().begin(); std::advance( it, logID ); switch( iHotel->printCustomerMenu( *it ) ) { case 1: printCustomerBookings( it->getBookings() ); break; case 2: addBooking( &( *it ) ); break; case 3: addPayment( &( *it ) ); break; case 4: logged = false; break; default: break; } break; } default: logged = false; break; } } void Hotel::checkAuth() { switch( logType ) { case MANAGER: if ( logID >= managers.size() ) { logged = false; } break; case RECEPTIONIST: if ( logID >= receptionists.size() ) { logged = false; } break; case CLEANER: if ( logID >= cleaners.size() ) { logged = false; } break; case CUSTOMER: if ( logID >= customers.size() ) { logged = false; } break; default: break; } } void Hotel::printHireMenu() { switch( iHotel->printManagerHireFire() ) { case MANAGER: getManagers().at( logID ).hire<Manager>( iHotel->addNewEmployee(), managers ); break; case RECEPTIONIST: getManagers().at( logID ).hire<Receptionist>( iHotel->addNewEmployee(), receptionists ); break; case CLEANER: getManagers().at( logID ).hire<Cleaner>( iHotel->addNewEmployee(), cleaners ); break; } } void Hotel::printFireMenu() { switch( iHotel->printManagerHireFire() ) { case MANAGER: if ( getManagers().at( logID ).fire<Manager>( managers, iHotel->readIndex() ) ) { iHotel->printOK(); } else { iHotel->printFail(); } break; case RECEPTIONIST: if ( getManagers().at( logID ).fire<Receptionist>( receptionists, iHotel->readIndex() ) ) { iHotel->printOK(); } else { iHotel->printFail(); } break; case CLEANER: if ( getManagers().at( logID ).fire<Cleaner>( cleaners, iHotel->readIndex() ) ) { iHotel->printOK(); } else { iHotel->printFail(); } } } void Hotel::addFloor() { Floor newFloor = iHotel->addNewFloor(); bool existsFloor = false; for ( auto it : floors ) { if ( it.getNumber() == newFloor.getNumber() ) { existsFloor = true; break; } } if( existsFloor ) { iHotel->printFail(); } else { floors.push_back( newFloor ); iHotel->printOK(); } } void Hotel::addRoom() { Room newRoom = iHotel->addNewRoom(); bool existsFloor = false; bool existsRoom = false; int floorIndex = 0; for ( auto it : floors ) { if ( it.getNumber() == newRoom.getFloorNumber() ) { existsFloor = true; break; } floorIndex++; } if ( existsFloor ) { for ( auto it : floors.at( floorIndex ).getRooms() ) { if ( it.getNumber() == newRoom.getNumber() ) { existsRoom = true; break; } } } if ( existsFloor && !existsRoom ) { floors.at( floorIndex ).getRooms().push_back( newRoom ); iHotel->printOK(); } else { iHotel->printFail(); } } void Hotel::addBooking( Customer* customer ) { Date dateS; int days, floorNum, roomNum, roomIndex = 0, floorIndex = 0; iHotel->readBookingData( days, floorNum, roomNum, dateS ); bool existsFloor = false; bool existsRoom = false; for ( auto it : floors ) { if ( it.getNumber() == floorNum ) { existsFloor = true; break; } floorIndex++; } if ( existsFloor ) { for ( auto it : floors.at( floorIndex ).getRooms() ) { if ( it.getNumber() == roomNum ) { existsRoom = true; break; } roomIndex++; } } if ( existsFloor && existsRoom ) { if ( Receptionist::checkIfDateAvailable( days, floors.at( floorIndex ).getRooms().at( roomIndex ), dateS, bookings ) ) { customer->book( days, floors.at( floorIndex ).getRooms().at( roomIndex ), dateS, unconfirmedBookings ); iHotel->printOK(); } else { iHotel->printFail(); } } else { iHotel->printFail(); } } void Hotel::addPayment( Customer* customer ) { int id, amount, bookingIndex = 0; bool existsID = false; iHotel->readPaymentData( id, amount ); auto it = bookings.begin(); for( it = bookings.begin(); it != bookings.end(); ++it ) { if ( it->getID() == id && &it->getCustomer() == customer ) { existsID = true; break; } bookingIndex++; } if ( existsID ) { if ( customer->pay( *it, amount ) ) { iHotel->printOK(); } else { iHotel->printFail(); } } else { iHotel->printFail(); } } void Hotel::addClean( Cleaner& cleaner, bool roomOnly ) { int floorNum, roomNum, floorIndex, roomIndex; bool existsFloor = false; bool existsRoom = false; iHotel->readFloorAndRoom( floorNum, roomNum, roomOnly ); for ( auto it : floors ) { if ( it.getNumber() == floorNum ) { existsFloor = true; break; } floorIndex++; } if ( existsFloor && roomOnly ) { for ( auto it : floors.at( floorIndex ).getRooms() ) { if ( it.getNumber() == roomNum ) { existsRoom = true; break; } roomIndex++; } } if ( existsFloor && !roomOnly ) { cleaner.cleanFloor( floors.at( floorIndex ) ); iHotel->printOK(); } else if ( existsFloor && existsRoom && roomOnly ) { cleaner.cleanRoom( floors.at( floorIndex ).getRooms().at( roomIndex ) ); iHotel->printOK(); } else { iHotel->printFail(); } } void Hotel::addEquipment( Receptionist& receptionist ) { int floorNum, roomNum, floorIndex, roomIndex; bool existsFloor = false; bool existsRoom = false; iHotel->readFloorAndRoom( floorNum, roomNum, true ); for ( auto it : floors ) { if ( it.getNumber() == floorNum ) { existsFloor = true; break; } floorIndex++; } if ( existsFloor ) { for ( auto it : floors.at( floorIndex ).getRooms() ) { if ( it.getNumber() == roomNum ) { existsRoom = true; break; } roomIndex++; } } if ( existsFloor && existsRoom ) { switch ( iHotel->printEquAddMenu() ) { case 1: { TV e; e.read( iHotel ); receptionist.addEquipment( floors.at( floorIndex ).getRooms().at( roomIndex ), e ); iHotel->printOK(); break; } case 2: { Bed e; e.read( iHotel ); receptionist.addEquipment( floors.at( floorIndex ).getRooms().at( roomIndex ), e ); iHotel->printOK(); break; } case 3: { Sheets e; e.read( iHotel ); receptionist.addEquipment( floors.at( floorIndex ).getRooms().at( roomIndex ), e ); iHotel->printOK(); break; } case 4: { unsigned int index = iHotel->readIndex(); if ( index >= floors.at( floorIndex ).getRooms().at( roomIndex ).getEquipment().size() ) { iHotel->printFail(); break; } else { receptionist.removeEquipment( floors.at( floorIndex ).getRooms().at( roomIndex ), index ); iHotel->printOK(); } break; } default: iHotel->printFail(); break; } } else { iHotel->printFail(); } } void Hotel::printManagers() { iHotel->printAllManagers( managers ); } void Hotel::printReceptionists() { iHotel->printAllReceptionists( receptionists ); } void Hotel::printCleaners() { iHotel->printAllCleaners( cleaners ); } void Hotel::printCustomers() { iHotel->printAllCustomers( customers ); } void Hotel::printBookings( std::list<Booking> bookings ) { iHotel->printAllBookings( bookings ); } void Hotel::printCustomerBookings( std::vector<Booking*> bookings ) { iHotel->printAllCustomerBookings( bookings ); } void Hotel::printFloors() { iHotel->printAllFloors( floors ); } std::vector<Manager>& Hotel::getManagers() { return managers; } std::vector<Receptionist>& Hotel::getReceptionists() { return receptionists; } std::vector<Cleaner>& Hotel::getCleaners() { return cleaners; } std::list<Customer>& Hotel::getCustomers() { return customers; } std::list<Booking>& Hotel::getBookings() { return bookings; } std::list<Booking>& Hotel::getUnconfirmedBookings() { return unconfirmedBookings; } std::vector<Floor>& Hotel::getFloors() { return floors; }
22.227504
128
0.463947
glbwsk
678ee36699488310d4b174fa07f5660ddaaf9c92
1,355
cc
C++
passes/brisc/autosynth.cc
nblei/yosys
de68e13c36f098d615177d03dfc97818fe947d24
[ "ISC" ]
1
2020-03-08T20:57:53.000Z
2020-03-08T20:57:53.000Z
passes/brisc/autosynth.cc
nblei/yosys
de68e13c36f098d615177d03dfc97818fe947d24
[ "ISC" ]
null
null
null
passes/brisc/autosynth.cc
nblei/yosys
de68e13c36f098d615177d03dfc97818fe947d24
[ "ISC" ]
null
null
null
#include "kernel/yosys.h" USING_YOSYS_NAMESPACE PRIVATE_NAMESPACE_BEGIN struct AutoSynthPass : public ScriptPass { AutoSynthPass() : ScriptPass("auto_synth", "Synthesize verilog to logical gates") {} std::string verilog_path; void help() YS_OVERRIDE { log("\n"); log(" auto_synth <verilog-file>\n"); help_script(); log("\n"); } void clear_flags() YS_OVERRIDE { verilog_path.clear(); } void execute(std::vector<std::string> argv, RTLIL::Design *design) YS_OVERRIDE { clear_flags(); if (2 != argv.size()) { log_error("Usage: %s <verilog-file>\n", argv[0].c_str()); log_abort(); exit(1); } verilog_path = argv[1]; log_header(design, "Executing AUTO_SYNTH pass.\n"); log_push(); run_script(design); log_pop(); } void script() YS_OVERRIDE { run(stringf("read_verilog %s", verilog_path.c_str())); run("proc"); run("opt"); run("fsm"); run("opt"); run("memory"); run("opt"); run("flatten"); run("opt"); run("techmap"); run("opt"); run("flatten"); run("opt"); run("clean"); } } AutoSynthPass; PRIVATE_NAMESPACE_END
20.223881
76
0.518081
nblei
09689818067a6410997734d10f4ffc79c7f88c48
861
cpp
C++
Capitulo03/Exercicios/GradeBookModificado/GradeBookModificado01.cpp
pedro-filho-81/C_Mais_Mais
d55105f62c626de3245697095532281c8254a9bd
[ "MIT" ]
null
null
null
Capitulo03/Exercicios/GradeBookModificado/GradeBookModificado01.cpp
pedro-filho-81/C_Mais_Mais
d55105f62c626de3245697095532281c8254a9bd
[ "MIT" ]
null
null
null
Capitulo03/Exercicios/GradeBookModificado/GradeBookModificado01.cpp
pedro-filho-81/C_Mais_Mais
d55105f62c626de3245697095532281c8254a9bd
[ "MIT" ]
null
null
null
#include <string> #include "GradeBookModificado01.h" GradeBookModificado01::GradeBookModificado01(string cursoNome, string professorNome ) { setNomeDoCurso( cursoNome ); setNomeDoProfessor( professorNome ); } // fim construtor void GradeBookModificado01::setNomeDoCurso( string nome ) { nomeDoCurso = nome; } // fim setNomeDoCurso string GradeBookModificado01::getNomeDoCurso() { return nomeDoCurso; } // fim getNomeDoCurso void GradeBookModificado01::setNomeDoProfessor(string nome ) { nomeDoProfessor = nome; } // fim setNomedoProfessor string GradeBookModificado01::getNomeDoProfessor() { return nomeDoProfessor; } // fim grtNomeDoProfessor void GradeBookModificado01::displayMessage() { cout << "Bem vindo ao curso: " << getNomeDoCurso() << endl; cout << "Professor: " << getNomeDoProfessor() << endl; } // fim display
24.6
85
0.745645
pedro-filho-81
096b3878e1ba93c0b3657cfdccda73587ce5fb49
46,819
cpp
C++
tests/strtrie/strtrie.cpp
gknowles/dimapp
daadd9afe5fb1a6f716c431411e20c48ca180f9f
[ "BSL-1.0" ]
1
2016-07-20T18:43:34.000Z
2016-07-20T18:43:34.000Z
tests/strtrie/strtrie.cpp
gknowles/dimapp
daadd9afe5fb1a6f716c431411e20c48ca180f9f
[ "BSL-1.0" ]
4
2016-08-30T05:29:18.000Z
2016-11-07T04:02:15.000Z
tests/strtrie/strtrie.cpp
gknowles/dimapp
daadd9afe5fb1a6f716c431411e20c48ca180f9f
[ "BSL-1.0" ]
1
2017-10-20T22:31:17.000Z
2017-10-20T22:31:17.000Z
// Copyright Glen Knowles 2019 - 2021. // Distributed under the Boost Software License, Version 1.0. // // Uses the page height minimization algorithm for trees described in // "Clustering Techniques for Minimizing External Path Length" // https://tinyurl.com/y52mkc22 // // strtrie.cpp - dim core #include "pch.h" #pragma hdrstop using namespace std; using namespace Dim; using USet = IntegralSet<unsigned, std::pmr::polymorphic_allocator<unsigned>>; /**************************************************************************** * * Declarations * ***/ // PLAN C - implicitly referenced byte aligned nodes // Segment // data[0] & 0x7 = kNodeSeg // data[0] & 0x8 = has end of key // data[0] & 0xf0 = keyLen (1 - 16) in full bytes (no odd nibble) // data[1, keyLen] = bytes of key // : followed by next node - only if not eok // Half Segment // data[0] & 0x7 = kNodeHalfSeg // data[0] & 0x8 = has end of key // data[0] & 0xf0 = key (1 nibble in length) // : followed by next node - only if not eok // Fork // data[0] & 0x7 = kNodeFork // data[0] & 0x8 = has end of key // data[1, 2] = bitmap of existing children, all 16 bits means all 16 kids // : followed by nodes[hammingWeight(bitmap)] // Remote // data[0] & 0x7 = kNodeRemote // data[0] & 0x8 = false (has end of key) // data(1, 4) = pgno // data(5, 2) = index of node // EndMark // data[0] & 0x7 = kNodeEndMark // data[0] & 0x8 = true (end of key - no content) const size_t kMaxForkBit = 16; const size_t kMaxSegLen = 32; const size_t kRemoteNodeLen = 7; //namespace { using pgno_t = unsigned; struct PageRef { enum { kInvalid, // no reference kSource, // source page kUpdate, // shadow node in ss->updates kVirtual // reference to virtual page in ss->vpages } type = kInvalid; pgno_t pgno = 0; auto operator<=>(const PageRef & other) const = default; }; struct LocalRef { int pos = -1; int len = -1; auto operator<=>(const LocalRef & other) const = default; }; struct NodeRef { PageRef page; LocalRef data; auto operator<=>(const NodeRef & other) const = default; }; enum NodeType : int8_t { kNodeInvalid, kNodeSeg, kNodeHalfSeg, kNodeFork, kNodeEndMark, kNodeRemote, kNodeTypes }; static_assert(kNodeTypes <= 8); struct UpdateBase : ListLink<> { int id = 0; NodeType type = kNodeInvalid; int len = -1; span<NodeRef> refs; }; struct UpdateSeg : UpdateBase { constexpr static NodeType s_type = kNodeSeg; bool endOfKey = false; unsigned keyLen = 0; // length in nibbles uint8_t * key = nullptr; }; struct UpdateHalfSeg : UpdateBase { constexpr static NodeType s_type = kNodeHalfSeg; bool endOfKey = false; int nibble = 0; }; struct UpdateFork : UpdateBase { constexpr static NodeType s_type = kNodeFork; bool endOfKey = false; uint16_t kidBits = 0; }; struct UpdateEndMark : UpdateBase { constexpr static NodeType s_type = kNodeEndMark; }; struct UpdateRemote : UpdateBase { constexpr static NodeType s_type = kNodeRemote; PageRef page; int pos = -1; }; struct VirtualPage { pgno_t targetPgno = (pgno_t) -1; NodeRef root; explicit VirtualPage(TempHeap * heap); }; struct SearchState { string_view key; int kpos = 0; int klen = 0; uint8_t kval = 0; // Current page pgno_t pgno = 0; int used = 0; // Current node int inode = 0; StrTrieBase::Node * node = nullptr; // Fork to adjacent key pgno_t fpno = (pgno_t) -1; int ifork = -1; int fpos = -1; // Was key found? bool found = false; pmr::deque<UpdateBase *> updates; pmr::deque<VirtualPage> vpages; USet spages; TempHeap * heap = nullptr; IPageHeap * pages = nullptr; SearchState( string_view key, IPageHeap * pages, TempHeap * heap = nullptr ); }; //} // namespace /**************************************************************************** * * StrTrieBase::Node * ***/ struct StrTrieBase::Node { uint8_t data[1]; }; static_assert(sizeof StrTrieBase::Node == 1); /**************************************************************************** * * Helpers * ***/ //=========================================================================== // Key helpers //=========================================================================== static uint8_t keyVal(string_view key, size_t pos) { assert(pos < key.size() * 2); return pos % 2 == 0 ? (uint8_t) key[pos / 2] >> 4 : (uint8_t) key[pos / 2] & 0xf; } //=========================================================================== // Node helpers //=========================================================================== static NodeType nodeType(const StrTrieBase::Node * node) { return NodeType(*node->data & 0x7); } //=========================================================================== static bool nodeEndMarkFlag(const StrTrieBase::Node * node) { return *node->data & 0x8; } //=========================================================================== static void setEndMarkFlag(StrTrieBase::Node * node, bool eok = true) { if (eok) { *node->data |= 0x8; } else { *node->data &= ~0x8; } } //=========================================================================== static int segLen(const StrTrieBase::Node * node) { assert(nodeType(node) == kNodeSeg); return 2 * (node->data[0] >> 4) + 2; } //=========================================================================== static const uint8_t * segData(const StrTrieBase::Node * node) { assert(nodeType(node) == kNodeSeg); return node->data + 1; } //=========================================================================== static uint8_t segVal(const StrTrieBase::Node * node, size_t pos) { assert(nodeType(node) == kNodeSeg); assert(pos < segLen(node)); auto ptr = node->data + 1; return pos % 2 == 0 ? (ptr[pos / 2] >> 4) : (ptr[pos / 2] & 0xf); } //=========================================================================== static void setSeg( StrTrieBase::Node * node, bool eok, size_t len, const uint8_t * key ) { assert(len && len <= 32 && len % 2 == 0); node->data[0] = kNodeSeg | (uint8_t(len / 2 - 1) << 4); setEndMarkFlag(node, eok); if (key) memcpy(node->data + 1, key, len / 2); } //=========================================================================== static uint8_t halfSegVal(const StrTrieBase::Node * node) { assert(nodeType(node) == kNodeHalfSeg); return node->data[0] >> 4; } //=========================================================================== static void setHalfSeg( StrTrieBase::Node * node, bool eok, size_t val ) { assert(val < 16); node->data[0] = kNodeHalfSeg | (int8_t(val) << 4); setEndMarkFlag(node, eok); } //=========================================================================== static uint16_t forkBits(const StrTrieBase::Node * node) { assert(nodeType(node) == kNodeFork); return ntoh16(node->data + 1); } //=========================================================================== static void setForkBits( StrTrieBase::Node * node, uint16_t bits ) { assert(nodeType(node) == kNodeFork); hton16(node->data + 1, bits); } //=========================================================================== static size_t forkLen(const StrTrieBase::Node * node) { assert(nodeType(node) == kNodeFork); return hammingWeight(forkBits(node)); } //=========================================================================== static pmr::vector<uint8_t> forkVals( SearchState * ss, const StrTrieBase::Node * node, int kval = -1 ) { assert(nodeType(node) == kNodeFork); pmr::vector<uint8_t> out(ss->heap); auto val = forkBits(node); if (kval > -1) val |= (0x8000 >> kval); out.reserve(hammingWeight(val)); for (uint8_t i = 0; val; ++i, val <<= 1) { if (val & 0x8000) out.push_back(i); } return out; } //=========================================================================== static bool forkBit(uint16_t bits, size_t val) { assert(val < kMaxForkBit); auto mask = 1u << (kMaxForkBit - val - 1); return bits & mask; } //=========================================================================== static bool forkBit(const StrTrieBase::Node * node, size_t val) { assert(nodeType(node) == kNodeFork); return forkBit(forkBits(node), val); } //=========================================================================== static uint16_t setForkBit(uint16_t bits, size_t val, bool enable) { assert(val < kMaxForkBit); auto mask = 1u << (kMaxForkBit - val - 1); if (enable) { bits |= mask; } else { bits &= ~mask; } return bits; } //=========================================================================== static void setForkBit( UpdateFork * fork, size_t val, bool enable ) { fork->kidBits = setForkBit(fork->kidBits, val, enable); } //=========================================================================== static int forkPos(uint16_t bits, size_t val) { assert(val < kMaxForkBit); return hammingWeight(bits >> (kMaxForkBit - val)); } //=========================================================================== static int forkPos(const StrTrieBase::Node * node, size_t val) { assert(nodeType(node) == kNodeFork); return forkPos(forkBits(node), val); } //=========================================================================== static void setFork( StrTrieBase::Node * node, bool eok, uint16_t bits ) { node->data[0] = kNodeFork; setEndMarkFlag(node, eok); setForkBits(node, bits); } //=========================================================================== static void setEndMark(StrTrieBase::Node * node) { node->data[0] = kNodeEndMark; setEndMarkFlag(node); } //=========================================================================== static pgno_t remotePage(StrTrieBase::Node * node) { assert(nodeType(node) == kNodeRemote); return (pgno_t) ntoh32(node->data + 1); } //=========================================================================== static int remotePos(StrTrieBase::Node * node) { assert(nodeType(node) == kNodeRemote); return (int) ntoh16(node->data + 5); } //=========================================================================== static void setRemoteRef(StrTrieBase::Node * node, pgno_t pgno, size_t inode) { node->data[0] = kNodeRemote; hton32(node->data + 1, pgno); hton16(node->data + 5, (uint16_t) inode); } //=========================================================================== static int nodeHdrLen(const StrTrieBase::Node * node) { switch (auto type = nodeType(node)) { default: assert(type == kNodeInvalid); assert(!"Invalid node type"); return 0; case kNodeSeg: return 1 + segLen(node) / 2; case kNodeHalfSeg: return 1; case kNodeFork: return 3; case kNodeEndMark: return 1; case kNodeRemote: return kRemoteNodeLen; } } //=========================================================================== static int nodeLen(const StrTrieBase::Node * node) { auto len = nodeHdrLen(node); switch (auto type = nodeType(node)) { default: assert(type == kNodeInvalid); assert(!"Invalid node type"); break; case kNodeSeg: if (!nodeEndMarkFlag(node)) len += nodeLen(node + len); break; case kNodeHalfSeg: break; case kNodeFork: for (auto i = 0; i < forkLen(node); ++i) len += nodeLen(node + len); break; case kNodeEndMark: break; case kNodeRemote: break; } assert(len > 0 && len < INT_MAX); return len; } //=========================================================================== static pmr::vector<pair<int, size_t>> kids( SearchState * ss, int inode ) { assert(inode < ss->pages->pageSize()); pmr::vector<pair<int, size_t>> out(ss->heap); auto root = ss->node - ss->inode + inode; auto len = nodeHdrLen(root); auto node = root + len; inode += len; switch (nodeType(root)) { case kNodeSeg: case kNodeHalfSeg: if (!nodeEndMarkFlag(root)) { auto len = nodeLen(node); out.emplace_back(inode, len); inode += len; node += len; } break; case kNodeFork: out.reserve(forkLen(root) + 1); for ([[maybe_unused]] auto&& val : forkVals(ss, root)) { auto len = nodeLen(node); out.emplace_back(inode, len); inode += len; node += len; } break; case kNodeEndMark: case kNodeRemote: break; default: assert(!"Invalid node type"); } return out; } //=========================================================================== // NodeRef helpers //=========================================================================== static void setUpdateRef(NodeRef * out, SearchState * ss) { out->page = { .type = PageRef::kUpdate }; out->data = { .pos = (int) ss->updates.size() }; } //=========================================================================== static void setSourceRef( NodeRef * out, SearchState * ss, size_t pos, size_t len ) { assert(pos && pos < INT_MAX); assert(len < INT_MAX); out->page = { .type = PageRef::kSource, .pgno = ss->pgno }; out->data = { .pos = (int) pos, .len = (int) len }; } //=========================================================================== static void setRemoteRef(NodeRef * out, SearchState * ss, pgno_t pgno) { out->page = { .type = PageRef::kVirtual, .pgno = pgno }; out->data = { .pos = 0, .len = kRemoteNodeLen }; } //=========================================================================== // UpdateNode helpers //=========================================================================== static int nodeLen(const UpdateBase & upd) { int len = 0; switch(upd.type) { default: assert(!"Invalid node type"); break; case kNodeSeg: len = 1 + static_cast<const UpdateSeg &>(upd).keyLen / 2; break; case kNodeHalfSeg: len = 1; break; case kNodeFork: len = 3; break; case kNodeEndMark: len = 1; break; case kNodeRemote: len = kRemoteNodeLen; break; } for (auto&& kid : upd.refs) { assert(kid.data.pos > -1 && kid.data.len > -1); len += kid.data.len; } return len; } //=========================================================================== // SearchState helpers //=========================================================================== static void seekPage(SearchState * ss, pgno_t pgno) { ss->pgno = pgno; } //=========================================================================== static void seekRootPage(SearchState * ss) { seekPage(ss, (pgno_t) ss->pages->root()); } //=========================================================================== static void allocPage(SearchState * ss) { ss->pgno = (pgno_t) ss->pages->create(); } //=========================================================================== static StrTrieBase::Node * getNode( SearchState * ss, pgno_t pgno, size_t pos ) { auto ptr = ss->pages->ptr(pgno); assert(ptr); assert(pos < ss->pages->pageSize()); return (StrTrieBase::Node *) (ptr + pos); } //=========================================================================== static StrTrieBase::Node * getNode(SearchState * ss, size_t pos) { return getNode(ss, ss->pgno, pos); } //=========================================================================== static void seekNode(SearchState * ss, size_t inode) { ss->inode = (int) inode; ss->node = getNode(ss, ss->inode); } /**************************************************************************** * * StrTrieBase::Iterator * ***/ //=========================================================================== StrTrieBase::Iterator & StrTrieBase::Iterator::operator++() { return *this; } /**************************************************************************** * * VirtualPage * ***/ //=========================================================================== VirtualPage::VirtualPage(TempHeap * heap) {} /**************************************************************************** * * SearchState * ***/ //=========================================================================== SearchState::SearchState(string_view key, IPageHeap * pages, TempHeap * heap) : key(key) , klen((int) key.size() * 2) , pages(pages) , heap(heap) , updates(heap) , vpages(heap) , spages(heap) { if (klen) kval = keyVal(key, kpos); } /**************************************************************************** * * Insert * ***/ //=========================================================================== // Allocs NodeRef pointing at next update node. static NodeRef * newRef(SearchState * ss) { auto ref = ss->heap->emplace<NodeRef>(); setUpdateRef(ref, ss); return ref; } //=========================================================================== // Allocs NodeRef pointing at position on current source page. static NodeRef * newRef(SearchState * ss, ptrdiff_t srcPos, size_t srcLen) { assert(srcPos >= 0); auto ref = ss->heap->emplace<NodeRef>(); setSourceRef(ref, ss, srcPos, srcLen); return ref; } //=========================================================================== // Allocs NodeRef pointing at node on remote virtual page. [[maybe_unused]] static NodeRef * newRef(SearchState * ss, pgno_t pgno) { assert(pgno >= 0); auto ref = ss->heap->emplace<NodeRef>(); setRemoteRef(ref, ss, pgno); return ref; } //=========================================================================== template <typename T> static T & newUpdate(SearchState * ss) { auto * upd = ss->heap->emplace<T>(); upd->id = (int) ss->updates.size(); upd->type = T::s_type; ss->updates.push_back(upd); return *upd; } //=========================================================================== static UpdateSeg & copySeg( SearchState * ss, size_t pos, size_t len, int halfSeg = -1, NodeRef * halfSegRef = nullptr ) { assert(nodeType(ss->node) == kNodeSeg); assert(pos + len <= segLen(ss->node)); assert(len && (len + (halfSeg > -1)) % 2 == 0); assert(halfSeg >= -1 && halfSeg <= 15); auto & upd = newUpdate<UpdateSeg>(ss); upd.keyLen = (int) len + (halfSeg > -1); auto len8 = upd.keyLen / 2; upd.key = ss->heap->alloc<uint8_t>(len8); auto data = segData(ss->node); if (pos % 2 == 0) { memcpy(upd.key, data + pos / 2, len8); } else { auto epos = pos + len; auto out = upd.key; for (; pos < epos; pos += 2) { uint8_t val = segVal(ss->node, pos) << 4; if (pos + 1 < epos) val |= segVal(ss->node, pos + 1); *out++ = val; } } if (halfSeg > -1) { upd.key[len8 - 1] |= halfSeg; if (!halfSegRef) { upd.endOfKey = true; } else { upd.refs = { halfSegRef, 1 }; } } else { if (nodeEndMarkFlag(ss->node) && pos + len == segLen(ss->node)) { upd.endOfKey = true; } else { auto ref = newRef(ss); upd.refs = { ref, 1 }; } } return upd; } //=========================================================================== // If the search should continue: // returns true // sets ss->node and ss->inode to the next node // If the search is over: // returns false // sets ss->found to true if the key was found, otherwise false static bool insertAtSeg(SearchState * ss) { // Will either split on first, middle, last, after last (possible if it's // the end of the key), or will advance to next node. auto spos = 0; // split point where key diverges from segment auto slen = segLen(ss->node); auto sval = segVal(ss->node, spos); assert(slen > 0); for (;;) { if (ss->kpos == ss->klen) { // Fork end of key with position in the segment. break; } if (ss->kval != sval) { // Fork in the segment. break; } if (++ss->kpos != ss->klen) ss->kval = keyVal(ss->key, ss->kpos); if (++spos == slen) { if (nodeEndMarkFlag(ss->node)) { if (ss->kpos == ss->klen) { // End of both segment and key? Key was found, abort. ss->found = true; return false; } // Fork with the end mark that's after the segment. break; } // Continue search at next node copySeg(ss, 0, slen); seekNode(ss, ss->inode + nodeHdrLen(ss->node)); return true; } sval = segVal(ss->node, spos); } // Replace segment with: // [lead seg] [lead half seg] // fork // [tail seg] [tail half seg] assert(spos <= slen); if (spos > 1) { auto & seg = copySeg(ss, 0, spos & ~1); if (seg.endOfKey) { seg.endOfKey = false; seg.refs = { newRef(ss), 1 }; } } if (spos % 2 == 1) { auto & halfSeg = newUpdate<UpdateHalfSeg>(ss); halfSeg.nibble = segVal(ss->node, spos - 1); auto ref = newRef(ss); halfSeg.refs = {ref, 1}; } auto & fork = newUpdate<UpdateFork>(ss); if (spos == slen) { assert(ss->kpos < ss->klen); fork.endOfKey = true; auto ref = newRef(ss); fork.refs = {ref, 1}; setForkBit(&fork, ss->kval, true); } else { auto tail = ss->node + nodeHdrLen(ss->node); auto nrefs = 2; setForkBit(&fork, sval, true); if (ss->kpos == ss->klen) { fork.endOfKey = true; nrefs = 1; } else { setForkBit(&fork, ss->kval, true); } fork.refs = ss->heap->allocSpan<NodeRef>(nrefs); fork.refs[0].page = { .type = PageRef::kUpdate }; fork.refs[0].data.pos = (int) ss->updates.size(); spos += 1; // Advance past the val that's in the fork node. if ((slen - spos) % 2 == 1 && nodeType(tail) == kNodeHalfSeg) { // Combined seg with following halfSeg. auto ref = (NodeRef *) nullptr; if (!nodeEndMarkFlag(tail)) { // Ref to node after following halfSeg. auto inext = ss->inode + tail - ss->node + nodeHdrLen(tail); ref = newRef( ss, inext, nodeLen(ss->node - ss->inode + inext) ); } copySeg( ss, spos, slen - spos, halfSegVal(tail), ref ); } else if (slen - spos > 1) { // Add seg. copySeg(ss, spos, (slen - spos) & ~1); if ((slen - spos) % 2 == 1) { // Add following halfSeg. auto & halfSeg = newUpdate<UpdateHalfSeg>(ss); halfSeg.nibble = segVal(ss->node, slen - 1); if (nodeEndMarkFlag(ss->node)) { halfSeg.endOfKey = true; } else { auto ref = newRef( ss, ss->inode + tail - ss->node, nodeLen(tail) ); halfSeg.refs = {ref, 1}; } } } if (ss->kpos == ss->klen) { ss->found = false; return false; } setUpdateRef(&fork.refs[1], ss); if (ss->kval < sval) swap(fork.refs[0], fork.refs[1]); } // Continue processing the key. if (++ss->kpos == ss->klen) { [[maybe_unused]] auto & eok = newUpdate<UpdateEndMark>(ss); } else { ss->kval = keyVal(ss->key, ss->kpos); } ss->found = false; return false; } //=========================================================================== static UpdateHalfSeg & copyHalfSeg(SearchState * ss) { assert(nodeType(ss->node) == kNodeHalfSeg); auto & upd = newUpdate<UpdateHalfSeg>(ss); upd.nibble = halfSegVal(ss->node); if (nodeEndMarkFlag(ss->node)) { upd.endOfKey = true; } else { auto ref = newRef(ss); upd.refs = { ref, 1 }; } return upd; } //=========================================================================== // Returns true if there is more to do; otherwise false and sets ss->found static bool insertAtHalfSeg (SearchState * ss) { // Will either split on key or will advance to next node. auto sval = halfSegVal(ss->node); for (;;) { if (ss->kpos == ss->klen) break; if (ss->kval != sval) break; if (++ss->kpos != ss->klen) ss->kval = keyVal(ss->key, ss->kpos); if (nodeEndMarkFlag(ss->node)) { if (ss->kpos == ss->klen) { ss->found = true; return false; } break; } // Continue search at next node copyHalfSeg(ss); seekNode(ss, ss->inode + nodeHdrLen(ss->node)); return true; } auto & fork = newUpdate<UpdateFork>(ss); auto tail = ss->node + nodeHdrLen(ss->node); auto nrefs = 2; setForkBit(&fork, sval, true); if (ss->kpos == ss->klen) { fork.endOfKey = true; nrefs = 1; } else { setForkBit(&fork, ss->kval, true); } fork.refs = ss->heap->allocSpan<NodeRef>(nrefs); if (nodeEndMarkFlag(ss->node)) { setUpdateRef(&fork.refs[0], ss); [[maybe_unused]] auto & emark = newUpdate<UpdateEndMark>(ss); } else { setSourceRef( &fork.refs[0], ss, ss->inode + nodeHdrLen(ss->node), nodeLen(tail) ); } if (nrefs == 2) { setUpdateRef(&fork.refs[1], ss); if (ss->kval < sval) swap(fork.refs[0], fork.refs[1]); if (++ss->kpos == ss->klen) { [[maybe_unused]] auto & eok = newUpdate<UpdateEndMark>(ss); } else { ss->kval = keyVal(ss->key, ss->kpos); } } ss->found = false; return false; } //=========================================================================== static UpdateFork & copyFork(SearchState * ss, int * inext) { assert(nodeType(ss->node) == kNodeFork); auto & upd = newUpdate<UpdateFork>(ss); if (ss->kpos == ss->klen) { upd.endOfKey = true; auto count = forkLen(ss->node); upd.refs = ss->heap->allocSpan<NodeRef>(count); auto len = nodeHdrLen(ss->node); for (auto i = 0; i < count; ++i) { setSourceRef( &upd.refs[i], ss, ss->inode + len, nodeLen(ss->node + len) ); len += upd.refs[i].data.len; } return upd; } upd.endOfKey = nodeEndMarkFlag(ss->node); upd.kidBits = setForkBit(forkBits(ss->node), ss->kval, true); auto vals = forkVals(ss, ss->node, ss->kval); upd.refs = ss->heap->allocSpan<NodeRef>(vals.size()); auto i = 0; auto len = nodeHdrLen(ss->node); for (; vals[i] < ss->kval; ++i) { setSourceRef( &upd.refs[i], ss, ss->inode + len, nodeLen(ss->node + len) ); len += upd.refs[i].data.len; } *inext = ss->inode + len; setUpdateRef(&upd.refs[i], ss); if (upd.kidBits == forkBits(ss->node)) len += nodeLen(ss->node + len); i += 1; for (; i < vals.size(); ++i) { setSourceRef( &upd.refs[i], ss, ss->inode + len, nodeLen(ss->node + len) ); len += upd.refs[i].data.len; } return upd; } //=========================================================================== // Returns true if there is more to do; otherwise false and sets ss->found static bool insertAtFork (SearchState * ss) { // Will either add branch to fork, or will advance to next node. int inext; if (ss->kpos == ss->klen) { if (!nodeEndMarkFlag(ss->node)) { copyFork(ss, &inext); ss->found = false; } else { ss->found = true; } return false; } copyFork(ss, &inext); auto matched = forkBit(ss->node, ss->kval); seekNode(ss, inext); ss->kval = keyVal(ss->key, ++ss->kpos); if (matched) { return true; } else { ss->found = false; return false; } } //=========================================================================== // Returns true if there is more to do; otherwise false and sets ss->found static bool insertAtEndMark(SearchState * ss) { if (ss->kpos == ss->klen) { ss->found = true; } else { auto & fork = newUpdate<UpdateFork>(ss); fork.endOfKey = true; setForkBit(&fork, ss->kval, true); auto ref = newRef(ss); fork.refs = {ref, 1}; ss->found = false; } return false; } //=========================================================================== // Returns true if there is more to do; otherwise false and sets ss->found static bool insertAtRemote(SearchState * ss) { auto pos = remotePos(ss->node); seekPage(ss, remotePage(ss->node)); ss->spages.insert(ss->pgno); seekNode(ss, pos); return true; } //=========================================================================== static void addSegs(SearchState * ss) { assert(ss->kpos <= ss->klen); while (int slen = ss->klen - ss->kpos) { if (slen == 1) { auto & upd = newUpdate<UpdateHalfSeg>(ss); upd.endOfKey = true; upd.nibble = keyVal(ss->key, ss->kpos); return; } auto & upd = newUpdate<UpdateSeg>(ss); if (slen > kMaxSegLen) { upd.keyLen = kMaxSegLen; upd.refs = { newRef(ss), 1 }; } else if (slen % 2 == 1) { upd.keyLen = slen & ~1; upd.refs = { newRef(ss), 1 }; } else { upd.keyLen = slen; upd.endOfKey = true; } upd.key = ss->heap->alloc<uint8_t>(upd.keyLen / 2); for (auto spos = 0u; spos < upd.keyLen; ++spos, ++ss->kpos) { auto val = keyVal(ss->key, ss->kpos); if (spos % 2 == 0) { upd.key[spos / 2] = val << 4; } else { upd.key[spos / 2] |= val; } } } } //=========================================================================== static void copyAny(SearchState * ss, const UpdateBase & upd) { if (upd.type == kNodeSeg) { auto & seg = static_cast<const UpdateSeg &>(upd); setSeg(ss->node, seg.endOfKey, seg.keyLen, seg.key); } else if (upd.type == kNodeHalfSeg) { auto & half = static_cast<const UpdateHalfSeg &>(upd); setHalfSeg(ss->node, half.endOfKey, half.nibble); } else if (upd.type == kNodeFork) { auto & fork = static_cast<const UpdateFork &>(upd); setFork(ss->node, fork.endOfKey, fork.kidBits); } else if (upd.type == kNodeEndMark) { [[maybe_unused]] auto & mark = static_cast<const UpdateEndMark &>(upd); setEndMark(ss->node); } else { assert(upd.type == kNodeRemote); auto & rref = static_cast<const UpdateRemote &>(upd); setRemoteRef(ss->node, rref.page.pgno, rref.pos); } seekNode(ss, ss->inode += nodeHdrLen(ss->node)); for (auto&& ref : upd.refs) { if (ref.page.type == PageRef::kUpdate) { copyAny(ss, *ss->updates[ref.data.pos]); } else { assert(ref.page.type == PageRef::kSource); auto node = getNode(ss, ref.page.pgno, ref.data.pos); assert(nodeLen(node) == ref.data.len); memcpy(ss->node, node, ref.data.len); seekNode(ss, ss->inode + ref.data.len); } } } //=========================================================================== static void applyUpdates(SearchState * ss) { // From updated nodes, generate: // - child to parent graph // - vector of leaf nodes // - set of involved source pages struct UpdateInfo { UpdateBase * upd = {}; int parent = -1; size_t kidPos = 0; // for leaf: 0 // for branch: 1 + number of unprocessed kids size_t unprocessed = 0; }; vector<UpdateInfo> infos(ss->updates.size()); vector<int> unblocked; for (auto&& upd : ss->updates) { auto id = upd->id; auto & ui = infos[id]; ui.upd = upd; bool branch = false; auto pos = -1; for (auto&& kid : ui.upd->refs) { pos += 1; if (kid.page.type == PageRef::kUpdate) { assert(kid.data.pos < infos.size()); assert(infos[kid.data.pos].parent == -1); ui.unprocessed += 1; infos[kid.data.pos].parent = id; infos[kid.data.pos].kidPos = pos; branch = true; } else { assert(kid.page.type == PageRef::kSource); branch = true; } } if (branch) ui.unprocessed += 1; if (ui.unprocessed < 2) unblocked.push_back(id); } assert(!unblocked.empty()); // Process updated nodes and related fringe nodes into virtual pages. Start // with leaf nodes, with branches becoming unblocked for processing when // all their leaves are done. Continues all the way up until the root node // is processed. Child virtual pages are merged up into their parents when // possible. for (;;) { auto id = unblocked.back(); unblocked.pop_back(); auto & ui = infos[id]; auto & upd = *ui.upd; assert(upd.len == -1); for (auto&& kid : upd.refs) { if (kid.page.type == PageRef::kSource) { assert(kid.data.len > 0); auto knode = getNode(ss, kid.page.pgno, kid.data.pos); kid.data.len = nodeLen(knode); } else { assert(kid.page.type == PageRef::kUpdate); assert(kid.data.len == -1); auto kupd = ss->updates[kid.data.pos]; kid.data.len = nodeLen(*kupd); } } upd.len = nodeLen(upd); if (ui.unprocessed) { // internal branch assert(ui.unprocessed == 1); if (upd.len > ss->pages->pageSize()) { for (auto&& ref : upd.refs) { auto & vpage = ss->vpages.emplace_back(ss->heap); vpage.root = ref; setRemoteRef(&ref, ss, (pgno_t) ss->vpages.size() - 1); } upd.len = nodeLen(upd); } } // Update reference from parent if (ui.parent == -1) { // Adding root node as a leaf, must be adding first key to this // previously empty container. assert(unblocked.empty()); auto & vpage = ss->vpages.emplace_back(ss->heap); vpage.root.page.type = PageRef::kUpdate; vpage.root.data.pos = id; vpage.root.data.len = upd.len; break; } auto & pi = infos[ui.parent]; assert(pi.unprocessed > 1); if (--pi.unprocessed == 1) { // Parent has had all children processed, queue for // processing. unblocked.push_back(ui.parent); } } // Allocate and populate new and replaced pages. for (auto&& vpage : ss->vpages) { assert(vpage.root.page.type == PageRef::kUpdate); allocPage(ss); seekNode(ss, 0); vpage.targetPgno = ss->pgno; auto & ui = infos[vpage.root.data.pos]; copyAny(ss, *ui.upd); } ss->pages->setRoot(ss->vpages.back().targetPgno); // Destroy replaced source pages. for (auto&& id : ss->spages) ss->pages->destroy(id); } //=========================================================================== // Returns true if key was inserted, false if it was already present. bool StrTrieBase::insert(string_view key) { TempHeap heap; auto ss = heap.emplace<SearchState>(key, m_pages, &heap); if (!empty()) { seekRootPage(ss); ss->spages.insert(ss->pgno); seekNode(ss, ss->inode); for (;;) { switch (auto ntype = ::nodeType(ss->node)) { case kNodeSeg: if (insertAtSeg(ss)) continue; break; case kNodeHalfSeg: if (insertAtHalfSeg(ss)) continue; break; case kNodeFork: if (insertAtFork(ss)) continue; break; case kNodeEndMark: if (insertAtEndMark(ss)) continue; break; case kNodeRemote: if (insertAtRemote(ss)) continue; break; default: logMsgFatal() << "Invalid StrTrieBase node type: " << (int) ntype; } if (ss->found) return false; break; } } // Add any trailing key segments. addSegs(ss); // Apply pending updates if (!ss->updates.empty()) applyUpdates(ss); // was an insert; return true return true; } /**************************************************************************** * * Erase * ***/ //=========================================================================== // Returns true if there is more to do static bool findLastForkAtFork(SearchState * ss) { if (ss->kpos == ss->klen) { ss->found = nodeEndMarkFlag(ss->node); return false; } if (!forkBit(ss->node, ss->kval)) return false; auto vals = forkVals(ss, ss->node); auto subs = kids(ss, ss->inode); auto i = 0; for (; i < vals.size(); ++i) { if (vals[i] == ss->kval) { ss->fpno = ss->pgno; ss->ifork = subs[i].first; ss->fpos = ss->kpos; break; } } ss->kval = keyVal(ss->key, ++ss->kpos); auto sub = subs.back(); seekNode(ss, sub.first + sub.second); return true; } //=========================================================================== // Returns true if there is more to do, otherwise false and sets ss->found if // key was matched. static bool findLastForkAtSeg(SearchState * ss) { auto slen = segLen(ss->node); if (ss->klen - ss->kpos < slen) return false; for (auto spos = 0; spos < slen; ++spos) { auto sval = segVal(ss->node, spos); if (sval != ss->kval) return false; ss->kval = keyVal(ss->key, ++ss->kpos); } if (ss->kpos == ss->klen) { ss->found = nodeEndMarkFlag(ss->node); return false; } seekNode(ss, ss->inode + nodeHdrLen(ss->node)); return !nodeEndMarkFlag(ss->node); } //=========================================================================== static void findLastFork(SearchState * ss) { ss->ifork = ss->inode; ss->fpos = 0; for (;;) { seekNode(ss, ss->inode); switch (auto ntype = ::nodeType(ss->node)) { case kNodeSeg: if (!findLastForkAtSeg(ss)) return; break; case kNodeFork: if (!findLastForkAtFork(ss)) return; break; default: logMsgFatal() << "Invalid StrTrieBase node type: " << (int) ntype; } } } //=========================================================================== bool StrTrieBase::erase(string_view key) { if (empty()) return false; TempHeap heap; auto ss = heap.emplace<SearchState>(key, m_pages, &heap); seekRootPage(ss); findLastFork(ss); if (!ss->found) return false; seekNode(ss, ss->ifork); ss->kpos = ss->fpos; return true; } /**************************************************************************** * * Find * ***/ //=========================================================================== static bool containsAtSeg(SearchState * ss) { auto spos = 0; auto slen = segLen(ss->node); auto sval = segVal(ss->node, spos); if (ss->klen - ss->kpos < slen) return false; for (;;) { if (ss->kval != sval) return false; if (++ss->kpos != ss->klen) ss->kval = keyVal(ss->key, ss->kpos); if (++spos == slen) { if (nodeEndMarkFlag(ss->node)) { if (ss->kpos == ss->klen) { ss->found = true; return false; } return false; } seekNode(ss, ss->inode + nodeHdrLen(ss->node)); return true; } sval = segVal(ss->node, spos); } } //=========================================================================== static bool containsAtHalfSeg(SearchState * ss) { if (ss->kpos == ss->klen) return false; auto sval = halfSegVal(ss->node); if (ss->kval != sval) return false; if (++ss->kpos == ss->klen) { if (nodeEndMarkFlag(ss->node)) ss->found = true; return false; } if (nodeEndMarkFlag(ss->node)) return false; ss->kval = keyVal(ss->key, ss->kpos); return true; } //=========================================================================== static bool containsAtFork(SearchState * ss) { if (ss->kpos == ss->klen) { ss->found = nodeEndMarkFlag(ss->node); return false; } if (!forkBit(ss->node, ss->kval)) return false; auto root = ss->node - ss->inode; auto inext = ss->inode + nodeHdrLen(ss->node); auto pos = forkPos(ss->node, ss->kval); for (auto i = 0; i < pos; ++i) { inext += nodeLen(root + inext); } seekNode(ss, inext); if (++ss->kpos < ss->klen) ss->kval = keyVal(ss->key, ss->kpos); return true; } //=========================================================================== static bool containsAtEndMark(SearchState * ss) { if (ss->kpos == ss->klen) ss->found = true; return false; } //=========================================================================== static bool containsAtRemote(SearchState * ss) { auto pos = remotePos(ss->node); seekPage(ss, remotePage(ss->node)); seekNode(ss, pos); return true; } //=========================================================================== bool StrTrieBase::contains(string_view key) const { if (empty()) return false; TempHeap heap; auto ss = heap.emplace<SearchState>(key, m_pages, &heap); seekRootPage(ss); seekNode(ss, ss->inode); for (;;) { switch (auto ntype = ::nodeType(ss->node)) { case kNodeSeg: if (containsAtSeg(ss)) continue; break; case kNodeHalfSeg: if (containsAtHalfSeg(ss)) continue; break; case kNodeFork: if (containsAtFork(ss)) continue; break; case kNodeEndMark: if (containsAtEndMark(ss)) continue; break; case kNodeRemote: if (containsAtRemote(ss)) continue; break; default: logMsgFatal() << "Invalid StrTrieBase node type: " << (int) ntype; } return ss->found; } } /**************************************************************************** * * Misc * ***/ //=========================================================================== StrTrieBase::Iterator StrTrieBase::begin() const { return Iterator{}; } //=========================================================================== StrTrieBase::Iterator StrTrieBase::end() const { return Iterator{}; } //=========================================================================== static ostream & dumpAny(ostream & os, SearchState * ss) { os << setw(5) << ss->inode << ": "; auto len = nodeHdrLen(ss->node); for (auto i = 0; i < len; ++i) { if (i % 4 == 1) os.put(' '); if (auto val = ss->node->data[i]) { hexByte(os, ss->node->data[i]); } else { os << "--"; } } os << ' '; switch (auto ntype = nodeType(ss->node)) { case kNodeSeg: os << " Seg[" << segLen(ss->node) << "]"; if (nodeEndMarkFlag(ss->node)) os << ", EOK"; break; case kNodeHalfSeg: os << " Half Seg, " << (int) halfSegVal(ss->node); if (nodeEndMarkFlag(ss->node)) os << ", EOK"; break; case kNodeFork: os << " Fork,"; if (nodeEndMarkFlag(ss->node)) os << " EOK"; for (auto&& pos : forkVals(ss, ss->node)) os << ' ' << (int) pos; break; case kNodeEndMark: os << " EOK"; break; case kNodeRemote: os << " Remote, " << remotePage(ss->node) << ':' << remotePos(ss->node); break; default: os << " UNKNOWN(" << ntype << ")"; break; } auto subs = kids(ss, ss->inode); if (!subs.empty()) { os << " // "; for (auto & kid : subs) os << kid.first << ' '; } os << '\n'; for (auto & kid : subs) { seekNode(ss, kid.first); dumpAny(os, ss); } return os; } //=========================================================================== ostream & StrTrieBase::dump(ostream & os) const { if (empty()) return os; TempHeap heap; auto ss = heap.emplace<SearchState>(string_view{}, m_pages, &heap); seekRootPage(ss); seekNode(ss, 0); return dumpAny(os, ss); }
29.445912
79
0.455755
gknowles
096b9d70fcad92e5c144141688f96f86c1e74089
275
cpp
C++
Floor Of Array.cpp
Subhash3/Algorithms-For-Software-Developers
2e0ac4f51d379a2b10a40fca7fa82a8501d3db94
[ "BSD-2-Clause" ]
2
2021-10-01T04:20:04.000Z
2021-10-01T04:20:06.000Z
Floor Of Array.cpp
Subhash3/Algorithms-For-Software-Developers
2e0ac4f51d379a2b10a40fca7fa82a8501d3db94
[ "BSD-2-Clause" ]
1
2021-10-01T18:00:09.000Z
2021-10-01T18:00:09.000Z
Floor Of Array.cpp
Subhash3/Algorithms-For-Software-Developers
2e0ac4f51d379a2b10a40fca7fa82a8501d3db94
[ "BSD-2-Clause" ]
8
2021-10-01T04:20:38.000Z
2022-03-19T17:05:05.000Z
int findFloor(vector<long long> v, long long n, long long x){ int in=-1; int min=INT_MAX; for(int i=0;i<n;i++){ if(x>=v[i]&&abs(x-v[i])<min){ in=i; min=x-v[i]; } } return in; }
22.916667
61
0.385455
Subhash3
096d504acf71c97e7600ed86b5ea9e811bd54a00
1,559
hpp
C++
components/rgbd-sources/src/sources/stereovideo/pylon.hpp
knicos/voltu
70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01
[ "MIT" ]
4
2020-12-28T15:29:15.000Z
2021-06-27T12:37:15.000Z
components/rgbd-sources/src/sources/stereovideo/pylon.hpp
knicos/voltu
70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01
[ "MIT" ]
null
null
null
components/rgbd-sources/src/sources/stereovideo/pylon.hpp
knicos/voltu
70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01
[ "MIT" ]
2
2021-01-13T05:28:39.000Z
2021-05-04T03:37:11.000Z
#pragma once #ifndef _FTL_RGBD_PYLONDEVICE_HPP_ #define _FTL_RGBD_PYLONDEVICE_HPP_ #include "device.hpp" #include <string> namespace Pylon { class CBaslerUniversalInstantCamera; class CGrabResultPtr; } namespace ftl { namespace rgbd { namespace detail { class PylonDevice : public ftl::rgbd::detail::Device { public: explicit PylonDevice(nlohmann::json &config); ~PylonDevice(); static std::vector<DeviceDetails> listDevices(); bool grab() override; bool get(ftl::rgbd::Frame &frame, StereoRectification *c, cv::cuda::Stream &stream) override; unsigned int width() const override { return fullwidth_; } unsigned int height() const override { return fullheight_; } double getTimestamp() const override { return 0.0; } bool isStereo() const override { return lcam_ && rcam_; } bool isReady() const; void populateMeta(std::map<std::string,std::string> &meta) const override; private: bool ready_; Pylon::CBaslerUniversalInstantCamera *lcam_; Pylon::CBaslerUniversalInstantCamera *rcam_; cv::Mat tmp_; uint32_t fullwidth_; uint32_t fullheight_; std::string name_; std::string serial_; int left_fail_=0; int right_fail_=0; int buffer_size_=1; cv::cuda::HostMem left_hm_; cv::cuda::HostMem right_hm_; cv::Mat rtmp_; cv::Mat ltmp_; int interpolation_; std::atomic_bool monitor_; ftl::Handle temperature_monitor_; void _configureCamera(Pylon::CBaslerUniversalInstantCamera *cam); bool _retrieveFrames(Pylon::CGrabResultPtr &result, Pylon::CBaslerUniversalInstantCamera *cam); }; } } } #endif // _FTL_RGBD_PYLON_HPP_
22.594203
96
0.760103
knicos
096dcb72e99251322d92755ff23eb35b927ceb12
1,367
cpp
C++
src/CwApplication.cpp
asanoic/catwalk
8ce002278c03915a98477a111737f70c6a5e519d
[ "OLDAP-2.3" ]
1
2020-11-13T20:24:12.000Z
2020-11-13T20:24:12.000Z
src/CwApplication.cpp
asanoic/catwalk
8ce002278c03915a98477a111737f70c6a5e519d
[ "OLDAP-2.3" ]
null
null
null
src/CwApplication.cpp
asanoic/catwalk
8ce002278c03915a98477a111737f70c6a5e519d
[ "OLDAP-2.3" ]
null
null
null
#include "CwApplication.h" #include "CwApplicationData.h" #include <iostream> #include <memory> #include <thread> using namespace std; #include "engine/listener.h" #include "engine/utils.h" void __attribute__((constructor)) initForOpenFileLimited() { #ifdef __MINGW64__ _setmaxstdio(2048); #endif } CW_OBJECT_CONSTRUCTOR(CwApplication, CwRouter) { CW_GET_DATA(CwApplication); d->threads = max<int>(1, thread::hardware_concurrency()); } int CwApplication::start(uint16_t port) noexcept { CW_GET_DATA(CwApplication); asio::io_context ioc(d->threads); auto listener = make_unique<CwListener>( ioc, ip::tcp::endpoint(ip::address(), port), bind(&CwApplicationData::handler, d, placeholders::_1, placeholders::_2, CwRouterData::kEmptyCall)); listener->run(); asio::signal_set signals(ioc, SIGINT, SIGTERM); signals.async_wait(bind(&asio::io_context::stop, &ioc)); vector<thread> v; v.reserve(d->threads - 1); for (auto i = d->threads - 1; i > 0; --i) v.emplace_back(&asio::io_context::run, &ioc); ioc.run(); // If we get here, it means we got a SIGINT or SIGTERM for (auto& t : v) t.join(); return EXIT_SUCCESS; } int CwApplication::threads() noexcept { CW_GET_DATA(CwApplication); return d->threads; }
25.314815
109
0.650329
asanoic
0979afe0a6e6a95dfbfc910549edb8459ba846c1
915
cpp
C++
test/algorithms/math/test_valid_perfect_square.cpp
iamantony/CppNotes
2707db6560ad80b0e5e286a04b2d46e5c0280b3f
[ "MIT" ]
2
2020-07-31T14:13:56.000Z
2021-02-03T09:51:43.000Z
test/algorithms/math/test_valid_perfect_square.cpp
iamantony/CppNotes
2707db6560ad80b0e5e286a04b2d46e5c0280b3f
[ "MIT" ]
28
2015-09-22T07:38:21.000Z
2018-10-02T11:00:58.000Z
test/algorithms/math/test_valid_perfect_square.cpp
iamantony/CppNotes
2707db6560ad80b0e5e286a04b2d46e5c0280b3f
[ "MIT" ]
2
2018-10-11T14:10:50.000Z
2021-02-27T08:53:50.000Z
#include <boost/test/unit_test.hpp> #include "algorithms/math/valid_perfect_square.hpp" BOOST_AUTO_TEST_SUITE(TestValidPerfectSquare) BOOST_AUTO_TEST_CASE(test_vps_check) { ValidPerfectSquare::Solution solution; BOOST_CHECK(false == solution.isPerfectSquare(0)); BOOST_CHECK(true == solution.isPerfectSquare(1)); BOOST_CHECK(false == solution.isPerfectSquare(2)); BOOST_CHECK(false == solution.isPerfectSquare(3)); BOOST_CHECK(true == solution.isPerfectSquare(4)); BOOST_CHECK(false == solution.isPerfectSquare(7)); BOOST_CHECK(true == solution.isPerfectSquare(9)); BOOST_CHECK(false == solution.isPerfectSquare(15)); BOOST_CHECK(true == solution.isPerfectSquare(16)); BOOST_CHECK(true == solution.isPerfectSquare(256)); BOOST_CHECK(false == solution.isPerfectSquare(257)); BOOST_CHECK(false == solution.isPerfectSquare(125348)); } BOOST_AUTO_TEST_SUITE_END()
38.125
59
0.75847
iamantony
097a5ac722d9f049e8413f4010025840d121e6da
532
hpp
C++
include/mnps.hpp
owlas/magpy
45c1332209154ef6be863e4797054a0b642493ec
[ "BSD-3-Clause" ]
5
2017-11-13T21:55:45.000Z
2020-12-29T10:42:41.000Z
include/mnps.hpp
owlas/magpy
45c1332209154ef6be863e4797054a0b642493ec
[ "BSD-3-Clause" ]
9
2017-10-06T09:30:08.000Z
2018-02-17T17:17:38.000Z
include/mnps.hpp
owlas/magpy
45c1332209154ef6be863e4797054a0b642493ec
[ "BSD-3-Clause" ]
2
2017-11-24T16:18:46.000Z
2020-06-08T11:54:40.000Z
// mnps.hpp // // structs for magnetic nanoparticles #ifndef MNP_H #define MNP_H #include <array> namespace mnp { using axis = std::array<double,3>; struct params { double gamma; double alpha; double saturation_mag; double diameter; double anisotropy; axis anisotropy_axis; }; struct norm_params { double gamma; double alpha; double stability; double volume; double temperature; axis anisotropy_axis; }; } #endif
17.16129
38
0.597744
owlas
097a63a796b6294c81238f64ffb288d36635652d
9,727
cpp
C++
interface/posix/src/posix.cpp
ArcticNature/core
bb63529a6deadc83e5adc3b772738ab6ca6ba18a
[ "BSD-3-Clause" ]
null
null
null
interface/posix/src/posix.cpp
ArcticNature/core
bb63529a6deadc83e5adc3b772738ab6ca6ba18a
[ "BSD-3-Clause" ]
null
null
null
interface/posix/src/posix.cpp
ArcticNature/core
bb63529a6deadc83e5adc3b772738ab6ca6ba18a
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2015 Stefano Pogliani <stefano@spogliani.net> #include "core/interface/posix.h" #include <fcntl.h> #include <libgen.h> #include <stdio.h> #include <string.h> #include <sys/eventfd.h> #include <sys/signalfd.h> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> #include <string> #include "core/exceptions/base.h" using sf::core::exception::ErrNoException; using sf::core::exception::GroupNotFound; using sf::core::exception::UserNotFound; using sf::core::interface::Posix; Posix::~Posix() {} // Environment. int Posix::clearenv() { return ::clearenv(); } char* Posix::getenv(const char* name) { return ::getenv(name); } int Posix::setenv(const char* name, const char* value, int overwrite) { return ::setenv(name, value, overwrite); } // Files. char* Posix::dirname(char* path) { return ::dirname(path); } int Posix::lstat(const char* path, struct stat* buf) { return ::lstat(path, buf); } int Posix::stat(const char* path, struct stat* buf) { return ::stat(path, buf); } ssize_t Posix::readlink(const char* path, char* buf, size_t size) { return ::readlink(path, buf, size); } int Posix::unlink(const char* path) { CHECK_ZERO_ERRNO(::unlink, "Unable to unlink file:", path); return 0; } // File descriptors. int Posix::close(int fd, bool silent) { int res = ::close(fd); if (!silent && res == -1) { throw ErrNoException("Unable to close file descriptor:"); } return res; } int Posix::dup(int fd) { int res = ::dup(fd); if (fd == -1) { throw ErrNoException("Unable to dup fd:"); } return res; } int Posix::eventfd(unsigned int initval, int flags) { return ::eventfd(initval, flags); } int Posix::fcntl(int fd, int cmd, int option) { int res = ::fcntl(fd, cmd, option); if (res == -1) { throw ErrNoException("fcntl error:"); } return res; } int Posix::fileno(FILE* stream) { return ::fileno(stream); } FILE* Posix::freopen(const char* path, const char* mode, FILE* stream) { return ::freopen(path, mode, stream); } int Posix::open(const char* path, int flags, mode_t mode) { int fd = ::open(path, flags, mode); if (fd == -1) { throw ErrNoException("Unable to open file:"); } return fd; } int Posix::pipe(int ends[2], int flags) { int res = ::pipe2(ends, flags | O_CLOEXEC); if (res == -1) { throw ErrNoException("Unable to create pipe:"); } return res; } ssize_t Posix::read(int fd, void *buf, size_t count, bool silent) { int res = ::read(fd, buf, count); if (!silent && res == -1) { // Check if error is EAGAIN and ignore that. if (errno != EAGAIN) { throw ErrNoException("Read error:"); } res = 0; } return res; } ssize_t Posix::write(int fd, const void* buf, size_t size) { int res = ::write(fd, buf, size); if (res == -1) { throw ErrNoException("Write error:"); } return res; } // Epoll. int Posix::epoll_control( int epoll_fd, int op, int fd, epoll_event* event ) { int result = ::epoll_ctl(epoll_fd, op, fd, event); if (result == -1) { throw ErrNoException("Epoll control failed:"); } return result; } int Posix::epoll_create(int flags) { int fd = ::epoll_create1(flags); if (fd == -1) { throw ErrNoException("EPoll create failed:"); } return fd; } int Posix::epoll_wait( int epfd, epoll_event* events, int max, int timeout ) { int result = ::epoll_wait(epfd, events, max, timeout); if (result == -1) { throw ErrNoException("Epoll wait failed:"); } return result; } // Memory. void* Posix::malloc(size_t size) { return ::malloc(size); } void Posix::free(void* block) { ::free(block); } char* Posix::strncpy(char* dest, const char* src, size_t len) { return ::strncpy(dest, src, len); } // Network. int Posix::gethostname(char* name, size_t len) { CHECK_ZERO_ERRNO( ::gethostname, "Unable to lookup hostname:", name, len ); return 0; } // Others. unsigned int Posix::sleep(unsigned int seconds) { return ::sleep(seconds); } // Poll. int Posix::poll(struct pollfd* fds, nfds_t nfds, int timeout) { return ::poll(fds, nfds, timeout); } // Process. void Posix::exit(int status) { ::exit(status); } int Posix::execvp(const char* file, char* const argv[]) { return ::execvp(file, argv); } pid_t Posix::fork() { return ::fork(); } int Posix::kill(pid_t pid, int sig) { return ::kill(pid, sig); } pid_t Posix::waitpid(pid_t pid, int* status, int options) { return ::waitpid(pid, status, options); } int Posix::chdir(const char* path) { return ::chdir(path); } char* Posix::getcwd(char* buf, size_t size) { return ::getcwd(buf, size); } pid_t Posix::getpid() { return ::getpid(); } pid_t Posix::getppid() { return ::getppid(); } pid_t Posix::setsid() { return ::setsid(); } // Signals. int Posix::sigaddset(sigset_t* set, int signal) { int res = ::sigaddset(set, signal); if (res == -1) { throw ErrNoException("Unable to create sigaddset:"); } return res; } int Posix::sigemptyset(sigset_t* set) { int res = ::sigemptyset(set); if (res == -1) { throw ErrNoException("Unable to create sigemptyset:"); } return res; } int Posix::sigfillset(sigset_t* set) { int res = ::sigfillset(set); if (res == -1) { throw ErrNoException("Unable to create sigfillset:"); } return res; } int Posix::signalfd(int fd, const sigset_t *mask, int flags) { int res = ::signalfd(fd, mask, flags); if (res == -1) { throw ErrNoException("Unable to create signalfd:"); } return res; } int Posix::sigprocmask( int how, const sigset_t* set, sigset_t* oldset ) { int res = ::sigprocmask(how, set, oldset); if (res == -1) { throw ErrNoException("Unable to mask signals:"); } return res; } // Socket. int Posix::accept( int sockfd, struct sockaddr* addr, socklen_t* addrlen, int flags ) { int res = ::accept4(sockfd, addr, addrlen, flags); if (res == -1) { throw ErrNoException("Unable to accept socket:"); } return res; } int Posix::bind( int sockfd, const struct sockaddr* addr, socklen_t addrlen ) { CHECK_ZERO_ERRNO(::bind, "Unable to bind socket:", sockfd, addr, addrlen); return 0; } int Posix::connect( int sockfd, const struct sockaddr* addr, socklen_t addrlen ) { CHECK_ZERO_ERRNO( ::connect, "Unable to connect to socket:", sockfd, addr, addrlen ); return 0; } int Posix::listen(int sockfd, int backlog) { CHECK_ZERO_ERRNO(::listen, "Unable to listen on socket:", sockfd, backlog); return 0; } ssize_t Posix::recv(int sockfd, void* buf, size_t len, int flags) { ssize_t size = ::recv(sockfd, buf, len, flags); if (size == -1) { throw ErrNoException("Unable to recv:"); } return size; } int Posix::socket(int domain, int type, int protocol) { int fd = ::socket(domain, type, protocol); if (fd == -1) { throw ErrNoException("Unable to open socket:"); } return fd; } int Posix::shutdown(int sockfd, int how) { CHECK_ZERO_ERRNO(::shutdown, "Unable to shutdown socket:", sockfd, how); } // TimerFD. int Posix::timerfd_create(int clockid, int flags) { return ::timerfd_create(clockid, flags); } int Posix::timerfd_settime( int fd, int flags, const struct itimerspec* new_value, struct itimerspec* old_value ) { return ::timerfd_settime(fd, flags, new_value, old_value); } // Users. struct group Posix::getgrnam(const char* name, char** buf) { size_t bufsize = sysconf(_SC_GETGR_R_SIZE_MAX); if (bufsize == -1) { /* Value was indeterminate */ bufsize = 16384; /* Should be more than enough */ } char* buffer = new char[bufsize]; *buf = buffer; struct group ginfo; struct group* result; ::getgrnam_r(name, &ginfo, buffer, bufsize, &result); if (result == nullptr) { throw GroupNotFound("Unable to find group '" + std::string(name) + "'."); } return ginfo; } struct passwd Posix::getpwnam(const char* name, char** buf) { size_t bufsize = sysconf(_SC_GETPW_R_SIZE_MAX); if (bufsize == -1) { /* Value was indeterminate */ bufsize = 16384; /* Should be more than enough */ } char* buffer = new char[bufsize]; *buf = buffer; struct passwd uinfo; struct passwd* result; getpwnam_r(name, &uinfo, buffer, bufsize, &result); if (result == nullptr) { delete [] buffer; throw UserNotFound("Unable to find user '" + std::string(name) + "'."); } return uinfo; } struct passwd Posix::getpwuid(uid_t uid, char** buf) { size_t bufsize = sysconf(_SC_GETPW_R_SIZE_MAX); if (bufsize == -1) { /* Value was indeterminate */ bufsize = 16384; /* Should be more than enough */ } char* buffer = new char[bufsize]; *buf = buffer; struct passwd uinfo; struct passwd* result; getpwuid_r(uid, &uinfo, buffer, bufsize, &result); if (result == nullptr) { delete [] buffer; throw UserNotFound("Unable to find user by id."); } return uinfo; } uid_t Posix::getuid() { return ::getuid(); } int Posix::setgroups(int size, gid_t list[]) { CHECK_POSITIVE_ERRNO( ::setgroups, "Unable to drop secondary groups.", 1, list ); } int Posix::setegid(gid_t egid) { CHECK_POSITIVE_ERRNO(::setegid, "Unable to drop effective group.", egid); } int Posix::seteuid(uid_t euid) { CHECK_POSITIVE_ERRNO(::seteuid, "Unable to drop effective user.", euid); } int Posix::setgid(gid_t gid) { CHECK_POSITIVE_ERRNO(::setgid, "Unable to drop group.", gid); } int Posix::setuid(uid_t uid) { CHECK_POSITIVE_ERRNO(::setuid, "Unable to drop user.", uid); } int Posix::setregid(gid_t rgid, gid_t egid) { CHECK_POSITIVE_ERRNO(::setregid, "Unable to drop saved group.", egid, egid); } int Posix::setreuid(uid_t ruid, uid_t euid) { CHECK_POSITIVE_ERRNO(::setreuid, "Unable to drop saved user.", euid, euid); }
21.567627
78
0.649738
ArcticNature
097bcabbe3c9218972341b23f292892431ee5600
20,444
cpp
C++
SOURCES/sim/digi/autopilot.cpp
IsraelyFlightSimulator/Negev-Storm
86de63e195577339f6e4a94198bedd31833a8be8
[ "Unlicense" ]
1
2021-02-19T06:06:31.000Z
2021-02-19T06:06:31.000Z
src/sim/digi/autopilot.cpp
markbb1957/FFalconSource
07b12e2c41a93fa3a95b912a2433a8056de5bc4d
[ "BSD-2-Clause" ]
null
null
null
src/sim/digi/autopilot.cpp
markbb1957/FFalconSource
07b12e2c41a93fa3a95b912a2433a8056de5bc4d
[ "BSD-2-Clause" ]
2
2019-08-20T13:35:13.000Z
2021-04-24T07:32:04.000Z
#include <math.h> // MD -- 20031107: for mods to AltHold() #include "stdhdr.h" #include "digi.h" #include "simveh.h" #include "airframe.h" #include "Aircrft.h" #include "otwdrive.h" #include "Graphics\Include\tmap.h" #include "lantirn.h" #include "cpmanager.h" #include "cphsi.h" #include "pilotinputs.h" #include "flightdata.h" #include "fcc.h" extern bool g_bRealisticAvionics; //MI extern bool g_bINS; //MI extern bool g_bTFRFixes; extern bool g_bCalibrateTFR_PitchCtrl; void DigitalBrain::ThreeAxisAP (void) { float headingErr; self->af->SetSimpleMode(FALSE); // do nothing if on ground if ( self->OnGround() ) return; headingErr = holdPsi - af->sigma; AltitudeHold(holdAlt); SetYpedal( headingErr * 0.05F * RTD * self->GetVt()/cornerSpeed); SetMaxRoll ((float)fabs(self->Roll()*RTD)); if (self->Roll() > 5.0F * DTR) { SetMaxRollDelta (-self->Roll()*RTD); } else if (self->Roll() >= 0.0F * DTR) { SetMaxRollDelta (-self->Roll()*RTD - 1.0F * DTR); } else if (self->Roll() > -5.0F * DTR) { SetMaxRollDelta (-self->Roll()*RTD + 1.0F * DTR); } else { SetMaxRollDelta (-self->Roll()*RTD); } } void DigitalBrain::WaypointAP (void) { self->af->SetSimpleMode(TRUE); GroundCheck(); if (self->curWaypoint) { if(((AircraftClass*) self)->af->GetSimpleMode()) { SimpleGoToCurrentWaypoint(); } else { GoToCurrentWaypoint(); } lastMode = curMode; curMode = WaypointMode; if (groundAvoidNeeded) PullUp(); } else { if (self->waypoint) { self->curWaypoint = self->waypoint; } else { Loiter(); } } } // JPO - Lantirn mode auto pilot void DigitalBrain::LantirnAP (void) { float max_roll = 50.0F; //MI if(theLantirn->GetTFRMode() == LantirnClass::TFR_STBY) { //Here we want manual control self->af->SetMaxRoll(190.0F); rStick = UserStickInputs.rstick; pStick = UserStickInputs.pstick; yPedal = UserStickInputs.rudder; throtl = UserStickInputs.throttle; return; } float headingErr; self->af->SetSimpleMode(FALSE); curMode = NoMode; // do nothing if on ground if ( self->OnGround() ) return; // self->af->SetSimpleMode(TRUE); // GroundCheck(); headingErr = holdPsi - af->sigma; if(g_bTFRFixes) { //disabled for now... //SetYpedal( headingErr * 0.05F * RTD * self->GetVt()/cornerSpeed); SetYpedal( 0.0F ); //quick and dirty fix to level the wings! -NEES WORK, and possibly hold holdPsi! theLantirn->roll = self->Roll(); float roll_multiply = 0.0F; //if (fabs(self->Roll()) * RTD > af->GetTFR_MaxRoll() / 2.0F) if (fabs(self->Roll()) * RTD > af->GetTFR_MaxRoll() / 1.0F) roll_multiply = 1.0F; else roll_multiply = 0.5F; if (fabs(self->Roll()) * RTD * roll_multiply > max_roll) roll_multiply = max_roll / (float) fabs(self->Roll()) * RTD; if (fabs(self->Roll() * RTD) < 0.001) roll_multiply = 0.0F; SetRstick( -self->Roll() * roll_multiply * RTD); SetMaxRoll (0.0F); SetMaxRollDelta (-self->Roll() * roll_multiply * RTD); float alterr = theLantirn->GetHoldHeight() + self->ZPos(); float desGamma = alterr * af->GetTFR_Gain() * af->GetTFR_Corner() /self->GetKias(); //if (theLantirn->gammaCorr < 0.0F) desGamma += theLantirn->gammaCorr * af->GetTFR_GammaCorrMult(); //else if (theLantirn->gammaCorr < 5.0F) // desGamma += 5.0F + (theLantirn->gammaCorr - 5.0F) / 2.0F; //else // desGamma += theLantirn->gammaCorr; desGamma = max ( min ( desGamma, theLantirn->GetGLimit() * 5.0F), -theLantirn->GetGLimit() * 4.0F); if (theLantirn->evasize > 0) desGamma += af->GetEVA_Gain() * (theLantirn->evasize)*(theLantirn->evasize); if(!g_bCalibrateTFR_PitchCtrl) theLantirn->PID_error = desGamma - af->gmma * RTD; else theLantirn->PID_error = (theLantirn->GetTFRAlt() - 300.0F)/100 - af->gmma * RTD; theLantirn->MinG = max(-(theLantirn->GetGLimit()) / 2.0F, -2.0F); theLantirn->MaxG = min(theLantirn->GetGLimit() -1.0F, 6.5F -1.0F); theLantirn->PID_Output = PIDLoop (theLantirn->PID_error, af->GetPID_K(), af->GetPID_KD(), af->GetPID_KI(), SimLibMajorFrameTime, &theLantirn->PID_lastErr, &theLantirn->PID_MX, theLantirn->MaxG * af->GetTFR_Corner() / self->GetKias(), theLantirn->MinG * af->GetTFR_Corner() / self->GetKias(), af->GetTFR_LimitMX()); float elevCmd = theLantirn->PID_Output; elevCmd *= self->GetKias() / af->GetTFR_Corner(); float gammaCmd = elevCmd + (1.0F/self->platformAngles.cosphi); if (fabs(self->Roll()) < af->GetTFR_MaxRoll() * DTR) { if (theLantirn->evasize == 2) SetPstick (theLantirn->GetGLimit(), af->MaxGs(), AirframeClass::GCommand); else if (theLantirn->evasize >= 3) SetPstick (af->MaxGs(), af->MaxGs(), AirframeClass::GCommand); else SetPstick(min(max(gammaCmd, max(1.0F - (theLantirn->GetGLimit() - 1) / 2.0F, -2.0F)), 6.5F), maxGs, AirframeClass::GCommand); } } else { if (theLantirn->evasize == 0) { // JB 010325 Custom hold alt code to minimize neg g's. SetYpedal( 0.0F ); SetRstick( -self->Roll() * 2.0F * RTD); SetMaxRoll (0.0F); float alterr = theLantirn->GetHoldHeight() + self->ZPos(); alterr -= self->ZDelta(); float desGamma = alterr * 0.015F; desGamma = max ( min ( desGamma, 30.0F), -30.0F); float elevCmd = desGamma - af->gmma * RTD; elevCmd *= 0.25F * self->GetKias() / 350.0F; if (fabs (af->gmma) < (45.0F * DTR)) elevCmd /= self->platformAngles.cosphi; if (elevCmd > 0.0F) elevCmd *= elevCmd; else elevCmd *= -elevCmd; gammaHoldIError += 0.0025F*elevCmd; if (gammaHoldIError > 1.0F) gammaHoldIError = 1.0F; else if (gammaHoldIError < -1.0F) gammaHoldIError = -1.0F; float gammaCmd = gammaHoldIError + elevCmd + (1.0F/self->platformAngles.cosphi); SetPstick(min(max(gammaCmd, max(1.0f - (theLantirn->GetGLimit() - 1) / 2.0f, -2.0F)), 6.5F), maxGs, AirframeClass::GCommand); } else SetPstick (theLantirn->GetGLimit(), af->MaxGs(), AirframeClass::GCommand); SetYpedal( headingErr * 0.05F * RTD * self->GetVt()/cornerSpeed); SetMaxRoll ((float)fabs(self->Roll()*RTD)); if (self->Roll() > 5.0F * DTR) SetMaxRollDelta (-self->Roll()*RTD); else if (self->Roll() >= 0.0F * DTR) SetMaxRollDelta (-self->Roll()*RTD - 1.0F * DTR); else if (self->Roll() > -5.0F * DTR) SetMaxRollDelta (-self->Roll()*RTD + 1.0F * DTR); else SetMaxRollDelta (-self->Roll()*RTD); } } float DigitalBrain::PIDLoop(float error, float K, float KD, float KI, float Ts, float *lastErr, float *MX, float Output_Top, float Output_Bottom, bool LimitMX) { float MP = K * error; float MD = KD/Ts * (error - *lastErr); *MX += KI*Ts * error; float Output = MP + MD + *MX; if (Output > Output_Top) Output = Output_Top; if (Output < Output_Bottom) Output = Output_Bottom; if (LimitMX) *MX = Output - MP - MD; *lastErr = error; return Output; } void DigitalBrain::RealisticAP(void) { // do nothing if on ground if(self->OnGround()) return; #if 0 // MD -- 20031108: see "else" //Right switch if(self->IsOn(AircraftClass::AltHold)) //up AltHold(); else if(self->IsOn(AircraftClass::AttHold) && self->IsOn(AircraftClass::RollHold)) //down PitchRollHold(); else AcceptManual(); //Left switch if(!self->IsOn(AircraftClass::AttHold)) //does nothing in ATT HOLD position { if(self->IsOn(AircraftClass::RollHold)) RollHold(); else if(self->IsOn(AircraftClass::HDGSel)) HDGSel(); else if(self->IsOn(AircraftClass::StrgSel)) FollowWP(); } #else // MD -- 20031108: reworking autopilot code so that it matches the real behavior a little // better. The AP will hold pitch independently of the left switch state so that if you // want pitch hold and STRG SEL for example, you should be allowed to do that. Old SP3 // code would only allow fixed pitch and fixed roll hold mode. if(self->IsOn(AircraftClass::AttHold) || self->IsOn(AircraftClass::AltHold)) { //Right switch if(self->IsOn(AircraftClass::AltHold)) AltHold(); //up else if (self->IsOn(AircraftClass::AttHold)) PitchHold(); //down else { AcceptManual(); // not really used unless something really wierd happens... return; } //Left switch if(self->IsOn(AircraftClass::RollHold)) RollHold(); else if(self->IsOn(AircraftClass::HDGSel)) HDGSel(); else if(self->IsOn(AircraftClass::StrgSel)) FollowWP(); } #endif //get our pedal yPedal = UserStickInputs.rudder; } void DigitalBrain::AltHold(void) { if(CheckAPParameters()) { // AcceptManual(); MD -- 20031108: switch will remain in selected pitch mode according to the dash one! self->SetAutopilot(AircraftClass::APOff); return; } float alterr = currAlt + self->ZPos(); alterr -= self->ZDelta(); if (self->AutopilotType() == AircraftClass::LantirnAP) GammaHold(alterr * 0.015F); else { // MD -- 20031107: Adding some damping when you are close to the mark // this should get rid of most of the porpoise effect if we are lucky. // I'm no aerodynamics guru but it seems to me that when you are close // to the desired altitude, you want to shoot for a zero degree pitch // to stay straight and level. This seems to do better than the original // algorithm that always applied the GammaHold(alterr * 0.015) pitch angle // correction but it seems like that would cause enough overshoot even // at small deltas from desired altitude so as to lead to the porpoising // effect we all love to hate. // All that said, if you can do better than this, with a more scientific // approach, please go ahead! // The F-16 dash one says the autopilot holds alt +/- 100 feet. The old // algorithm did that too but with a lot more gyration around the desired // altitude reference. // NB: it might be appropriate to add this for LantirnAP as well but changing // the pitch rate multipliers for that seems intuitively more risky so without // doing more investigation...well, leave it alone for now. float abs_alterr = fabsf(alterr); if (abs_alterr < 15.0F) { GammaHold(alterr * 0.0F); } else { if (abs_alterr < 50.0F) { GammaHold(alterr * 0.0015F); } else { if (abs_alterr < 100.0F) GammaHold(alterr * 0.005F); else GammaHold(alterr * 0.015F); } } } } void DigitalBrain::PitchRollHold(void) { if(CheckAPParameters()) { // AcceptManual(); MD -- 20031108: switch will remain in selected pitch mode according to the dash one! self->SetAutopilot(AircraftClass::APOff); return; } float corrPitch = 0; float CurrentPitch = self->Pitch() * RTD; if(CurrentPitch < 0) CurrentPitch *= -1; //anything to do? if(self->Pitch() * RTD > destPitch + 0.5F || self->Pitch() * RTD < destPitch - 0.5F) { if(CurrentPitch > destPitch) { //down //How much to correct? corrPitch = CurrentPitch - destPitch; if(self->Pitch() * RTD > destPitch) pStick = ((0.5F * af->pstick) - (0.5F * max(corrPitch * 5.0F,15.0F) * DTR)); //turned too far? correct else if(self->Pitch() * RTD < destPitch) pStick = ((0.5F * af->pstick) + (0.5F * max(corrPitch * 5.0F,15.0F) * DTR)); else pStick = 0.0F; } else { //up //How much to correct? corrPitch = destPitch - CurrentPitch; if(self->Pitch() * RTD < destPitch) pStick = ((0.5F * af->pstick) + (0.5F * max(corrPitch * 5.0F,15.0F) * DTR)); //turned too far? correct else if(self->Pitch() * RTD > destPitch) pStick = ((0.5F * af->pstick) - (0.5F * max(corrPitch * 5.0F,15.0F) * DTR)); else pStick = 0.0F; } } else pStick = 0.0F; float corrRoll = 0; float CurrentRoll = self->Roll() * RTD; if(CurrentRoll < 0) CurrentRoll *= -1; //anything to do? if(self->Roll() * RTD > destRoll + 1.0F || self->Roll() * RTD < destRoll - 1.0F) { if(CurrentRoll > destRoll) { //bank left //How much to correct? corrRoll = CurrentRoll - destRoll; if(self->Roll() * RTD > destRoll) rStick = ((0.5F * af->rstick) - (0.5F * max(corrRoll, 6.5F) * DTR)); //turned too far? correct else if(self->Roll() * RTD < destRoll) rStick = ((0.5F * af->rstick) + (0.5F * max(corrRoll, 6.5F) * DTR)); else rStick = 0.0F; } else { //bank right //How much to correct? corrRoll = destRoll - CurrentRoll; if(self->Roll() * RTD < destRoll) rStick = ((0.5F * af->rstick) + (0.5F * max(corrRoll, 6.5F) * DTR)); //turned too far? correct else if(self->Roll() * RTD > destRoll) rStick = ((0.5F * af->rstick) - (0.5F * max(corrRoll, 6.5F) * DTR)); else rStick = 0.0F; } } else rStick = 0.0F; } void DigitalBrain::FollowWP(void) { if(CheckAPParameters()) { // AcceptManual(); MD -- 20031108: switch will remain in selected pitch mode according to the dash one! self->SetAutopilot(AircraftClass::APOff); return; } float wpX, wpY, wpZ; AircraftClass *playerAC = SimDriver.GetPlayerAircraft(); if(self == playerAC && playerAC->FCC->GetStptMode() != FireControlComputer::FCCWaypoint && playerAC->FCC->GetStptMode() != FireControlComputer::FCCMarkpoint && playerAC->FCC->GetStptMode() != FireControlComputer::FCCDLinkpoint) { AcceptManual(); return; } if(self && self->curWaypoint) self->curWaypoint->GetLocation (&wpX, &wpY, &wpZ); else { AcceptManual(); return; } //MI add in INS Drift if(g_bINS && g_bRealisticAvionics) { if (playerAC != NULL) { wpX += playerAC->GetINSLatDrift(); wpY += playerAC->GetINSLongDrift(); } } /*------------------------------------*/ /* Heading error for current waypoint */ /*------------------------------------*/ HeadingDifference = (float)atan2(wpY - self->YPos(), wpX - self->XPos()) - self->Yaw(); if (HeadingDifference >= 180.0F * DTR) HeadingDifference -= 360.0F * DTR; else if (HeadingDifference <= -180.0F * DTR) HeadingDifference += 360.0F * DTR; HeadingDifference *= RTD; CheckForTurn(); } void DigitalBrain::HDGSel(void) { if(CheckAPParameters()) { // AcceptManual(); MD -- 20031108: switch will remain in selected pitch mode according to the dash one! self->SetAutopilot(AircraftClass::APOff); return; } float FinalHeading = OTWDriver.pCockpitManager->mpHsi->GetValue(CPHsi::HSI_VAL_DESIRED_HEADING); if(FinalHeading == 0) FinalHeading = 360; float curHeading = self->Yaw() * RTD; if(curHeading < 0) curHeading += 360; HeadingDifference = FinalHeading - curHeading; if(HeadingDifference >= 180) HeadingDifference -= 360; else if(HeadingDifference <= -180) HeadingDifference += 360; CheckForTurn(); } void DigitalBrain::RollHold(void) { if(CheckAPParameters()) { // AcceptManual(); MD -- 20031108: switch will remain in selected pitch mode according to the dash one! self->SetAutopilot(AircraftClass::APOff); return; } float corrRoll = 0; float CurrentRoll = self->Roll() * RTD; if(CurrentRoll < 0) CurrentRoll *= -1; //anything to do? if(self->Roll() * RTD > destRoll + 1.0F || self->Roll() * RTD < destRoll - 1.0F) { if(CurrentRoll > destRoll) { //bank left //How much to correct? corrRoll = CurrentRoll - destRoll; if(self->Roll() * RTD > destRoll) rStick = ((0.5F * af->rstick) - (0.5F * max(corrRoll, 6.5F) * DTR)); //turned too far? correct else if(self->Roll() * RTD < destRoll) rStick = ((0.5F * af->rstick) + (0.5F * max(corrRoll, 6.5F) * DTR)); else rStick = 0.0F; } else { //bank right //How much to correct? corrRoll = destRoll - CurrentRoll; if(self->Roll() * RTD < destRoll) rStick = ((0.5F * af->rstick) + (0.5F * max(corrRoll, 6.5F) * DTR)); //turned too far? correct else if(self->Roll() * RTD > destRoll) rStick = ((0.5F * af->rstick) - (0.5F * max(corrRoll, 6.5F) * DTR)); else rStick = 0.0F; } } else rStick = 0.0F; //here we get our Roll axis anyway, the AP just holds it rStick = 0.5F * af->rstick + 0.5F * UserStickInputs.rstick; } // MD -- 20031108: adding a pitch hold function so that the AP pitch hold modes // can operate correctly with STRG SEL and HDG SEL void DigitalBrain::PitchHold(void) { if(CheckAPParameters()) { // pitch switch will remain in selected pitch mode according to the dash one! self->SetAutopilot(AircraftClass::APOff); return; } // Use the Gamma (pitch angle) hold command here since it seems to work right // and the pitch/roll hold code above in earlier versions of this file don't seem to // hold pitch at all to speak of. if (!self->IsOn(AircraftClass::StickStrng)) GammaHold(destPitch); // Now grab any user input to emulate stick steering during autopilot operation. // AP just holds the set reference. Pressure on the stick will change the reference // provided the pitch and other parameters that would disconnect the AP stay within limits. // Be careful to take this input only if there is some pressure on the stick though! if ((UserStickInputs.pstick > 0.05F) || (UserStickInputs.pstick < -0.05F)) { self->SetAPFlag(AircraftClass::StickStrng); pStick = 0.0F * af->pstick + 0.5F * UserStickInputs.pstick; self->SetNewPitch(); } else { if (self->IsOn(AircraftClass::StickStrng)) self->ClearAPFlag(AircraftClass::StickStrng); } } #define AP_TURN 1 //faster and it oscillates void DigitalBrain::CheckForTurn(void) { //anything to do for us? if(HeadingDifference < -1.0F || HeadingDifference > 1.0F) { //MI DON'T TOUCH THIS CODE!!!! //my brain was smoking after I got this down! It seems to work just fine. if(HeadingDifference < 0) { //turn left if(self->Roll() * RTD > -29.0F) rStick = ((0.5F * af->rstick) - (AP_TURN * min(29 - (self->Roll() * RTD < 0 ? -self->Roll() * RTD : 0), 10) * DTR)); else if(self->Roll() * RTD < -30.5F) rStick = ((0.5F * af->rstick) + (AP_TURN * min(29 - (self->Roll() * RTD < 0 ? (-self->Roll() * RTD > 29 ? (-self->Roll() * RTD - 29) : -self->Roll() * RTD) : 0), 10) * DTR)); else rStick = 0.0F; } else { //turn right if(self->Roll() * RTD < 29.0F) rStick = ((0.5F * af->rstick) + (AP_TURN * min(29 - (self->Roll() * RTD > 0 ? self->Roll() * RTD : 0), 10) * DTR)); else if(self->Roll() * RTD > 30.5F) rStick = ((0.5F * af->rstick) - (AP_TURN * min(29 - (self->Roll() * RTD > 0 ? (self->Roll() * RTD > 29 ? (self->Roll() * RTD - 29) : self->Roll() * RTD) : 0), 10) * DTR)); else rStick = 0.0F; } } else { if(self->Roll() * RTD > 0.5F || self->Roll() *RTD < -0.5F) { if(self->Roll() * RTD > 0.5F) bank = (self->Roll() * RTD) - 1; else bank = (-self->Roll() * RTD) + 1; if(self->Roll() * RTD < -0.5F) rStick = ((0.5F * af->rstick) + (0.5F * max(bank,2.5F) * DTR)); else if(self->Roll() * RTD > 0.5F) rStick = ((0.5F * af->rstick) - (0.5F * max(bank,2.5F) * DTR)); else rStick = 0.0F; } else rStick = 0.0F; } } // MD -- 20031108: if any of these conditions are true, then according to the dash one // the autopilot automatically disconnects. The way it does this is by releasing the // pitch AP control switch which is normally held in place magnetically when a valid // autopilot mode is connected and none of these conditions do apply. bool DigitalBrain::APAutoDisconnect(void) { if(af->gearHandle == 1.0F) // handle is down return TRUE; if (self->mFaults->GetFault(FaultClass::flcs_fault)) return TRUE; if (af->IsEngineFlag(AirframeClass::FuelDoorOpen)) return TRUE; if (!self->HasPower(AircraftClass::APPower)) return TRUE; if (self->TrimAPDisc) return TRUE; if (self->TEFExtend) return TRUE; if (self->GetAlpha() > 15.0F) return TRUE; if (af->IsSet(AirframeClass::MPOverride)) return TRUE; return FALSE; } int DigitalBrain::CheckAPParameters(void) { //dont do anything if not within parameters if((self->Pitch() * RTD > 60.2F) || (self->Pitch() * RTD < -60.2F)) return TRUE; else if((self->Roll() * RTD > 60.2F) || (self->Roll() * RTD < -60.2F)) return TRUE; else if(self->af->mach > 0.95 || -self->ZPos() > 40000) return TRUE; else return FALSE; return FALSE; } void DigitalBrain::AcceptManual(void) { //me123 said the switches reset themselves. So here we go.... self->SetAutopilot(AircraftClass::APOff); self->ClearAPFlag(AircraftClass::AttHold); self->ClearAPFlag(AircraftClass::AltHold); /*rStick = UserStickInputs.rstick; pStick = UserStickInputs.pstick; yPedal = UserStickInputs.rudder; throtl = UserStickInputs.throttle;*/ }
29.039773
178
0.641851
IsraelyFlightSimulator
097c224d63f33cfa6cd5c99980bb6d1347a0ebe9
8,358
cpp
C++
src/problem/cliquetable/cliquetable_instance.cpp
ctjandra/ddopt-bounds
aaf7407da930503a17969cee71718ffcf0c1fe96
[ "MIT" ]
null
null
null
src/problem/cliquetable/cliquetable_instance.cpp
ctjandra/ddopt-bounds
aaf7407da930503a17969cee71718ffcf0c1fe96
[ "MIT" ]
null
null
null
src/problem/cliquetable/cliquetable_instance.cpp
ctjandra/ddopt-bounds
aaf7407da930503a17969cee71718ffcf0c1fe96
[ "MIT" ]
null
null
null
#include <cstdlib> #include <iostream> #include <vector> #include "cliquetable_instance.hpp" #include "cliquetable_cons_id.hpp" #include "../bp/cons_id.hpp" using namespace std; CliqueTableInstance::CliqueTableInstance(SCIP* scip, bool include_ct_rows, bool mask_transitive) { // Assume SCIP is mid-solve assert(SCIPgetStage(scip) == SCIP_STAGE_SOLVING); SCIP_COL** cols; SCIP_CALL_ABORT(SCIPgetLPColsData(scip, &cols, &nvars)); vector<int> scipvar_to_ctvar(nvars); for (int i = 0; i < nvars; ++nvars) { scipvar_to_ctvar[i] = i; // Identity map } init_adj(cols, scipvar_to_ctvar); convert_clique_table(cols, scipvar_to_ctvar); if (include_ct_rows) { convert_clique_table_rows(scip, scipvar_to_ctvar); } update_nonnegated_only(); if (mask_transitive) { create_complement_mask_with_transitivities(); } else { create_complement_mask(); } extract_weights(scip, cols, scipvar_to_ctvar); } CliqueTableInstance::CliqueTableInstance(SCIP* scip, SCIP_COL** cols, int ncols, const vector<int>& scipvar_to_ctvar, bool include_ct_rows, bool mask_transitive) { nvars = ncols; init_adj(cols, scipvar_to_ctvar); convert_clique_table(cols, scipvar_to_ctvar); if (include_ct_rows) { convert_clique_table_rows(scip, scipvar_to_ctvar); } update_nonnegated_only(); if (mask_transitive) { create_complement_mask_with_transitivities(); } else { create_complement_mask(); } extract_weights(scip, cols, scipvar_to_ctvar); } void CliqueTableInstance::init_adj(SCIP_COL** cols, const vector<int>& scipvar_to_ctvar) { adj.resize(2 * nvars); for (int c = 0; c < 2 * nvars; ++c) { adj[c].resize(0, (2 * nvars)-1, false); } // Make the negated variable adjacent to the positive one and vice versa for (int c = 0; c < nvars; ++c) { SCIP_VAR* var = SCIPcolGetVar(cols[c]); int var_idx = scipvar_to_ctvar[SCIPvarGetProbindex(var)]; assert(var_idx < nvars); // index should be in [0..nvars-1] adj[var_idx].add(var_idx + nvars); adj[var_idx+nvars].add(var_idx); } } void CliqueTableInstance::update_nonnegated_only() { // Mark if negated nodes are only adjacent to corresponding non-negated ones nonnegated_only = true; int size = adj.size(); for (int v = nvars; v < size; v++) { if (adj[v].get_size() > 1) { nonnegated_only = false; break; } } } /** * Convert the clique table into an intset vector of adjacency. Indices n+i correspond to negated versions of variable i. * Uses a map of variables from the original space to the one given by cols; variables not in space must be negative in map. */ void CliqueTableInstance::convert_clique_table(SCIP_COL** cols, const vector<int>& scipvar_to_ctvar) { for (int c = 0; c < nvars; ++c) { SCIP_VAR* var = SCIPcolGetVar(cols[c]); int var_idx = scipvar_to_ctvar[SCIPvarGetProbindex(var)]; assert(var_idx >= 0 && var_idx < nvars); // index should be in [0..nvars-1] for (SCIP_Bool val = FALSE; val <= TRUE; ++val) { int idx = (val == TRUE) ? var_idx : var_idx + nvars; int ncliques = SCIPvarGetNCliques(var, val); SCIP_CLIQUE** cliques = SCIPvarGetCliques(var, val); for (int k = 0; k < ncliques; ++k) { SCIP_VAR** clique_vars = SCIPcliqueGetVars(cliques[k]); SCIP_Bool* clique_vals = SCIPcliqueGetValues(cliques[k]); int clique_nvars = SCIPcliqueGetNVars(cliques[k]); for (int u = 0; u < clique_nvars; ++u) { SCIP_VAR* cvar = clique_vars[u]; int cidx = scipvar_to_ctvar[SCIPvarGetProbindex(cvar)]; if (cidx < 0) { // This variable is not in subspace continue; } assert(cidx < nvars); // index should be in [0..nvars-1] if (clique_vals[u] == FALSE) { cidx += nvars; // negated variable } if (idx == cidx) { continue; // skip own variable } // Add adjacency adj[idx].add(cidx); adj[cidx].add(idx); } } } } int size = adj.size(); for (int v = 0; v < size; v++) { assert(!adj[v].contains(v)); // no self-loops; mask takes care of removing own variable assert(adj[v].contains((v < nvars) ? v + nvars : v - nvars)); } } void CliqueTableInstance::convert_clique_table_rows(SCIP* scip, const vector<int>& scipvar_to_ctvar) { SCIP_ROW** rows; int nrows; SCIP_CALL_ABORT(SCIPgetLPRowsData(scip, &rows, &nrows)); for (int i = 0; i < nrows; ++i) { SCIP_ROW* row = rows[i]; bool lhs_ctform; bool rhs_ctform; is_row_clique_table_form(scip, row, &lhs_ctform, &rhs_ctform); if (lhs_ctform || rhs_ctform) { int nnonz = SCIProwGetNNonz(row); SCIP_COL** row_cols = SCIProwGetCols(row); SCIP_Real* row_vals = SCIProwGetVals(row); for (int j = 0; j < nnonz; ++j) { for (int k = j + 1; k < nnonz; ++k) { int vj = scipvar_to_ctvar[SCIPvarGetProbindex(SCIPcolGetVar(row_cols[j]))]; int vk = scipvar_to_ctvar[SCIPvarGetProbindex(SCIPcolGetVar(row_cols[k]))]; if (vj >= 0 && vk >= 0) { assert(vj < nvars); assert(vk < nvars); // if <= constraint, the negative variables are the negated ones // if >= constraint, the positive variables are the negated ones if ((rhs_ctform && row_vals[j] < 0) || (lhs_ctform && row_vals[j] > 0)) { vj += nvars; // negate vj } if ((rhs_ctform && row_vals[k] < 0) || (lhs_ctform && row_vals[k] > 0)) { vk += nvars; // negate vk } adj[vj].add(vk); adj[vk].add(vj); } } } } } } void CliqueTableInstance::create_complement_mask() { int size = adj.size(); adj_mask_compl.resize(size); assert(size == 2 * nvars); for (int v = 0; v < size; v++) { adj_mask_compl[v].resize(0, size-1, false); adj_mask_compl[v].set = ~(adj[v].set); adj_mask_compl[v].remove(v); } if (nonnegated_only) { for (int v = 0; v < size; v++) { adj_mask_compl[v].resize(0, nvars-1); } } } void CliqueTableInstance::create_complement_mask_with_transitivities() { int size = adj.size(); adj_mask_compl.resize(size); assert(size == 2 * nvars); // Complement of edges for (int v = 0; v < size; v++) { adj_mask_compl[v].resize(0, size-1, false); adj_mask_compl[v].set = ~(adj[v].set); int j; for (j = 0; j < size; ++j) { boost::dynamic_bitset<> new_set = adj_mask_compl[v].set; // Iterate through variables with domains of size one for (int u = adj_mask_compl[v].get_first(); u != adj_mask_compl[v].get_end(); u = adj_mask_compl[v].get_next(u)) { if (!new_set.test(get_complement(u))) { new_set &= ~(adj[u].set); } } if (new_set == adj_mask_compl[v].set) { break; } adj_mask_compl[v].set = new_set; } assert(j < size); // there should be no more than size - 1 iterations adj_mask_compl[v].remove(v); } if (nonnegated_only) { for (int v = 0; v < size; v++) { adj_mask_compl[v].resize(0, nvars-1); } } } void CliqueTableInstance::extract_weights(SCIP* scip, SCIP_COL** cols, const vector<int>& scipvar_to_ctvar) { weights = new double[nvars]; for (int i = 0; i < nvars; ++i) { int idx = scipvar_to_ctvar[SCIPvarGetProbindex(SCIPcolGetVar(cols[i]))]; assert(idx < nvars); weights[idx] = SCIPcolGetObj(cols[i]); weights[idx] = -weights[idx]; // switch signs because SCIP minimizes and we maximize // Note: To obtain original objective value, we will need to apply SCIPretransformObj(scip, obj) to the final value } } void CliqueTableInstance::print() { int size = adj.size(); for (int i = 0; i < size; ++i) { cout << i << ": " << adj[i] << endl; } } void CliqueTableInstance::print_mapped(const vector<int>& subvar_to_var) { int size = adj.size(); int nsub = subvar_to_var.size(); for (int i = 0; i < size; ++i) { if (i < nsub) { cout << subvar_to_var[i] << ": "; } else { cout << "~" << subvar_to_var[i-nsub] << ": "; } cout << "[ "; int val = adj[i].get_first(); while (val != adj[i].get_end()) { if (val < nsub) { cout << subvar_to_var[val] << " "; } else { cout << "~" << subvar_to_var[val-nsub] << " "; } val = adj[i].get_next(val); } cout << "]"; cout << endl; } } int CliqueTableInstance::get_number_of_edges() { int nedges = 0; int size = adj.size(); for (int i = 0; i < size; ++i) { nedges += adj[i].get_size(); } assert(nedges % 2 == 0); return nedges / 2; } int CliqueTableInstance::get_complement(int i) { assert(i >= 0 && i < 2 * nvars); if (i < nvars) { return i + nvars; } else { return i - nvars; } }
26.449367
124
0.648241
ctjandra
097ede797a108bf3f4532ac0e043b0db462d367c
388
cpp
C++
Entrenamiento/Temas/Sorting/MergeSort.cpp
snat-s/competitiva
a743f323e1bedec4709416ef684a0c6a15e42e00
[ "MIT" ]
null
null
null
Entrenamiento/Temas/Sorting/MergeSort.cpp
snat-s/competitiva
a743f323e1bedec4709416ef684a0c6a15e42e00
[ "MIT" ]
null
null
null
Entrenamiento/Temas/Sorting/MergeSort.cpp
snat-s/competitiva
a743f323e1bedec4709416ef684a0c6a15e42e00
[ "MIT" ]
null
null
null
#include <cmath> #include <vector> std::vector<int> mergeSort(std::vector<int> data, int right, int left) { if(left < right) { int middle = floor(right+left)/2; mergeSort(data, left, middle); mergeSort(data, middle+1, right); merge(data, right, left, middle); } return data; } std::vector<int> merge(std::vector<int> data, int right, int left, int middle) { }
24.25
80
0.646907
snat-s
0985c71e6aeac7f61cd1b8e09839e9dae858ce7c
1,040
cpp
C++
Ejercicios/Ejercicio4-todas-las-variables/todas-las-variables.cpp
Maldanar201/LenguajeProgramacion1
5a53c51077c0e41deff8daf40dbe6f0778b41f9c
[ "MIT" ]
null
null
null
Ejercicios/Ejercicio4-todas-las-variables/todas-las-variables.cpp
Maldanar201/LenguajeProgramacion1
5a53c51077c0e41deff8daf40dbe6f0778b41f9c
[ "MIT" ]
null
null
null
Ejercicios/Ejercicio4-todas-las-variables/todas-las-variables.cpp
Maldanar201/LenguajeProgramacion1
5a53c51077c0e41deff8daf40dbe6f0778b41f9c
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int main(int argc, char const *argv[]) { cout << " TIPOS DE VARIABLES "<< endl; cout << "\n variables numericas "<< endl; cout << " 'int' entero "<< endl; cout << " 'float' numero flotante con digitos decimales"<< endl; cout << " 'double' incleye todos los realeas con numeros decimal"<< endl; cout << "\n Cadena de Caracteres "<< endl; cout << " 'char' un caracter"<< endl; cout << " 'string' cadena de caracteres"<< endl; cout << "\n booleanos"<< endl; cout << " 'bool' solo pueden contener true o false "<< endl; bool valor_Boolean; valor_Boolean = true; int valor_Entero = 15; double valor_Double = 20.99; string valor_String = "Hola Como estan"; char valor_Char = 'B'; cout << "\n Valor Boolean : " << valor_Boolean << endl; cout << " Valor Entero : " << valor_Entero << endl; cout << " Valor Double : " << valor_Double << endl; cout << " Valor string : " << valor_String << endl; cout << " Valor Char : " << valor_Char << endl; return 0; }
30.588235
74
0.620192
Maldanar201
0986174a6911768f7ff35059ee4aa71526ab4924
598
hpp
C++
libs/TDEBUG/tdebug.hpp
ei0/TUGUI
d7a1dc976b907eeac871dba1bc2e5cdbc88d6a0a
[ "MIT" ]
null
null
null
libs/TDEBUG/tdebug.hpp
ei0/TUGUI
d7a1dc976b907eeac871dba1bc2e5cdbc88d6a0a
[ "MIT" ]
null
null
null
libs/TDEBUG/tdebug.hpp
ei0/TUGUI
d7a1dc976b907eeac871dba1bc2e5cdbc88d6a0a
[ "MIT" ]
null
null
null
/* * @Author: SPeak Shen * @Date: 2021-11-13 23:12:38 * @Last Modified by: SPeak Shen * @Last Modified time: 2021-11-17 00:25:41 */ #ifndef __TDEBUG_HPP__ #define __TDEBUG_HPP__ namespace TDEBUG { enum class RT { ERROR = -1, SUCCESS = 0 }; inline static void crash() { *((char *)0) = 'E'; } // static_assert(x) will generate a compile-time error if 'x' is false. #define static_assert(x) \ switch (x) { \ case 0: case (x): ; \ } }; /* TDEBUG end */ #endif
18.6875
71
0.496656
ei0
0986ae8c5afdf81b8bfa099b06e3a7b2438a234b
41
hpp
C++
src/Headers/SFML_Tools.hpp
nerdtronik/SonoGUI
11cb69b94bf906234ee4c147261e9ef0ebcce509
[ "MIT" ]
null
null
null
src/Headers/SFML_Tools.hpp
nerdtronik/SonoGUI
11cb69b94bf906234ee4c147261e9ef0ebcce509
[ "MIT" ]
null
null
null
src/Headers/SFML_Tools.hpp
nerdtronik/SonoGUI
11cb69b94bf906234ee4c147261e9ef0ebcce509
[ "MIT" ]
null
null
null
#pragma once #include "OpenGL_Tools.hpp"
13.666667
27
0.780488
nerdtronik
098c7fc2fb356fecf65505597cb0e4a8dd12052c
1,615
cpp
C++
dijkstry.cpp
lukaszplk/dijkstry
d018263200c3e662639153b8ac5ba04ad75b643c
[ "MIT" ]
null
null
null
dijkstry.cpp
lukaszplk/dijkstry
d018263200c3e662639153b8ac5ba04ad75b643c
[ "MIT" ]
null
null
null
dijkstry.cpp
lukaszplk/dijkstry
d018263200c3e662639153b8ac5ba04ad75b643c
[ "MIT" ]
null
null
null
#include<iostream> using namespace std; struct lista{ lista *next; int v, w; }; const int infinity = 1000; int main(){ int i, j, m, n, u, w, v, x, y, *d, *p, *Stos, tmp; bool *QS; lista **graf; lista *a, *b; cin >> v >> n >> m; //start, l wierzcholkow, l krawedzi; d = new int[n]; p = new int[n]; QS = new bool[n]; graf = new lista *[n]; Stos = new int[n]; tmp = 0; for(i=0;i<n;i++){ d[i] = infinity; p[i] = -1; QS[i] = false; graf[i] = NULL; } for(i=0;i<m;i++){ cin>>x>>y>>w; a = new lista; a->v = y; a->w = w; a->next = graf[x]; graf[x] = a; } cout<<endl; d[v]=0; for(i=0;i<n;i++){ for(j=0;QS[j];j++); for(u=j++;j<n;j++) if(!QS[j] && (d[j]<d[u])) u=j; QS[u] = true; //relaksacja for(a=graf[u];a;a=a->next){ if(!QS[a->v] && (d[a->v]>d[u]+a->w)){ d[a->v] = d[u] + a->w; p[a->v] = u; } } } for(i=0;i<n;i++){ cout<< i <<": droga -> "; for(j=i;j>-1;j=p[j]) Stos[tmp++]=j; while(tmp) cout<<Stos[--tmp]<< " "; cout<< "Koszt dojscia: "<<d[i]<<endl; } delete [] d; delete [] p; delete [] QS; delete [] Stos; for(i=0;i<n;i++){ a = graf[i]; while(a){ b=a; a=a->next; delete b; } } delete [] graf; return 0; }
19.457831
61
0.347988
lukaszplk
098feead4d54c23d2b37bc0b9a3ec13f091a860a
1,134
hpp
C++
include/ConsoleParser.hpp
michalloska/SOLID_time_and_zone_converter
0da9d740290f650bbb9611c4660d7d542f6a2605
[ "MIT" ]
null
null
null
include/ConsoleParser.hpp
michalloska/SOLID_time_and_zone_converter
0da9d740290f650bbb9611c4660d7d542f6a2605
[ "MIT" ]
null
null
null
include/ConsoleParser.hpp
michalloska/SOLID_time_and_zone_converter
0da9d740290f650bbb9611c4660d7d542f6a2605
[ "MIT" ]
null
null
null
#pragma once #include <vector> #include <tuple> #include <map> class Time; class TimeZone; namespace ConsoleParsers { using TimeConversionConsoleArguments = std::tuple<Time, TimeZone, TimeZone>; using TimeConversionRawConsoleArguments = std::map<std::string, std::string>; class TimeConversionConsoleParser { public: TimeConversionConsoleParser() = delete; static TimeConversionConsoleArguments ParseTimeConversionArguments(int argc, char **argv); private: static TimeConversionRawConsoleArguments validateTimeInCorrectFormat(std::string timeAsString); static bool validateCorrectAmountOfArgumentsWasPassed(unsigned int numbersOfArguments); static bool isStringANumber(const std::string &s); static bool validateTimeZoneIsImplemented(std::string timeZoneName); static constexpr unsigned int EXPECTED_AMOUNT_OF_ARGUMENTS = 4; static constexpr unsigned int VALIDATION_ERROR_CODE = 1; }; std::vector<std::string> splitStringByDelimiter(const std::string &text, char delim); } // namespace ConsoleParsers
35.4375
104
0.733686
michalloska
09944f2675bcd96b3ec7e607a764e523d8da085d
866
cpp
C++
Algorithm - BOJ/boj_18870.cpp
kangjunseo/C-
eafdf57a22b3a794d09cab045d6d60c2842ba347
[ "MIT" ]
2
2021-08-30T12:37:57.000Z
2021-11-29T05:42:05.000Z
Algorithm - BOJ/boj_18870.cpp
kangjunseo/C-
eafdf57a22b3a794d09cab045d6d60c2842ba347
[ "MIT" ]
null
null
null
Algorithm - BOJ/boj_18870.cpp
kangjunseo/C-
eafdf57a22b3a794d09cab045d6d60c2842ba347
[ "MIT" ]
null
null
null
#include <iostream> #include <algorithm> #include <vector> #include <cstdlib> using namespace std; bool comp(pair<double,int> a, pair<double,int> b){ return a.first < b.first; } bool comp2(pair<double,int> a, pair<double,int> b){ return a.second < b.second; } int main() { int N; cin>>N; vector <pair<double,int>> v; //initiate vector with pair for(int i=0;i<N;i++){ double temp; cin>>temp; v.push_back(make_pair(temp,i)); //make pair and push } sort(v.begin(),v.end(),comp); int idx =-1; double previous=-1e9-1; for(auto iter = v.begin();iter!=v.end();++iter){ if((*iter).first==previous) (*iter).first=idx; else{ previous=(*iter).first; (*iter).first=++idx; } } sort(v.begin(),v.end(),comp2); for(auto iter = v.begin();iter!=v.end() ;++iter){ cout<<(*iter).first<<' '; } }
20.619048
61
0.58545
kangjunseo