<commit_before>subroutine save_dets_qmcchem
 use bitmasks
 implicit none
 character :: c(mo_tot_num)
 integer :: i,k

 integer, allocatable :: occ(:,:,:), occ_tmp(:,:)
 !DIR$ ATTRIBUTES ALIGN : $IRP_ALIGN :: occ, occ_tmp

 read_wf = .True.
 TOUCH read_wf
 call ezfio_set_determinants_det_num(N_det)
 call ezfio_set_determinants_det_coef(psi_coef_sorted(1,1))

 allocate (occ(elec_alpha_num,N_det,2))
 ! OMP PARALLEL DEFAULT(NONE) &
 ! OMP PRIVATE(occ_tmp,i,k)&
 ! OMP SHARED(N_det,psi_det_sorted,elec_alpha_num, &
 ! OMP   occ,elec_beta_num,N_int)
 allocate (occ_tmp(N_int*bit_kind_size,2))
 occ_tmp = 0
 ! OMP DO 
 do i=1,N_det
  call bitstring_to_list(psi_det_sorted(1,1,i), occ_tmp(1,1), elec_alpha_num, N_int )
  call bitstring_to_list(psi_det_sorted(1,2,i), occ_tmp(1,2), elec_beta_num, N_int )
  do k=1,elec_alpha_num
    occ(k,i,1) = occ_tmp(k,1)
    occ(k,i,2) = occ_tmp(k,2)
  enddo
 enddo
 ! OMP END DO
 deallocate(occ_tmp)
 ! OMP END PARALLEL
 call ezfio_set_determinants_det_occ(occ)
 call write_int(output_dets,N_det,'Determinants saved for QMC')
 deallocate(occ)
 open(unit=31,file=trim(ezfio_filename)//'/mo_basis/mo_classif')
 write(31,*) 1
 write(31,*) mo_tot_num
 do i=1,mo_tot_num
   write(31,'(A)') 'a'
 enddo
 close(31)
 call system('gzip '//trim(ezfio_filename)//'/mo_basis/mo_classif')
end
<commit_msg>Write good format for the ezfio mo_classif<commit_after>subroutine save_dets_qmcchem
 use bitmasks
 implicit none
 character :: c(mo_tot_num)
 integer :: i,k

 integer, allocatable :: occ(:,:,:), occ_tmp(:,:)
 !DIR$ ATTRIBUTES ALIGN : $IRP_ALIGN :: occ, occ_tmp

 read_wf = .True.
 TOUCH read_wf
 call ezfio_set_determinants_det_num(N_det)
 call ezfio_set_determinants_det_coef(psi_coef_sorted(1,1))

 allocate (occ(elec_alpha_num,N_det,2))
 ! OMP PARALLEL DEFAULT(NONE) &
 ! OMP PRIVATE(occ_tmp,i,k)&
 ! OMP SHARED(N_det,psi_det_sorted,elec_alpha_num, &
 ! OMP   occ,elec_beta_num,N_int)
 allocate (occ_tmp(N_int*bit_kind_size,2))
 occ_tmp = 0
 ! OMP DO 
 do i=1,N_det
  call bitstring_to_list(psi_det_sorted(1,1,i), occ_tmp(1,1), elec_alpha_num, N_int )
  call bitstring_to_list(psi_det_sorted(1,2,i), occ_tmp(1,2), elec_beta_num, N_int )
  do k=1,elec_alpha_num
    occ(k,i,1) = occ_tmp(k,1)
    occ(k,i,2) = occ_tmp(k,2)
  enddo
 enddo
 ! OMP END DO
 deallocate(occ_tmp)
 ! OMP END PARALLEL
 call ezfio_set_determinants_det_occ(occ)
 call write_int(output_dets,N_det,'Determinants saved for QMC')
 deallocate(occ)
 open(unit=31,file=trim(ezfio_filename)//'/mo_basis/mo_classif')
 write(31,'(I1)') 1
 write(31,*) mo_tot_num
 do i=1,mo_tot_num
   write(31,'(A)') 'a'
 enddo
 close(31)
 call system('gzip '//trim(ezfio_filename)//'/mo_basis/mo_classif')
end

{'fraction_non_alphanumeric': 0.13748137108792846, 'fraction_numerical': 0.02347242921013413, 'mean_word_length': 6.122015915119364, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3080352', 'n_tokens_mistral': 1273, 'n_tokens_neox': 1224, 'n_words': 196}