<commit_before> #include <stdio.h>

int main(){
      FILE *fp;  
      int charLength;  
      char ch;

      int i=0, k=0;
      int q = 0;

      fp = fopen("e://o2jsf/main/Employee.ns", "r");
      fseek(fp, 0, SEEK_END);  
      charLength = ftell(fp)+1;  
      fclose(fp);

      char stream[charLength];
      fp = fopen("e://o2jsf/main/Employee.ns", "r");
      while((ch=fgetc(fp))!=EOF){ 
            stream[i] = ch;
            i++;
      }
      fclose(fp);



   //Algorithm
   /*
   47-/
   10-new-line
   42-*
   */
   int line=0;
   
   while(q<30){
      //printf("%d.%d(%c)\n", q,stream[q], stream[q]); q++;
      if(stream[q]==10)
         ++line;
      if(stream[q]==47){
            if(stream[q+1]==47 || stream[q+1]==42){
               if(stream[q+1]==47){
                  while(stream[q]!=10){
                     if(stream[q+1]==10)
                        ++line;
                     ++q;
                  }   
               }
               if(stream[q+1]==42){
                  while(stream[q]!=42 && stream[q+1]!=47){
                     if(stream[q]==10)
                        ++line;
                     ++q;
                  }
               }
            }else{
               printf("\nError:> Comment not properly close at Line No.%d column no.%d", line, q);
            }
      }
      q++; 
   }  
}<commit_msg>Few Changes In Comment Algo<commit_after>#include <stdio.h>

int main(){
      FILE *fp;  
      int charLength;  
      char ch;

      int i=0, k=0;
      int q = 0;

      fp = fopen("e://o2jsf/main/Employee.ns", "r");
      fseek(fp, 0, SEEK_END);  
      charLength = ftell(fp)+1;  
      fclose(fp);

      char stream[charLength];
      fp = fopen("e://o2jsf/main/Employee.ns", "r");
      while((ch=fgetc(fp))!=EOF){ 
            stream[i] = ch;
            i++;
      }
      fclose(fp);



   /*
   * function: Comment Algorithm
   * 10->\n
   * 42->*
   * 47->/
   */
   int line=0;
   
   while(q!=charLength){
      //printf("%d.%d(%c)\n", q,stream[q], stream[q]); q++;
      if(stream[q]==10)
         ++line;
      if(stream[q]==47){
            if(stream[q+1]==47 || stream[q+1]==42){
               if(stream[q+1]==47){
                  while(stream[q]!=10){
                     if(stream[q+1]==10)
                        ++line;
                     ++q;
                  }   
               }
               if(stream[q+1]==42){
                  while(stream[q]!=42 && stream[q+1]!=47){
                     if(stream[q]==10)
                        ++line;
                     ++q;
                  }
               }
            }else{
               printf("\nError:> Comment not properly close at Line No.%d column no.%d", line, q);
            }
      }
      q++; 
   }  
}
{'fraction_non_alphanumeric': 0.18250813155041562, 'fraction_numerical': 0.03108059269967474, 'mean_word_length': 1.1625, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 10, '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': '7410886', 'n_tokens_mistral': 1026, 'n_tokens_neox': 935, 'n_words': 159}