text
stringlengths
14
410k
label
int32
0
9
public Monitor(String xmlPath, String dbUrl) throws Exception, ClassNotFoundException, InvocationTargetException, NoSuchMethodException, IllegalAccessException, InstantiationException { File xml = new File(xmlPath); if (!xml.exists()) throw new IllegalArgumentException("XML file with monitor description...
1
public boolean canPlaceAnywhere() { // check still playable for (int y = 0; y < BOARD_LENGTH; y++) { for (int x = 0; x < BOARD_LENGTH; x++) { if (canPlace(y, x)) { return true; } } } return false; }
3
public Status getStatus() { return status; }
0
public static void analyzeListStability(){ TreeMap<Long, Class<?>> map = new TreeMap<Long, Class<?>>(); List<Class<?>> sorts = getSorts(); for(Class<?> clazz : sorts){ sampleListTest(clazz, false); System.out.println("--------"); } for(Class<?> clazz : sorts){ long time = listStabilityTest(clazz, fal...
9
public Cellule plusProche (List<Cellule> l){ Cellule c = null; int d = Integer.MAX_VALUE; for(int i = 0 ; i < l.size() ; i++){ if(l.get(i) != this){ int di = l.get(i).distance(this); if(di < d){ c = l.get(i); d = di; } } } return c; }
3
public void onEnable() { checkFiles(); PluginManager pm = getServer().getPluginManager(); pm.registerEvents(new FAAPlayerListener(this), this); getCommand("account").setExecutor(new AccountCommand(this)); server = getServer(); Class<? extends ForumHandler> fh = null; try { fh = Class.forName(getConfig(...
5
public void update(MouseEvent e, mxCellState targetState, double x, double y) { mxGraph graph = graphComponent.getGraph(); mxICell cell = (mxICell) previewState.getCell(); mxRectangle dirty = graphComponent.getGraph().getPaintBounds( new Object[] { previewState.getCell() }); if (cell.getTerminal(false) !...
3
public float[][] getM() { float[][] res = new float[4][4]; for ( int i = 0; i < 4; i++ ) for ( int j = 0; j < 4; j++ ) res[i][j] = m[i][j]; return res; }
2
public String addINode(String resource_id, String inode_id) { String node_id = null; int count = 0; try { while((node_id == null) && (count != retryCount)) { if(count > 0) { Thread.sleep((long)(Math.random(...
6
public static String extractLCS(String s1, String s2, int[][] lcs){ int i = lcs.length-1; int j = lcs[0].length-1; int length = lcs[s1.length()][s2.length()]; char[] chars = new char[length]; int index = length - 1; while(i > 0 && j > 0 && index >= 0){ if(s1.charAt(i-1) == s2.charAt(j-1)){ chars[inde...
5
public static MavenRelationships getByName(String name) { if (name.equalsIgnoreCase("COMPILE")) { return COMPILE; } else if (name.equalsIgnoreCase("PROVIDED")) { return PROVIDED; } else if (name.equalsIgnoreCase("RUNTIME")) { return RUNTIME; } else if ...
8
@Override public int posicionFichaY(int nivel) { return nivel == 1 ? 260 : nivel == 2 ? 233 : nivel == 3 ? 206 : nivel == 4 ? 179 : nivel == 5 ? 152 : nivel == 6 ? 125 : nivel == 7 ? 98 : nivel =...
8
private void setPesoLlaveEntera(int llave, double valor){ switch (llave) { case 0: this.setPeso(THRESHOLD, valor); break; case 1: this.setPeso(EMBARAZOS, valor); break; case 2: this.setPeso(CONCENTRACION_GLUCOSA, valor); break; case 3: this.setPeso(PRESION_ARTERIAL, valor); ...
9
public int getHeight() { return height; }
0
public void removeElement(ZElement element) { enleverFocus(); Iterator<ZLien> e = zliens.iterator(); List<ZLien> supp = new ArrayList<ZLien>(); while (e.hasNext()) { ZLien l = (ZLien) (e.next()); if (l.getElement(Constantes.MCDENTITE1).equals(element) ...
3
public static TreeMap<Long, IpEntity> getLastConnections() { TreeMap<Long, IpEntity> treeMap = new TreeMap<>(); TreeMap<Long, IpEntity> resMap = new TreeMap<>(); for (IpEntity ip : requestEntityMap.values()) { for (UrlEntity url : ip.getUrlSet()) { System.out.println(...
5
public boolean isRestricted(xAuthPlayer player, Event event) { if (!player.isProtected()) return false; boolean restrict = true; String[] split = event.getEventName().split("\\."); String eventName = split[split.length - 1]; split = eventName.split("(?=\\p{Upper})"); // first element (0) will always be...
5
public String getTooltipExtraText(final Province current) { final int id = current.getId(); if (!editor.Main.map.isLand(id)) return ""; final String rel = Text.getText(mapPanel.getModel().getHistString(id, "religion")); if (rel.length() == 0) return ""; ...
6
public ListNode rotateRight(ListNode head, int n) { if (head == null) { return null; } ListNode n1 = head; ListNode n2 = head; //n2 move length - n steps while (n > 0) { n2 = n2.getNext(); n--; //in case n > the length of l...
5
public Object getParameter(String key) { if (key.contains(GameSocketServer.BLACKHAND_KEY)) return blackhand; if (key.contains(GameSocketServer.SURRENDER_KEY)) return surrender; if (key.contains(GameSocketServer.TEAMS)) return teams; if (key.contains(GameSocketServer.CARD_SWAP)) return cardswap; if...
6
public void testSetValue() { int scalar = 0; int[] array = { 1, 2, 3 }; ArrayELResolver resolver = new ArrayELResolver(); ArrayELResolver resolverReadOnly = new ArrayELResolver(true); // base == null --> unresolved context.setPropertyResolved(false); resolver.setValue(context, null, "foo", -1); assertF...
8
public static void main(String[] args) { int secretNumber; Scanner input = new Scanner(System.in); int guess; int num = 1; while(num < 4) { secretNumber = (int)(Math.random() * 999 + 1); System.out.print("Guess a number: "); guess = input.nextInt(); System.out.printf("Your guess is %d...
5
protected boolean computeCell(int col, int row) { boolean liveCell = getCell(col, row); int neighbours = countNeighbours(col, row); boolean nextCell = false; if (neighbours < 2) nextCell = false; if (liveCell && (neighbours == 2 || neighbours == 3)) nextCell = true; if (liveCell && neighbours...
8
public FinalData(String id) { this.id = id; }
0
public Autorize() { this.setSize(100,200); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Container c=this.getContentPane(); c.setLayout(new GridLayout(2,1)); port=new JLabel("Port:"); adress=new JLabel("Adress:"); name=new JLabel("Name:"); _port=new JTextField("8080"); _adress=new ...
0
@Override public void keyPressed(KeyEvent e) { }
0
@Override public boolean execute(MOB mob, List<String> commands, int metaFlags) throws java.io.IOException { final Room room=mob.location(); if(room==null) return false; if((commands.size()>1)&&((room.domainType()&Room.INDOORS)==0)&&(commands.get(1).equalsIgnoreCase("WORLD"))) { final StringBuffer tel...
7
private static void binarySort(int[] array){ for (int i=0;i<array.length - 1;++i){ int temp=array[i]; int left=0; int right=i; while (left<right){ int middle=(left+right)/2; if (temp>=a...
4
private void checkIfCanCreate() { boolean canCreate = false; synchronized (this) { if (matchingItems != null) { if (matchingItems.size() > 0) { String item = matchingItems.get(currentItem); if (canCreate(item)) { ...
4
public Turnstile getTurnstile(int id) { if (id < 0 || id >= turnstiles.size()) { return null; } else { return turnstiles.get(id); } }
2
public String writeVerbose(Puzzle p) { StringBuilder sb = new StringBuilder(); appendLine(sb, p); sb.append("\n"); for (int r = 0; r < p.getSide(); r++) { if (r > 0 && r % p.getBoxSize() == 0) { appendDivisor(sb, p); } appendRow(sb, p, r); } appendLine(sb, p); return sb.toString(); }
3
private String[] getCustomFilterPropertyValue(final Properties properties) { String values = this.getPropertyValue(properties, CUSTOM_FILTER_TAG, null); if (values == null) { return null; } return values.split(PARAM_SEPARATOR); }
1
public void onLoad() { plugin = this; PluginManager pm = getServer().getPluginManager(); // Make sure we haven't already been added try { @SuppressWarnings("unchecked") Map<Pattern, PluginLoader> map = (Map<Pattern, PluginLoader>) Reflection.getPrivateValue(pm, "...
8
public YamlConfiguration getConfig() { return config; }
0
@Override public Connection openConnection() throws SQLException, ClassNotFoundException { if (checkConnection()) { return connection; } if (!plugin.getDataFolder().exists()) { plugin.getDataFolder().mkdirs(); } File file = new File(plugin.getDataFolder(), dbLocation); if (!(file.exists())) { t...
4
private static void sameArrayLen(double[]... arr) { int len = arr[0].length; for (double[] a : arr) { if (a.length != len) { throw new IllegalArgumentException("obs and sim data have not same size (" + a.length + "/" + len + ")"); } } }
2
private JTextField getJTextField1() { if (jTextField1 == null) { jTextField1 = new JTextField(); } return jTextField1; }
1
public int playDichotomy(User user, int left, int right) { assert (left <= right) : "left > right"; if (left == right) { return user.theNumberIs(left) ? left : UNDEFINED; } else { final int middle = (left + right) >>> 1; final int leftBranchTry = playDichotomy...
3
public void addStock(Stock stock) { if (!this.stocks.contains(stock)) { this.stocks.add(stock); stock.addSubProcess(this); } }
1
@Override void draw(Graphics g, int xSize, int ySize) { xPixels = col*xSize; yPixels = row*ySize; if (color.equals(Color.RED)) { g.setColor(Color.RED); g.fillRect(xPixels, yPixels, xSize, ySize); } else if (color.equals(Color.CYAN)) { g.setColor(Color.CYAN); g.fillRect(xPixels, yPixels, xSize, y...
2
public void tick() { for (int menu = 0; menu < menus.size(); menu++) { //if (!main.enabled) break; if (menus.get(menu).active()) { //System.out.println("Menu " + menu); for (int i = clicks.size() - 1; i >= 0; i--) { String command = menus.get(menu).click(clicks.get(i).mouseX, clicks.get(i...
9
private int readUInt16(byte[] uint16, int offset) throws IOException { int b0 = uint16[0 + offset] & 0x000000FF; int b1 = uint16[1 + offset] & 0x000000FF; return (b1 << 8) + b0; }
0
private void loadSkipLevels() throws IOException { numberOfSkipLevels = docCount == 0 ? 0 : (int) Math.floor(Math.log(docCount) / Math.log(skipInterval[0])); if (numberOfSkipLevels > maxNumberOfSkipLevels) { numberOfSkipLevels = maxNumberOfSkipLevels; } skipStream[0].seek(skipPointer[0]); ...
6
@Override public boolean setDefault(boolean def) { return (defaultGroup = def); }
0
public void setOptions(String[] options) throws Exception { String tmpStr; tmpStr = Utils.getOption("min", options); if (tmpStr.length() != 0) setMinThreshold(Double.parseDouble(tmpStr)); else setMinThreshold(-Double.MAX_VALUE); tmpStr = Utils.getOption("min-default", options); ...
9
public void setSpawnPoint(ArmyType type) { switch(type) { case PLAYER_FRONT: break; case PLAYER_MAIN: spawnPoint = new Point2D.Double(380, 540); break; case PLAYER_LEFTWING: break; case PLAYER_RIGHTWING: break; case ENEMY_FRONT: break; case...
8
public Student search(int id) throws UnknownStudent { Student s = null; boolean found = false; int i = 0; while (i < getList().size() && !found) { s = getList().get(i); if (s.getId() == id) found = true; i++; } if (!found) { throw new UnknownStudent("No student with an id " + id + " i...
4
public void setNamespaces(NodeInfo node) { namespaces.clear(); int kind = node.getNodeKind(); if (kind == Type.ATTRIBUTE || kind == Type.TEXT || kind == Type.COMMENT || kind == Type.PROCESSING_INSTRUCTION || kind == Type.NAMESPACE) { node = node.getParent...
9
private double findSplitNumericNumeric(int index) throws Exception { double bestVal = Double.MAX_VALUE, currVal, currCutPoint; int numMissing = 0; double[] sumsSquares = new double[3], sumOfWeights = new double[3]; double[][] bestDist = new double[3][1]; double totalSum = 0, totalSumOfWeights = 0; ...
8
private void calculateSpikeTrain(SpikingNeuronPhenotype pheno){ double v = -60.0; double u = 0.0; double[] voltageArray = new double[target.length]; voltageArray[0] = v; for (int j = 1; j < target.length; j++){ if (v >= 35.0){ v = pheno.c; ...
5
private void updateGate(String CLK, String SHLD, String CLKINH, String SER, String A, String B, String C, String D, String E, String F, String G, String H, String QH, String nQH) throws InvalidPinException { if (this.isLow(SHLD)) { this.a = this.getPinState(A); this.b = this.getPinState(B); this.c = this.get...
5
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (critical ? 1231 : 1237); result = prime * result + ((manufacturer == null) ? 0 : manufacturer.hashCode()); result = prime * result + ((name == null) ? 0 : name.hashCode()); result = prime * result + ((ori...
4
public int read(int width) throws IOException { if (width == 0) { return 0; } if (width < 0 || width > 32) { throw new IOException("Bad read width."); } int result = 0; while (width > 0) { if (this.available == 0) { this...
7
public static PackedImage read(String filename) throws IOException { FileInputStream in = new FileInputStream(filename); if (!readField(in).equals("P6")) throw new IOException("Not a P6 PPM file"); int nc = Integer.parseInt(readField(in)); int nr = Integer.parseInt(readField(in)); int maxint = Integer.parseInt(re...
4
public boolean isIsomorphic(String a, String b) { if(a.length() != b.length()) { return false; } List<Mapping> aMappings = getMappings(a); List<Mapping> bMappings = getMappings(b); if(aMappings.size() != bMappings.size()){ return false; } for(int i ...
6
private void compileFunctionDeclarations(Program program) throws ParseException, IOException { // function while ((tokenizer.tokenType() == Tokenizer.KEYWORD) && (tokenizer.keyword() == Tokenizer.KW_FUNCTION)) { advance("program not ended"); // <data-type> Typ...
7
public void setParams(Object params) { this.params = params; }
0
final public Attribute parseAttr() throws ParseException { String name; Attribute.Type type; int length = -1; String constraint = ""; name = getTokenImage(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case KW_INT: jj_consume_token(KW_INT); ...
7
public String outerClass(int nth) { int i = outerClassIndex(nth); if (i == 0) return null; else return constPool.getClassInfo(i); }
1
private File findIndexFile(String bamFilename) { File bam = new File(bamFilename); if (!bam.exists()) { System.err.println("BAM file does not exist : " + bam.getAbsolutePath() + "."); System.exit(1); } File index1 = new File( bamFilename+".bai" ); File index2 = new File( bamFilename.substring(0, bamFile...
9
public void paint(java.awt.Graphics g) { // g.drawLine (0, 50, 50, 0); //System.out.println ("paint called"); try { synchronized (repaintLock) { ApplicationManager manager = ApplicationManager.manager; //java.awt.Dimension d = getSize(); if (manager.offscreen == null) { manager.o...
9
public void edgeCollisions(){ Coordinate ballCoord = ball.getCurrentCoordinate(); if (ball.getxSpeed() + ballCoord.getX() + ball.getSize() >= windowWidth){ //Checks if ball hits right edge changeBallDirection('r'); }else if (ballCoord.getX()+ball.getxSpeed() <= 0){ //Checks if ball h...
5
@Override public AbstractComponent parse(String string) throws BookParseException { if (string == null) { throw new BookParseException("String is null"); } try { TextComponent component = (TextComponent) factory .newComponent(EComponentType.LEXEM); String word = ""; for (String s : string.split(...
6
public String name(final PrintType pt) { final String name = name().toLowerCase(); switch (pt) { case START_UP: return name.toUpperCase().substring(0, 1) + name.substring(1); case NORMAL: return name; case UP: return name.toUpperCase(); default: return null; } }
3
@Override public List<AccessPoint> list() { Process p; ProcessBuilder pb = new ProcessBuilder("netsh", "wlan", "show", "networks"); List<AccessPoint> result = new ArrayList<AccessPoint>(); try { p = pb.start(); BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream())); Str...
6
public AnnotationVisitor visitAnnotation(final String desc, final boolean visible) { return new SAXAnnotationAdapter(getContentHandler(), "annotation", visible ? 1 : -1, null, desc); }
1
public double getMass() { return mass; }
0
public void initSpeicher() { for(int i = 0; i < SPEICHERGROESSE; i++) { speicherZellen[i] = new Speicherzelle(new Integer(0)); } }
1
@Override public void caseADoopExp(ADoopExp node) { inADoopExp(node); if(node.getAssgnfrom() != null) { node.getAssgnfrom().apply(this); } if(node.getOp() != null) { node.getOp().apply(this); } if(node.getAssgnto() != null) ...
3
@Override public void handle(HttpExchange exchange) throws IOException { System.out.println("In Load Game handler."); String responseMessage = ""; if(exchange.getRequestMethod().toLowerCase().equals("post")) { exchange.getResponseHeaders().set("Content-Type", "appliction/json"); BufferedReader in = n...
4
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; PosEnvioAPosEntityPK that = (PosEnvioAPosEntityPK) o; if (pepIdElemento != that.pepIdElemento) return false; if (pepMoaConsec != that.pepMoaCon...
9
@Override public void startAddSubContainer(Container c) { containerStack.add(c); }
0
private void updateCamera() { Vector temp = Vector.add(cameraPosition,cameraVelocity); if (temp.x < 0 || temp.x + screenDims.width > mapDims.width) { cameraVelocity.x = 0F; temp.x = (temp.x < 0)?0:mapDims.width - screenDims.width; } if (temp.y < 0 || temp.y + screenDims.height > mapDims.height) { camer...
6
@Override public void mousePressed(MouseEvent e) { int x = e.getX(); int y = e.getY(); if(this.x + this.width - 34 <= x && this.y + scrollPerc*this.height + borderWidth - 3 <= y && this.x + this.width - 1 > x && this.y + scrollPerc*this.height + borderWidth - 3 + scrollButtonHeight - borderWidth > y) { s...
4
public void update(long dt) { if (mapview == null) last_newwidget_time = System.currentTimeMillis(); root.update(dt); }
1
public RPTreeNodeItem getItem(int index) { if (index < 0 || index >= childItems.size()) return null; else { RPTreeChildNodeItem item = childItems.get(index); return (RPTreeNodeItem) item; } }
2
public void updateMaxMin(int frameNo, int max, int min) { switch (frameNo) { case 1: minValue1.setText("" + max); maxValue1.setText("" + min); break; case 2: minValue2.setText("" + max); maxValue2.setText("" ...
4
public TreeRoot getTreeRoot() { TreeRow row = this; while (row != null) { if (row instanceof TreeRoot) { return (TreeRoot) row; } row = row.mParent; } return null; }
2
final void method1346(int i, int i_4_) { anInt2322++; if (Class103.aClass345_1607 != null) { for (Class348_Sub42_Sub9 class348_sub42_sub9 = (Class348_Sub42_Sub9) aClass107_2316.getFirst(); class348_sub42_sub9 != null; class348_sub42_sub9 = ((Class348_Sub42_Sub9) aClass107_2316.next())) { ...
6
public boolean started(){ if(IP == ""){ return false; }else{ return true; } }
1
public static void main(String[] args) throws FileNotFoundException { /* Identifying exception categories * Exceptions can be divided into three main categories: - Checked exceptions - Runtime exceptions - Errors * Checked...
1
public static double bruteForce(double[] Ow, double[] Op, int w){ double res = 0; int size = Op.length; int[] A = new int[size]; for(int i=0;i<size;i++) A[i] = 0; for(int i=0;;i++){ int j = size; double tempW = 0; double tempV = 0; ...
8
private static String executeAddCommand(DataBaseManager dbManager, Command command) { List<String> args = command.getArgs(); String tableName = args.get(0); List<String> params = args.subList(1, args.size()); String msg; try { dbManager.save(tableName, params); ...
3
public boolean canSnowAt(int par1, int par2, int par3) { BiomeGenBase var4 = this.getBiomeGenForCoords(par1, par3); float var5 = var4.getFloatTemperature(); if (var5 > 0.15F) { return false; } else { if (par2 >= 0 && par2 < 256 && this...
9
public int maxPathNotRoot2(treeNode curRoot, HashMap<treeNode, Integer> node_notRootMax) { this.running_time_NotRoot2++; if (node_notRootMax.containsKey(curRoot)) return node_notRootMax.get(curRoot); if (curRoot.leftLeaf == null && curRoot.rightLeaf == null) { node_notRootMax.put(curRoot, curRoot.value)...
4
@Override public void happens() { Character character = Game.getInstance().getCurrentCharacter(); int rollResult = 0; if (character.getCurrentRoom().getNameEnum() == RoomName.CHAPEL){ rollResult = Game.getInstance().rollDice(2); }else{ rollResult = Game.getInstance().rollDice(1); } if(rollResult == ...
6
private List<QCFile> dirjavaFind(File f) { List<QCFile> result = new ArrayList<>(); if (!f.exists()) { return result; } if (!f.isDirectory()) { String type = GetIndexableFileType(f); if (type != null) { result.add(new QCFile(f, type)); } return result; } if (f.isDirectory() && !IsIgn...
7
public void printScene(Entity player) { boolean leftOpen; boolean frontOpen; boolean rightOpen; switch (player.movementDirection) { case MainSystem.NORTH: leftOpen = (this.maps.mapChars[this.map][this.arrayY][this.arrayX-1]==' '); frontOpen = (this.maps.mapChars[this.map][this.arrayY-1][this.arrayX]=...
7
private int loadCommands() { ArrayList<Command> _commands = new ArrayList<Command>(); BufferedReader br = null; try { String line; br = new BufferedReader(new FileReader(dictFile)); while ((line = br.readLine()) != null) { Strin...
6
public List<Speaker> findSpeakersBySpecialityId(final Long specialityId) { return new ArrayList<Speaker>(); }
0
public boolean isDomainRegistered(final String domainName) { boolean registered = checkDomainRegistered(domainName); boolean unregistered = checkDomainUnregistered(domainName); try { assert registered != unregistered : "Domain check failed for Domain: " + domainName + "; reg: " + registered + "; unreg: " + un...
2
public SHSManagerBean() { }
0
@Override public boolean okMessage(final Environmental myHost, final CMMsg msg) { if(((msg.targetMajor()&CMMsg.MASK_MALICIOUS)>0) &&(!CMath.bset(msg.sourceMajor(),CMMsg.MASK_ALWAYS)) &&((msg.amITarget(affected)))) { final MOB target=(MOB)msg.target(); if((!target.isInCombat()) &&(CMLib.flags().isUnde...
8
public Lohko nykyinenLohko() { if (this.eiAvoimiaLohkoja()) { return paalohko; } return lohkot.get(lohkot.size() - 1); }
1
public void disableSensor(String sensor_id) throws NotFoundException, IllegalAccessError, SocketTimeoutException { try { clientSocket.Escribir("OFF " + sensor_id + '\n'); serverAnswer = clientSocket.Leer(); } catch (IOException e) { throw new SocketTimeoutException(); } if(serverAnswer.contains("527 ER...
3
private Point2D.Float transformPoint(Point p1) throws NoninvertibleTransformException { // System.out.println("Model -> Screen Transformation:"); // showMatrix(coordTransform); AffineTransform inverse = coordTransform.createInverse(); // System.out.println("Screen -> Model Transformation:")...
0
private void setQuest(String id,QuestPoint quest, String title, ArrayList<String> imageList, ArrayList<Boolean> imageInventoryList, ArrayList<String> soundList, ArrayList<Boolean> soundInventoryList, int narration, String paragraphList, String preNote, String postNote) { quest.setId(id); quest.setQuestName...
0
public String nextCDATA() throws JSONException { char c; int i; StringBuffer sb = new StringBuffer(); for (;;) { c = next(); if (end()) { throw syntaxError("Unclosed CDATA"); } sb.append(c); i = ...
6
protected NoeudArbre recherchePriorite(double priorite, int typeRecherche) throws Exercice1Exception { NoeudArbre result = NIL; switch (typeRecherche) { case SEARCH_LIST: result = recherchePrioriteList(priorite); break; case SEARCH_TREE: ...
3
private List<ReducerEstimatedJvmCost> estimateReducersMemory(List<Reducer> eReducers, InitialJvmCapacity gcCap) { int fReducerNum = finishedConf.getMapred_reduce_tasks(); if(fReducerNum == 0) return null; List<ReducerEstimatedJvmCost> reducersJvmCostList = new ArrayList<ReducerEstimatedJvmCost>(); Re...
4