text
stringlengths
14
410k
label
int32
0
9
public void setId(UUID value) { this._id = value; }
0
public static boolean hasEnhancements(String prestige, List<Integer> requiredList, int tier){ List<Enhancement> el = new ArrayList<Enhancement>(); //check prestige trees ClassTree ct = (ClassTree) getTree(prestige); List<Integer> integerList = new ArrayList<Integer>(); //fetch all enhancement ids and...
4
public void addReplace(int i, String s) { this.replaces.add(i, s); }
0
final public void Function() throws ParseException { int reqArguments = 0; String identString = ""; ASTFunNode jjtn001 = new ASTFunNode(JJTFUNNODE); boolean jjtc001 = true; jjtree.openNodeScope(jjtn001); try { identString = Identifier(); if...
9
private Spatial getRandomRoamLocation(Spatial actualSpatial, int minimumDistance, int maxDistance) { int randomX = Helpers.randomBetween(-Helpers.randomBetween(minimumDistance, maxDistance), Helpers.randomBetween(minimumDistance, maxDistance)); int randomY = Helpers.randomBetween(-Helpers.randomBetween(minimumDista...
4
public static void openLink(URI link) { try { Class desktopClass = Class.forName("java.awt.Desktop"); Object o = desktopClass.getMethod("getDesktop", new Class[0]).invoke(null, new Object[0]); desktopClass.getMethod("browse", new Class[] { URI.class }).invoke(o, new Object[] { link }); } catch...
1
public static List<String> getFieldFromGetter(Class clazz) { List<String> rst = new ArrayList<String>(); Method[] methods = clazz.getDeclaredMethods(); for (Method method : methods) { String name = method.getName(); if (name.startsWith("get") || name.startsWith("is") || M...
8
void move(boolean dir) { if (dir) y += speed; else y -= speed; }
1
public void mouseDragged(MouseEvent evt) { Point p = evt.getPoint(); mousePoint = p; int xOffset = 0; for (int i=0; i<slotList.size(); ++i) { Slot slot = slotList.get(i); if (slot.isSelected()) slot.setDragged(true); } ...
8
public String[] getVariables() { return (String[]) myVariables.toArray(new String[0]); }
0
public static boolean containsInstance(Collection<?> collection, Object element) { if (collection != null) { for (Object candidate : collection) { if (candidate == element) { return true; } } } return false; }
4
public void putAll( Map<? extends Character, ? extends V> map ) { Iterator<? extends Entry<? extends Character,? extends V>> it = map.entrySet().iterator(); for ( int i = map.size(); i-- > 0; ) { Entry<? extends Character,? extends V> e = it.next(); this.put( e.getKey(), e.getVa...
8
public long getDateLength() { if (this.getPayloadLenExtendedContinued() > 0){ return this.getPayloadLenExtendedContinued(); } if (this.getPayloadLenExtended() > 0){ return this.getPayloadLenExtended(); } if (this.getPayloadLen() == HAS_EXTEND_DATA || this.getPayloadLen() == HAS_EXTEND_DATA_CONTINUE){...
4
public Spinner getClosestOfSameType(Spinner a, boolean same) { Float min = null; Spinner closest = null; for (Spinner spinner : newSp) { if (spinner.getId() != a.getId()) { if (same) { if (spinner.getType() == a.getType()) { ...
9
public String nextToken() throws JSONException { char c; char q; StringBuffer sb = new StringBuffer(); do { c = next(); } while (Character.isWhitespace(c)); if (c == '"' || c == '\'') { q = c; for (;;) { c = next(); ...
9
public void info() { System.out.println("\nInfo:\nstate_bits:(R)eferenced | (A)vailable | (P)inned"); int numBuffers = mgr.getNumBuffers(); for ( int i = 0; i < numBuffers; ++i ) { if (((i + 1) % 9) == 0) System.out.println("\n"); System.out.println( "(" + i + ") "...
5
@Id @Column(name = "FUN_CEDULA") public long getFunCedula() { return funCedula; }
0
private void clean(){ if(infiles.size() > 1){ System.err.println("Trimming is done one file at a time, only the first file will be used."); } String seqtype = "test"; if(seqtypeset == "aa"){ seqtype = "aa"; }else if (seqtypeset == "nucleotide"){ seqtype = "nucleotide"; } phyutility.trimsites.Trim...
7
@Override public List<String> getSuggestions(CommandInvocation invocation) { List<Parameter> suggs = new ArrayList<>(); try { ParsedParameters parsed = new ParsedParameters(); invocation.setProperty(parsed); parse(invocation, parsed.value(), suggs); ...
2
public Object get() { return t; }
0
public void addItemEventHandler() { // add chosen item to the shopping cart. StockItem stockItem = (StockItem)productSelectionJComboBoxField.getSelectedItem(); if (stockItem != null) { int quantity; try { quantity = Integer.parseInt(quantityField.getText()...
6
public TableViewPanel(String title) { GridBagLayout layout = new GridBagLayout(); GridBagConstraints constraints = new GridBagConstraints(); setLayout(layout); setBorder(BorderFactory.createTitledBorder(title)); tableModel = new TableDisplay(cols, data); myTable = new JTable(tableModel){ ...
9
public Account getAccount(Integer id) { Account account = null; PreparedStatement pStmt = null; ResultSet rs = null; try { pStmt = conn.prepareStatement("SELECT * FROM ACCOUNT WHERE id = ?;"); pStmt.setInt(1, id); rs = pStmt.executeQuery(); while (rs.next()) { account = new Acco...
2
public HttpResponse getResponse(CrawlDatum datum) throws Exception { HttpResponse response = new HttpResponse(url); HttpURLConnection con; if (proxy == null) { con = (HttpURLConnection) url.openConnection(); } else { con = (HttpURLConnection) url.openConnection(p...
7
@Override Object look(DspState vd, InfoMode vm, Object vr) { InfoResidue0 info = (InfoResidue0) vr; LookResidue0 look = new LookResidue0(); int acc = 0; int dim; int maxstage = 0; look.info = info; look.map = vm.mapping; look.parts = info.partitions; ...
7
public static void main(String[] args) { //Trietreen testausta: Trietree trietree = new Trietree(); trietree.add("sukka"); trietree.add("saapas"); trietree.add("aita"); trietree.add("aasi"); trietree.add("b"); trietree.add("s"); trietree.add("susi"...
5
public void start(){ if (start == -1){ start = Time.getTime(); } }
1
@Override public void render(float interpolation) { Fonts.get("Arial").drawString(renderName, pos.x, pos.y, 20, isComplete() ? 0xffffff : 0xff7777); for(GuiEditorInspectorSection sec : set) sec.render(interpolation); Vector2 mouse = Remote2D.getMouseCoords(); Vector2 mouseVec = mouse.add(new Vector2(0,ed...
4
protected ByteChunk getCurrentChunk() { while( !ended && (currentChunk == null || currentChunkPosition >= currentChunk.getSize()) ) { if( chunks.hasNext() ) { currentChunk = (ByteChunk)chunks.next(); currentChunkPosition = 0; } else { ended = true; } } if( ended ) return null; return curren...
5
public static int deleteMstxCol(String mid, String uid) { int result = 0; Connection con = DBUtil.getConnection(); PreparedStatement pstmt = null; try { pstmt = con.prepareStatement("delete from mstx_col where mid=? and uid=?"); pstmt.setString(1, mid); pstmt.setString(2, uid); result = pstmt.execut...
5
private void initEmptyNodes() { for (int i = 0; i <= width; i++) { for (int j = 0; j <= higth; j++) { nodes[i][j] = (T) nodeFactory.createNode(i, j); } } }
2
public CommonUtil() { if (ratingsMap == null) { ratingsMap = new HashMap<Integer, String>(); populateRatingMap(); } if (skillsMap == null) { skillsMap = new HashMap<Integer, String>(); populateSkillMap(); } }
2
public static AirSubmodesOfTransportEnumeration fromValue(String v) { for (AirSubmodesOfTransportEnumeration c: AirSubmodesOfTransportEnumeration.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); }
2
public boolean type(char key, java.awt.event.KeyEvent ev) { if (key == 27) { close(); } if (key == 10) { // позволяет "нажать" кнопку Ok нажав клавишу Enter okClicked = true; hide(); } return (super.type(key, ev)); }
2
private void findIps(String s, int start, int remainingParts, StringBuilder result, List<String> results) { int maxLen = remainingParts * 3; int remainingLen = s.length() - start; if (remainingLen > maxLen || remainingLen < remainingParts) { return; } if (remainingPa...
8
public void test() { Prototype p = PrototypeManager.getManager().getPrototype("prototype.ConcretePrototype"); Prototype pClone = PrototypeManager.getManager().getPrototype("prototype.ConcretePrototype"); System.out.println(p); System.out.println(pClone); }
0
public static void main(String[] args) { KeyboardReader read = new KeyboardReader(); Employee e; String name; int type; double rate; int hours; String prompt; e = new Employee(); while (true){ System.out.println("Enter employee data: "); name = read.readLine(" name (or <enter> to quit)...
8
final synchronized void method2888(int i, int i_0_, int i_1_) { if (i == 0) method2926(i_0_, i_1_); else { int i_2_ = method2904(i_0_, i_1_); int i_3_ = method2889(i_0_, i_1_); if (anInt8970 == i_2_ && anInt8974 == i_3_) anInt8972 = 0; else { int i_4_ = i_0_ - anInt8976; if (anInt8976 -...
9
public void render() { int minX = (int) Math.floor(offsetX / Tile.SIZE); int maxX = (int) Math.ceil((offsetX + SplitMan.WIDTH) / Tile.SIZE); int minY = (int) Math.floor(offsetY / Tile.SIZE); int maxY = (int) Math.ceil((offsetY + SplitMan.HEIGHT) / Tile.SIZE); for(int i = 0; i < sizeX; i++) { for(int j = 0;...
9
@Test public void testReadField_null() { Assert.assertNull(ReflectUtils.readField(new Bean(), "_field5")); }
0
public void exits(MOB mob, List<String> commands) { if(mob.location().roomID().equals("")) { mob.tell(L("This command is invalid from within a GridLocaleChild room.")); mob.location().showOthers(mob,null,CMMsg.MSG_OK_ACTION,L("<S-NAME> flub(s) a powerful spell.")); return; } if(commands.size()<3) { ...
7
public void Liides() { final Frame tippAken; tippAken = new Frame(); tippAken.setSize(300, 150); tippAken.setTitle("URLi sisestamine"); tippAken.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { tippAken.dispose(); } }); Label kysimus = new Label("Sisesta URL!")...
6
public void setVolume(double value) { if ( (value <0) || (value >1) ) return; this.volume = value; if (this.midiSequencer instanceof Synthesizer) { Synthesizer synthesizer = (Synthesizer)this.midiSequencer; MidiChannel[] channels = synthesizer.getChannels(); for (int i=0; i<channels.length;...
5
public static <V> PositionalList<Edge<Integer>> MST(Graph<V,Integer> g) { // tree is where we will store result as it is computed PositionalList<Edge<Integer>> tree = new LinkedPositionalList<>(); // pq entries are edges of graph, with weights as keys PriorityQueue<Integer, Edge<Integer>> pq = new HeapP...
5
private void corner(CalcioPiazzato a){ a.tipo="corner"; Giocatore p=null;//portiere Giocatore[] att=null;//giocatori in area per provare a segnare Giocatore dif=null;//difensore sul corner //selezione tiratori e portieri if(a.team.equals("casa")){ a.tiratore=match.getCasa().getTiratore(); p=match.getO...
8
@Override protected void decode( ChannelHandlerContext ctx, ByteBuf in, List<Object> out ) throws Exception { int byteSize = in.readableBytes(); if(byteSize == 0 || !ctx.channel().isOpen()) return; int id = Utils.readVarInt(in); int conState = ctx.channel().attr(Utils.connectionState).get(); switch(c...
6
@Override public final void logicUpdate(GameTime gameTime) { countdownTimer.decreaseTimer(gameTime.getElapsedTimeMilli()); /** * When the timer is finished we must make sure that we first create one * of the random entities that this spawner can possibly create, and * then call the reset time method. *...
2
public static void main(String args[]){ Game game = new ConnectFour(); OthelloAI C4AI; OthelloAI C4AI2; C4AI2 = new OthelloAI(game, "test1",Color.blue); C4AI = new OthelloAI(game,"test2",Color.red); if(C4AI.getGame() == game){System.out.println("Set Game Success");} if(C4AI.getPlayerName() == "test2")Sy...
6
protected void printTopKChild4Stn(String filePrefix, int topK) { String topKChild4StnFile = filePrefix + "topChild4Stn.txt"; try { PrintWriter pw = new PrintWriter(new File(topKChild4StnFile)); // m_LM.generateReferenceModel(); for (_Doc d : m_trainSet) { if (d instanceof _ParentDoc) { _ParentDo...
5
@Override public void render(final Graphics g) { g.setColor(Color.black); g.g().drawRect(0, 0, tiles[0].length * TILE_SIZE, tiles.length * TILE_SIZE); for (int y = 0; y < tiles.length; y++) { for (int x = 0; x < tiles[0].length; x++) { tiles[y][x].render(g, x * TILE_SIZE, y * TILE_SIZE); } } for ...
3
public boolean sendBlockRemoved(int var1, int var2, int var3, int var4) { int var5 = this.mc.theWorld.getBlockId(var1, var2, var3); int var6 = this.mc.theWorld.getBlockMetadata(var1, var2, var3); boolean var7 = super.sendBlockRemoved(var1, var2, var3, var4); ItemStack var8 = this.mc.thePlayer.ge...
4
private static int getBlockVal(int tilesetBankOffset, int[] rom, int add) { if (add >= 0 && add < 0x4000) return rom[add]; if (add >= 0 && add < 0x8000 && add + tilesetBankOffset < rom.length) return rom[add + tilesetBankOffset]; return 0x10000; // huge }
5
private boolean checkPourIntoBakingContainer(State state, ObjectInstance pouringContainer, ObjectInstance receivingContainer) { /** * If the container is empty then we only want to add in ingredients that we must * bake, as per the recipe. * Conversely, if the container is not empty: * a) If it contain...
8
Battle (LivingThing inpla1, LivingThing inpla2, DuskEngine inengGame) { try { engGame = inengGame; vctSide1 = new Vector(); vctSide2 = new Vector(); thnFront2 = inpla2; while (thnFront2 != null) { addToBattle(thnFront2,2); thnFront2 = thnFront2.thnFollowing; } thnFront2 = inpla2.thn...
7
public int checkBJN() { if(cornerMap.get("B").equals("B") && cornerMap.get("J").equals("J") && cornerMap.get("N").equals("N")) { return SOLVED; } if(cornerMap.get("B").equals("J") && cornerMap.get("J").equals("N") && cornerMap.get("N").equals("B")) { return CW; } if(cornerMap.get("B...
9
private Token emitTerminal(Token terminal) { if(root == null) { root = current = new ParseNode(null, terminal); return terminal; } ParseNode newNode = new ParseNode(null, terminal); newNode.Parent = current; if(current.FirstChild == null) current.FirstChild = newNode; else { ParseNode lastC...
3
public void mouseDragged(MouseEvent e) { Point2D.Double p = new Point2D.Double(0,0); // Change mouse coordenates from MyWorldView.SPACE_INVERSE_TRANSFORM.transform(e.getPoint(),p);// pixels to meters. if (currentElement instanceof Ball) { System.out.println("Dragging Ball"); ((Ball)cur...
4
public void actualiza() { long tiempoTranscurrido = System.currentTimeMillis() - tiempoActual; //Guarda el tiempo actual tiempoActual += tiempoTranscurrido; //obs1.setPosX(obs1.getPosX() - 15); principal.actualiza(tiempoActual); // if(obs1.getPosX() <= 0){ ...
5
public boolean getBoolean(String key) throws JSONException { Object o = get(key); if (o.equals(Boolean.FALSE) || (o instanceof String && ((String)o).equalsIgnoreCase("false"))) { return false; } else if (o.equals(Boolean.TRUE) || (o ins...
6
public void setPieceMaterial() { switch(this.pieceMatId) { case 1 : lightPieceMat = factory.loadGold(); darkPieceMat = factory.loadPurpleMarble(); break; case 2 : lightPieceMat = factory.loadRosewood(); darkPieceMat = factory.loadBrownwood(); break; case 3 : lightPieceMat = factory.loadI...
7
public List<Object> getContent() { if (content == null) { content = new ArrayList<Object>(); } return this.content; }
1
public int playFinal(User user) { if (i >= user.getUpperBound()) { return -1; } if (user.theNumberIs(i)) { found = true; return i; } i++; return -1; }
2
public ProgressDownload(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); pack(); }
0
public static Day getRow(LocalDate lDate) throws SQLException { log.entry("getRow (DayManager)"); String sql = "SELECT * FROM Day WHERE id_day = ?"; ResultSet rs = null; Date theDate = DateManager.localDateToSqlDate(lDate); try ( PreparedStatement stmt = conn.prepareStatement(sql); ){ stmt...
5
public void onServerJoin(ServerJoinEvent e){ handleMessage("DistributedHashTable - onServerJoin: server " + e.getServerId() + " joind"); joinServerId = e.getServerId(); // skip if back up successor comes back online if(joinServerId == this.backupSuccessor.getKey()) return; // run the update on a worker...
9
@Override public void editElection(User user, String electionID, Date openNominations, Date start, Date end, String electoratelectionID) { DnDElection el = (DnDElection) electionMap.get(electionID); if (el.getElectionState() == ElectionState.NOT_STARTED && el.getManagerSet().contains(user)) { el.setSt...
4
private void updateIndexValues() { // calculate the current sample (frame) index int curFrame = (int)(currentPixelPosition * framesPerPixel); // update the display of the current sample (frame) index indexValue.setText(Integer.toString(curFrame + base)); // update the number of samples p...
3
final void ZA(int i, float f, float f_93_, float f_94_, float f_95_, float f_96_) { anInt7633++; boolean bool = (anInt7808 ^ 0xffffffff) != (i ^ 0xffffffff); if (bool || ((OpenGlToolkit) this).aFloat7832 != f || f_93_ != ((OpenGlToolkit) this).aFloat7871) { ((OpenGlToolkit) this).aFloat7832 = f; a...
7
public synchronized String getAnnotationClientMethod(String fileSource) { FileInputStream fIn = null; FileChannel fChan = null; long fSize; ByteBuffer mBuf; String content = ""; try { fIn = new FileInputStream(fileSource); fChan = fIn.g...
5
public PaneContainer() { status = READY; addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent evt) { if (evt.getClickCount() == 2 && getComponentCount() > 1) { remove(getSelectedIndex()); revalidate(); repaint(); } } }); }
2
private void applyDiscount() { isQuantum= false; try { if(!regularDiscount.isSelected() && !quantumDiscount.isSelected()) this.shop.setDiscountStrategy(new NoDiscount()); if(regularDiscount.isSelected()) this.shop.setDiscountStrategy(new RegularCustomerDiscount()); if(quantumDiscount.isSelected(...
7
public String[] parse(String[] argv){ Option opt; StrOption stropt; BoolOption boolopt; ArrayList<String> rest = new ArrayList<String>(); for(int i = 0; i < argv.length; i++){ if(cache.containsKey(argv[i])){ opt = cache.get(argv[i]); ...
8
public double getDouble(String key, double _default) { return containsKey(key) ? get(key).doubleValue() : _default; }
1
public Product getP() { return p; }
0
public String getTime() { return time; }
0
@Override public int compare(TreeRow o1, TreeRow o2) { int i1 = o1.getIndex(); int i2 = o2.getIndex(); if (i1 < i2) { return -1; } if (i1 > i2) { return 1; } return 0; }
2
public void checkValidity(){ if (rootUrl == null) throw new IllegalArgumentException("rootUrl is not set!"); if (sourceDir == null) throw new IllegalArgumentException("sourceDir is not set!"); if (!sourceDir.exists()) throw new IllegalArgumentException("sourceDir does not exist!"); if (!sourceDir.isDirectory())...
7
protected static String getMethodName(ITestResult tr) { String method_name=tr.getMethod().getMethodName(); Object[] params=tr.getParameters(); if(params != null && params.length > 0) { String tmp=null; if(params[0] instanceof Class<?>) tmp=((Class<?>)param...
7
public int listxattr(ByteBuffer path, final ByteBuffer list) { if (xattrSupport == null) { return handleErrno(Errno.ENOTSUPP); } String pathStr = cs.decode(path).toString(); if (log != null && log.isDebugEnabled()) { log.debug("listxattr: path=" + pathStr); ...
5
protected void start() { ServerSocket servSocket; System.out.println("Webserver starting up on port " + port + " !"); try { servSocket = new ServerSocket(port); } catch (Exception e) { System.out.println("Error: " + e); return; } System.out.println("Waiting for connection..."); String cookie =...
9
public int characterAt(int at) throws JSONException { int c = get(at); if ((c & 0x80) == 0) { return c; } int character; int c1 = get(at + 1); if ((c1 & 0x80) == 0) { character = ((c & 0x7F) << 7) | c1; if (character > 0x7F) { ...
8
protected double[] getNumericFeatureArrayFromMethods(Object o) { ResizableDoubleArray arr = new ResizableDoubleArray(); if(this.numericFeatureMethods == null) { this.initNumericFeatureMethods(o); } for(String methodName : this.numericFeatureMethods) { Method m = null; try { m = o.getClas...
9
public static void main(String[] args) { System.out.println("Message Sender (1.10) for MessagingTool"); System.out.println("Copyright (c) 1998, 2004 by Yoshiki Shibata." + " All rights reserved\n"); // Make sure there are only two arguments: recipients and message if (args.length != 2 && args.length ...
8
public void setWebPage(String webPage) { WebPage = webPage; }
0
public static void menuModifyAge(HousePetList hpArray) { @SuppressWarnings("resource") Scanner console = new Scanner(System.in); int hpChipID = -1; double newAge = -1; boolean modifiedAge = false; /* display list of HousePets to user so they can view the chip...
7
public Object buscar(Integer busca) { String sql = "SELECT * FROM PRODUTO WHERE idProduto = ?"; try { conn = GerenciaConexaoBD.getInstance().getConnection(); PreparedStatement stmt = conn.prepareStatement(sql); stmt.setInt(1, busca); ResultSet rs = stmt.executeQuery(); Produto produto = new Produ...
2
public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://down...
6
public static int[] rank(String[] h) { int[] r; if ((r = RF(h))[0] == 10) { return r; } else if ((r = SF(h))[0] == 9) { return r; } else if ((r = FK(h))[0] == 8) { return r; } else if ((r = FH(h))[0] == 7) { return r; } else if ((r = F(h))[0] == 6) { return r; } else if ((r = S(h))[0] == 5)...
9
@Override public void execute() throws Exception { while (!getTerminate()) { try { this.suspendWait(); interation(); try { this.getThread().yield();//Чучуть врямя другим sleepTerm(getSleep()); ...
6
public boolean newBid(String amount, Account buyer) { try { if (bidsCatalog.size() > 0) { Bid current = this.getLatestBid(); if (Double.parseDouble(current.getAmount()) > Double .parseDouble(amount)) { return false; } } Bid bid = new Bid(amount, buyer); bidsCatalog.add(bid); retu...
3
public void activateServiceMode(Player player) { if(null != player) { if(playersOnWarmup.containsKey(player.getName())) { // set player in service mode only, if he has held the items for the full warm-up duration playersOnWarmup.remove(player.getName()); ...
2
public int getVerdes() { return verdes; }
0
private Map<String, Cluster> readFile(String labelPath, String dataPath, String phase) { System.out.println("read the " + phase + " file ..... "); // read the label file System.out.println("Reading label from file " + phase + ".label "); List<String> classRecords = IOUtils.readFile(labelPath); documentClass ...
8
* @return Stella_Object */ public static Stella_Object conceiveTerm(Stella_Object tree) { try { { Stella_Object standardizedtree = Logic.standardizePropositionTree(tree); Stella_Object operator = null; Stella_Object term = null; if (Stella_Object.consP(standardizedtree)) { ...
6
public static Shape getShape(String seme){ if(seme.equals("quadri")){ return getQuadri(); }else if(seme.equals("fiori")){ return getFiori(); }else if (seme.equals("picche")) { return getPicche(); } else return getCuori(); }
3
private static int parseArgs(String[] args, HamaConfiguration conf, BSPJob bsp) { conf.set(inputMatrixAPathString, args[0]); conf.setInt(inputMatrixARows, Integer.parseInt(args[1])); conf.setInt(inputMatrixACols, Integer.parseInt(args[2])); conf.set(inputMatrixBPathString, args[3]); conf.setInt(inputMatrix...
7
private void calculateVacation() { if (employee.isCallWorker()) { double gewerkt = 0; double ziekte = 0; for (int i = 0; i < model.getColumnCount(); i++) { if (model.getColumnName(i).equalsIgnoreCase("Gewerkt")) { gewerkt = Double.parseDoub...
4
public Def def(final Expr expr) { final Def def = (Def) defs.get(expr); if (SSAPRE.DEBUG) { System.out.println(" def for " + expr + " is " + def); } return def; }
1
public void testDividedBy_int() { Months test = Months.months(12); assertEquals(6, test.dividedBy(2).getMonths()); assertEquals(12, test.getMonths()); assertEquals(4, test.dividedBy(3).getMonths()); assertEquals(3, test.dividedBy(4).getMonths()); assertEquals(2, test.divi...
1
private void axisInfoAction() throws DocumentException, XmlTypeErrorException { Document document = DocumentHelper.createDocument(); Element root = document.addElement("properties"); AxisInfoXmlDriver axisInfoXmlDriver = new AxisInfoXmlDriver(xmlRequest); String cubeIdentifie...
9