// Path: geo-locator/src/edu/cmu/geolocator/GlobalParam.java
// public class GlobalParam {
//   
//   public static String gazIndex="GazIndex";
//   public static String geoNames="GeoNames";
//   public static String getGazIndex() {
//     return gazIndex;
//   }
//   public static void setGazIndex(String gazIndex) {
//     GlobalParam.gazIndex = gazIndex;
//     return;
//   }
//   public static String getGeoNames() {
//     return geoNames;
//   }
//   public static  void setGeoNames(String geoNames) {
//     GlobalParam.geoNames = geoNames;
//     return;
//   }
// 
// }
// 
// Path: geo-locator/src/edu/cmu/geolocator/io/GetReader.java
// public class GetReader {
// 
//   public static BufferedReader getUTF8FileReader(String filename) throws FileNotFoundException,
//           UnsupportedEncodingException {
//     File file = new File(filename);
//     BufferedReader bin = new BufferedReader(new InputStreamReader(new FileInputStream(file),
//             "utf-8"));
//     return bin;
//   }
// 
//   public static IndexSearcher getIndexSearcherFromWriter(String filename) throws IOException {
//     IndexWriter iw = GetWriter.getIndexWriter(filename, 1024);
//     IndexReader ir = IndexReader.open(iw, false);
//     IndexSearcher searcher = new IndexSearcher(ir);
//     return searcher;
//   }
// 
//   public static IndexSearcher getIndexSearcher(String filename, String diskOrMem) throws Exception {
//     IndexReader reader;
//     Directory d ;
//     if (diskOrMem.equals("disk"))
//       d = FSDirectory.open(new File(filename));
//     else if (diskOrMem.equals("mmap"))
//       d=  MmapDirectory(new File(filename));
//     else
//       throw new Exception("parameter for directory type not defined.");
//     
//     if(OSUtil.isWindows())
//      reader = IndexReader.open(FSDirectory.open(new File(filename)));
//     else
//       reader = IndexReader.open(NIOFSDirectory.open(new File(filename))); 
//     IndexSearcher searcher = new IndexSearcher(reader);
//     return searcher;
//   }
// 
//   private static Directory MmapDirectory(File file) {
//     // TODO Auto-generated method stub
//     return null;
//   }
// 
//   public static BufferedReader getCommandLineReader() throws UnsupportedEncodingException {
//     BufferedReader br = new BufferedReader(new InputStreamReader(System.in, "utf-8"));
//     return br;
//   }
// 
// }
// 
// Path: geo-locator/src/edu/cmu/geolocator/resource/ResourceFactory.java
// public class ResourceFactory {
// 
//   private static CollaborativeIndex collaborativeIndex = CollaborativeIndex.getInstance();
// 
//   private static AdmCode2GazCandidateMap adminCode2GazCandidateMap = AdmCode2GazCandidateMap
//           .getInstance();
// 
//   private static CCodeAdj2CTRYtype countryCode2CountryMap = CCodeAdj2CTRYtype
//           .getInstance();
// 
//   private static FeatureCode2Map featurecode2map = FeatureCode2Map.getInstance();
//   /**
//    * @return the collaborativeIndex
//    */
//   public static CollaborativeIndex getClbIndex() {
//     return collaborativeIndex;
//   }
// 
//   /**
//    * return the GazEntryAndInfo type given the admin code.
//    * @return the adminCode2GazCandidateMap
//    */
//   public static AdmCode2GazCandidateMap getAdminCode2GazCandidateMap() {
//     return adminCode2GazCandidateMap;
//   }
// 
//   /**
//    * return the Country type given the country code.
//    * @return the countryCode2CountryMap
//    * 
//    */
//   public static CCodeAdj2CTRYtype getCountryCode2CountryMap() {
//     return countryCode2CountryMap;
//   }
// 
//   public static FeatureCode2Map getFeatureCode2Map() {
//     // TODO Auto-generated method stub
//     return featurecode2map;
//   }
// }


import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import edu.cmu.geolocator.GlobalParam;
import edu.cmu.geolocator.io.GetReader;
import edu.cmu.geolocator.resource.ResourceFactory;
package edu.cmu.geolocator.resource.Map;



public class FeatureCode2Map {
  HashMap<String,Integer> codemap;
  public FeatureCode2Map() {
    // TODO Auto-generated constructor stub
    codemap = new HashMap<String,Integer>();
  }

  public static void main(String args[]) {
// Path: geo-locator/src/edu/cmu/geolocator/GlobalParam.java
// public class GlobalParam {
//   
//   public static String gazIndex="GazIndex";
//   public static String geoNames="GeoNames";
//   public static String getGazIndex() {
//     return gazIndex;
//   }
//   public static void setGazIndex(String gazIndex) {
//     GlobalParam.gazIndex = gazIndex;
//     return;
//   }
//   public static String getGeoNames() {
//     return geoNames;
//   }
//   public static  void setGeoNames(String geoNames) {
//     GlobalParam.geoNames = geoNames;
//     return;
//   }
// 
// }
// 
// Path: geo-locator/src/edu/cmu/geolocator/io/GetReader.java
// public class GetReader {
// 
//   public static BufferedReader getUTF8FileReader(String filename) throws FileNotFoundException,
//           UnsupportedEncodingException {
//     File file = new File(filename);
//     BufferedReader bin = new BufferedReader(new InputStreamReader(new FileInputStream(file),
//             "utf-8"));
//     return bin;
//   }
// 
//   public static IndexSearcher getIndexSearcherFromWriter(String filename) throws IOException {
//     IndexWriter iw = GetWriter.getIndexWriter(filename, 1024);
//     IndexReader ir = IndexReader.open(iw, false);
//     IndexSearcher searcher = new IndexSearcher(ir);
//     return searcher;
//   }
// 
//   public static IndexSearcher getIndexSearcher(String filename, String diskOrMem) throws Exception {
//     IndexReader reader;
//     Directory d ;
//     if (diskOrMem.equals("disk"))
//       d = FSDirectory.open(new File(filename));
//     else if (diskOrMem.equals("mmap"))
//       d=  MmapDirectory(new File(filename));
//     else
//       throw new Exception("parameter for directory type not defined.");
//     
//     if(OSUtil.isWindows())
//      reader = IndexReader.open(FSDirectory.open(new File(filename)));
//     else
//       reader = IndexReader.open(NIOFSDirectory.open(new File(filename))); 
//     IndexSearcher searcher = new IndexSearcher(reader);
//     return searcher;
//   }
// 
//   private static Directory MmapDirectory(File file) {
//     // TODO Auto-generated method stub
//     return null;
//   }
// 
//   public static BufferedReader getCommandLineReader() throws UnsupportedEncodingException {
//     BufferedReader br = new BufferedReader(new InputStreamReader(System.in, "utf-8"));
//     return br;
//   }
// 
// }
// 
// Path: geo-locator/src/edu/cmu/geolocator/resource/ResourceFactory.java
// public class ResourceFactory {
// 
//   private static CollaborativeIndex collaborativeIndex = CollaborativeIndex.getInstance();
// 
//   private static AdmCode2GazCandidateMap adminCode2GazCandidateMap = AdmCode2GazCandidateMap
//           .getInstance();
// 
//   private static CCodeAdj2CTRYtype countryCode2CountryMap = CCodeAdj2CTRYtype
//           .getInstance();
// 
//   private static FeatureCode2Map featurecode2map = FeatureCode2Map.getInstance();
//   /**
//    * @return the collaborativeIndex
//    */
//   public static CollaborativeIndex getClbIndex() {
//     return collaborativeIndex;
//   }
// 
//   /**
//    * return the GazEntryAndInfo type given the admin code.
//    * @return the adminCode2GazCandidateMap
//    */
//   public static AdmCode2GazCandidateMap getAdminCode2GazCandidateMap() {
//     return adminCode2GazCandidateMap;
//   }
// 
//   /**
//    * return the Country type given the country code.
//    * @return the countryCode2CountryMap
//    * 
//    */
//   public static CCodeAdj2CTRYtype getCountryCode2CountryMap() {
//     return countryCode2CountryMap;
//   }
// 
//   public static FeatureCode2Map getFeatureCode2Map() {
//     // TODO Auto-generated method stub
//     return featurecode2map;
//   }
// }


// Path: geo-locator/src/edu/cmu/geolocator/resource/Map/FeatureCode2Map.java
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import edu.cmu.geolocator.GlobalParam;
import edu.cmu.geolocator.io.GetReader;
import edu.cmu.geolocator.resource.ResourceFactory;

package edu.cmu.geolocator.resource.Map;



public class FeatureCode2Map {
  HashMap<String,Integer> codemap;
  public FeatureCode2Map() {
    // TODO Auto-generated constructor stub
    codemap = new HashMap<String,Integer>();
  }

  public static void main(String args[]) {
    FeatureCode2Map fm = ResourceFactory.getFeatureCode2Map().getInstance();