<commit_before><commit_msg>Added problem1 for homework2<commit_after>/* Write a program to print all input lines that are longer than 50 characters  */

#include <stdio.h>
#include <string.h>

#define LINE_SIZE 25000
#define LIMIT 50

int main() {
  char line[LINE_SIZE];
  FILE *fin = fopen("input.txt", "r");

  while(fgets(line, sizeof line, fin) != NULL) {
    if(strlen(line) >= LIMIT) {
      printf("%s\n", line);
    }
  }

  return 0;
}
{'fraction_non_alphanumeric': 0.14606741573033707, 'fraction_numerical': 0.02696629213483146, 'mean_word_length': 3.795698924731183, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '3783485', 'n_tokens_mistral': 166, 'n_tokens_neox': 155, 'n_words': 47}