Similar Code Analysis Report

This document contains the results of performing a similar code analysis of projectscellsociety_team09 at 9/29/16 2:18 PM.

Table of contents

number of lines number of occurrences names of resources
5..3 2 Grid, NeighborManager
7 2 NeighborManager
7..5 2 NeighborManager
7..5 2 NeighborManager
11..10 2 Grid
8..7 2 GameOfLife, Fire
6 5 ReadInFile
4 2 ReadInFile
3 4 Display
6 2 NeighborManager
2 2 NeighborManager
7 2 NeighborManager
6 2 ReadInFile
7 2 Grid
9 2 FireCell, Wa_TorCell
6 3 ReadInFile
7 2 Wa_Tor
4 3 Wa_Tor
3 6 GameOfLife, Fire, Ants, Segregation
10..8 2 NeighborManager
10..9 2 FireDisplay, SegregationDisplay
3 3 Wa_TorDisplay
6 2 Ants
3 2 GameOfLife, GameOfLifeChart
3 2 GameOfLife, GameOfLifeChart
2 2 Wa_Tor
2 2 Ants
5 2 NeighborManager

List of matches

 

6 lines in ReadInFile (x5)


ReadInFile
/cellsociety_team09/src/cellsociety_team09/ReadInFile.java
ReadInFile
/cellsociety_team09/src/cellsociety_team09/ReadInFile.java
ReadInFile
/cellsociety_team09/src/cellsociety_team09/ReadInFile.java
ReadInFile
/cellsociety_team09/src/cellsociety_team09/ReadInFile.java
   private void getSharkRepRate(Document d) { 
      NodeList sharkRepList = d.getElementsByTagName("SharkRepoRate"); 
      NodeList sharkRepNode = sharkRepList.item(0).getChildNodes(); 
      int sharkRep = Integer.parseInt(sharkRepNode.item(0).getNodeValue().trim()); 
      sharkRepRate = sharkRep
   } 
   private void getFishEnergy(Document d) { 
      NodeList fishEnergyList = d.getElementsByTagName("FishEnergy"); 
      NodeList fishEnergyNode = fishEnergyList.item(0).getChildNodes(); 
      int fishEng = Integer.parseInt(fishEnergyNode.item(0).getNodeValue().trim()); 
      fishEnergy = fishEng
   } 
   private void getFishRepRate(Document d) { 
      NodeList fishRepList = d.getElementsByTagName("FishRepoRate"); 
      NodeList fishRepNode = fishRepList.item(0).getChildNodes(); 
      int fishRep = Integer.parseInt(fishRepNode.item(0).getNodeValue().trim()); 
      fishRepRate = fishRep
   } 
   private void getStartingEnergy(Document d) { 
      NodeList startingEngList = d.getElementsByTagName("StartingEnergy"); 
      NodeList startingEngNode = startingEngList.item(0).getChildNodes(); 
      int startingEng = Integer.parseInt(startingEngNode.item(0).getNodeValue().trim()); 
      startingEnergy = startingEng
   } 
9/29/16 2:18 PM Powered by CodePro Server