Dataset Viewer (First 5GB)
Auto-converted to Parquet Duplicate
index
int64
repo_id
string
file_path
string
content
string
0
java-sources/abbot/abbot/1.4.0
java-sources/abbot/abbot/1.4.0/abbot/AssertionFailedError.java
package abbot; import java.io.File; import abbot.i18n.Strings; import abbot.script.Step; import abbot.script.Script; /** Indirect usage to avoid too much direct linkage to JUnit. */ public class AssertionFailedError extends junit.framework.AssertionFailedError { private File file; private int line; p...
0
java-sources/abbot/abbot/1.4.0
java-sources/abbot/abbot/1.4.0/abbot/BugReport.java
package abbot; import javax.swing.UIManager; import java.io.*; import abbot.tester.Robot; import abbot.i18n.Strings; /** Exception for reporting unexpected situations in the program. * Automatically generates a message suitable for posting in a bug report. */ public class BugReport extends Error implements Version ...
0
java-sources/abbot/abbot/1.4.0
java-sources/abbot/abbot/1.4.0/abbot/ExitException.java
package abbot; /** Provide a tagging interface and storage for attempted exits from code under test. */ public class ExitException extends SecurityException { private int status; public ExitException(String msg, int status) { super(msg + " (" + status + ") on " + Thread.currentThread()); th...
0
java-sources/abbot/abbot/1.4.0
java-sources/abbot/abbot/1.4.0/abbot/InterruptedAbbotException.java
package abbot; import abbot.tester.FailedException; /** * Record the case where the current thread has been interrupted, * a proxy for the normal */ public class InterruptedAbbotException extends FailedException { // public WaitTimedOutError() { } public InterruptedAbbotException(String msg) { super(msg);...
0
java-sources/abbot/abbot/1.4.0
java-sources/abbot/abbot/1.4.0/abbot/Log.java
// $Id: Log.java 2866 2014-08-14 08:37:05Z gdavison $ // Copyright (c) Oculus Technologies Corporation, all rights reserved // ---------------------------------------------------------------------------- package abbot; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileOutputStream; import j...
0
java-sources/abbot/abbot/1.4.0
java-sources/abbot/abbot/1.4.0/abbot/NoExitSecurityManager.java
package abbot; public abstract class NoExitSecurityManager extends SecurityManager { private Exception creation; public NoExitSecurityManager() { class CreationLocationException extends Exception { } creation = new CreationLocationException(); } public void checkPermission(java.securit...
0
java-sources/abbot/abbot/1.4.0
java-sources/abbot/abbot/1.4.0/abbot/Platform.java
package abbot; import java.util.StringTokenizer; /** Simple utility to figure out what platform we're on, what java version * we're running. */ public class Platform { public static final int JAVA_1_0 = 0x1000; public static final int JAVA_1_1 = 0x1100; public static final int JAVA_1_2 = 0x1200; p...
0
java-sources/abbot/abbot/1.4.0
java-sources/abbot/abbot/1.4.0/abbot/Version.java
package abbot; /** Current version of the framework. */ public interface Version { String VERSION = "1.4.0-SNAPSHOT"; }
0
java-sources/abbot/abbot/1.4.0
java-sources/abbot/abbot/1.4.0/abbot/WaitTimedOutException.java
package abbot; import abbot.tester.FailedException; /** * Record the case where are have failed to wait for something, used to * extend an AssertionError; but now extends FailException so we get the * extra diagnostics. */ public class WaitTimedOutException extends FailedException { // public WaitTimedOutError...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/finder/AWTHierarchy.java
package abbot.finder; import javax.swing.*; import abbot.Log; import abbot.ExitException; import abbot.tester.WindowTracker; import abbot.tester.Robot; import abbot.util.AWT; import java.awt.Component; import java.awt.Container; import java.awt.Window; import java.util.ArrayList; import java.util.Arrays; import ja...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/finder/BasicFinder.java
package abbot.finder; import java.awt.Container; import java.awt.Component; import java.awt.Window; import java.util.*; import javax.swing.SwingUtilities; import abbot.i18n.Strings; /** Provides basic component lookup, examining each component in turn. Searches all components of interest in a given hierarchy. *...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/finder/ComponentFinder.java
package abbot.finder; import java.awt.*; /** Interface to support looking up existing components based on a number of different criteria. @see Matcher */ public interface ComponentFinder { /** Find a Component, using the given Matcher to determine whether a given component in the hierarchy used by...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/finder/ComponentNotFoundException.java
package abbot.finder; /** Indicates no component could be found, where one was required. */ public class ComponentNotFoundException extends ComponentSearchException { public ComponentNotFoundException() { } public ComponentNotFoundException(String msg) { super(msg); } }
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/finder/ComponentSearchException.java
package abbot.finder; /** General exception class which encapsulates all failures generated * attempting to find a component in the currently available GUI. */ public class ComponentSearchException extends Exception { public ComponentSearchException() { } public ComponentSearchException(String msg) { super(m...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/finder/Hierarchy.java
package abbot.finder; import java.awt.Component; import java.awt.Container; import java.awt.Window; import java.util.Collection; /** Provides access to all components in a hierarchy. */ public interface Hierarchy { /** Provides all root components in the hierarchy. Similar to * Frame.getFrames(). */ ...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/finder/Matcher.java
package abbot.finder; import java.awt.Component; /** Provides an indication whether a Component matches some desired criteria. For use with implementations of {@link ComponentFinder}. You can conveniently inline a custom matcher like so:<br> <pre><code> ComponentFinder finder; ... // Find a l...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/finder/MultiMatcher.java
package abbot.finder; import java.awt.Component; /** Provides methods for determining the best match among a group of matching components.<p> For use with implementations of {@link ComponentFinder}. You can conveniently inline a custom matcher like so:<br> <pre><code> ComponentFinder finder = Bas...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/finder/MultipleComponentsFoundException.java
package abbot.finder; import java.awt.Component; import abbot.tester.Robot; /** Indicates more than one component was found (usually where only one was * desired). */ public class MultipleComponentsFoundException extends ComponentSearchException { Component[] components; public MultipleComponentsFoundExce...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/finder/TestHierarchy.java
package abbot.finder; import java.awt.*; import java.awt.event.*; import java.util.*; import javax.swing.SwingUtilities; import abbot.Log; import abbot.util.*; /** Provide isolation of a Component hierarchy to limit consideration to only those Components created during the lifetime of this Hierarchy instance. ...
0
java-sources/abbot/abbot/1.4.0/abbot/finder
java-sources/abbot/abbot/1.4.0/abbot/finder/matchers/AbstractMatcher.java
package abbot.finder.matchers; import abbot.finder.Matcher; import abbot.util.ExtendedComparator; /** Convenience abstract class to provide regexp-based matching of strings. */ public abstract class AbstractMatcher implements Matcher { /** Provides direct or regexp matching. To match a regular expression, ...
0
java-sources/abbot/abbot/1.4.0/abbot/finder
java-sources/abbot/abbot/1.4.0/abbot/finder/matchers/ClassMatcher.java
package abbot.finder.matchers; import java.awt.Component; /** Provides matching of components by class. */ public class ClassMatcher extends AbstractMatcher { private Class cls; private boolean mustBeShowing; public ClassMatcher(Class cls) { this(cls, false); } public ClassMatcher(Class cl...
0
java-sources/abbot/abbot/1.4.0/abbot/finder
java-sources/abbot/abbot/1.4.0/abbot/finder/matchers/JMenuItemMatcher.java
package abbot.finder.matchers; import java.awt.Component; import javax.swing.JMenuItem; import javax.swing.JPopupMenu; import abbot.finder.Matcher; import abbot.util.ExtendedComparator; import java.util.ArrayList; import java.util.List; /** * Matches a {@link JMenuItem} given a simple label or a menu path of the ...
0
java-sources/abbot/abbot/1.4.0/abbot/finder
java-sources/abbot/abbot/1.4.0/abbot/finder/matchers/JMenuMatcher.java
package abbot.finder.matchers; import abbot.finder.Matcher; import abbot.util.ExtendedComparator; import java.awt.Component; import java.util.ArrayList; import java.util.List; import javax.swing.JMenu; import javax.swing.JMenuItem; import javax.swing.JPopupMenu; /** * Extension of JMenuItemMatcher that only matc...
0
java-sources/abbot/abbot/1.4.0/abbot/finder
java-sources/abbot/abbot/1.4.0/abbot/finder/matchers/NameMatcher.java
package abbot.finder.matchers; import java.awt.Component; import abbot.util.AWT; /** Provides matching of Components by component name. */ public class NameMatcher extends AbstractMatcher { private String name; /** Construct a matcher that will match any component that has explicitly been assigned th...
0
java-sources/abbot/abbot/1.4.0/abbot/finder
java-sources/abbot/abbot/1.4.0/abbot/finder/matchers/WindowMatcher.java
package abbot.finder.matchers; import java.awt.*; /** Provides matching of a Window by title or component name. */ public class WindowMatcher extends ClassMatcher { private String id; private boolean mustBeShowing; public WindowMatcher(String id) { this(id, true); } public WindowMatcher(St...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/i18n/Strings.java
package abbot.i18n; import java.util.List; import java.lang.ref.WeakReference; import java.text.MessageFormat; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.ListIterator; import java.util.Locale; import java.util.Map; import java.util.Missin...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/tester/AWTConstants.java
package abbot.tester; import java.awt.Toolkit; import java.awt.event.InputEvent; import abbot.Platform; import abbot.util.AWT; /** Provides shared UI- and action-related constants. */ public interface AWTConstants { int MULTI_CLICK_INTERVAL = 500; // a guess, TODO work out actual value by firing events at a win...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/tester/AbstractButtonTester.java
package abbot.tester; import java.awt.Component; import javax.swing.*; public class AbstractButtonTester extends JComponentTester { public String deriveTag(Component comp) { // If the component class is custom, don't provide a tag if (isCustom(comp.getClass())) return null; ...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/tester/ActionFailedException.java
package abbot.tester; import java.awt.Frame; import java.awt.KeyboardFocusManager; import java.io.IOException; import java.io.PrintStream; import java.io.PrintWriter; import java.io.StringWriter; import java.lang.management.ManagementFactory; import java.lang.management.ThreadInfo; import java.lang.management.Thre...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/tester/ButtonTester.java
package abbot.tester; import java.awt.Component; import java.awt.Button; import java.awt.event.ActionEvent; /** Provides Button activation support, since otherwise AWT buttons cannot be * activated in AWT mode. */ public class ButtonTester extends ComponentTester { /** Programmatically clicks the Button if in A...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/tester/CallTimoutFailedException.java
package abbot.tester; import java.awt.Frame; import java.awt.KeyboardFocusManager; import java.io.IOException; import java.io.PrintStream; import java.io.PrintWriter; import java.io.StringWriter; import java.lang.management.ManagementFactory; import java.lang.management.ThreadInfo; import java.lang.management.Thre...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/tester/CheckboxTester.java
package abbot.tester; import java.awt.Checkbox; import java.awt.Component; import java.awt.event.ItemEvent; /** Provides Checkbox activation support, since otherwise AWT buttons cannot be * activated in AWT mode. */ public class CheckboxTester extends ComponentTester { /** Programmatically clicks the Checkbox i...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/tester/ChoiceTester.java
package abbot.tester; import java.awt.*; import java.awt.event.*; import abbot.util.*; /** AWT Choice (ComboBox/picklist) support. */ public class ChoiceTester extends ComponentTester { private int CHOICE_DELAY = Properties.getProperty("abbot.tester.choice_delay", 30000, 0, 60000); private class Li...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/tester/ComponentLocation.java
package abbot.tester; import java.awt.*; import java.util.StringTokenizer; import abbot.i18n.Strings; /** Provides encapsulation of a visible Component-relative location. * "Visible" in this context means currently accessible by the pointer * (possibly via scrolling). A hidden node in a collapsed tree path ...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/tester/ComponentMissingException.java
package abbot.tester; /** Indicates that a component required by a ComponentTester action was not * found. */ public class ComponentMissingException extends ActionFailedException { public ComponentMissingException(String msg) { super(msg); } public ComponentMissingException(String msg, Throwable cause) { su...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/tester/ComponentNotShowingException.java
package abbot.tester; /** Indicates that a ComponentTester action failed due to the component not * being visible on screen. */ public class ComponentNotShowingException extends ActionFailedException { public ComponentNotShowingException(String msg) { super(msg); } }
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/tester/ComponentTester.java
package abbot.tester; import java.awt.AWTEvent; import java.awt.Component; import java.awt.Frame; import java.awt.Point; import java.awt.event.*; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.Set; import javax...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/tester/ContainerTester.java
package abbot.tester; /** Hierarchy placeholder for Container. Provides no additional user * actions. */ public class ContainerTester extends ComponentTester { }
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/tester/DialogTester.java
package abbot.tester; import java.awt.*; public class DialogTester extends WindowTester { /** Return a unique tag to help identify the given component. */ public String deriveTag(Component comp) { // If the component class is custom, don't provide a tag if (isCustom(comp.getClass())) ...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/tester/FailedException.java
package abbot.tester; import java.awt.Component; import java.awt.Frame; import java.awt.KeyboardFocusManager; import java.io.PrintStream; import java.io.PrintWriter; import java.io.StringWriter; import java.lang.management.ManagementFactory; import java.lang.management.MonitorInfo; import java.lang.management.Thread...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/tester/FileComparator.java
package abbot.tester; import java.io.*; /** * Compare two files or filenames. Original concept contributed by A. Smith * Montebello. * @author asmithmb * @version 1.0 */ public class FileComparator implements java.util.Comparator { /** * Read files into streams and call byte by byte comparison me...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/tester/FileDialogTester.java
package abbot.tester; import java.awt.*; import java.awt.event.*; import abbot.*; import abbot.util.Bugs; /** * Tester for the java.awt.FileDialog. * * @author Vrata Venet, European Space Agency, Madrid-Spain (av@iso.vilspa.esa.es) * @author Tim Wall (twall:users.sf.net) * NOTE: different platforms do different...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/tester/FrameTester.java
package abbot.tester; import java.awt.*; public class FrameTester extends WindowTester { /** Return a unique tag to help identify the given component. */ public String deriveTag(java.awt.Component comp) { // If the component class is custom, don't provide a tag if (isCustom(comp.getClass())) ...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/tester/ImageComparator.java
package abbot.tester; import abbot.InterruptedAbbotException; import java.awt.Image; import java.awt.image.*; import java.io.*; import javax.swing.ImageIcon; import abbot.Log; import java.net.URL; import javax.imageio.ImageIO; /** This code expects the availability of the com.sun.image.codec.jpeg extension...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/tester/InputState.java
package abbot.tester; import java.awt.*; import java.awt.event.*; import java.awt.dnd.*; import java.lang.reflect.*; import java.lang.ref.WeakReference; import java.util.Stack; import javax.swing.SwingUtilities; import abbot.Log; import abbot.util.*; /** Class to keep track of a given input state. Includes mouse/po...
0
java-sources/abbot/abbot/1.4.0/abbot
java-sources/abbot/abbot/1.4.0/abbot/tester/JButtonTester.java
package abbot.tester; import javax.swing.JButton; /** * Provides action methods and assertions for {@link JButton}s. * * @author tlroche * @version $Id: JButtonTester.java 1419 2005-01-05 18:34:48Z twall $ */ public class JButtonTester extends AbstractButtonTester { }
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
100