This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
@author Sujatha | |
*/ | |
import org.apache.commons.lang.StringUtils; | |
public class Polynomial { | |
public static void main(String[] args) { | |
// TODO Auto-generated method stub | |
long num = 1; | |
if (args.length < 0){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
@author Sujatha | |
*/ | |
import java.util.ArrayList; | |
import org.apache.commons.lang.StringUtils; | |
public class MSequence { | |
public static void generatePolynomial(String degree) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.Reader; | |
import java.net.HttpURLConnection; | |
import java.net.MalformedURLException; | |
import java.net.URI; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ourOffice; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.util.HashMap; | |
import java.util.Iterator; | |
import java.util.Map; | |
public class CSVGenerator { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ourOffice.model; | |
import java.util.ArrayList; | |
//This class is used for storing input word pool file name and word list | |
public class WordPool { | |
private ArrayList<String> wordList; | |
private String fileName; | |
public ArrayList<String> getWordList() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ourOffice; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.util.ArrayList; | |
import java.util.Collection; | |
import java.util.Collections; | |
import java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ourOffice.model; | |
import java.util.HashMap; | |
// This class is used for storing filename, Hashmap containing the words and | |
// their frequency of occurrence in the files in the given folder | |
public class DocFrequencyHashMap { | |
private HashMap<String, Integer> hm; | |
private String fileName; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ourOffice.test; | |
import static org.junit.Assert.assertEquals; | |
import static org.junit.Assert.assertNull; | |
import static org.junit.Assert.fail; | |
import org.junit.Test; | |
import com.ourOffice.utils.Utils; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ourOffice.utils; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.util.HashMap; | |
public class Utils { | |
/** | |
* This method is used to extract the file extension | |
* |