(len(self.missions)): if self.missions[i][0] in self.hidden_relics: self.mission_table.setRowHidden(i, True) elif self.missions[i][2] in self.hidden_missions: self.mission_table.setRowHidden(i, True) else: self.mission_table.setRowHidden(i, False) def get_duration_str(...
= 0) { Output.Target = Input.Target; BuildMetalShaderOutput(Output, Input, MetalShaderSource, SourceLen, Output.Errors); } else { FString Tmp = ANSI_TO_TCHAR(ErrorLog); TArray<FString> ErrorLines; Tmp.ParseIntoArray(ErrorLines, TEXT("\n"), true); for (int32 LineIndex = 0; LineIndex...
int SelectHostIPsByHostName(char * hostName, list<string> * v){ char query[300]; char * fixedInsertStr; unsigned int len; int holder; MYSQL_RES * results; MYSQL_ROW row; unsigned int numRows = 0, numFields = 0; MYSQL * conn; if(hostName == NULL || strlen(hostName) == 0)...
def generate_count(counts): import matplotlib from matplotlib.pyplot import figure, show from matplotlib.dates import DateFormatter print len(counts) fig = figure() matplotlib.rcParams['font.size'] = 8.0 ax = fig.add_subplot(111) ax.plot_date(counts.keys(),counts.values(), markersize=2)...
bool MIQPSolver::addContig(const Contig &contig) { int id = contig.GetID(); try { len[id] = contig.Sequence.Nucleotides.length(); optimized[id] = false; x.add(IloNumVar(environment, 0, CoordMax)); u.add(IloBoolVar(environment)); t.add(IloBoolVar(environment)); constraints.add(t[...