<commit_before>#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/param.h>

#include <sys/types.h>
#include <db.h>
#include <fcntl.h>
#include <limits.h>

#include <time.h>
#include <stdbool.h>

/* Point in time. */
typedef struct _timepoint
{
  time_t ts; /* Timestamp */
  char msg[140]; /* Message */
  char loc[20]; /* Name of location. */
} timepoint;

typedef struct _tl_entry
{
  timepoint begin;
  timepoint end;
} tl_entry;

void usage(const char* pname)
{
  fprintf(stderr, "Usage:\n");
  fprintf(stderr, " %s init\n", pname);
  fprintf(stderr, " %s timepoint [-l <loc>] [-m <msg>] [-t <ts>]\n", pname);
  fprintf(stderr, " %s pending\n", pname);
  fprintf(stderr, " %s pop-drop\n", pname);
  fprintf(stderr, " %s merge-add\n", pname);
  fprintf(stderr, " %s unlog [-d] <id>\n", pname);
  fprintf(stderr, " %s report\n", pname);
}

void tl_init(const char* pname)
{
  /* TODO: Directory `.tl/'. */
<commit_msg>Reduce number of characters in message and location.<commit_after>#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/param.h>

#include <sys/types.h>
#include <db.h>
#include <fcntl.h>
#include <limits.h>

#include <time.h>
#include <stdbool.h>

/* Point in time. */
typedef struct _timepoint
{
  time_t ts; /* Timestamp */
  char msg[100]; /* Message */
  char loc[18]; /* Name of location. */
} timepoint;

typedef struct _tl_entry
{
  timepoint begin;
  timepoint end;
} tl_entry;

void usage(const char* pname)
{
  fprintf(stderr, "Usage:\n");
  fprintf(stderr, " %s init\n", pname);
  fprintf(stderr, " %s timepoint [-l <loc>] [-m <msg>] [-t <ts>]\n", pname);
  fprintf(stderr, " %s pending\n", pname);
  fprintf(stderr, " %s pop-drop\n", pname);
  fprintf(stderr, " %s merge-add\n", pname);
  fprintf(stderr, " %s unlog [-d] <id>\n", pname);
  fprintf(stderr, " %s report\n", pname);
}

void tl_init(const char* pname)
{
  /* TODO: Directory `.tl/'. */

{'fraction_non_alphanumeric': 0.1981279251170047, 'fraction_numerical': 0.005200208008320333, 'mean_word_length': 3.8463476070528966, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4160999', 'n_tokens_mistral': 781, 'n_tokens_neox': 772, 'n_words': 197}