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

char *revstr(char *str, size_t len)
{

    char    *start = str;
    char    *end = str + len - 1;
    char    ch;

    if (str != NULL)
    {
        while (start < end)
        {
            ch = *start;
            *start++ = *end;
            *end-- = ch;
        }
    }
    return str;
}
main(int argc, char const *argv[])
{	char data[10000][13]={0};
	char *s1,*s2;

	int i=0;
	FILE * infile;

	infile=fopen("case1.in","r");

	while(fgets(data[i],12,infile)!=NULL){
		i++;
	}
	for (int j = 0; j < i; ++j){
		int len=strlen(ddata[i]);
		data[i]=revstr(data[i],len);
	}
	for (int j = 0; j < i; ++j)//fuck!!!!!!!!!!!!!!!!!
	{
		for (int k = 0; k < j; ++k)
		{
			if(strcmp(data[j],data[k])<0){
				s1=data[j];
				s2=data[k];
				char tmp[13];
				strcpy(tmp,s1);
				strcpy(s1,s2);
				strcpy(s2,tmp);
			}
		}
	}

	for (int j = 0; j < i; ++j)
	{
		//printf("%s",data[j]);
		printstrre(data[j]);
		//fputs(data[j],outfile);
	}
	fclose(infile);

}<commit_msg>update uoj1107<commit_after>#include "stdio.h"
#include "string.h"

char *revstr(char *str, size_t len)
{

    char    *start = str;
    char    *end = str + len - 1;
    char    ch;

    if (str != NULL)
    {
        while (start < end)
        {
            ch = *start;
            *start++ = *end;
            *end-- = ch;
        }
    }
    return str;
}
main(int argc, char const *argv[])
{	char data[10000][13]={0};
	char *s1,*s2;

	int i=0;
	FILE * infile;

	infile=fopen("case1.in","r");

	while(fgets(data[i],12,infile)!=NULL){
		i++;
	}
	for (int j = 0; j < i; ++j){
		int len=strlen(data[i]);
		data[i]=revstr((char *)data[i],len);
	}
	for (int j = 0; j < i; ++j)//fuck!!!!!!!!!!!!!!!!!
	{
		for (int k = 0; k < j; ++k)
		{
			if(strcmp(data[j],data[k])<0){
				s1=data[j];
				s2=data[k];
				char tmp[13];
				strcpy(tmp,s1);
				strcpy(s1,s2);
				strcpy(s2,tmp);
			}
		}
	}

	for (int j = 0; j < i; ++j)
	{
		//printf("%s",data[j]);
		printstrre(data[j]);
		//fputs(data[j],outfile);
	}
	fclose(infile);

}
{'fraction_non_alphanumeric': 0.2345739471106758, 'fraction_numerical': 0.029382957884427033, 'mean_word_length': 2.321951219512195, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 3, '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': '53515', 'n_tokens_mistral': 1026, 'n_tokens_neox': 924, 'n_words': 186}