<commit_before>#!/usr/bin/python
import sys
fo=open('geometry.in','r');
fw=open('output','w');
line=fo.readline();
while(len(line)>2):
#	if (((float(line.split()[3])-0.024)>0.000001)and((float(line.split()[3])-0.21)<0.0001)):
	if ((float(line.split()[3])-5.6)<0.00001):
		fw.write(line);
		fw.write("constrain_relaxation .true.\n");
	else:
		fw.write(line);
	line=fo.readline();
fw.close();
fo.close();<commit_msg>fix the bug adding constrain info after the lattice line<commit_after>#!/usr/bin/python
import sys, os
fo=open('geometry.in','r');
fw=open('output','w');
line=fo.readline();
while(len(line)>2):
	if len(line.split())<5:
		fw.write(line);
	elif ((float(line.split()[3])-5.6)<0.00001):
		fw.write(line);
		fw.write("constrain_relaxation .true.\n");
	else:
		fw.write(line);
	line=fo.readline();
fw.close();
fo.close();

os.system('mv output geometry.in')
{'fraction_non_alphanumeric': 0.2566473988439306, 'fraction_numerical': 0.048554913294797684, 'mean_word_length': 6.098360655737705, 'pattern_counts': {'":': 0, '<': 7, '<?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': '864812', 'n_tokens_mistral': 383, 'n_tokens_neox': 346, 'n_words': 51}