Buggy code:
public class WorkloadBatch { private int wrl_id ; private SortedMap < Integer , Map < Integer , Transaction > > trMap ; public SimpleHypergraph < SimpleVertex , SimpleHEdge > hgr ; public Sword sword ; public MethodX methodX ; public Map < Integer , Set < Integer > > edge_id_map ; public Map < Integer , Integer > cEdge_id_map ; public Map < Integer , Integer > cHEdge_id_map ; private int db_tuple_counts ; private int wrl_total_data ; private Map < Integer , Integer > wrl_dataId_clusterId_map ; private Map < Integer , Integer > wrl_virtualDataId_clusterId_map ; private String wrl_file_name ; private String wrl_fixfile_name ; private File wrl_file ; private File wrl_fixfile ; private PrintWriter wrl_prWriter ; private PrintWriter miner_prWriter ; private double idt ; private int _tr_nums ; private int _old_dt_nums ; private int _dt_nums ; private int _old_ndt_nums ; private int _ndt_nums ; private int _dt_original ; private int _dt_new ; private int _edges_in_cut ; private double _throughput ; private double _response_time ; private double _percentage_dt ; private double _percentage_ndt ; private int _intra_dmv ; private int _inter_dmv ; private double _percentage_intra_dmv ; private double _percentage_inter_dmv ; public WorkloadBatch ( int id ) { } public int getWrl_id ( ) { } public void setWrl_id ( int wrl_id ) { } public SortedMap < Integer , Map < Integer , Transaction > > getTrMap ( ) { } public void setTrMap ( SortedMap < Integer , Map < Integer , Transaction > > trMap ) { } public int getDb_tuple_counts ( ) { } public void setDb_tuple_counts ( int db_tuple_counts ) { } public int getWrl_totalDataObjects ( ) { } public void setWrl_totalDataObjects ( int wrl_totalData ) { } public int get_tr_nums ( ) { } public void set_tr_nums ( int wrl_tr_nums ) { } public int get_old_dt_nums ( ) { } public void set_old_dt_nums ( int _old_dt_nums ) { } public int get_dt_nums ( ) { } public void set_dt_nums ( int wrl_dt_nums ) { } public int get_dt_new ( ) { } public void set_dt_new ( int _dt_new ) { } public void inc_dt_nums ( ) { } public void dec_dt_nums ( ) { } public double get_percentage_dt ( ) { } public void set_percentage_dt ( double wrl_percentage_dt ) { } public int get_old_ndt_nums ( ) { } public void set_old_ndt_nums ( int _old_ndt_nums ) { } public int get_dt_original ( ) { } public void set_dt_original ( int _dt_original ) { } public int get_ndt_nums ( ) { } public void set_ndt_nums ( int wrl_ndt_nums ) { } public int get_edges_in_cut ( ) { } public void set_edges_in_cut ( int _edges_in_cut ) { } public void inc_ndt_nums ( ) { } public void dec_ndt_nums ( ) { } public double get_percentage_ndt ( ) { } public void set_percentage_ndt ( double wrl_percentage_ndt ) { } public double getIdt ( ) { } public void setIdt ( double idt ) { } public double get_throughput ( ) { } public void set_throughput ( double wrl_throughput ) { } public double get_response_time ( ) { } public void set_response_time ( double wrl_response_time ) { } public int get_intra_dmv ( ) { } public void set_intra_dmv ( int wrl_intra_dmv ) { } public int get_inter_dmv ( ) { } public void set_inter_dmv ( int wrl_inter_dmv ) { } public double get_percentage_intra_dmv ( ) { } public void set_percentage_intra_dmv ( double wrl_percentage_intra_dmv ) { } public double get_percentage_inter_dmv ( ) { } public void set_percentage_inter_dmv ( double wrl_percentage_inter_dmv ) { } public Map < Integer , Integer > getWrl_dataId_clusterId_map ( ) { } public void setWrl_dataId_clusterId_map ( Map < Integer , Integer > wrl_dataId_clusterId_map ) { } public Map < Integer , Integer > getWrl_virtualDataId_clusterId_map ( ) { } public void setWrl_virtualDataId_clusterId_map ( Map < Integer , Integer > wrl_virtualDataId_clusterId_map ) { } public String getWrl_file_name ( ) { } public void setWrl_file_name ( String wrl_file_name ) { } public String getWrl_fixfile_name ( ) { } public void setWrl_fixfile_name ( String wrl_fixfile_name ) { } public File getWrl_file ( ) { } public void setWrl_file ( File wrl_file ) { } public File getWrl_fixfile ( ) { } public void setWrl_fixfile ( File wrl_fixfile ) { } public PrintWriter getWrl_prWriter ( ) { } public void setWrl_prWriter ( PrintWriter wrl_prWriter ) { } public PrintWriter getMiner_prWriter ( ) { } public void setMiner_prWriter ( PrintWriter miner_prWriter ) { } public void calculateThroughput ( int total_transactions ) { } public void calculateResponseTime ( int total_transactions , double total_response_time ) { } public void addHGraphEdge ( Cluster cluster , Transaction tr ) { SimpleHEdge h = this . hgr . getHEdge ( tr . getTr_id ( ) ) ; <START_BUG> double tr_frequency = 1 // ( tr . getTr_period ( ) ) ; <END_BUG> if ( h != null ) h . setWeight ( tr_frequency ) ; else { this . hgr . addHEdge ( new SimpleHEdge ( tr . getTr_id ( ) , tr_frequency ) , this . getVertices ( cluster , tr . getTr_dataSet ( ) ) ) ; } } private Set < SimpleVertex > getVertices ( Cluster cluster , Set < Integer > trDataSet ) { } public Transaction getTransaction ( int tr_id ) { } public void removeTransaction ( Cluster cluster , Transaction tr ) { } public void removeTransactions ( Set < Integer > removed_transactions , int i ) { } public ArrayList < Integer > getTrListForSearchedData ( int data_id ) { } public void deleteDataFromTr ( int data_id , ArrayList < Integer > trList ) { } public void deleteTrDataFromWorkload ( int data_id ) { } public void prepareMiningFile ( Cluster cluster ) { } public void calculateDTI ( Cluster cluster ) { } public void show ( ) { } No newline ; at end ; of file ; }

Fix:
int tr_frequency = ( ( int ) ( ( Global . observationWindow ) // ( tr . getTr_period ( ) ) ) ) ;