<commit_before>#ifndef __SIMULATION__
#define __SIMULATION__

#include <stdint.h>
#include "particles.h"
#include "emf.h"
#include "current.h"

typedef struct {
	
	int moving_window;

	// Time step
	float dt;
	float tmax;
	
	// Diagnostic frequency
	int ndump;

	// Simulation data
	int n_species;
	t_species* species;
	t_emf emf;
	t_current current;


} t_simulation;


void sim_init( t_simulation* sim );
void sim_report( t_emf* emf, t_current* current, t_species species[] );

void sim_new( t_simulation* sim, int nx[], float box[], float dt, float tmax, int ndump, t_species* species, int n_species );
int report( int n, int ndump );
void sim_timings( t_simulation* sim, uint64_t t0, uint64_t t1 );
void sim_add_laser( t_simulation* sim,  t_emf_laser* laser );
void sim_delete( t_simulation* sim );

void sim_set_moving_window( t_simulation* sim );
void sim_set_smooth( t_simulation* sim,  t_smooth* smooth );

#endif<commit_msg>Updates the interface of sim_report on EM2D<commit_after>#ifndef __SIMULATION__
#define __SIMULATION__

#include <stdint.h>
#include "particles.h"
#include "emf.h"
#include "current.h"

typedef struct {

	int moving_window;

	// Time step
	float dt;
	float tmax;

	// Diagnostic frequency
	int ndump;

	// Simulation data
	int n_species;
	t_species* species;
	t_emf emf;
	t_current current;


} t_simulation;


void sim_init( t_simulation* sim );
void sim_report( t_simulation* sim );

void sim_new( t_simulation* sim, int nx[], float box[], float dt, float tmax, int ndump, t_species* species, int n_species );
int report( int n, int ndump );
void sim_timings( t_simulation* sim, uint64_t t0, uint64_t t1 );
void sim_add_laser( t_simulation* sim,  t_emf_laser* laser );
void sim_delete( t_simulation* sim );

void sim_set_moving_window( t_simulation* sim );
void sim_set_smooth( t_simulation* sim,  t_smooth* smooth );

#endif
{'fraction_non_alphanumeric': 0.10376344086021505, 'fraction_numerical': 0.006989247311827957, 'mean_word_length': 5.061889250814332, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6464923', 'n_tokens_mistral': 736, 'n_tokens_neox': 700, 'n_words': 205}