Unverified Commit 4280a34e authored by Vít Starý Novotný's avatar Vít Starý Novotný
Browse files

Replace $USER with user's name in README.md

parent 25a59cc8
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -19,7 +19,7 @@ This table contains the best result for every user.
|:-----|------|:------------|
|:-----|------|:------------|
'''.strip()
'''.strip()
USER_README_HEAD = r'''
USER_README_HEAD = r'''
This table contains all results for $USER in descending order of task
This table contains all results for user *%s* in descending order of task
performance.  Result names are based on the filenames of the results with
performance.  Result names are based on the filenames of the results with
underscores (`_`) replaced with a comma and a space for improved readability.
underscores (`_`) replaced with a comma and a space for improved readability.


@@ -52,7 +52,7 @@ if __name__ == '__main__':
            best_ndcg, best_result_name = max(user_results)
            best_ndcg, best_result_name = max(user_results)
            task_results.append((best_ndcg, user_name, best_result_name))
            task_results.append((best_ndcg, user_name, best_result_name))
            with open(os.path.join(user, 'README.md'), 'wt') as f:
            with open(os.path.join(user, 'README.md'), 'wt') as f:
                f.write(USER_README_HEAD)
                f.write(USER_README_HEAD % user_name)
                f.write('\n')
                f.write('\n')
                for ndgc, result_name in sorted(user_results, reverse=True):
                for ndgc, result_name in sorted(user_results, reverse=True):
                    f.write('| %.4f | %s |\n' % (ndcg, result_name))
                    f.write('| %.4f | %s |\n' % (ndcg, result_name))
+1 −1
Original line number Original line Diff line number Diff line
This table contains all results for $USER in descending order of task
This table contains all results for user *ayetiran* in descending order of task
performance.  Result names are based on the filenames of the results with
performance.  Result names are based on the filenames of the results with
underscores (`_`) replaced with a comma and a space for improved readability.
underscores (`_`) replaced with a comma and a space for improved readability.


+1 −1
Original line number Original line Diff line number Diff line
This table contains all results for $USER in descending order of task
This table contains all results for user *xluptak4* in descending order of task
performance.  Result names are based on the filenames of the results with
performance.  Result names are based on the filenames of the results with
underscores (`_`) replaced with a comma and a space for improved readability.
underscores (`_`) replaced with a comma and a space for improved readability.


+1 −1
Original line number Original line Diff line number Diff line
This table contains all results for $USER in descending order of task
This table contains all results for user *xnovot32* in descending order of task
performance.  Result names are based on the filenames of the results with
performance.  Result names are based on the filenames of the results with
underscores (`_`) replaced with a comma and a space for improved readability.
underscores (`_`) replaced with a comma and a space for improved readability.


+1 −1
Original line number Original line Diff line number Diff line
This table contains all results for $USER in descending order of task
This table contains all results for user *xstefan3* in descending order of task
performance.  Result names are based on the filenames of the results with
performance.  Result names are based on the filenames of the results with
underscores (`_`) replaced with a comma and a space for improved readability.
underscores (`_`) replaced with a comma and a space for improved readability.