AlexeyAB
2018-05-29 ec766fc3f114dd4faaa3add500776a7bae957ba5
Ignore empty extra lines in train.txt
1 files modified
2 ■■■■■ changed files
src/data.c 2 ●●●●● patch | view | raw | blame | history
src/data.c
@@ -46,10 +46,12 @@
    pthread_mutex_lock(&mutex);
    //printf("n = %d \n", n);
    for(i = 0; i < n; ++i){     
        do {
        int index = random_gen() % m;
        random_paths[i] = paths[index];
        //if(i == 0) printf("%s\n", paths[index]);
        //printf("grp: %s\n", paths[index]);
        } while (strlen(random_paths[i]) == 0);
    }
    pthread_mutex_unlock(&mutex);
    return random_paths;