bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public SearchFilterPanel( SearchTab tab ) { super(); searchTab = tab; setBorder( BorderFactory.createLineBorder( PhexColors.getBoxPanelBorderColor() ) ); setBackground( UIManager.getDefaults().getColor("window") ); CellConstraints cc = new C...
public SearchFilterPanel( SearchTab tab ) { super(); searchTab = tab; setBorder( BorderFactory.createLineBorder( PhexColors.getBoxPanelBorderColor() ) ); setBackground( UIManager.getDefaults().getColor("window") ); CellConstraints cc = new C...
1,116,170
public void run() { DatagramPacket packet; while( true ) { packet = readMessage(); if( packet == null ) { continue; } byte[] packetData = packet.getData(); ...
public void run() { DatagramPacket packet; while( true ) { packet = readMessage(); if( packet == null ) { continue; } byte[] packetData = packet.getData(); ...
1,116,171
private void handlePing( MsgHeader header, byte[] body, Host fromHost ) { PingMsg udpPing = null; try { udpPing = PingMsg.createUdpPingMsg( header, body, MsgHeader.DATA_LENGTH, fromHost ); NLogger.debug( NLoggerNames.UDP_INCOMING_MESSAGES, " Recieved Udp Ping " + ...
private void handlePing( MsgHeader header, byte[] body, Host fromHost ) { try { udpPing = PingMsg.createUdpPingMsg( header, body, MsgHeader.DATA_LENGTH, fromHost ); NLogger.debug( NLoggerNames.UDP_INCOMING_MESSAGES, " Recieved Udp Ping " + "Msg From " + fr...
1,116,172
private void handlePing( MsgHeader header, byte[] body, Host fromHost ) { PingMsg udpPing = null; try { udpPing = PingMsg.createUdpPingMsg( header, body, MsgHeader.DATA_LENGTH, fromHost ); NLogger.debug( NLoggerNames.UDP_INCOMING_MESSAGES, " Recieved Udp Ping " + ...
private void handlePing( MsgHeader header, byte[] body, Host fromHost ) { PingMsg udpPing = null; try { if ( header.getHopsTaken() > 1 ) { throw new InvalidMessageException( "Udp Ping traveled more then 1 hop." ); } PingMsg udpPing = PingMsg.createUdpPingMsg( header, body, MsgHead...
1,116,173
private void handlePong( MsgHeader header, byte[] data, Host fromHost ) { // first check if we had sent a ping to recieve a pong GUID guid = header.getMsgID(); DestAddress address = pingRoutingTable.getAndRemoveRouting( guid ); if( address == null ) { // did not fin...
private void handlePong( MsgHeader header, byte[] data, Host fromHost ) { // first check if we had sent a ping to recieve a pong GUID guid = header.getMsgID(); DestAddress address = pingRoutingTable.getAndRemoveRouting( guid ); if( address == null ) { // did not fin...
1,116,174
public static PongMsg createUdpPongMsg( MsgHeader msgHdr, byte[] data, int offset, Host fromHost ) throws InvalidMessageException { if( ! ( MessageProcessor.isValidUdpMsgHeader( msgHdr ) ) ) { NLogger.warn( NLoggerNames.UDP_INCOMING_MESSAGES, " Could not create udp pong " + ...
public static PongMsg createUdpPongMsg( MsgHeader msgHdr, byte[] data, int offset, Host fromHost ) throws InvalidMessageException { if( ! ( MessageProcessor.isValidUdpMsgHeader( msgHdr ) ) ) { NLogger.warn( NLoggerNames.UDP_INCOMING_MESSAGES, " Could not create udp pong " + ...
1,116,176
public void run(Stack stack) throws ParseException { checkStack(stack);// check the stack Object sum = stack.pop(); Object param; int i = 1; // repeat summation for each one of the current parameters while (i < curNumberOfParameters) { // get the parameter from the stack ...
public void run(Stack stack) throws ParseException { checkStack(stack);// check the stack Object sum = stack.pop(); Object param; int i = 1; // repeat summation for each one of the current parameters while (i < curNumberOfParameters) { // get the parameter from the stack ...
1,116,177
public Object tan(Object param) throws ParseException { if (param instanceof Number) { return new Double(Math.tan(((Number)param).doubleValue())); } else if (param instanceof Complex) { return ((Complex)param).tan(); } throw new ParseException("Invalid parameter type"); }
public Object tan(Object param) throws ParseException { if (param instanceof Number) { return new Double(Math.tan(((Number)param).doubleValue())); } else if (param instanceof Complex) { return ((Complex)param).tan(); } throw new ParseException("Invalid parameter type"); }
1,116,179
public Object tan(Object param) throws ParseException { if (param instanceof Number) { return new Double(Math.tan(((Number)param).doubleValue())); } else if (param instanceof Complex) { return ((Complex)param).tan(); } throw new ParseException("Invalid parameter type"); }
public Object tan(Object param) throws ParseException { if (param instanceof Number) { return new Double(Math.tan(((Number)param).doubleValue())); } else if (param instanceof Complex) { return ((Complex)param).tan(); } throw new ParseException("Invalid parameter type"); }
1,116,180
public PSNPhasePick(DataInputStream data) throws IOException{ dis = data; startTime = new PSNDateTime(dis); dis.readFully(eightBytes); phase = new String(eightBytes); flags = SacTimeSeries.swapBytes((short)dis.readUnsignedShort()); dispYPosition = SacTimeSeries.swapBytes(di...
public PSNPhasePick(DataInputStream data) throws IOException{ dis = data; startTime = new PSNDateTime(dis); dis.readFully(eightBytes); phase = new String(PSNDataFile.chopToLength(eightBytes)); flags = SacTimeSeries.swapBytes((short)dis.readUnsignedShort()); dispYPosition = ...
1,116,181
public PSNPhasePick(DataInputStream data) throws IOException{ dis = data; startTime = new PSNDateTime(dis); dis.readFully(eightBytes); phase = new String(eightBytes); flags = SacTimeSeries.swapBytes((short)dis.readUnsignedShort()); dispYPosition = SacTimeSeries.swapBytes(di...
public PSNPhasePick(DataInputStream data) throws IOException{ dis = data; startTime = new PSNDateTime(dis); dis.readFully(eightBytes); phase = new String(eightBytes); flags = SacTimeSeries.swapBytes((short)dis.readUnsignedShort()); dispYPosition = SacTimeSeries.swapBytes(di...
1,116,182
public MainController(MainView aView, Recipe aRecipe) { super(aView); myContents = aView; myRecipe = aRecipe; }
public MainController(MainView aView, Recipe aRecipe) { super(aView, aRecipe); myContents = aView; myRecipe = aRecipe; }
1,116,183
public MainController(MainView aView, Recipe aRecipe) { super(aView); myContents = aView; myRecipe = aRecipe; }
public MainController(MainView aView, Recipe aRecipe) { super(aView); myContents = aView; }
1,116,184
public void init() { myView.init(); RecipeDetailsView newView = myContents.getRecipeDetailsView(); myRecipeDetails = new RecipeDetailsController(newView, myRecipe); myRecipeDetails.init(); myView.layout(); }
public void init() { myView.init(); RecipeDetailsView newView = myContents.getRecipeDetailsView(); myRecipeDetails = new RecipeDetailsController(newView, myRecipe); myRecipeDetails.init(); myView.layout(); }
1,116,186
public static float[][] rotateGCP(LocalSeismogramImpl x, LocalSeismogramImpl y, Location staLoc, Location evtLoc) { DistAz distAz = new DistAz(staLoc.latitude, staLoc.longitude, ...
public static float[][] rotateGCP(LocalSeismogramImpl x, LocalSeismogramImpl y, Location staLoc, Location evtLoc) { DistAz distAz = new DistAz(staLoc.latitude, staLoc.longitude, ...
1,116,187
private void appendBuildUrl(Build build, StringBuffer buf) { String baseUrl = DESCRIPTOR.getUrl(); if(baseUrl!=null) { buf.append("See ").append(baseUrl).append(build.getUrl()).append("\n\n"); } }
private void appendBuildUrl(Build build, StringBuffer buf) { String baseUrl = DESCRIPTOR.getUrl(); if(baseUrl!=null) { buf.append("See ").append(baseUrl).append(Util.encode(build.getUrl())).append("\n\n"); } }
1,116,188
public void testCreateCriteriaAsStringFull() { filter.setNameOrAliasSearch("nameOrAliasSearch"); filter.setPrincipalSearch("principalSearch"); String criteria = identitySelectionStrategy.createCriteriaAsString(filter ); String expect = "where identity.identityType != 'G' and ...
public void testCreateCriteriaAsStringFull() { filter.setNameOrAliasSearch("nameOrAliasSearch"); filter.setPrincipalSearch("principalSearch"); String criteria = identitySelectionStrategy.createCriteriaAsString(filter ); String expect = "and (" + "lower(identity...
1,116,189
public void testCreateCriteriaAsStringNameOrAlias() { filter.setNameOrAliasSearch("nameOrAliasSearch"); filter.setPrincipalSearch(""); String criteria = identitySelectionStrategy.createCriteriaAsString(filter ); String expect = "where identity.identityType != 'G' and (" + ...
public void testCreateCriteriaAsStringNameOrAlias() { filter.setNameOrAliasSearch("nameOrAliasSearch"); filter.setPrincipalSearch(""); String criteria = identitySelectionStrategy.createCriteriaAsString(filter ); String expect = "and (" + "lower(identity.optiona...
1,116,190
public void testCreateCriteriaAsStringPrincipal() { filter.setNameOrAliasSearch(""); filter.setPrincipalSearch("principalSearch"); String criteria = identitySelectionStrategy.createCriteriaAsString(filter ); String expect = "where identity.identityType != 'G' and (" + ...
public void testCreateCriteriaAsStringPrincipal() { filter.setNameOrAliasSearch(""); filter.setPrincipalSearch("principalSearch"); String criteria = identitySelectionStrategy.createCriteriaAsString(filter ); String expect = "and (" + "lower(identity.principal) ...
1,116,191
public Object getValueAt(int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : // indicate this is a sugar: String s = ""; if (!data.getMaltMashed(row) && data.getMaltSteep(row)) s = "*"; return s + data.getMaltName(row); case 1 : return SB...
public Object getValueAt(int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0: return data.getMaltSteep(row); case 1: return data.getMaltMashed(row); case 2 : // indicate this is a sugar: String s = ""; if (!data.getMaltMashed(row) && data.getMaltSteep(row)...
1,116,192
public Object getValueAt(int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : // indicate this is a sugar: String s = ""; if (!data.getMaltMashed(row) && data.getMaltSteep(row)) s = "*"; return s + data.getMaltName(row); case 1 : return SB...
public Object getValueAt(int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : // indicate this is a sugar: String s = ""; if (!data.getMaltMashed(row) && data.getMaltSteep(row)) s = "*"; return s + data.getMaltName(row); case 3 : return SB...
1,116,193
public Object getValueAt(int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : // indicate this is a sugar: String s = ""; if (!data.getMaltMashed(row) && data.getMaltSteep(row)) s = "*"; return s + data.getMaltName(row); case 1 : return SB...
public Object getValueAt(int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : // indicate this is a sugar: String s = ""; if (!data.getMaltMashed(row) && data.getMaltSteep(row)) s = "*"; return s + data.getMaltName(row); case 1 : return SB...
1,116,194
public Object getValueAt(int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : // indicate this is a sugar: String s = ""; if (!data.getMaltMashed(row) && data.getMaltSteep(row)) s = "*"; return s + data.getMaltName(row); case 1 : return SB...
public Object getValueAt(int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : // indicate this is a sugar: String s = ""; if (!data.getMaltMashed(row) && data.getMaltSteep(row)) s = "*"; return s + data.getMaltName(row); case 1 : return SB...
1,116,195
public Object getValueAt(int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : // indicate this is a sugar: String s = ""; if (!data.getMaltMashed(row) && data.getMaltSteep(row)) s = "*"; return s + data.getMaltName(row); case 1 : return SB...
public Object getValueAt(int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : // indicate this is a sugar: String s = ""; if (!data.getMaltMashed(row) && data.getMaltSteep(row)) s = "*"; return s + data.getMaltName(row); case 1 : return SB...
1,116,196
public Object getValueAt(int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : // indicate this is a sugar: String s = ""; if (!data.getMaltMashed(row) && data.getMaltSteep(row)) s = "*"; return s + data.getMaltName(row); case 1 : return SB...
public Object getValueAt(int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : // indicate this is a sugar: String s = ""; if (!data.getMaltMashed(row) && data.getMaltSteep(row)) s = "*"; return s + data.getMaltName(row); case 1 : return SB...
1,116,197
public Object getValueAt(int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : // indicate this is a sugar: String s = ""; if (!data.getMaltMashed(row) && data.getMaltSteep(row)) s = "*"; return s + data.getMaltName(row); case 1 : return SB...
public Object getValueAt(int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : // indicate this is a sugar: String s = ""; if (!data.getMaltMashed(row) && data.getMaltSteep(row)) s = "*"; return s + data.getMaltName(row); case 1 : return SB...
1,116,198
public void setValueAt(Object value, int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : data.setMaltName(row, value.toString()); break; case 1 : data.setMaltAmount(row, Double.parseDouble(value.toString())); break; case 2 : // m.setUn...
public void setValueAt(Object value, int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0: data.setMaltSteep(row, new Boolean (value.toString()).booleanValue()); break; case 1: data.setMaltMashed(row, new Boolean(value.toString()).booleanValue()); break; case 2 : d...
1,116,199
public void setValueAt(Object value, int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : data.setMaltName(row, value.toString()); break; case 1 : data.setMaltAmount(row, Double.parseDouble(value.toString())); break; case 2 : // m.setUn...
public void setValueAt(Object value, int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : data.setMaltName(row, value.toString()); break; case 3 : data.setMaltAmount(row, Double.parseDouble(value.toString())); break; case 2 : // m.setUn...
1,116,200
public void setValueAt(Object value, int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : data.setMaltName(row, value.toString()); break; case 1 : data.setMaltAmount(row, Double.parseDouble(value.toString())); break; case 2 : // m.setUn...
public void setValueAt(Object value, int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : data.setMaltName(row, value.toString()); break; case 1 : data.setMaltAmount(row, Double.parseDouble(value.toString())); break; case 4 : // m.setUn...
1,116,201
public void setValueAt(Object value, int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : data.setMaltName(row, value.toString()); break; case 1 : data.setMaltAmount(row, Double.parseDouble(value.toString())); break; case 2 : // m.setUn...
public void setValueAt(Object value, int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : data.setMaltName(row, value.toString()); break; case 1 : data.setMaltAmount(row, Double.parseDouble(value.toString())); break; case 2 : // m.setUn...
1,116,202
public void setValueAt(Object value, int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : data.setMaltName(row, value.toString()); break; case 1 : data.setMaltAmount(row, Double.parseDouble(value.toString())); break; case 2 : // m.setUn...
public void setValueAt(Object value, int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : data.setMaltName(row, value.toString()); break; case 1 : data.setMaltAmount(row, Double.parseDouble(value.toString())); break; case 2 : // m.setUn...
1,116,203
public void setValueAt(Object value, int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : data.setMaltName(row, value.toString()); break; case 1 : data.setMaltAmount(row, Double.parseDouble(value.toString())); break; case 2 : // m.setUn...
public void setValueAt(Object value, int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : data.setMaltName(row, value.toString()); break; case 1 : data.setMaltAmount(row, Double.parseDouble(value.toString())); break; case 2 : // m.setUn...
1,116,204
public void setValueAt(Object value, int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : data.setMaltName(row, value.toString()); break; case 1 : data.setMaltAmount(row, Double.parseDouble(value.toString())); break; case 2 : // m.setUn...
public void setValueAt(Object value, int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : data.setMaltName(row, value.toString()); break; case 1 : data.setMaltAmount(row, Double.parseDouble(value.toString())); break; case 2 : // m.setUn...
1,116,205
public void addStep(String t, double st, double et, String tu, String m, int min, int rmin) { MashStep step = new MashStep(t, st, et, tu, m, min, rmin); steps.add(step); calcMashSchedule(); }
public void addStep(String type, double st, double et, String tu, String m, int min, int rmin) { MashStep step = new MashStep(t, st, et, tu, m, min, rmin); steps.add(step); calcMashSchedule(); }
1,116,206
public void addStep(String t, double st, double et, String tu, String m, int min, int rmin) { MashStep step = new MashStep(t, st, et, tu, m, min, rmin); steps.add(step); calcMashSchedule(); }
public void addStep(String t, double st, double et, String tu, String m, int min, int rmin) { MashStep step = new MashStep(type, st, et, tu, m, min, rmin); steps.add(step); calcMashSchedule(); }
1,116,207
private static void deleteFile(File child) throws IOException { if (!child.delete()) { if(!child.exists()) // we are trying to delete a file that no longer exists, so this is not an error return; throw new IOException("Unable to delete " + child.getPath());...
private static void deleteFile(File child) throws IOException { if (!child.delete()) { if(!child.exists()) // we are trying to delete a file that no longer exists, so this is not an error return; throw new IOException("Unable to delete " + child.getPath());...
1,116,208
private static void deleteFile(File child) throws IOException { if (!child.delete()) { if(!child.exists()) // we are trying to delete a file that no longer exists, so this is not an error return; throw new IOException("Unable to delete " + child.getPath());...
private static void deleteFile(File child) throws IOException { if (!child.delete()) { if(!child.exists()) // we are trying to delete a file that no longer exists, so this is not an error return; try { Chmod chmod = new Chmod(); chmod.setProject(new org.apa...
1,116,209
private String getCommand() throws IOException { String s; if (br == null) return null; if ( (s = br.readLine()) == null) return null; if( s.equals("rules")) { j.dv.printDiffRules(); System.out.println("Operators:"); Operator.printOperators();// System.out.println("dJEPdx - Enter q to quit, rules to...
private String getCommand() throws IOException { String s; if (br == null) return null; if ( (s = br.readLine()) == null) return null; if( s.equals("rules")) { j.getDifferentationVisitor().printDiffRules(); System.out.println("Operators:"); Operator.printOperators();// System.out.println("dJEPdx - E...
1,116,210
private String getCommand() throws IOException { String s; if (br == null) return null; if ( (s = br.readLine()) == null) return null; if( s.equals("rules")) { j.dv.printDiffRules(); System.out.println("Operators:"); Operator.printOperators();// System.out.println("dJEPdx - Enter q to quit, rules to...
private String getCommand() throws IOException { String s; if (br == null) return null; if ( (s = br.readLine()) == null) return null; if( s.equals("rules")) { j.dv.printDiffRules(); System.out.println("Operators:"); Operator.printOperators();// System.out.println("dJEPdx - Enter q to quit, rules to...
1,116,211
void initialise() { j = new MatrixJep(); j.addStandardConstants(); j.addStandardFunctions(); j.addComplex(); j.setAllowUndeclared(true); j.setImplicitMul(true); j.setAllowAssignment(true); j.dv.addStandardDiffRules(); // dv.addDiffRule(new MProductDiffRule(dv,MatrixOperatorSet.M_HAT)); }
void initialise() { j = new MatrixJep(); j.addStandardConstants(); j.addStandardFunctions(); j.addComplex(); j.setAllowUndeclared(true); j.setImplicitMul(true); j.setAllowAssignment(true); j.addStandardDiffRules(); // dv.addDiffRule(new MProductDiffRule(dv,MatrixOperatorSet.M_HAT)); }
1,116,212
void processEquation(Node node) { if(node==null) return; try { System.out.print("fun:\t\t"); j.pv.println(node); MatrixNodeI matEqn = j.dec.preprocess(node,j); j.println(matEqn); Object res = j.evaluate(matEqn); System.out.println("Res: "+res); System.out.println("Variables"); j.getVarTab().print(j...
void processEquation(Node node) { if(node==null) return; try { System.out.print("fun:\t\t"); j.println(node); MatrixNodeI matEqn = j.dec.preprocess(node,j); j.println(matEqn); Object res = j.evaluate(matEqn); System.out.println("Res: "+res); System.out.println("Variables"); j.getVarTab().print(j.pv...
1,116,213
void processEquation(Node node) { if(node==null) return; try { System.out.print("fun:\t\t"); j.pv.println(node); MatrixNodeI matEqn = j.dec.preprocess(node,j); j.println(matEqn); Object res = j.evaluate(matEqn); System.out.println("Res: "+res); System.out.println("Variables"); j.getVarTab().print(j...
void processEquation(Node node) { if(node==null) return; try { System.out.print("fun:\t\t"); j.pv.println(node); MatrixNodeI matEqn = j.dec.preprocess(node,j); j.println(matEqn); Object res = j.evaluate(matEqn); System.out.println("Res: "+res); System.out.println("Variables"); j.getVarTab().print(j...
1,116,214
public DifferentationVisitor getDifferentationVisitor() { return dv; }
public DifferentiationVisitor getDifferentationVisitor() { return dv; }
1,116,215
public SortedMap<Integer,RangeSet> getRelationship(Project that) { TreeMap<Integer,RangeSet> r = new TreeMap<Integer,RangeSet>(REVERSE_INTEGER_COMPARATOR); checkAndRecord(that, r, this.getBuilds()); checkAndRecord(that, r, that.getBuilds()); return r; }
public SortedMap<Integer,RangeSet> getRelationship(Project that) { TreeMap<Integer,RangeSet> r = new TreeMap<Integer,RangeSet>(REVERSE_INTEGER_COMPARATOR); checkAndRecord(that, r, this.getBuilds()); return r; }
1,116,216
private void layoutUi() { JPanel buttons = new JPanel(); okButton = new JButton("OK"); okButton.addActionListener(this); cancelButton = new JButton("Cancel"); cancelButton.addActionListener(this); buttons.setLayout(new FlowLayout(FlowLayout.RIGHT)); buttons.add(cancelButton); buttons.add(okButton); getContent...
private void layoutUi() { JPanel buttons = new JPanel(); okButton = new JButton("OK"); okButton.addActionListener(this); cancelButton = new JButton("Cancel"); cancelButton.addActionListener(this); buttons.setLayout(new FlowLayout(FlowLayout.RIGHT)); buttons.add(cancelButton); buttons.add(okButton); getContent...
1,116,220
private void layoutUi() { JPanel buttons = new JPanel(); okButton = new JButton("OK"); okButton.addActionListener(this); cancelButton = new JButton("Cancel"); cancelButton.addActionListener(this); buttons.setLayout(new FlowLayout(FlowLayout.RIGHT)); buttons.add(cancelButton); buttons.add(okButton); getContent...
private void layoutUi() { JPanel buttons = new JPanel(); okButton = new JButton("OK"); okButton.addActionListener(this); cancelButton = new JButton("Cancel"); cancelButton.addActionListener(this); buttons.setLayout(new FlowLayout(FlowLayout.RIGHT)); buttons.add(cancelButton); buttons.add(okButton); getContent...
1,116,221
private void layoutUi() { JPanel buttons = new JPanel(); okButton = new JButton("OK"); okButton.addActionListener(this); cancelButton = new JButton("Cancel"); cancelButton.addActionListener(this); buttons.setLayout(new FlowLayout(FlowLayout.RIGHT)); buttons.add(cancelButton); buttons.add(okButton); getContent...
private void layoutUi() { JPanel buttons = new JPanel(); okButton = new JButton("OK"); okButton.addActionListener(this); cancelButton = new JButton("Cancel"); cancelButton.addActionListener(this); buttons.setLayout(new FlowLayout(FlowLayout.RIGHT)); buttons.add(cancelButton); buttons.add(okButton); getContent...
1,116,222
private void layoutUi() { JPanel buttons = new JPanel(); okButton = new JButton("OK"); okButton.addActionListener(this); cancelButton = new JButton("Cancel"); cancelButton.addActionListener(this); buttons.setLayout(new FlowLayout(FlowLayout.RIGHT)); buttons.add(cancelButton); buttons.add(okButton); getContent...
private void layoutUi() { JPanel buttons = new JPanel(); okButton = new JButton("OK"); okButton.addActionListener(this); cancelButton = new JButton("Cancel"); cancelButton.addActionListener(this); buttons.setLayout(new FlowLayout(FlowLayout.RIGHT)); buttons.add(cancelButton); buttons.add(okButton); getContent...
1,116,223
private void setOptions() { // cost tab: txtOtherCost.setText(opts.getProperty("optMiscCost")); txtBottleSize.setText(opts.getProperty("optBottleSize")); cmbBottleSizeModel.addOrInsert(opts.getProperty("optBottleU")); // brewer tab: txtBrewerName.setText(opts.getProperty("optBrewer")); txtPhone.setText(opts.get...
private void setOptions() { // cost tab: txtOtherCost.setText(opts.getProperty("optMiscCost")); txtBottleSize.setText(opts.getProperty("optBottleSize")); cmbBottleSizeModel.addOrInsert(opts.getProperty("optBottleU")); // brewer tab: txtBrewerName.setText(opts.getProperty("optBrewer")); txtPhone.setText(opts.get...
1,116,225
public static String toNameList(Iterable<? extends Project> projects) { StringBuilder buf = new StringBuilder(); for (Project project : projects) { if(buf.length()>0) buf.append(", "); buf.append(project.getName()); } return buf.toString(); }
public static String toNameList(Collection<? extends Project> projects) { StringBuilder buf = new StringBuilder(); for (Project project : projects) { if(buf.length()>0) buf.append(", "); buf.append(project.getName()); } return buf.toString(); }
1,116,226
public void doBuild( StaplerRequest req, StaplerResponse rsp ) throws IOException { getParent().getQueue().add(this); rsp.sendRedirect("."); }
public void doBuild( StaplerRequest req, StaplerResponse rsp ) throws IOException { getParent().getQueue().add(this); String referer = req.getHeader("Referer"); if(referer==null) referer="."; rsp.sendRedirect(referer); }
1,116,227
public boolean perform(Build build, Launcher launcher, BuildListener listener) { Project proj = build.getProject(); FilePath ws = proj.getWorkspace(); FilePath script=null; try { try { script = ws.createTempFile("hudson","sh"); Writer w = new File...
public boolean perform(Build build, Launcher launcher, BuildListener listener) { Project proj = build.getProject(); FilePath ws = proj.getWorkspace(); FilePath script=null; try { try { script = ws.createTempFile("hudson","sh"); Writer w = new File...
1,116,228
public boolean perform(Build build, Launcher launcher, BuildListener listener) { Project proj = build.getProject(); FilePath ws = proj.getWorkspace(); FilePath script=null; try { try { script = ws.createTempFile("hudson","sh"); Writer w = new File...
public boolean perform(Build build, Launcher launcher, BuildListener listener) { Project proj = build.getProject(); FilePath ws = proj.getWorkspace(); FilePath script=null; try { try { script = ws.createTempFile("hudson","sh"); Writer w = new File...
1,116,229
boolean addStandardDiffRules() { try { addDiffRule(new MacroDiffRules(globalDJep,"sin","cos(x)")); addDiffRule(new MacroDiffRules(globalDJep,"cos","-sin(x)")); addDiffRule(new MacroDiffRules(globalDJep,"tan","1/((cos(x))^2)")); MacroFunction sec = new MacroFunction("sec",1,"1/cos(x)",globalDJep); global...
boolean addStandardDiffRules() { try { addDiffRule(new MacroDiffRules(globalDJep,"sin","cos(x)")); addDiffRule(new MacroDiffRules(globalDJep,"cos","-sin(x)")); addDiffRule(new MacroDiffRules(globalDJep,"tan","1/((cos(x))^2)")); MacroFunction sec = new MacroFunction("sec",1,"1/cos(x)",globalDJep); global...
1,116,231
public int getFailCount() { return super.getFailCount() + (getStatus()==Status.PASS ? 0 : 1); }
public int getFailCount() { if(considerTestAsTestObject) return super.getFailCount() + (getStatus()==Status.PASS ? 0 : 1); else { if (super.getTotalCount() != 0) return super.getFailCount(); else return (getStatus() == Status.PASS ? 0 : 1); } }
1,116,232
public int getTotalCount() { return super.getTotalCount()+1; }
public int getTotalCount() { if(considerTestAsTestObject) return super.getTotalCount()+1; else { if(super.getTotalCount() != 0) return super.getTotalCount(); else return 1; } }
1,116,233
public boolean calcChangeLog(Build build, File changelogFile, Launcher launcher, BuildListener listener) throws IOException { if(build.getPreviousBuild()==null) { // nothing to compare against return createEmptyChangeLog(changelogFile, listener, "log"); } PrintStream logge...
public boolean calcChangeLog(Build build, File changelogFile, Launcher launcher, BuildListener listener) throws IOException { if(build.getPreviousBuild()==null) { // nothing to compare against return createEmptyChangeLog(changelogFile, listener, "log"); } PrintStream logge...
1,116,235
private File getRevisionFile(Build build) { return new File(build.getRootDir(),"revision.txt"); }
private static File getRevisionFile(Build build) { return new File(build.getRootDir(),"revision.txt"); }
1,116,236
public Object add(Object param1, Object param2) throws ParseException { if (param1 instanceof Number) { if (param2 instanceof Number) { return add((Number)param1, (Number)param2); } else if (param2 instanceof Complex) { return add((Complex)param2, (Number)param1); } } else if (param1 instanceof Complex) ...
public Object add(Object param1, Object param2) throws ParseException { if (param1 instanceof Number) { if (param2 instanceof Number) { return add((Number)param1, (Number)param2); } else if (param2 instanceof Complex) { return add((Complex)param2, (Number)param1); } } else if (param1 instanceof Complex) ...
1,116,237
public Object add(Object param1, Object param2) throws ParseException { if (param1 instanceof Number) { if (param2 instanceof Number) { return add((Number)param1, (Number)param2); } else if (param2 instanceof Complex) { return add((Complex)param2, (Number)param1); } } else if (param1 instanceof Complex) ...
public Object add(Object param1, Object param2) throws ParseException { if (param1 instanceof Number) { if (param2 instanceof Number) { return add((Number)param1, (Number)param2); } else if (param2 instanceof Complex) { return add((Complex)param2, (Number)param1); } } else if (param1 instanceof Complex) ...
1,116,238
public List<Entity> getEntities() { List<Entity> entityList = new ArrayList<Entity>(); if (logger.isDebugEnabled()) { logger.debug("Current entity is: "+getCurrentEntity()); } for (User u: getUsers()) { if (!u.equals(getCurrentEntity())) { entityList.add...
public List<Entity> getEntities() { List<Entity> entityList = new ArrayList<Entity>(); if (logger.isDebugEnabled()) { logger.debug("Current entity is: "+getCurrentEntity()); } for (User u: getUsers()) { if (!u.getEntity().equals(getCurrentEntity())) { en...
1,116,239
public void testUndeclared() throws Exception { j.setAllowUndeclared(false); try { Node n = j.parse("zap * wow"); fail("Should have found undeclared error"); } catch(ParseException e) { System.out.println("Error caught: "+e.getMessage()); } try { j.setVarValue("foo",...
public void testUndeclared() throws Exception { j.setAllowUndeclared(false); try { j.parse("zap * wow"); fail("Should have found undeclared error"); } catch(ParseException e) { System.out.println("Error caught: "+e.getMessage()); } try { j.setVarValue("foo",new Doubl...
1,116,240
public SearchFilterPanel( SearchTab tab ) { super(); searchTab = tab; setBorder( BorderFactory.createLineBorder( PhexColors.getBoxPanelBorderColor() ) ); setBackground( UIManager.getDefaults().getColor("window") ); CellConstraints cc = new C...
public SearchFilterPanel( SearchTab tab ) { super(); searchTab = tab; setBorder( BorderFactory.createLineBorder( PhexColors.getBoxPanelBorderColor() ) ); setBackground( UIManager.getDefaults().getColor("window") ); CellConstraints cc = new C...
1,116,241
public PSNPolesAndZeros(DataInputStream data) throws IOException{ dis = data; numZeros = SacTimeSeries.swapBytes((short)dis.readUnsignedShort()); numPoles = SacTimeSeries.swapBytes((short)dis.readUnsignedShort()); zeros = new double[numZeros][2]; for (int i = 0; i < numZeros; i++)...
public PSNPolesAndZeros(DataInputStream data) throws IOException{ dis = data; numZeros = SacTimeSeries.swapBytes((short)dis.readUnsignedShort()); numPoles = SacTimeSeries.swapBytes((short)dis.readUnsignedShort()); zeros = new double[numZeros][2]; for (int i = 0; i < numZeros; i++)...
1,116,242
protected void setAsText(String id, Class clazz) { if (logger.isDebugEnabled()) { logger.debug("Loaded "+clazz.getName()+" property editor"); } try { Serializable key = resolveId(id); Object value = getHibernateTemplate().load(clazz, key); super.setVa...
protected void setAsText(String id, Class clazz) { if (logger.isDebugEnabled()) { logger.debug("Loaded "+clazz.getName()+" property editor"); } try { Serializable key = resolveId(id); Object value = getHibernateTemplate().load(clazz, key); super.setVa...
1,116,244
private void initGUI() { try { // restore the saved size and location: this.setSize(preferences.getIProperty("winWidth"), preferences.getIProperty("winHeight")); this.setLocation(preferences.getIProperty("winX"), preferences.getIProperty("winY")); imgURL = getClass().getClassLoader().getResource("ca...
private void initGUI() { try { // restore the saved size and location: this.setSize(preferences.getIProperty("winWidth"), preferences.getIProperty("winHeight")); this.setLocation(preferences.getIProperty("winX"), preferences.getIProperty("winY")); imgURL = getClass().getClassLoader().getResource("ca...
1,116,245
private void initGUI() { try { // restore the saved size and location: this.setSize(preferences.getIProperty("winWidth"), preferences.getIProperty("winHeight")); this.setLocation(preferences.getIProperty("winX"), preferences.getIProperty("winY")); imgURL = getClass().getClassLoader().getResource("ca...
private void initGUI() { try { // restore the saved size and location: this.setSize(preferences.getIProperty("winWidth"), preferences.getIProperty("winHeight")); this.setLocation(preferences.getIProperty("winX"), preferences.getIProperty("winY")); imgURL = getClass().getClassLoader().getResource("ca...
1,116,246
public void actionPerformed(ActionEvent evt) { if (myRecipe != null) { Fermentable f = new Fermentable(myRecipe.getMaltUnits()); myRecipe.addMalt(f); maltTable.updateUI(); displayRecipe(); } }
public void actionPerformed(ActionEvent evt) { if (myRecipe != null) { Fermentable f = new Fermentable(myRecipe.getMaltUnits()); myRecipe.addMalt(f); maltTable.updateUI(); displayRecipe(); } }
1,116,248
public void actionPerformed(ActionEvent evt) { if (myRecipe != null) { int i = maltTable.getSelectedRow(); myRecipe.delMalt(i); maltTable.updateUI(); displayRecipe(); } }
public void actionPerformed(ActionEvent evt) { if (myRecipe != null) { int i = maltTable.getSelectedRow(); myRecipe.delMalt(i); maltTable.updateUI(); displayRecipe(); } }
1,116,250
public void actionPerformed(ActionEvent evt) { String u = (String) hopsTotalUnitsComboModel.getSelectedItem(); if (myRecipe != null) { myRecipe.setHopsUnits(u); displayRecipe(); } }
public void actionPerformed(ActionEvent evt) { String u = (String) hopsTotalUnitsComboModel.getSelectedItem(); if (myRecipe != null) { myRecipe.setHopsUnits(u); displayRecipe(); } }
1,116,251
public void actionPerformed(ActionEvent evt) { String u = (String) hopsTotalUnitsComboModel.getSelectedItem(); if (myRecipe != null) { myRecipe.setHopsUnits(u); displayRecipe(); } }
public void actionPerformed(ActionEvent evt) { String u = (String) hopsTotalUnitsComboModel.getSelectedItem(); if (myRecipe != null) { myRecipe.setHopsUnits(u); displayRecipe();
1,116,252
public void actionPerformed(ActionEvent evt) { if (myRecipe != null) { int i = hopsTable.getSelectedRow(); myRecipe.delHop(i); hopsTable.updateUI(); displayRecipe(); } }
public void actionPerformed(ActionEvent evt) { if (myRecipe != null) { int i = hopsTable.getSelectedRow(); myRecipe.delHop(i); hopsTable.updateUI(); displayRecipe(); } }
1,116,253
public void actionPerformed(ActionEvent evt) { // This is just a test right now to see that // stuff is changed. myRecipe = new Recipe(); myRecipe.setVersion(version); currentFile = null; attachRecipeData(); displayRecipe(); }
public void actionPerformed(ActionEvent evt) { // This is just a test right now to see that // stuff is changed. myRecipe = new Recipe(); myRecipe.setVersion(version); currentFile = null; attachRecipeData(); displayRecipe(); }
1,116,254
public void actionPerformed(ActionEvent evt) { // Show open dialog; this method does // not return until the dialog is closed String[] ext = {"xml", "qbrew", "rec"}; String desc = "StrangBrew and importable formats"; sbFileFilter openFileFilter = new sbFileFilter(ext, desc); ...
public void actionPerformed(ActionEvent evt) { // Show open dialog; this method does // not return until the dialog is closed String[] ext = {"xml", "qbrew", "rec"}; String desc = "StrangBrew and importable formats"; sbFileFilter openFileFilter = new sbFileFilter(ext, desc); ...
1,116,255
public void actionPerformed(ActionEvent evt) { // open the find dialog FindDialog fd = new FindDialog(owner); fd.setModal(true); fd.setVisible(true); }
public void actionPerformed(ActionEvent evt) { // open the find dialog FindDialog fd = new FindDialog(owner); fd.setModal(true); fd.setVisible(true); }
1,116,256
public void actionPerformed(ActionEvent evt) { saveFile(evt); }
public void actionPerformed(ActionEvent evt) { saveFile(evt); }
1,116,257
public void actionPerformed(ActionEvent evt) { saveAs(); }
public void actionPerformed(ActionEvent evt) { saveAs(); }
1,116,258
public void actionPerformed(ActionEvent evt) { // Show save dialog; this method does // not return until the dialog is closed String[] ext = {"html", "htm"}; sbFileFilter saveFileFilter = new sbFileFilter(ext, "HTML"); fileChooser.setFileFilter(saveFileFilter); f...
public void actionPerformed(ActionEvent evt) { // Show save dialog; this method does // not return until the dialog is closed String[] ext = {"html", "htm"}; sbFileFilter saveFileFilter = new sbFileFilter(ext, "HTML"); fileChooser.setFileFilter(saveFileFilter); f...
1,116,259
public void actionPerformed(ActionEvent evt) { // Show save dialog; this method does // not return until the dialog is closed String[] ext = {"txt"}; sbFileFilter saveFileFilter = new sbFileFilter(ext, "Text"); fileChooser.setFileFilter(saveFileFilter); fileChoose...
public void actionPerformed(ActionEvent evt) { // Show save dialog; this method does // not return until the dialog is closed String[] ext = {"txt"}; sbFileFilter saveFileFilter = new sbFileFilter(ext, "Text"); fileChooser.setFileFilter(saveFileFilter); fileChoose...
1,116,260
public void actionPerformed(ActionEvent evt) { // Show save dialog; this method does // not return until the dialog is closed String[] ext = {"txt"}; sbFileFilter saveFileFilter = new sbFileFilter(ext, "Text"); fileChooser.setFileFilter(saveFileFilter); fileChoose...
public void actionPerformed(ActionEvent evt) { // Show save dialog; this method does // not return until the dialog is closed String[] ext = {"txt"}; sbFileFilter saveFileFilter = new sbFileFilter(ext, "Text"); fileChooser.setFileFilter(saveFileFilter); fileChoose...
1,116,261
public void actionPerformed(ActionEvent evt) { // Show save dialog; this method does // not return until the dialog is closed String[] ext = {"txt"}; sbFileFilter saveFileFilter = new sbFileFilter(ext, "Text"); fileChooser.setFileFilter(saveFileFilter); fileChoose...
public void actionPerformed(ActionEvent evt) { // Show save dialog; this method does // not return until the dialog is closed String[] ext = {"txt"}; sbFileFilter saveFileFilter = new sbFileFilter(ext, "Text"); fileChooser.setFileFilter(saveFileFilter); fileChoose...
1,116,262
public void actionPerformed(ActionEvent evt) { // Show save dialog; this method does // not return until the dialog is closed String[] ext = {"txt"}; sbFileFilter saveFileFilter = new sbFileFilter(ext, "Text"); fileChooser.setFileFilter(saveFileFilter); fileChoose...
public void actionPerformed(ActionEvent evt) { // Show save dialog; this method does // not return until the dialog is closed String[] ext = {"txt"}; sbFileFilter saveFileFilter = new sbFileFilter(ext, "Text"); fileChooser.setFileFilter(saveFileFilter); fileChoose...
1,116,263
public void actionPerformed(ActionEvent evt) { // Copy current recipe to clipboard Clipboard clipboard = getToolkit ().getSystemClipboard (); StringSelection s = new StringSelection(myRecipe.toText()); clipboard.setContents(s, s); }
public void actionPerformed(ActionEvent evt) { // Copy current recipe to clipboard Clipboard clipboard = getToolkit ().getSystemClipboard (); StringSelection s = new StringSelection(myRecipe.toText()); clipboard.setContents(s, s); }
1,116,264
public void actionPerformed(ActionEvent evt) { PrintDialog pd = new PrintDialog(owner); pd.setModal(true); pd.setVisible(true); }
public void actionPerformed(ActionEvent evt) { PrintDialog pd = new PrintDialog(owner); pd.setModal(true); pd.setVisible(true); }
1,116,265
public void actionPerformed(ActionEvent evt) { // exit program processWindowEvent(new WindowEvent(owner,WindowEvent.WINDOW_CLOSING)); System.exit(0); }
public void actionPerformed(ActionEvent evt) { // exit program processWindowEvent(new WindowEvent(owner,WindowEvent.WINDOW_CLOSING)); System.exit(0); }
1,116,266
public void actionPerformed(ActionEvent evt) { PreferencesDialog d = new PreferencesDialog(owner, preferences); d.setVisible(true); }
public void actionPerformed(ActionEvent evt) { PreferencesDialog d = new PreferencesDialog(owner, preferences); d.setVisible(true); }
1,116,267
public void actionPerformed(ActionEvent evt) { ScaleRecipeDialog scaleRecipe = new ScaleRecipeDialog(owner); scaleRecipe.setModal(true); scaleRecipe.setVisible(true); }
public void actionPerformed(ActionEvent evt) { ScaleRecipeDialog scaleRecipe = new ScaleRecipeDialog(owner); scaleRecipe.setModal(true); scaleRecipe.setVisible(true); }
1,116,268
public void actionPerformed(ActionEvent evt) { MaltPercentDialog maltPercent = new MaltPercentDialog(owner); maltPercent.setModal(true); maltPercent.setVisible(true); }
public void actionPerformed(ActionEvent evt) { MaltPercentDialog maltPercent = new MaltPercentDialog(owner); maltPercent.setModal(true); maltPercent.setVisible(true); }
1,116,269
public void actionPerformed(ActionEvent evt) { RefractometerDialog refract = new RefractometerDialog(owner); refract.setModal(true); refract.setVisible(true); }
public void actionPerformed(ActionEvent evt) { RefractometerDialog refract = new RefractometerDialog(owner); refract.setModal(true); refract.setVisible(true); }
1,116,270
public void actionPerformed(ActionEvent evt) { PotentialExtractCalcDialog extCalc = new PotentialExtractCalcDialog(owner); extCalc.setModal(true); extCalc.setVisible(true); }
public void actionPerformed(ActionEvent evt) { PotentialExtractCalcDialog extCalc = new PotentialExtractCalcDialog(owner); extCalc.setModal(true); extCalc.setVisible(true); }
1,116,271
public void actionPerformed(ActionEvent evt) { String urlString = SBStringUtils.getAppPath("help") + "index.html"; Debug.print(urlString); AbstractLogger logger = new SystemLogger(); BrowserLauncher launcher; try { launcher = new BrowserLauncher(logger); ...
public void actionPerformed(ActionEvent evt) { String urlString = SBStringUtils.getAppPath("help") + "index.html"; Debug.print(urlString); AbstractLogger logger = new SystemLogger(); BrowserLauncher launcher; try { launcher = new BrowserLauncher(logger); ...
1,116,272
public void actionPerformed(ActionEvent evt) { aboutDlg = new AboutDialog(owner, version); aboutDlg.setVisible(true); }
public void actionPerformed(ActionEvent evt) { aboutDlg = new AboutDialog(owner, version); aboutDlg.setVisible(true); }
1,116,273
public FindDialog(JFrame frame) { super(frame); recipes = new ArrayList(); files = new ArrayList(); inst = (StrangeSwing) frame; String slash = System.getProperty("file.separator"); currentDir = new java.io.File("."); try { currentDir = new File(currentDir.getCanonicalPath() + slash + "recipes"); } catch (IO...
public FindDialog(JFrame frame) { super(frame); recipes = new ArrayList(); files = new ArrayList(); inst = (StrangeSwing) frame; String slash = System.getProperty("file.separator"); currentDir = new java.io.File("."); try { currentDir = new File(currentDir.getCanonicalPath() + slash + "recipes"); } catch (IO...
1,116,274
public Object cos(Object param) throws ParseException { if (param instanceof Number) { return new Double(Math.cos(((Number)param).doubleValue())); } else if (param instanceof Complex) { return ((Complex)param).cos(); } throw new ParseException("Invalid parameter type"); }
public Object cos(Object param) throws ParseException { if (param instanceof Complex) { return ((Complex)param).cos(); } else if (param instanceof Number) { return new Double(Math.cos(((Number)param).doubleValue())); } else if (param instanceof Complex) { return ((Complex)param).cos(); } throw new ParseExc...
1,116,275
public Object cos(Object param) throws ParseException { if (param instanceof Number) { return new Double(Math.cos(((Number)param).doubleValue())); } else if (param instanceof Complex) { return ((Complex)param).cos(); } throw new ParseException("Invalid parameter type"); }
public Object cos(Object param) throws ParseException { if (param instanceof Number) { return new Double(Math.cos(((Number)param).doubleValue())); } else if (param instanceof Complex) { return ((Complex)param).cos(); } throw new ParseException("Invalid parameter type"); }
1,116,276
public String visualizeSearchStatus( Search search ) { return null; }
public static String visualizeSearchStatus( Search search ) { return null; }
1,116,277
public String visualizeSearchStatus( Search search ) { return null; }
public String visualizeSearchStatus( Search search ) { if ( search instanceof BrowseHostResults ) { BrowseHostResults br = (BrowseHostResults) search; switch ( br.getBrowseHostStatus() ) { case BrowseHostResults.INITIALIZING: return Localizer.getString("BrowseHost_Initializing"); case BrowseHostResults.CO...
1,116,278
public Object asin(Object param) throws ParseException { if (param instanceof Number) { return new Double(Math.asin(((Number)param).doubleValue())); } else if (param instanceof Complex) { return ((Complex)param).asin(); } throw new ParseException("Invalid parameter type"); }
public Object asin(Object param) throws ParseException { if (param instanceof Complex) { return ((Complex)param).asin(); } else if (param instanceof Number) { return new Double(Math.asin(((Number)param).doubleValue())); } else if (param instanceof Complex) { return ((Complex)param).asin(); } throw new Pars...
1,116,279
public Object asin(Object param) throws ParseException { if (param instanceof Number) { return new Double(Math.asin(((Number)param).doubleValue())); } else if (param instanceof Complex) { return ((Complex)param).asin(); } throw new ParseException("Invalid parameter type"); }
public Object asin(Object param) throws ParseException { if (param instanceof Number) { return new Double(Math.asin(((Number)param).doubleValue())); } else if (param instanceof Complex) { return ((Complex)param).asin(); } throw new ParseException("Invalid parameter type"); }
1,116,280
public UserLog createAndPersistUserLog(User user, Date date) { UserLog userLog = new UserLog(); userLog.setUser(user); userLog.setLastLogin(date); merge(userLog); return userLog; }
public UserLog createAndPersistUserLog(User user, Date date) { UserLog userLog = new UserLog(); userLog.setUser(user); userLog.setLastLogin(date); merge(userLog); return userLog; }
1,116,281