bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public static Artifact cloneWithAnotherTypeAndExt(Artifact artifact, String newType, String newExt) { return new DefaultArtifact(artifact.getModuleRevisionId(), artifact.getPublicationDate(), artifact.getName(), newType, newExt, artifact.getExtraAttributes()); } | public static Artifact cloneWithAnotherTypeAndExt(Artifact artifact, String newType, String newExt) { return new DefaultArtifact(artifact.getModuleRevisionId(), artifact.getPublicationDate(), artifact.getName(), newType, newExt, artifact.getUrl(), artifact.getExtraAttributes()); } | 58,730 |
public void writePrototypeIniFile(PrintWriter writer) { System.out.println("*** Im here"); try { writer.println("[Prototype] Entity"); writer.println(); writer.println("[Relationship]"); writer.println("#Role ItemIdentification TypeIdentification Cluster Start End"); I... | public void writePrototypeIniFile(PrintWriter writer) { try { writer.println("[Prototype] Entity"); writer.println(); writer.println("[Relationship]"); writer.println("#Role ItemIdentification TypeIdentification Cluster Start End"); Iterator iter = getAllRoles().iterat... | 58,731 |
public void addTimePhasedData(TimePhasedData data); | public void addTimePhasedData(TimePhasedData data); | 58,732 |
private void setComponentProperties(ConfigurableComponent cc, String comp_alib_id, String assemblyMatch) { try { Connection conn = DBUtils.getConnection(); Map substitutions = new HashMap(); substitutions.put(":assemblyMatch"... | private void setComponentProperties(ConfigurableComponent cc, String comp_alib_id, String assemblyMatch) { try { Connection conn = DBUtils.getConnection(); Map substitutions = new HashMap(); substitutions.put(":assemblyMatch"... | 58,733 |
private void setComponentProperties(ConfigurableComponent cc, String comp_alib_id, String assemblyMatch) { try { Connection conn = DBUtils.getConnection(); Map substitutions = new HashMap(); substitutions.put(":assemblyMatch"... | private void setComponentProperties(ConfigurableComponent cc, String comp_alib_id, String assemblyMatch) { try { Connection conn = DBUtils.getConnection(); Map substitutions = new HashMap(); substitutions.put(":assemblyMatch"... | 58,734 |
private void setComponentProperties(ConfigurableComponent cc, String comp_alib_id, String assemblyMatch) { try { Connection conn = DBUtils.getConnection(); Map substitutions = new HashMap(); substitutions.put(":assemblyMatch"... | private void setComponentProperties(ConfigurableComponent cc, String comp_alib_id, String assemblyMatch) { try { Connection conn = DBUtils.getConnection(); Map substitutions = new HashMap(); substitutions.put(":assemblyMatch"... | 58,735 |
public boolean contains(Point p) { return contains(p.x, p.y); } | public boolean contains(int x, int y) { return contains(p.x, p.y); } | 58,736 |
public boolean contains(Point p) { return contains(p.x, p.y); } | public boolean contains(Point p) { return x >= 0 && y >= 0 && x < width && y < height; } | 58,737 |
public JMenu(String text) { // TODO } // JMenu() | public JMenu(String text) { // TODO } // JMenu() | 58,738 |
public JMenuItem add(Action action) { return null; // TODO } // add() | public JMenuItem add(Action action) { return null; // TODO } // add() | 58,739 |
public Experiment copy(Organizer organizer, Object context) { String uniqueName = organizer.generateExperimentName(getExperimentName()); Experiment experimentCopy = null; if (inDatabase) experimentCopy = new Experiment(uniqueName, expID, trialID); else experimentCopy = new Experiment(uniqueName... | public Experiment copy(Organizer organizer, Object context) { String uniqueName = organizer.generateExperimentName(getExperimentName()); Experiment experimentCopy = null; if (inDatabase)experimentCopy = new Experiment(uniqueName, expID, trialID); else experimentCopy = new Experiment(uniqueName); f... | 58,740 |
public Experiment copy(Organizer organizer, Object context) { String uniqueName = organizer.generateExperimentName(getExperimentName()); Experiment experimentCopy = null; if (inDatabase) experimentCopy = new Experiment(uniqueName, expID, trialID); else experimentCopy = new Experiment(uniqueName... | public Experiment copy(Organizer organizer, Object context) { String uniqueName = organizer.generateExperimentName(getExperimentName()); Experiment experimentCopy = null; if (inDatabase) experimentCopy = new Experiment(uniqueName, expID, trialID); else experimentCopy = new Experiment(uniqueName... | 58,741 |
public Experiment copy(Organizer organizer, Object context) { String uniqueName = organizer.generateExperimentName(getExperimentName()); Experiment experimentCopy = null; if (inDatabase) experimentCopy = new Experiment(uniqueName, expID, trialID); else experimentCopy = new Experiment(uniqueName... | public Experiment copy(Organizer organizer, Object context) { String uniqueName = organizer.generateExperimentName(getExperimentName()); Experiment experimentCopy = null; if (inDatabase) experimentCopy = new Experiment(uniqueName, expID, trialID); else experimentCopy = new Experiment(uniqueName... | 58,742 |
public Experiment(String name, String expID, String trialID) { super(name); this.expID = expID; this.trialID = trialID; inDatabase = true; // System.out.println("Experiment: " + expID + " Trial: " + trialID); } | public Experiment(String name, String expID, String trialID) { super(name); this.expID = expID; this.trialID = trialID; inDatabase = true; // System.out.println("Experiment: " + expID + " Trial: " + trialID); } | 58,743 |
Property getProperty(String localName); | Property getProperty(String localName); | 58,744 |
public void actionPerformed(ActionEvent evt) { String command = ((JMenuItem)evt.getSource()).getText(); if (command.equals(NEW_WITH_SELECTION_MENU_ITEM)) { // check that at least one node is selected, else do nothing if (!graph.isNodeSelected()) return; CSMARTGraph newGraph = graph.newGraphFromSe... | public void actionPerformed(ActionEvent evt) { String command = ((JMenuItem)evt.getSource()).getText(); if (command.equals(NEW_WITH_SELECTION_MENU_ITEM)) { // check that at least one node is selected, else do nothing if (!graph.isNodeSelected()) return; CSMARTGraph newGraph = graph.newGraphFromSe... | 58,745 |
public void setEnabled(boolean enabled) { // TODO } // setEnabled() | public void setEnabled(boolean enabled) { // TODO } // setEnabled() | 58,747 |
public static void deleteExperiment(String experiment_id) { boolean doIt = true; if(experiment_id.equals("EXPT_TRANS")){ doIt=false; int response = JOptionPane.showConfirmDialog(null, "You seem to be trying to delete the base experiment -- do you REALLY want to do this?", "Confirm Dele... | public static void deleteExperiment(String experiment_id) { boolean doIt = true; if(experiment_id.equals("EXPT_TRANS")){ doIt=false; int response = JOptionPane.showConfirmDialog(null, "You seem to be trying to delete the base experiment -- do you REALLY want to do this?", "Confirm Dele... | 58,748 |
public static void deleteExperiment(String experiment_id) { boolean doIt = true; if(experiment_id.equals("EXPT_TRANS")){ doIt=false; int response = JOptionPane.showConfirmDialog(null, "You seem to be trying to delete the base experiment -- do you REALLY want to do this?", "Confirm Dele... | public static void deleteExperiment(String experiment_id) { boolean doIt = true; if(experiment_id.equals("EXPT_TRANS")){ doIt=false; int response = JOptionPane.showConfirmDialog(null, "You seem to be trying to delete the base experiment -- do you REALLY want to do this?", "Confirm Dele... | 58,749 |
ScrollPaneAdjustable (ScrollPane sp, int orientation, int value, int minimum, int maximum, in visibleAmount, int unitIncrement, int blockIncrement) { this.sp = sp; this.orientation = orientation; this.value = value; this.minimum = minimum; this.maximum = m... | ScrollPaneAdjustable (ScrollPane sp, int orientation, int value, int minimum, int maximum, in visibleAmount, int unitIncrement, int blockIncrement) { this.sp = sp; this.orientation = orientation; this.value = value; this.minimum = minimum; this.maximum = m... | 58,750 |
ScrollPaneAdjustable (ScrollPane sp, int orientation, int value, int minimum, int maximum, in visibleAmount, int unitIncrement, int blockIncrement) { this.sp = sp; this.orientation = orientation; this.value = value; this.minimum = minimum; this.maximum = m... | ScrollPaneAdjustable (ScrollPane sp, int orientation, int value, int minimum, int maximum, in visibleAmount, int unitIncrement, int blockIncrement) { this.sp = sp; this.orientation = orientation; this.value = value; this.minimum = minimum; this.maximum = m... | 58,751 |
public void resize(Dimension d) { setSize(d.width, d.height); } | public void resize(int width, int height) { setSize(d.width, d.height); } | 58,752 |
public void resize(Dimension d) { setSize(d.width, d.height); } | public void resize(Dimension d) { setSize(width, height); } | 58,753 |
protected void mergePathURL(URL modelURL) { if(modelURL != null) { File modelFile = new File(modelURL.getFile()); if (log.isDebugEnabled()) log.debug("Merging rule file \"" + modelFile.getPath() + "\""); setCurrentFile(modelFile)... | protected void mergePathURL(URL modelURL) { if(modelURL != null) { File modelFile = new File(modelURL.getFile()); if (log.isDebugEnabled()) log.debug("Merging rule file \"" + modelFile.getPath() + "\""); setCurrentFile(modelFile)... | 58,754 |
protected void mergePathURL(URL modelURL) { if(modelURL != null) { File modelFile = new File(modelURL.getFile()); if (log.isDebugEnabled()) log.debug("Merging rule file \"" + modelFile.getPath() + "\""); setCurrentFile(modelFile)... | protected void mergePathURL(URL modelURL) { if(modelURL != null) { File modelFile = new File(modelURL.getFile()); if (log.isDebugEnabled()) log.debug("Merging rule file \"" + modelFile.getPath() + "\""); setCurrentFile(modelFile)... | 58,755 |
protected void mergePathURL(URL modelURL) { if(modelURL != null) { File modelFile = new File(modelURL.getFile()); if (log.isDebugEnabled()) log.debug("Merging rule file \"" + modelFile.getPath() + "\""); setCurrentFile(modelFile)... | protected void mergePathURL(URL modelURL) { if(modelURL != null) { File modelFile = new File(modelURL.getFile()); if (log.isDebugEnabled()) log.debug("Merging rule file \"" + modelFile.getPath() + "\""); setCurrentFile(modelFile)... | 58,756 |
public Object replaceObjectAtIndex(Object object, int index) { if (object == null) throw new IllegalArgumentException("Attempt to insert null into an " + getClass().getName() + "."); if (index >= 0 && index < _count) { Object result = _objects[index]; _objects[index] ... | public Object replaceObjectAtIndex(Object object, int index) { if (object == null) throw new IllegalArgumentException("Attempt to insert null into an " + getClass().getName() + "."); if (index >= 0 && index < _count) { Object result = _objects[index]; _objects[index] ... | 58,757 |
public String radioBoxGroupName(){ return ("YesNoGroup_"+d2wContext().propertyKey()); } | public String radioBoxGroupName(){ return ("YesNoGroup_"+d2wContext().propertyKey()); } | 58,758 |
public boolean equals(Object o) { if (o instanceof GenericComponentData) { GenericComponentData that = (GenericComponentData)o; // FIXME: Compare AlibIDs if they're both not null first?// if (this.getAlibID() != null && that.getAlibID() != null) {// return (this.getAlibID().equals(that.getAlibID... | public boolean equals(Object o) { if (o instanceof GenericComponentData) { GenericComponentData that = (GenericComponentData)o; // FIXME: Compare AlibIDs if they're both not null first?// if (this.getAlibID() != null && that.getAlibID() != null) {// return (this.getAlibID().equals(that.getAlibID... | 58,760 |
public void addChildDefaultLoc(ComponentData comp); | public void addChildDefaultLoc(ComponentData comp); | 58,761 |
public String getDisplayName() { return displayName; } | public String getDisplayName() { return (displayName == null) ? name : displayName; } | 58,762 |
public String getShortDescription() { return shortDescription; } | public String getShortDescription() { return (shortDescription == null) ? getDisplayName() : shortDescription; } | 58,763 |
public void testEnterState_Invalid_NotExitedOtherState() { this.processContext.startProcess( this.process ); assertSame( this.process, this.processContext.getCurrentProcess() ); assertNull( this.processContext.getCurrentState() ); try { this.proces... | public void testEnterState_Invalid_NotExitedOtherState() throws Exception { this.processContext.startProcess( this.process ); assertSame( this.process, this.processContext.getCurrentProcess() ); assertNull( this.processContext.getCurrentState() ); try { ... | 58,764 |
public void testEnterState_Invalid_NotExitedOtherState() { this.processContext.startProcess( this.process ); assertSame( this.process, this.processContext.getCurrentProcess() ); assertNull( this.processContext.getCurrentState() ); try { this.proces... | public void testEnterState_Invalid_NotExitedOtherState() { this.processContext.startProcess( this.process ); assertSame( this.process, this.processContext.getCurrentProcess() ); assertNull( this.processContext.getCurrentState() ); try { this.proces... | 58,765 |
public void testEnterState_Invalid_NotExitedOtherState() { this.processContext.startProcess( this.process ); assertSame( this.process, this.processContext.getCurrentProcess() ); assertNull( this.processContext.getCurrentState() ); try { this.proces... | public void testEnterState_Invalid_NotExitedOtherState() { this.processContext.startProcess( this.process ); assertSame( this.process, this.processContext.getCurrentProcess() ); assertNull( this.processContext.getCurrentState() ); try { this.proces... | 58,766 |
public void testEnterState_Valid() { this.processContext.startProcess( this.process ); assertSame( this.process, this.processContext.getCurrentProcess() ); assertNull( this.processContext.getCurrentState() ); try { this.processContext.enterState( t... | public void testEnterState_Valid() throws Exception { this.processContext.startProcess( this.process ); assertSame( this.process, this.processContext.getCurrentProcess() ); assertNull( this.processContext.getCurrentState() ); try { this.processCont... | 58,767 |
public void testEnterState_Valid() { this.processContext.startProcess( this.process ); assertSame( this.process, this.processContext.getCurrentProcess() ); assertNull( this.processContext.getCurrentState() ); try { this.processContext.enterState( t... | public void testEnterState_Valid() { this.processContext.startProcess( this.process ); assertSame( this.process, this.processContext.getCurrentProcess() ); assertNull( this.processContext.getCurrentState() ); try { this.processContext.enterState( t... | 58,768 |
public void testExitState_Invalid_WrongState() { this.processContext.startProcess( this.process ); assertSame( this.process, this.processContext.getCurrentProcess() ); assertNull( this.processContext.getCurrentState() ); try { this.processContext.e... | public void testExitState_Invalid_WrongState() throws Exception { this.processContext.startProcess( this.process ); assertSame( this.process, this.processContext.getCurrentProcess() ); assertNull( this.processContext.getCurrentState() ); try { this... | 58,769 |
public void testExitState_Invalid_WrongState() { this.processContext.startProcess( this.process ); assertSame( this.process, this.processContext.getCurrentProcess() ); assertNull( this.processContext.getCurrentState() ); try { this.processContext.e... | public void testExitState_Invalid_WrongState() { this.processContext.startProcess( this.process ); assertSame( this.process, this.processContext.getCurrentProcess() ); assertNull( this.processContext.getCurrentState() ); try { this.processContext.e... | 58,770 |
public void testExitState_Invalid_WrongState() { this.processContext.startProcess( this.process ); assertSame( this.process, this.processContext.getCurrentProcess() ); assertNull( this.processContext.getCurrentState() ); try { this.processContext.e... | public void testExitState_Invalid_WrongState() { this.processContext.startProcess( this.process ); assertSame( this.process, this.processContext.getCurrentProcess() ); assertNull( this.processContext.getCurrentState() ); try { this.processContext.e... | 58,771 |
public void testExitState_Valid() { this.processContext.startProcess( this.process ); assertSame( this.process, this.processContext.getCurrentProcess() ); assertNull( this.processContext.getCurrentState() ); try { this.processContext.enterState( th... | public void testExitState_Valid() throws Exception { this.processContext.startProcess( this.process ); assertSame( this.process, this.processContext.getCurrentProcess() ); assertNull( this.processContext.getCurrentState() ); try { this.processConte... | 58,772 |
public void testExitState_Valid() { this.processContext.startProcess( this.process ); assertSame( this.process, this.processContext.getCurrentProcess() ); assertNull( this.processContext.getCurrentState() ); try { this.processContext.enterState( th... | public void testExitState_Valid() { this.processContext.startProcess( this.process ); assertSame( this.process, this.processContext.getCurrentProcess() ); assertNull( this.processContext.getCurrentState() ); try { this.processContext.enterState( th... | 58,773 |
public void testFinishProces_Invalid_ProcessNotFinished() { this.processContext.startProcess( this.process ); assertSame( process, this.processContext.getCurrentProcess() ); try { try { this.processContext.enterState( thi... | publicvoidtestFinishProces_Invalid_ProcessNotFinished(){this.processContext.startProcess(this.process);assertSame(process,this.processContext.getCurrentProcess());try{try{this.processContext.enterState(this.state1);}catch(InvalidMotionExceptione){fail(e.getLocalizedMessage());}this.processContext.finishProcess(this.pro... | 58,774 |
public void testFinishProcess_Valid() { this.processContext.startProcess( this.process ); assertSame( process, this.processContext.getCurrentProcess() ); try { this.processContext.finishProcess( this.process ); } catch (InvalidMotionExceptio... | public void testFinishProcess_Valid() throws Exception { this.processContext.startProcess( this.process ); assertSame( process, this.processContext.getCurrentProcess() ); try { this.processContext.finishProcess( this.process ); } catch (Inva... | 58,775 |
public void testFinishProcess_Valid() { this.processContext.startProcess( this.process ); assertSame( process, this.processContext.getCurrentProcess() ); try { this.processContext.finishProcess( this.process ); } catch (InvalidMotionExceptio... | public void testFinishProcess_Valid() { this.processContext.startProcess( this.process ); assertSame( process, this.processContext.getCurrentProcess() ); try { this.processContext.finishProcess( this.process ); } catch (InvalidMotionExceptio... | 58,776 |
public State addState(String name, String description) throws DuplicateStateException { if ( this.states.containsKey( name ) ) { throw new DuplicateStateException( this, name ); } State state = new State... | public State addState(String name, String description) throws DuplicateStateException { if ( this.states.containsKey( name ) ) { throw new DuplicateStateException( this, name ); } State state = new State... | 58,777 |
public State addState(String name, String description) throws DuplicateStateException { if ( this.states.containsKey( name ) ) { throw new DuplicateStateException( this, name ); } State state = new State... | public State addState(String name, String description) throws DuplicateStateException { if ( this.states.containsKey( name ) ) { throw new DuplicateStateException( this, name ); } State state = new State... | 58,778 |
public static Font decode (String fontspec){ String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "-"); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } i... | public static Font decode (String fontspec){ String name = null; int style = PLAIN; int size = 12; StringTokenizer st = new StringTokenizer(fontspec, "-"); while (st.hasMoreTokens()) { String token = st.nextToken(); if (name == null) { name = token; continue; } i... | 58,779 |
public String (char[] data) { init(data, 0, data.length, false); } | public String () { init(data, 0, data.length, false); } | 58,780 |
public String (char[] data) { init(data, 0, data.length, false); } | public String (char[] data) { init(); } | 58,781 |
public ThreadGroup(String name) { this(Thread.currentThread().group, name); } | private ThreadGroup() { this(Thread.currentThread().group, name); } | 58,782 |
public ThreadGroup(String name) { this(Thread.currentThread().group, name); } | public ThreadGroup(String name) { name = "main"; parent = null; maxpri = Thread.MAX_PRIORITY; } | 58,783 |
public TestDelegator(java.lang.String testName) { super(testName); } | public TestDelegator(String testName) { super(testName); } | 58,784 |
public static void main(java.lang.String[] args) { junit.textui.TestRunner.run(suite()); } | public static void main(String[] args) { junit.textui.TestRunner.run(suite()); } | 58,785 |
public static Object makeDelegator(Object[] delegates, ClassLoader loader) { Info info = getInfo(delegates); Object[] remapped = new Object[info.interfaces.length]; for (int i = 0; i < remapped.length; i++) { remapped[i] = delegates[info.indexes[i]]; } return makeDelega... | public static Object makeDelegator(Object[] delegates, ClassLoader loader) { Info info = getInfo(delegates); Object[] remapped = new Object[info.interfaces.length]; for (int i = 0; i < remapped.length; i++) { remapped[i] = delegates[info.indexes[i]]; } return makeDelega... | 58,786 |
protected ModifiableConfigurableComponent(String name) { super(name); log = CSMART.createLogger(this.getClass().getName()); } | protected ModifiableConfigurableComponent(String name) { super(name); } | 58,788 |
protected Collator () { strength = TERTIARY; decmp = CANONCIAL_DECOMPOSITION; } | protected Collator () { strength = TERTIARY; decmp = CANONICAL_DECOMPOSITION; } | 58,790 |
public synchronized void setDecomposition (int mode) { if (mode != NO_DECOMPOSITION && mode != CANONCIAL_DECOMPOSITION && mode != FULL_DECOMPOSITION) throw new IllegalArgumentException (); decmp = mode; } | public synchronized void setDecomposition (int mode) { if (mode != NO_DECOMPOSITION && mode != CANONCIAL_DECOMPOSITION && mode != FULL_DECOMPOSITION) throw new IllegalArgumentException (); decmp = mode; } | 58,791 |
protected void append(AttributedCharacterIterator iterator) { char c = iterator.first(); Vector more_ranges = new Vector(); Vector more_attributes = new Vector(); do { formattedString = formattedString + String.valueOf(c); // TODO: Reduce the size of the output array. more_attributes.add (iterator.g... | protected void append (AttributedCharacterIterator iterator) { char c = iterator.first(); Vector more_ranges = new Vector(); Vector more_attributes = new Vector(); do { formattedString = formattedString + String.valueOf(c); // TODO: Reduce the size of the output array. more_attributes.add (iterator.... | 58,792 |
protected void append(AttributedCharacterIterator iterator) { char c = iterator.first(); Vector more_ranges = new Vector(); Vector more_attributes = new Vector(); do { formattedString = formattedString + String.valueOf(c); // TODO: Reduce the size of the output array. more_attributes.add (iterator.g... | protected void append(AttributedCharacterIterator iterator) { char c = iterator.first(); Vector more_ranges = new Vector(); Vector more_attributes = new Vector(); do { formattedString = formattedString + String.valueOf(c); // TODO: Reduce the size of the output array. more_attributes.add (iterator.g... | 58,793 |
protected void append(AttributedCharacterIterator iterator) { char c = iterator.first(); Vector more_ranges = new Vector(); Vector more_attributes = new Vector(); do { formattedString = formattedString + String.valueOf(c); // TODO: Reduce the size of the output array. more_attributes.add (iterator.g... | protected void append(AttributedCharacterIterator iterator) { char c = iterator.first(); Vector more_ranges = new Vector(); Vector more_attributes = new Vector(); do { formattedString = formattedString + String.valueOf(c); // TODO: Reduce the size of the output array. more_attributes.add (iterator.g... | 58,794 |
protected void append(AttributedCharacterIterator iterator) { char c = iterator.first(); Vector more_ranges = new Vector(); Vector more_attributes = new Vector(); do { formattedString = formattedString + String.valueOf(c); // TODO: Reduce the size of the output array. more_attributes.add (iterator.g... | protected void append(AttributedCharacterIterator iterator) { char c = iterator.first(); Vector more_ranges = new Vector(); Vector more_attributes = new Vector(); do { formattedString = formattedString + String.valueOf(c); // TODO: Reduce the size of the output array. more_attributes.add (iterator.g... | 58,795 |
public Object clone() { return new FormatCharacterIterator(formattedString, ranges, attributes); } | public Object clone() { return new FormatCharacterIterator (formattedString, ranges, attributes); } | 58,796 |
public char current() { return formattedString.charAt(charIndex); } | public char current() { return formattedString.charAt (charIndex); } | 58,797 |
public char first() { charIndex = 0; attributeIndex = 0; return formattedString.charAt(0); } | public char first() { charIndex = 0; attributeIndex = 0; return formattedString.charAt (0); } | 58,798 |
public Object getAttribute(AttributedCharacterIterator.Attribute attrib) { if (attributes != null && attributes[attributeIndex] != null) return attributes[attributeIndex].get(attrib); else return null; } | public Object getAttribute (AttributedCharacterIterator.Attribute attrib) { if (attributes != null && attributes[attributeIndex] != null) return attributes[attributeIndex].get(attrib); else return null; } | 58,799 |
public Object getAttribute(AttributedCharacterIterator.Attribute attrib) { if (attributes != null && attributes[attributeIndex] != null) return attributes[attributeIndex].get(attrib); else return null; } | public Object getAttribute(AttributedCharacterIterator.Attribute attrib) { if (attributes != null && attributes[attributeIndex] != null) return attributes[attributeIndex].get (attrib); else return null; } | 58,800 |
public int getRunLimit(Set reqAttrs) { if (attributes == null) return formattedString.length(); int currentAttrIndex = attributeIndex; Set newKeys; do { currentAttrIndex++; if (currentAttrIndex == attributes.length) return formattedString.length(); if (attributes[currentAttrIndex] == null) ... | public int getRunLimit(Set reqAttrs) { if (attributes == null) return formattedString.length(); int currentAttrIndex = attributeIndex; Set newKeys; do { currentAttrIndex++; if (currentAttrIndex == attributes.length) return formattedString.length(); if (attributes[currentAttrIndex] == null) ... | 58,801 |
public int getRunStart(Set reqAttrs) { if (attributes == null) return formattedString.length(); int currentAttrIndex = attributeIndex; Set newKeys = null; do { if (currentAttrIndex == 0) return 0; currentAttrIndex--; if (attributes[currentAttrIndex] == null) break; newKeys = attributes[cu... | public int getRunStart (Set reqAttrs) { if (attributes == null) return formattedString.length(); int currentAttrIndex = attributeIndex; Set newKeys = null; do { if (currentAttrIndex == 0) return 0; currentAttrIndex--; if (attributes[currentAttrIndex] == null) break; newKeys = attributes[c... | 58,802 |
public int getRunStart(Set reqAttrs) { if (attributes == null) return formattedString.length(); int currentAttrIndex = attributeIndex; Set newKeys = null; do { if (currentAttrIndex == 0) return 0; currentAttrIndex--; if (attributes[currentAttrIndex] == null) break; newKeys = attributes[cu... | public int getRunStart(Set reqAttrs) { if (attributes == null) return formattedString.length(); int currentAttrIndex = attributeIndex; Set newKeys = null; do { if (currentAttrIndex == 0) return 0; currentAttrIndex--; if (attributes[currentAttrIndex] == null) break; newKeys = attributes[cu... | 58,803 |
public char last() { charIndex = formattedString.length()-1; if (attributes != null) attributeIndex = attributes.length-1; return formattedString.charAt(charIndex); } | public char last() { charIndex = formattedString.length()-1; if (attributes != null) attributeIndex = attributes.length-1; return formattedString.charAt (charIndex); } | 58,804 |
protected void mergeAttributes(HashMap[] attributes, int[] ranges) { Vector new_ranges = new Vector(); Vector new_attributes = new Vector(); int i = 0, j = 0; while (i < this.ranges.length && j < ranges.length) { if (this.attributes[i] != null) { new_attributes.add(this.attributes[i]); if ... | protected void mergeAttributes (HashMap[] attributes, int[] ranges) { Vector new_ranges = new Vector(); Vector new_attributes = new Vector(); int i = 0, j = 0; while (i < this.ranges.length && j < ranges.length) { if (this.attributes[i] != null) { new_attributes.add(this.attributes[i]); if... | 58,805 |
protected void mergeAttributes(HashMap[] attributes, int[] ranges) { Vector new_ranges = new Vector(); Vector new_attributes = new Vector(); int i = 0, j = 0; while (i < this.ranges.length && j < ranges.length) { if (this.attributes[i] != null) { new_attributes.add(this.attributes[i]); if ... | protected void mergeAttributes(HashMap[] attributes, int[] ranges) { Vector new_ranges = new Vector(); Vector new_attributes = new Vector(); int i = 0, j = 0; while (i < this.ranges.length && j < ranges.length) { if (this.attributes[i] != null) { new_attributes.add(this.attributes[i]); if ... | 58,806 |
protected void mergeAttributes(HashMap[] attributes, int[] ranges) { Vector new_ranges = new Vector(); Vector new_attributes = new Vector(); int i = 0, j = 0; while (i < this.ranges.length && j < ranges.length) { if (this.attributes[i] != null) { new_attributes.add(this.attributes[i]); if ... | protected void mergeAttributes(HashMap[] attributes, int[] ranges) { Vector new_ranges = new Vector(); Vector new_attributes = new Vector(); int i = 0, j = 0; while (i < this.ranges.length && j < ranges.length) { if (this.attributes[i] != null) { new_attributes.add(this.attributes[i]); if ... | 58,807 |
protected void mergeAttributes(HashMap[] attributes, int[] ranges) { Vector new_ranges = new Vector(); Vector new_attributes = new Vector(); int i = 0, j = 0; while (i < this.ranges.length && j < ranges.length) { if (this.attributes[i] != null) { new_attributes.add(this.attributes[i]); if ... | protected void mergeAttributes(HashMap[] attributes, int[] ranges) { Vector new_ranges = new Vector(); Vector new_attributes = new Vector(); int i = 0, j = 0; while (i < this.ranges.length && j < ranges.length) { if (this.attributes[i] != null) { new_attributes.add(this.attributes[i]); if ... | 58,808 |
protected void mergeAttributes(HashMap[] attributes, int[] ranges) { Vector new_ranges = new Vector(); Vector new_attributes = new Vector(); int i = 0, j = 0; while (i < this.ranges.length && j < ranges.length) { if (this.attributes[i] != null) { new_attributes.add(this.attributes[i]); if ... | protected void mergeAttributes(HashMap[] attributes, int[] ranges) { Vector new_ranges = new Vector(); Vector new_attributes = new Vector(); int i = 0, j = 0; while (i < this.ranges.length && j < ranges.length) { if (this.attributes[i] != null) { new_attributes.add(this.attributes[i]); if ... | 58,809 |
protected void mergeAttributes(HashMap[] attributes, int[] ranges) { Vector new_ranges = new Vector(); Vector new_attributes = new Vector(); int i = 0, j = 0; while (i < this.ranges.length && j < ranges.length) { if (this.attributes[i] != null) { new_attributes.add(this.attributes[i]); if ... | protected void mergeAttributes(HashMap[] attributes, int[] ranges) { Vector new_ranges = new Vector(); Vector new_attributes = new Vector(); int i = 0, j = 0; while (i < this.ranges.length && j < ranges.length) { if (this.attributes[i] != null) { new_attributes.add(this.attributes[i]); if ... | 58,810 |
protected void mergeAttributes(HashMap[] attributes, int[] ranges) { Vector new_ranges = new Vector(); Vector new_attributes = new Vector(); int i = 0, j = 0; while (i < this.ranges.length && j < ranges.length) { if (this.attributes[i] != null) { new_attributes.add(this.attributes[i]); if ... | protected void mergeAttributes(HashMap[] attributes, int[] ranges) { Vector new_ranges = new Vector(); Vector new_attributes = new Vector(); int i = 0, j = 0; while (i < this.ranges.length && j < ranges.length) { if (this.attributes[i] != null) { new_attributes.add(this.attributes[i]); if ... | 58,811 |
protected void mergeAttributes(HashMap[] attributes, int[] ranges) { Vector new_ranges = new Vector(); Vector new_attributes = new Vector(); int i = 0, j = 0; while (i < this.ranges.length && j < ranges.length) { if (this.attributes[i] != null) { new_attributes.add(this.attributes[i]); if ... | protected void mergeAttributes(HashMap[] attributes, int[] ranges) { Vector new_ranges = new Vector(); Vector new_attributes = new Vector(); int i = 0, j = 0; while (i < this.ranges.length && j < ranges.length) { if (this.attributes[i] != null) { new_attributes.add(this.attributes[i]); if ... | 58,812 |
protected void mergeAttributes(HashMap[] attributes, int[] ranges) { Vector new_ranges = new Vector(); Vector new_attributes = new Vector(); int i = 0, j = 0; while (i < this.ranges.length && j < ranges.length) { if (this.attributes[i] != null) { new_attributes.add(this.attributes[i]); if ... | protected void mergeAttributes(HashMap[] attributes, int[] ranges) { Vector new_ranges = new Vector(); Vector new_attributes = new Vector(); int i = 0, j = 0; while (i < this.ranges.length && j < ranges.length) { if (this.attributes[i] != null) { new_attributes.add(this.attributes[i]); if ... | 58,813 |
protected void mergeAttributes(HashMap[] attributes, int[] ranges) { Vector new_ranges = new Vector(); Vector new_attributes = new Vector(); int i = 0, j = 0; while (i < this.ranges.length && j < ranges.length) { if (this.attributes[i] != null) { new_attributes.add(this.attributes[i]); if ... | protected void mergeAttributes(HashMap[] attributes, int[] ranges) { Vector new_ranges = new Vector(); Vector new_attributes = new Vector(); int i = 0, j = 0; while (i < this.ranges.length && j < ranges.length) { if (this.attributes[i] != null) { new_attributes.add(this.attributes[i]); if ... | 58,814 |
protected void mergeAttributes(HashMap[] attributes, int[] ranges) { Vector new_ranges = new Vector(); Vector new_attributes = new Vector(); int i = 0, j = 0; while (i < this.ranges.length && j < ranges.length) { if (this.attributes[i] != null) { new_attributes.add(this.attributes[i]); if ... | protected void mergeAttributes(HashMap[] attributes, int[] ranges) { Vector new_ranges = new Vector(); Vector new_attributes = new Vector(); int i = 0, j = 0; while (i < this.ranges.length && j < ranges.length) { if (this.attributes[i] != null) { new_attributes.add(this.attributes[i]); if ... | 58,815 |
public char next() { charIndex++; if (charIndex >= formattedString.length()) { charIndex = getEndIndex(); return DONE; } if (attributes != null) { if (charIndex >= ranges[attributeIndex]) attributeIndex++; } return formattedString.charAt(charIndex); } | public char next() { charIndex++; if (charIndex >= formattedString.length()) { charIndex = getEndIndex(); return DONE; } if (attributes != null) { if (charIndex >= ranges[attributeIndex]) attributeIndex++; } return formattedString.charAt (charIndex); } | 58,816 |
public char previous() { charIndex--; if (charIndex < 0) { charIndex = 0; return DONE; } if (attributes != null) { if (charIndex < ranges[attributeIndex]) attributeIndex--; } return formattedString.charAt(charIndex); } | public char previous() { charIndex--; if (charIndex < 0) { charIndex = 0; return DONE; } if (attributes != null) { if (charIndex < ranges[attributeIndex]) attributeIndex--; } return formattedString.charAt (charIndex); } | 58,817 |
public char setIndex(int position) { if (position < 0 || position > formattedString.length()) throw new IllegalArgumentException("position is out of range"); charIndex = position; if (attributes != null) { for (attributeIndex=0;attributeIndex<attributes.length; attributeIndex++) if (ran... | public char setIndex (int position) { if (position < 0 || position > formattedString.length()) throw new IllegalArgumentException("position is out of range"); charIndex = position; if (attributes != null) { for (attributeIndex=0;attributeIndex<attributes.length; attributeIndex++) if (ra... | 58,818 |
public char setIndex(int position) { if (position < 0 || position > formattedString.length()) throw new IllegalArgumentException("position is out of range"); charIndex = position; if (attributes != null) { for (attributeIndex=0;attributeIndex<attributes.length; attributeIndex++) if (ran... | public char setIndex(int position) { if (position < 0 || position > formattedString.length()) throw new IllegalArgumentException ("position is out of range"); charIndex = position; if (attributes != null) { for (attributeIndex=0;attributeIndex<attributes.length; attributeIndex++) if (ra... | 58,819 |
public char setIndex(int position) { if (position < 0 || position > formattedString.length()) throw new IllegalArgumentException("position is out of range"); charIndex = position; if (attributes != null) { for (attributeIndex=0;attributeIndex<attributes.length; attributeIndex++) if (ran... | public char setIndex(int position) { if (position < 0 || position > formattedString.length()) throw new IllegalArgumentException("position is out of range"); charIndex = position; if (attributes != null) { for (attributeIndex=0;attributeIndex<attributes.length; attributeIndex++) if (ran... | 58,820 |
int getRunLimit (Set attribs); | int getRunLimit (Set attribs); | 58,821 |
int getRunStart (Set attribs); | int getRunStart (Set attribs); | 58,822 |
public int rowCount() { if(_rowCount == -1) { EOFetchSpecification spec = databaseDataSource().fetchSpecificationForFetch(); EOEditingContext ec = databaseDataSource().editingContext(); _rowCount = ERXEOAccessUtilities.rowCountForFetchSpecificationAndEditingContext(spec, ec);... | public int rowCount() { if(_rowCount == -1) { EOFetchSpecification spec = databaseDataSource().fetchSpecificationForFetch(); EOEditingContext ec = databaseDataSource().editingContext(); _rowCount = ERXEOAccessUtilities.rowCountForFetchSpecification(ec, spec); setOb... | 58,823 |
public void executeCall() throws Exception { byte returncode; ObjectInput oin; // signal the call when constructing try { DataOutputStream dout = conn.getDataOutputStream(); dout.write(MESSAGE_CALL); oout = conn.getObjectOutputStream(); objid.write(oout); oout.writeInt(opnum); oout.writeLong(ha... | public void executeCall() throws Exception { byte returncode; ObjectInput oin; // signal the call when constructing try { DataOutputStream dout = conn.getDataOutputStream(); dout.write(MESSAGE_CALL); oout = conn.getObjectOutputStream(); objid.write(oout); oout.writeInt(opnum); oout.writeLong(ha... | 58,824 |
public void executeCall() throws Exception { byte returncode; ObjectInput oin; // signal the call when constructing try { DataOutputStream dout = conn.getDataOutputStream(); dout.write(MESSAGE_CALL); oout = conn.getObjectOutputStream(); objid.write(oout); oout.writeInt(opnum); oout.writeLong(ha... | public void executeCall() throws Exception { byte returncode; ObjectInput oin; // signal the call when constructing try { DataOutputStream dout = conn.getDataOutputStream(); dout.write(MESSAGE_CALL); oout = conn.getObjectOutputStream(); objid.write(oout); oout.writeInt(opnum); oout.writeLong(ha... | 58,825 |
public void selectExperimentFromDatabase() { Map experimentNamesMap = ExperimentDB.getExperimentNames(); Set keys = experimentNamesMap.keySet(); JComboBox cb = new JComboBox(keys.toArray(new String[keys.size()])); cb.setEditable(false); JPanel panel = new JPanel(); panel.add(new JLabel("Select Exper... | public void selectExperimentFromDatabase() { Map experimentNamesMap = ExperimentDB.getExperimentNames(); Set keys = experimentNamesMap.keySet(); JComboBox cb = new JComboBox(keys.toArray(new String[keys.size()])); cb.setEditable(false); JPanel panel = new JPanel(); panel.add(new JLabel("Select Exper... | 58,826 |
public void run() { // a potentially long process if (cmtDialog.processResults()) { final String trialId = cmtDialog.getTrialId(); if (trialId != null) { Experiment experiment = helper.createExperiment(originalExperimentName, cmtDialog.getExperimentName(), cmtDialog.getExperime... | public void run() { // a potentially long process if (cmtDialog.processResults()) { final String trialId = cmtDialog.getTrialId(); if (trialId != null) { Experiment experiment = helper.createExperiment(originalExperimentName, cmtDialog.getExperimentName(), cmtDialog.getExperime... | 58,827 |
public static byte[] createNegoDatagram(int file_index, short opcode, int delay, int width, int height) throws InvalidParameterException { //creation if(!Opcode.isNego(opcode)) throw new InvalidParameterException("opcode isn't a correct value"); byte datagram[] = UDPDatagramHeader.createUDPDatagramHeader(file_in... | public static byte[] createNegoDatagram(int file_index, short opcode, int delay, int width, int height) throws InvalidParameterException { //creation if(!Opcode.isNego(opcode)) throw new InvalidParameterException("opcode isn't a correct value"); byte datagram[] = UDPDatagramHeader.createUDPDatagramHeader(file_in... | 58,828 |
public static byte[] createNegoDatagram(int file_index, short opcode, int delay, int width, int height) throws InvalidParameterException { //creation if(!Opcode.isNego(opcode)) throw new InvalidParameterException("opcode isn't a correct value"); byte datagram[] = UDPDatagramHeader.createUDPDatagramHeader(file_in... | public static byte[] createNegoDatagram(int file_index, short opcode, int delay, int width, int height) throws InvalidParameterException { //creation if(!Opcode.isNego(opcode)) throw new InvalidParameterException("opcode isn't a correct value"); byte datagram[] = UDPDatagramHeader.createUDPDatagramHeader(file_in... | 58,829 |
public static int getDelay(byte [] datagram) { byte delay[] = { datagram[UDPDatagramHeader.getHeaderSize()], datagram[UDPDatagramHeader.getHeaderSize()+1], datagram[UDPDatagramHeader.getHeaderSize()+2], datagram[UDPDatagramHeader.getHeaderSize()+3] }; return byteArray2Int(delay); } | public static int getDelay(byte [] datagram) { byte delay[] = { datagram[UDPDatagramHeader.getHeaderSize()], datagram[UDPDatagramHeader.getHeaderSize()+1], datagram[UDPDatagramHeader.getHeaderSize()+2], datagram[UDPDatagramHeader.getHeaderSize()+3] }; return ArrayManipulator.byteArray2Int(delay); ... | 58,830 |
public static int getHeight(byte [] datagram) { byte height[] = { datagram[UDPDatagramHeader.getHeaderSize()+8], datagram[UDPDatagramHeader.getHeaderSize()+9], datagram[UDPDatagramHeader.getHeaderSize()+10], datagram[UDPDatagramHeader.getHeaderSize()+11] }; return byteArray2Int(height); } | public static int getHeight(byte [] datagram) { byte height[] = { datagram[UDPDatagramHeader.getHeaderSize()+8], datagram[UDPDatagramHeader.getHeaderSize()+9], datagram[UDPDatagramHeader.getHeaderSize()+10], datagram[UDPDatagramHeader.getHeaderSize()+11] }; return ArrayManipulator.byteArray2Int(hei... | 58,831 |
public static int getWidth(byte [] datagram) { byte width[] = { datagram[UDPDatagramHeader.getHeaderSize()+4], datagram[UDPDatagramHeader.getHeaderSize()+5], datagram[UDPDatagramHeader.getHeaderSize()+6], datagram[UDPDatagramHeader.getHeaderSize()+7] }; return byteArray2Int(width); } | public static int getWidth(byte [] datagram) { byte width[] = { datagram[UDPDatagramHeader.getHeaderSize()+4], datagram[UDPDatagramHeader.getHeaderSize()+5], datagram[UDPDatagramHeader.getHeaderSize()+6], datagram[UDPDatagramHeader.getHeaderSize()+7] }; return ArrayManipulator.byteArray2Int(width); ... | 58,832 |
final public static ByteBuffer wrap (byte[] array) { return wrap (array, 0, array.length); } | final public static ByteBuffer wrap (byte[] array, int offset, int length) { return wrap (array, 0, array.length); } | 58,833 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.